/* ==========================================================================
   disruptores-endocrinos.com — bespoke stylesheet from DESIGN.md
   "Designmodo — forest clearing at dawn": dark forest hero (#0e231c) opening
   into a white/parchment content canvas; one electric green (#27ae60) as the
   sole interactive color in both zones. InterVariable, tight tracking,
   999px pill CTAs, 32px cards, orange taxonomy badges.
   ========================================================================== */

@font-face {
    font-family: 'InterVariable';
    src: url('/fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --color-forest-floor: #0e231c;
    --color-canopy-shadow: #1a3029;
    --color-pine-border: #233630;
    --color-slate-ink: #313942;
    --color-ash: #656a75;
    --color-mist: #c3cecb;
    --color-fog: #879b93;
    --color-parchment: #f4f7f2;
    --color-dew: #e4ebe2;
    --color-sprout: #27ae60;
    --color-sprout-dark: #1e8a4c;
    --color-sage-whisper: #defaca;
    --color-mint-card: #edf9f2;
    --color-iris: #5c51e0;
    --color-sky-link: #186bff;
    --color-tangerine: #ff5722;
    --color-amber-nav: #f49a40;

    /* Type */
    --font-sans: 'InterVariable', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-caption: 11px;
    --text-body-sm: 14px;
    --text-body: 16px;
    --text-subheading: 18px;
    --text-heading-sm: 24px;
    --text-heading: 32px;
    --text-heading-lg: 48px;
    --text-display: 57px;

    /* Radii */
    --radius-badges: 6px;
    --radius-images: 12px;
    --radius-chips: 17px;
    --radius-panel: 20px;
    --radius-cards: 32px;
    --radius-buttons: 999px;

    /* Layout */
    --page-max: 1200px;
    --shadow-frame: rgba(17, 50, 38, 0.14) 14px 17px 40px 0px;
}

/* ── Base ──────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-slate-ink);
    background: var(--color-parchment);
    font-feature-settings: "cv03" on, "cv04" on, "cv06" on, "cv09" on, "ss03" on;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 16px; }

a { color: var(--color-sky-link); }

:focus-visible {
    outline: 3px solid var(--color-sprout);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 200;
    background: var(--color-sprout);
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-buttons);
    text-decoration: none;
    transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 760px; }
.container-article { max-width: 860px; }

.section { padding: 80px 0; }

.eyebrow {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-sprout);
    margin: 0 0 12px;
}

.section-title {
    font-size: var(--text-heading);
    letter-spacing: -0.48px;
    line-height: 1.3;
    margin: 0 0 32px;
}
.section-title em, .accent-iris { font-style: normal; color: var(--color-iris); }

/* ── Buttons — the one-green interactive system ────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-radius: var(--radius-buttons);
    padding: 13px 28px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--color-sprout); color: #fff; }
.btn-primary:hover { background: var(--color-sprout-dark); }

.btn-ghost-green { background: transparent; color: var(--color-sprout); border-color: var(--color-sprout); padding: 11px 30px; }
.btn-ghost-green:hover { background: var(--color-mint-card); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); padding: 11px 30px; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-outline-dark {
    background: #fff;
    color: var(--color-slate-ink);
    border-color: var(--color-slate-ink);
    border-radius: var(--radius-chips);
    padding: 7px 19px;
    font-size: var(--text-body-sm);
}
.btn-outline-dark:hover { background: var(--color-parchment); }

.btn-sm { padding: 8px 18px; font-size: var(--text-body-sm); }

/* ── Header (dark nav) ─────────────────────────────────── */

.site-header {
    background: var(--color-forest-floor);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-mark { display: block; }
.brand-word {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #fff;
}
.brand-word em { font-style: normal; color: var(--color-sage-whisper); }

.site-nav .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a:not(.nav-cta) {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.site-nav a:not(.nav-cta):hover { color: var(--color-sage-whisper); }

/* Amber is locked to this single nav button (DESIGN.md) */
.nav-cta {
    display: inline-block;
    background: var(--color-amber-nav);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-buttons);
    padding: 7px 19px;
}
.nav-cta:hover { background: #e18a2f; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Hero (dark zone) ──────────────────────────────────── */

.hero {
    background: var(--color-forest-floor);
    color: #fff;
    padding: 80px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
}

.hero-kicker {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-sage-whisper);
    margin: 0 0 20px;
}

.hero-title {
    font-size: var(--text-display);
    line-height: 1.05;
    letter-spacing: -1.6px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}
.hero-title em { font-style: normal; color: var(--color-sage-whisper); }

.hero-sub {
    font-size: var(--text-subheading);
    line-height: 1.55;
    color: var(--color-fog);
    max-width: 54ch;
    margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Elevated dark glossary panel */
.hero-panel {
    background: var(--color-canopy-shadow);
    border: 1px solid var(--color-pine-border);
    border-radius: var(--radius-cards);
    padding: 36px;
}
.hero-panel-head {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-fog);
    margin: 0 0 20px;
}
.hero-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.hero-panel-list li { border-bottom: 1px solid var(--color-pine-border); padding-bottom: 20px; }
.hero-panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel-list p { margin: 8px 0 0; font-size: var(--text-body-sm); color: var(--color-mist); }

.hero-chip {
    display: inline-block;
    background: var(--color-sprout);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-badges);
    padding: 2px 8px;
}

.hero-panel-foot { margin: 20px 0 0; font-size: var(--text-body-sm); color: var(--color-sage-whisper); }

/* Trust strip (logo-bar slot) */
.trust-strip {
    border-top: 1px solid var(--color-pine-border);
    padding-top: 24px;
    padding-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
}
.trust-label {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-fog);
}
.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
}
.trust-list li { color: rgba(255,255,255,.72); font-weight: 600; font-size: 15px; letter-spacing: .04em; }

