/* wheresthedriver.com: the Dispatch design. One hand-written stylesheet, no
   build step. The tokens, the type and the rules are in the site folder's
   design-system.md. Read it before you change this file. */

/* The `hidden` attribute always wins. No later `display` rule can show the
   theme button to a reader without JavaScript. */
[hidden] { display: none !important; }

/* --- Fonts: self-hosted, Latin and Latin Extended -------------------------- */

/* Barlow Condensed (headlines and labels) and Barlow (small text) are static
   families, one file per weight. Source Serif 4 (standfirsts and the body) is
   variable, one file per subset. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens: dark for every reader until the reader chooses light ------- */

/* Dark is the default and has no media query: a reader on a light system
   still gets the night street. The light block applies only when the theme
   button has set data-theme="light". Every text pair meets WCAG AA; the
   ratios are in design-system.md. */
:root {
  color-scheme: dark;
  --ground: #0B0F14;
  --panel: #121820;
  --bar: #0B0F14;
  --rule: #1E2630;
  --ph: #161D27;
  --ph-road: #3A4654;
  --ink: #EAF0F6;
  --body: #DCE3EA;
  --stand: #C3CCD6;
  --sec: #8A96A3;
  --acc: #FFB000;
  --acc-text: #FFB000;
  --on-acc: #0B0F14;
  --ul-ext: #8A6A1A;
  --ul-int: #3A4654;
  --green: #1F9D3A;
  --amber: #FFB000;
  --red: #D7342B;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #E9EDF1;
  --panel: #FFFFFF;
  --bar: #FFFFFF;
  --rule: #D3DAE1;
  --ph: #D8DEE4;
  --ph-road: #7A8794;
  --ink: #0B0F14;
  --body: #0B0F14;
  --stand: #2B3540;
  --sec: #4A5560;
  --acc: #FFB000;
  --acc-text: #946000;
  --on-acc: #0B0F14;
  --ul-ext: #D7B36A;
  --ul-int: #A9B3BD;
  --green: #1F9D3A;
  --amber: #FFB000;
  --red: #D7342B;
  /* Every light carries a 1 px ring that meets 3:1 against its surface:
     the ink in this theme, the light's own colour in the dark one. */
  --ring: #0B0F14;
}

/* --- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc-text); }
:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; border-radius: 2px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .wrap { padding-left: 40px; padding-right: 40px; } }

/* The label face: Barlow Condensed, bold, in capitals. */
.caps { font-family: var(--cond); font-weight: 700; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 760px) { .caps { font-size: 13px; } }

/* --- The top bar ------------------------------------------------------- */

.top { border-bottom: 1px solid var(--rule); background: var(--bar); }
.top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand theme" "nav nav"; align-items: center; column-gap: 12px; padding-top: 8px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--cond); font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
a.brand:hover { color: var(--ink); }
.nav { grid-area: nav; display: flex; gap: 20px; overflow-x: auto; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.theme-button { grid-area: theme; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); color: var(--ink); cursor: pointer; }
.theme-button:hover { color: var(--acc-text); }
/* The button shows the theme it switches to: a sun in the dark theme, the
   moon in the light one. */
.theme-button .icon-moon, :root[data-theme="light"] .theme-button .icon-sun { display: none; }
:root[data-theme="light"] .theme-button .icon-moon { display: block; }
@media (min-width: 760px) {
  .top-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav theme"; column-gap: 28px; min-height: 64px; padding-top: 0; }
  .brand { gap: 12px; font-size: 26px; }
  .nav { justify-content: flex-end; gap: 28px; }
}

