  /* One stylesheet for the home page and, as /site.css, every map's own page
     (web/generate.py write_site_css). Dark only. Every rule starts at two
     spaces: tests read the rules by that shape. Spacing uses logical
     properties so right-to-left pages mirror, and no heading is letter-spaced
     or upper-cased: the pages are written in 34 languages and many scripts. */
  :root {
    --bg: #0b1220;
    --bg-2: #0e1729;
    --bg-card: #131c2e;
    --bg-card-hover: #182339;
    --text: #e6edf7;
    --text-dim: #9fb0c7;
    --text-faint: #7f8ea3;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-strong: #2563eb;
    --warm: #ffc27a;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --max-w: 1160px;
    --bar-h: 56px;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
  .container.narrow { max-width: 860px; }

  /* The bar at the top of every page: name, sections, language, maps. */
  .topbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(11,18,32,0.9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .topbar .container {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    min-height: var(--bar-h);
  }
  .brand { font-size: 19px; font-weight: 700; color: var(--text); white-space: nowrap; }
  .brand:hover { color: var(--text); text-decoration: none; }
  .accent { color: var(--accent-hover); }
  .topnav { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; margin-inline-start: 10px; }
  .topnav a {
    padding: 6px 10px; border-radius: 8px;
    font-size: 14px; color: var(--text-dim); white-space: nowrap;
  }
  .topnav a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
  .topbar-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
  .topbar-cta svg { width: 15px; height: 15px; flex: none; }

  /* Language menu: a button in the bar, the languages in a panel under it.
     The same links, as tiles with a count of maps, are the grid in the
     languages section (.lang-grid). */
  .lang-menu { margin-inline-start: auto; font-size: 14px; }
  .lang-menu summary {
    display: flex; align-items: center; gap: 7px;
    cursor: pointer; list-style: none; padding: 6px 12px; border-radius: 999px;
    color: var(--text-dim); border: 1px solid var(--border-strong); white-space: nowrap;
  }
  .lang-menu summary::before {
    content: ""; width: 15px; height: 15px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c7' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c3 3.2 3 15.800 0 19M12 2.5c-3 3.2-3 15.800 0 19'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .lang-menu summary::after {
    content: ""; width: 7px; height: 7px; margin-block-start: -4px;
    border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
  }
  .lang-menu summary::-webkit-details-marker { display: none; }
  .lang-menu[open] summary, .lang-menu summary:hover { color: var(--text); border-color: var(--text-faint); }
  .lang-menu .lang-picker {
    position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 24px;
    width: min(600px, calc(100% - 32px)); max-height: calc(100vh - var(--bar-h) - 24px); overflow: auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 2px;
    padding: 10px; border-radius: 14px;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  }
  .lang-menu .lang-picker a {
    padding: 7px 10px; border-radius: 8px;
    color: var(--text-dim); border: 1px solid transparent;
  }
  .lang-picker a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
  .lang-picker a[aria-current="page"] {
    color: var(--text); background: rgba(59,130,246,0.16);
    border-color: rgba(59,130,246,0.45);
  }
  .lang-grid .lang-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px;
  }
  .lang-grid .lang-picker a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-size: 15px;
  }
  .lang-grid .lang-picker a:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
  .lang-grid .lang-picker b {
    padding: 1px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.07); color: var(--text-dim);
    font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  }

  h1 {
    font-size: clamp(31px, 4.4vw, 52px); font-weight: 700; line-height: 1.15;
    margin: 0 0 14px;
  }
  .tagline {
    font-size: 18px; color: var(--text-dim);
    max-width: 600px; margin: 0;
  }

  /* Top of the home page: what it is, a way straight to a map, and the map
     itself moving. */
  .hero {
    padding: 52px 0 60px;
    border-bottom: 1px solid var(--border);
    background:
      radial-gradient(900px 480px at 88% -10%, rgba(59,130,246,0.22), transparent 62%),
      radial-gradient(700px 420px at -6% 112%, rgba(255,194,122,0.07), transparent 60%),
      var(--bg);
  }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 44px; align-items: center;
  }
  .eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
    background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
    color: var(--accent-hover); font-size: 13px; font-weight: 500;
  }
  .finder { display: none; position: relative; gap: 8px; margin: 26px 0 0; max-width: 560px; }
  .js .finder { display: flex; }
  #finder-q {
    flex: 1 1 auto; min-width: 0; padding: 13px 16px;
    font: inherit; font-size: 16px;
    border: 1px solid var(--border-strong); border-radius: 12px;
    background: var(--bg-card); color: var(--text);
    -webkit-text-fill-color: var(--text);
  }
  #finder-q::placeholder { color: var(--text-faint); opacity: 1; }
  #finder-q::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
  #finder-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .finder .btn { font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 12px; }
  .finder-list {
    position: absolute; z-index: 5; inset-inline: 0; inset-block-start: calc(100% + 6px);
    margin: 0; padding: 6px; list-style: none; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    max-height: min(60vh, 26rem); overflow-y: auto; overscroll-behavior: contain;
  }
  .finder-list button {
    display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 9px 12px; border: 0; border-radius: 8px;
    background: none; color: var(--text); font: inherit; font-size: 15px; text-align: start;
    cursor: pointer;
  }
  .finder-list button:hover, .finder-list button:focus-visible { background: var(--bg-card-hover); outline: none; }
  .finder-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .finder-list small { color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
  .stats a {
    display: flex; flex-direction: column; gap: 1px; min-width: 96px;
    padding: 8px 16px 9px; border-radius: 12px; line-height: 1.2;
    border: 1px solid var(--border); background: rgba(255,255,255,0.03);
    color: var(--text-dim); font-size: 14px;
  }
  .stats a:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
  .stats b { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
  .apps {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 22px; font-size: 13.5px; color: var(--text-dim);
  }
  .badge {
    display: inline-block;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: var(--accent-hover);
    font-size: 12px; font-weight: 500;
  }
  a.badge {
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  a.badge:hover {
    background: rgba(59,130,246,0.22);
    border-color: rgba(59,130,246,0.55);
    color: var(--accent-hover);
    text-decoration: none;
  }

  /* A screen in a frame: the wide one is a desktop, the tall one a phone. */
  .frame {
    position: relative; overflow: hidden;
    border-radius: 14px; border: 1px solid var(--border-strong);
    background: #0a0f1a;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .frame-wide { aspect-ratio: 16 / 9; }
  .frame video, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .hero-art { position: relative; padding-block: 14px 44px; padding-inline-end: 9%; }
  .hero-phone { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 27%; }
  .hero-phone .frame { aspect-ratio: 390 / 844; border-radius: 18px; border: 3px solid #2a3852; }
  .hero-phone img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
  .hero-phone img.on { opacity: 1; }
  .phone-tag {
    position: absolute; inset-block-start: -13px; inset-inline-end: 10px;
    padding: 3px 11px; border-radius: 999px;
    background: var(--accent-strong); color: #fff;
    font-size: 12.5px; font-weight: 600; line-height: 1.5;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  }
  .media-toggle {
    position: absolute; inset-block-end: 10px; inset-inline-start: 10px;
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border-strong); background: rgba(11,18,32,0.72);
    cursor: pointer;
  }
  .media-toggle::before {
    content: ""; position: absolute; inset: 15px 16px;
    border-inline: 4px solid #fff;
  }
  .media-toggle.paused::before {
    inset: 14px 15px 14px 18px;
    border-style: solid; border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
  }

  section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
  }
  section.band { background: var(--bg-2); }
  section.maps-section { padding-top: 52px; }
  section:last-of-type { border-bottom: none; }
  section[id], #credits { scroll-margin-top: calc(var(--bar-h) + 8px); }
  #map-list { scroll-margin-top: var(--bar-h); }
  h2 {
    font-size: clamp(25px, 3vw, 33px); font-weight: 700; line-height: 1.2;
    margin: 0 0 14px;
  }
  h3 {
    font-size: 18px; font-weight: 600;
    margin: 24px 0 8px;
    color: var(--text);
  }
  p { margin: 0 0 16px; color: var(--text-dim); }
  p.lead { color: var(--text); font-size: 18px; max-width: 780px; }
  p.note { font-size: 13.5px; }
  a { color: var(--accent-hover); text-decoration: none; }
  a:hover { color: var(--accent); text-decoration: underline; }
  .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .section-head p { margin-bottom: 0; }

  /* Clips. Each is a picture that opens its clip on the whole screen (a
     plain link to the file where there is no script). */
  .feature-clip { margin: 30px 0 0; }
  .feature-clip h3 { margin: 0 0 6px; font-size: 22px; }
  .feature-clip p { max-width: 780px; }
  .feature-clip .frame { display: block; margin-top: 18px; aspect-ratio: 16 / 10; }
  .hero-credit { margin: 10px 0 0; max-width: none; padding-inline-end: 32%; font-size: 11.5px; color: var(--text-faint); }
  .feature-clip .clip-credit { margin: 8px 0 0; max-width: none; font-size: 11.5px; color: var(--text-faint); }
  .clips {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px; margin: 30px 0 0;
  }
  .clip {
    margin: 0; overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  }
  .clip-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0a0f1a; }
  .clip-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .clip-tall img { object-fit: contain; }
  .clip figcaption { padding: 14px 18px 16px; }
  .clip h3 { margin: 0 0 4px; font-size: 16.5px; }
  .clip p { margin: 0; font-size: 14px; }
  .play {
    position: absolute; inset: 0; margin: auto;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(11,18,32,0.72); border: 1.5px solid rgba(255,255,255,0.85);
    transition: transform 0.15s, background 0.15s;
  }
  .play::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    transform: translate(-36%, -50%);
    border-style: solid; border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
  }
  a:hover > .play { transform: scale(1.08); background: var(--accent-strong); }
  .signs-head { margin-top: 44px; }
  .signs {
    display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px; margin: 16px 0 18px;
  }
  .sign {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 390 / 844; border-radius: 12px;
    border: 1px solid var(--border-strong); background: #0a0f1a;
  }
  .sign img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .sign .play { width: 40px; height: 40px; }
  .sign .play::before { border-width: 7px 0 7px 12px; }
  .sign-label {
    position: absolute; inset-inline: 0; inset-block-end: 0;
    padding: 24px 6px 8px; text-align: center;
    background: linear-gradient(transparent, rgba(5,9,18,0.94));
    color: #fff; font-size: 13px; font-weight: 600;
  }

  /* Screenshots: one row to flip through, edge to edge. */
  .strip-nav { display: none; gap: 8px; flex: none; }
  .js .strip-nav { display: flex; }
  .round {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text);
    cursor: pointer;
  }
  .round:hover { background: var(--bg-card-hover); border-color: var(--text-faint); }
  .round svg { width: 18px; height: 18px; }
  [dir="rtl"] .flip { transform: scaleX(-1); }
  .strip {
    --shot-h: 400px;
    --edge: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
    display: flex; gap: 16px; overflow-x: auto;
    margin-top: 26px; padding: 4px var(--edge) 16px;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
    scrollbar-width: thin; scrollbar-color: #2a3a57 transparent;
  }
  .shot { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
  .shot a {
    display: block; overflow: hidden; border-radius: 12px;
    border: 1px solid var(--border-strong); background: #0a0f1a;
  }
  .shot a:hover { border-color: var(--accent-hover); }
  .shot img { display: block; height: var(--shot-h); width: auto; }
  .shot figcaption {
    width: 0; min-width: 100%; padding: 8px 2px 0;
    font-size: 13px; line-height: 1.4; color: var(--text-dim);
  }
  .shot small, .lb-cap small { display: block; font-size: 11.5px; color: var(--text-faint); }
  .lightbox {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(5,9,18,0.97); color: var(--text);
  }
  .lightbox[open] {
    display: grid; align-items: center;
    grid-template: "prev stage next" minmax(0, 1fr) "cap cap cap" auto / 68px minmax(0, 1fr) 68px;
  }
  .lightbox::backdrop { background: rgba(5,9,18,0.9); }
  .lb-stage {
    grid-area: stage; height: 100%; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 58px 0 6px;
  }
  .lb-stage img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    border-radius: 10px; background: #000;
  }
  /* A clip takes the screen; where it cannot, all the room the viewer has. */
  .lb-stage video { width: 100%; height: 100%; object-fit: contain; }
  .lb-prev { grid-area: prev; justify-self: center; }
  .lb-next { grid-area: next; justify-self: center; }
  .lb-close { position: absolute; inset-block-start: 10px; inset-inline-end: 14px; z-index: 2; }
  .lb-cap {
    grid-area: cap; min-height: 66px; margin: 0; padding: 8px 20px 16px;
    text-align: center; font-size: 14.5px; color: var(--text);
  }
  .lb-count { color: var(--text-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }

  /* The same map in six scripts. */
  .lang-shots {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px; margin: 34px 0 12px;
  }
  .lang-shot { margin: 0; }
  .lang-shot a:not([hidden]) {
    display: block; overflow: hidden; border-radius: 14px;
    border: 1px solid var(--border-strong); background: #0a0f1a;
  }
  .lang-shot a:hover { border-color: var(--accent-hover); }
  .lang-shot img { display: block; width: 100%; height: auto; }
  .lang-shot figcaption { padding-top: 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text); }
  .lang-grid { margin: 14px 0 12px; }
  .lang-grid-head { margin-top: 40px; }

  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }
  .feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .feature h4 {
    margin: 0 0 6px;
    font-size: 15px; font-weight: 600;
  }
  .feature p {
    margin: 0;
    font-size: 14px; color: var(--text-dim);
  }

  .maps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 14px;
    margin-top: 8px;
  }
  /* Tier dividers — emitted as `<h3>` elements between groups of
     map-cards. `grid-column: 1 / -1` makes them span every column
     regardless of viewport width so they read as section breaks
     rather than getting tucked into a single grid cell. */
  .maps-tier-header {
    grid-column: 1 / -1;
    margin: 24px 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
  .maps-tier-header:first-child {
    /* No top rule for the first header — the filter above it already
       separates the list from the rest of the section. */
    border-top: none;
    padding-top: 4px;
    margin-top: 8px;
  }
  /* The filter box above the grid, and the rule that makes filtering visible.
     These five selectors sat INSIDE the rule above until 2026-09-27. Browsers
     read that as CSS nesting, so they resolved to
     `.maps-tier-header:first-child .maps [hidden]` and friends and matched
     nothing: the input was unstyled, and — the reported symptom — the filter
     did not filter, because `.map-card { display: flex }` below outranks the
     UA stylesheet's `[hidden] { display: none }` and the override that was
     supposed to beat it never applied. Keep them at top level.
     The box stays under the top bar while the list scrolls. */
  .maps-filter {
    position: sticky; top: var(--bar-h); z-index: 20;
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0 0; padding: 10px 0;
    background: var(--bg);
  }
  #map-filter {
    flex: 1 1 auto; max-width: 520px; padding: 11px 14px;
    font: inherit; font-size: 16px; /* 16px or iOS zooms the page on focus */
    border: 1px solid var(--border-strong, #d8d8d8); border-radius: 10px;
    /* The palette is dark-only. `background: #fff; color: inherit` put the
       page's near-white --text on a white field -- white on white, reported
       2026-09-27. Nobody saw it earlier because the whole block was nested
       inside another rule and never applied at all; un-nesting the filter so
       it worked is what made this visible. */
    background: var(--bg-card); color: var(--text);
    -webkit-text-fill-color: var(--text);   /* iOS ignores `color` on search inputs */
  }
  #map-filter::placeholder { color: var(--text-faint); opacity: 1; }
  /* Safari draws its own clear button in the text colour; make it visible. */
  #map-filter::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
  #map-filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .maps-filter-count { font-size: 13px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .maps [hidden] { display: none !important; }
  /* One button per group of maps; with the box they narrow the list together. */
  .chips { display: none; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
  .js .chips { display: flex; }
  .chip {
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: transparent;
    color: var(--text-dim); font: inherit; font-size: 13px; white-space: nowrap;
    cursor: pointer;
  }
  .chip:hover { color: var(--text); border-color: var(--text-faint); }
  .chip[aria-pressed="true"] {
    background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.5);
    color: var(--text);
  }
  .maps-none { margin: 28px 0; text-align: center; }
  .map-card { scroll-margin-top: calc(var(--bar-h) + 96px);
  }
  .map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    display: flex; flex-direction: column;
  }
  .map-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
  }
  .map-card-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
  }
  .map-card-title {
    font-size: 17px; font-weight: 700;
    color: var(--text);
    line-height: 1.25;
  }
  .map-card-title a { color: inherit; text-decoration: none; }
  .map-card-title a:hover { color: var(--accent-hover); }
  .map-card-note { font-size: 12px; color: var(--text-faint); margin: 0 0 10px; line-height: 1.4; }
  .map-card-size {
    font-size: 12.5px; font-weight: 600;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .map-card-date {
    font-size: 12px; color: var(--text-faint);
    margin: 2px 0 0; font-variant-numeric: tabular-nums;
  }
  .map-card-date time { color: var(--text-dim); font-weight: 500; }
  .map-card-desc {
    font-size: 13px; color: var(--text-dim);
    margin: 0 0 8px;
    line-height: 1.45;
  }
  /* Per-card feature badges — tells users at a glance which ZIMs
     ship routing, Overture rich place info, terrain, etc. Keys:
     see FEATURE_BADGES in web/generate.py. */
  .map-card-badges {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin: 0 0 12px;
  }
  .map-badge {
    font-size: 10.5px; font-weight: 500;
    padding: 3px 8px; border-radius: 999px;
    line-height: 1.35; white-space: nowrap;
    border: 1px solid transparent;
  }
  .badge-nav       { background: #162a4f; color: #a8c6ff; border-color: #1f3a73; }
  .badge-overture  { background: #1f2f1f; color: #a9e4a9; border-color: #2e4b2e; }
  .badge-terrain   { background: #2f2418; color: #e3c18a; border-color: #4d3a25; }
  .badge-satellite { background: #2a1f3a; color: #c2a8ff; border-color: #3e2e58; }
  .badge-wiki      { background: #2a2a2a; color: #d0d0d0; border-color: #3c3c3c; }
  .badge-photo     { background: #3a2a14; color: var(--warm); border-color: #5a4220; }
  .map-card-links {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    margin-top: auto;
  }
  .btn {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 8px;
    font-family: inherit; font-size: 12px; font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--accent-strong);
    color: #fff;
  }
  .btn-primary:hover {
    background: var(--accent);
    color: #fff; text-decoration: none;
  }
  .btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border-strong);
  }
  .btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-faint);
    text-decoration: none;
  }
  /* A card's download is the button to find: larger than the links beside it. */
  .map-card-links .btn-primary { font-size: 13.5px; font-weight: 600; padding: 7px 16px; }
  .map-card.upcoming {
    opacity: 0.55;
  }
  .map-card.upcoming .map-card-size {
    color: var(--accent-hover);
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 20px;
  }
  .step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    position: relative;
  }
  .step-num {
    display: inline-block;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    color: var(--accent-hover);
    text-align: center; line-height: 26px;
    font-size: 13px; font-weight: 700;
    margin-bottom: 8px;
  }
  .step h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
  .step p { margin: 0; font-size: 14px; }

  .licenses {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 16px;
    font-size: 14px;
  }
  .licenses ul {
    margin: 0; padding-inline-start: 18px;
    color: var(--text-dim);
  }
  .licenses li { margin: 6px 0; }
  .licenses strong { color: var(--text); }
  .licenses h3 { margin: 0 0 8px; font-size: 16px; }
  .licenses p { margin: 0 0 10px; }
  .licenses ul + p { margin: 12px 0 0; }

  .source-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  .source-list a {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex; flex-direction: column;
    transition: background 0.15s, border-color 0.15s;
    color: var(--text);
    text-decoration: none;
  }
  .source-list a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    text-decoration: none;
  }
  .source-list .src-title {
    font-size: 15px; font-weight: 600;
  }
  .source-list .src-sub {
    font-size: 13px; color: var(--text-dim);
    margin-top: 2px;
  }

  .updated {
    font-size: 12.5px;
    color: var(--text-faint);
    margin: 0;
  }
  .feature-key {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.9;
    margin: 12px 0 10px;
  }
  .feature-key .map-badge { margin: 0 4px 0 6px; }

  /* A map's own page (/maps/<id>/, /<lang>/maps/<id>/: web/generate.py write_map_pages) */
  .page-head {
    padding: 28px 0 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(11,18,32,0) 100%);
  }
  .page-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 0; }
  .page-head + section { padding-top: 30px; }
  .crumbs { font-size: 13px; color: var(--text-faint); margin: 0 0 8px; }
  .crumbs a { color: var(--text-dim); }
  .map-page h2 { margin-top: 28px; font-size: 24px; }
  .map-dl { display: grid; gap: 6px; justify-items: start; }
  .map-dl .btn { font-size: 15px; padding: 10px 16px; white-space: normal; }
  .map-dl p { margin: 0 0 10px; font-size: 14px; color: var(--text-dim); }
  .map-dl .more { display: flex; gap: 8px; flex-wrap: wrap; }
  .map-dl .more .btn { font-size: 12.5px; padding: 6px 12px; }
  .map-feats { margin: 0; padding-inline-start: 20px; }
  .map-feats li { margin: 4px 0; }
  .kiwix-guide h3 { font-size: 16px; margin: 18px 0 6px; }
  .kiwix-guide ol { margin: 0; padding-inline-start: 22px; }
  .kiwix-guide li, .kiwix-guide p { font-size: 14px; margin: 4px 0; }
  .other-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
  footer {
    padding: 32px 0 48px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
  }
  footer a { color: var(--text-dim); }

  /* Phones: card buttons and store badges tall enough to tap (44 px). */
  @media (pointer: coarse) {
    .btn { padding: 11px 14px; font-size: 13px; }
    .map-card-links .btn-primary { padding: 11px 18px; font-size: 14px; }
    .badge { padding: 10px 14px; }
    .chip { padding: 10px 14px; }
    .lang-menu summary { padding: 9px 12px; }
    .lang-menu .lang-picker a { padding: 11px 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-phone img, .play { transition: none; }
  }
  @media (max-height: 480px) {
    .maps-filter { position: static; }
  }
  @media (max-width: 1000px) {
    .topnav { display: none; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lang-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .container { padding: 0 16px; }
    .tagline { font-size: 17px; }
    section { padding: 44px 0; }
    section.maps-section { padding-top: 40px; }
    .hero { padding: 34px 0 44px; }
    .topbar .container { gap: 10px; }
    .topbar-cta { padding: 9px 11px; min-width: 44px; justify-content: center; }
    .topbar-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .lang-menu .lang-picker { inset-inline-end: 16px; }
    .finder { flex-wrap: wrap; }
    .finder .btn { flex: 1 1 100%; text-align: center; }
    .finder-list { inset-block-start: calc(100% + 6px); }
    .clips { grid-template-columns: minmax(0, 1fr); }
    .signs { gap: 8px; }
    .sign .play { width: 32px; height: 32px; }
    .sign-label { font-size: 11.5px; overflow-wrap: anywhere; }
    .section-head { flex-wrap: wrap; }
    .strip-nav { margin-inline-start: auto; }
    .strip { --shot-h: 300px; --edge: 16px; gap: 12px; }
    .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
    .lb-prev, .lb-next { position: absolute; grid-area: auto; inset-block-end: 12px; z-index: 2; }
    .lb-prev { inset-inline-start: 12px; }
    .lb-next { inset-inline-end: 12px; }
    .lb-cap { padding-inline: 64px; min-height: 76px; }
    .lang-shots {
      grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%;
      overflow-x: auto; margin-inline: -16px; padding-inline: 16px; padding-block-end: 8px; scroll-padding-inline: 16px;
      scroll-snap-type: x proximity;
    }
    .lang-shot { scroll-snap-align: start; }
    .lang-grid .lang-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chips {
      flex-wrap: nowrap; overflow-x: auto;
      margin-inline: -16px; padding-inline: 16px; scrollbar-width: none;
    }
    .maps-filter { flex-wrap: wrap; gap: 4px 12px; }
    #map-filter { max-width: none; flex-basis: 100%; }
  }
