/* RobotaxiAtlas v6 - "marketplace": light only, modelled on car marketplaces (Carvago, AutoScout24). White pages, navy text,
   one indigo action colour and orange highlights; an illustrated hero with a search panel, listing cards with generated
   city postcards (Site/Postcard.cs), a brand row of operator logos, promo tiles, three illustrated steps and a link directory.
   Stage colours follow a traffic-signal logic: green = driverless, amber = staff on board, red = stopped.
   No inline style= in markup (strict CSP). Typefaces (self-hosted, OFL): Archivo variable for text, Outfit (the logo face) for headings. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root, :root[data-theme] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --line: #e3e7ef;
  --line-2: #cfd5e1;
  --text: #161c45;
  --text-2: #474f73;
  --muted: #6a7190;
  --accent: #1f4fb5;
  --accent-ink: #ffffff;
  --accent-soft: #e5edfa;
  --link: #1f4fb5;
  --focus: #1f4fb5;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-sans);
  --maxw: 1480px;
  --gutter: clamp(16px, 4vw, 56px);
  --r: 14px;
  --orange: #ff6b1a;
  --navy: #161c45;
  --r-sm: 8px;
  /* stages */
  --s6: #00a36c;
  --s5: #0e9fb5;
  --s4: #e09400;
  --s3: #b15ad4;
  --s2: #5f78a8;
  --s1: #97a1af;
  --sx: #e5484d;
  --se: #8b95a1;
  --sa: #97a1af;
}

.s6 { --c: var(--s6); } .s5 { --c: var(--s5); } .s4 { --c: var(--s4); } .s3 { --c: var(--s3); }
.s2 { --c: var(--s2); } .s1 { --c: var(--s1); } .sx { --c: var(--sx); } .se { --c: var(--se); } .sa { --c: var(--sa); }
.sr { --c: var(--accent); }

/* ------------------------------------------------------------------ base */
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.1; color: var(--text); font-stretch: 118%; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 14px; font-weight: 780; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; font-weight: 720; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--link); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.np { color: var(--muted); font-style: italic; font-size: 0.94em; }
.count { font-variant-numeric: tabular-nums; font-size: 0.6em; color: var(--muted); font-weight: 650; font-stretch: 100%; vertical-align: 0.2em;
  background: var(--surface-2); border-radius: 999px; padding: 2px 9px; margin-left: 6px; letter-spacing: 0; }
time { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); color: var(--text); padding: 6px 10px; z-index: 30; border-radius: 6px; }
main { padding: 0 0 56px; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header-row { display: flex; gap: 10px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.site-nav a { color: var(--text-2); text-decoration: none; padding: 7px 13px; font-size: 0.94rem; font-weight: 560; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--text); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header-row { padding-bottom: 8px; }
  .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; font-weight: 680; font-size: 0.98rem; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); font-stretch: 108%; }