/* The mark: a taxi roof light with a question mark on it, in markup and CSS. */
.mark { display: inline-flex; flex: none; flex-direction: column; align-items: center; width: 30px; }
.mark-lamp { width: 24px; height: 18px; background: var(--acc); clip-path: polygon(0 100%, 20% 6%, 26% 0, 74% 0, 80% 6%, 100% 100%); color: var(--on-acc); font-family: var(--cond); font-weight: 700; font-size: 16px; line-height: 20px; text-align: center; letter-spacing: 0; }
.mark::after { content: ""; width: 30px; height: 3px; background: var(--ink); }
@media (min-width: 760px) {
  .mark { width: 34px; }
  .mark-lamp { width: 27px; height: 20px; font-size: 18px; line-height: 22px; }
  .mark::after { width: 34px; }
}

/* --- The footer: one quiet line ----------------------------------------- */

.foot { margin-top: 48px; border-top: 1px solid var(--rule); background: var(--bar); }
.foot-in { display: flex; flex-direction: column; gap: 4px 32px; padding-top: 18px; padding-bottom: 20px; font-size: 13px; color: var(--sec); }
.foot-text { line-height: 1.5; }
.foot-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) {
  .foot { margin-top: 64px; }
  .foot-in { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 14px; }
}

/* --- Section heads, links and buttons ----------------------------------- */

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); }
.section-label { padding: 10px 0 8px; color: var(--acc-text); }
.section-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--sec); white-space: nowrap; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--acc); border-radius: 4px; background: var(--acc); color: var(--on-acc); font-family: var(--cond); font-weight: 600; font-size: 17px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.button:hover { color: var(--on-acc); border-color: var(--ink); }
.button-quiet { border-color: var(--rule); background: var(--panel); color: var(--ink); }
.button-quiet:hover { color: var(--acc-text); border-color: var(--rule); }
.pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.more-link { margin-top: 24px; }
@media (min-width: 760px) { .button { font-size: 18px; padding: 0 20px; } }

/* --- The roof light ------------------------------------------------------ */

/* One light per signal value. A dim light is its colour at 38%; a lit light
   glows. The ring stays at full strength in every state. */
.light { --sig: var(--sec); --sig-dim: transparent; --glow: transparent; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sig); box-shadow: inset 0 0 0 1px var(--ring, var(--sig)); vertical-align: middle; }
.light-green { --sig: var(--green); --sig-dim: rgba(31, 157, 58, .38); --glow: rgba(31, 157, 58, .6); }
.light-amber { --sig: var(--amber); --sig-dim: rgba(255, 176, 0, .38); --glow: rgba(255, 176, 0, .6); }
.light-red { --sig: var(--red); --sig-dim: rgba(215, 52, 43, .38); --glow: rgba(215, 52, 43, .6); }
.light.dim { background: var(--sig-dim); }
.light.lit { box-shadow: inset 0 0 0 1px var(--ring, var(--sig)), 0 0 10px 2px var(--glow); }
:root[data-theme="light"] .light.lit { box-shadow: inset 0 0 0 1px var(--ring), 0 0 0 3px rgba(11, 15, 20, .08), 0 0 10px 2px var(--glow); }
.strip { display: inline-flex; flex: none; align-items: center; gap: 4px; }

/* The city line: the post's light, its city, and its date. */
.cityline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--sec); }
.cityline .light { margin-right: 2px; }
.cityline-city { color: var(--acc-text); }
.sep { color: var(--sec); }

/* --- Images --------------------------------------------------------------- */

/* Every image is cut to its slot's shape; the width and height attributes
   keep the page from jumping while it loads. A post without an image gets
   the placeholder: the board's outline of a roof light on the panel shade. */
.pic { width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ph); color: var(--acc); }
.ph svg { width: 34%; max-width: 140px; height: auto; }
.ph-road { fill: var(--ph-road); }

/* --- The front page ------------------------------------------------------- */

