/* Fontavio marketing site (T-135, restyled T-198 to the founder's Claude
   Design pass — docs/design/website/). Design tokens below are the app's own
   palette (app/lib/core/theme/tokens.dart): teal #0E7490 primary, per-category
   dot colours reused from the map so a chip here means the same thing as a
   pin in the app. Light/dark both live as custom properties; the toggle
   script in Base.astro just flips html[data-theme]. */

/* ---------------------------------------------------------- self-hosted fonts
   Newsreader/Roboto/Roboto Mono, latin + latin-ext (Finnish needs latin-ext).
   Self-hosted rather than the Google Fonts CDN link the design uses: a
   request to fonts.googleapis.com/fonts.gstatic.com sends every visitor's IP
   to Google, which this site's own privacy policy does not disclose.
   Newsreader/Roboto/Roboto Mono are all shipped upstream as variable fonts —
   one file covers the whole weight range, hence `font-weight: <min> <max>`
   below instead of one file per weight. Regenerate by re-fetching
   https://fonts.googleapis.com/css2?family=... with a modern desktop UA and
   pulling the woff2 urls whose unicode-range starts U+0000-00FF (latin) or
   U+0100-02BA (latin-ext). */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/roboto-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/roboto-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/roboto-mono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/roboto-mono-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ design tokens
   Verbatim from docs/design/website/W1 Home.dc.html — do not rename a token
   or "tidy" a hex; these are the app's palette. Media-query dark applies by
   OS preference; html[data-theme] overrides it either way once the toggle
   (below) has been used.

   Two deliberate departures from the design file, both from T-214's contrast
   audit, both computed rather than eyeballed (test/a11y.test.mjs recomputes
   every pair the built pages actually use and fails under 4.5:1):

     * light --ink-3 #6C777B -> #5E696C. The design value is 4.15:1 on
       --bg-2 and 4.02:1 on the --primary 8% tab tint, i.e. below AA for the
       11-15px caption text it is used for everywhere. #5E696C is 4.61:1 at
       its worst pairing. Dark --ink-3 already passes and is untouched.
     * --verified-ink, NEW. `--verified` itself is the app's own
       tokens.dart `fvVerified` and is left alone so a badge here still means
       the same colour as a pin there — but at 11.5px on its own 14% tint it
       is 4.05:1, so the badge *text* uses this slightly darker shade of the
       same hue. In dark theme the two are identical (the dark green already
       passes at 7.4:1). */
