/* i-RAMS public website.
   One stylesheet, no framework. Tokens first; components use only tokens.
   Layout: a calm 12-column page, dense where data is, one column on phones. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Named apart from the Noto Sans Ethiopic that Android ships, so that only
   Amharic pages (--font-am) download it. English pages draw their few
   Amharic words with the device's own Ethiopic font (--font-am-local). */
@font-face {
  font-family: "iRAMS Ethiopic";
  src: url("../fonts/noto-sans-ethiopic-ethiopic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7FE;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Brand: ERA's logo colours and the i-RAMS blue. Change them here. */
  --era-orange: #f15a2e;      /* letterhead line, top rules on dark bands */
  --era-amber: #f7941d;       /* eyebrows and IDs on dark bands */
  --era-blue: #0c54a2;        /* letterhead line, links, the i-RAMS blue */
  --blue-mid: #156ede;
  --blue-light: #0b8ec4;
  --gradient: linear-gradient(115deg, var(--blue-light) 0%, var(--blue-mid) 55%, var(--era-blue) 100%);
  --gradient-text: linear-gradient(115deg, var(--blue-mid) 0%, #1260c4 45%, var(--era-blue) 100%);  /* where text sits on it */
  --action: #c2431a;          /* action orange, 5.1:1 on white */
  --action-hover: #9e3412;

  /* Paper and ink */
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #231f20;
  --ink-2: #4a4546;
  --muted: #6b6566;
  --rule: #dedbd3;
  --rule-strong: #b9b5ab;
  --wash: #efede7;
  --accent: var(--action);
  --accent-hover: var(--action-hover);
  --accent-wash: #fbeee4;
  --focus: #ffbf47;
  --strip: #231f20;           /* official-site strip */
  --strip-ink: #ece8e1;

  /* The dark blueprint band */
  --dark: #231f20;
  --dark-ink: #ece8e1;
  --dark-muted: #b8b2a8;
  --dark-rule: #4a4546;
  --grid: linear-gradient(rgba(236, 232, 225, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 232, 225, 0.06) 1px, transparent 1px);

  /* Condition: dots and strips, and the slightly deeper map versions */
  --good: #2e8540;
  --fair: #e3b800;
  --poor: #b3261e;
  --ungraded: #cfccc4;
  --map-good: #1d7a35;
  --map-fair: #cfa400;
  --map-poor: #a61f1a;
  --map-ungraded: #a39d94;
  --asphalt: #2a2a2e;
  --gravel: #c08a3e;

  /* Type */
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Ethiopic", Ebrima, Nyala, Kefa, sans-serif;
  --font-am: "iRAMS Ethiopic", "Overpass", "Noto Sans Ethiopic", Ebrima, Nyala, Kefa, system-ui, sans-serif;
  --font-am-local: "Noto Sans Ethiopic", Ebrima, Nyala, Kefa, "Overpass", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  /* Space and shape */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 5.5rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(35, 31, 32, 0.16);
  --page: 1200px;
  --gutter: max(1rem, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--font);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
:lang(am) body, body:lang(am) { font-family: var(--font-am); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--era-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--action); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; box-shadow: 0 0 0 1px var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--s3); text-wrap: balance; font-weight: 800; }
:lang(am) h1, :lang(am) h2, :lang(am) h3 { line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s4); max-width: 68ch; text-wrap: pretty; }
.lede { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.65; }
.sep { margin: 0 0.35em 0 0.1em; color: inherit; opacity: 0.7; }
.id { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; font-weight: 500; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
main { display: block; padding-block: 0 var(--s8); }
.skip { position: absolute; left: var(--s2); top: -4rem; z-index: 100; background: var(--focus); color: var(--ink); padding: var(--s2) var(--s3); font-weight: 600; }
.skip:focus { top: var(--s2); }

/* ------------------------------------------------------------- frame */
.official { background: var(--strip); color: var(--strip-ink); font-size: var(--fs-xs); }
.official .wrap { display: flex; gap: var(--s3); align-items: center; min-height: 2rem; flex-wrap: wrap; }
.official .today { margin: 0 0 0 auto; max-width: none; }
.official .today time { font-variant-numeric: tabular-nums; }
.flag { display: inline-flex; width: 18px; height: 12px; flex-direction: column; border-radius: 1px; overflow: hidden; flex-shrink: 0; }
.flag i { flex: 1; } .flag i:nth-child(1) { background: #078930; } .flag i:nth-child(2) { background: #fcdd09; } .flag i:nth-child(3) { background: #da121a; }

/* ERA's letterhead: a thick orange line over a thin blue one. */
.letterhead { height: 9px; background: linear-gradient(var(--era-orange) 0 6px, var(--era-blue) 6px 9px); }

.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); position: relative; z-index: 40; }
/* The slim bar: once the logo row has scrolled away, the menu row stays at
   the top with a small seal and Staff sign in. js/site.js sets --mast-hide
   to the logo row's height and marks the header .is-stuck; without the
   script the header simply scrolls away. Phones keep their menu button. */