.front { display: flex; flex-direction: column; gap: 20px; }
.feed { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.empty { padding-top: 32px; font-family: var(--serif); font-size: 18px; color: var(--stand); }
@media (min-width: 760px) {
  .front { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 40px; padding-top: 36px; }
  /* The feed keeps the wide column, whatever comes before it. */
  .front > .feed { grid-column: -2 / -1; }
  .front > .feed:only-child { grid-column: 1 / -1; }
  .feed { gap: 40px; }
}
@media (min-width: 1100px) { .front { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } }

/* The roster. On a phone it folds into one row of city cards that scrolls
   sideways; from 760 px it is the column down the left of the board. */
.roster { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.roster-title { color: var(--acc-text); }
.roster-note { font-size: 12px; color: var(--sec); }
.roster-list { display: flex; gap: 8px; margin: 0 -16px 0 0; padding: 0 16px 4px 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.roster-row { position: relative; display: flex; flex: none; flex-direction: column; gap: 6px; min-width: 128px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); scroll-snap-align: start; }
.roster-name { font-family: var(--cond); font-weight: 600; font-size: 20px; line-height: 1; }
.roster-name a::after { content: ""; position: absolute; inset: 0; }
.roster-row:hover .roster-name { color: var(--acc-text); }
.roster-row:focus-within { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.roster-row a:focus-visible { outline: none; }
.roster-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sec); white-space: nowrap; }
.roster-region { display: none; }
.roster-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--sec); }
.key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--sec); }
.key li { display: flex; align-items: center; gap: 8px; }
.what { display: none; }
@media (min-width: 760px) {
  .roster { gap: 0; padding: 0; border-bottom: 0; }
  .roster-head { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
  .roster-note { font-size: 13px; }
  .roster-list { flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .roster-row { gap: 8px; min-width: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; }
  .roster-name { font-size: 26px; }
  .roster-meta { gap: 12px; font-size: 13px; white-space: normal; }
  .roster-region { display: inline; }
  .roster-all { margin-top: 8px; font-size: 14px; }
  .key { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 16px; font-size: 13px; }
  .roster > .key:first-child { margin-top: 0; }
  .key li { gap: 10px; }
  .what { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; padding: 18px 20px; }
  .what p { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--stand); }
  .what .what-title { font-family: var(--cond); font-size: 13px; line-height: 1.3; color: var(--acc-text); }
  .what a { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--acc-text); }
}

/* Panels: lifted, 4 px corners. */
.panel { border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }

/* The lead: the image, with the headline panel riding over its lower edge. */
.lead { display: flex; flex-direction: column; }
.lead-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; }
.lead-card { position: relative; display: flex; flex-direction: column; gap: 10px; margin: -40px 12px 0; padding: 18px 18px 20px; }
.lead-title { font-family: var(--cond); font-weight: 700; font-size: clamp(32px, 32px + 26 * (100vw - 390px) / 970, 58px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.lead-title a:hover, .card-title a:hover { color: var(--acc-text); }
.standfirst { font-family: var(--serif); color: var(--stand); }
.lead .standfirst { font-size: 17px; line-height: 1.5; }
@media (min-width: 760px) {
  .lead-media { aspect-ratio: 21 / 9; }
  .lead-card { gap: 14px; max-width: 760px; margin: -96px 0 0 40px; padding: 28px 32px 30px; }
  .lead .standfirst { font-size: 20px; }
}

/* Story panels: three across on a wide screen, stacked on a phone with the
   image at the left. */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: 120px minmax(0, 1fr); overflow: hidden; min-width: 0; }
.card-media { display: block; min-height: 100%; }
.card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; }
.card-title { font-family: var(--cond); font-weight: 600; font-size: 21px; line-height: 1.05; }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .card { display: flex; flex-direction: column; }
  .card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .card-text { gap: 10px; padding: 18px 20px 22px; }
  .card-title { font-size: 27px; }
}
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rows: text only, two columns on a wide screen. The title's link covers
   the whole row. */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; padding: 0; list-style: none; }