/* 404 variant */
.hero-404 { padding: 100px 0 110px; }
.hero-404 .hero-title { margin-bottom: 20px; }
.hero-404 .hero-sub { margin-bottom: 32px; }

/* ── Pillars (light zone, white cards) ─────────────────── */

.section-pillars { background: var(--color-parchment); }

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: #fff;
    border: 1px solid var(--color-dew);
    border-radius: var(--radius-panel);
    padding: 36px 32px;
}
.pillar-num {
    display: block;
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: -1.6px;
    line-height: 1;
    color: var(--color-sprout);
    margin-bottom: 20px;
}
.pillar-card h3 { font-size: var(--text-heading-sm); letter-spacing: -0.24px; margin-bottom: 10px; }
.pillar-card p { margin: 0; color: var(--color-ash); }

/* ── Feature card (mint, no shadow, no border) ─────────── */

.section-feature { background: #fff; }

.feature-card {
    background: var(--color-mint-card);
    border-radius: var(--radius-cards);
    padding: 50px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 50px;
    align-items: center;
}
.feature-copy h2 { font-size: var(--text-heading); letter-spacing: -0.48px; }
.feature-copy p { color: var(--color-slate-ink); margin-bottom: 28px; }

.feature-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.feature-points li {
    background: #fff;
    border-radius: var(--radius-images);
    padding: 16px 20px 16px 44px;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}
.feature-points li::before {
    content: '';
    position: absolute;
    left: 18px; top: 21px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-sprout);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.3 12.3 2 8l1.4-1.4 2.9 2.9 6.3-6.3L14 4.6z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.3 12.3 2 8l1.4-1.4 2.9 2.9 6.3-6.3L14 4.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Post cards ────────────────────────────────────────── */

.section-posts { background: var(--color-parchment); }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.section-head .section-title { margin-bottom: 24px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.post-grid-index { grid-template-columns: repeat(3, 1fr); }

.post-card {
    background: #fff;
    border: 1px solid var(--color-dew);
    border-radius: var(--radius-panel);
    overflow: hidden;
    display: flex;
}
.post-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.post-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Orange is locked to taxonomy badges (DESIGN.md) */
.post-badge {
    align-self: flex-start;
    display: inline-block;
    background: var(--color-tangerine);
    color: #fff;
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: var(--radius-badges);
    padding: 4px 8px;
}

.post-card-title { font-size: var(--text-subheading); font-weight: 600; line-height: 1.35; margin: 0; }
.post-card-link:hover .post-card-title { color: var(--color-sprout-dark); }
.post-card-excerpt {
    margin: 0;
    font-size: var(--text-body-sm);
    color: var(--color-ash);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--color-ash);
    margin-top: auto;
}
.post-card-more { font-size: var(--text-body-sm); font-weight: 600; color: var(--color-slate-ink); }

/* Empty state */
.empty-state {
    background: #fff;
    border: 1.5px dashed var(--color-mist);
    border-radius: var(--radius-panel);
    padding: 48px 36px;
    max-width: 640px;
}
.empty-title { font-size: var(--text-subheading); font-weight: 600; margin-bottom: 8px; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state a { color: var(--color-sprout-dark); font-weight: 600; }

/* ── Intro (project) ───────────────────────────────────── */

.section-intro { background: #fff; }
.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 60px;
}
.intro-body p { color: var(--color-ash); }
.intro-body p:last-child { margin-bottom: 0; }

/* ── Page head (inner pages) ───────────────────────────── */

.page-head {
    background: #fff;
    border-bottom: 1px solid var(--color-dew);
    padding: 48px 0 40px;
}
.page-title {
    font-size: var(--text-heading-lg);
    letter-spacing: -1.06px;
    line-height: 1.1;
    margin: 0 0 12px;
}
.page-title em { font-style: normal; color: var(--color-iris); }
.page-sub { font-size: var(--text-subheading); color: var(--color-ash); max-width: 62ch; margin: 0; }

/* ── Breadcrumb (shared classes) ───────────────────────── */

.breadcrumb { margin-bottom: 20px; }
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--color-ash);
}
.breadcrumb-list li + li::before { content: '/'; margin-right: 6px; color: var(--color-mist); }
.breadcrumb-list a { color: var(--color-ash); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--color-sprout-dark); }
.breadcrumb-list [aria-current] {
    color: var(--color-slate-ink);
    font-weight: 500;
    display: inline-block;
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

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

.article { background: #fff; padding-bottom: 80px; }

.article-head { padding: 48px 0 8px; }
.article-head .post-badge { margin-bottom: 16px; }

.article-title {
    font-size: var(--text-heading-lg);
    letter-spacing: -1.06px;
    line-height: 1.1;
    margin: 0 0 16px;
}

.article-standfirst {
    font-size: var(--text-subheading);
    line-height: 1.55;
    color: var(--color-ash);
    margin: 0 0 28px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--color-dew);
    border-bottom: 1px solid var(--color-dew);
    margin-bottom: 32px;
}
.byline-avatar { border-radius: 50%; display: block; }
.byline-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-slate-ink);
    text-decoration: none;
}
a.byline-name:hover { color: var(--color-sprout-dark); }
.byline-meta { margin: 2px 0 0; font-size: 13px; color: var(--color-ash); display: flex; flex-wrap: wrap; gap: 6px; }

