/* City pages (/robotaxi-<city>, written by tools/build-cities.mjs). Loaded after report.css and
   only by the generated city pages; uses report.css tokens, adds the map's own. */
:root{
  --map-water:#cdd8d4; --map-land:#ecebe6; --map-town:#dad7cd; --map-line:#8a877e;
  --map-city:rgba(11,93,58,.14); --map-city-line:#0b5d3a; --map-label:#4a4843;
}
@media (prefers-color-scheme:dark){
  :root{
    --map-water:#0c1412; --map-land:#1d1f1d; --map-town:#2c2e2b; --map-line:#77746d;
    --map-city:rgba(127,209,166,.16); --map-city-line:#7fd1a6; --map-label:#c4c1b9;
  }
}

/* hero photo, across the page frame */
.city-hero{padding:0 var(--frame)}
.city-hero img{width:100%;aspect-ratio:12/5;object-fit:cover;background:var(--surface)}
.city-hero figcaption{margin-top:10px;font-family:var(--sans);font-size:.9375rem;line-height:1.5;color:var(--muted);max-width:72ch}
.city-hero figcaption a{color:var(--body)}
@media (max-width:700px){
  .city-hero{padding:0}
  .city-hero img{aspect-ratio:3/2}
  .city-hero figcaption{padding:0 var(--m)}
}

/* the reading column */
.city-col{max-width:calc(52rem + var(--m) * 2);margin:0 auto;padding:clamp(76px,7vw,96px) var(--m) clamp(80px,9vw,128px)}
.city-col h1{font-size:clamp(2.375rem,1.2rem + 4.2vw,4.25rem);letter-spacing:-.028em;line-height:1.02}
.city-col .dek{margin-top:18px;font-size:var(--fs-lead);line-height:1.4;color:var(--ink);max-width:40ch}
.city-col .byline{margin-top:18px;font-family:var(--sans);font-size:.9375rem;line-height:1.55;color:var(--muted);max-width:72ch}
.city-sec h2{margin-top:clamp(64px,8vw,104px);font-size:var(--fs-h2);letter-spacing:-.015em}
.city-sec:first-of-type h2{margin-top:clamp(48px,6vw,72px)}
.city-col p.empty{margin-top:16px}

/* latest news: a lead story, then rows with thumbnails */
.city-news{list-style:none;margin-top:24px;display:grid;gap:clamp(20px,3vw,32px)}
.city-news a{display:grid;grid-template-columns:minmax(0,1fr) 7rem;gap:16px;align-items:start;text-decoration:none;color:var(--body)}
.city-news img{grid-column:2;grid-row:1;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--surface);transition:opacity .2s}
.city-news a > div{grid-column:1;grid-row:1;min-width:0}
.city-news .when{margin-top:8px}
.city-news h3{font-size:1.0625rem;line-height:1.22;letter-spacing:-.008em}
.city-news .sum{margin-top:8px;font-size:1.125rem;line-height:1.55;color:var(--body);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.city-news a:hover h3{text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--accent);text-underline-offset:.15em}
.city-news a:hover img{opacity:.9}
.city-news .lead-item a{grid-template-columns:minmax(0,1fr);gap:20px}
.city-news .lead-item img{grid-column:1;aspect-ratio:2/1}
.city-news .lead-item a > div{grid-row:2}
.city-news .lead-item h3{font-size:clamp(1.25rem,.9rem + 1.5vw,2.25rem);line-height:1.12;letter-spacing:-.018em}
.city-news .lead-item .sum{font-size:var(--fs-body);-webkit-line-clamp:4;line-clamp:4}
@media (min-width:760px){
  .city-news a{grid-template-columns:12rem minmax(0,1fr);gap:28px}
  .city-news img{grid-column:1;aspect-ratio:3/2}
  .city-news a > div{grid-column:2}
  .city-news .lead-item a{grid-template-columns:minmax(0,1fr)}
  .city-news .lead-item a > div{grid-column:1;grid-row:2}
}
/* the same Latest news block inside a hand-written article (/robotaxi-austin, tools/build-cities.mjs) */
.art .city-news{padding-left:0}
.art .city-news li + li{margin-top:0}
.art .city-news h3{margin-top:0}
.art > .austin-news{max-width:none}
.art .austin-news .photo-credits{margin-top:20px}
.more-h{margin-top:clamp(36px,5vw,48px);font-size:var(--fs-h3);font-weight:600;letter-spacing:-.008em}
.more-news{list-style:none;margin-top:12px;display:grid;gap:4px}
.more-news a{display:grid;grid-template-columns:minmax(0,1fr) 7rem;gap:16px;align-items:start;padding:10px 0;text-decoration:none}
.more-news img{grid-column:2;grid-row:1;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--surface);transition:opacity .2s}
.more-news a > div{grid-column:1;grid-row:1;min-width:0}
.more-news a:hover img{opacity:.9}
@media (min-width:760px){
  .more-news a{grid-template-columns:12rem minmax(0,1fr);gap:28px}
  .more-news img{grid-column:1;aspect-ratio:3/2}
  .more-news a > div{grid-column:2}
  .more-news span,.city-news h3{font-size:var(--fs-h3)}
}
.more-news .when{margin-top:4px}
.more-news span{display:block;font-size:1.0625rem;line-height:1.22;letter-spacing:-.008em;color:var(--ink);font-weight:500}
.more-news a:hover span{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px}
.more-all{margin-top:8px;font-family:var(--sans);font-size:var(--fs-ui);font-weight:600}
.more-all a{display:inline-flex;align-items:center;min-height:44px}