.row { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.row-title { font-family: var(--cond); font-weight: 600; font-size: 21px; line-height: 1.05; }
.row-title a::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-title { color: var(--acc-text); }
.row:focus-within { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.row a:focus-visible { outline: none; }
@media (min-width: 760px) {
  .row { gap: 6px; padding: 16px 0; }
  .row-title { font-size: 24px; }
}
@media (min-width: 1100px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- The post page -------------------------------------------------------- */

.post { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.post-head { display: flex; flex-direction: column; gap: 16px; max-width: 1040px; }
.post-cityline a { color: var(--acc-text); }
.post-cityline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-title { font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 40px + 46 * (100vw - 390px) / 970, 86px); line-height: .95; letter-spacing: -.015em; text-wrap: balance; }
.post .standfirst { max-width: 860px; font-size: clamp(19px, 19px + 6 * (100vw - 390px) / 970, 25px); line-height: 1.45; }
.post-pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.post-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
@media (min-width: 760px) {
  .post { gap: 36px; padding-top: 40px; }
  .post-head { gap: 20px; }
  .post-pic { aspect-ratio: 21 / 9; }
}
@media (min-width: 1100px) { .post-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }

/* The body: Source Serif 4. A link to a source is in the accent with a dim
   amber underline; a link to an earlier post here is in the ink with a quiet
   grey one. */
.body { max-width: 720px; }
.body p { margin: 0 0 22px; font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--body); }
.body p:last-child { margin-bottom: 0; }
.body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.body .citeio-link.citeio-external { color: var(--acc-text); text-decoration-color: var(--ul-ext); }
.body .citeio-link.citeio-internal { color: var(--ink); text-decoration-color: var(--ul-int); }
.body a:hover { text-decoration-color: currentColor; }
@media (min-width: 760px) { .body p { margin-bottom: 26px; font-size: 20px; } }

/* The Sources panel. The list is the citeio library's markup, which carries
   no number and no label: the number is a counter in ::before, and "Primary"
   and "This site" are ::after content on the list item. Only the list item
   is named, because citeio puts citeio-internal on the item, on its link and
   on every internal link in the body. */
.sources { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; }
.sources-title { color: var(--acc-text); }
.citeio-sources { margin: 0; padding: 0; list-style: none; counter-reset: source; }
.citeio-source { counter-increment: source; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); }
.citeio-source:first-child { padding-top: 0; border-top: 0; }
/* The number is decoration: the `/ ""` alt text keeps it from screen
   readers; a browser without that syntax keeps the first declaration. */
.citeio-source::before { content: counter(source); content: counter(source) / ""; grid-row: span 2; font-family: var(--cond); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--acc-text); }
li.citeio-internal::before { color: var(--sec); }
.citeio-sources a { font-size: 15px; line-height: 1.4; color: var(--stand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ul-int); overflow-wrap: anywhere; }
.citeio-sources a:hover { color: var(--acc-text); }
.citeio-primary::after, li.citeio-internal::after { grid-column: 2; justify-self: start; padding: 3px 6px; border-radius: 3px; font-family: var(--cond); font-weight: 700; font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.citeio-primary::after { content: "Primary"; background: var(--acc); color: var(--on-acc); }
li.citeio-internal::after { content: "This site"; border: 1px solid var(--rule); color: var(--sec); }
.disclosure { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.5; color: var(--sec); }
.sources-title + .disclosure { padding-top: 0; border-top: 0; }
.disclosure a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* The thread: the earlier posts on the story as a route with stops, the
   current post the lit stop at the end. */
.thread, .see-also, .labels { max-width: 720px; }
.thread { display: flex; flex-direction: column; gap: 18px; }
.thread-title, .see-also-title { color: var(--acc-text); }
.route { margin: 0; padding: 0; list-style: none; }
.stop { position: relative; display: grid; grid-template-columns: 24px 64px minmax(0, 1fr); column-gap: 14px; align-items: start; padding-bottom: 24px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 2px; width: 2px; background: var(--rule); }
.stop:last-child::before { display: none; }
.stop-mark { display: flex; justify-content: center; padding-top: 3px; }
.stop-mark .light { width: 12px; height: 12px; }
.stop-here .stop-mark .light { width: 14px; height: 14px; }
.stop-neutral { width: 12px; height: 12px; border: 2px solid var(--sec); border-radius: 50%; }
.stop-date { padding-top: 2px; color: var(--sec); }
.stop-title { font-family: var(--cond); font-weight: 600; font-size: 21px; line-height: 1.05; }
.stop-title a::after { content: ""; position: absolute; inset: 0; }
.stop:hover .stop-title { color: var(--acc-text); }
.stop:focus-within { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.stop a:focus-visible { outline: none; }
.stop-here .stop-date { color: var(--acc-text); }
.stop-here .stop-title { color: var(--sec); }
@media (min-width: 760px) {
  .stop { grid-template-columns: 24px 72px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
  .stop-title { font-size: 24px; }
}
.see-also { display: flex; flex-direction: column; gap: 10px; }
.see-also ul { margin: 0; padding: 0; list-style: none; }
.see-also li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.see-also li:first-child { border-top: 0; }
.see-also a { font-family: var(--cond); font-weight: 600; font-size: 20px; line-height: 1.15; }
.see-also time { color: var(--sec); }

/* The labels line: the post's city, operators and tags as plain links, in
   an inline list whose middle dots are decoration. A dot ends its group, so
   a wrapped line never starts with one. */
.labels { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.9; color: var(--sec); }
.labels li:not(:last-child)::after { content: "·"; content: "·" / ""; margin: 0 10px; color: var(--sec); }
.labels a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ul-int); text-underline-offset: 3px; }
.labels a:hover { color: var(--acc-text); text-decoration-color: currentColor; }

.more { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; }
@media (min-width: 760px) { .more { margin-top: 56px; } }

/* --- The list pages --------------------------------------------------------- */

.page-head { display: flex; flex-direction: column; gap: 10px; padding: 28px 0 20px; }
.page-title { font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 40px + 32 * (100vw - 390px) / 970, 72px); line-height: .95; letter-spacing: -.01em; }
.page-sub { font-size: 15px; color: var(--sec); }
/* An operator page has no region line, and the heading's descenders reach
   past its line box. */
