/* Andaman Travel Journal
   Layout: a calm editorial reading column (~68ch) inside a 1180px frame.
   White pages, sand bands to separate sections, deep-blue footer and
   call-to-action bands, turquoise for links and small accents. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/newsreader-latin-opsz.woff2') format('woff2-variations'), url('../fonts/newsreader-latin-opsz.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2-variations'), url('../fonts/source-sans-3-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-italic.woff2') format('woff2-variations'), url('../fonts/source-sans-3-latin-italic.woff2') format('woff2');
}

:root {
  --ink: #0c2a47;          /* deep blue: headings, brand */
  --text: #1c2b3a;         /* body text */
  --muted: #55667a;        /* secondary text */
  --sea: #0a7078;          /* turquoise for links (AA on white and sand) */
  --sea-bright: #3cc4bd;   /* decorative turquoise */
  --lagoon: #e2f3f1;       /* pale turquoise surface */
  --sand: #dcc59c;         /* sand accent */
  --sand-soft: #f7f1e6;    /* sand band */
  --paper: #ffffff;
  --line: #dbe3e8;
  --band-bg: #0c2a47;      /* footer and CTA band */
  --band-fg: #e4edf4;
  --band-muted: #a9bccd;
  --band-accent: #7fe0d6;
  --button-bg: #0c2a47;
  --brand-disc: #0c2a47;
  --button-fg: #ffffff;
  --status-draft: #e8ecef;
  --status-review: #f3e3c3;
  --status-scheduled: #d3efec;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-5: clamp(2.3rem, 1.5rem + 3.6vw, 3.75rem);

  --radius: 10px;
  --frame: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf1f7; --text: #d3dee8; --muted: #9db0c2; --sea: #66d6cc; --sea-bright: #3cc4bd;
    --lagoon: #10313a; --sand: #b9a27a; --sand-soft: #102236; --paper: #0a1725; --line: #22374b;
    --band-bg: #061220; --band-fg: #e4edf4; --band-muted: #9bb0c3; --band-accent: #7fe0d6;
    --button-bg: #66d6cc; --button-fg: #06202a; --brand-disc: #17426b;
    --status-draft: #253747; --status-review: #4a3d22; --status-scheduled: #134047;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eaf1f7; --text: #d3dee8; --muted: #9db0c2; --sea: #66d6cc; --sea-bright: #3cc4bd;
  --lagoon: #10313a; --sand: #b9a27a; --sand-soft: #102236; --paper: #0a1725; --line: #22374b;
  --band-bg: #061220; --band-fg: #e4edf4; --band-muted: #9bb0c3; --band-accent: #7fe0d6;
  --button-bg: #66d6cc; --button-fg: #06202a; --brand-disc: #17426b;
  --status-draft: #253747; --status-review: #4a3d22; --status-scheduled: #134047;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 560; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; }