.btn:hover { border-color: var(--text); }
.btn-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-go:hover { background: #183e8f; border-color: #183e8f; color: var(--accent-ink); }

/* ------------------------------------------------------------------ page heads */
.crumbs { font-size: 0.88rem; padding: 26px 0 0; margin: 0; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-head { padding: 40px 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.crumbs + .page-head { padding-top: 14px; }
.page-head h1 { max-width: 22ch; font-stretch: 125%; }
.kicker { font-size: 0.95rem; color: var(--muted); margin: 0 0 8px; font-weight: 540; }
.page-head.s6 .kicker::before, .page-head.s5 .kicker::before, .page-head.s4 .kicker::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 9px; vertical-align: 0.05em; }
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 64ch; margin: 8px 0 0; line-height: 1.55; }
.op-head { display: flex; gap: 24px; align-items: flex-start; }
.op-head .logo-lg { width: 180px; height: 96px; padding: 16px 24px; margin-top: 4px; }
.op-head .opm-lg { width: 96px; height: 96px; margin-top: 4px; }
.status { font-weight: 700; }
.st-active { color: var(--s6); } .st-paused { color: var(--s4); } .st-shut-down { color: var(--sx); }
@media (max-width: 560px) { .op-head { flex-direction: column; gap: 14px; } }
.head-ops { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.head-ops a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-weight: 650; font-size: 0.95rem; border-radius: 999px; }
.head-ops a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.head-ops a:hover { border-color: var(--text); }
.head-ops .logo { border-radius: 999px; }

/* ------------------------------------------------------------------ blocks */
.block { margin: 64px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.block-head h2 { margin: 0; }
.block-head > a { font-weight: 640; font-size: 0.95rem; }
.block-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 32px; }
.prose li { margin: 8px 0; }
.checked { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }

/* ------------------------------------------------------------------ maps */
.mapfig { margin: 0; background: #fbfcfd; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.mapfig svg { max-width: 100%; }
.map { display: block; width: 100%; height: auto; }
.map .sea { fill: #fbfcfd; }
.map .land { fill: #e4e8ed; stroke: #ffffff; stroke-linejoin: round; }
.map .land.has { fill: #e2e0ff; }
.map .pt-halo { fill: var(--c); opacity: 0.18; }
.map .pt-dot { fill: var(--c); stroke: #ffffff; }
.map .pt.se .pt-dot, .map .pt.sa .pt-dot { fill: #ffffff; stroke: var(--c); }
.map .pt.sa .pt-halo, .map .pt.se .pt-halo { opacity: 0; }
.map .pt:hover .pt-halo, .map .pt:focus .pt-halo { opacity: 0.5; }
.map .pt:focus { outline: none; }
.map .pt:focus-visible .pt-dot { stroke: var(--focus); }
.map .pt-label { fill: var(--text); font-family: var(--font-sans); font-weight: 650; paint-order: stroke; stroke: #ffffff; stroke-width: 0.3em; stroke-linejoin: round; }
.regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
@media (min-width: 820px) { .regions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.region figcaption { position: absolute; left: 16px; top: 12px; font-weight: 720; font-stretch: 112%; font-size: 0.95rem; color: var(--text); }

.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend a { color: var(--text-2); text-decoration: none; }
.legend a:hover { text-decoration: underline; }
.legend i, .badge i, .stage-h i, .stagelist h2 i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid var(--c); box-sizing: border-box; flex: none; }
.legend .se i, .legend .sa i, .badge.se i, .badge.sa i, .stage-h.se i, .stage-h.sa i, .stagelist .se h2 i, .stagelist .sa h2 i { background: transparent; }

/* ------------------------------------------------------------------ logos */
.logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; box-sizing: border-box; flex: none; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; }
.logo-xs { width: 44px; height: 22px; padding: 3px 5px; border-radius: 5px; vertical-align: -6px; margin-right: 7px; }
.logo-sm { width: 58px; height: 30px; padding: 4px 7px; border-radius: 6px; }
.logo-md { width: 84px; height: 44px; padding: 6px 10px; border-radius: var(--r-sm); }
.logo-lg { width: 100%; height: 72px; padding: 12px 22px; border-radius: 10px; box-shadow: none; }
.apps, .partner { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.app { display: inline-flex; align-items: center; font-weight: 650; }
.partner .logo-xs { margin-right: 0; }
.partner > span:last-child { margin-left: 4px; }

.opm { width: 42px; height: 42px; flex: none; }
.opm-xs { width: 20px; height: 20px; vertical-align: -5px; margin-right: 6px; }
.opm-sm { width: 30px; height: 30px; }
.opm-lg { width: 60px; height: 60px; }
.opm-bg { fill: var(--h); }
.opm-line { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.opm-tx { fill: #fff; font: 800 15px var(--font-sans); font-stretch: 112%; letter-spacing: -0.02em; }
.h0 { --h: #4a3aff; } .h1 { --h: #1f68a8; } .h2 { --h: #b04f1c; } .h3 { --h: #0d8a6a; }
.h4 { --h: #a32f69; } .h5 { --h: #227685; } .h6 { --h: #6f6113; } .h7 { --h: #3a4a60; }

/* ------------------------------------------------------------------ badges and tags */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; text-decoration: none;
  color: var(--text); background: color-mix(in srgb, var(--c) 12%, var(--surface)); white-space: nowrap; line-height: 1.3; }
.badge:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.tag { display: inline-block; font-size: 0.76rem; font-weight: 680; border-radius: 999px; padding: 1px 9px; margin-right: 8px; color: var(--muted); background: color-mix(in srgb, currentColor 11%, transparent); }
.tag-first { color: var(--s6); } .tag-reg { color: var(--link); } .tag-end { color: var(--sx); }
.ann-tag { display: inline-block; font-size: 0.76rem; font-weight: 650; border-radius: 999px; padding: 0 9px; border: 1px dashed var(--line-2); color: var(--muted); margin-right: 4px; }
.vt { font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; vertical-align: 0.15em; }

/* ------------------------------------------------------------------ city cards */
.ctiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ctiles a { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2px; height: 100%; box-sizing: border-box; padding: 18px 18px 16px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ctiles a:hover { border-color: var(--text); }
.ct-name { font-weight: 780; font-size: 1.2rem; font-stretch: 115%; letter-spacing: -0.015em; line-height: 1.15; }
.ct-country { font-size: 0.86rem; color: var(--muted); }
.ct-logos { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 14px; align-content: start; }
.ct-stage { font-size: 0.8rem; color: var(--text-2); font-weight: 650; display: inline-flex; align-items: center; gap: 7px; }
.ct-stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ------------------------------------------------------------------ operator grid */
.opwall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.opwall a { display: grid; grid-template-rows: auto auto 1fr; row-gap: 2px; height: 100%; box-sizing: border-box; padding: 10px 10px 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.opwall .logo-lg { margin-bottom: 8px; }
.opwall .opm-lg { width: 100%; height: 72px; margin-bottom: 8px; }
.opwall a:hover { border-color: var(--text); }
.ow-name { font-weight: 740; line-height: 1.2; font-stretch: 108%; padding: 0 6px; }
.ow-meta { font-size: 0.84rem; color: var(--muted); line-height: 1.35; padding: 0 6px; }

/* ------------------------------------------------------------------ changes list */
.changes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.changes li { padding: 14px 0; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.ch-date { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.changes a { font-weight: 700; color: var(--text); text-decoration: none; }
.changes a:hover { color: var(--link); text-decoration: underline; }
.ch-note { color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }

/* ------------------------------------------------------------------ city page */
.city-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
@media (min-width: 900px) { .city-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; } }
.city-top .mapfig { display: flex; align-items: center; }
.howbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.howbox h2 { font-size: 1.2rem; margin-bottom: 14px; }
.howbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.howbox li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.45; }
.howbox li b { display: inline-flex; align-items: center; gap: 7px; }
.howbox li b::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.howbox li > span { display: block; }

/* ------------------------------------------------------------------ service card */
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px 20px; margin: 16px 0; scroll-margin-top: 90px; min-width: 0; }
.svc-head { display: flex; justify-content: space-between; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.svc-head h3 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 1.4rem; font-stretch: 115%; }
.svc-head h3 a { color: var(--text); text-decoration: none; }
.svc-head h3 a:hover { text-decoration: underline; }
.svc h4 { margin: 22px 0 8px; font-size: 0.95rem; font-weight: 740; }
.how { font-weight: 560; font-size: 1.06rem; margin: 14px 0 6px; }

/* stage ladder: a road with six stops */
.ladder { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-template-columns: repeat(6, 1fr); }
.ladder li { --c: inherit; position: relative; text-align: center; font-size: 0.74rem; color: var(--muted); padding-top: 24px; line-height: 1.25; }
.ladder li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 4px; background: var(--surface-2); }
.ladder li:first-child::before { left: 50%; border-radius: 2px 0 0 2px; }
.ladder li:last-child::before { right: 50%; }
.ladder li.past::before, .ladder li.now::before { background: var(--c); }
.ladder li.now::before { right: 50%; }
.ladder li.now:first-child::before { display: none; }
.ladder .st { position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); box-sizing: border-box; z-index: 1; }
.ladder li.past .st { border-color: var(--c); background: var(--c); }
.ladder li.now .st { border-color: var(--c); background: var(--surface); width: 22px; height: 22px; margin-left: -11px; top: 0; border-width: 6px; }
.ladder li.now .lb { color: var(--text); font-weight: 740; }
.ladder.se li::before, .ladder.sx li::before, .ladder.sa li::before { background: var(--surface-2); }
.ladder.sa li::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
@media (max-width: 560px) {
  .ladder .lb { display: none; }
  .ladder li.now .lb { display: block; position: absolute; top: 28px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .ladder li.now:first-child .lb { left: 0; transform: none; }
  .ladder li.now:last-child .lb { left: auto; right: 0; transform: none; }
  .ladder { padding-bottom: 16px; }
  .svc { padding: 20px 16px 18px; }
}

.kvs { display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0 0; }
@media (min-width: 720px) { .kvs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; } }
.kvs-wide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 22px; }
.kv { display: grid; grid-template-columns: minmax(7em, 10.5em) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; line-height: 1.45; }

.hist { list-style: none; padding: 0; margin: 4px 0; }
.hist li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 14px; position: relative; padding: 2px 0 12px; }
.hist li::before { content: ""; position: absolute; left: calc(7.2em + 7px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.hist li:first-child::before { top: 10px; }
.hist li:last-child::before { bottom: calc(100% - 12px); }
.hist li:only-child::before { display: none; }
.hist li::after { content: ""; position: absolute; left: calc(7.2em + 3px); top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hist .hist-date { font-variant-numeric: tabular-nums; font-size: 0.84rem; color: var(--muted); padding-top: 1px; font-weight: 600; }
.hist .hist-body { padding-left: 18px; line-height: 1.5; }
.hist li.first .hist-body a { font-weight: 700; }
.src { font-size: 0.8rem; color: var(--muted); }
.src:hover { color: var(--link); }
.tl-list li { grid-template-columns: 7.2em minmax(0, 1fr); }

.ann { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ann li { line-height: 1.5; }
.sources { margin-top: 18px; font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 12px; }
.sources summary { cursor: pointer; color: var(--text-2); font-weight: 650; }
.sources summary:hover { color: var(--link); }
.sources ol { margin: 10px 0 0; padding-left: 22px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ service rows */
.srows { list-style: none; padding: 0; margin: 0 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow-main { min-width: 0; }
.srow-main > a { font-weight: 660; }
.cityh { margin: 26px 0 8px; }
.stage-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }

/* ------------------------------------------------------------------ chips + filters */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 560; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.tl-year { font-size: clamp(2rem, 4.5vw, 3rem); font-stretch: 125%; font-weight: 850; margin: 44px 0 14px; letter-spacing: -0.04em; }

.upc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.upc li { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px 20px; min-width: 0; }
.upc-head { font-size: 1.05rem; }
.upc p { margin: 6px 0 0; }
.upc-meta { font-size: 0.88rem; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }

/* ------------------------------------------------------------------ compare */
.pick fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; background: var(--surface); margin: 0; }
.pick legend { font-weight: 700; padding: 0 6px; }
.pick label { font-size: 0.93rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pick input { accent-color: var(--accent); width: 16px; height: 16px; }
.pick button { margin: 14px 12px 0 0; background: var(--accent); color: var(--accent-ink); border: 0; padding: 11px 24px; border-radius: 999px; font: inherit; font-weight: 680; cursor: pointer; }
.pick button:hover { background: #183e8f; }
.tablewrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp { border-collapse: collapse; min-width: 100%; font-size: 0.9rem; overflow-wrap: normal; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 9em; }
.cmp thead th { position: sticky; top: 0; background: var(--surface-2); white-space: nowrap; }
.cmp thead th a { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.cmp tbody th { color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; left: 0; }
.cmp .zero { color: var(--line-2); }

/* ------------------------------------------------------------------ stages page */
.stagelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stagelist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; scroll-margin-top: 90px; }
.stagelist h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 4px; }
.stagelist p { margin: 4px 0; max-width: 72ch; }

/* ------------------------------------------------------------------ regulation */
.reg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 14px 0; scroll-margin-top: 90px; min-width: 0; }
.reg h3 { margin: 0 0 4px; font-size: 1.2rem; }
.reglist { padding: 0 20px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.reglist li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--text-2); }
.reglist li:last-child { border-bottom: 0; }
.reglist li a { font-weight: 700; }

/* ------------------------------------------------------------------ footer */
.mk-footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); margin-top: 64px; padding: 40px 0 46px; font-size: 0.9rem; }
.mk-footer a { color: var(--text-2); text-decoration: none; }
.mk-footer a:hover { color: var(--text); text-decoration: underline; }
.mk-footer > .mk-wrap > div:first-child { color: var(--text); font-weight: 780; font-stretch: 118%; }
.mk-footer ul { gap: 6px 22px; margin-top: 14px; }
.mk-footer .mk-attrib { font-size: 0.82rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ phones */
@media (max-width: 560px) {
  .ctiles, .opwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ctiles a { padding: 14px 14px 12px; }
  .ct-name { font-size: 1.05rem; }
  .opwall .logo-lg, .opwall .opm-lg { height: 52px; padding: 8px 12px; }
  .ow-meta { font-size: 0.8rem; }
}


/* ================================================================== v6: marketplace */
/* type: normal width, bold navy headings */
h1, h2, h3, h4 { font-stretch: 100%; }
h1 { font-weight: 780; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 760; letter-spacing: -0.02em; }
h3 { font-weight: 720; }
.page-head h1 { font-stretch: 100%; font-size: clamp(2rem, 4.4vw, 3rem); }
.site-nav a { color: var(--text); font-weight: 600; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.btn { border-radius: 10px; font-stretch: 100%; }
.block-head > a { font-weight: 650; text-decoration: none; }
.block-head > a::after { content: " \203A"; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* hero: illustrated picture with the question, then a white search panel overlapping it */
.hero { position: relative; padding: 24px 0 0; }
.hero-pic { position: relative; height: clamp(320px, 36vw, 460px); border-radius: 20px; overflow: hidden; background: #8ecbff; }
.hero-svg { display: block; width: 100%; height: 100%; }
.hero-text { position: absolute; top: 24px; left: 0; right: 0; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); color: var(--navy); pointer-events: none; }
.hero-text h1 { color: var(--navy); font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; max-width: 16ch; margin: 0; }
.hero-text p { margin: 12px 0 0; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; color: var(--navy); }
.hero-text p { width: fit-content; max-width: 100%; }
.hero-text p b { color: var(--accent); }
/* white wash behind the text so it stays readable over the sun and the buildings (WCAG AA, measured) */
.hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0) 64%); pointer-events: none; }
.hero-stats { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero-stats li { display: flex; align-items: baseline; gap: 8px; color: var(--navy); font-size: 0.92rem; font-weight: 600; background: rgba(255, 255, 255, 0.82); border-radius: 10px; padding: 4px 12px; }
.hero-stats b { color: var(--navy); font-size: 1.6rem; font-weight: 780; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .hero-stats { display: none; } }
.finder { position: relative; margin: -84px clamp(0px, 3vw, 40px) 0; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(22, 28, 69, 0.16); padding: 22px clamp(16px, 2.4vw, 28px) 18px; }
.find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; }
.find-l { grid-column: 1 / -1; font-weight: 700; font-size: 0.92rem; }
.find select { height: 52px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: inherit; color: var(--text); background: #fff; min-width: 0; }
.find select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.find button { height: 52px; border: 0; border-radius: 10px; padding: 0 28px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.find button:hover { background: #183e8f; }
.find-sub { margin: 18px 0 8px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.kinds a { display: grid; justify-items: center; text-align: center; gap: 0; padding: 8px 6px 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.kinds a:hover { background: var(--surface-2); }
.kinds .cabin { width: 92px; padding: 0; background: none; border-radius: 0; }
.kinds b { font-size: 0.9rem; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.kinds span { font-size: 0.8rem; color: var(--muted); }
.ks-pin { fill: var(--orange); }

/* trust bar */
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 820px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 16px 18px; font-size: 0.9rem; color: var(--text-2); line-height: 1.45; }
.trust .ic { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.trust b { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 2px; }

/* listing cards */
.block { margin: 56px 0; }
.block-head { margin-bottom: 18px; align-items: center; }
.listing { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.listing a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: 0 1px 3px rgba(22, 28, 69, 0.06); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.listing a:hover { box-shadow: 0 12px 30px rgba(22, 28, 69, 0.14); transform: translateY(-2px); }
.l-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.pc { display: block; width: 100%; height: 100%; }
.l-badge { position: absolute; top: 10px; left: 10px; background: var(--c); color: #fff; font-size: 0.76rem; font-weight: 700; border-radius: 6px; padding: 3px 9px; }
.l-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 14px; }
.l-name { font-size: 1.18rem; font-weight: 760; line-height: 1.2; }
.l-country { font-size: 0.88rem; color: var(--muted); }
.l-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 12px 0 14px; font-size: 0.86rem; color: var(--text-2); }
.l-specs > span { display: inline-flex; align-items: center; gap: 6px; }
.l-specs .ic { color: var(--muted); }
.l-ops { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.l-ops .logo-sm { width: 64px; height: 32px; }

.more-row { text-align: center; margin: 24px 0 0; }
.more-row .btn { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.more-row .btn:hover { background: var(--accent); color: #fff; }

/* operator brand row */
.brands { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 1200px) { .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brands a { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); height: 100%; box-sizing: border-box; align-content: start; }
.brands a:hover { border-color: var(--accent); }
.brands .logo-lg { height: 58px; padding: 6px 12px; margin-bottom: 8px; }
.brands .opm-lg { width: 58px; height: 58px; margin-bottom: 8px; }
.brands b { font-size: 0.95rem; line-height: 1.25; }
.brands span { font-size: 0.82rem; color: var(--muted); }

/* promo tiles */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .tiles { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); } .t-map { grid-row: span 3; } }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 130px; padding: 22px 24px 24px; border-radius: 16px; text-decoration: none; color: var(--text); overflow: hidden; }
.t-txt b { display: block; font-size: 1.3rem; font-weight: 760; line-height: 1.2; }
.t-txt > span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--text-2); max-width: 34ch; }
.t-go { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(22, 28, 69, 0.12); }
.tile:hover .t-go { background: var(--accent); color: #fff; }
.t-map { background: var(--navy); color: #fff; }
.t-map .t-txt > span { color: rgba(255, 255, 255, 0.78); }
.t-art { display: block; margin: auto -8px 40px; }
.t-art .map .sea { fill: var(--navy); }
.t-art .map .land { fill: #2c3470; stroke: var(--navy); }
.t-art .map .land.has { fill: #2d56b3; }
.t-art .map .pt-dot { stroke: var(--navy); }
.t-art .map .pt.se .pt-dot, .t-art .map .pt.sa .pt-dot { fill: var(--navy); }
.t-soon { background: #fff0e4; }
.t-time { background: #e5edfa; }
.t-cmp { background: #e3f6ec; }

/* three steps on a grey band */
.steps-band { background: var(--surface-2); box-shadow: 0 0 0 100vmax var(--surface-2); clip-path: inset(0 -100vmax); padding: 56px 0; margin: 64px 0 8px; }
.steps-band h2 { text-align: center; margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps li { display: grid; align-content: start; gap: 4px; }
.steps .cabin { background: #fff; border-radius: 16px; padding: 18px 14px; margin-bottom: 12px; }
.st-n { color: var(--accent); font-weight: 750; font-size: 0.95rem; }
.steps h3 { margin: 0; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--text-2); max-width: 42ch; }
.steps .st-c { margin-top: 8px; font-size: 0.92rem; }
.st-c b { color: color-mix(in srgb, var(--c) 80%, #000); font-size: 1.3rem; }
.how-cta { text-align: center; margin: 32px 0 0; }

/* cabin illustration colours */
.cabin { display: block; width: 100%; height: auto; box-sizing: border-box; }
.cb-body { fill: #ffffff; stroke: #c9cfd8; stroke-width: 2; }
.cb-wheel { fill: #2a3142; }
.cb-glass { fill: #b9c3d6; }
.cb-floor { fill: #eef0f4; }
.cb-dash { fill: #dde1e7; }
.cb-sw { fill: #2a3142; }
.cb-seat rect { fill: #d5dae2; }
.cb-seat .cb-back { fill: #bcc3cd; }
.cb-person ellipse { fill: var(--pc); }
.cb-person .cb-head { fill: var(--pc); stroke: #fff; stroke-width: 2.5; }
.cb-staff { --pc: #e09400; }
.cb-rider { --pc: var(--accent); }
.cb-arm { stroke: #e09400; stroke-width: 6; stroke-linecap: round; fill: none; }
.cb-ring { fill: none; stroke: var(--s6); stroke-width: 2.5; stroke-dasharray: 5 8; stroke-opacity: 0.5; }
.cb-ring-2 { stroke-opacity: 0.85; }
.cb-sensor { fill: var(--s6); stroke: #fff; stroke-width: 2.5; }

/* news */
.news-plan .changes li { border-bottom-style: dashed; }

/* link directory */
.dir-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 28px; margin-top: 18px; }
.dir h3 { font-size: 1rem; margin: 0 0 8px; }
.dir h3 a { color: var(--text); text-decoration: none; }
.dir ul { list-style: none; padding: 0; margin: 0; }
.dir li { margin: 5px 0; font-size: 0.95rem; }
.dir li a { text-decoration: none; }
.dir li a:hover { text-decoration: underline; }
.dir-all { font-weight: 650; }

/* other pages */
.svc, .howbox, .kvs-wide, .srows, .reg, .reglist, .stagelist li, .ctiles a, .opwall a, .upc li, .tablewrap { box-shadow: 0 1px 3px rgba(22, 28, 69, 0.05); }
.mapfig { background: #f7f9fc; }

/* footer */
.mk-footer { background: var(--surface-2); border-top: 0; }
.mk-footer a { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding-top: 0; }
  .hero-pic { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; height: 320px; }
  .hero-text { top: 0; }
  .hero-pic::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.84) 52%, rgba(255, 255, 255, 0) 68%); }
  .hero-pic .hero-svg { width: auto; max-width: none; aspect-ratio: 1600 / 460; margin-left: 50%; transform: translateX(-71%); }
  .finder { margin: -56px 0 0; }
  .find { grid-template-columns: minmax(0, 1fr); }
  .find button { width: 100%; }
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kinds .cabin { width: 72px; }
  .kinds b { font-size: 0.8rem; }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 18px 18px 20px; }
}

/* inner page heads: a light sky band with an illustration card on the right - the street banner (/art/street.svg) by
   default, the city's own postcard on city pages */
.crumbs, .page-head { --ph: #eaf4ff; background-color: var(--ph); box-shadow: 0 0 0 100vmax var(--ph); clip-path: inset(0 -100vmax); }
.page-head { position: relative; border-bottom: 0; margin-bottom: 44px; padding: 44px 0 48px; min-height: 200px; }
.crumbs + .page-head { padding-top: 16px; }
.page-head .lede { color: var(--text-2); }
.page-head::after, .ph-art { content: ""; position: absolute; right: 0; top: 20px; bottom: 32px; aspect-ratio: 16 / 9; max-width: 38%; border-radius: 16px; overflow: hidden;
  background: #cfe6ff url("/art/street.svg") center bottom / cover no-repeat; box-shadow: 0 8px 26px rgba(22, 28, 69, 0.14); }
.crumbs + .page-head::after, .crumbs + .page-head .ph-art { top: 8px; }
.ph-city::after { display: none; }
.ph-art .pc { width: 100%; height: 100%; }
@media (min-width: 761px) { .page-head { padding-right: 42%; box-sizing: border-box; } }
@media (max-width: 760px) {
  .page-head { padding-bottom: 28px; }
  .page-head::after { position: static; display: block; width: 100%; max-width: none; aspect-ratio: 16 / 7; margin-top: 22px; }
  .ph-art { position: static; display: block; width: 100%; max-width: none; margin: 0 0 18px; }
  .op-head::after { display: none; }
}

/* city filter chips */
.filters { margin: 0 0 24px; }
.chip-n { font-size: 0.8em; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.chip.on .chip-n { color: rgba(255, 255, 255, 0.8); }
.chip.on { background: var(--accent); border-color: var(--accent); }

/* Brand kit logo (brand/apply_to_web.py copies it from brand/out/kit) */
.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 32px; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }

/* ================================================================== v7: Outfit headings (brand kit, 2026-11-11) */
:root { --font-display: "Outfit", "Archivo", system-ui, sans-serif; }
h1, h2, h3, h4, .page-head h1, .tl-year, .l-name, .t-txt b, .ct-name, .hero-stats b, .st-n, .mk-footer > .mk-wrap > div:first-child {
  font-family: var(--font-display); font-stretch: 100%; }
h1, .page-head h1, .hero-text h1 { font-weight: 800; letter-spacing: -0.018em; word-spacing: 0.04em; }
h2 { font-weight: 750; letter-spacing: -0.012em; word-spacing: 0.03em; }
h3, .l-name, .t-txt b, .ct-name { font-weight: 700; letter-spacing: -0.005em; }
.tl-year { font-weight: 800; letter-spacing: -0.035em; }
.hero-stats b { font-weight: 800; }

/* Legal pages (/legal, /privacy, /terms) */
.legal { max-width: 72ch; }
.legal-date { color: var(--muted); font-size: 0.92rem; }
.legal-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; line-height: 1.7; }
.legal-nav { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
