/* style.css - AIMedicineNow.com
   Design tokens injected as CSS vars via site_tokens_css().
   Clinical/medical theme: deep navy header, white body, blue + cyan accents. */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a2233);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--color-accent, #1565c0);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #0d47a1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-surface-dark, #0a1628);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */

.site-logo a {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 200;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-brand {
    color: var(--color-text-inverse, #e8eef5);
}

.logo-accent {
    color: var(--color-accent-cyan-light, #4db6ac);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav__list a {
    color: rgba(232, 238, 245, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent-cyan-light, #4db6ac);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.7em;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-surface-dark, #0a1628);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-small, 6px);
    padding: 0.5rem 0;
    min-width: 210px;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 200;
}

.site-nav__item--has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.5rem 1.1rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: rgba(232,238,245,0.8);
}

.nav-dropdown li a:hover {
    color: var(--color-accent-cyan-light, #4db6ac);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-inverse, #e8eef5);
    border-radius: 2px;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Section component ───────────────────────────────────────────────────── */

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--color-surface, #f4f7fb);
}

.section__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section__inner--narrow {
    max-width: 680px;
}

.section__header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section__header--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 1.75rem;
}

.section__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--color-text, #1a2233);
    margin: 0 0 0.5rem;
}

.section__sub {
    color: var(--color-text-muted, #556680);
    margin: 0;
    font-size: 1rem;
}

.section__view-all {
    font-size: 0.875rem;
    color: var(--color-accent, #1565c0);
    text-decoration: none;
    white-space: nowrap;
}

.section__view-all:hover {
    color: var(--color-accent-strong, #0d47a1);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    background: var(--color-surface-dark, #0a1628);
    overflow: hidden;
    padding: 5rem 0 4.5rem;
}

.hero__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-block;
    background: rgba(0, 131, 143, 0.2);
    color: var(--color-accent-cyan-light, #4db6ac);
    border: 1px solid rgba(0, 131, 143, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 0.4rem;
}

.hero__subheading {
    display: block;
    color: var(--color-accent-cyan-light, #4db6ac);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

.hero__body {
    max-width: 600px;
    color: rgba(232, 238, 245, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.5rem 0 2rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        radial-gradient(circle at 70% 40%, rgba(0,131,143,0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(21,101,192,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}

.btn--lg {
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
}

.btn--primary {
    background: var(--color-accent, #1565c0);
    color: #fff;
    border-color: var(--color-accent, #1565c0);
}

.btn--primary:hover {
    background: var(--color-accent-strong, #0d47a1);
    border-color: var(--color-accent-strong, #0d47a1);
    color: #fff;
}

.btn--outline {
    border-color: var(--color-accent, #1565c0);
    color: var(--color-accent, #1565c0);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-accent, #1565c0);
    color: #fff;
}

.btn--outline-light {
    border-color: rgba(232,238,245,0.5);
    color: var(--color-text-inverse, #e8eef5);
    background: transparent;
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(232,238,245,0.8);
    color: #fff;
}

/* ── Category cards ──────────────────────────────────────────────────────── */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border, #dae3ee);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text, #1a2233);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.category-card:hover {
    box-shadow: var(--shadow-card-hover, 0 8px 28px rgba(0,0,0,0.14));
    border-color: var(--color-accent, #1565c0);
    transform: translateY(-2px);
    color: var(--color-text, #1a2233);
}

.category-card__icon {
    color: var(--color-accent-cyan, #00838f);
    margin-bottom: 1rem;
}

.category-card__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

.category-card__desc {
    color: var(--color-text-muted, #556680);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.category-card__link {
    font-size: 0.85rem;
    color: var(--color-accent, #1565c0);
    font-weight: 500;
}

/* ── Article grid (homepage) ─────────────────────────────────────────────── */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.article-card {
    background: #fff;
    border: 1px solid var(--color-border, #dae3ee);
    border-radius: var(--radius-medium, 10px);
    padding: 1.4rem;
}

.article-card__cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-cyan, #00838f);
    margin-bottom: 0.4rem;
}

.article-card__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.article-card__title a {
    color: var(--color-text, #1a2233);
    text-decoration: none;
}

.article-card__title a:hover {
    color: var(--color-accent, #1565c0);
}

.article-card__excerpt {
    color: var(--color-text-muted, #556680);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.article-card__date {
    font-size: 0.78rem;
    color: var(--color-text-muted, #556680);
}

/* ── Article list (category page) ────────────────────────────────────────── */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-list__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border, #dae3ee);
}

.article-list__item:first-child {
    padding-top: 0;
}

.article-list__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
}

.article-list__title a {
    color: var(--color-text, #1a2233);
    text-decoration: none;
}

.article-list__title a:hover {
    color: var(--color-accent, #1565c0);
}

.article-list__excerpt {
    color: var(--color-text-muted, #556680);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.article-list__date {
    font-size: 0.8rem;
    color: var(--color-text-muted, #556680);
}

/* ── Category page header ────────────────────────────────────────────────── */

.category-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent, #1565c0);
}

.category-header__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--color-text, #1a2233);
    margin: 0 0 0.5rem;
}

.category-header__desc {
    color: var(--color-text-muted, #556680);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

/* Category empty state */

.category-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-surface, #f4f7fb);
    border-radius: var(--radius-large, 16px);
    margin: 1rem 0 2rem;
}

.category-empty__icon {
    color: var(--color-border, #dae3ee);
    margin: 0 auto 1rem;
    display: block;
    width: fit-content;
}

.category-empty__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0 0 0.75rem;
}

.category-empty__body {
    color: var(--color-text-muted, #556680);
    max-width: 460px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

/* Category about section */

.category-about {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #dae3ee);
}

.category-about__heading {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

/* Related categories */

.related-categories {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #dae3ee);
}

.related-categories__heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #556680);
    margin: 0 0 0.75rem;
}

.related-categories__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--color-surface, #f4f7fb);
    border: 1px solid var(--color-border, #dae3ee);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text, #1a2233);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.related-category-link:hover {
    border-color: var(--color-accent, #1565c0);
    background: var(--color-panel, #e8f0f9);
    color: var(--color-accent, #1565c0);
}

.related-category-link__arrow {
    color: var(--color-text-muted, #556680);
}

/* ── Constellation ────────────────────────────────────────────────────────── */

.section--constellation {
    background: var(--color-panel, #e8f0f9);
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.constellation-card {
    background: #fff;
    border: 1px solid var(--color-border, #dae3ee);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    position: relative;
}

.constellation-card--current {
    border-color: var(--color-accent, #1565c0);
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
}

.constellation-card__badge {
    position: absolute;
    top: -0.6rem;
    left: 1rem;
    background: var(--color-accent, #1565c0);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.constellation-card__name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--color-text, #1a2233);
    margin-bottom: 0.4rem;
}

.constellation-card__role {
    color: var(--color-text-muted, #556680);
    font-size: 0.85rem;
}

/* ── Newsletter block ─────────────────────────────────────────────────────── */

.section--newsletter {
    background: var(--color-surface-dark, #0a1628);
    padding: 4rem 0;
}

.newsletter-block {
    text-align: center;
}

.newsletter-block__icon {
    color: var(--color-accent-cyan-light, #4db6ac);
    margin: 0 auto 1rem;
    display: block;
    width: fit-content;
}

.newsletter-block__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.75rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}

.newsletter-block__body {
    color: rgba(232, 238, 245, 0.75);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 520px;
}

.newsletter-block__note {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: rgba(232, 238, 245, 0.45);
}

/* ── Disclaimer bar ───────────────────────────────────────────────────────── */

.disclaimer-bar {
    background: var(--color-panel, #e8f0f9);
    border-top: 1px solid var(--color-border, #dae3ee);
    padding: 0.75rem 0;
}

.disclaimer-bar__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted, #556680);
}

.disclaimer-bar__inner a {
    color: var(--color-accent, #1565c0);
    margin-left: 0.4rem;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--color-text-muted, #556680);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #1a2233);
}

.breadcrumbs__item a {
    color: var(--color-accent, #1565c0);
    text-decoration: none;
}

/* ── Sidebar blocks ───────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-surface, #f4f7fb);
    border: 1px solid var(--color-border, #dae3ee);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #556680);
}

.sidebar-block__body {
    font-size: 0.9rem;
    color: var(--color-text-muted, #556680);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-block__links a {
    font-size: 0.875rem;
    color: var(--color-accent, #1565c0);
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #1565c0);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Prose content ─────────────────────────────────────────────────────────── */

.prose-page__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--color-text, #1a2233);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent, #1565c0);
}

.prose-content {
    line-height: 1.75;
}

.prose-content h2 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 2rem 0 0.6rem;
    color: var(--color-text, #1a2233);
}

.prose-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem;
}

.prose-content p {
    margin: 0 0 1rem;
}

.prose-content ul,
.prose-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.prose-content li {
    margin-bottom: 0.35rem;
}

.prose-content strong {
    font-weight: 600;
    color: var(--color-text, #1a2233);
}

.prose-content a {
    color: var(--color-accent, #1565c0);
}

/* ── Article full page ─────────────────────────────────────────────────────── */

.article-full__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border, #dae3ee);
}

.article-full__category a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-cyan, #00838f);
    text-decoration: none;
}

.article-full__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin: 0.6rem 0 0.75rem;
    line-height: 1.2;
}

.article-full__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--color-text-muted, #556680);
}

.article-full__body {
    margin-top: 0;
}

.article-full__footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #dae3ee);
}

.article-disclaimer {
    font-size: 0.82rem;
    color: var(--color-text-muted, #556680);
    background: var(--color-surface, #f4f7fb);
    border-left: 3px solid var(--color-accent, #1565c0);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-small, 6px) var(--radius-small, 6px) 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-surface-dark, #0a1628);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}

.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 200;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.site-footer__tagline {
    margin: 0 0 0.75rem;
    color: rgba(232,238,245,0.55);
    font-size: 0.85rem;
    line-height: 1.5;
}

.site-footer__contact a {
    color: rgba(232,238,245,0.55);
    font-size: 0.85rem;
    text-decoration: none;
}

.site-footer__contact a:hover {
    color: var(--color-accent-cyan-light, #4db6ac);
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232,238,245,0.4);
    margin-bottom: 0.85rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__links a {
    color: rgba(232,238,245,0.7);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer__links a:hover {
    color: var(--color-accent-cyan-light, #4db6ac);
}

.site-footer__disclaimer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1rem 0;
    font-size: 0.78rem;
    color: rgba(232,238,245,0.4);
    line-height: 1.6;
}

.site-footer__disclaimer strong {
    color: rgba(232,238,245,0.6);
}

.site-footer__disclaimer a {
    color: rgba(232,238,245,0.5);
    margin-left: 0.4rem;
}

.site-footer__disclaimer a:hover {
    color: var(--color-accent-cyan-light, #4db6ac);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1rem 0;
    font-size: 0.78rem;
    color: rgba(232,238,245,0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__bottom-links {
    display: flex;
    gap: 1.25rem;
}

.site-footer__bottom-links a {
    color: rgba(232,238,245,0.35);
    text-decoration: none;
    font-size: 0.78rem;
}

.site-footer__bottom-links a:hover {
    color: rgba(232,238,245,0.6);
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page__code {
    font-size: 6rem;
    font-weight: 100;
    margin: 0 0 0.25rem;
    color: var(--color-border, #dae3ee);
    line-height: 1;
    font-family: var(--font-display, system-ui, sans-serif);
}

.error-page__title {
    font-family: var(--font-display, system-ui, sans-serif);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 1rem;
}

/* ── Homepage overrides (full-width sections outside page-wrapper) ─────────── */

.page-home main {
    padding: 0;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #556680);
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: var(--color-surface-dark, #0a1628);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 1.5rem;
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav.is-open .nav-dropdown {
        display: block;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .constellation-grid {
        grid-template-columns: 1fr;
    }

    .hero__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .section--categories,
    .section--articles,
    .section--constellation,
    .section--newsletter {
        padding: 2.5rem 0;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .section__header--row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
