/* ------------------------------------------------------------------
   Seasonaire — shared styles for both themes.
   Theme "altitude" (default, dark): Instrument Serif + Manrope, contour-line star.
   Theme "logbook" (light): Bricolage Grotesque + IBM Plex Mono, season-ticket star.
   Fonts are self-hosted from /public/fonts (no third-party requests). Switch theme in Admin → Settings, or preview with ?theme=logbook on any page.
------------------------------------------------------------------- */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0a0f1c;
  --bg-2: #0f1626;
  --ink: #f4efe6;
  --ink-87: rgba(244,239,230,.87);
  --ink-70: rgba(244,239,230,.68);
  --ink-50: rgba(244,239,230,.5);
  --ink-30: rgba(244,239,230,.3);
  --line: rgba(244,239,230,.12);
  --line-strong: rgba(244,239,230,.22);
  --accent: #d6ad5f;          /* brass */
  --accent-ink: #0a0f1c;
  --accent-2: #8fc7e8;        /* glacier */
  --glass: rgba(16,23,40,.55);
  --glass-strong: rgba(16,23,40,.78);
  --card: rgba(255,255,255,.035);
  --card-hover: rgba(255,255,255,.06);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: 'Instrument Serif', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Manrope', system-ui, sans-serif;
  --head-weight: 400;
  --head-tracking: -0.01em;
  --max: 1180px;
  --gutter: 20px;
}
[data-theme="logbook"] {
  --bg: #f4efe6;
  --bg-2: #ebe4d6;
  --ink: #14213d;
  --ink-87: rgba(20,33,61,.87);
  --ink-70: rgba(20,33,61,.7);
  --ink-50: rgba(20,33,61,.52);
  --ink-30: rgba(20,33,61,.3);
  --line: rgba(20,33,61,.14);
  --line-strong: rgba(20,33,61,.28);
  --accent: #c8452b;          /* stamp red */
  --accent-ink: #f4efe6;
  --accent-2: #1f6f5f;        /* pine */
  --glass: rgba(244,239,230,.7);
  --glass-strong: rgba(244,239,230,.9);
  --card: rgba(255,255,255,.55);
  --card-hover: rgba(255,255,255,.85);
  --shadow: 0 14px 40px rgba(20,33,61,.12);
  --radius: 6px;
  --radius-sm: 4px;
  --font-head: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --font-body: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --head-weight: 700;
  --head-tracking: -0.03em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-87);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