.article-cover { margin: 0 0 36px; }
.article-cover img {
    display: block;
    width: 100%;
    border-radius: var(--radius-images);
    box-shadow: var(--shadow-frame);
}

.article-layout { display: block; }

/* TOC — mint card */
.toc-card {
    background: var(--color-mint-card);
    border-radius: var(--radius-panel);
    padding: 28px 32px;
    margin-bottom: 40px;
}
.toc-head {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-sprout-dark);
    margin: 0 0 12px;
}
.toc-list {
    margin: 0;
    padding: 0 0 0 20px;
    display: grid;
    gap: 8px;
    font-size: 15px;
}
.toc-list a { color: var(--color-slate-ink); text-decoration: none; font-weight: 500; }
.toc-list a:hover { color: var(--color-sprout-dark); text-decoration: underline; }

/* ── Prose (article body + legal fallback + author page) ─ */

.prose { font-size: 17px; line-height: 1.7; }

.prose h2 {
    font-size: var(--text-heading);
    letter-spacing: -0.48px;
    line-height: 1.3;
    margin: 48px 0 16px;
    scroll-margin-top: 90px;
}
.prose h3 {
    font-size: var(--text-heading-sm);
    letter-spacing: -0.24px;
    margin: 36px 0 12px;
    scroll-margin-top: 90px;
}
.prose h4 { font-size: var(--text-subheading); margin: 28px 0 10px; scroll-margin-top: 90px; }

.prose a { color: var(--color-sprout-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-sprout); }

.prose ul, .prose ol { padding-left: 26px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }

.prose img {
    border-radius: var(--radius-images);
    margin: 8px 0;
}

.prose figure { margin: 28px 0; }
.prose figcaption { font-size: var(--text-body-sm); color: var(--color-ash); margin-top: 8px; }

/* Disclaimer / notice box */
.prose blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--color-mint-card);
    border-left: 4px solid var(--color-sprout);
    border-radius: 0 var(--radius-images) var(--radius-images) 0;
    font-size: 15px;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 10px; }