/* operators: one block per data row */
.ops{list-style:none;margin-top:24px;display:grid;gap:6px}
.ops li{background:var(--surface);padding:22px clamp(18px,3vw,28px) 24px;display:flex;flex-direction:column}
.ops h3{font-size:var(--fs-h3);font-weight:600;line-height:1.15;letter-spacing:-.008em}
.op-status{margin-top:8px;font-size:1.125rem;line-height:1.45;color:var(--ink)}
.op-area{margin-top:6px;font-family:var(--sans);font-size:.9375rem;line-height:1.45;color:var(--ink)}
.op-meta{margin-top:auto;padding-top:16px;font-family:var(--sans);font-size:.9375rem;line-height:1.5;color:var(--muted);word-break:break-word}
.op-asof{display:block;font-weight:600;color:var(--ink)}
.op-src a{color:var(--body)}
@media (min-width:700px){.ops{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.ops{margin-inline:calc(var(--m) * -1)}}

/* the metro map: wide drawing on larger screens, square drawing on phones */
.city-map{margin-top:24px}
.metromap{display:block;width:100%;height:auto}
.metromap.phone{display:none}
@media (max-width:640px){
  .city-map{margin-inline:calc(var(--m) * -1)}
  .metromap.wide{display:none}
  .metromap.phone{display:block}
  .city-map figcaption{padding:0 var(--m)}
}
.metromap .wa{fill:var(--map-water)}
.metromap .ld{fill:var(--map-land)}
.metromap .tw{fill:var(--map-town);stroke:var(--map-land);stroke-width:.6}
.metromap .co{fill:none;stroke:var(--map-line);stroke-width:1;stroke-dasharray:4 3}
.metromap .me{fill:var(--map-city);stroke:var(--map-city-line);stroke-width:1.75;stroke-linejoin:round}
.metromap text{font-family:var(--sans);font-weight:600;fill:var(--map-label);paint-order:stroke;stroke:var(--map-land);stroke-width:3.5px;stroke-linejoin:round}
.metromap.wide .nb text{font-size:13.5px}
.metromap.phone .nb text{font-size:14.5px}
.metromap .lc{font-family:var(--serif);font-weight:600;fill:var(--ink);stroke-width:4.5px}
.metromap.wide .lc{font-size:22px}
.metromap.phone .lc{font-size:21px}
.metromap .dt{fill:var(--map-city-line);stroke:var(--map-land);stroke-width:2}
.metromap .sc rect{fill:var(--ink)}
.metromap .sc text{font-size:13px;fill:var(--ink)}
.city-map figcaption{margin-top:12px;font-family:var(--sans);font-size:.9375rem;line-height:1.5;color:var(--muted);max-width:72ch}

/* other cities */
.city-links{list-style:none;margin-top:20px;display:grid;gap:0 32px;grid-template-columns:repeat(auto-fill,minmax(min(100%,9.5rem),1fr))}
.city-links a{display:flex;align-items:center;min-height:48px;font-size:1.125rem;color:var(--ink);text-decoration-color:var(--accent)}
.city-col .sources{padding-left:1.25em;max-width:46em}
.city-col .sources li + li{margin-top:8px}

@media (prefers-reduced-motion:no-preference){
  .city-col > h1,.city-col > .dek,.city-col > .byline{animation:tr-rise .6s var(--ease) both}
  .city-col > .dek{animation-delay:.08s}
  .city-col > .byline{animation-delay:.16s}
  .city-hero img{animation:tr-shutter 1.1s var(--ease) both}
}