/* Depth: quiet grain over everything */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="logbook"] body::before { opacity: .18; mix-blend-mode: multiply; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.hidden { display: none !important; }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); line-height: 1.02; margin: 0; color: var(--ink); }
h1, .h1 { font-size: clamp(44px, 7.4vw, 96px); }
h2, .h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3, .h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; }
[data-theme="logbook"] h1, [data-theme="logbook"] .h1 { font-size: clamp(40px, 6.6vw, 84px); font-variation-settings: 'opsz' 96; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; }
[data-theme="logbook"] .eyebrow { font-weight: 500; letter-spacing: .1em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-70); max-width: 62ch; line-height: 1.5; }
.muted { color: var(--ink-50); }
.small { font-size: 13.5px; }
em.ital { font-style: italic; color: var(--accent); }
[data-theme="logbook"] em.ital { font-style: normal; color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: var(--glass); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 24px; color: var(--ink); letter-spacing: -.01em; }
[data-theme="logbook"] .brand { font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-transform: uppercase; }
.brand svg { width: 34px; height: 22px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink-70); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(214,173,95,.25); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--card-hover); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
[data-theme="logbook"] .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-family: var(--font-mono); font-weight: 500;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-right: 26px; }
[data-theme="logbook"] .btn:hover { box-shadow: none; transform: translate(-1px,-1px); }
[data-theme="logbook"] .btn.ghost { clip-path: none; padding-right: 20px; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-70); background: var(--card); white-space: nowrap; }
.chip.accent { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.chip.live { border-color: transparent; background: var(--accent-2); color: #0a0f1c; }
[data-theme="logbook"] .chip { border-radius: 3px; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
[data-theme="logbook"] .chip.live { color: #f4efe6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1.5px solid var(--accent); padding: 3px 8px; border-radius: 4px; transform: rotate(-3deg); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--ink-70); max-width: 56ch; }
.divider { height: 1px; background: var(--line); }
/* Rhyme: contour stroke as a section divider */
.contour-rule { width: 100%; height: 28px; display: block; color: var(--line-strong); }
[data-theme="logbook"] .contour-rule { display: none; }
[data-theme="logbook"] .section + .section { border-top: 1px dashed var(--line-strong); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 96px); min-height: 78vh; display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero-star { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-star svg { width: 100%; height: 100%; }
.hero-star .contours { display: block; }
.hero-star .ticket { display: none; }
[data-theme="logbook"] .hero-star .contours { display: none; }
[data-theme="logbook"] .hero-star .ticket { display: block; }
/* fade the star under the copy so the words always win */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, color-mix(in srgb, var(--bg) 25%, transparent) 70%, transparent 100%),
              linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow b { color: var(--ink-87); font-weight: 700; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.contour-lines { animation: drift 24s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(-3%) } }
@media (prefers-reduced-motion: reduce) { .contour-lines { animation: none; } }

/* search bar */
.search { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr auto; gap: 8px; padding: 8px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.search select, .search input { background: transparent; border: 0; padding: 12px 16px; outline: none; color: var(--ink); width: 100%; min-width: 0; border-radius: 999px; }
.search select option { color: #111; }
.search > * + * { border-left: 1px solid var(--line); }
.search .btn { border-left: 0; }
[data-theme="logbook"] .search { border-radius: 6px; background: #fff; }
[data-theme="logbook"] .search select, [data-theme="logbook"] .search input { border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }
.search-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-50); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: block; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: background .2s, transform .2s, border-color .2s; }
.tile:hover { background: var(--card-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.tile .ico { width: 44px; height: 26px; color: var(--accent); margin-bottom: 18px; }
.tile .h3 { margin-bottom: 6px; }
.tile .count { font-family: var(--font-mono); color: var(--ink-50); font-size: 13px; }
.tile p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-70); }
[data-theme="logbook"] .tile { background: var(--card); border: 1px solid var(--line-strong); }
[data-theme="logbook"] .tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent-2); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: background .2s, transform .2s, border-color .2s; backdrop-filter: blur(6px); }
.card:hover { background: var(--card-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card .h3 { font-size: 22px; }
.card .loc { color: var(--ink-50); font-size: 13.5px; }
.card .desc { color: var(--ink-70); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-50); }
.card .foot .go { color: var(--accent); font-weight: 700; }
/* Rhyme: a faint contour arc in the corner of every card */
.card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 10px transparent, inset 0 0 0 11px var(--line); opacity: .55; pointer-events: none; }
[data-theme="logbook"] .card::after { display: none; }
[data-theme="logbook"] .card { border: 1px solid var(--line-strong); background: var(--card); box-shadow: 0 1px 0 rgba(20,33,61,.08); }
[data-theme="logbook"] .card .foot { border-top: 1px dashed var(--line-strong); }
.featured-tag { position: absolute; top: 14px; right: 14px; }

/* job rows */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1.6fr 1.2fr .9fr .8fr auto; gap: 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.row:hover { background: var(--card-hover); }
.row .title { font-family: var(--font-head); font-size: 22px; color: var(--ink); line-height: 1.1; }
[data-theme="logbook"] .row .title { font-size: 19px; font-weight: 700; }
.row .emp { color: var(--ink-70); font-size: 14px; }
.row .meta { color: var(--ink-50); font-size: 13px; }
.row .go { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.row .sub { display: block; font-size: 12.5px; color: var(--ink-50); margin-top: 2px; font-family: var(--font-body); }
.two-col .row { grid-template-columns: 1.5fr 1fr .9fr auto; }
.two-col .row .meta:nth-child(4) { display: none; }

/* ---------- timeline (how a season works) ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line-strong); }
.tl { padding: 26px 16px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; top: 6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl .when { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.tl .what { font-family: var(--font-head); font-size: 22px; color: var(--ink); margin: 6px 0 6px; line-height: 1.1; }
[data-theme="logbook"] .tl .what { font-size: 18px; font-weight: 700; }
.tl p { margin: 0; font-size: 13.5px; color: var(--ink-70); }
[data-theme="logbook"] .timeline::before { border-top: 2px dashed var(--line-strong); background: none; height: 0; }
[data-theme="logbook"] .tl::before { border-radius: 2px; }

/* ---------- filters (list pages) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); position: sticky; top: 72px; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.filters select, .filters input { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--ink); outline: none; }
.filters select option { color: #111; }
.filters input { flex: 1; min-width: 160px; }
.filters .count { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--ink-50); white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 8px 14px; cursor: pointer; color: var(--ink-70); font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
[data-theme="logbook"] .filters select, [data-theme="logbook"] .filters input, [data-theme="logbook"] .seg { border-radius: 4px; font-family: var(--font-mono); font-size: 13.5px; }
[data-theme="logbook"] .filters { background: var(--glass-strong); }

/* ---------- detail pages ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 28px; }
.page-head .crumbs { font-size: 13px; color: var(--ink-50); margin-bottom: 18px; }
.page-head .crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(38px, 5.6vw, 72px); margin-bottom: 14px; }
.page-head .chips { margin: 16px 0; }
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; backdrop-filter: blur(6px); }
.panel h3 { margin-bottom: 12px; }
.panel.sticky { position: sticky; top: 84px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; }
.facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink-87); font-size: 15px; }
.facts .wide { grid-column: 1 / -1; }
.prose { color: var(--ink-70); font-size: 16.5px; line-height: 1.65; max-width: 66ch; }
.prose h3 { margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.callout { padding: 16px 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--accent); background: var(--card); color: var(--ink-87); font-size: 15px; }
.callout b { color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-70); font-weight: 600; }
.form input, .form select, .form textarea { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--ink); outline: none; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form select option { color: #111; }
.form textarea { min-height: 110px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { justify-content: center; width: 100%; }
.form .fine { font-size: 12.5px; color: var(--ink-50); margin: 0; }
.form .ok { padding: 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--accent); color: var(--ink); }
.form .err { color: #ff8a7a; font-size: 13.5px; }
[data-theme="logbook"] .form .err { color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- misc ---------- */
.stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(34px, 4vw, 52px); color: var(--ink); line-height: 1; }
[data-theme="logbook"] .stat b { font-weight: 800; }
.stat span { font-size: 13px; color: var(--ink-50); }
.cta-band { padding: clamp(40px, 6vw, 70px); border-radius: calc(var(--radius) * 1.4); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), var(--bg-2)); border: 1px solid var(--line-strong); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--ink-70); margin: 0 0 20px; }
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--ink-50); font-size: 13.5px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer a:hover { color: var(--ink); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-50); }
.skeleton { height: 120px; border-radius: var(--radius); background: var(--card); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5 } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); }
.preview-bar { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-align: center; padding: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
  .timeline::before { display: none; }
  .tl { padding-top: 22px; }
  .cta-band { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .row .meta:nth-child(4) { display: none; }
}
@media (max-width: 720px) {
  .nav .wrap { gap: 12px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--glass-strong); border-bottom: 1px solid var(--line); padding: 8px 0; backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px var(--gutter); }
  .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg) 85%); }
  .search { grid-template-columns: 1fr; border-radius: var(--radius); padding: 10px; }
  .search > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { border-top: 0; justify-content: center; }
  .filters { position: static; }
  .filters .count { margin-left: 0; width: 100%; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row .go { justify-self: start; }
  .facts { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
}
