/* Styles for the backend-rendered pages (/b/<slug>, /places/...). Same palette as globals.css:
   black on white, yellow as the accent. No build step: these pages are written by the API, not Next. */
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* The serif of the Next.js site's hero and section titles (app/layout.tsx), latin subset. */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-latin-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
:root {
  --bg: #ffffff; --bg-soft: #f7f7f4; --card: #ffffff; --fg: #0a0a0a; --soft: #2b2b2b; --muted: #5c5c5c; --yellow: #ffc72c;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --line: rgb(10 10 10 / 0.12); --line-strong: rgb(10 10 10 / 0.3); --good: #2f8f5b; --good-ink: #1f6b42; --mixed: #9a4a00; --bad: #c43d3d; --star: #e0701a;
  /* Same roles as the semantic variables in frontend/app/globals.css. */
  --accent: #0a0a0a; --accent-fg: #ffc72c; --accent-ink: #0a0a0a;
  --ink-block: #0a0a0a; --on-ink: #f7f7f4; --on-ink-soft: rgb(247 247 244 / .72);
  --tint: #fff9e0; --tint-line: #ffe27a; --track: #e4e4e0;
  --logo-bubble: #0a0a0a; --logo-letter: #ffc72c; --shadow: 10 10 10;
  color-scheme: light;
}
/* Dark: <html data-theme="dark">, set before first paint by the script in base.html (the same
   one as frontend/lib/theme.ts). Values match globals.css. */
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-soft: #141414; --card: #171716; --fg: #f7f7f4; --soft: #d6d6d1; --muted: #a3a39c;
  --line: rgb(247 247 244 / 0.14); --line-strong: rgb(247 247 244 / 0.32);
  --good: #3fa36c; --good-ink: #5cc48a; --mixed: #f5a25d; --bad: #f07a7a;
  --accent: #ffc72c; --accent-fg: #0a0a0a; --accent-ink: #ffc72c;
  --ink-block: #141414; --tint: rgb(255 199 44 / .08); --tint-line: rgb(255 199 44 / .32); --track: rgb(247 247 244 / .12);
  --logo-bubble: #ffc72c; --logo-letter: #0a0a0a; --shadow: 0 0 0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* scroll-padding: the sticky header (65px) must not cover the target of an in-page link. */