.wrap { max-width: var(--frame); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Preview bar */
.preview-bar { background: var(--sand); color: #2b2416; font-size: var(--step--1); font-weight: 600; text-align: center; padding-block: 6px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand-block { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; align-self: center; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-disc { fill: var(--brand-disc); }
.bm-wave1, .bm-wave2 { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.bm-wave1 { stroke: #3cc4bd; }
.bm-wave2 { stroke: #dcc59c; }
.bm-isle { fill: #dcc59c; }
.brand-affil { font-size: var(--step--1); color: var(--muted); }
.brand-affil a { color: var(--muted); }
.brand-affil a:hover { color: var(--sea); }
.site-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--sea); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sea); color: var(--ink); }
.nav-search { display: inline-flex; align-items: center; gap: 6px; }
.nav-search svg { flex: none; }

/* Shared type */
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sea); }
.eyebrow a, .eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { text-decoration: underline; }
.dek { font-size: var(--step-2); line-height: 1.45; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.empty, .empty-state { color: var(--muted); padding-block: 24px; }
.empty-state { display: grid; gap: 8px; }

.button { display: inline-flex; align-items: center; gap: 8px; background: var(--button-bg); color: var(--button-fg); text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.button:hover { filter: brightness(1.1); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: '›'; margin-inline: 8px; color: var(--sand); font-weight: 700; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--text); overflow-wrap: anywhere; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px 56px; align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.coords { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.hero h1 { font-size: var(--step-5); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; }
.hero-lede { font-size: var(--step-2); line-height: 1.45; color: var(--muted); max-width: 34em; }
.hero-affil { font-size: var(--step--1); color: var(--muted); }
.hero-art img { width: 100%; border-radius: 14px; }

/* Search */
.search-form { display: flex; align-items: stretch; max-width: 560px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.search-form:focus-within { border-color: var(--sea); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--step-1); padding: 12px 6px 12px 20px; }
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--muted); opacity: 0.85; }
.search-form button { border: 0; background: transparent; color: var(--ink); padding: 0 18px; cursor: pointer; }
.search-form button:hover { color: var(--sea); }
.search-form-large { border-color: var(--sand); }

/* Sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-sand { background: var(--sand-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--step-3); }
.more-link { font-weight: 600; }

/* Cards */
.card { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card-body { display: grid; gap: 8px; min-width: 0; }
.card-title { font-size: var(--step-2); font-weight: 560; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-link { text-decoration: underline; text-decoration-color: var(--sea); text-decoration-thickness: 2px; }
.card .eyebrow-link { position: relative; z-index: 2; }
.card-summary { color: var(--muted); }
.card-meta { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-variant-numeric: tabular-nums; }

.media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--lagoon); aspect-ratio: 16 / 10; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 0.75rem; background: rgba(6, 18, 32, 0.7); color: #fff; padding: 2px 8px; border-radius: 4px; }
.placeholder-label { position: absolute; left: 10px; bottom: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.9); color: #0c2a47; padding: 3px 9px; border-radius: 999px; }

.featured-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.card-feature .card-title { font-size: var(--step-4); line-height: 1.1; }
.card-feature .card-summary { font-size: var(--step-1); }
.featured-list { display: grid; gap: 28px; }
.card-compact { grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.card-compact:last-child { border-bottom: 0; padding-bottom: 0; }
.card-compact .media { aspect-ratio: 4 / 3; }
.card-compact .card-title { font-size: 1.2rem; }
.card-compact .card-summary { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-compact .placeholder-label { display: none; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 32px; padding-bottom: 24px; }
.post-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Status pills (preview only) */
.status { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--text); background: var(--status-draft); }
.status-review { background: var(--status-review); }
.status-scheduled { background: var(--status-scheduled); }

/* Topics */
.topics { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.topic { border-top: 1px solid var(--sand); }
.topic-link { display: grid; gap: 6px; padding-block: 20px 24px; text-decoration: none; color: var(--text); }
.topic-name { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); font-weight: 560; }
.topic-link:hover .topic-name { color: var(--sea); text-decoration: underline; text-decoration-thickness: 2px; }
.topic-desc { color: var(--muted); }
.topic-count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); }

.method { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 24px 56px; }
.method h2 { font-size: var(--step-3); }
.method-list { list-style: none; padding: 0; display: grid; gap: 18px; font-size: var(--step-1); }
.method-list li { padding-left: 28px; position: relative; }
.method-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--sea-bright); }
.method-list strong { color: var(--ink); }

/* Page heads */
.page-head { display: grid; gap: 16px; padding-block: 28px 32px; }
.page-head h1 { font-size: var(--step-4); }
.page-updated { color: var(--muted); font-size: var(--step--1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; background: var(--paper); }
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.results-status { font-size: var(--step--1); color: var(--muted); min-height: 1.4em; }
.search-results { display: grid; gap: 0; margin-bottom: 32px; }
.result { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.result:first-child { border-top: 1px solid var(--line); }
.result-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 560; }
.result-title a { color: var(--ink); text-decoration: none; }
.result-title a:hover { text-decoration: underline; text-decoration-color: var(--sea); }
.result-meta { font-size: var(--step--1); color: var(--muted); }
.result p { color: var(--muted); }
mark { background: var(--lagoon); color: inherit; padding: 0 2px; border-radius: 2px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 48px; font-weight: 600; }

/* Article */
.article-head { max-width: 860px; display: grid; gap: 16px; padding-block: 28px 32px; }
.article-head h1 { font-size: var(--step-4); font-weight: 520; line-height: 1.08; }
.preview-note { background: var(--status-review); color: var(--text); font-size: var(--step--1); padding: 8px 12px; border-radius: 6px; }
.byline { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.byline-pub { font-weight: 700; color: var(--ink); }
.byline-meta { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-variant-numeric: tabular-nums; }
.byline-review { color: var(--muted); }
.article-media { max-width: 1080px; }
.media-hero { aspect-ratio: 21 / 9; border-radius: 14px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; justify-content: center; padding-block: 40px 24px; max-width: 1080px; }
.article-aside { min-width: 0; }
.toc { position: sticky; top: 24px; font-size: 0.93rem; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.15s ease; }
.toc details[open] summary::after { transform: translateY(0) rotate(-135deg); }
.toc ol { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.6em 1fr; padding-block: 5px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--sand); font-weight: 700; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--sea); }
.article-main { min-width: 0; display: grid; gap: 40px; align-content: start; }

