/* Where AI Eats — one stylesheet.
   Warm paper, a serif for headlines, photos in soft frames, and three engine
   colors that carry the data (palette validated for color-vision deficiency). */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --bg-2: #f3eee6;
  --ink: #221c18;
  --ink-2: #5b524a;
  --muted: #8b8178;
  --line: #e9e2d8;
  --line-2: #d8cfc3;
  --accent: #b5532b;
  --accent-ink: #ffffff;
  --accent-soft: #f8e3d6;
  --highlight: #fde9d8;
  --chatgpt: #1baf7a;
  --gemini: #2a78d6;
  --perplexity: #eb6834;
  --up: #1f6b34;
  --up-bg: #e3f3e6;
  --down: #a93a2b;
  --down-bg: #fbe5df;
  --new-bg: #fdf0c2;
  --dot-off: #e7e1d8;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -12px rgba(60, 40, 20, .18);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #1f1b18;
    --bg-2: #262120;
    --ink: #f3ede6;
    --ink-2: #c9c0b6;
    --muted: #958b80;
    --line: #322c28;
    --line-2: #453d37;
    --accent: #e0754a;
    --accent-ink: #1a110c;
    --accent-soft: #3d2418;
    --highlight: #4a2a1a;
    --chatgpt: #199e70;
    --gemini: #3987e5;
    --perplexity: #d95926;
    --up: #6fcf84;
    --up-bg: #16301c;
    --down: #ff8a78;
    --down-bg: #3a1a14;
    --new-bg: #3d3210;
    --dot-off: #3a332e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img, svg { display: block; max-width: 100%; }
