/* Hopctopus (hopctopus.com) — site vitrine du dataset beer-data (docs/site-marketing.md, section 10).
   Une seule couleur d'accent, angles droits, pas de dégradé, pas d'ombre, pas de flou. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
    --paper: #f6f2ea;
    --paper-alt: #ede7db;
    --ink: #14130f;
    --ink-alt: #1c1b17;
    --fg: #14130f;
    --muted: #6b665c;
    --line: #d9d2c3;
    --amber: #f5a623;
    --amber-text: #8a5208;
    --down: #4a463f;
    --on-amber: #14130f;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --header-h: 60px;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1280px;
    color-scheme: light;
}

/* Sections sombres : mêmes noms de variables, autres valeurs */
.section-ink, .site-footer {
    --fg: #edebe4;
    --muted: #a3a097;
    --line: #3a3934;
    --amber-text: #f5a623;
    --down: #8b877d;
    background: var(--ink);
    color: var(--fg);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
    background: var(--paper);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--amber-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--amber); color: var(--on-amber); padding: 8px 12px; font-family: var(--mono); }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono, code, pre { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mt { margin-top: 32px; }

h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 4.6vw, 60px); max-width: 22ch; }
h2 { font-size: clamp(26px, 3vw, 40px); max-width: 28ch; margin-bottom: 20px; }
h3, .h3 { font-size: 21px; margin-bottom: 14px; }
h2 a, h3 a { color: inherit; }
.lead { font-size: 19px; max-width: 68ch; color: var(--muted); margin-top: 16px; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; max-width: 80ch; }
.section-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.section-label a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); background: var(--ink); color: #edebe4; border-bottom: 1px solid #3a3934; }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; color: #edebe4; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { display: block; width: 36px; height: 36px; }
.logo-footer .logo-mark { width: 44px; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav > a, .nav-menu summary { color: #edebe4; text-decoration: none; cursor: pointer; }
.site-nav > a:hover, .nav-menu summary:hover, .site-nav [aria-current="page"] { color: var(--amber); }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: " ▾"; font-size: 0.75em; color: #a3a097; }
.nav-menu ul { position: absolute; top: calc(100% + 18px); left: -16px; min-width: 220px; list-style: none; background: var(--ink); border: 1px solid #3a3934; padding: 8px 0; }
.nav-menu li a { display: block; padding: 8px 16px; color: #edebe4; text-decoration: none; }
.nav-menu li a:hover { color: var(--amber); }

@media (max-width: 860px) {
    .site-header { height: auto; position: static; }
    .header-row { flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
    .site-nav { order: 3; width: 100%; margin-left: 0; gap: 16px; flex-wrap: wrap; font-size: 14px; }
    .header-row .btn-small { margin-left: auto; }
    .nav-menu ul { top: calc(100% + 8px); left: 0; z-index: 10; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; font-family: var(--sans); font-weight: 600; font-size: 16px; background: var(--amber); color: var(--on-amber); border: 2px solid var(--amber); text-decoration: none; cursor: pointer; }
.btn:hover { background: transparent; color: var(--amber-text); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { color: var(--amber-text); border-color: var(--amber); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.site-header .btn-small:hover { color: var(--amber); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-alt); }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero.section-ink { border-bottom: 0; }
.for { margin-top: 20px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); max-width: 90ch; }
.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cols-1, .cols-2, .cols-3 { display: grid; gap: 40px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: clamp(32px, 5vw, 64px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: 100%; }
.headline { font-family: var(--serif); font-weight: 650; text-transform: uppercase; font-size: clamp(44px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.015em; max-width: none; }
.headline > span { display: block; }

/* « DATA » : les lettres se remplissent comme un verre. Au chargement, la bière ambrée monte de
   0 à 80 % de la hauteur des lettres sous la mousse blanche (fixe), puis sa surface ondule ;
   de fines bulles montent dans l'ambre (blanches et translucides, invisibles sur la mousse).
   Avec line-height 0.92, les capitales de Fraunces occupent ~11 % à ~89 % de la boîte :
   80 % de la lettre = surface à ~27 % de la boîte, soit un décalage de 0.21em du motif.
   Trois mouvements à trois vitesses : variables animées (@property). Sans @property, le verre
   est servi plein et immobile ; sans background-clip: text, le mot reste ambré. */
@property --beer-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --beer-y { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --bubbles-y { syntax: "<length>"; inherits: false; initial-value: 0px; }
.headline .glass { color: var(--amber); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .headline .glass {
        --beer-y: 0.21em;
        display: inline-block;
        background-image: url("/assets/img/glass-bubbles.svg"), url("/assets/img/glass-beer.svg"), url("/assets/img/glass-foam.svg");
        background-repeat: repeat, repeat-x, repeat-x;
        background-size: 0.8em 0.8em, 1.4em 0.92em, 1.9em 100%;
        background-position: 0 var(--bubbles-y), var(--beer-x) var(--beer-y), 0 0;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation:
            glass-fill 2.6s cubic-bezier(0.25, 0.6, 0.3, 1) both,
            glass-wave 5s linear infinite,
            glass-bubbles 7s linear infinite;
    }
}
@keyframes glass-fill { from { --beer-y: 0.92em; } to { --beer-y: 0.21em; } }
@keyframes glass-wave { to { --beer-x: -1.4em; } }  /* seule la bière bouge, la mousse reste fixe */
@keyframes glass-bubbles { to { --bubbles-y: -0.8em; } }
.hero-lead { font-size: clamp(18px, 1.6vw, 22px); margin-top: 28px; max-width: 34ch; }
.hero-figures { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }
.hero-figures strong { display: block; font-size: clamp(24px, 2.4vw, 34px); color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-date { margin-top: 16px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Carte ---------- */
.map-frame { position: relative; margin: 0; }
.map { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 120px); touch-action: none; user-select: none; -webkit-user-select: none; }
.map[data-map] { cursor: grab; }
.map[data-map].dragging { cursor: grabbing; }
.map-frame-region .map { max-height: 70vh; }
.map .m-nb { fill: none; stroke: #2c2b26; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.map .m-rg path { fill: #1f1e1a; stroke: #5a574d; stroke-width: 0.9; vector-effect: non-scaling-stroke; transition: fill 0.15s; }
.map .m-rg path[data-href] { cursor: pointer; }
.map .m-rg path[data-href]:hover { fill: #2a2823; }
.map .m-su { fill: none; stroke: #34322c; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.map .m-dt { fill: none; stroke: var(--amber); stroke-opacity: 0.85; stroke-width: 2.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .m-dt { animation: dots-in 1.2s ease-out both; }
.map .m-dt-be { animation-delay: 0.25s; }
@keyframes dots-in { from { stroke-opacity: 0; } to { stroke-opacity: 0.85; } }
.map .m-rg path.cur { fill: #2b2924; stroke: #8f8a7d; }
.map-zoomed .m-rg path:not(.cur) { fill: #191814; }
.map-zoomed .m-dt { stroke-width: 4.5; }
.map-country .m-dt { stroke-width: 3.2; }
.map-inset { max-height: none; cursor: default; }
.map-inset .m-dt { stroke-width: 2.2; }

.map-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.map-controls button { font-family: var(--mono); font-size: 0.8rem; min-width: 36px; min-height: 32px; padding: 4px 10px; background: transparent; color: var(--fg); border: 1px solid var(--line); cursor: pointer; }
.map-controls button:hover { border-color: var(--amber); color: var(--amber); }
.map-hint { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.map-hint.on { visibility: hidden; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--paper); color: #14130f; padding: 6px 10px; font-size: 0.85rem; line-height: 1.3; border: 1px solid #14130f; max-width: 240px; transform: translate(-50%, calc(-100% - 12px)); }
.map-tip strong { display: block; font-weight: 600; }
.map-region-link { min-height: 1.5em; margin-top: 6px; font-size: 0.9rem; }
.map-caption { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.attribution { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.7rem; }

.insets { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.insets a { display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 10px 6px 6px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 0.8rem; }
.insets a:hover { border-color: var(--amber); }
.insets .map { grid-row: span 2; width: 56px; height: 44px; }
.inset-name { align-self: end; }
.inset-count { font-family: var(--mono); color: var(--amber-text); align-self: start; }

/* ---------- Graphiques ---------- */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .c-up { fill: var(--amber); }
.chart .c-down { fill: var(--down); }
.chart .partial .c-up, .chart .partial .c-down { opacity: 0.45; }
.chart .c-hit { fill: transparent; }
.chart g:hover .c-up { fill: #ffbf47; }
.chart g:hover .c-hit { fill: rgba(127, 127, 127, 0.08); }
.chart .c-zero { stroke: var(--fg); stroke-width: 1; }
.chart .c-grid { stroke: var(--line); stroke-dasharray: 2 3; }
.chart .c-tick, .chart .c-label { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.swatch-up { background: var(--amber); }
.swatch-down { background: var(--down); }
.swatch-partial { background: var(--amber); opacity: 0.45; }
.chart-data { margin-top: 10px; font-size: 0.85rem; }
.chart-data summary { cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.chart-data .table-wrap { max-height: 320px; overflow: auto; margin-top: 8px; }
.chart-figure { margin: 24px 0 0; max-width: 960px; }
.chart-small { max-width: 640px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; margin-top: 24px; }
.multiple { margin: 0; }
.multiple figcaption { margin-bottom: 16px; }
.multiple figcaption p { color: var(--muted); max-width: 52ch; }
.pulse h2 { max-width: 30ch; }

/* ---------- Barres horizontales ---------- */
.bars { list-style: none; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem; gap: 12px; align-items: center; font-size: 0.92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label a { color: inherit; }
.bar-suffix { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.bar-track { height: 10px; background: var(--line); }
.bar-fill { display: block; height: 100%; background: var(--amber); }
.bar-value { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 0.85rem; }
.bars .empty { color: var(--muted); }
@media (max-width: 480px) { .bar-row { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 3.6rem; } }

/* ---------- Besoins ---------- */
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: 16px; }
@media (max-width: 1100px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .needs { grid-template-columns: 1fr; } }
.need { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 2px solid var(--amber); color: var(--fg); text-decoration: none; }
.need-figure { font-family: var(--mono); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.need-caption { font-size: 0.85rem; color: var(--muted); min-height: 2.9em; }
.need-title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin-top: 18px; }
.need-text { color: var(--fg); }
.need:hover .need-title { color: var(--amber-text); }
.need-title::after { content: " →"; }

/* ---------- Solutions ---------- */
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--amber); }
.big-figure { font-family: var(--mono); font-size: clamp(56px, 7vw, 96px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.proof > p { margin-top: 8px; }

.offer-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px 28px; }
.offer { border-top: 1px solid var(--fg); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.offer h3 { margin: 0; }
.offer .link-arrow { margin-top: auto; }

.example-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.example-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; background: var(--paper); }
.example-list a:hover { border-color: var(--amber); }
.section-alt .example-list a { background: var(--paper-alt); }
.example-title { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.2; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 0.9rem; }
.chips a:hover { border-color: var(--amber); }
.plain { list-style: none; display: grid; gap: 6px; }

/* ---------- Chiffres clés ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 28px; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-family: var(--mono); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }
.page-api .facts dd { font-size: 0.95rem; font-weight: 400; word-break: break-all; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; }
th.num { text-align: right; }
.latest td:first-child { font-weight: 600; }

/* ---------- JSON ---------- */
pre { background: var(--ink); color: #edebe4; padding: 20px; overflow: auto; font-size: 0.85rem; line-height: 1.6; max-width: 100%; }
.json { max-width: 760px; margin-top: 24px; }
.json-key { color: #a3a097; }
.json-str { color: #edebe4; }
.json-num, .json-lit { color: var(--amber); }
.json-mask { color: #6b665c; }

/* ---------- Bandeau final ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-text { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; max-width: 30ch; }

/* ---------- Formulaire ---------- */
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 28px; max-width: 900px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid #8f897c; background: #fffdf8; color: #14130f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: #14130f; }
.contact-form .btn { justify-self: start; }

/* ---------- API (contenu repris de l'ancien site) ---------- */
.page-api .section + .section { padding-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.toc a { font-family: var(--mono); font-size: 0.85rem; border: 1px solid var(--line); padding: 6px 10px; color: var(--fg); text-decoration: none; }
.toc a:hover { border-color: var(--amber); }
.resource { scroll-margin-top: calc(var(--header-h) + 16px); }
.endpoints td:first-child { white-space: nowrap; }
.method { font-family: var(--mono); font-weight: 700; font-size: 0.72rem; color: var(--on-amber); background: var(--amber); padding: 2px 6px; margin-right: 8px; }
.path { font-family: var(--mono); font-size: 0.85rem; }
.params { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 24px; }
.code-block { position: relative; min-width: 0; }
.code-head { display: flex; justify-content: space-between; align-items: stretch; background: var(--ink); border-bottom: 1px solid #3a3934; }
.tabs { display: flex; }
.tabs button, .copy-btn { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; background: transparent; color: #a3a097; border: 0; border-right: 1px solid #3a3934; padding: 8px 12px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--on-amber); background: var(--amber); }
.code-title { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #a3a097; padding: 8px 12px; }
.copy-btn { border-right: 0; border-left: 1px solid #3a3934; color: #edebe4; }
.copy-btn:hover { color: var(--amber); }
.code-block pre { margin: 0; max-height: 420px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 48px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.logo-footer { font-size: 26px; margin-bottom: 8px; }
.sources-list { font-size: 0.8rem; color: var(--muted); }