:root {
  --bg: #FBFCFD; --bg-2: #EFF4F6; --surface: #FFFFFF;
  --ink: #12181A; --ink-2: #414A4D; --ink-3: #5E696C;
  --line: #DCE4E7; --line-2: #EAEFF1;
  --primary: #0E7490; --primary-ink: #0B5B71; --on-primary: #FFFFFF;
  --panel: #0C1517; --panel-2: #122024; --panel-ink: #EAF2F4; --panel-ink-2: #9FB3B8; --panel-line: rgba(255, 255, 255, .13);
  --c-water: #1D4ED8; --c-tap: #0E7490; --c-toilet: #7C3AED; --c-shower: #0891B2; --c-laundry: #DB2777;
  --c-grey: #6B7280; --c-black: #374151; --c-pumpout: #B45309; --c-marina: #0F766E; --verified: #15803D;
  --verified-ink: #126F35;
  --shadow: 0 1px 2px rgba(16, 32, 38, .05), 0 12px 32px -12px rgba(16, 32, 38, .16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1012; --bg-2: #101A1D; --surface: #131C1F;
    --ink: #E7EEF0; --ink-2: #A9B8BC; --ink-3: #7E8D92;
    --line: #243036; --line-2: #1A2427;
    --primary: #22D3EE; --primary-ink: #67E8F9; --on-primary: #04262E;
    --panel: #070E10; --panel-2: #0E1A1E;
    --c-water: #60A5FA; --c-tap: #22D3EE; --c-toilet: #A78BFA; --c-shower: #38BDF8; --c-laundry: #F472B6;
    --c-grey: #9CA3AF; --c-black: #7A8794; --c-pumpout: #F59E0B; --c-marina: #2DD4BF; --verified: #4ADE80;
    --verified-ink: #4ADE80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}
html[data-theme="dark"] {
  --bg: #0A1012; --bg-2: #101A1D; --surface: #131C1F;
  --ink: #E7EEF0; --ink-2: #A9B8BC; --ink-3: #7E8D92;
  --line: #243036; --line-2: #1A2427;
  --primary: #22D3EE; --primary-ink: #67E8F9; --on-primary: #04262E;
  --panel: #070E10; --panel-2: #0E1A1E;
  --c-water: #60A5FA; --c-tap: #22D3EE; --c-toilet: #A78BFA; --c-shower: #38BDF8; --c-laundry: #F472B6;
  --c-grey: #9CA3AF; --c-black: #7A8794; --c-pumpout: #F59E0B; --c-marina: #2DD4BF; --verified: #4ADE80;
  --verified-ink: #4ADE80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
}
html[data-theme="light"] {
  --bg: #FBFCFD; --bg-2: #EFF4F6; --surface: #FFFFFF;
  --ink: #12181A; --ink-2: #414A4D; --ink-3: #5E696C;
  --line: #DCE4E7; --line-2: #EAEFF1;
  --primary: #0E7490; --primary-ink: #0B5B71; --on-primary: #FFFFFF;
  --panel: #0C1517; --panel-2: #122024; --panel-ink: #EAF2F4; --panel-ink-2: #9FB3B8; --panel-line: rgba(255, 255, 255, .13);
  --c-water: #1D4ED8; --c-tap: #0E7490; --c-toilet: #7C3AED; --c-shower: #0891B2; --c-laundry: #DB2777;
  --c-grey: #6B7280; --c-black: #374151; --c-pumpout: #B45309; --c-marina: #0F766E; --verified: #15803D;
  --verified-ink: #126F35;
  --shadow: 0 1px 2px rgba(16, 32, 38, .05), 0 12px 32px -12px rgba(16, 32, 38, .16);
}
[data-icon="sun"] { display: none; }
@media (prefers-color-scheme: dark) {
  [data-icon="sun"] { display: block; }
  [data-icon="moon"] { display: none; }
}
html[data-theme="dark"] [data-icon="sun"] { display: block; }
html[data-theme="dark"] [data-icon="moon"] { display: none; }
html[data-theme="light"] [data-icon="moon"] { display: block; }
html[data-theme="light"] [data-icon="sun"] { display: none; }

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------- accessibility (T-214)
   Focus, skip link and reduced motion. All three are site-wide furniture:
   fixing them here fixes every page, which is the whole reason Base.astro +
   this file exist. */

/* One visible focus ring everywhere, keyboard-only (:focus-visible, so a
   mouse click on a button does not leave a ring behind). Nothing may set
   `outline: none` without putting an equivalent back. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}
/* The hero search and the pricing cards sit on the dark panel in BOTH
   themes, where the light-theme teal ring would nearly disappear. */
.city-search :focus-visible,
.pricing :focus-visible,
.cta-band :focus-visible,
.store-links :focus-visible {
  outline-color: var(--panel-ink);
}
/* <main> is focused by the skip link (tabindex="-1"); it should not then
   draw a ring around the entire page. */
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 0 0 10px 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.12s ease-out;
}
.skip-link:focus {
  top: 0;
  color: var(--on-primary);
  text-decoration: none;
}
/* The header is sticky, so an anchor jump would otherwise land under it. */
:target, main { scroll-margin-top: 84px; }

/* WCAG 1.4.1: a link inside a paragraph must not be distinguishable by
   colour alone. Navigation, cards and buttons are shapes and are exempt;
   these are the places the site puts a link in running prose. */
.longform-article p a,
.longform-article li a,
.longform-article dd a,
.legal-content a,
.longform-toc-note a,
.faq details p a,
.faq dd a,
.footer-legal a,
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- furniture
   Base.astro's header, footer and CTA band. `main` deliberately has no width
   cap — the design's sections are full-bleed with their own inner
   max-width:1160px wrapper (see .shell below) so a page can mix full-bleed
   bands (home, country) with a narrower reading column (legal, FAQ). */
main { flex: 1; width: 100%; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .shell {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.site-header .brand span {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-header nav a { color: var(--ink-2); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* Audience dropdown (nine /for pages, four of which were previously reachable
   only from the homepage grid). Built on <details>/<summary> rather than a
   :hover menu on purpose: hover menus do not exist on touch, and this site
   ships no navigation JS. A disclosure works with a tap, with Enter, and with
   a screen reader, for the price of staying open until it is tapped again. */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { color: var(--ink); }
.nav-menu > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  z-index: 30;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-menu-panel li { margin: 0; }
.nav-menu-panel a { display: block; padding: 7px 10px; border-radius: 8px; }
.nav-menu-panel a:hover { background: var(--bg-2); color: var(--ink); }

/* ---------------------------------------------------------- responsive nav
   Below 900px the five links plus the theme toggle plus the CTA no longer fit
   the header row: "Who it is for" wrapped to three lines and the CTA was
   clipped mid-word. Everything in <nav> becomes a drawer under the header,
   opened by the hamburger, and the header row keeps only brand, toggle and
   button. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--ink); }
/* One SVG, two paths: which one shows follows aria-expanded, so the button's
   state has a single source of truth rather than a class the JS must keep in
   step. */
.nav-toggle [data-icon='close'] { display: none; }
.nav-toggle[aria-expanded='true'] [data-icon='bars'] { display: none; }
.nav-toggle[aria-expanded='true'] [data-icon='close'] { display: inline; }
/* The CTA is duplicated into the drawer, because the header copy is the first
   thing to overflow a narrow row. Hidden on desktop, where the header copy is
   the one that shows. Scoped to the nav rather than a bare `.nav-drawer-cta`:
   `.get-app-btn` sets its own display further down this file, and an equally
   specific selector earlier in the source loses. */
.site-header nav .nav-drawer-cta { display: none; }

@media (max-width: 900px) {
  /* Rightmost, after the theme toggle: order, because the burger has to come
     before <nav> in the DOM for `aria-controls` to point forwards. */
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .site-header .shell { gap: 14px; position: relative; }
  .header-actions { margin-left: auto; }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .site-header[data-nav-open] nav { display: flex; }
  .site-header nav > a,
  .nav-menu > summary { padding: 11px 12px; border-radius: 8px; font-size: 16px; }
  .site-header nav > a:hover,
  .nav-menu > summary:hover { background: var(--bg-2); }

  /* In the drawer the audience list expands in flow rather than floating over
     the page: a popover inside a popover is unusable on a phone. */
  .nav-menu-panel {
    position: static;
    min-width: 0;
    margin: 2px 0 6px 12px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .nav-menu-panel a { padding: 9px 10px; }
}

/* Measured, not guessed: brand + toggle + CTA + burger needs 312px and a
   375px phone leaves 295px inside the shell padding, so below ~420px the CTA
   is what has to go. It moves into the drawer rather than off the page, since
   "Get the app" is the point of the site. */
@media (max-width: 420px) {
  .header-actions .get-app-btn { display: none; }
  .site-header nav .nav-drawer-cta {
    display: flex;
    justify-content: center;
    margin: 8px 2px 2px;
  }
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.get-app-btn {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.get-app-btn:hover { color: var(--on-primary); text-decoration: none; opacity: 0.92; }

.cta-band {
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 12% -20%, transparent 0 40px, rgba(34, 211, 238, .075) 40px 41.5px);
}
.cta-band .shell {
  position: relative;
  padding: clamp(56px, 6vw, 88px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { color: var(--panel-ink); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; max-width: 22em; }
.cta-band p { margin-top: 12px; color: var(--panel-ink-2); font-size: 16.5px; }
/* Store badges: drawn by StoreBadges.astro in both the home hero and the
   CtaBand, both on the dark --panel background. The App Store badge is a
   <button> (a dead apple.com link is worse than a button that says so), with
   .store-tip as its click tooltip; both badges sit in .store-links. */
/* Every badge rule is scoped under .store-links on purpose: the test cascade
   treats `a:hover` (the site-wide link-hover rule) as always matching, and a
   single-class rule loses to it — the pair must win on specificity, the same
   way the old .cta-band .store-links a rule did. */
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }
.store-links .store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.store-links .store-badge:hover { text-decoration: none; }
.store-links .store-badge-primary { background: var(--panel-ink); color: var(--panel); }
.store-links .store-badge-secondary { border-color: var(--panel-line); color: var(--panel-ink); }
/* Page tone (T-339 follow-up). The two rules above are correct only on the dark
   --panel background the home hero and CtaBand sit on. The /for/ audience heroes
   sit on the ordinary page background, where --panel-ink on --bg-2 measures
   1.02:1 — a11y.test.mjs catches it, which is how this was found. Same visual
   hierarchy, re-toned: a filled dark badge and an outlined one, using the
   theme-aware page tokens so both light and dark follow automatically. */
.store-links-page .store-badge-primary { background: var(--ink); color: var(--bg); }
.store-links-page .store-badge-secondary { border-color: var(--line); color: var(--ink); }
.store-links .store-badge-name { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-links .store-badge-eyebrow { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: .08em; opacity: .6; }
.store-badge-wrap { position: relative; }
.store-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(72vw, 240px);
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 2;
}

.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.site-footer .shell { padding: clamp(48px, 5vw, 72px) clamp(20px, 4vw, 40px) 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); }
.footer-brand { flex: 1 1 260px; max-width: 24em; }
.footer-brand .brand-mark { display: flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark span { font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 600; }
.footer-brand p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.footer-col { flex: 0 1 auto; min-width: 150px; }
.footer-col .footer-col-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-col ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-legal {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-legal .copyright { font-family: 'Roboto Mono', monospace; font-size: 12.5px; }

/* Shared breadcrumb component (Crumbs.astro, T-198). Existing inline
   `.crumbs` markup on not-yet-ported pages keeps working off the same rule. */
.crumbs {
  max-width: 1160px;
  margin: 0 auto clamp(16px, 2vw, 24px);
  padding: 20px clamp(20px, 4vw, 40px) 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 4px; }

/* Home page hero "Browse without installing" search (CitySearch.astro, T-200). */
.city-search {
  margin-top: 38px;
  padding: 20px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  max-width: 520px;
}
.city-search-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panel-ink-2);
}
.city-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  height: 48px;
  padding: 0 8px 0 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
}
.city-search-form svg { flex: none; }
.city-search-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--panel-ink);
  font-size: 15px;
  font-family: inherit;
}
.city-search-form input::placeholder { color: var(--panel-ink-2); }
/* T-214: this rule used to be `.city-search-form input:focus { outline: none }`
   with nothing in its place, leaving the home page's primary control with no
   visible focus at all (WCAG 2.4.7). The ring itself now comes from the
   site-wide :focus-visible rule above (recoloured to --panel-ink because this
   field sits on the dark panel in both themes); the field border lifts too,
   so the whole control reads as active, not just the caret. */
.city-search-form:focus-within { border-color: var(--panel-ink-2); }
.city-search-form button {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
/* Search results (T-220). The whole panel sits on the hero's dark --panel-2
   card in both themes, same as the input, so it uses the panel inks rather
   than --ink. */
.city-search-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--panel-ink-2);
}
.city-search-status:empty { display: none; }
.city-search-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.city-search-result {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.04);
}
.city-search-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 15.5px;
  color: var(--panel-ink);
}
.city-search-result-head a { color: var(--panel-ink); text-decoration: underline; text-underline-offset: 3px; }
.city-search-result-country {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  color: var(--panel-ink-2);
}
.city-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.city-search-chips li,
.city-search-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--panel-ink);
  text-decoration: none;
}
/* The chip's own border/padding lives on the anchor when it is a link, so
   the li must not draw a second one around it. */