html { background: var(--bg); color: var(--fg); overflow-x: clip; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
::selection { background: #ffc72c; color: #0a0a0a; }
body { margin: 0; font: 16px/1.55 "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
main.wrap { flex: 1; padding-bottom: 64px; }
/* Header and footer: the same look as the Next.js site's (frontend/components/Header.tsx and
   Footer.tsx). The values below are the Tailwind classes used there, written out. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; }
@media (min-width: 640px) { .site-header .bar { gap: 16px; } }
.logo, .site-header .nav { flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.logo svg { display: block; }
.site-header .nav { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.site-header .nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: background-color .15s; }
.site-header .nav a:hover { background: var(--line); }
.site-header .nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
/* The search box (frontend/components/HeaderSearch.tsx). Below 640px there is no room for an
   input: a magnifier links to /search, and takes the place of the "Search" (home) link. */
.site-search { display: none; position: relative; flex: 1; min-width: 0; max-width: 20rem; color: var(--muted); }
.site-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.site-search input { width: 100%; height: 36px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 14px; outline: none; }
.site-search input::placeholder { color: var(--muted); }
.site-search input:focus { border-color: var(--fg); }
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: auto; border-radius: 999px; }
.search-link:hover { background: var(--line); }
.site-header .nav a.nav-home, .site-header .nav a.nav-wide { display: none; }
@media (min-width: 640px) { .site-search { display: block; } .search-link { display: none; } .site-header .nav a.nav-home, .site-header .nav a.nav-wide { display: inline; } }
/* Two links, the magnifier and the name do not fit a 320px screen at full size. The same rule is
   in frontend/app/globals.css for the Next.js header, so both shrink at the same width. */
@media (max-width: 359px) { .site-header .nav { gap: 0; } .site-header .nav a { padding: 6px 8px; } .logo { gap: 6px; font-size: 18px; } }
/* Christmas theme: data-season is set by the renderer in season (app/season.py). The stripe is an
   overlay, so the header's height and sticky offset don't change. */
[data-season="christmas"] .site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #c8102e 0 16px, #008751 16px 32px);
}
.season-banner { background: #c8102e; color: #fff; text-align: center; font-size: 14px; }
.season-banner p { margin: 0 auto; padding-top: 8px; padding-bottom: 8px; }
.season-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.season-banner a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer { border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--soft); }
.site-footer .bar { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-thickness: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-footer .copyright { margin: 0; flex-shrink: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.biz-head { margin: 12px 0 24px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.answer .eyebrow { margin-bottom: 8px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stats { margin: 8px 0 0; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0 0 20px; box-shadow: 0 1px 2px rgb(var(--shadow) / .04), 0 8px 24px -18px rgb(var(--shadow) / .22); }
.lead { font-size: 18px; line-height: 1.55; margin: 0 0 12px; }
.headline { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.cols { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cols h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); margin-bottom: 6px; }
.cols3 { columns: 3 180px; }
ul { margin: 0 0 12px; padding-left: 20px; }
ul.links { list-style: none; padding: 0; }
ul.links li { margin: 4px 0; break-inside: avoid; }
.review header p { margin: 0 0 4px; }
.review .one-line { font-size: 18px; font-weight: 700; margin: 10px 0 12px; }
.verdict { font-size: 14px; }
.stars { color: var(--star); letter-spacing: 1px; }
/* Business page, at a glance: app/seo/templates/business.html. Tiles before the summary, a
   recommend bar split yes / maybe / no, keyword chips, and review cards in a pin grid. */
.glance { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; box-shadow: 0 1px 2px rgb(var(--shadow) / .04), 0 8px 24px -18px rgb(var(--shadow) / .22); }
.tile p { margin: 0; }
.tile-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.tile-big { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.tile-unit { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.tile-stars { font-size: 20px; line-height: 1.2; }
.tile-sub { font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px !important; font-size: 13px; color: var(--muted); }
.split { display: flex; gap: 2px; height: 12px; margin-top: 8px; border-radius: 999px; overflow: hidden; }
.seg { flex: 0 0 auto; min-width: 6px; }
.seg-yes { background: var(--good); } .seg-maybe { background: var(--star); } .seg-no { background: var(--bad); }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.themes { margin: 0 0 16px; }
.themes h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); margin-bottom: 8px; }
.theme-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.theme-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.theme-chips b { display: inline-block; min-width: 20px; margin: 0 -6px 0 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 12px; text-align: center; }
ul.plus, ul.minus, ul.star { list-style: none; padding-left: 0; }
ul.plus li, ul.minus li, ul.star li { position: relative; padding-left: 20px; }
ul.plus li::before, ul.minus li::before, ul.star li::before { position: absolute; left: 0; font-weight: 700; }
ul.plus li::before { content: "+"; color: var(--good); }
ul.minus li::before { content: "\2212"; color: var(--bad); }
ul.star li::before { content: "\2605"; color: var(--star); font-size: 13px; top: 2px; }
/* Review pins: up to three columns, each card led by its reel or voice note. Without /pins.js the
   cards sit in plain rows; with it (.pins-js) each card spans 4px rows by its own height, so the
   next card goes under the shortest column. Keep the 4px and 16px in step with pins.js. */
.pins { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - 32px) / 3)), 1fr)); margin: 0 0 20px; }
.pins-js { row-gap: 0; grid-auto-rows: 4px; }
.pins .review { min-width: 0; margin: 0; padding: 0; overflow: hidden; }
.pin-media { border-bottom: 1px solid var(--line); }
.pin-voice { padding: 16px; background: var(--tint); }
.pin-body { padding: 16px; }
.pins .review .one-line { font-size: 16px; }
.pins .points .cols { grid-template-columns: 1fr; }
/* Cards and tiles rise into place: as they enter the viewport where scroll-driven animation is
   supported, otherwise once on load with the first few staggered. Review cards also lift on hover.
   Nothing is held after the animation ends, so it never fights the hover lift. */