.page-title + .strip { margin-top: 6px; }
.page-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.page-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--sec); }
.list-section { display: flex; flex-direction: column; gap: 8px; }
.list-section + .list-section { margin-top: 32px; }
.entity-cards { margin-top: 16px; margin-bottom: 8px; }
.index-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.index-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.index-name { font-family: var(--cond); font-weight: 600; font-size: 24px; line-height: 1; }
.index-name a::after { content: ""; position: absolute; inset: 0; }
.index-row:hover .index-name { color: var(--acc-text); }
.index-row:focus-within { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.index-row a:focus-visible { outline: none; }
.index-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sec); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 2px solid var(--ink); }
.tag-list a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cond); font-weight: 600; font-size: 22px; }
@media (min-width: 760px) {
  .page-head { padding: 40px 0 24px; }
  .index-name { font-size: 28px; }
}

/* --- About and the privacy notice ------------------------------------------- */

.prose { max-width: 760px; padding-top: 32px; }
.prose .page-title { margin-bottom: 24px; }
.prose h2 { margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); color: var(--acc-text); }
.prose p, .prose li { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--body); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--acc-text); text-decoration: underline; text-decoration-color: var(--ul-ext); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .key { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin: 0 0 16px; padding: 0; font-family: var(--serif); font-size: 18px; color: var(--body); }
.prose .key li { gap: 12px; margin: 0; }
.updated-line { color: var(--sec); }
@media (min-width: 760px) {
  .prose { padding-top: 48px; }
  .prose p, .prose li { font-size: 19px; }
}

/* The feed's sections: a head, then its panels or rows. */
.feed-section { display: flex; flex-direction: column; gap: 20px; }
.feed-section .rows { margin-top: -16px; }
@media (min-width: 760px) { .feed-section { gap: 24px; } .feed-section .rows { margin-top: -20px; } }

