/* =====================================================================
   ai.yhile.com — global.css
   Plain CSS, no build step. All theme values live in section 1.
   Colors, fonts, nav height and radii mirror yhile.com's stylesheet.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. THEME VARIABLES  (edit here — the rest of the file only uses these)
   --------------------------------------------------------------------- */

:root {
  /* Colors — light (default) */
  --bg: #ffffff;
  --text: #111111;
  --text-secondary: #444444;   /* body copy on cards/descriptions (yhile --faq-body) */
  --text-muted: #888888;       /* labels and fine print only: too light for long text */
  --text-faint: #aaaaaa;
  --nav-bg: #000000;
  --nav-text: #ffffff;
  --nav-link: #aaaaaa;
  --nav-link-hover: #ffffff;
  --border: #e5e5e5;
  --border-light: #eeeeee;
  --border-faint: #f0f0f0;
  --card-bg: #ffffff;
  --card-hover-border: #000000;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --surface: #f7f7f7;          /* code blocks, image placeholders, output boxes */
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --btn-hover-bg: #333333;
  --focus: #111111;            /* keyboard focus ring */

  /* Fonts (no web fonts: system stacks only, same as yhile.com) */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;      /* research posts only */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --radius: 8px;
  --nav-height: 56px;
  --model-nav-height: 44px;
  --content-width: 960px;
  --paper-width: 720px;
  --gutter: 40px;              /* left/right padding of the two navs */
  --page-pad: 24px;            /* left/right padding of page content */
}

/* Dark mode — follows the OS setting (same approach as yhile.com).
   Add data-theme="dark" or "light" on <html> to force one.
   Keep the two dark blocks below identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --text: #f0f0f0;
    --text-secondary: #bbbbbb;
    --text-muted: #999999;
    --text-faint: #777777;
    --nav-bg: #0a0a0a;
    --nav-text: #ffffff;
    --nav-link: #999999;
    --nav-link-hover: #ffffff;
    --border: #2c2c2c;
    --border-light: #262626;
    --border-faint: #202020;
    --card-bg: #1a1a1a;
    --card-hover-border: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.4);
    --surface: #1a1a1a;
    --btn-bg: #ffffff;
    --btn-text: #111111;
    --btn-hover-bg: #dddddd;
    --focus: #f0f0f0;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --text: #f0f0f0;
  --text-secondary: #bbbbbb;
  --text-muted: #999999;
  --text-faint: #777777;
  --nav-bg: #0a0a0a;
  --nav-text: #ffffff;
  --nav-link: #999999;
  --nav-link-hover: #ffffff;
  --border: #2c2c2c;
  --border-light: #262626;
  --border-faint: #202020;
  --card-bg: #1a1a1a;
  --card-hover-border: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.4);
  --surface: #1a1a1a;
  --btn-bg: #ffffff;
  --btn-text: #111111;
  --btn-hover-bg: #dddddd;
  --focus: #f0f0f0;
}


/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

main { flex: 1 0 auto; width: 100%; }
main:focus { outline: none; }               /* skip-link target */

[hidden] { display: none !important; }

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

a, button, input, textarea, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3 { line-height: 1.25; }

code, pre { font-family: var(--font-mono); }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.page { padding-top: 40px; }

.section { margin-top: 48px; }
.section > h2,
.section-head h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.section-link { font-size: 14px; color: var(--text-secondary); }

.empty { color: var(--text-muted); font-size: 14px; margin: 0; }


/* ---------------------------------------------------------------------
   3. NAVIGATION  (markup is injected by /js/nav.js)
   --------------------------------------------------------------------- */