/* Comparison tables — scroll on mobile */
.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}
.prose th, .prose td {
    border: 1px solid var(--color-dew);
    padding: 10px 14px;
    text-align: left;
    min-width: 120px;
    vertical-align: top;
}
.prose th {
    background: var(--color-parchment);
    font-weight: 600;
    white-space: nowrap;
}
.prose tr:nth-child(even) td { background: #fafcf9; }

.prose hr { border: 0; border-top: 1px solid var(--color-dew); margin: 40px 0; }

.prose code {
    background: var(--color-parchment);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .9em;
}

.prose svg { max-width: 100%; height: auto; }

/* ── Related ───────────────────────────────────────────── */

.section-related { background: var(--color-parchment); }

/* ── Contact ───────────────────────────────────────────── */

.contact-card {
    background: var(--color-mint-card);
    border-radius: var(--radius-cards);
    padding: 40px 44px;
    margin-bottom: 40px;
}
.contact-mail { font-size: var(--text-heading-sm); font-weight: 700; letter-spacing: -0.24px; margin-bottom: 12px; overflow-wrap: anywhere; }
.contact-mail a { color: var(--color-sprout-dark); text-decoration: none; }
.contact-mail a:hover { text-decoration: underline; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-notes h2 { margin-top: 0; }

/* ── Sitemap ───────────────────────────────────────────── */

.sitemap-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.sitemap-group h2 { font-size: var(--text-heading-sm); letter-spacing: -0.24px; margin: 0 0 14px; }
.sitemap-group h2 + ul { margin-bottom: 32px; }
.sitemap-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.sitemap-group a { color: var(--color-slate-ink); font-weight: 500; text-decoration: none; }
.sitemap-group a:hover { color: var(--color-sprout-dark); text-decoration: underline; }
.sitemap-date { display: block; font-size: 13px; color: var(--color-ash); }
.sitemap-empty { color: var(--color-ash); }

/* ── Newsletter band ───────────────────────────────────── */

.newsletter-band { background: #fff; padding: 0 0 80px; }

.newsletter-card {
    background: var(--color-canopy-shadow);
    border-radius: var(--radius-cards);
    padding: 50px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
    align-items: center;
    color: #fff;
}
.newsletter-card .eyebrow { color: var(--color-sage-whisper); }
.newsletter-title { font-size: var(--text-heading); letter-spacing: -0.48px; color: #fff; margin-bottom: 10px; }
.newsletter-sub { color: var(--color-fog); margin: 0; font-size: 15px; }

.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    font-family: inherit;
    font-size: var(--text-body);
    color: var(--color-slate-ink);
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: var(--radius-buttons);
    padding: 12px 22px;
}
.newsletter-form input[aria-invalid="true"] { border-color: var(--color-tangerine); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-ok { color: var(--color-sage-whisper); font-weight: 600; margin: 0; }

/* ── Footer (dark, closes the loop) ────────────────────── */

.site-footer {
    background: var(--color-forest-floor);
    color: var(--color-mist);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-tagline { margin: 14px 0 0; font-size: var(--text-body-sm); color: var(--color-fog); max-width: 34ch; }

.footer-head {
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-fog);
    margin: 0 0 14px;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.footer-col a { color: #fff; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--color-sage-whisper); }

.footer-bottom {
    border-top: 1px solid var(--color-pine-border);
    padding-top: 24px;
    padding-bottom: 28px;
}
.footer-bottom p { margin: 0; font-size: 13px; color: var(--color-fog); }

/* ── Legal fallback (shared views) ─────────────────────── */

.page-legal .section { background: transparent; }
.legal-updated { font-size: var(--text-body-sm); color: var(--color-ash); }

/* ── Cookie banner ─────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 300;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-dew);
    border-radius: var(--radius-panel);
    box-shadow: 0 12px 40px rgba(14, 35, 28, .18);
    padding: 20px 24px;
    display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-text { font-size: var(--text-body-sm); margin: 0 0 14px; }
.cookie-text a { color: var(--color-sprout-dark); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero-title { font-size: var(--text-heading-lg); letter-spacing: -1.06px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid-index { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: 1fr; }
    .feature-card { grid-template-columns: 1fr; padding: 40px; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-card { grid-template-columns: 1fr; padding: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }

    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-forest-floor);
        border-top: 1px solid var(--color-pine-border);
        padding: 20px;
    }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .site-nav a:not(.nav-cta) { display: block; padding: 12px 8px; font-size: 17px; }
    .nav-cta-item { margin-top: 12px; }
    .nav-cta { display: block; text-align: center; padding: 12px 19px; }
    body.nav-locked { overflow: hidden; }

    .hero { padding-top: 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
    .hero-panel { padding: 28px; border-radius: var(--radius-panel); }

    .post-grid, .post-grid-index { grid-template-columns: 1fr; }
    .sitemap-cols { grid-template-columns: 1fr; }

    .page-title, .article-title { font-size: var(--text-heading); letter-spacing: -0.48px; }
    .hero-title { font-size: 40px; letter-spacing: -0.8px; }

    .feature-card, .newsletter-card { padding: 32px 24px; border-radius: var(--radius-panel); }
    .toc-card { padding: 22px 24px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