.city-search-chips li:has(a) { border: 0; padding: 0; height: auto; }
.city-search-chips a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); }
/* Mapped, but under the api's page threshold: real count, no link. */
.city-search-chip-nopage { color: var(--panel-ink-2); border-style: dashed; }
.city-search-chips .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.city-search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.city-search-examples a {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  color: var(--panel-ink);
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
}
.city-search-examples a:hover { text-decoration: none; opacity: 0.85; }
.city-search-examples .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* Home page 48-country list (CountryList.astro, T-215). The `flex` basis is
   the "Where it works" section's own two-column split, kept here rather than
   inline so the whole list is one thing to move. */
.country-links {
  flex: 1 1 440px;
  columns: 180px;
  column-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  line-height: 2.1;
}
/* Hanging indent so a name that wraps ("Bosnia and Herzegovina") lines up
   under itself rather than under the flag slot. */
.country-links li { padding-left: 1.7em; text-indent: -1.7em; }
.country-flag {
  /* Fixed slot: emoji advance width varies by platform, `gg` renders no flag
     at all, and the names have to stay on one left edge regardless. */
  display: inline-block;
  width: 1.7em;
  text-indent: 0;
  font-size: 1.05em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-style: normal;
}

/* The design's two small type treatments, used on city pages, CityMap and
   the pricing band. They were only ever defined scoped to `.pricing-intro`
   and `.city-tab`, so `class="eyebrow"` and `class="mono"` on the city pages
   styled nothing at all. Defined once here; the two scoped rules below still
   override where they need a different size or colour. */
.eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono { font-family: 'Roboto Mono', monospace; }

/* Home page pricing table (PricingTable.astro, T-200). */
.pricing { background: var(--panel); position: relative; overflow: hidden; }
.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 92% 108%, transparent 0 44px, rgba(34, 211, 238, .07) 44px 45.5px);
}
.pricing .shell { position: relative; padding: clamp(64px, 7vw, 104px) clamp(20px, 4vw, 40px); }
.pricing-intro { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-end; }
.pricing-intro .eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3e8;
}
.pricing-intro h2 { flex: 1 1 380px; margin-top: 14px; color: var(--panel-ink); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; max-width: 20em; }
.pricing-intro > p { flex: 1 1 320px; max-width: 30em; color: var(--panel-ink-2); font-size: 17px; line-height: 1.65; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.pricing-card { padding: 28px; border-radius: 18px; border: 1px solid var(--panel-line); }
.pricing-card-pro { border: 1px solid rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .06); }
.pricing-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pricing-card-head h3 { color: var(--panel-ink); font-size: 24px; }
.pricing-figure { font-family: 'Roboto Mono', monospace; font-size: 26px; color: var(--panel-ink); }
.pricing-figure-wrap { text-align: right; }
.pricing-period { font-size: 14px; color: var(--panel-ink-2); }
.pricing-yearly { font-family: 'Roboto Mono', monospace; font-size: 12.5px; color: #7dd3e8; margin-top: 2px; }
.pricing-sub { margin-top: 12px; color: var(--panel-ink-2); font-size: 15.5px; line-height: 1.6; }
.pricing-list { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; list-style: none; padding: 0; }
.pricing-list li {
  display: flex;
  gap: 10px;
  color: var(--panel-ink);
  font-size: 15.5px;
  line-height: 1.5;
}
.pricing-list li::before { content: '✓'; color: #7dd3e8; }
.pricing-cta { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.pricing-cta a {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.pricing-cta a:hover { text-decoration: none; opacity: 0.92; }
.pricing-cta span { font-family: 'Roboto Mono', monospace; font-size: 11.5px; color: var(--panel-ink-2); }

/* Audience page "one tap from a locked phone" aside (WidgetMock.astro, T-201). */
.widget-mock {
  flex: 1 1 280px;
  align-self: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.widget-mock-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.widget-mock-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-2);
}
.widget-mock-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-mock-copy { display: flex; flex-direction: column; gap: 3px; }
.widget-mock-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.widget-mock-detail { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--ink-3); }
.widget-mock-note { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* "Look up a city before you go" (CityLookup.astro, T-201/T-205 shared). */
.city-lookup { background: var(--bg); }
.city-lookup-shell {
  padding: clamp(56px, 6vw, 88px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.city-lookup-copy { flex: 1 1 380px; }
.city-lookup-copy h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.city-lookup-copy p { margin-top: 14px; max-width: 32em; font-size: 17px; line-height: 1.68; color: var(--ink-2); }
.city-lookup-list {
  flex: 1 1 380px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 0;
  padding: 0;
  list-style: none;
}
.city-lookup-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  text-decoration: none;
  color: var(--ink);
}
.city-lookup-list a:hover { text-decoration: none; background: var(--bg-2); }
.city-lookup-list a span { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--ink-3); }
.city-lookup-list a.city-lookup-all {
  border-style: dashed;
  color: var(--primary-ink);
  background: none;
}

/* Shared longform shell (Longform.astro, T-202): /contribute and /faq.
   flex-wrap must stay `nowrap` above the 900px breakpoint: with `wrap`, any
   width where the three items' combined min-content size slightly exceeds
   the container (a wide range in practice, not just near 900px) dropped the
   aside onto a second flex line that starts flush left — i.e. directly under
   the sticky .longform-toc — so the sticky TOC visually overlapped the phone
   mockup while scrolling. `nowrap` makes the items shrink to fit a single
   row instead of ever partially wrapping; the explicit `column` direction
   below 900px is what still stacks them on mobile. */
.longform-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 40px) clamp(56px, 6vw, 88px);
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}
@media (max-width: 900px) {
  .longform-shell { flex-direction: column; }
}
.longform-toc { flex: 0 1 200px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 900px) {
  /* .longform-shell switches to flex-direction:column here, which swaps the
     main axis to vertical — the 200px flex-basis above (meant as a width)
     would otherwise apply as a starting HEIGHT instead, so it must be reset
     alongside position/max-height. */
  .longform-toc { position: static; max-height: none; flex: none; }
}
.longform-toc-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.longform-toc ul { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; font-size: 14.5px; padding: 0; list-style: none; }
.longform-toc-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.longform-article { flex: 1 1 520px; max-width: 42em; }
.longform-article section { margin-top: clamp(40px, 4vw, 64px); }
.longform-article section:first-child { margin-top: 0; }
.longform-article h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; }
.longform-article .section-number {
  display: flex;
  align-items: center;
  gap: 12px;
}
.longform-article .section-number span {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--primary-ink);
}
.longform-article > section > p,
.longform-article dl { margin-top: 14px; font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.longform-article dl { margin: 22px 0 0; }
.longform-article dt {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 17.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0;
}
.longform-article dd { margin: 8px 0 24px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.longform-article .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}
.longform-article .chip-row li {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
}
.longform-article .check-list { margin-top: 18px; list-style: none; padding: 0; }
.longform-article .check-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.longform-article .check-list li:last-child { border-bottom: 1px solid var(--line); }
.longform-article .check-list svg { flex: none; margin-top: 3px; }
.longform-article .action-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.longform-article .action-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.longform-article .action-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.longform-article .action-list .action-title { display: block; font-size: 16px; font-weight: 500; }
.longform-article .action-list .action-detail { display: block; margin-top: 3px; font-size: 15px; color: var(--ink-2); }

.longform-aside { flex: 1 1 260px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 900px) {
  /* Same axis-swap as .longform-toc above: the 260px flex-basis would
     otherwise apply as a starting HEIGHT once flex-direction is column,
     which — combined with overflow-y:auto — clipped the phone screenshot to
     a 260px-tall scrollable box instead of showing it in full. */
  .longform-aside { position: static; max-height: none; flex: none; }
}
.longform-aside .phone-frame {
  width: min(260px, 100%);
  padding: 8px;
  border-radius: 30px;
  background: #101a1c;
  box-shadow: var(--shadow);
}
.longform-aside .phone-frame-inner { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 23px; overflow: hidden; }
.longform-aside p {
  margin-top: 12px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* Legal page reading typography (LegalLayout.astro, T-204). Layout only —
   the markdown content itself is untouched; these rules just make the
   rendered <h2>/<h3>/<p>/<table> read like the rest of the site. */
.legal-content h2 { margin-top: clamp(40px, 4vw, 64px); font-size: clamp(22px, 2.4vw, 28px); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 28px; font-size: 19px; }
.legal-content p { margin-top: 14px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal-content ul, .legal-content ol { margin-top: 14px; padding-left: 1.3em; }
.legal-content li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; }
.legal-content strong { color: var(--ink); }
.legal-content table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.legal-content th { color: var(--ink); font-weight: 500; }
@media print {
  .site-header, .longform-toc, .cta-band, .site-footer { display: none; }
  .longform-shell { display: block; max-width: none; padding: 0; }
}

/* ---------------------------------------------------- legacy / transitional
   Kept for pages that have not yet been ported to the new design (T-199
   onward each remove their own entries here as they land). Values are
   unchanged from before T-198 so nothing visually regresses in the meantime;
   the `--fv-*` tokens are read only by the rules below. */
:root {
  --fv-primary: #0e7490;
  --fv-bg: #fbfcfd;
  --fv-surface: #ffffff;
  --fv-surface-2: #eef1f3;
  --fv-on-surface: #191c1d;
  --fv-on-surface-var: #40484b;
  --fv-outline: #c0c8cb;
  --fv-danger: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fv-primary: #22d3ee;
    --fv-bg: #0e1416;
    --fv-surface: #1b2327;
    --fv-surface-2: #141a1d;
    --fv-on-surface: #e1e3e4;
    --fv-on-surface-var: #bec8cc;
    --fv-outline: #3b464a;
    --fv-danger: #f87171;
  }
}

/* Legacy pages relied on a global `main{max-width:720px}` for a readable
   column; that global cap is gone (see .shell above), so each not-yet-ported
   page's own root class keeps the same width until its own ticket ports it. */
.hero,
.legal,
.support,
.contribute-page,
.faq-page,
.country-page,
.audience-page,
.not-found {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}
/* `.city-page` used to be in that list and should have left it with T-206,
   which ported the city pages to the W7 two-column design (this block's own
   comment says each ticket removes its own entry as it lands). While it was
   still there, every city page rendered in a 720px column on a desktop —
   which also tripped the <=900px single-column mode below, so the map stacked
   above the content on a 1400px screen. */

.hero { text-align: center; padding: 48px 24px 32px; }
.hero h1 { font-size: 2.25rem; margin-bottom: 12px; }
.hero p { color: var(--fv-on-surface-var); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.store-badges a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--fv-primary);
  color: var(--fv-surface);
  text-decoration: none;
  font-weight: 600;
}

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 32px 0 48px;
}
.features article {
  background: var(--fv-surface);
  border: 1px solid var(--fv-outline);
  border-radius: 12px;
  padding: 20px;
}
.features h2 { font-size: 1.05rem; margin: 0 0 8px; }
.features p { color: var(--fv-on-surface-var); margin: 0; font-size: 0.95rem; }