/* 3a. Primary nav — black bar, same look as yhile.com */
.primary-nav {
  background: var(--nav-bg);
  color: var(--nav-text);
}
.primary-nav-inner {
  min-height: var(--nav-height);
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.primary-nav :focus-visible { outline-color: var(--nav-text); }

.brand {
  color: var(--nav-text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.primary-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-links a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--nav-link);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.primary-links a:hover,
.primary-links a[aria-current] { color: var(--nav-link-hover); }

/* 3a-2. No-JavaScript fallback nav (written by build-seo.js inside <noscript>; visitors with JS never see it) */
.nojs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-height: var(--nav-height);
  padding: 8px var(--gutter);
  background: var(--nav-bg);
}
.nojs-nav a { color: var(--nav-link); font-size: 14px; text-decoration: none; }
.nojs-nav a:hover { color: var(--nav-link-hover); }
.nojs-nav .nojs-brand { color: var(--nav-text); font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin-right: 8px; }

/* 3b. Secondary nav — scrollable list of models */
.model-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.model-nav-inner {
  position: relative;               /* so JS can centre the current link */
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--model-nav-height);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.model-nav-label {
  flex: none;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.model-nav-list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.model-nav-list a {
  display: block;
  height: var(--model-nav-height);
  padding: 0 12px;
  line-height: calc(var(--model-nav-height) - 2px);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.model-nav-list a:hover { color: var(--text); }
.model-nav-list a[aria-current] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}
.model-nav-empty { font-size: 13px; color: var(--text-muted); white-space: nowrap; }


/* ---------------------------------------------------------------------
   4. COMPONENTS
   --------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: transparent; border-color: var(--text); }
.btn-small { padding: 5px 12px; font-size: 13px; }

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

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge-solid { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid > li, .card-list > li { display: flex; }
.card-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--card-hover-border); box-shadow: 0 2px 8px var(--card-shadow); }
.card-title { font-size: 16px; font-weight: 600; word-break: break-word; }
.card-text { font-size: 14px; color: var(--text-secondary); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface); font-weight: 600; }

/* Pre / code */
pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
}


/* ---------------------------------------------------------------------
   5. HOME PAGE
   --------------------------------------------------------------------- */

.hero { padding: 56px 0 8px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero .lead {
  max-width: 38em;
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--text-secondary);
}


/* ---------------------------------------------------------------------
   6. MODEL PAGE
   --------------------------------------------------------------------- */

.model-head h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.03em;
  word-break: break-word;
}
.tagline { margin: 0 0 14px; font-size: 18px; color: var(--text-secondary); }