.mainnav .bar-brand, .mainnav .bar-signin { display: none; }
@media (min-width: 901px) {
  .js .masthead { position: sticky; top: calc(-1 * var(--mast-hide, 0px)); }
  .masthead.is-stuck { box-shadow: 0 4px 14px rgba(35, 31, 32, 0.12); }
  .mainnav { display: flex; align-items: center; gap: var(--s4); }
  .masthead.is-stuck .bar-brand { display: flex; flex: none; }
  .bar-brand img { width: 28px; height: 28px; }
  .masthead.is-stuck .bar-signin { display: inline-flex; margin-left: auto; min-height: 34px; padding: 0.35rem 0.8rem; }
}
html { scroll-padding-top: calc(var(--bar, 0px) + var(--s3)); }
.masthead-row { display: flex; align-items: center; gap: var(--s4) var(--s5); padding-block: var(--s3) var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-tile { display: inline-flex; align-items: center; padding: 0.4rem 0.85rem 0.3rem; border-radius: var(--radius-lg); background: var(--gradient); color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-tile i, .footer-brand i { font-family: Georgia, "Times New Roman", serif; font-size: 1.2em; }
.brand-name { font-size: var(--fs-xs); color: var(--muted); line-height: 1.25; max-width: 9.5rem; }
.masthead .search { flex: 1 1 18rem; max-width: 26rem; }
.utility { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.lang-switch { display: flex; font-size: var(--fs-sm); font-weight: 700; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.lang-switch a, .lang-switch span { padding: 0.45rem 0.7rem; text-decoration: none; line-height: 1.3; color: var(--ink); }
.lang-switch [aria-current] { background: var(--ink); color: var(--surface); }
.lang-switch a:lang(am) { font-family: var(--font-am-local); }

.search { position: relative; }
.search input {
  width: 100%; min-height: 44px; font: inherit; font-size: var(--fs-sm); padding: 0.55rem 0.75rem 0.55rem 2.3rem;
  border: 1.5px solid var(--era-blue); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.search input:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--era-blue); pointer-events: none; }

/* Main menus: Map, the four module menus, Reports, About */
.mainnav { position: relative; }
.nav { display: flex; gap: 0 var(--s5); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav > li > a, .nav summary { display: flex; align-items: center; gap: 0.3rem; min-height: 46px; padding: 0.15rem 0 0; text-decoration: none; font-weight: 700; font-size: 0.9375rem; color: var(--ink); border-bottom: 3px solid transparent; cursor: pointer; list-style: none; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary svg { width: 12px; height: 12px; transition: transform 0.15s; }
.nav details[open] > summary svg { transform: rotate(180deg); }
.nav > li > a:hover, .nav summary:hover { color: var(--era-blue); }
.nav > li > a[aria-current="page"], .nav summary.is-current { border-bottom-color: var(--era-orange); }
.nav-group { position: relative; }
.nav-panel { position: absolute; left: -1.25rem; top: calc(100% + 1px); width: 22rem; background: var(--surface); border-top: 3px solid var(--era-blue); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); padding: var(--s4) var(--s3) var(--s3); z-index: 50; }
.nav-panel-title { margin: 0 var(--s3) var(--s2); font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--era-blue); }
:lang(am) .nav-panel-title { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 700; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: grid; gap: 0.1rem; padding: var(--s2) var(--s3); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav-panel a:hover, .nav-panel a:focus-visible { background: #eef3fa; color: var(--ink); }
.nav-panel a b { font-weight: 700; }
.nav-panel a span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.nav-panel a[aria-current="page"] b { color: var(--era-blue); }
.nav-panel a[aria-current="page"] b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--era-orange); margin-left: 0.45rem; vertical-align: 0.15em; }
.menu { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; font: 700 var(--fs-sm)/1.2 var(--font); padding: 0.65rem 1.1rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-blue { background: var(--gradient-text); color: #fff; }
.btn-blue:hover { background: var(--era-blue); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--era-blue); border-color: var(--era-blue); }
.btn-secondary:hover { background: #eef3fa; color: var(--era-blue); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--dark-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 0; }

/* Page heads on paper (index and text pages) */
.crumbs { display: flex; gap: var(--s2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 var(--s4); font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
:lang(am) .crumbs { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }
.crumbs a { color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--rule-strong); }
.page-head { padding-top: var(--s6); margin-bottom: var(--s6); }
.page-head h1 { margin-bottom: var(--s3); }
.eyebrow { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--era-blue); margin-bottom: var(--s2); }
:lang(am) .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
section + section { margin-top: var(--s8); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: var(--s3); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head .count { font-size: var(--fs-md); font-weight: 600; color: var(--muted); margin-left: var(--s2); }

/* The source of every figure, in mono: FROM i-RAMS · ... · UPDATED ... */
.readout { font: 500 var(--fs-xs)/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: var(--s3) 0 0; max-width: none; }
:lang(am) .readout { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------- the dark blueprint band
   Detail pages open on it: crumbs, an amber eyebrow, the ID in mono, a big
   title, counting figures and the picture on the right. */
.band-dark { background-color: var(--dark); background-image: var(--grid); background-size: 32px 32px; color: var(--dark-ink); border-top: 5px solid var(--era-orange); }
.band-dark a { color: #fff; }
.band-dark a:hover { color: var(--era-amber); }
.band-dark .crumbs, .band-dark .readout { color: var(--dark-muted); }
.band-dark .crumbs a { color: #fff; }
.band-dark .crumbs li + li::before { color: #6b6566; }
.band-dark .eyebrow { color: var(--era-amber); }
.band-dark h1, .band-dark h2 { color: #fff; }
.band-dark .lede { color: #d8d3ca; }
.band-dark :focus-visible { box-shadow: 0 0 0 1px #fff; }
.hero-dark { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7); padding-block: var(--s6) var(--s8); align-items: stretch; }
.hero-dark .hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero-dark h1 { margin: 0; line-height: 1.04; }
.hero-dark h1 .id { color: var(--era-amber); font-size: 0.86em; margin-right: 0.25em; }
.other-name { margin: var(--s2) 0 var(--s5); font-size: var(--fs-lg); font-weight: 600; color: #d8d3ca; }
.other-name:lang(am) { font-family: var(--font-am-local); }
.hero-dark .actions { margin-top: auto; padding-top: var(--s6); }
.hero-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }

/* Figures that count up once (js/site.js); the page prints the final value. */
.figures-row { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures-row > div { flex: 1 1 8rem; padding: var(--s4) var(--s4) var(--s4) 0; }
.figures-row > div + div { border-left: 1px solid var(--rule); padding-left: var(--s4); }
.figures-row dt { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
:lang(am) .figures-row dt { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.figures-row dd { margin: var(--s1) 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures-row dd small { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-left: 0.2em; letter-spacing: 0; }
.band-dark .figures-row { border-color: var(--dark-rule); }
.band-dark .figures-row > div + div { border-color: var(--dark-rule); }
.band-dark .figures-row dt, .band-dark .figures-row dd small { color: var(--dark-muted); }
.band-dark .figures-row dd { color: #fff; }

/* Condition: a dot with its word, never colour alone */
.cdot { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; white-space: nowrap; }
.cdot::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--ungraded); flex: 0 0 auto; }
.cdot-good::before { background: var(--good); }
.cdot-fair::before { background: var(--fair); }
.cdot-poor::before { background: var(--poor); }
.cdot-ungraded { color: var(--muted); font-weight: 600; }

/* A km post: things along a road sit on one; its cap turns orange when reached */
.kmpost { display: inline-block; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.03em; color: var(--ink); background: var(--surface); padding: 0.4rem 0.45rem 0.3rem; border: 1.5px solid var(--ink); border-top: 5px solid var(--rule-strong); border-radius: 3px; white-space: nowrap; }
.kmpost.is-reached { border-top-color: var(--era-orange); }

/* Chips: filters that are also the key */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.35rem 0.9rem; border: 1.5px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--era-blue); color: var(--era-blue); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* A list that shows a few first (js/site.js) */
.reveal-more { margin-top: var(--s4); }
.js [data-reveal-all][hidden], [data-reveal-empty][hidden] { display: none; }
html:not(.js) [data-reveal-all] { display: none; }

/* Rows that carry their own picture */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) var(--s2); text-decoration: none; color: var(--ink); }
a.row:hover { background: var(--surface); color: var(--ink); }
a.row:hover .row-name { color: var(--era-blue); }
.row .id { color: var(--era-blue); font-size: var(--fs-sm); }
.row-name { font-weight: 700; min-width: 0; }
.row-meta { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; display: flex; gap: var(--s4); align-items: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s4); }
.card { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--era-blue); color: var(--ink); box-shadow: 0 6px 18px rgba(12, 84, 162, 0.12); }

/* Meters: progress as a picture */
.meter { height: 0.75rem; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule-strong); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gradient); border-radius: 999px; }

/* Photo slots: an honest placeholder until ERA adds one */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: var(--fs-xs); color: var(--muted); padding-top: var(--s2); }

/* Footer: the letterhead lines, then the i-RAMS blue */
.site-footer { position: relative; overflow: hidden; background: var(--gradient-text); color: #fff; font-size: var(--fs-sm); }
.footer-wave { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.footer-wave path { fill: rgba(13, 202, 240, 0.16); }
.footer-grid { position: relative; padding-block: var(--s7) var(--s6); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6) var(--s8); }
.site-footer h2 { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: var(--s3); }
:lang(am) .site-footer h2 { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.footer-brand { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--s2); }
.site-footer p { max-width: 30rem; line-height: 1.6; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer .readout { color: #dbe8f8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer :focus-visible { box-shadow: 0 0 0 1px #fff; }
/* Fingers need bigger targets than a mouse: footer links, breadcrumbs and phone numbers get a
   24 px tap area on touch screens without changing how they look. */
@media (pointer: coarse) {
  .site-footer li a, .crumbs a { display: inline-block; padding-block: 4px; }
  a[href^="tel:"] { display: inline-block; padding-block: 4px; }
  .site-footer ul { gap: var(--s1); }
}
.legal { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.legal .wrap { padding-block: var(--s4); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-xs); color: #dbe8f8; }

/* Empty states: say what is missing and what will appear */
.empty { border: 1px dashed var(--rule-strong); border-radius: var(--radius-lg); padding: var(--s5); color: var(--ink-2); background: var(--surface); }
.empty p { margin: 0; }
.notice { border-left: 4px solid var(--action); background: var(--accent-wash); padding: var(--s3) var(--s4); margin: var(--s4) 0; font-size: var(--fs-sm); }
.notice p:last-child { margin: 0; }

/* Panels and grids (kept for the pages not yet moved to V2) */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 2px solid var(--ink); overflow: hidden; }
.figures > .figure { margin-left: -1px; padding: var(--s4); border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figure dt { font-size: var(--fs-sm); color: var(--muted); }
.figure dd { margin: 0; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.figure dd small { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.2em; }
.figure dd.figure-note { font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--muted); margin: var(--s1) 0 0; }
.source { display: flex; gap: var(--s2); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s3); }
.source > * + *::before { content: "·"; margin-right: var(--s2); }

/* Phones */
@media (max-width: 1080px) {
  .brand-name { display: none; }
  .nav { gap: 0 var(--s4); }
}
@media (max-width: 900px) {
  .masthead-row { flex-wrap: wrap; }
  .masthead .search { order: 3; flex-basis: 100%; max-width: none; }
  .mainnav { display: none; }
  .menu { display: block; padding-bottom: var(--s2); }
  .menu > summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 700; cursor: pointer; list-style: none; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary svg { width: 18px; height: 18px; }
  .menu .nav { display: grid; gap: 0; border-top: 1px solid var(--rule); }
  .menu .nav > li { border-bottom: 1px solid var(--rule); }
  .menu .nav > li > a, .menu .nav summary { border-bottom: 0; min-height: 48px; justify-content: space-between; }
  .menu .nav > li > a[aria-current="page"], .menu .nav summary.is-current { color: var(--era-blue); }
  .menu .nav-panel { position: static; width: auto; box-shadow: none; border: 0; border-left: 3px solid var(--era-blue); border-radius: 0; padding: 0 0 var(--s3) var(--s2); margin-bottom: var(--s2); }
  .hero-dark { grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s5) var(--s7); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 640px) {
  .brand img { width: 38px; height: 38px; }
  .brand-tile { font-size: 1rem; }
  .utility { gap: var(--s2); }
  .signin-link { padding: 0.5rem 0.7rem; }
  .contact-link { display: none; }
  .figure dd { font-size: var(--fs-xl); }
  .figures-row > div { flex-basis: 45%; }
  .figures-row > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .row { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .row-meta { grid-column: 2; }
  section + section { margin-top: var(--s7); }
}

/* Motion: page-to-page transitions where the browser supports them. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .official, .letterhead, .masthead, .site-footer, .skip, .menu { display: none !important; }
  body { background: #fff; }
  .band-dark { background: #fff; color: #000; border: 0; }
  .band-dark h1, .band-dark h2, .band-dark a { color: #000; }
  .panel, .table-wrap { border-color: #999; }
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--wash); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfaf7; }
tfoot td { font-weight: 700; border-top: 2px solid var(--rule-strong); }

/* Condition: colour, icon and label together, never colour alone */
.strip-good { fill: var(--good); background: var(--good); }
.strip-fair { fill: var(--fair); background: var(--fair); }
.strip-poor { fill: var(--poor); background: var(--poor); }
.strip-ungraded { fill: var(--ungraded); background: var(--ungraded); }
.key { display: flex; gap: var(--s4); flex-wrap: wrap; list-style: none; padding: 0; margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: var(--s2); }
.key i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }

.cbar { display: flex; gap: 2px; height: 1.75rem; }
.cbar-seg { display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; color: #fff; min-width: 2px; }
.cbar-seg:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cbar-seg:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.cbar-seg.strip-fair, .cbar-seg.strip-ungraded { color: var(--ink); }

.road-strip { width: 100%; height: 4.25rem; overflow: visible; }
.road-strip rect:hover { opacity: 0.8; }
.strip-tick { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.strip-label { font: 500 11px var(--mono); fill: var(--muted); }
.strip-marker line { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Bars */
.bars { display: grid; gap: var(--s2); }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
/* The value label sits after the bar, so the longest bar leaves room for it. */
.bar-fill { display: flex; gap: 2px; height: 1.1rem; flex-shrink: 0; width: calc((100% - 6.5rem) * var(--share, 1)); }
.bar-seg { height: 100%; min-width: 2px; }
.bar-fill .bar-seg:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.bar-value { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.series-asphalt { background: var(--asphalt); }
.series-gravel { background: var(--gravel); }

/* Network drawings: every road a stroke, coloured by its condition grade */
.network { width: 100%; height: auto; }
.network path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.net-good { stroke: var(--good); }
.net-fair { stroke: var(--fair); }
.net-poor { stroke: var(--poor); }
.net-ungraded { stroke: #8f8b82; }
.net-muted { stroke: var(--rule-strong); stroke-width: 1 !important; }
.net-focus { stroke: var(--ink); stroke-width: 2.6 !important; }
.road-shape { width: 100%; height: auto; max-height: 15rem; }
.road-shape path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; margin-bottom: var(--s4); padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.filters label { display: grid; gap: var(--s1); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.filters select, .filters input { font: inherit; font-size: var(--fs-sm); padding: 0.45rem 0.6rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); min-width: 9rem; }
.filters .grow { flex: 1 1 14rem; }
.filters .grow input { width: 100%; }
.result-count { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s3); }
th a { color: inherit; text-decoration: none; }
th a:hover { text-decoration: underline; }
th a[aria-current]::after { content: " ↓"; }

.mini-bar { display: flex; gap: 1px; width: 6rem; height: 0.55rem; border-radius: 2px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; }
.table-wrap.long tbody tr { content-visibility: auto; contain-intrinsic-size: auto 2.6rem; }

/* Detail pages */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: 0; font-size: var(--fs-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.locator { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s3); }

.locator figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s2); }

.damage { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.damage li { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.tag { display: inline-block; font-size: var(--fs-xs); padding: 0.1rem 0.5rem; border: 1px solid var(--rule-strong); border-radius: 999px; margin: 0 0.3rem 0.3rem 0; background: var(--surface); }
.pager { display: flex; gap: var(--s3); align-items: center; justify-content: center; margin-top: var(--s5); font-size: var(--fs-sm); }
.results-group + .results-group { margin-top: var(--s6); }
.results { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.results li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); display: flex; gap: var(--s4); align-items: baseline; flex-wrap: wrap; }
.results .id { min-width: 7rem; }

@media (max-width: 900px) {

}
@media (max-width: 640px) {
  .damage li { grid-template-columns: 1fr; }
  .filters select, .filters input { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 45%; }
  .hide-phone { display: none; }
}

/* Year switch */
.years { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.years a, .years span { font-size: var(--fs-sm); font-weight: 600; padding: 0.35rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; background: var(--surface); }
.years [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Planned against accomplished, one row per month */
.progress { display: grid; gap: var(--s2); }

.progress .bar-value { text-align: right; }
.series-legal { background: #7c8691; }
.series-over { background: var(--poor); }

/* Prose pages */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s6); font-size: var(--fs-lg); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose dl { margin: 0 0 var(--s4); }
.prose dt { font-weight: 700; margin-top: var(--s3); }
.prose dd { margin: var(--s1) 0 0; color: var(--ink-2); }
.offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s4); }
@media (max-width: 640px) {

}

/* ------------------------------------------------------------- live map
   The page is the map: the header stays, the rest of the screen is map,
   with the search, the legend (also the filter), the road card and the
   readouts floating over it. */
.map-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.map-body main { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; }
.map-body main > .wrap { max-width: none; width: 100%; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.map-body .site-footer, .map-body > .letterhead ~ .letterhead { display: none; }
.map-body .notice { margin: 0; }
.lm { position: relative; flex: 1; min-height: 0; background: #d3dfeb; }
/* More specific than maplibre-gl.css, which sets the container to position: relative. */
.lm > .map { position: absolute; inset: 0; }
.map-fallback { padding: var(--s5); max-width: 40rem; background: var(--paper); }
.lm-search { position: absolute; left: 20px; top: 20px; width: min(380px, calc(100% - 40px)); z-index: 4; }
.lm-search svg { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; color: var(--era-blue); pointer-events: none; }
.lm-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--surface); border: 0; border-radius: 24px; box-shadow: 0 4px 16px rgba(35, 31, 32, 0.16), 0 0 0 1.5px var(--era-blue); }
.lm-search input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.lm-results { margin-top: 8px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.lm-results ul { list-style: none; margin: 0; padding: 6px 0; }
.lm-results li { display: grid; grid-template-columns: auto 4.5rem minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; padding: 6px 16px; cursor: pointer; font-size: var(--fs-sm); }
.lm-results li[aria-selected="true"], .lm-results li:hover { background: #eef3fa; }
.lm-results .id { color: var(--era-blue); }
.lm-r-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-r-km { font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.lm-r-bridge { width: 10px; text-align: center; color: var(--ink); }
.lm-results-note { margin: 0; padding: 10px 16px; border-top: 1px solid #ece9e2; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); max-width: none; }
.lm-results-note:empty { display: none; }
.lm-hint { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 18px; background: rgba(35, 31, 32, 0.86); color: var(--dark-ink); font: 500 var(--fs-xs) var(--mono); letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; white-space: nowrap; z-index: 2; max-width: none; }
:lang(am) .lm-hint { font-family: var(--font-am); text-transform: none; }

.lm-legend-toggle { display: none; }
.lm-legend { position: absolute; left: 20px; bottom: 20px; width: 296px; max-height: calc(100% - 100px); overflow-y: auto; padding: 16px 16px 14px; border-radius: var(--radius-lg); border-top: 4px solid var(--era-orange); background-color: var(--dark); background-image: var(--grid); background-size: 24px 24px; color: var(--dark-ink); box-shadow: 0 10px 30px rgba(35, 31, 32, 0.3); z-index: 3; }
.lm-legend :focus-visible { box-shadow: 0 0 0 1px #fff; }
.lm-seg { display: flex; flex-wrap: wrap; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); margin-bottom: 14px; }
.lm-seg button { flex: 1 1 22%; min-height: 36px; border: 0; border-radius: var(--radius); font: 700 var(--fs-sm) var(--font); cursor: pointer; background: transparent; color: var(--dark-ink); }
.lm-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lm-env { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; }
.lm-env[hidden] { display: none; }
.lm-env .lm-label { margin: 0; }
.lm-env select { flex: 1 1 auto; min-height: 34px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08); color: var(--dark-ink); font: 700 var(--fs-sm) var(--font); }
.lm-env option { color: var(--ink); background: #fff; }
.lm-label { display: block; margin: 0 0 4px; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); }
:lang(am) .lm-label, :lang(am) .lm-results-note, :lang(am) .lm-kicker, :lang(am) .lm-readout { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }
.lm-rows { list-style: none; margin: 0 -8px 12px; padding: 0; }
.lm-row { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 0; border-radius: var(--radius); background: transparent; color: #fff; font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.lm-row:hover { background: rgba(255, 255, 255, 0.07); }
.lm-row > span:nth-child(2) { flex: 1 1 auto; }
.lm-row[aria-pressed="false"] { opacity: 0.5; }
.lm-row[aria-pressed="false"] > span:nth-child(2) { text-decoration: line-through; }
.lm-count { font: 500 var(--fs-xs) var(--mono); color: var(--dark-muted); white-space: nowrap; }
.sw { width: 20px; height: 5px; border-radius: 3px; flex: 0 0 auto; }
.sw-G { background: var(--map-good); } .sw-F { background: var(--map-fair); } .sw-P { background: var(--map-poor); } .sw-N { background: var(--map-ungraded); }
.sw-a { background: #f3f1ec; } .sw-g { background: var(--gravel); }
.lm-row[aria-pressed="false"] .sw { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dark-muted); }
.lm-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.lm-chips button { flex: 1 1 0; min-height: 40px; border-radius: var(--radius); border: 1.5px solid rgba(255, 255, 255, 0.25); border-bottom-width: 4px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 500 var(--fs-base) var(--mono); cursor: pointer; }
.lm-chips button[aria-pressed="false"] { opacity: 0.45; border-style: dashed; background: transparent; }
[data-colour="class"] .lm-chips [data-class="A"] { border-bottom-color: #fff; } [data-colour="class"] .lm-chips [data-class="B"] { border-bottom-color: var(--era-blue); }
[data-colour="class"] .lm-chips [data-class="C"] { border-bottom-color: #3d8bd9; } [data-colour="class"] .lm-chips [data-class="D"] { border-bottom-color: #6fa6dd; }
[data-colour="class"] .lm-chips [data-class="E"] { border-bottom-color: #93bce6; }
.lm-district { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.lm-district .lm-label { margin: 0; }
.lm-district select { flex: 1 1 auto; min-height: 36px; padding: 0 8px; border-radius: var(--radius); border: 1.5px solid #6b6566; background: #2e2a2b; color: #fff; font: inherit; font-size: var(--fs-sm); }
.lm-switch { margin: 0 -8px; width: calc(100% + 16px); }
.switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #6b6566; flex: 0 0 auto; transition: background 0.2s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.2s; }
[aria-checked="true"] .switch { background: var(--era-orange); }
[aria-checked="true"] .switch i { left: 16px; }
.lm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--dark-rule); padding-top: 10px; margin-top: 10px; }
.lm-readout { margin: 0; font: 500 0.6875rem/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--era-amber); max-width: none; }
.lm-reset { min-height: 32px; padding: 0 10px; border: 1.5px solid var(--dark-ink); border-radius: var(--radius); background: transparent; color: #fff; font: 700 var(--fs-xs) var(--font); cursor: pointer; }

.lm-card { position: absolute; right: 20px; top: 20px; width: 340px; max-height: calc(100% - 140px); overflow-y: auto; padding: 18px 20px; background: var(--surface); border-top: 5px solid var(--era-blue); border-radius: 4px 4px var(--radius-lg) var(--radius-lg); box-shadow: 0 12px 34px rgba(35, 31, 32, 0.22); z-index: 3; }
.lm-card h2 { font-size: var(--fs-lg); margin: 0 1.5rem 2px 0; }
.lm-kicker { margin: 0 2.5rem 6px 0; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--era-blue); max-width: none; }
.lm-other { margin: 0 0 14px; font-size: var(--fs-base); font-weight: 600; color: var(--ink-2); }
.lm-other:lang(am) { font-family: var(--font-am-local); }
.lm-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lm-close svg { width: 16px; height: 16px; }
.lm-close:hover { background: var(--wash); }
.lm-card-body { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.lm-outline { flex: 0 0 96px; width: 96px; height: 96px; border-radius: var(--radius); background-color: var(--paper); background-image: linear-gradient(rgba(12, 84, 162, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 84, 162, 0.08) 1px, transparent 1px); background-size: 12px 12px; }
.lm-outline path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; }
.lm-outline .o-casing { stroke: #fff; stroke-width: 6; }
.o-G { stroke: var(--map-good); } .o-F { stroke: var(--map-fair); } .o-P { stroke: var(--map-poor); } .o-N { stroke: var(--map-ungraded); }
.lm-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; flex: 1 1 auto; }
.lm-card dl .wide { grid-column: 1 / -1; }
.lm-card dt { font: 500 0.625rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
:lang(am) .lm-card dt { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.lm-card dd { margin: 2px 0 0; font-size: var(--fs-lg); font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lm-card dd small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.lm-card .wide dd { font-size: var(--fs-base); }
.cdot-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.cdot-sw.sw-G { background: var(--good); } .cdot-sw.sw-F { background: var(--fair); } .cdot-sw.sw-P { background: var(--poor); } .cdot-sw.sw-N { background: var(--ungraded); }
.lm-district-link { display: inline-block; margin-bottom: 14px; font-size: var(--fs-sm); }
.lm-actions { display: flex; gap: 8px; }
.lm-actions .btn-blue { flex: 1 1 auto; }
.lm-link { margin: 12px 0 0; font: 500 0.6875rem var(--mono); color: var(--muted); word-break: break-all; max-width: none; }

.lm-tip { position: absolute; left: 0; top: 0; z-index: 5; padding: 8px 12px; border-radius: var(--radius); background: var(--dark); color: #fff; box-shadow: 0 6px 18px rgba(35, 31, 32, 0.3); pointer-events: none; white-space: nowrap; font-size: var(--fs-sm); }
.lm-tip .id { color: var(--era-amber); margin-right: 4px; }
.lm-tip-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: var(--fs-xs); color: #d8d3ca; }
.lm-hud { position: absolute; right: 64px; bottom: 30px; z-index: 2; padding: 6px 10px; border-radius: var(--radius); background: rgba(35, 31, 32, 0.86); color: var(--dark-ink); font: 500 var(--fs-xs) var(--mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; pointer-events: none; }
.lm-coords { white-space: pre; }
.lm-credit { position: absolute; right: 10px; bottom: 4px; margin: 0; font-size: 0.6875rem; color: var(--ink-2); background: rgba(243, 241, 236, 0.85); padding: 1px 6px; border-radius: 3px; max-width: none; z-index: 1; }
.lm-credit a { color: var(--ink-2); }
/* Satellite: Google's map sits under ours. Its logo and links stay clear of the
   legend and credit, and our map stops short of them so they can be clicked. */
.lm.is-satellite { background: #2b2b2b; }
.lm.is-satellite > #map { clip-path: inset(0 0 26px 0); }
.lm.is-satellite .lm-credit { display: none; }
.lm.is-satellite .lm-legend { bottom: 38px; max-height: calc(100% - 118px); }
.lm-hint[hidden] { display: none; }
.lm .maplibregl-ctrl-bottom-right { right: 10px; bottom: 26px; display: flex; flex-direction: column; align-items: flex-end; }
.lm .maplibregl-ctrl-group { border-radius: var(--radius); box-shadow: 0 4px 14px rgba(35, 31, 32, 0.16); }
.lm .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.lm .maplibregl-ctrl-scale { border-color: var(--ink); background: rgba(243, 241, 236, 0.85); font: 500 0.6875rem var(--mono); color: var(--ink); }

@media (max-width: 900px) {
  .lm-hint, .lm-credit, .lm-hud { display: none; }
  .lm-search { left: 12px; right: 12px; top: 12px; width: auto; }
  .lm-legend-toggle { display: block; position: absolute; left: 12px; bottom: 16px; z-index: 3; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; border-top: 3px solid var(--era-orange); background: var(--dark); color: #fff; font: 700 var(--fs-sm) var(--font); box-shadow: var(--shadow); cursor: pointer; }
  .lm-legend { display: none; left: 12px; right: 12px; bottom: 70px; width: auto; max-height: 55%; }
  .lm-legend.is-open { display: block; }
  .lm.is-satellite .lm-legend-toggle { bottom: 38px; }
  .lm.is-satellite .lm-legend { bottom: 92px; max-height: 55%; }
  .lm-card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 60%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 4; }
}

.cite { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s4) var(--s5); }
.cite h2 { font-size: var(--fs-md); }
.cite p { margin: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
@media print {

  section { break-inside: avoid; }
}

/* Suggestions under a search box */
.suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: var(--s1) 0; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14); }
.suggest a { display: grid; grid-template-columns: 4.5rem 6.5rem minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s2) var(--s3); text-decoration: none; font-size: var(--fs-sm); }
.suggest a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--wash); color: var(--ink); }
.suggest-kind { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 640px) { .suggest a { grid-template-columns: 5.5rem minmax(0, 1fr); } .suggest-kind { display: none; } }

/* Staff sign-in */
.signin-body .mainnav, .signin-body .masthead .search, .signin-body .masthead .menu, .signin-body .utility .btn { display: none; }
.js .signin-body .masthead { position: relative; }  /* the sign-in page has no menu row to keep */
.js .masthead-plain { position: relative; }          /* nor do the sign-in and 404 pages before launch */
.signin { display: grid; place-items: start center; padding-block: var(--s5); }
.signin-card { width: 100%; max-width: 26rem; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--radius-lg); padding: var(--s6) var(--s5); }
.signin-card h1 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.signin-form { display: grid; gap: var(--s2); margin-top: var(--s5); }
.signin-form label { font-weight: 600; font-size: var(--fs-sm); margin-top: var(--s2); }
.signin-form input { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; }
.signin-form input:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.password { position: relative; }
.password input { padding-right: 4.5rem; }
.password-toggle { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); font: 600 var(--fs-sm) var(--font); background: none; border: 0; color: var(--ink-2); padding: 0.4rem 0.6rem; cursor: pointer; min-height: 24px; }
.signin-submit { justify-content: center; margin-top: var(--s4); padding: 0.8rem 1rem; font-size: var(--fs-base); }
.signin-help { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--s5) 0 0; }
.alert { border-left: 4px solid; padding: var(--s3) var(--s4); margin: var(--s4) 0 0; font-size: var(--fs-sm); border-radius: 0 var(--radius) var(--radius) 0; }
.alert-error { border-color: var(--poor); background: #fbe9e6; }
.alert-warn { border-color: var(--fair); background: #fdf5e1; }
.alert-ok { border-color: var(--good); background: #e8f3ea; }

/* ------------------------------------------------------------------ home
   The atlas: the federal network over Ethiopia's terrain. On first visit
   each road draws itself outward from Addis Ababa (--d is how far out it
   starts, 0-1), then takes its colour. Reduced motion, or a second visit
   in the same session, shows the finished picture. The tabs (data-mode)
   recolour the same drawing by module. */
.home-hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
/* The text starts level with the tabs: the map runs to the window's edge and grows taller than the text. */
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; padding-block: var(--s7) var(--s6); }
.home-copy h1 { margin-bottom: var(--s2); line-height: 1.04; }
:lang(am) .home-copy h1 { line-height: 1.25; letter-spacing: 0; }
.home-other { font-size: var(--fs-lg); font-weight: 700; color: var(--era-blue); margin: 0 0 var(--s4); line-height: 1.4; }
.home-other:lang(am) { font-family: var(--font-am-local); }
.home-search { margin-top: var(--s5); }
.home-search input { font-size: var(--fs-md); min-height: 54px; padding: 0.85rem 1rem 0.85rem 3rem; border-width: 2px; }
.home-search svg { width: 20px; height: 20px; left: 1rem; }
.road-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: var(--s1) 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.road-results a { display: grid; grid-template-columns: auto 4.5rem minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; padding: var(--s2) var(--s4); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); }
.road-results li[aria-selected="true"] a, .road-results a:hover { background: #eef3fa; color: var(--ink); }
.road-results .id { color: var(--era-blue); }
.rr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-km { font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.road-results-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-hint { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--s2) 0 0; }
.home-figures { margin-top: var(--s6); container-type: inline-size; }
.home-figures .figures-row { border-top: 3px solid var(--era-blue); flex-wrap: nowrap; }
/* Always one row of three: the figures shrink with the column. */
.home-figures .figures-row > div { flex: 1 1 0; min-width: 0; padding-right: var(--s3); }
.home-figures .figures-row > div + div { border-left: 1px solid var(--rule); padding-left: var(--s3); }
.home-figures .figures-row dd { font-size: min(2.25rem, 6.6cqi); white-space: nowrap; }
@media (max-width: 640px) {
  .home-figures .figures-row > div { padding-right: var(--s2); }
  .home-figures .figures-row > div + div { padding-left: var(--s2); }
}

.home-map { margin: 0; position: relative; }
/* On wide screens the drawing runs on to the right edge of the window; the
   tabs, text and key keep to the column. */
@media (min-width: 1240px) {
  .home-hero { overflow-x: clip; }
  .home-hero .home-map { --bleed: max(0px, (100vw - var(--page)) / 2 + 16px); margin-right: calc(-1 * var(--bleed)); }
  .home-hero .home-map > :not(.home-atlas) { margin-right: var(--bleed); }
}
/* The four tabs share the bar's whole width (two by two on a phone), so it never ends in an empty stretch. */
.map-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #e8eef7; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .map-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-tabs button { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; padding: 0.45rem 0.9rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; line-height: 1.2; cursor: pointer; text-align: left; }
.map-tabs button b { font-size: var(--fs-sm); }
.map-tabs button span { font-size: 0.6875rem; font-weight: 700; color: var(--era-blue); }
.map-tabs button:hover { background: rgba(255, 255, 255, 0.7); }
.map-tabs button[aria-selected="true"] { background: var(--gradient-text); color: #fff; }
.map-tabs button[aria-selected="true"] span { color: #cfe2ff; }
.map-tab-text { margin: var(--s3) 0 var(--s2); font-size: var(--fs-sm); color: var(--ink-2); max-width: none; }
.map-tab-text b { color: var(--ink); }
.home-atlas { position: relative; }

.atlas-frame { position: relative; margin: 0; }
.atlas { width: 100%; height: auto; display: block; touch-action: manipulation;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect; }
.atlas-borders { fill: none; stroke: #b9b3a5; stroke-width: 0.6; vector-effect: non-scaling-stroke; stroke-dasharray: 3 2; }
.atlas-lakes { fill: #b9d0da; stroke: #9db9c6; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.atlas-rivers path { fill: none; stroke: #9cbac8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 0.7; }
.atlas-rivers .rank-1, .atlas-rivers .rank-2, .atlas-rivers .rank-3 { stroke-width: 1.3; }
.atlas-rivers .rank-4, .atlas-rivers .rank-5, .atlas-rivers .rank-6 { stroke-width: 1; }
.atlas-outline { fill: none; stroke: #6f6658; stroke-width: 1; vector-effect: non-scaling-stroke; }
.atlas-roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 1.15; stroke: var(--c); transition: stroke 0.5s ease, opacity 0.3s ease; }
.atlas-roads .c-A { stroke-width: 2; }
.atlas-roads .c-B { stroke-width: 1.5; }
/* Condition (the default): the map colours, which hold on the terrain. */
.atlas-roads .net-good { --c: var(--map-good); }
.atlas-roads .net-fair { --c: #c98300; }
.atlas-roads .net-poor { --c: var(--map-poor); }
.atlas-roads .net-ungraded { --c: #5f5a50; }
/* Surface */
[data-mode="surface"] .atlas-roads .s-a { --c: #231f20; }
[data-mode="surface"] .atlas-roads .s-g { --c: var(--gravel); }
/* Road class */
[data-mode="class"] .atlas-roads .c-A { --c: #231f20; }
[data-mode="class"] .atlas-roads .c-B { --c: var(--era-blue); }
[data-mode="class"] .atlas-roads .c-C { --c: #3d8bd9; }
[data-mode="class"] .atlas-roads .c-D { --c: #6fa6dd; }
[data-mode="class"] .atlas-roads .c-E, [data-mode="class"] .atlas-roads .c-X { --c: #93bce6; }
/* Bridges: the roads step back, the bridges come forward */
[data-mode="bridges"] .atlas-roads path { --c: #a39d90; }
/* Geology tab: the ground under each road (USGS Africa lithology, via ERA).
   Colours checked for colour-blind separation; the legend names them too. */
.geo-ash { --geo: #eb6834; } .geo-colluvium { --geo: #eda100; } .geo-alluvium { --geo: #1baf7a; } .geo-water { --geo: #008300; }
.geo-volcanic { --geo: #6250d6; } .geo-sedimentary { --geo: #2a78d6; } .geo-metamorphic { --geo: #e87ba4; } .geo-other { --geo: #a39d94; }
.geo-sw-ash { background: #eb6834; } .geo-sw-colluvium { background: #eda100; } .geo-sw-alluvium { background: #1baf7a; } .geo-sw-water { background: #008300; }
.geo-sw-volcanic { background: #6250d6; } .geo-sw-sedimentary { background: #2a78d6; } .geo-sw-metamorphic { background: #e87ba4; } .geo-sw-other { background: #a39d94; }
.atlas-geology { opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.atlas-geology path { fill: none; stroke: var(--geo); stroke-width: 2.1; stroke-linecap: butt; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
[data-mode="geology"] .atlas-geology { opacity: 1; }
[data-mode="geology"] .atlas-roads path { --c: #c9c5bc; }
.atlas.hovering .atlas-geology, .atlas.searching .atlas-geology { opacity: 0.35; }
/* Geology tab: the roads coloured by the ground under them over pale grey
   terrain; the switch (.geo-c) shows the whole country's geological surface
   (USGS map, scripts/build_geology_background.py) with the roads on top. */
.atlas > image { transition: filter 0.5s ease, opacity 0.5s ease; }
.atlas-geo-bg { opacity: 0; transition: opacity 0.5s ease; }
[data-mode="geology"] .atlas > image:first-of-type { filter: grayscale(1) contrast(0.85) brightness(1.08); opacity: 0.85; }
.geo-c[data-mode="geology"] .atlas-geo-bg { opacity: 1; }
.geo-c[data-mode="geology"] .atlas-roads path { --c: #ffffff; stroke-width: 3.4; }
.geo-c[data-mode="geology"] .atlas-geology path { stroke-width: 1.7; }
.geo-view { position: absolute; z-index: 2; top: var(--s3); right: calc(var(--bleed, 0px) + var(--s3)); display: inline-flex; padding: 2px; gap: 2px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.geo-view[hidden] { display: none; }
.geo-view button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; font: inherit; font-size: var(--fs-xs, 0.75rem); color: var(--muted); cursor: pointer; }
.geo-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.geo-view button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.geo-key .geo-share { display: flex; gap: 2px; height: 6px; margin: 0 0 var(--s2); border-radius: 3px; overflow: hidden; }
.geo-key .geo-share i { display: block; min-width: 2px; }
.geo-key .key i { border-radius: 2px; }
.geo-key .geo-km { color: var(--muted); font-variant-numeric: tabular-nums; }
.geo-legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s3); }
.geo-legend li i { width: 14px; height: 6px; }
.lm-note { margin: var(--s2) 0 0; font-size: var(--fs-xs, 0.75rem); color: var(--muted); }
.geo-key .geo-km { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: var(--s1); }
/* Environment tab: the views share one cell, so the tallest sets the height
   and picking another moves nothing on the page. */
.env-stack { display: grid; }
.env-stack[hidden] { display: none; }
.env-stack > * { grid-area: 1 / 1; min-width: 0; }
.env-line { display: block; }
.env-off { visibility: hidden; }
.atlas-env { display: none; pointer-events: none; }
.atlas-env path { fill: none; stroke-width: 2.1; stroke-linecap: butt; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
[data-mode="geology"] .atlas-env.is-on { display: inline; }
.atlas.hovering .atlas-env, .atlas.searching .atlas-env { opacity: 0.35; }
.home-atlas:not([data-env="geology"]) .atlas-geology { opacity: 0; }
.home-atlas:not([data-env="geology"]) [data-geo-view="map"] { display: none; }
.env-warm[data-mode="geology"] .atlas > image:first-of-type { filter: none; opacity: 1; }
.env-pick { position: absolute; z-index: 2; top: var(--s3); left: var(--s3); display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 4px 2px 14px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line, #d9d5cc); border-radius: 999px;
  font-size: var(--fs-xs, 0.75rem); color: var(--muted); }
.env-pick[hidden] { display: none; }
.env-pick select { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700;
  padding: 4px 10px; cursor: pointer; }
.env-pick select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* The picker and the map switch stand upright in the empty corners, clear of
   the country; on a phone there are no such corners, so they sit above it. */
.geo-view { right: var(--s3); }
@media (max-width: 1300px) {
  .geo-view { flex-direction: column; border-radius: 14px; }
  .geo-view button { text-align: left; border-radius: 11px; }
}
@media (max-width: 760px) {
  .env-pick, .geo-view { position: static; flex-direction: row; border-radius: 999px; margin: 0 0 var(--s2) var(--s2); }
  .geo-view button { border-radius: 999px; }
}
.env-row + .env-row { margin-top: var(--s5, 24px); }
.env-name { margin: 0 0 var(--s1); font-weight: 700; }
.env-name .readout { font-weight: 400; margin-left: var(--s2); }
.atlas-bridges { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
[data-mode="bridges"] .atlas-bridges { opacity: 0.85; }
/* Districts: each its own colour */
.dist-alemgena { --c: #0c54a2; } .dist-adigrat { --c: #231f20; } .dist-combolcha { --c: #7b3fa0; }
.dist-debre-markos { --c: #1d7a35; } .dist-diredawa, .dist-dire-dawa { --c: #a07800; } .dist-gode { --c: #0b8ec4; }
.dist-gondar, .dist-gonder { --c: #a61f1a; } .dist-jimma { --c: #546e7a; } .dist-nekemte { --c: #d16f00; }
.dist-shashemene { --c: #6d4c41; } .dist-sodo { --c: #c2185b; }
.key-dist { background: var(--c); }
/* Districts tab: each office's area (ERA's RNMBO boundaries) under its roads. */
.atlas-districts { opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
[data-mode="districts"] .atlas-districts { opacity: 1; }
.dist-nation { fill: none; stroke: #6b6566; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
[data-mode="districts"] .atlas-outline { opacity: 0; }
/* The terrain's own colours (green lowlands, brown highlands) would tint the
   areas differently from place to place; grey it so each reads true. */
[data-mode="districts"] .atlas > image:first-of-type { filter: grayscale(1) contrast(0.85) brightness(1.08); opacity: 0.85; }
.dist-area { fill: var(--c); fill-opacity: 0.17; stroke: var(--c); stroke-opacity: 0.6; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dist-label { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; fill: var(--ink); fill-opacity: 0.7; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-opacity: 0.85; }
:lang(am) .dist-label { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: 11px; }
.key-districts { gap: var(--s1) var(--s4) !important; }
[data-mode="districts"] .atlas-roads path { --c: inherit; }
[data-mode="districts"] .atlas-roads .dist-alemgena { --c: #0c54a2; } [data-mode="districts"] .atlas-roads .dist-adigrat { --c: #231f20; }
[data-mode="districts"] .atlas-roads .dist-combolcha { --c: #7b3fa0; } [data-mode="districts"] .atlas-roads .dist-debre-markos { --c: #1d7a35; }
[data-mode="districts"] .atlas-roads .dist-diredawa, [data-mode="districts"] .atlas-roads .dist-dire-dawa { --c: #a07800; } [data-mode="districts"] .atlas-roads .dist-gode { --c: #0b8ec4; }
[data-mode="districts"] .atlas-roads .dist-gondar, [data-mode="districts"] .atlas-roads .dist-gonder { --c: #a61f1a; } [data-mode="districts"] .atlas-roads .dist-jimma { --c: #546e7a; }
[data-mode="districts"] .atlas-roads .dist-nekemte { --c: #d16f00; } [data-mode="districts"] .atlas-roads .dist-shashemene { --c: #6d4c41; }
[data-mode="districts"] .atlas-roads .dist-sodo { --c: #c2185b; }
.key-asphalt { background: #231f20; } .key-gravel { background: var(--gravel); }
.key-c-A { background: #231f20; } .key-c-B { background: var(--era-blue); } .key-c-C { background: #3d8bd9; } .key-c-D { background: #6fa6dd; } .key-c-E { background: #93bce6; }
.key-dot { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--ink); }

.atlas.hovering .atlas-roads path, .atlas.searching .atlas-roads path { opacity: 0.35; }
/* !important: a finished draw-in animation otherwise keeps hold of the stroke. */
.atlas.searching .atlas-roads path.is-match { opacity: 1; stroke: var(--blue-mid) !important; stroke-width: 2.6 !important; }
.atlas .atlas-roads path.is-hot-search { stroke: var(--action) !important; stroke-width: 3.6 !important; opacity: 1; }
.atlas.hovering .atlas-roads path.is-hot { opacity: 1; stroke-width: 3.6 !important; stroke: var(--ink) !important; }
.atlas-capital circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.atlas-capital text { font: 700 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(246, 245, 241, 0.92); stroke-width: 3px; }
:lang(am) .atlas-capital text { font-family: var(--font-am); }

@media (prefers-reduced-motion: no-preference) {
  html:not(.atlas-seen) .atlas-roads path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: atlas-draw 0.75s cubic-bezier(0.25, 0.7, 0.3, 1) calc(0.15s + var(--d, 0) * 1.05s) forwards,
               atlas-tint 0.55s ease calc(1.75s + var(--d, 0) * 0.25s) both;
  }
  html:not(.atlas-seen) .atlas-capital { animation: atlas-fade 0.4s ease both; }
}
@keyframes atlas-draw { to { stroke-dashoffset: 0; } }
@keyframes atlas-tint { from { stroke: #3b3730; } to { stroke: var(--c); } }
@keyframes atlas-fade { from { opacity: 0; } }

.atlas-frame figcaption { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s2); }
.atlas-frame figcaption .key { margin: 0; font-size: var(--fs-xs); gap: var(--s3); }
.atlas-frame figcaption .key[hidden] { display: none; }
.atlas-frame figcaption p { margin: 0; }
.atlas-frame .credit { flex-basis: 100%; font-size: 0.72rem; }
.road-card { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 13rem; max-width: 19rem; background: var(--surface); border: 1px solid var(--rule-strong); border-left: 4px solid var(--era-blue); border-radius: var(--radius); padding: var(--s2) var(--s3); box-shadow: var(--shadow); font-size: var(--fs-sm); }
.road-card p { margin: 0; }
.road-card-head b { font-weight: 700; }
.road-card-head .id { color: var(--era-blue); }
.road-card-meta { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s1) !important; color: var(--ink-2); }
.road-card-hint { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s1) !important; }
.grade-chip { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 999px; color: #fff; }
.grade-chip.strip-fair, .grade-chip.strip-ungraded { color: var(--ink); }

/* ERA's story: the left side stays; the road draws as the reader scrolls
   (--fill per milestone, js/home.js). Without the script every milestone
   shows drawn. */
.era-story { margin-top: 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); padding-block: var(--s7) var(--s9); align-items: start; }
.story-side { position: sticky; top: calc(var(--bar, 0px) + var(--s5)); }
.sheet-line { display: flex; justify-content: space-between; gap: var(--s3); font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); border-bottom: 1px solid var(--dark-rule); padding-bottom: var(--s3); margin-bottom: var(--s6); }
.story-side h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; }
.story-side .lede { margin-bottom: var(--s6); }
.story-readout { border: 1px solid var(--dark-rule); background: rgba(27, 23, 24, 0.9); padding: var(--s4) var(--s5); }
.story-readout > div { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
.sr-year { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--era-amber); line-height: 1; }
.sr-index { font-size: var(--fs-xs); color: var(--dark-muted); }
.sr-title { margin: var(--s3) 0 var(--s4); color: #fff; font-size: var(--fs-base); min-height: 3.2em; }
.sr-bar { height: 3px; background: #45403f; }
.sr-bar i { display: block; height: 3px; width: 100%; background: var(--era-amber); }
.is-drawing .sr-bar i { width: 0; }
.story-more { font-weight: 700; display: inline-block; margin-top: var(--s5); }
.story-road { list-style: none; margin: 0; padding: 0; }
.story-row { display: grid; grid-template-columns: 6.5rem 3.25rem minmax(0, 1fr); min-height: 17rem; --fill: 1; }
.is-drawing .story-row { --fill: 0; }
.story-post { justify-self: end; align-self: start; margin: var(--s4) var(--s4) 0 0; font: 500 var(--fs-sm)/1 var(--mono); padding: 0.45rem 0.6rem 0.35rem; border-radius: 3px; border-top: 6px solid var(--era-orange); background: #fff; color: var(--ink); transition: background 0.3s, color 0.3s, border-color 0.3s; white-space: nowrap; }
.is-drawing .story-row:not(.is-reached) .story-post { background: #3b3536; color: #cfc9c1; border-top-color: #5c5556; }
.story-lane { position: relative; border-left: 3px dashed var(--dark-rule); border-right: 3px dashed var(--dark-rule); }
.story-lane i { position: absolute; left: -3px; right: -3px; top: 0; height: calc(var(--fill) * 100%); background: #3b3536 repeating-linear-gradient(to bottom, var(--era-amber) 0 16px, transparent 16px 30px) center top / 4px 100% no-repeat; border-left: 3px solid var(--dark-ink); border-right: 3px solid var(--dark-ink); }
.story-text { padding: var(--s4) 0 var(--s7) var(--s5); transition: opacity 0.3s; }
.is-drawing .story-row:not(.is-reached):not(.story-today) .story-text { opacity: 0.62; }
.story-text h3 { font-size: var(--fs-lg); color: #fff; margin-bottom: var(--s2); }
.story-text .readout { color: var(--era-amber); margin: 0 0 var(--s3); }
.story-text p { color: #d8d3ca; }
.story-photo { max-width: 26rem; aspect-ratio: 16 / 9; }
.story-today .story-post { background: var(--era-amber); border-top-color: var(--era-orange); }
.story-today { min-height: 0; }
.today-panel { border: 1px solid #5c5556; background: #1b1718; }
.today-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px solid #45403f; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); margin: 0; max-width: none; }
.today-head span:first-child { color: var(--era-amber); }
.today-panel dl { margin: 0; display: flex; flex-wrap: wrap; }
.today-panel dl > div { flex: 1 1 9rem; padding: var(--s4); border-right: 1px solid #45403f; border-bottom: 1px solid #45403f; }
.today-panel dl > .today-wide { flex-basis: 100%; border-right: 0; border-bottom: 0; }
.today-panel dt { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); }
.today-panel dd { margin: var(--s1) 0 0; font-size: 1.6rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.today-panel dd small { font-size: var(--fs-sm); color: var(--dark-muted); font-weight: 600; }
.today-panel .today-wide dd { font-size: var(--fs-base); font-weight: 400; }
:lang(am) .today-head, :lang(am) .today-panel dt, :lang(am) .sheet-line { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }

/* A road up close: its words and outline on the left, its photo on the right */
.upclose { margin-top: var(--s8); }
.upclose-nav { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--era-blue); border-radius: var(--radius); background: var(--surface); color: var(--era-blue); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: #eef3fa; }
.upclose-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: stretch; }
.upclose-item[hidden] { display: none; }
.upclose-text { display: flex; flex-direction: column; min-width: 0; }
.upclose-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s1); }
.upclose-text h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: var(--s4); }
.upclose-text h3 a { color: var(--ink); text-decoration: none; }
.upclose-text h3 a:hover { color: var(--era-blue); }
.upclose-text h3 .id { color: var(--era-blue); }
.upclose-body { display: flex; gap: var(--s5); align-items: stretch; flex: 1 1 auto; }
.upclose-outline { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; font-size: var(--fs-xs); color: var(--ink-2); flex: 0 0 6rem; }
.upclose-outline b { color: var(--ink); font-size: var(--fs-sm); }
.upclose-outline .outline-svg { width: 100%; max-height: 17rem; margin: var(--s2) 0; flex: 1 1 auto; }
.upclose-facts { margin: 0; display: flex; flex-direction: column; gap: var(--s4); font-size: var(--fs-base); }
.upclose-facts dt { font-size: var(--fs-xs); color: var(--muted); }
.upclose-facts dd { margin: 0; }
.upclose-facts dd.big { font-size: var(--fs-xl); font-weight: 800; }
.upclose-facts dd.big small { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.upclose-facts .cdot { font-size: var(--fs-base); }
.upclose-photo { aspect-ratio: 3 / 2; align-self: start; }
.upclose-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s3) var(--s4) var(--s2); background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; }

/* A road's outline, coloured stretch by stretch (charts.road_outline) */
.outline-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.outline-svg .ol-base { stroke: var(--rule-strong); stroke-width: 4; }
.outline-svg .ol-segs path { stroke-width: 5; }
.outline-svg .ol-plain { stroke: var(--ink); }
.ol-good { stroke: var(--map-good); } .ol-fair { stroke: var(--map-fair); } .ol-poor { stroke: var(--map-poor); } .ol-ungraded { stroke: var(--map-ungraded); }
.outline-svg .ol-bridges { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.ol-marker { fill: var(--era-blue); stroke: #fff; stroke-width: 2.5; }
.ol-marker-halo { fill: rgba(12, 84, 162, 0.18); }

/* Districts on the dark band, their roads in amber */
.districts-band { margin-top: var(--s8); }
.districts-band .wrap { padding-block: var(--s7) var(--s8); }
.districts-band .section-head { border-color: #45403f; }
.district-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: var(--s3); }
.district-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s4); align-items: center; padding: var(--s4); border: 1px solid #3b3536; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); text-decoration: none; color: var(--dark-ink); transition: border-color 0.15s, background 0.15s; }
.district-card:hover { border-color: var(--era-amber); background: rgba(247, 148, 29, 0.08); color: #fff; }
.district-card b { display: block; color: #fff; font-size: var(--fs-md); }
.dc-meta { display: block; font-size: var(--fs-xs); color: var(--dark-muted); margin: var(--s1) 0 var(--s2); }
.district-card .cbar { height: 0.45rem; gap: 1px; }
.district-card .cbar-seg { font-size: 0; }
.district-card .mini-land { fill: #2e2a2b; stroke: #5c5556; }
.district-card .mini-roads { stroke: var(--era-amber); stroke-width: 1.4; }
.district-card:hover .mini-roads { stroke: #ffb04d; }
.mini { width: 100%; height: auto; }
.mini-land { fill: var(--wash); stroke: var(--rule-strong); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.mini-roads { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Featured work: split, the photo uncovered; one story every 6 s */
.featured { margin-top: var(--s8); }
.slider { position: relative; background: var(--dark); border-top: 5px solid var(--era-orange); overflow: hidden; }
.slides { display: grid; gap: 1px; }
.slide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); min-height: 27.5rem; }
.slide-text { color: var(--dark-ink); padding: var(--s6) var(--s6) var(--s6); display: flex; flex-direction: column; justify-content: center; }
.slide-count { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--era-amber); margin-bottom: var(--s3); }
:lang(am) .slide-count { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }
.slide-kicker { font-size: var(--fs-sm); color: var(--dark-muted); margin-bottom: var(--s1); }
.slide h3 { font-size: var(--fs-lg); color: #fff; margin-bottom: var(--s3); }
.slide-text > p:not([class]) { font-size: var(--fs-base); line-height: 1.6; }
.slide-text .btn { align-self: flex-start; margin-top: var(--s2); }
.slide-photo { position: relative; overflow: hidden; min-height: 16rem; background: #3b3536; }
.slide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider-controls { display: none; }
.js .slider.is-carousel { height: 27.5rem; }
.js .is-carousel .slides { display: flex; gap: 0; height: 100%; transition: transform 0.8s var(--ease); }
.js .is-carousel .slide { flex: 0 0 100%; height: 100%; min-height: 0; }
.js .is-carousel .slide-text { padding-bottom: 6rem; }
.js .is-carousel .slide .slide-text > * { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s; }
.js .is-carousel .slide.is-current .slide-text > * { opacity: 1; transform: none; }
.js .is-carousel .slide-photo img { transition: transform 6.5s ease-out; }
.js .is-carousel .slide.is-current .slide-photo img { transform: scale(1.06); }
.js .is-carousel .slider-controls { display: flex; position: absolute; left: var(--s6); bottom: var(--s5); align-items: center; gap: var(--s2); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #6b6566; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { border-color: #fff; }
.round-btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.round-btn .i-play, .round-btn.is-paused .i-pause { display: none; }
.round-btn.is-paused .i-play { display: block; }
.slider-dots { display: flex; gap: 2px; margin: 0 var(--s1); }
.slider-dots button { width: 36px; height: 32px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.slider-dots span { width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); display: block; overflow: hidden; }
.slider-dots i { display: block; height: 100%; width: 0; background: var(--era-amber); }

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: var(--s5); padding-block: var(--s5); }
  .story-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .story-side { position: static; }
  .story-readout { display: none; }
  .upclose-item { grid-template-columns: 1fr; }
  .upclose-photo { order: -1; }
  .slide, .js .is-carousel .slide { grid-template-columns: 1fr; grid-template-rows: 13rem auto; }
  .slide-photo { order: -1; min-height: 13rem; }
  .js .slider.is-carousel { height: auto; }
  .js .is-carousel .slides { height: auto; }
  .js .is-carousel .slide-text { padding: var(--s5) var(--s5) 5.5rem; }
  .js .is-carousel .slider-controls { left: var(--s5); }
}
@media (max-width: 640px) {
  .story-row { grid-template-columns: 4.6rem 2.2rem minmax(0, 1fr); min-height: 0; }
  .story-post { margin-right: var(--s2); font-size: var(--fs-xs); }
  .story-text { padding-left: var(--s3); }
  .upclose-body { flex-direction: column; }
  .upclose-outline { flex-direction: row; flex-basis: auto; gap: var(--s3); }
  .upclose-outline .outline-svg { max-height: 9rem; width: 5rem; }
  .district-card { grid-template-columns: 3.5rem minmax(0, 1fr); }
}

/* ------------------------------------------------------------- road page
   Led by the road: its outline and figures on the dark band, then "Drive
   the road" (the outline stays while the stops scroll past, js/road.js). */
.road-hero { align-items: center; }
.road-figure .road-big { width: 100%; max-height: 30rem; }
.road-big .ol-base { stroke: #5c5556; stroke-width: 5; }
.road-big .ol-segs path { stroke-width: 6; }
.road-big .ol-plain { stroke: #fff; }
.road-big .ol-bridges { fill: #fff; stroke: var(--dark); }
.ol-end-0 { fill: var(--dark); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ol-end-1 { fill: #fff; stroke: var(--dark); stroke-width: 2; vector-effect: non-scaling-stroke; }
.road-figure figcaption { width: 100%; margin-top: var(--s3); }
.road-ends { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s1); font: 500 var(--fs-xs)/1.5 var(--mono); letter-spacing: 0.04em; color: var(--dark-muted); }
:lang(am) .road-ends { font-family: var(--font-am); letter-spacing: 0; }
.road-ends li { display: flex; align-items: center; gap: var(--s2); }
.road-ends b { color: #fff; font-weight: 500; }
.road-ends i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.road-ends .end-0 { background: var(--dark); box-shadow: 0 0 0 2px #fff; }
.road-ends .end-1 { background: #fff; }
.key-dark { color: #d8d3ca; margin: 0; }
.key-bridge { background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 1px !important; }

.drive { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; padding-top: var(--s8); }
.drive-side { position: sticky; top: calc(var(--bar, 0px) + var(--s5)); }
.drive-side h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: var(--s4); }
.drive-panel { display: flex; gap: var(--s5); align-items: stretch; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--era-blue); border-radius: var(--radius); padding: var(--s4); }
.drive-outline { flex: 0 0 9.5rem; width: 9.5rem; max-height: 18rem; }
.drive-readout { display: flex; flex-direction: column; justify-content: center; gap: var(--s3); min-width: 0; }
.dr-km { font: 500 var(--fs-sm) var(--mono); color: var(--era-blue); }
.dr-km b { display: block; font-size: 2.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.dr-near { font-size: var(--fs-sm); color: var(--ink-2); min-height: 1.4em; }
.dr-addis { font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.dr-addis b { font-weight: 500; color: var(--ink); }
.drive-hint { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s3); }
.drive-stops { list-style: none; margin: 0 0 0 2.75rem; padding: 0; border-left: 3px solid var(--rule); }
.drive-stop { position: relative; padding: var(--s2) 0 var(--s8) 0; min-height: 11rem; transition: opacity 0.3s; }
.is-driving .drive-stop:not(.is-reached) h3 { color: var(--ink-2); }
.is-driving .drive-stop:not(.is-reached) .stop-photo { opacity: 0.6; }
.drive-stop .kmpost { position: absolute; left: -2px; top: var(--s2); transform: translateX(-50%); }
.is-driving .drive-stop.is-reached .kmpost { border-top-color: var(--era-orange); }
html:not(.js) .drive-stop .kmpost, .drive:not(.is-driving) .drive-stop .kmpost { border-top-color: var(--era-orange); }
.stop-text { padding-left: 4rem; }
.stop-text .readout { margin: 0 0 var(--s2); }
.stop-text h3 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.stop-text p { color: var(--ink-2); }
.stop-text .cdot { font-size: var(--fs-sm); color: var(--ink); }
.stop-photo { max-width: 26rem; aspect-ratio: 16 / 9; margin-top: var(--s3); }
.stop-photo figcaption, .photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s3) var(--s3) var(--s2); background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; }
.road-strip-section { margin-top: var(--s7); }

.road-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); margin-top: var(--s7); }
.road-about h2 { font-size: var(--fs-xl); }
.about-text { font-size: var(--fs-md); line-height: 1.75; }
.register { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.register dt { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
:lang(am) .register dt { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.register dd { margin: var(--s1) 0 0; font-weight: 600; }
.road-years-h { margin: var(--s6) 0 var(--s3); font-size: var(--fs-md, 1rem); }
.road-years-h + .table-wrap + .readout { margin-top: var(--s2); }
.years-table table { font-size: var(--fs-sm); }
.years-table th, .years-table td { white-space: nowrap; padding-inline: var(--s2); }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s3); aspect-ratio: 16 / 10; }
.photo-grid .photo:first-child { grid-row: span 2; }
.photo-grid .photo:only-child { grid-column: span 2; }

.route-band { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s5) var(--s6) var(--s6); }
.route-band .section-head { border: 0; margin-bottom: var(--s3); padding-bottom: 0; }
.route-band .readout { margin: 0; }
.route-bar { position: relative; height: 10px; border-radius: 5px; background: #e8eef7; margin-bottom: var(--s5); }
.route-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--gradient-text); min-width: 6px; }
.route-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.route-link { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border: 1.5px solid var(--era-blue); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.route-link:hover { background: #eef3fa; color: var(--ink); }
.route-link > span:first-child[aria-hidden], .route-link > span:last-child[aria-hidden] { font-size: var(--fs-lg); color: var(--era-blue); }
.route-link .readout { display: block; margin: 0 0 2px; }
.route-link b { font-size: var(--fs-md); }
.route-link b .id { color: var(--era-blue); }
.route-link:last-child { justify-content: space-between; text-align: right; }
.route-link.is-end { border-style: dashed; border-color: var(--rule-strong); color: var(--ink-2); }
.route-link.is-end > span[aria-hidden] { color: var(--muted); font-size: var(--fs-sm); }

.bridge-rows .row { grid-template-columns: 6.5rem 8rem minmax(0, 1fr) auto; }
.bridge-rows .kmpost { justify-self: start; }
.road-source { margin-top: var(--s6); }
.road-title { view-transition-name: road-title; }

@media (max-width: 900px) {
  .drive { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s6); }
  .drive-side { top: 0; z-index: 5; background: var(--paper); padding-block: var(--s2); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .drive-side h2, .drive-side .eyebrow, .drive-hint { display: none; }
  .drive-panel { padding: var(--s3); gap: var(--s4); }
  .drive-outline { flex-basis: 5rem; width: 5rem; max-height: 8rem; }
  .dr-km b { font-size: 1.6rem; }
  .road-about, .route-links { grid-template-columns: 1fr; }
  .bridge-rows .row { grid-template-columns: 6rem minmax(0, 1fr); }
  .bridge-rows .row-name, .bridge-rows .row-meta { grid-column: 2; }
  .stop-text { padding-left: 3rem; }
}

/* Page transitions: the home drawing carries into the map; a road's ID
   carries into its page (js/site.js names the followed link). */
.home-atlas .atlas, .lm { view-transition-name: network; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(road-title), ::view-transition-group(network) { animation-duration: 0.26s; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
}

/* -------------------------------------------------------- featured work */
.story-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--s5); }
.story-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); }
.story-card:hover { border-color: var(--era-blue); color: var(--ink); box-shadow: 0 6px 18px rgba(12, 84, 162, 0.12); }
.story-card-photo { display: block; aspect-ratio: 16 / 10; border-radius: 0; }
.story-card-text { display: grid; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.story-card-text b { font-size: var(--fs-md); line-height: 1.3; }
.story-card-text > span:last-child { color: var(--ink-2); font-size: var(--fs-sm); }
.story-card .slide-kicker { color: var(--muted); margin: 0; }
.story-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.story-cover { aspect-ratio: 4 / 3; }
.story-cover figcaption { position: absolute; right: var(--s3); bottom: var(--s2); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.story-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7); padding-top: var(--s7); align-items: start; }
.story-body .prose p { font-size: var(--fs-md); line-height: 1.75; }
.story-aside { display: grid; gap: var(--s4); }
.story-aside .card { display: grid; gap: var(--s2); }
.aside-title { font-size: var(--fs-md); }
.aside-title .id { color: var(--era-blue); }
.story-aside .outline-svg { max-height: 12rem; margin: var(--s2) auto; }
.story-aside .mini { max-width: 9rem; }
@media (max-width: 900px) {
  .story-hero, .story-body { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ districts */
.district-hero { align-items: center; }
.district-figure { width: 100%; }
.dm-box { position: relative; width: 100%; }
.district-map { width: 100%; max-height: 30rem; }
.district-map .dm-ctx { fill: none; stroke: #4a4546; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.district-map .dm-roads path { fill: none; stroke: var(--c); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.12s; }
.district-map .dm-roads .c-A { stroke-width: 3.2; }
.district-map .net-good { --c: var(--map-good); } .district-map .net-fair { --c: var(--map-fair); }
.district-map .net-poor { --c: #d0352c; } .district-map .net-ungraded { --c: #cfc8bd; }
.district-map.hovering .dm-roads path { opacity: 0.4; }
.district-map.hovering .dm-roads path.is-hot { opacity: 1; stroke: #fff !important; stroke-width: 4 !important; }
.district-figure figcaption { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; font-size: var(--fs-xs); color: var(--dark-muted); margin-top: var(--s2); }
.district-figure figcaption p { margin: 0; }
.district-about { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s7); padding-top: var(--s7); align-items: start; }
.district-about h2 { font-size: var(--fs-xl); }
.office-card address { font-style: normal; line-height: 1.7; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s4); }
.photo-row .photo { aspect-ratio: 4 / 3; }
.photo-row figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s3) var(--s3) var(--s2); background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; }
.reveal-search { flex: 0 1 22rem; }
.road-rows .row { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
.road-rows .row-meta { gap: var(--s5); }
.road-rows .cdot { min-width: 7.5rem; font-size: var(--fs-sm); color: var(--ink); }

.districts-page .wrap { padding-bottom: var(--s8); }
.districts-body main { padding-bottom: 0; }  /* the dark band runs on to the footer */
.dc-open { display: block; margin-top: var(--s2); font-size: var(--fs-xs); font-weight: 700; color: var(--era-amber); }
.district-card:hover .dc-open, .district-card:focus-visible .dc-open { color: #ffb04d; text-decoration: underline; }
.districts-hero { padding-bottom: var(--s6); }
.districts-map { width: 100%; max-height: 32rem; }
.districts-map .dm-d { fill: none; stroke: var(--c); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; transition: opacity 0.15s, stroke-width 0.15s; }
.districts-map.has-hot .dm-d { opacity: 0.18; }
.districts-map.has-hot .dm-d.is-hot { opacity: 1; stroke-width: 2.6; }
.districts-map .dist-gondar, .districts-map .dist-gonder { --c: #e0483f; } .districts-map .dist-alemgena { --c: #4a90e2; } .districts-map .dist-shashemene { --c: #b08a6e; }
.districts-map .dist-diredawa, .districts-map .dist-dire-dawa { --c: #d9a400; } .districts-map .dist-sodo { --c: #e04a8a; } .districts-map .dist-combolcha { --c: #a77bd1; }
.districts-map .dist-debre-markos { --c: #3fae5a; } .districts-map .dist-nekemte { --c: #f08a24; } .districts-map .dist-jimma { --c: #90a4ae; }
.districts-map .dist-adigrat { --c: #e0dcd3; } .districts-map .dist-gode { --c: #2bb3e6; }
.district-card .key-dist { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--s2); vertical-align: 0.05em; }
.districts-page .key-dist.dist-gondar, .districts-page .key-dist.dist-gonder { background: #e0483f; } .districts-page .key-dist.dist-alemgena { background: #4a90e2; }
.districts-page .key-dist.dist-shashemene { background: #b08a6e; } .districts-page .key-dist.dist-diredawa, .districts-page .key-dist.dist-dire-dawa { background: #d9a400; }
.districts-page .key-dist.dist-sodo { background: #e04a8a; } .districts-page .key-dist.dist-combolcha { background: #a77bd1; }
.districts-page .key-dist.dist-debre-markos { background: #3fae5a; } .districts-page .key-dist.dist-nekemte { background: #f08a24; }
.districts-page .key-dist.dist-jimma { background: #90a4ae; } .districts-page .key-dist.dist-adigrat { background: #e0dcd3; }
.districts-page .key-dist.dist-gode { background: #2bb3e6; }
.district-card.is-hot { border-color: var(--era-amber); background: rgba(247, 148, 29, 0.08); }
@media (max-width: 900px) {
  .district-about { grid-template-columns: 1fr; gap: var(--s5); }
  .road-rows .row { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

/* ---- Roads index: the list beside the network, which lights up as the reader picks */
.js .no-js-only { display: none; }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: var(--s4) var(--s7); align-items: start; padding: var(--s5) 0 var(--s8); }
.finder-side { position: sticky; top: calc(var(--bar, 0px) + var(--s4)); grid-column: 2; grid-row: 1 / span 2; }
.finder-head h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); line-height: 1.05; margin: 0 0 var(--s3); }
.finder-head .lede { margin: 0; }
.finder-filters { margin-top: var(--s5); }
.find-box input { font-size: var(--fs-md); min-height: 56px; padding: 0.85rem 1rem 0.85rem 3rem; border-width: 2px; }
.find-box svg { width: 20px; height: 20px; left: 1rem; }
.chip-rows { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s4); align-items: flex-end; }
.chipset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chipset legend, .chip-select > span:first-child { display: block; padding: 0; margin-bottom: 6px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chipset > label + label, .chipset > legend + label { margin-left: 2px; }
.chipset .chip { margin: 0 4px 4px 0; }
.finder-filters .chip { position: relative; min-height: 38px; padding: 0.3rem 0.85rem; font-size: var(--fs-sm); }
.finder-filters .chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.finder-filters .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-filters .chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-filters .chip .sw { width: 14px; height: 4px; }
.finder-filters .chip .sw-a { background: #231f20; }
.finder-filters .chip:has(input:checked) .sw-a { background: #fff; }
.chip-select { display: block; border: 0; padding: 0; min-height: 0; background: none; cursor: default; }
.chip-select:hover { color: var(--ink); }
.chip-select select { min-height: 38px; padding: 0.3rem 2rem 0.3rem 0.85rem; border: 1.5px solid var(--rule-strong); border-radius: 999px; background-color: var(--surface); font: 700 var(--fs-sm)/1.2 var(--font); color: var(--ink); }
.chip-select select:hover { border-color: var(--era-blue); }
.chip-clear { border-style: dashed; color: var(--action); align-self: flex-end; margin-bottom: 4px; }
.finder-filters .btn.no-js-only { margin-top: var(--s4); }

.road-list, .finder-list { grid-column: 1; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) 0; border-bottom: 3px solid var(--era-blue); position: sticky; top: var(--bar, 0px); z-index: 4; background: var(--paper); }
.list-head .readout { margin: 0; }
.list-head .readout b { color: var(--ink); font-weight: 700; }
.seg-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #e8eef7; }
.seg-switch a { padding: 0.35rem 0.9rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-decoration: none; }
.seg-switch a[aria-current] { background: var(--ink); color: #fff; }
.rgroup { margin-top: var(--s6); }
.rg-head { margin-bottom: var(--s2); }
.rg-head h3 { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: 0; font-size: var(--fs-lg); }
.rg-id { font: 700 1.6rem/1 var(--mono); color: var(--era-blue); letter-spacing: -0.02em; }
.rg-name { font-weight: 700; }
.rg-meta { margin: var(--s1) 0 0; font: 500 var(--fs-xs)/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); max-width: none; }
.rg-match { margin-left: var(--s3); color: var(--action); font-weight: 700; }
.rg-bar { position: relative; height: 10px; margin: var(--s3) 0; border-radius: 3px; overflow: hidden; background: #e9e6df; }
.rg-bar i { position: absolute; top: 0; bottom: 0; box-shadow: inset -1.5px 0 0 var(--surface); }
.rg-bar i:hover { filter: brightness(0.75); }
.rb-good { background: var(--good); } .rb-fair { background: var(--fair); } .rb-poor { background: var(--poor); }
.rb-ungraded { background: #cfc9bd; } .rb-a { background: #231f20; } .rb-g { background: var(--gravel); }
.rg-share { display: flex; gap: 1px; }
.road-rows .row-name small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.road-rows .row-km { font: 500 var(--fs-sm) var(--mono); color: var(--ink); min-width: 5.5rem; text-align: right; }
.mini-none { background: repeating-linear-gradient(135deg, #e4e0d8 0 3px, transparent 3px 6px); }
.flat-rows { margin-top: var(--s4); }
.flat-rows .flat-more { border: 0; padding-top: var(--s4); }

.finder-atlas .atlas { max-height: calc(100vh - 9rem); }
.finder-atlas figcaption { font-size: var(--fs-sm); color: var(--ink-2); }
.finder-atlas figcaption p { margin: var(--s2) 0 0; }
.atlas.filtering .atlas-roads path { opacity: 0.1; }
.atlas.filtering .atlas-roads path.is-in { opacity: 1; }
.atlas.filtering.few .atlas-roads path.is-in { stroke-width: 2.8 !important; }
@media (max-width: 900px) {
  .finder { display: flex; flex-direction: column; gap: var(--s4); }
  .finder-main { display: contents; }
  .finder-head { order: 1; }
  .finder-side { order: 2; position: static; }
  .road-list, .finder-list { order: 3; }
  .finder-atlas .atlas { max-height: 320px; }
  .road-rows .row-meta .mini-bar { width: 3.5rem; }
}
.finder-filters .chip[hidden] { display: none; }
.road-rows .row { padding-top: var(--s2); padding-bottom: var(--s2); }
.finder-filters .chip-select { padding: 0; min-height: 0; border: 0; background: none; }
.rg-bar i { transition: opacity 0.2s ease; }
.rg-bar i.is-out { opacity: 0.18; }
/* Longest first: each row carries a faint bar of its length. */
.flat-rows .row { background: linear-gradient(to right, rgba(12, 84, 162, 0.08) var(--len, 0%), transparent var(--len, 0%)); }
.flat-rows .row:hover { background-color: #eef3fa; }

/* ---- Bridges index */
.figures-small { margin-top: var(--s4); }
.figures-small dd { font-size: 1.6rem; }
.row-name small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.row-name small .id { color: inherit; font-size: inherit; }
.bridge-rows .brow { grid-template-columns: 4.4rem 7.6rem minmax(0, 1fr) auto; }
.bridge-rows .kmpost { justify-self: start; min-width: 3.9rem; text-align: center; }
.bridge-rows .row-meta { gap: var(--s2); }
.tag-damage { margin: 0 0 0 var(--s2); border-color: var(--poor); color: var(--poor); background: rgba(179, 38, 30, 0.07); font-weight: 700; }
.list-key { display: flex; align-items: center; gap: var(--s2); }
.list-key .kmpost { font-size: 10px; padding: 0.2rem 0.3rem 0.15rem; border-top-width: 3px; }
.chip-legend { display: block; margin-bottom: 6px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.finder-filters .chip-on { background: var(--ink); border-color: var(--ink); color: #fff; gap: var(--s2); }
.finder-filters .chip-on:hover { background: var(--action); border-color: var(--action); color: #fff; }
.finder-filters .chip .sw-damage { background: var(--poor); }
.bridges-atlas .atlas-bridges { opacity: 0.8; stroke-width: 2.2; }
.atlas.picking .atlas-bridges { opacity: 0.16; }
.atlas.picking .atlas-roads path { opacity: 0.6; }
.atlas-bridges-lit { fill: none; stroke: var(--action); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.atlas-bridge-ring { fill: rgba(194, 67, 26, 0.15); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.key .key-lit { background: var(--action); }
@media (max-width: 900px) {
  .bridge-rows .brow { grid-template-columns: 4.2rem minmax(0, 1fr); grid-template-areas: "post id" "post name" "post meta"; row-gap: 2px; }
  .bridge-rows .brow > .kmpost { grid-area: post; align-self: start; }
  .bridge-rows .brow > .id { grid-area: id; }
  .bridge-rows .brow > .row-name { grid-area: name; }
  .bridge-rows .brow > .row-meta { grid-area: meta; }
  .bridge-rows .brow > .row-meta:empty { display: none; }
}

/* ---- Bridge page */
.bridge-hero h1 { display: flex; flex-direction: column; gap: var(--s1); }
.bridge-id { font: 600 var(--fs-md)/1.2 var(--mono); color: var(--era-amber); letter-spacing: 0.02em; }
.unnamed { color: var(--dark-muted); font-weight: 600; }
.hero-road { margin: var(--s3) 0 var(--s4); color: var(--dark-ink, #e9e6df); font-size: var(--fs-md); }
.hero-road a { color: #fff; }
.hero-road .id { color: var(--era-amber); }
.bridge-figure figcaption { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s3); color: var(--dark-muted); font-size: var(--fs-sm); }
.outline-svg .ol-this-halo { fill: rgba(247, 148, 29, 0.25); stroke: none; }
.outline-svg .ol-this { fill: var(--era-amber); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }

.bstrip { position: relative; height: 4.2rem; margin: var(--s4) 0 var(--s2); }
.bstrip-line { position: absolute; left: 0; right: 0; top: 1.4rem; height: 4px; border-radius: 2px; background: var(--ink); }
.bstrip-tick { position: absolute; top: 0.75rem; width: 3px; height: 1.6rem; margin-left: -1.5px; background: var(--muted); border-radius: 1px; }
.bstrip-tick:hover { background: var(--era-blue); transform: scaleY(1.25); }
.bstrip-tick.is-this { width: 12px; height: 12px; margin-left: -6px; top: calc(1.4rem - 4px); border-radius: 2px; background: var(--era-amber); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--era-amber); }
.bstrip-end { position: absolute; top: 2.6rem; font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.bstrip-0 { left: 0; } .bstrip-1 { right: 0; }
.bridge-steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s3); }
.bridge-step { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); padding: var(--s4); text-decoration: none; color: var(--ink); }
.bridge-step .eyebrow { width: 100%; margin: 0; }
.bridge-step.is-next { justify-content: flex-end; text-align: right; }
.bridge-step.is-none { color: var(--muted); font-size: var(--fs-sm); align-items: center; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
a.bridge-step:hover { border-color: var(--era-blue); }

.insp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.insp-grid.is-empty { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.insp-grid.is-empty .bridge-elevation { opacity: 0.55; }
.insp-figure { margin: 0; }
.insp-figure figcaption { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.bridge-elevation { width: 100%; height: auto; display: block; }
.bridge-elevation .bp-ground { fill: #e9e3d6; stroke: none; }
.bridge-elevation .bp-water { fill: #b9d3e0; stroke: none; }
.bridge-elevation .bp path, .bridge-elevation .bp circle { fill: #d8d3c8; stroke: #5b554a; stroke-width: 1.2; transition: fill 0.2s ease, stroke 0.2s ease; }
.bridge-elevation .bp-railing path, .bridge-elevation .bp-joint path, .bridge-elevation .bp-drainage path { fill: none; stroke-width: 2.4; }
.bridge-elevation .bp-deck path { fill: #bdb6a8; }
.bridge-elevation .bp-embankment path { fill: #e0d6c2; stroke: none; }
.bridge-elevation .bp.is-damaged path, .bridge-elevation .bp.is-damaged circle { fill: rgba(179, 38, 30, 0.22); stroke: var(--poor); stroke-width: 2.2; }
.bridge-elevation .bp-railing.is-damaged path, .bridge-elevation .bp-joint.is-damaged path, .bridge-elevation .bp-drainage.is-damaged path { fill: none; stroke: var(--poor); stroke-width: 3.2; }
.insp-parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.insp-parts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s3); padding: var(--s3) var(--s2); border-bottom: 1px solid var(--rule); }
.insp-parts li:hover { background: var(--surface); }
.insp-part b { display: block; }
.insp-part .muted { font-size: var(--fs-xs); }
.insp-older { font-size: var(--fs-sm); color: var(--ink-2); }
/* Pointing at a part in the list finds it in the drawing. */
.inspection:has(li[data-part="embankment"]:hover) .bp-embankment path,
.inspection:has(li[data-part="riprap"]:hover) .bp-riprap circle,
.inspection:has(li[data-part="abutment"]:hover) .bp-abutment path,
.inspection:has(li[data-part="pier"]:hover) .bp-pier path,
.inspection:has(li[data-part="girder"]:hover) .bp-girder path,
.inspection:has(li[data-part="deck"]:hover) .bp-deck path,
.inspection:has(li[data-part="bearing"]:hover) .bp-bearing path,
.inspection:has(li[data-part="joint"]:hover) .bp-joint path,
.inspection:has(li[data-part="railing"]:hover) .bp-railing path,
.inspection:has(li[data-part="drainage"]:hover) .bp-drainage path { stroke: var(--era-blue); stroke-width: 3.4; }

.place-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.locator-box { margin: 0; }
.locator { width: 100%; height: auto; display: block; background: #efe9dd; border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.locator .atlas-borders { stroke-width: 1; }
.locator .loc-net { fill: none; stroke: #a39d90; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.locator .loc-road { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.locator .loc-halo { fill: rgba(247, 148, 29, 0.3); stroke: var(--era-amber); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.locator .loc-dot { fill: var(--era-amber); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.locator-box figcaption { margin-top: var(--s2); }
.place-text p { font-size: var(--fs-md); }
@media (max-width: 900px) {
  .insp-grid, .insp-grid.is-empty, .place-grid { grid-template-columns: 1fr; }
  .bridge-steps { grid-template-columns: 1fr; }
  .bridge-step.is-next { justify-content: flex-start; text-align: left; }
}
.bridge-figure .outline-svg { max-height: 24rem; width: 100%; }
.bridge-road { margin-top: var(--s6); }
.bridge-step .kmpost { margin-left: var(--s2); }

/* ---- Road condition */
.cond-hero { align-items: center; }
.cond-figure { margin: 0; }
.cond-map { width: 100%; height: auto; display: block; }
.cm-base { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.cd-d path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.25s ease; }
.cm-G { stroke: #3fae5a; } .cm-F { stroke: #f0c419; } .cm-P { stroke: #ef4b3f; }
.hide-G .cm-G, .hide-F .cm-F, .hide-P .cm-P { opacity: 0.05; }
.cond-key { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.cond-key button { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0.25rem 0.8rem; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: transparent; color: #fff; font: 700 var(--fs-sm) var(--font); cursor: pointer; }
.cond-key button[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }
.cond-key .sw { width: 16px; height: 4px; }
.cond-key .sw-G { background: #3fae5a; } .cond-key .sw-F { background: #f0c419; } .cond-key .sw-P { background: #ef4b3f; }
.cond-key-base { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--dark-muted); margin-left: var(--s2); }
.cond-key-base .sw { background: rgba(255, 255, 255, 0.3); }
.cond-figure figcaption p { color: var(--dark-muted); font-size: var(--fs-sm); margin: var(--s2) 0 0; }
.cond-figure figcaption a { color: #fff; }
.seg-dark { display: flex; width: max-content; background: rgba(255, 255, 255, 0.1); margin: var(--s4) 0; }
.seg-dark a { color: #fff; }
.seg-dark a[aria-current] { background: #fff; color: var(--ink); }
.share-bar { display: flex; gap: 3px; margin: var(--s5) 0 var(--s3); min-height: 6.5rem; }
.sb-seg { display: flex; flex-direction: column; justify-content: flex-end; min-width: 4.5rem; padding: var(--s3); border-radius: 4px; color: #fff; overflow: hidden; }
.sb-seg b { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.sb-seg > span { font-weight: 700; font-size: var(--fs-sm); }
.sb-seg small { font: 500 var(--fs-xs) var(--mono); white-space: nowrap; }
.sb-good { background: var(--good); } .sb-fair { background: var(--fair); color: var(--ink); } .sb-poor { background: var(--poor); }
.section-note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.cond-districts, .cond-classes, .cond-worst { margin-top: var(--s7); }
.cd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s4); }
.cd-card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s3); align-items: center; padding: var(--s3); text-decoration: none; color: var(--ink); background: var(--dark); border-color: var(--dark); }
.cd-card:hover { border-color: var(--era-amber); }
.cond-mini { width: 100%; height: 6.5rem; display: block; }
.cond-mini .cm-base { stroke: rgba(255, 255, 255, 0.22); }
.cd-text { display: flex; flex-direction: column; gap: 2px; color: #fff; }
.cd-name { font-size: var(--fs-md); }
.cd-gf { font-size: 1.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.cd-gf small { font-size: var(--fs-md); margin-left: 1px; }
.cd-meta { font: 500 var(--fs-xs) var(--mono); color: var(--dark-muted); }
.cd-bar { width: 100%; margin-top: var(--s1); }
.class-bars { list-style: none; margin: 0; padding: 0; }
.class-bars li { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 10rem; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.cb-label { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.cb-code { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font: 700 var(--fs-sm) var(--mono); }
.cb-gf { font-size: var(--fs-sm); color: var(--ink-2); }
.cb-gf b { font-size: var(--fs-lg); color: var(--ink); }
.cb-gf small { display: block; font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
.worst-rows .row { grid-template-columns: 6.5rem minmax(0, 1fr) minmax(8rem, 1.1fr) 7.5rem; }
.worst-strip { position: relative; height: 10px; border-radius: 3px; overflow: hidden; background: var(--ungraded); }
.worst-strip i { position: absolute; top: 0; bottom: 0; }
.worst-km { text-align: right; font-size: var(--fs-sm); color: var(--ink-2); }
.worst-km b { font-size: var(--fs-md); color: var(--poor); }
.worst-km small { display: block; font: 500 var(--fs-xs) var(--mono); color: var(--muted); }
@media (max-width: 900px) {
  .class-bars li { grid-template-columns: 1fr; gap: var(--s2); }
  .worst-rows .row { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .worst-strip { grid-column: 1 / -1; }
  .worst-km { grid-column: 1 / -1; text-align: left; }
}
.more-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn-ghost-ink { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost-ink:hover { border-color: var(--era-blue); color: var(--era-blue); }

/* ---- Maintenance programme */
.prog-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); align-items: center; padding: var(--s5) 0 var(--s6); }
.prog-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); line-height: 1.05; margin: 0 0 var(--s3); }
.prog-hero .seg-switch { margin: var(--s4) 0; }
.prog-hero .figures-row { margin-top: var(--s4); }
.ring-card { margin: 0; padding: var(--s6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm, none); }
.ring-box { position: relative; width: min(16rem, 100%); margin: 0 auto; }
.ring { width: 100%; height: auto; display: block; }
.ring-track { fill: none; stroke: #e8eef7; stroke-width: 12; }
.ring-done { fill: none; stroke: var(--era-blue); stroke-width: 12; stroke-linecap: round; stroke-dasharray: var(--pct) 100; }
@media (prefers-reduced-motion: no-preference) {
  .ring-done { animation: ring-fill 1.4s cubic-bezier(0.25, 0.7, 0.3, 1) 0.2s both; }
}
@keyframes ring-fill { from { stroke-dasharray: 0 100; } }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.ring-text b { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ring-text > span { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); }
.ring-sum { margin: var(--s4) auto 0; font-size: var(--fs-md); }
.ring-card .readout { margin-top: var(--s2); }
.prog-months, .prog-districts, .prog-types, .prog-stories { margin-top: var(--s7); }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }
.months li { display: flex; flex-direction: column; align-items: stretch; gap: var(--s1); min-width: 0; }
.m-bars { position: relative; height: 11rem; border-bottom: 2px solid var(--ink); }
.m-plan, .m-done { position: absolute; bottom: 0; left: 18%; right: 18%; border-radius: 3px 3px 0 0; }
.m-plan { border: 1.5px solid var(--era-blue); border-bottom: 0; background: rgba(12, 84, 162, 0.06); }
.is-waiting .m-plan { border-style: dashed; border-color: var(--muted); background: transparent; }
.m-done { left: 30%; right: 30%; background: var(--era-blue); }
.m-name { font-weight: 700; font-size: var(--fs-xs); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-km { font: 500 11px/1.3 var(--mono); text-align: center; color: var(--muted); }
.m-km b { color: var(--ink); }
.key .mk-plan { border: 1.5px solid var(--era-blue); background: rgba(12, 84, 162, 0.06); }
.key .mk-done { background: var(--era-blue); }
.key .mk-wait { border: 1.5px dashed var(--muted); }
.pd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s4); }
.pd-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.pd-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.pd-head b { font-size: var(--fs-md); }
.pd-head a { color: var(--ink); text-decoration: none; }
.pd-head a:hover { color: var(--era-blue); text-decoration: underline; }
.pd-pct { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.meter { display: block; height: 10px; border-radius: 5px; background: #e8eef7; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gradient-text, var(--era-blue)); border-radius: 5px; }
.pd-meta { font-size: var(--fs-xs); color: var(--muted); }
.type-blocks { display: flex; flex-wrap: wrap; gap: var(--s2); min-height: 9rem; min-width: 0; }
.tblock { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: min(9rem, 100%); padding: var(--s4); border-radius: var(--radius); color: #fff; overflow-wrap: anywhere; }
.tblock b { font-size: var(--fs-md); }
.tb-km { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.tblock small { font-size: var(--fs-xs); }
.tb-1 { background: var(--era-blue); } .tb-2 { background: var(--action); } .tb-3 { background: var(--blue-mid); } .tb-4 { background: var(--era-amber); color: var(--ink); } .tb-5 { background: #6d4c41; }
.tb-6 { background: #2e7d6b; } .tb-7 { background: #5f5a50; }
@media (max-width: 900px) {
  .prog-hero { grid-template-columns: 1fr; gap: var(--s5); }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--s5); }
  .m-bars { height: 7rem; }
  .type-blocks { flex-direction: column; }
}
.nowrap { white-space: nowrap; }

/* ---- Axle load */
.axle-hero { align-items: center; }
.trucks-figure { margin: 0; }
.trucks-lead { font-size: var(--fs-md); color: var(--dark-ink); margin: 0 0 var(--s4); max-width: 30rem; }
.trucks-lead b { display: block; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--era-amber); letter-spacing: -0.03em; }
.trucks { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3) var(--s4); max-width: 30rem; }
.trucks svg { width: 100%; height: auto; display: block; fill: rgba(255, 255, 255, 0.28); }
.trucks .is-over svg { fill: var(--era-amber); }
@media (prefers-reduced-motion: no-preference) {
  .trucks > span { animation: truck-in 0.5s ease both; }
  .trucks > span:nth-child(5n+2) { animation-delay: 0.05s; } .trucks > span:nth-child(5n+3) { animation-delay: 0.1s; }
  .trucks > span:nth-child(5n+4) { animation-delay: 0.15s; } .trucks > span:nth-child(5n) { animation-delay: 0.2s; }
}
@keyframes truck-in { from { opacity: 0; transform: translateX(-10px); } }
.trucks-figure figcaption { margin-top: var(--s4); color: var(--dark-muted); font-size: var(--fs-sm); }
.trucks-figure figcaption p { margin: var(--s2) 0 0; }
.key .key-over { background: var(--era-amber); } .key .key-legal { background: rgba(255, 255, 255, 0.28); }
.axle-stations, .axle-months { margin-top: var(--s7); }
.stations-grid.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.stations-grid.has-map .stations-atlas { position: sticky; top: calc(var(--bar, 0px) + var(--s4)); margin: 0; }
.stations-atlas figcaption { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.atlas-stations .st-ring { fill: rgba(194, 67, 26, 0.18); stroke: var(--action); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.atlas-stations .st-dot { fill: var(--ink); }
.atlas-stations text { font: 700 21px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(246, 245, 241, 0.92); stroke-width: 6px; }
:lang(am) .atlas-stations text { font-family: var(--font-am); }
.atlas-stations .station.is-hot .st-ring { fill: rgba(194, 67, 26, 0.45); stroke-width: 3; }
/* Stations with nothing approved this year: grey rings, named when pointed at. */
.atlas-stations .station.is-idle .st-ring { fill: rgba(95, 90, 80, 0.12); stroke: #7a7468; stroke-dasharray: 3 2; }
.atlas-stations .station.is-idle .st-dot { fill: #7a7468; }
.atlas-stations .station.is-idle text { display: none; }
.atlas-stations .station.is-idle.is-hot text { display: inline; }
.atlas-stations .station.is-idle.is-hot .st-ring { fill: rgba(95, 90, 80, 0.32); stroke-width: 2.5; }
.inset-area { fill: none; stroke: var(--era-blue); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
/* Around Addis Ababa: the stations too close together to name on the
   national map, drawn larger in its top right corner, over the Red Sea and
   Djibouti where no station is (below the map on phones). */
.stations-map { position: relative; }
.inset-box { position: absolute; right: 1.5%; top: 2%; width: 36%; background: var(--paper); border: 2px solid var(--era-blue); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.inset-box p { margin: 0; padding: 0.15rem var(--s2) 0; font: 500 0.625rem/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--era-blue); }
:lang(am) .inset-box p { font-family: var(--font-am); text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.station-inset { display: block; width: 100%; height: auto; }
.inset-ground { fill: #efe9dc; }
.station-inset .atlas-stations text { font-size: 4px; stroke-width: 1.1px; }
.station-inset .atlas-capital text { font-size: 2.6px; stroke-width: 0.8px; }
@media (max-width: 640px) {
  .inset-box { position: static; width: 75%; margin-top: var(--s2); box-shadow: none; }
}
.st-card.is-hot { border-color: var(--action); }
.st-card.is-idle { background: transparent; border-style: dashed; box-shadow: none; }
.st-none { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s3); }
.st-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.st-head b { font-size: var(--fs-md); }
.st-rate { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--action); }
.meter-over i { background: var(--action); }
.st-meta { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) {
  .stations-grid.has-map { grid-template-columns: 1fr; }
  .stations-grid.has-map .stations-atlas { position: static; }
}

/* ---- Reports: covers drawn from each series' own figures */
.cover { width: 100%; height: 100%; display: block; }
.cover-road-network path, .cover-road-condition path, .cover-bridge-inspections path, .cover .cv-base { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.cv-cA { stroke: #fff; stroke-width: 1.8; } .cv-cB { stroke: #8fbaf5; stroke-width: 1.2; }
.cv-cC, .cv-cD, .cv-cE, .cv-cX { stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.8; }
.cv-ggood { stroke: #3fae5a; stroke-width: 1.4; } .cv-gfair { stroke: #f0c419; stroke-width: 1.4; }
.cv-gpoor { stroke: #ef4b3f; stroke-width: 1.4; } .cv-gungraded { stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.9; }
.cv-faint { stroke: rgba(255, 255, 255, 0.2); stroke-width: 0.8; }
.cover .cv-dots { stroke: var(--era-amber); stroke-width: 2.4; }
.cover .cv-base { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1; }
.cv-plan { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
.cv-done { fill: var(--era-amber); }
.cv-over { fill: var(--era-amber); } .cv-legal { fill: rgba(255, 255, 255, 0.25); }
.rep-cards { margin-top: var(--s5) !important; }
.rep-text .eyebrow { margin: 0; }
.rep-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: var(--s5); }
.rep-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.rep-cover { position: relative; display: block; aspect-ratio: 16 / 10; padding: var(--s4) var(--s5) var(--s6); background-color: var(--dark); background-image: var(--grid); background-size: 24px 24px; }
.rep-cover:hover { background-color: #2c2728; }
.rep-edition { position: absolute; left: var(--s4); bottom: var(--s3); font: 600 var(--fs-xs) var(--mono); letter-spacing: 0.06em; color: var(--era-amber); text-transform: uppercase; }
.rep-text { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); flex: 1; }
.rep-text h2 { margin: 0; font-size: var(--fs-lg); }
.rep-text h2 a { color: var(--ink); text-decoration: none; }
.rep-text h2 a:hover { color: var(--era-blue); text-decoration: underline; }
.rep-text p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.rep-latest { margin-top: auto !important; padding-top: var(--s3); }
.rep-earlier { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.rep-earlier > span { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: var(--s1); }
.rep-earlier .chip { min-height: 32px; padding: 0.2rem 0.7rem; font-size: var(--fs-xs); }

.report-hero { align-items: center; }
.report-edition { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--mono); color: var(--era-amber); margin: var(--s2) 0 var(--s4); }
.report-facts { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.report-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s3); }
.report-facts dt { font: 500 var(--fs-xs)/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); }
.report-facts dd { margin: 0; color: var(--dark-ink); }
.report-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.report-cover { margin: 0; max-height: 26rem; display: flex; justify-content: center; }
.report-cover .cover { max-height: 26rem; width: 100%; }
.report-summary { margin-top: var(--s6); }
.report-note { font-size: var(--fs-sm); color: var(--ink-2); }
.report-table { margin-top: var(--s7); }
.cite { margin-top: var(--s7); padding: var(--s5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.cite h2 { margin-top: 0; font-size: var(--fs-lg); }
.cite-text { font-family: var(--mono); font-size: var(--fs-sm); overflow-wrap: anywhere; }
/* A report reads as a numbered document: the contents and the section
   headings count with the same counter, so their numbers always agree. */
.report-doc { counter-reset: sec; }
.report-h { display: flex; align-items: baseline; gap: var(--s3); }
.report-h::before { counter-increment: sec; content: counter(sec); font: 700 var(--fs-sm)/1 var(--mono); color: var(--era-blue); border: 1.5px solid currentColor; border-radius: 4px; padding: 0.3rem 0.45rem 0.2rem; flex: none; }
.report-summary .report-h { margin: 0 0 var(--s3); }
.report-toc { margin-top: var(--s6); counter-reset: toc; }
.report-toc h2 { font: 700 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
:lang(am) .report-toc h2 { font-family: var(--font-am); text-transform: none; letter-spacing: 0; }
.report-toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.report-toc li { counter-increment: toc; }
.report-toc a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; padding: 0.25rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.report-toc a::before { content: counter(toc); font: 700 var(--fs-xs) var(--mono); color: var(--era-blue); }
.report-toc a:hover { border-color: var(--rule-strong); background: var(--wash); }
.fig-change { display: block; margin-top: var(--s2); font: 600 var(--fs-xs)/1.3 var(--font); letter-spacing: 0; color: var(--ink-2); }
.fig-change > span { font-size: 0.75em; margin-right: 0.2em; }

/* At a glance: the report's figures as plain HTML bars, so they print */
.report-glance { margin-top: var(--s7); }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--s5); }
.rchart { margin: 0; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); min-width: 0; }
.rchart figcaption { font-weight: 700; margin-bottom: var(--s3); }
.rstack { display: flex; gap: 2px; height: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.rstack span { display: block; min-width: 2px; }
.rstack-key { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); font-size: var(--fs-sm); }
.rstack-key li { display: flex; align-items: center; gap: var(--s2); }
.rstack-key i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.rstack-key b { margin-left: auto; font-variant-numeric: tabular-nums; }
.rstack-key span { min-width: 3.5ch; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rbars li { display: grid; grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.rb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-track { height: 0.85rem; }
.rb-bar { display: flex; height: 100%; min-width: 2px; border-radius: 2px; overflow: hidden; background: var(--era-blue); }
.rb-bar.has-part { background: #b9cde6; }
.rb-part, .rb-split > span { display: block; height: 100%; }
.rb-part { background: var(--era-blue); }
.rb-value { font: 500 var(--fs-xs) var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bar-part { background: var(--era-blue); }
.bar-whole { background: #b9cde6; }
.rchart .key { margin-top: var(--s3); font-size: var(--fs-xs); }
@media (max-width: 560px) {
  .rbars li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); }
  .rb-track { grid-column: 1 / -1; grid-row: 2; }
}

.print-letterhead { display: none; }
@media print {
  @page { size: A4; margin: 15mm 14mm 17mm; @bottom-right { content: counter(page) " / " counter(pages); font: 8pt "Overpass Mono", monospace; color: #6b6566; } }
  .print-letterhead { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #000; }
  .print-letterhead p { margin: 0; display: grid; }
  .print-letterhead b { font-size: 14pt; }
  .print-letterhead span { font-size: 11pt; }
  .report-cover, .report-actions, .report-table .btn, .rep-earlier, .report-cover-band .crumbs { display: none !important; }
  .report-edition, .report-facts dd, .report-facts dt { color: #000; }
  .report-toc a { border: 0; padding: 0 var(--s3) 0 0; min-height: 0; background: none; }
  .report-table { break-inside: auto; }
  .report-table thead { display: table-header-group; }
  .report-table tr, .rchart, .report-figures > div { break-inside: avoid; }
  .report-h { break-after: avoid; }
  .rchart { border-color: #999; }
  .rstack span, .rstack-key i, .rb-bar, .rb-part, .rb-split > span, .rchart .key i, .report-h::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* Every column on the page: no scrolling on paper, smaller type, headers that wrap. */
  .report-table .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .report-table table { font-size: 8pt; }
  .report-table th, .report-table td { padding: 3px 5px; }
  .report-table thead th { white-space: normal; vertical-align: bottom; }
  .cite { border: 0; padding: 0; }
}
.rep-cover { min-height: 0; overflow: hidden; }
.rep-cover .cover { position: absolute; inset: 16px 24px 36px; width: calc(100% - 48px); height: calc(100% - 52px); }
@media (max-width: 900px) { .report-cover, .report-cover .cover { max-height: 12rem; } }

/* ---- About */
.about-flow, .about-modules, .about-history, .about-left-out { margin-top: var(--s7); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); counter-reset: flow; position: relative; }
.flow::before { content: ""; position: absolute; left: 2.25rem; right: 2.25rem; top: 2.25rem; height: 3px; background: repeating-linear-gradient(90deg, var(--era-blue) 0 12px, transparent 12px 20px); }
.flow li { position: relative; display: flex; flex-direction: column; gap: var(--s2); }
.flow-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--era-blue); margin-bottom: var(--s2); }
.flow li:last-child .flow-icon { background: var(--era-blue); }
.flow li:last-child .flow-icon svg { stroke: #fff; }
.flow-icon svg { width: 2rem; height: 2rem; fill: none; stroke: var(--era-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow b { font-size: var(--fs-md); }
.flow li > span:last-child { font-size: var(--fs-sm); color: var(--ink-2); }
.module-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s4); }
.module-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); }
.module-art svg { width: 100%; max-width: 9rem; height: 4.5rem; display: block; margin-bottom: var(--s2); }
.module-art path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ma-ink { stroke: var(--ink); stroke-width: 4; } .ma-blue { stroke: var(--era-blue); stroke-width: 3; } .ma-faint { stroke: var(--rule-strong); stroke-width: 2; }
.ma-fill { fill: var(--era-amber); }
.ma-good { stroke: var(--good); stroke-width: 8; } .ma-fair { stroke: var(--fair); stroke-width: 8; } .ma-poor { stroke: var(--poor); stroke-width: 8; }
.module-card .eyebrow { margin: 0; }
.module-full { font-size: var(--fs-md); }
.module-links { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); font-size: var(--fs-sm); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--ink); margin-left: 5.5rem; }
.timeline li { position: relative; padding: 0 0 var(--s6) var(--s5); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.tl-year { position: absolute; left: -6.2rem; top: 0.2rem; width: 5rem; text-align: right; font: 700 var(--fs-md) var(--mono); color: var(--era-blue); }
.tl-text h3 { margin: 0 0 var(--s2); }
.tl-text p { margin: 0 0 var(--s2); max-width: 44rem; }
.tl-photo { max-width: 30rem; aspect-ratio: 3 / 2; margin-top: var(--s3); }
.tl-today::before { background: var(--era-orange) !important; border-color: var(--era-orange) !important; }
.tl-today .tl-year { color: var(--action); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow::before { left: 2.25rem; right: auto; top: 2.25rem; bottom: 2.25rem; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--era-blue) 0 12px, transparent 12px 20px); }
  .flow li { padding-left: 6rem; min-height: 4.5rem; }
  .flow-icon { position: absolute; left: 0; top: 0; }
  .timeline { margin-left: 0.6rem; }
  .tl-year { position: static; display: block; width: auto; text-align: left; margin-bottom: var(--s1); }
}

/* ---- Methods */
.methods-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s7); align-items: start; margin-top: var(--s5); }
.methods-toc { position: sticky; top: calc(var(--bar, 0px) + var(--s4)); padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.toc-title { margin: 0 0 var(--s2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.methods-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.methods-toc a { display: block; padding: var(--s1) var(--s2); border-radius: var(--radius); font-size: var(--fs-sm); text-decoration: none; color: var(--ink); }
.methods-toc a:hover, .methods-toc a.is-current { background: #eef3fa; color: var(--era-blue); }
.methods-text h2 { scroll-margin-top: var(--s5); }
.method-art { margin: var(--s4) 0 var(--s5); padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.method-art figcaption { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.art-classes { width: 100%; max-width: 30rem; height: auto; display: block; }
.art-classes path { stroke: var(--ink); stroke-linecap: round; }
.art-classes .ac-A { stroke-width: 7; } .art-classes .ac-B { stroke-width: 5; stroke: var(--era-blue); } .art-classes .ac-C { stroke-width: 3.5; stroke: #3d8bd9; }
.art-classes .ac-D { stroke-width: 2.5; stroke: #6fa6dd; } .art-classes .ac-E { stroke-width: 1.6; stroke: #93bce6; }
.art-classes text { font: 700 14px var(--mono); fill: var(--ink); }
.art-segment { position: relative; display: flex; gap: 2px; padding-bottom: 1.8rem; max-width: 34rem; }
.art-segment .seg { flex: 1; height: 14px; border-radius: 2px; }
.art-segment .seg-short { flex: 0.4; }
.art-segment .seg.is-picked { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg-brace { position: absolute; left: calc((100% - 12px) / 6.4 * 2 + 4px); width: calc((100% - 12px) / 6.4); top: 22px; border: 2px solid var(--ink); border-top: 0; height: 8px; }
.seg-brace span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font: 600 var(--fs-xs) var(--mono); white-space: nowrap; }
.art-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; font-size: var(--fs-sm); }
.mono { font-family: var(--mono); }
.art-bands { display: flex; gap: 2px; max-width: 34rem; }
.art-bands .band { display: flex; flex-direction: column; padding: var(--s2); border-radius: 3px; color: #fff; min-width: 4rem; }
.art-bands .band.strip-fair { color: var(--ink); }
.art-bands small { font: 500 var(--fs-xs) var(--mono); }
.art-calendar { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: 6rem repeat(12, minmax(2.6rem, 1fr)); gap: 2px; font-size: var(--fs-xs); }
.cal-row > span:not(.cal-label) { padding: 0.3rem 0.2rem; text-align: center; border-radius: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-eth > span:not(.cal-label) { background: var(--era-blue); color: #fff; font-weight: 700; transform: translateX(22%); }
.art-calendar { padding-right: 12%; }
.cal-greg > span:not(.cal-label) { background: #e8eef7; color: var(--ink); }
.cal-label { font: 600 var(--fs-xs) var(--mono); color: var(--muted); align-self: center; }
@media (max-width: 900px) {
  .methods-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .methods-toc { position: static; }
  .methods-toc ol { flex-direction: row; flex-wrap: wrap; }
}

/* ---- Contact */
.contact-grid.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.contact-atlas { position: sticky; top: calc(var(--bar, 0px) + var(--s4)); }
.contact-atlas figcaption { font-size: var(--fs-sm); color: var(--ink-2); }
.atlas-offices circle { fill: var(--era-blue); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.atlas-offices .is-head circle { fill: var(--era-orange); }
.atlas-offices text { font: 700 21px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(246, 245, 241, 0.92); stroke-width: 6px; }
:lang(am) .atlas-offices text { font-family: var(--font-am); }
.contact-cards { display: flex; flex-direction: column; gap: var(--s5); }
.office-card { display: flex; flex-direction: column; gap: 2px; padding: var(--s4); font-style: normal; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); height: 100%; }
.office-card .eyebrow { margin-bottom: var(--s1); }
.office-name { font-size: var(--fs-md); margin-bottom: var(--s1); }
.office-name a { color: var(--ink); }
.office-head { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); border-top: 4px solid var(--era-orange); }
.office-head .eyebrow { color: var(--era-amber); }
.office-head a { color: #fff; }
.contact-h { font-size: var(--fs-lg); margin: 0 0 var(--s3); }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s3); }
@media (max-width: 900px) { .contact-grid.has-map { grid-template-columns: 1fr; } .contact-atlas { position: static; } }
.aside-cond { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); color: var(--ink-2); }
.story-cards-lead .is-lead { grid-column: 1 / -1; }
.story-cards-lead .is-lead .story-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.story-cards-lead .is-lead .story-card-photo { aspect-ratio: auto; min-height: 20rem; height: 100%; }
.story-cards-lead .is-lead .story-card-text { align-content: center; padding: var(--s6); }
.story-cards-lead .is-lead .story-card-text b { font-size: var(--fs-xl, 1.6rem); }
@media (max-width: 900px) { .story-cards-lead .is-lead .story-card { grid-template-columns: 1fr; } .story-cards-lead .is-lead .story-card-photo { min-height: 14rem; } }
.module-art .ma-fill path, .module-art .ma-fill circle { fill: var(--era-amber); stroke: none; }
.methods-layout > * { min-width: 0; }

/* ---- Staff sign in: the split screen */
.signin-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding-block: var(--s6); place-items: stretch; }
.signin-art { position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding: var(--s6); min-height: 30rem; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--gradient); color: #fff; overflow: hidden; }
.signin-mark { font: 800 2.4rem/1 var(--font); letter-spacing: -0.02em; }
.signin-mark i { font-style: italic; }
.signin-words { margin: var(--s2) 0 0; max-width: 18rem; font-weight: 600; opacity: 0.92; }
.signin-net { position: absolute; right: -8%; bottom: -6%; width: 90%; height: 80%; opacity: 0.9; }
.signin-net .cv-cA { stroke: #fff; } .signin-net .cv-cB { stroke: rgba(255, 255, 255, 0.75); }
.signin-net .cv-cC, .signin-net .cv-cD, .signin-net .cv-cE, .signin-net .cv-cX { stroke: rgba(255, 255, 255, 0.4); }
.signin-split .signin-card { max-width: none; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-top: 1px solid var(--rule); border-left: 0; padding: var(--s7) var(--s6); }
.signin-note { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .signin-split { grid-template-columns: 1fr; padding-block: var(--s4); }
  .signin-art { min-height: 9rem; padding: var(--s5); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .signin-net { width: 60%; height: 120%; right: -10%; bottom: -30%; }
  .signin-split .signin-card { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-left: 1px solid var(--rule); border-top: 0; padding: var(--s5); }
}

/* ---- Search, not found */
.search-head .find-box { max-width: 40rem; margin-top: var(--s4); }
.results-group { margin-top: var(--s6); }
.results-group h2 { display: flex; align-items: baseline; gap: var(--s2); }
.results-group h2 .count { font-size: var(--fs-md); font-weight: 600; color: var(--muted); }
.result-districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s3); }
.rd-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s3); align-items: center; padding: var(--s3); text-decoration: none; color: var(--ink); }
.rd-card .mini { width: 4.5rem; height: auto; }
.rd-card small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.no-match, .not-found { padding: var(--s6) 0; max-width: 44rem; }
.road-ends { width: 220px; height: 60px; display: block; margin-bottom: var(--s4); }
.road-ends-big { width: 320px; height: 88px; }
.re-road { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.re-edge { stroke: var(--ink); stroke-width: 6; }
.re-bar { stroke: var(--era-orange); stroke-width: 5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .re-road { stroke-dasharray: 260; stroke-dashoffset: 260; animation: re-draw 1.2s ease-out 0.2s forwards; }
}
@keyframes re-draw { to { stroke-dashoffset: 0; } }
.not-found h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0 0 var(--s3); }
.not-found .find-box { max-width: 34rem; margin-top: var(--s4); }
.nearby { margin: var(--s2) 0 var(--s4); }

/* ---- Design reference (staff only) */
.design-v2 { margin-top: var(--s6); }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--s4); }
.dv-card { padding: var(--s4); }
.dv-card h3 { margin: 0 0 var(--s3); font-size: var(--fs-md); }
.dv-wide { grid-column: 1 / -1; }
.dv-band { padding: var(--s5); border-radius: var(--radius-lg); }
.dv-band p { margin: 0; max-width: 46rem; }
.dv-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.dv-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1) var(--s3); font-size: var(--fs-xs); }
.dv-swatches li { display: flex; align-items: center; gap: var(--s2); }
.dv-swatches i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--rule); flex: 0 0 auto; }
.hero-twins { margin: calc(-1 * var(--s2)) 0 var(--s4); color: var(--dark-ink); font-size: var(--fs-sm); }
.hero-twins a { color: #fff; }
.hero-twins .id { color: var(--era-amber); margin-right: 0.3em; }
.muted-dark { color: var(--dark-muted); }
.office-via { font-size: var(--fs-xs); color: var(--ink-2); }
.office-via a { white-space: nowrap; }