@keyframes card-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .card, .tile { animation: card-rise 520ms cubic-bezier(.22, 1, .36, 1) backwards; }
  .glance > :nth-child(2), .pins > :nth-child(2) { animation-delay: 70ms; }
  .glance > :nth-child(3), .pins > :nth-child(3) { animation-delay: 140ms; }
  .pins > :nth-child(4) { animation-delay: 210ms; }
  @supports (animation-timeline: view()) {
    .card, .tile { animation-duration: 1ms; animation-delay: 0s !important; animation-timing-function: ease-out; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .pins .review { transition: translate .18s ease-out, box-shadow .18s ease-out; }
  .pins .review:hover { translate: 0 -3px; box-shadow: 0 2px 4px rgb(var(--shadow) / .06), 0 18px 36px -18px rgb(var(--shadow) / .3); }
}
.pill { display: inline-block; margin-right: 6px; padding: 2px 12px; border-radius: 999px; font-weight: 700; color: #fff; }
/* Fixed fills (white text on them), so they keep their contrast in both themes. */
.pill-yes { background: #1f6b42; } .pill-maybe { background: #9a4a00; } .pill-no { background: #c43d3d; }
/* A claimed business: the gold seal beside its name, sized with the heading. */
.claimed-seal { display: inline-block; vertical-align: -0.08em; white-space: nowrap; cursor: help; }
.claimed-seal svg { display: block; width: .72em; height: .72em; }
.review .who { font-size: 14px; }
.points { margin-top: 12px; }
.points summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.points summary::-webkit-details-marker { display: none; }
.n-good { color: var(--good-ink); } .n-bad { color: var(--bad); }
.toggle { font-weight: 400; text-decoration: underline; color: var(--soft); }
.toggle::after { content: " \25BE"; }
.points[open] .toggle::after { content: " \25B4"; }
.points .cols { margin-top: 12px; }
.instagram-media { margin: 0 !important; max-width: 100% !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.pin-media blockquote.instagram-media { padding: 24px 16px; text-align: center; }
audio { display: block; width: 100%; }
ol.ranked { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
ol.ranked li { counter-increment: rank; position: relative; padding-left: 64px; }
ol.ranked li::before { content: counter(rank); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 700; display: grid; place-items: center; }
ol.ranked h3 { font-size: 18px; }
ol.ranked p { margin: 4px 0 0; }
/* "Add your review": a dark band with the WhatsApp button, like the home page's Giveback banner. */
.howto { margin-top: 64px; padding: 28px 24px; border: 0; border-radius: 10px; background: var(--ink-block); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line); }
.howto h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.5vw, 30px); letter-spacing: -0.01em; margin-bottom: 8px; }
.howto p { max-width: 46rem; margin: 0 0 16px; color: var(--on-ink-soft); }
.howto p:last-child { margin-bottom: 0; }
.howto .wa { padding: 12px 22px; }
.howto :focus-visible { outline-color: var(--yellow); }
@media (min-width: 640px) { .howto { padding: 36px 40px; } }
/* Score badge on a listing: the share of reviewers who recommend the place (.score in globals.css). */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 12px 0 0 !important; font-size: 14px; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 4px 8px; border-radius: 8px; background: #2f8f5b; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.score-mid { background: #9a4a00; } .score-low { background: #c43d3d; }
.wa { display: inline-block; background: #25d366; color: #062b14; font-weight: 700; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
#google-reviews h2 { margin-top: 0; }
#google-reviews .g-review { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
#google-reviews .g-review p { margin: 4px 0; }

.owner-box > :last-child { margin-bottom: 0; }
.owner-box details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.owner-box summary { cursor: pointer; font-weight: 600; }
/* Unclaimed businesses: the "Own this business?" box sits under the tiles (.glance + .owner-box),
   trimmed in the gold of a verified-organization check: a thin gold border, a gold seal and a gold
   button with a slow sheen. The claimed dispute note at the bottom of the page keeps the plain card. */
.glance + .owner-box {
  --gold: linear-gradient(135deg, #e9c94a 0%, #c9900f 35%, #e9c94a 70%, #c9900f 100%);
  padding: 16px 20px; border: 1.5px solid transparent;
  background: linear-gradient(180deg, #fffdf6, #fffaeb) padding-box, var(--gold) border-box;
  box-shadow: 0 1px 2px rgb(140 90 0 / .06), 0 12px 28px -20px rgb(160 110 0 / .45);
}
.owner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.owner-row h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.4vw, 22px); letter-spacing: -0.01em; }
.owner-row p { margin: 0; }
.owner-row > div { flex: 1 1 18rem; min-width: 0; }
.gold-seal { flex-shrink: 0; }
.gold-seal .tick { fill: #fff; }
.gold-cta { position: relative; overflow: hidden; display: inline-block; flex-shrink: 0; padding: 10px 20px; border-radius: 999px; text-decoration: none; color: #2a1a00;
  background: linear-gradient(135deg, #f1d36a, #d9a521 55%, #c9900f); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 4px 12px -6px rgb(160 100 0 / .6); transition: filter .15s ease, translate .15s ease; }
.gold-cta:hover { filter: brightness(1.05); translate: 0 -1px; }
.gold-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%) -200% 0 / 50% 100% no-repeat; }
@keyframes gold-sheen { 0%, 80% { background-position: -200% 0; } 100% { background-position: 300% 0; } }
@media (prefers-reduced-motion: no-preference) { .gold-cta::after { animation: gold-sheen 7s ease-in-out infinite; } }
.badge-box textarea { width: 100%; box-sizing: border-box; background: var(--card); color: var(--fg); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.badge-box button { font: inherit; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }

/* City guides (/guides, /guides/<city>): app/seo/templates/guide.html */
.guide-hero .lead { max-width: 46rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none; }
.chips a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.guide-section { margin: 56px 0 16px; scroll-margin-top: 16px; }
.guide-section > h2, #reviews-title, #ranked-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; margin-bottom: 6px; }
#reviews-title, #ranked-title { margin: 40px 0 16px; }
.section-lead { font-size: 17px; max-width: 46rem; margin: 0 0 16px; }
.sub { margin: 20px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0 0 12px; }
.grid > .card { margin: 0; }
.grid h3 { font-size: 18px; line-height: 1.25; }
.grid p { margin: 4px 0 0; }
.spot { background: var(--bg-soft); border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.badge-new { display: inline-block; margin: 0 0 8px !important; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px !important; font-size: 14px; }
.actions .wa { padding: 6px 14px; }
.more { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; margin: 12px 0 0; }
.area ul.links { margin: 10px 0 0; font-size: 15px; }
.faq h3 { font-size: 17px; margin: 18px 0 4px; }
.faq p { margin: 0; }
.guide-list h2 { font-size: 22px; margin: 4px 0 8px; }
.guide-list a { text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.grid.guide-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid .place h3 a, ol.ranked h3 a { text-decoration: none; }
.grid .place h3 a:hover, ol.ranked h3 a:hover { text-decoration: underline; }
.guide-list a { text-decoration-thickness: 2px; }
.guide-link { font-weight: 700; }
.guide-link a { text-decoration-thickness: 2px; }
/* Guide photos (frontend/public/guide-images). The frame keeps its shape while the file loads. */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 10px; border: 0; background: var(--line); }
.photo figcaption { margin-top: 6px; font-size: 12px; color: var(--soft); }
/* Guide hero: the city photo under a dark wash with the title over it (the home page's .hero).
   Without a photo the title block is plain text on the page. */
.hero-band.has-photo { position: relative; overflow: hidden; margin: 12px 0 24px; border-radius: 24px; background: #141414; color: #fff; }
.hero-band.has-photo .hero-photo { margin: 0; }
.hero-band.has-photo .hero-photo img { aspect-ratio: 5 / 2; min-height: 320px; border-radius: 0; }
.hero-band.has-photo .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 10 10 / .85) 0%, rgb(10 10 10 / .35) 55%, rgb(10 10 10 / .1) 100%); }
.hero-band.has-photo .hero-photo figcaption { position: absolute; z-index: 1; right: 16px; top: 12px; margin: 0; color: rgb(255 255 255 / .8); }
.hero-band.has-photo .hero-title { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 20px; }
.hero-band.has-photo .eyebrow { color: var(--yellow); letter-spacing: .16em; }
.hero-band.has-photo h1 { margin-bottom: 0; max-width: 18em; }
.hero-band.has-photo :focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .hero-band.has-photo .hero-title { padding: 40px; } }
.section-photo { margin: 0 0 16px; }
.section-photo img { aspect-ratio: 5 / 2; }
.spot-photo { margin: -20px -20px 14px; }
.spot-photo img { aspect-ratio: 8 / 5; border: 0; border-bottom: 1px dashed var(--line-strong); border-radius: 9px 9px 0 0; }
.spot-photo figcaption { padding: 0 20px; }
.index-photo { display: block; margin: -20px -20px 14px; }
.index-photo img { aspect-ratio: 2 / 1; border: 0; border-bottom: 1px solid var(--line); border-radius: 15px 15px 0 0; }


/* ---------- Editorial layer (mirrors frontend/app/globals.css and the Next.js components) ----------
   Display type in Fraunces with optical sizing, numbered section heads on a rule, ruled figure
   rows instead of tiles, pull quotes, full-bleed bands, and the ink footer with its oversized
   wordmark. */
h1, h2, .tile-big, .numeral { font-optical-sizing: auto; }
h1 { font-size: clamp(40px, 1.5rem + 3.4vw, 72px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; margin: 16px 0 12px; }
.eyebrow, .sub, .tile-label, .cols h2, .themes h2 { font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 40px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.biz-head { margin: 8px 0 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.biz-head .muted { font-size: 18px; }
.biz-head .stats a { font-weight: 700; color: var(--accent-ink); }

/* Header: Fraunces wordmark, plain links underlined when current. */
.logo { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.logo .logo-bubble { fill: var(--logo-bubble); }
.logo .logo-letter { stroke: var(--logo-letter); }
.site-header .nav { font-weight: 700; }
.site-header .nav a { border-radius: 0; background: linear-gradient(currentColor, currentColor) 50% calc(100% - 4px) / 0 1px no-repeat; transition: background-size .24s cubic-bezier(.22, 1, .36, 1); }
.site-header .nav a:hover { background-color: transparent; background-size: calc(100% - 24px) 1px; }
.site-header .nav a[aria-current="page"] { background-color: transparent; color: inherit; background-size: calc(100% - 24px) 2px; }
.theme-toggle { display: none; align-items: center; justify-content: center; gap: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.theme-toggle:hover { background: var(--line); }
.theme-toggle svg { display: none; }
.theme-toggle[data-choice="system"] .i-system, .theme-toggle[data-choice="light"] .i-light, .theme-toggle[data-choice="dark"] .i-dark { display: block; }
.search-link, .site-header .theme-toggle { flex-shrink: 0; }
/* Phones have no room for it beside the links; the footer repeats the toggle. */
@media (min-width: 640px) { .site-header .theme-toggle { display: inline-flex; } }

/* Section heads: a rule, a small kicker, a serif title. */
.guide-section > h2, #reviews-title, #ranked-title, .answer-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 1.3rem + 1.9vw, 46px); line-height: 1.05; letter-spacing: -0.025em; }
.guide-section, #reviews-title, #ranked-title { border-top: 1px solid var(--fg); padding-top: 14px; }
.guide-section { margin-top: 72px; }
#reviews-title, #ranked-title { margin-top: 64px; }

/* At a glance: one ruled row of big figures, no tiles. */
.glance { gap: 0; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.glance .tile { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 24px 0; animation: none; }
.glance .tile + .tile { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  /* One ruled row: as many equal columns as there are tiles, never a wrapped second row. */
  .glance { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .glance .tile { padding: 24px; }
  .glance .tile:first-child { padding-left: 0; }
  .glance .tile + .tile { border-top: 0; border-left: 1px solid var(--line); }
}
.tile-big { font-family: var(--serif); font-weight: 500; font-size: 60px; line-height: .95; letter-spacing: -0.03em; margin-top: 12px !important; font-variant-numeric: lining-nums; }
.tile-unit { font-family: "Lato", ui-sans-serif, system-ui, sans-serif; }
.split { height: 8px; margin-top: 16px; }

/* The gist: the AI headline as a pull quote. */
.answer { background: none; border: 0; border-top: 1px solid var(--fg); border-radius: 0; box-shadow: none; padding: 14px 0 0; animation: none; }
.answer .lead { font-size: 17px; max-width: 46rem; }
.headline { position: relative; padding-left: 20px; border-left: 4px solid var(--yellow); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 1rem + 1vw, 30px); line-height: 1.3; letter-spacing: -0.01em; margin: 24px 0 28px; max-width: 52rem; }
.answer .cols { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.review .one-line, .pins .review .one-line { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.grid h3, ol.ranked h3, .guide-list h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; }
ol.ranked li::before { font-family: var(--serif); font-weight: 500; }

/* Guide cover: full-bleed photo with the title set large (the home page's .hero-cover). */
.hero-band.has-photo { width: 100vw; margin: 0 0 32px calc(50% - 50vw); border-radius: 0; }
.hero-band.has-photo .hero-photo img { aspect-ratio: auto; height: min(72svh, 44rem); min-height: 360px; }
.hero-band.has-photo .hero-title { max-width: 72rem; margin: 0 auto; padding: 24px 16px 40px; }
@media (min-width: 640px) { .hero-band.has-photo .hero-title { padding: 40px 24px 56px; } }
.hero-band.has-photo h1 { font-size: clamp(44px, 1.6rem + 5vw, 96px); line-height: .95; }
.hero-band.has-photo .hero-photo::after { background: linear-gradient(0deg, rgb(10 10 10 / .88) 0%, rgb(10 10 10 / .35) 55%, rgb(10 10 10 / .12) 100%), linear-gradient(90deg, rgb(10 10 10 / .45), transparent 70%); }
.hero-band.has-photo + .lead, .guide-hero .lead { font-size: 19px; }

/* Unclaimed owner box in dark: the same gold edge on a dark gold wash. */
:root[data-theme="dark"] .glance + .owner-box { background: linear-gradient(180deg, #1d1806, #171305) padding-box, var(--gold) border-box; }

/* Footer: an ink band with link columns and the wordmark cropped by the page's foot. */
.site-footer { margin-top: 0; border-top: 0; background: var(--ink-block); color: var(--on-ink); overflow: hidden; box-shadow: inset 0 1px 0 var(--line); }
.site-footer .bar { display: grid; align-items: start; gap: 40px; padding-top: 56px; padding-bottom: 0; }
@media (min-width: 768px) { .site-footer .bar { grid-template-columns: 1.4fr repeat(3, 1fr); padding-top: 80px; } }
.site-footer .tagline p { margin: 0; }
.site-footer .tagline .big { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--on-ink); }
.site-footer .tagline .big em { font-weight: 400; }
.site-footer .tagline .small { margin-top: 12px; max-width: 20rem; color: var(--on-ink-soft); }
.site-footer nav { display: block; }
.site-footer nav p { margin: 0 0 16px; font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.site-footer nav a { display: block; margin: 0 0 10px; color: var(--on-ink); }
.site-footer .legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; padding-bottom: 0; border-top: 1px solid rgb(247 247 244 / .16); color: var(--on-ink-soft); }
.site-footer .legal .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-footer .theme-toggle { display: inline-flex; width: auto; height: auto; padding: 6px 12px; border-radius: 999px; color: var(--on-ink-soft); }
.site-footer .theme-toggle:hover { background: rgb(247 247 244 / .1); text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.wordmark { margin: 32px 0 -0.12em; font-family: var(--serif); font-weight: 600; font-size: clamp(80px, 22vw, 320px); line-height: .78; letter-spacing: -0.05em; text-align: center; white-space: nowrap; color: var(--yellow); user-select: none; pointer-events: none; }
main.wrap { padding-bottom: 96px; }
/* Narrow header, after the rules above so the smaller wordmark wins (same breakpoint as the
   rule near the top of this file and frontend/app/globals.css). */
@media (max-width: 359px) { .logo { font-size: 18px; } }