img { background: var(--bg-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h1, h2, .display, .display-md { font-family: var(--serif); font-optical-sizing: auto; }
h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
b, strong { font-weight: 700; }
small { font-size: 0.85em; }
em { font-style: italic; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.sample-bar { background: var(--new-bg); color: var(--ink); font-size: 14px; padding: 8px var(--gutter); text-align: center; border-bottom: 1px solid var(--line); }
.masthead {
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); height: 64px; position: sticky; top: 0; z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav .nav-search { color: var(--accent-ink); background: var(--accent); font-weight: 600; margin-left: 6px; }
.nav .nav-search:hover { background: color-mix(in srgb, var(--accent) 88%, black); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; border-radius: 2px; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; background: var(--surface); padding: 6px var(--gutter) 14px; position: sticky; top: 64px; z-index: 49; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-nav a { text-decoration: none; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
}

/* ---------- layout ---------- */
main { display: block; }
.section, .hero, .page-head, .crumbs { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { max-width: var(--max); margin: 0 auto; padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 28px; padding-bottom: 28px; }
.section-soft { max-width: none; background: var(--bg-2); padding-top: 64px; padding-bottom: 64px; }
.section-soft > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 26px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 8px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.h-sm { font-size: 24px; margin-bottom: 6px; }
.crumbs { max-width: var(--max); margin: 0 auto; padding-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.display { font-size: clamp(42px, 6.2vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; }
.display-md { font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.display em, .display-md em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin-top: 20px; }
.lede em { font-style: normal; background: var(--highlight); padding: 0 .2em; border-radius: 4px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fine-print { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 80ch; }
.empty { color: var(--muted); padding: 32px 0; }

/* ---------- hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding-top: clamp(36px, 6vw, 72px); padding-bottom: 48px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-photo { order: -1; } }
.hero-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 10 / 11; }
@media (max-width: 900px) { .hero-photo { aspect-ratio: 16 / 9; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.1;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #221c18; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ticker ---------- */
.ticker-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker { overflow: hidden; display: flex; }
.ticker-track { display: flex; flex-shrink: 0; animation: ticker 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker-track { animation: none; } .ticker-track[aria-hidden] { display: none; } }
.tick { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 22px; white-space: nowrap; border-right: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.tick-arrow { font-size: 11px; }
.tick-up .tick-arrow { color: var(--up); }
.tick-down .tick-arrow { color: var(--down); }
.tick-new .tick-arrow { color: var(--accent); }
.tick-name { font-weight: 600; }
.tick-meta { color: var(--muted); font-size: 13px; }

/* ---------- cards & boards ---------- */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .featured { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 20px; }
.card-photo { display: block; aspect-ratio: 20 / 11; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-head { margin-bottom: 12px; }
.card-head h2, .card-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.card-head a { text-decoration: none; }
.card-head a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.card-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent); }
.card-link:hover { text-decoration: underline; }
.mini-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-board li { display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "rank name tally" ". dots move"; align-items: center; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-board li > .mini-rank { grid-area: rank; }
.mini-board li > .mini-name { grid-area: name; }
.mini-board li > .dots { grid-area: dots; }
.mini-board li > .tally { grid-area: tally; justify-self: end; }
.mini-board li > .move { grid-area: move; justify-self: end; }
.mini-rank { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-name { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-name:hover { text-decoration: underline; }
.board-stack { display: flex; flex-direction: column; gap: 22px; }
.card-wide { display: grid; grid-template-columns: 200px 1fr; }
.card-wide .card-body { padding: 22px 24px; }
.card-photo-side { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 760px) { .card-wide { grid-template-columns: 1fr; } .card-photo-side { aspect-ratio: 20 / 9; } }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 8px; }
@media (max-width: 720px) { .sheet { padding: 14px 14px 4px; } }

/* answer dots — one per answer, grouped by engine */
.dots { display: inline-flex; gap: 7px; align-items: center; }
.dot-group { display: inline-flex; gap: 3px; }
.dot-group i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot-off); }
.dots-sm .dot-group i { width: 9px; height: 9px; }
.dot-chatgpt i.on { background: var(--chatgpt); }
.dot-gemini i.on { background: var(--gemini); }
.dot-perplexity i.on { background: var(--perplexity); }
.tally { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally b { font-size: 1.05em; }
.tally-of { color: var(--muted); font-size: 0.85em; }

.move { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.4; font-variant-numeric: tabular-nums; }
.move-up { background: var(--up-bg); color: var(--up); }
.move-down { background: var(--down-bg); color: var(--down); }
.move-new { background: var(--new-bg); color: var(--ink); }
.move-steady { background: var(--bg-2); color: var(--muted); }

.legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend-note { color: var(--muted); }
.swatch { width: 11px; height: 11px; border-radius: 50%; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.sw-chatgpt { background: var(--chatgpt); }
.sw-gemini { background: var(--gemini); }
.sw-perplexity { background: var(--perplexity); }

table { border-collapse: collapse; width: 100%; }
.board th, .board td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.board thead th { border-top: 0; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-bottom: 8px; }
.board tbody tr:hover { background: var(--bg); }
.c-rank { width: 48px; }
.rank { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.board tbody tr:nth-child(-n+3) .rank { color: var(--accent-ink); background: var(--accent); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.c-name { min-width: 180px; }
.rname { font-weight: 600; font-size: 17px; text-decoration: none; display: block; }
.rname:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.raddr { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.c-dots { white-space: nowrap; }
.th-legend { display: inline-flex; gap: 10px; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.lg-chatgpt::before { background: var(--chatgpt); }
.lg-gemini::before { background: var(--gemini); }
.lg-perplexity::before { background: var(--perplexity); }
.c-tally { width: 70px; }
.c-pos { width: 90px; }
.c-move { width: 110px; text-align: right !important; }
.board-compact th, .board-compact td { padding: 9px 8px; }
.board-compact .rname { font-size: 15px; }
@media (max-width: 720px) {
  .board thead { display: none; }
  .board .c-pos { display: none; }
  .board tbody tr { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "rank name tally" ". dots move"; align-items: center; gap: 6px 8px; padding: 12px 0; border-top: 1px solid var(--line); }
  .board tbody tr:first-child { border-top: 0; }
  .board tbody td { border-top: 0; padding: 0; width: auto; }
  .board td.c-rank { grid-area: rank; }
  .board td.c-name { grid-area: name; min-width: 0; }
  .board td.c-dots { grid-area: dots; }
  .board td.c-tally { grid-area: tally; justify-self: end; }
  .board td.c-move { grid-area: move; justify-self: end; }
  .board-compact tbody tr { grid-template-columns: 32px 1fr auto; padding: 9px 0; }
}

.fell { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fell li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; display: inline-flex; gap: 8px; align-items: baseline; }
.fell-rank { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.disclosure { border-top: 1px solid var(--line); padding: 14px 0; }
.disclosure summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.disclosure summary::before { content: "+"; color: var(--accent); width: 14px; font-weight: 700; }
.disclosure[open] summary::before { content: "–"; }
.disclosure summary::-webkit-details-marker { display: none; }
.prompts { margin: 12px 0 6px; padding-left: 22px; color: var(--ink-2); font-family: var(--serif); font-size: 18px; }
.prompts li { margin: 4px 0; }
.rejected { margin: 10px 0 0; padding-left: 22px; color: var(--muted); font-size: 14px; columns: 2; column-gap: 32px; }
@media (max-width: 720px) { .rejected { columns: 1; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-head { max-width: var(--max); margin: 0 auto; padding-top: 24px; padding-bottom: 8px; }
.page-head-photo { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .page-head-photo { grid-template-columns: 1fr; } .head-photo { order: -1; aspect-ratio: 16 / 7; } }
.head-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cities ---------- */
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .city-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.city { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.city:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,40,20,.06), 0 18px 32px -14px rgba(60,40,20,.28); }
.city-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.city-photo img { width: 100%; height: 100%; object-fit: cover; }
.city-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; flex: 1; }
.city-name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; display: flex; align-items: baseline; gap: 7px; }
.city-name small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.city-top { display: flex; flex-direction: column; gap: 2px; }
.city-top-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.city-top-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.city-top-meta { font-size: 13px; color: var(--muted); }
.city-count { font-size: 12px; color: var(--muted); margin-top: auto; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { font-family: var(--serif); font-size: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- panels ---------- */
.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .section-split { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(26px, 3vw, 34px); }
.panel-line { border: 1px solid var(--line); }
.panel-warm { background: var(--accent-soft); }
.panel-warm .kicker { color: var(--accent); }
.panel-photo { position: relative; padding: 0; overflow: hidden; min-height: 360px; color: #fff; border: 0; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-over { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: flex-end; background: linear-gradient(to top, rgba(20,12,8,.86) 0%, rgba(20,12,8,.55) 55%, rgba(20,12,8,.1) 100%); }
.panel-over .kicker { color: rgba(255,255,255,.75); }
.panel-over p { color: rgba(255,255,255,.9); }
.panel .hero-actions { margin-top: 12px; }
.newsletter { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 200px; }
.newsletter-frame { width: 100%; min-height: 220px; border: 0; border-radius: var(--radius-sm); }
.form-note { font-size: 13px; color: var(--muted); flex-basis: 100%; }
input[type="text"], input[type="email"], input[type="search"], textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 14px; width: 100%; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.embed { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.embed textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; }
.badge-preview { margin: 8px 0 4px; border-radius: 10px; }
.partners { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.partners li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius-sm); }
.partners a { font-weight: 600; text-decoration: none; }
.partners a:hover { text-decoration: underline; }
.partner-soon { font-weight: 600; opacity: .7; }
.partners small { color: var(--ink-2); }

/* ---------- restaurant ---------- */
.plain { text-decoration: none; }
.plain:hover { text-decoration: underline; }
.engine-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.engine-cards .card { padding: 20px; }
.engine-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.engine-rows li { display: grid; grid-template-columns: 110px auto 1fr; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.engine-name { font-weight: 600; display: inline-flex; align-items: center; }
.engine-stat { font-size: 14px; color: var(--ink-2); text-align: right; }
.history th, .history td { text-align: left; padding: 10px 10px; border-top: 1px solid var(--line); }
.history thead th { border-top: 0; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bar-cell { width: 40%; }
.bar { display: block; height: 10px; width: var(--w); min-width: 2px; background: var(--accent); border-radius: 5px; }

/* ---------- movers ---------- */
.moves th, .moves td { text-align: left; padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.moves thead th { border-top: 0; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.moves .rname { font-size: 16px; }
@media (max-width: 720px) { .moves thead { display: none; } .moves tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); } .moves td { border: 0; padding: 0; } .moves td:first-child { grid-column: 1 / 3; } }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 30px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.plain-table th, .plain-table td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.plain-table thead th { border-top: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- search ---------- */
.search { max-width: 640px; }
.search input { font-size: 20px; padding: 16px 18px; border-color: var(--line-2); box-shadow: var(--shadow); }
.search input:focus { border-color: var(--accent); }
.search-status { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.results { list-style: none; margin: 24px 0 0; padding: 0; max-width: 760px; }
.results li { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.results .r-name { font-weight: 600; font-size: 18px; text-decoration: none; }
.results .r-name:hover { text-decoration: underline; }
.results .r-city { color: var(--muted); font-size: 14px; }
.results .r-boards { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.results .r-board { font-size: 13px; background: var(--bg-2); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.results .r-board b { color: var(--ink); }
.claim { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); padding: 56px var(--gutter) 32px; margin-top: 40px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-foot { color: var(--ink); margin-bottom: 14px; }
.footer-blurb { max-width: 48ch; margin-bottom: 10px; color: var(--ink); }
.footer-fine { font-size: 13px; max-width: 52ch; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 { color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal, .footer-credits { max-width: var(--max); margin: 36px auto 0; font-size: 12px; color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; }
.footer-credits { margin-top: 8px; }