.quick-answer { background: var(--sand-soft); padding: 20px 24px; border-radius: var(--radius); display: grid; gap: 6px; font-size: var(--step-1); }
.quick-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sea); }

.prose { font-size: var(--step-1); line-height: 1.72; max-width: 68ch; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; scroll-margin-top: 16px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--sea); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin-inline: 0; margin-bottom: 0; background: var(--lagoon); padding: 16px 20px; border-radius: 8px; font-size: 1.05rem; }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose a.ext::after { content: '↗'; font-size: 0.75em; margin-left: 2px; text-decoration: none; display: inline-block; }
.prose-page { padding-bottom: 56px; }
.prose-page h2:first-child { margin-top: 0.4em; }

.checklist { list-style: none; padding-left: 0 !important; display: grid; gap: 4px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 4px; margin-top: 0 !important; }
.checklist input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0.32em 0 0; border: 2px solid var(--sea); border-radius: 4px; background: var(--paper); display: grid; place-content: center; }
.checklist input:not([disabled]) { cursor: pointer; }
.checklist input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--sea); }
.checklist input:checked::after { opacity: 1; }
.checklist li:has(input:checked) { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap:focus-visible { outline-offset: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--lagoon); color: var(--ink); font-weight: 700; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); }

.sources { font-size: 0.95rem; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 68ch; }
.sources h2 { font-size: var(--step-2); }
.sources ol { padding-left: 1.4em; display: grid; gap: 6px; color: var(--muted); }
.sources a.ext::after { content: ' ↗'; font-size: 0.8em; }
.about-note { font-size: 0.85rem; color: var(--muted); max-width: 68ch; }
.about-note strong { color: var(--ink); }

.cta-box { background: var(--band-bg); color: var(--band-fg); border-radius: 14px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 12px; justify-items: start; }
.cta-box h2 { color: #ffffff; font-size: var(--step-3); }
.cta-box .eyebrow { color: var(--band-accent); }
.cta-box p { color: var(--band-muted); max-width: 52ch; }
.cta-box .button { background: var(--band-accent); color: #06202a; margin-top: 6px; }

.related { background: var(--sand-soft); }

/* Static pages */
.review-banner { background: var(--status-review); border-radius: 8px; padding: 12px 16px; font-size: 0.95rem; }
.not-found { padding-block: 64px 96px; }

/* Footer */
.site-footer { background: var(--band-bg); color: var(--band-fg); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-block: 56px 32px; }
.footer-about { display: grid; gap: 12px; align-content: start; color: var(--band-muted); max-width: 46ch; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #ffffff; }
.footer-brand .brand-mark { --brand-disc: #1b4670; }
.site-footer a { color: var(--band-fg); }
.site-footer a:hover { color: var(--band-accent); }
.footer-affil a { color: var(--band-accent); }
.footer-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px 32px; font-size: var(--step--1); color: var(--band-muted); }

/* Consent banner (only rendered when analytics is configured) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(6, 18, 32, 0.12); padding: 16px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.consent-inner { max-width: var(--frame); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.consent p { max-width: 70ch; font-size: 0.95rem; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.consent button.primary { background: var(--button-bg); color: var(--button-fg); border-color: var(--button-bg); }

/* Responsive */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; background: var(--sand-soft); border-radius: 8px; padding: 14px 16px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .method { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 420px; }
  .hero-art img { aspect-ratio: 16 / 9; object-fit: cover; }
  .media-hero { aspect-ratio: 16 / 10; }
  .header-inner { padding-block: 12px; }
  .site-nav { width: 100%; gap: 4px 18px; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav-search { margin-left: auto; }
  .prose { font-size: 1.0625rem; }
  .breadcrumbs li:last-child { display: none; }
}
@media (max-width: 480px) {
  .card-compact { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-search-text { display: none; }
  .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-link, .chip, .topic-name, .button, a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease; }
}
@media print {
  .site-header, .site-footer, .preview-bar, .toc, .cta-box, .related, .search-form { display: none !important; }
  .article-layout { grid-template-columns: 1fr; }
}