.legal h1 { margin-bottom: 4px; }
.legal-updated { color: var(--fv-on-surface-var); font-size: 0.9rem; margin-top: 0; }
.legal h2 { margin-top: 32px; }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.legal th, .legal td { border: 1px solid var(--fv-outline); padding: 8px 10px; text-align: left; vertical-align: top; }

.support form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.support label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.support input, .support select, .support textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--fv-outline);
  background: var(--fv-surface);
  color: var(--fv-on-surface);
}
.support button {
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--fv-primary);
  color: var(--fv-surface);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

/* Honeypot: visually hidden but present in the DOM/tab order-excluded, so a
   human never sees or fills it (real accessible hiding, not display:none —
   some bots skip display:none fields specifically). */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#support-status { min-height: 1.2em; color: var(--fv-on-surface-var); }

.not-found { text-align: center; padding: 64px 0; }

/* Programmatic city pages (T-138, restyled to the W7 design T-206). */
.city-page .verified-line { color: var(--fv-on-surface-var); margin-top: -8px; }

.city-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.city-mapcol { position: sticky; top: 88px; }
@media (max-width: 900px) {
  .city-layout { grid-template-columns: 1fr; }
  .city-mapcol { order: -1; }
  /* Sticky only makes sense beside the list. In the stacked layout it made
     the map float over the places as you scrolled past it. */
  .city-mapcol { position: static; }
}
.city-map-placeholder {
  height: min(70vh, 500px);
  min-height: 320px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.city-map-placeholder p { max-width: 24em; font-size: 14px; color: var(--ink-3); }
.city-maplegend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.city-maplegend span { display: inline-flex; align-items: center; gap: 7px; }
.city-maplegend .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Interactive city map (CityMap.astro, T-207). The placeholder above is
   reused as the click target; .city-map-canvas only gets a height once
   Leaflet actually mounts into it (an empty 0-height div beforehand would
   just be dead space). */
.city-map-canvas {
  height: min(70vh, 500px);
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.city-map-placeholder .btn-ghost { margin-top: 4px; }
.city-pin {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; line-height: 1.5; }
.leaflet-container { font-family: 'Roboto', sans-serif; border-radius: 18px; }

/* Coverage summary above the place list (CityStats.astro, T-217). Two kinds
   of number live here and they are styled as two blocks on purpose: the big
   figures are city-wide counts from the export, the chip row describes only
   the places this page lists. */
.city-stats { margin-bottom: 28px; }
.city-stats-figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.city-stat-cell { flex: 0 1 auto; max-width: 15em; }
.city-stat-figure { font-family: 'Roboto Mono', monospace; font-size: 30px; line-height: 1.1; color: var(--ink); }
.city-stat-label { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

.city-stats-listed { margin-top: 18px; }
.city-stats-listed-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.city-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}
.city-stats-chips li {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
}
.city-stats-note { margin-top: 16px; max-width: 44em; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

.city-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.city-stat { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: block; color: inherit; text-decoration: none; }
.city-stat:hover { text-decoration: none; background: var(--bg-2); }
/* A category that is mapped but under the page threshold: same card, no
   link, and it says why (T-220). */
.city-stat-nolink { background: var(--bg-2); }
.city-stat-nopage { display: block; margin-top: 4px; }
.city-stat-head { display: flex; align-items: center; gap: 9px; }
.city-stat-name { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.city-stat .city-stat-figure { margin-top: 10px; font-size: 26px; }
.city-stat .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.city-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.city-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink-2);
  background: var(--surface);
  text-decoration: none;
}
.city-tab:hover { text-decoration: none; }
.city-tab[aria-current="page"] {
  border-color: var(--primary);
  color: var(--primary-ink);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.city-tab-disabled { opacity: 0.5; }
.city-tab .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.city-tab .mono { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--ink-3); }

.place-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.place-list .place {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.place-list .place:last-child { border-bottom: 1px solid var(--line); }
.place-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.place-icon .dot { width: 10px; height: 10px; border-radius: 50%; }
.place-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.place-name { font-size: 16.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-category { font-family: 'Roboto Mono', monospace; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.place-meta { font-size: 12px; color: var(--ink-3); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--ink-2);
}
.badge-verified { background: color-mix(in srgb, var(--verified) 14%, transparent); color: var(--verified-ink); }
.badge-potable { background: color-mix(in srgb, var(--c-water) 12%, transparent); color: var(--c-water); }

/* T-221: max-width used to live on `.intro`/`.faq` themselves, which worked
   only because their old parent (`.city-page`, pre-T-220) already centered
   the whole page at 720px. Now that FaqBlock wraps its content in the site's
   standard `.shell` (matching every other band), the reading-width cap has
   to live on a CHILD of `.shell` instead — putting it back on the section
   would shrink the section's own box and break `.shell`'s left-edge
   alignment with the rest of the page. `.faq-body` is that child; `.faq`
   itself keeps only the vertical rhythm. `.city-faq-band .faq` restates the
   cap for the city index page's own FAQ (a `<dl class="faq">`, unaffected by
   this ticket), so its layout is unchanged. */
.intro { margin-top: clamp(40px, 4vw, 64px); }
.intro p { font-size: 17.5px; line-height: 1.72; color: var(--ink-2); max-width: 60em; }
.faq { margin-top: 22px; }
.faq-body { max-width: 44em; }
.city-faq-band .faq { flex: 1 1 460px; max-width: 44em; }
.faq h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq details p { margin-top: 10px; font-size: 16px; line-height: 1.68; color: var(--ink-2); }

.nearby-cities { margin-top: clamp(40px, 4vw, 64px); }
.nearby-cities ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.nearby-cities li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}

.city-faq-band { border-top: 1px solid var(--line-2); background: var(--bg-2); }
.city-faq-band-inner {
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
}
.city-faq-copy { flex: 1 1 320px; max-width: 26em; }
.city-faq-copy h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; }
.city-faq-copy p { margin-top: 16px; font-size: 17px; line-height: 1.68; color: var(--ink-2); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.btn-ghost:hover { text-decoration: none; background: var(--bg); }

.section-title { font-size: 1.5rem; margin: 2.5rem 0 1rem; }

/* `.shots` is the standalone gallery: loose figures in a row, each capped so a
   phone screenshot does not run the width of the page. Currently unused by any
   page, kept because that is the layout a future gallery wants. */
.shots { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2rem 0; }
.shots .shot { max-width: 260px; }
.shots .shot img { border-radius: 12px; }

/* Everywhere else a Screenshot sits inside a frame that already fixes its own
   aspect ratio and clips (the homepage phone frames, the /for hero, the
   contribute aside). The image must FILL that frame: the 260px cap used to
   live on `.shot` itself and left every one of them floating in a box several
   times its size. `object-fit: cover` cannot crop anything in practice, since
   the committed files are cut to the exact ratio of the frame they go in
   (docs/store/screenshots.md), but it guarantees the fill if one ever is not.
   The frame supplies the rounding, so the image must not add its own. */
.shot { margin: 0; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { font-size: 0.85rem; opacity: 0.75; margin-top: 0.5rem; text-align: center; }
/* Callers that pass caption="" would otherwise push the image up by a blank
   line inside a fixed-height frame. */
.shot figcaption:empty { display: none; }

/* A missing screenshot must look unfinished, not blank. It carries its own
   background (T-214): every phone frame it sits inside is near-black, so
   inheriting the page's --ink left the placeholder text at 1.01:1 in light
   theme — invisible, which is the one thing a placeholder must not be. Being
   self-contained also means it reads the same wherever it is dropped. */
.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  aspect-ratio: var(--shot-w) / var(--shot-h);
  border: 2px dashed var(--panel-ink-2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--panel-ink-2);
  padding: 1rem;
  text-align: center;
}
.shot-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.shot-size { font-size: 0.75rem; }
.shot-brief { font-size: 0.8rem; }

.pro-block { margin: 3rem 0; }
.pro-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.audience-list, .country-list, .city-list, .chip-list { list-style: none; padding: 0; }
.audience-list li { margin: 0.75rem 0; }
.audience-list a { display: block; text-decoration: none; }
.audience-list strong { display: block; }
.audience-list span { font-size: 0.9rem; opacity: 0.8; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.35rem 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list li { border: 1px solid currentColor; border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; }
.city-list li { margin: 0.6rem 0; }
.city-cats { display: block; font-size: 0.9rem; }
.city-cats a { margin-right: 0.75rem; }

/* Legacy inline breadcrumbs (pre-Crumbs.astro) used this same class name;
   the rule above already covers them. */

.faq-toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.faq-section dt { font-weight: 700; margin-top: 1.25rem; }
.faq-section dd { margin: 0.35rem 0 0; }

.faq-lede, .audience-lede, .country-lede, .contribute-lede { font-size: 1.1rem; opacity: 0.9; }