/* Image gallery: exactly three slots */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot { margin: 0; }
.shot-box {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.shot-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-placeholder {
  display: none;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.shot-box.is-missing img { display: none; }
.shot-box.is-missing .shot-placeholder { display: block; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }

/* About */
.prose { max-width: 70ch; }
.prose h3 { margin: 24px 0 6px; font-size: 16px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }

/* Demo. Shown/hidden by <body data-demo="on|off"> (CSS works without JS; demo-toggle.js mirrors it). */
.demo {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.demo h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.02em; }
.demo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.demo textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.demo-actions { margin: 12px 0; }
.demo-output {
  min-height: 56px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
}
/* Classifier demo (js/demo-ui.js) */
.demo-privacy { margin: 0 0 14px; color: var(--text-secondary); font-size: 14px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.chip:hover { border-color: var(--card-hover-border); }
.demo-output.has-result {
  border-style: solid;
  font-family: var(--font-sans);
  font-size: 15px;
  white-space: normal;
  color: var(--text);
}
.demo-output.is-error { color: var(--text); border-color: var(--text); }
.result-verdict { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.result-verdict span { color: var(--text-secondary); font-weight: 400; font-size: 16px; }
.result-verdict.is-bad::before,
.result-verdict.is-good::before {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
}
.result-verdict.is-bad::before { content: "FLAGGED"; background: var(--text); color: var(--bg); }
.result-verdict.is-good::before { content: "CLEAR"; }
.result-rows { display: grid; gap: 6px; margin: 0 0 12px; }
.result-row { display: grid; grid-template-columns: 9.5em 1fr 3.5em; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.result-row.is-top { color: var(--text); font-weight: 600; }
.result-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.result-bar > span { display: block; height: 100%; background: var(--text); border-radius: 4px; }
.result-pct { text-align: right; font-variant-numeric: tabular-nums; }
.result-note, .result-why { margin: 0 0 8px; color: var(--text-secondary); font-size: 13px; }
.result-why span { font-weight: 600; }
.result-why code { display: inline-block; margin: 2px 2px 2px 0; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-family: var(--font-mono); font-size: 12px; color: var(--text); }
@media (max-width: 480px) {
  .result-row { grid-template-columns: 7em 1fr 3.2em; gap: 8px; }
}

.demo-soon {
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}
body[data-demo="on"] .demo-soon { display: none; }
body:not([data-demo="on"]) #demo { display: none; }

/* Details table */
.details th { width: 200px; background: var(--surface); font-weight: 600; }
.details td { color: var(--text-secondary); }

/* Links */
.link-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }


/* ---------------------------------------------------------------------
   7. RESEARCH
   --------------------------------------------------------------------- */

.page-title { margin: 0 0 8px; font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.03em; }
.page-lead { margin: 0 0 24px; font-size: 18px; color: var(--text-secondary); }

/* List page */
.post-list { margin: 0; padding: 0; list-style: none; }
.post { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.post:first-child { padding-top: 0; }
.post-title { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.post-title a { text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-meta { margin: 0 0 8px; font-size: 13px; color: var(--text-secondary); }
.post p { margin: 0; color: var(--text-secondary); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }

/* Paper page */
.paper {
  max-width: var(--paper-width);
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  counter-reset: sec;
}
.paper h1, .paper h2, .paper h3, .paper figcaption, .paper table, .paper .paper-meta,
.paper .cite-head, .paper .related, .paper .badge, .paper .copy-status {
  font-family: var(--font-sans);
}
.paper h1 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.03em; line-height: 1.2; }
.paper-authors { margin: 0 0 4px; font-family: var(--font-sans); font-size: 16px; }
.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.paper .tags { margin: 0; }

.abstract {
  margin: 0 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.abstract h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.abstract p { margin: 0; font-size: 16px; }

.paper-section h2 { margin: 36px 0 10px; font-size: 20px; letter-spacing: -0.02em; counter-increment: sec; }
.paper-section h2.unnumbered { counter-increment: none; }
.paper-section h2:not(.unnumbered)::before { content: counter(sec) ". "; color: var(--text-muted); }
.paper-section p { margin: 0 0 14px; }

.paper-fig { margin: 24px 0; }
.paper-fig img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.paper figcaption, .paper caption { margin-top: 8px; font-size: 14px; color: var(--text-secondary); text-align: left; }
.paper caption { caption-side: top; padding: 0 0 8px; }
.paper .table-wrap { margin: 20px 0; }
.paper .table-wrap table { margin: 0; }

.refs { margin: 0; padding-left: 24px; font-size: 15px; }
.refs li { margin: 0 0 8px; }

.cite-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 10px; }
.cite-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.copy-status { min-height: 1.4em; margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); }

.related {
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}


/* ---------------------------------------------------------------------
   8. GLOBAL FOOTER  (markup is injected by /js/footer.js)
   --------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  margin-top: 72px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.5fr 1fr;
  gap: 32px;
}
.footer-wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; color: var(--text) !important; }
.footer-col p { margin: 8px 0 0; }
.footer-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* Button that looks like a footer link (Cookie settings) */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-bottom .link-button { color: var(--text); text-decoration: none; }
.footer-bottom .link-button:hover { text-decoration: underline; }

/* Cookie notice (js/consent.js) */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font-size: 14px;
}
.cookie-text { flex: 1 1 320px; margin: 0; color: var(--text-secondary); }
.cookie-text strong { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; }


/* ---------------------------------------------------------------------
   9. RESPONSIVE
   --------------------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .details th { width: 38%; }
}

@media (max-width: 600px) {
  :root { --page-pad: 16px; }
  .page { padding-top: 28px; }
  .section { margin-top: 36px; }
  .hero { padding-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .primary-nav-inner { padding-top: 10px; padding-bottom: 4px; }
  .brand { font-size: 17px; }
  .primary-links { width: 100%; gap: 18px; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
