:root {
  color-scheme: light dark;
  --primary-foreground: #191c20;
  --secondary-foreground: #43474e;
  --disabled-foreground: #9cb1c5;
  --attention-negative-foreground: #e2005a;
  --primary-action-foreground: #f8f9ff;
  --secondary-action-foreground: #191c20;
  --action-foreground-inverted: #ffffff;
  --screen-background: #ffffff;
  --schedule-list-background: #e5f4f6;
  --card-background: #ffffff;
  --island-background: #ffffff;
  --primary-action-background: #191c20;
  --secondary-action-background: #ffffff;
  --attention-negative-action-background: #e2005a;
  --primary-border: #8a96a8;
  --secondary-border: #d6dce6;
  --island-shadow: rgba(30, 50, 110, 0.149);
  --card-departed: rgba(255, 255, 255, 0.6);
  --wait-line: rgba(25, 28, 32, 0.235);
  --wait-line-past: rgba(156, 177, 197, 0.471);
  --message-card: rgba(242, 255, 255, 0.851);
  --day-other: rgba(25, 28, 32, 0.549);
  --action-disabled: rgba(25, 28, 32, 0.157);
  --frosted-clear: rgba(229, 244, 246, 0);
  --frosted-tint: rgba(229, 244, 246, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary-foreground: #e1e2e8;
    --secondary-foreground: #c3c7cf;
    --disabled-foreground: rgba(195, 199, 207, 0.6);
    --attention-negative-foreground: #ff6b9d;
    --primary-action-foreground: #111418;
    --secondary-action-foreground: #e1e2e8;
    --action-foreground-inverted: #ffffff;
    --screen-background: #000000;
    --schedule-list-background: #081226;
    --card-background: #1d2024;
    --island-background: #272a2f;
    --primary-action-background: #e1e2e8;
    --secondary-action-background: #272a2f;
    --attention-negative-action-background: #ff6b9d;
    --primary-border: #6b7585;
    --secondary-border: #3a4049;
    --island-shadow: rgba(0, 10, 30, 0.4);
    --card-departed: rgba(29, 32, 36, 0.6);
    --wait-line: rgba(225, 226, 232, 0.235);
    --wait-line-past: rgba(195, 199, 207, 0.471);
    --message-card: rgba(37, 53, 57, 0.851);
    --day-other: rgba(225, 226, 232, 0.549);
    --action-disabled: rgba(225, 226, 232, 0.157);
    --frosted-clear: rgba(8, 18, 38, 0);
    --frosted-tint: rgba(8, 18, 38, 0.8);
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px;
  color: var(--primary-foreground);
  background: var(--schedule-list-background);
}
a { color: inherit; }
h1 { font-size: 24px; font-weight: 500; line-height: 1.33; letter-spacing: 0; margin: 8px 0 16px; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px; margin: 24px 0 8px; }
p { margin: 8px 0; }
button, select, input { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The header: full width, on the page's own colour. */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
header.site nav.links a { font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px; text-decoration: none; }
nav.languages a { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; color: var(--secondary-foreground); }
header.site a:hover, footer.site a:hover { text-decoration: underline; }
/* The language menu: the page's language as its code, folded; open, the
   other languages in a card under it, over the page. */
details.language-menu { position: relative; }
details.language-menu > summary {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px;
}
header.site details.language-menu > nav.language-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 10rem;
  padding: 8px 0;
  background: var(--island-background);
  border-radius: 20px;
  box-shadow: 0 8px 38px var(--island-shadow);
}
details.language-menu nav.language-list a {
  padding: 10px 20px;
  font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px;
  color: var(--primary-foreground);
  text-decoration: none;
}

/* The columns: the middle only, and three from 1024 px. */
.columns { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.columns > main { max-width: 42rem; margin: 0 auto; padding: 16px 0 32px; }
@media (min-width: 1024px) {
  .columns {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 42rem) minmax(10rem, 1fr);
    column-gap: 24px;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  }
  .columns > main { grid-column: 2; grid-row: 1; max-width: none; margin: 0; }
}

/* The search panel: the app's From/To island. */
form.search {
  position: relative;
  margin: 0 0 16px;
  /* The 12 under "Show trains" (`search_form.dart`), kept here: as the
     button's own margin it slipped out of the panel. */
  padding-bottom: 12px;
  background: var(--island-background);
  border-radius: 28px;
  box-shadow: 0 8px 38px var(--island-shadow);
}
form.search .fields { display: flex; align-items: center; padding: 12px 4px 4px 20px; }
form.search .stations { flex: 1; min-width: 0; }
form.search select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0;
  color: var(--primary-foreground);
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
/* The field the script shows in a list's place, as the app's: the
   station's name, or the hint in grey. */
form.search .pick {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0;
  color: var(--primary-foreground);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
form.search select.search-from, form.search .pick-from { border-bottom: 1px solid var(--secondary-border); }
form.search select:invalid, form.search .pick.unchosen { color: var(--disabled-foreground); }
form.search option { color: var(--primary-foreground); background: var(--island-background); }
/* Under the lists on a page without the script: the way to the home's
   full lists. */
form.search .all-stations { display: block; padding: 8px 0 4px; font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; color: var(--secondary-foreground); }
.round {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--secondary-action-background);
  color: var(--secondary-action-foreground);
}
.round svg { width: 28px; height: 28px; fill: currentColor; }
/* The swap waits for the script: its place is kept, and with no script
   there is no button that does nothing. */
form.search .swap:not(.ready) { visibility: hidden; }
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-action-background);
  color: var(--primary-action-foreground);
  font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px;
  text-decoration: none;
}
form.search .show { width: calc(100% - 24px); margin: 0 12px; }
/* As the app's, until both stations are chosen: the button's colour at 40
   of 255, its text the disabled grey (`app_text_button.dart`). It still
   answers a click, so the browser says what is missing. */
form.search:invalid .show {
  background: var(--action-disabled);
  color: var(--disabled-foreground);
}

/* The station finder: the app's station search, opened by a field.
   Wider than a phone, a list under the field, its box where the field is:
   its 12 above as the fields', and for "To" the "From" field and its line
   above too (the script names the field in a class). On a phone, the
   app's sheet over the whole screen, with its title and "Close". */
form.search .finder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}
@media (min-width: 600px) {
  form.search .finder.at-to { top: 49px; }
  /* Nothing drops down until a letter is typed (owner, 2026-11-28): no
     line for an empty box, and until then the box looks like the field
     it sits on, with no shadow and, for "To", no line under it. */
  form.search .finder .prompt { display: none; }
  form.search .finder:not(.typed) .pane { box-shadow: none; }
  form.search .finder.at-to:not(.typed) .query { border-bottom-color: transparent; }
  /* The box covers half the ⇅, and its ✕ takes the ⇅'s place: the ⇅
     waits until the box is put away. */
  html.finding form.search .swap { visibility: hidden; }
}
form.search .finder .pane {
  background: var(--island-background);
  border-radius: 28px;
  box-shadow: 0 8px 38px var(--island-shadow);
  overflow: hidden;
}
form.search .finder .bar { display: none; }
form.search .finder .box { display: flex; align-items: center; padding: 12px 4px 0 20px; }
form.search .finder .query {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--secondary-border);
  border-radius: 0;
  background: transparent;
  font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0;
  color: var(--primary-foreground);
  caret-color: var(--primary-foreground);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
form.search .finder .query::placeholder { color: var(--disabled-foreground); opacity: 1; }
form.search .finder .clear { background: transparent; }
form.search .finder .results {
  position: relative;
  max-height: min(22rem, 50vh);
  margin: 0;
  padding: 4px 0 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
form.search .finder .results li {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 24px 8px 20px;
  font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px;
  color: var(--secondary-action-foreground);
  cursor: pointer;
}
/* The station Enter would choose, and the one under the mouse: the app has
   no keyboard, so the mark is the site's, in the list's own colour. */
form.search .finder .results li[aria-selected="true"] { background: var(--schedule-list-background); }
@media (hover: hover) {
  form.search .finder .results li:hover { background: var(--schedule-list-background); }
}
form.search .finder .note { margin: 0; padding: 16px 20px 20px; color: var(--primary-foreground); }
/* The sheet covers what the on-screen keyboard leaves of the screen, as
   the app's does: the script gives its top and height from the browser's
   visual viewport; with no such numbers, the whole screen. */
@media not all and (min-width: 600px) {
  form.search .finder {
    position: fixed;
    top: var(--sheet-top, 0px);
    right: 0;
    left: 0;
    height: var(--sheet-height, 100%);
    padding-top: 8px;
    background: rgba(0, 0, 0, 0.541);
  }
  form.search .finder .pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-background);
    border-radius: 28px 28px 0 0;
    box-shadow: none;
  }
  form.search .finder .bar {
    display: flex;
    flex: none;
    align-items: center;
    height: 56px;
    padding: 0 4px 0 16px;
  }
  form.search .finder .heading {
    flex: 1;
    min-width: 0;
    font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px;
    color: var(--primary-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  form.search .finder .close {
    flex: none;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px;
    color: var(--secondary-action-foreground);
  }
  form.search .finder .box { flex: none; padding: 0 16px 8px; }
  form.search .finder .results {
    flex: 1;
    max-height: none;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  form.search .finder .results li { padding: 8px 24px 8px 16px; }
  form.search .finder .note { margin: auto 0; padding: 16px; text-align: center; }
  /* The page under the sheet stays still. */
  html.finding, html.finding body { overflow: hidden; }
}

/* The days: one control, a plain list in the left column on a wide
   screen, the floating bar on a phone. Each day a button; the day shown
   large and dark, the others smaller and grey, as on the app's date
   wheel. */
nav.days .day-list {
  position: relative;
  display: flex;
  margin: 0;
}
nav.days .day-list button {
  flex: none;
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px;
  color: var(--day-other);
  white-space: nowrap;
}
nav.days .day-list button[aria-current],
nav.days .day-list button::after {
  font-size: 20px;
  font-weight: 500;
  color: var(--secondary-action-foreground);
}
/* The phone bar's back arrow and ⇅, the app's round islands. */
nav.days .other { margin: 0; }
nav.days .round { box-shadow: 0 8px 38px var(--island-shadow); text-decoration: none; }
/* Every width the desktop block below does not take: no width falls
   between the two. */
@media not all and (min-width: 1024px) {
  /* The bar holds the way back to the search and the ⇅, as the app's, so
     a page with days shows no search panel: its first train sits higher. */
  .with-days form.search { display: none; }
  nav.days {
    position: fixed;
    z-index: 10;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* The frosted strip behind the islands, as high as the bar: the blur
     rising from none at its top, under the page's colour rising to 80%, so
     its top meets the sharp rows above it with no seam. */
  nav.days::before, nav.days::after {
    content: "";
    position: fixed;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(60px + env(safe-area-inset-bottom));
    pointer-events: none;
  }
  nav.days::before {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(transparent, #000);
    mask-image: linear-gradient(transparent, #000);
  }
  nav.days::after {
    background: linear-gradient(var(--frosted-clear), var(--frosted-tint));
  }
  /* The island is its own box; the strip inside it scrolls. */
  nav.days .day-island {
    flex: 1;
    min-width: 0;
    background: var(--island-background);
    border-radius: 28px;
    box-shadow: 0 8px 38px var(--island-shadow);
    overflow: hidden;
  }
  nav.days .day-list {
    height: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
  nav.days .day-list::-webkit-scrollbar { display: none; }
  /* Room at both ends, as the app's wheel has, so every day, the first and
     the last too, can stand in the middle, clear of the fading edges. */
  nav.days .day-list::before, nav.days .day-list::after {
    content: "";
    flex: none;
    width: calc(50% - 48px);
  }
  /* The whole height of the strip is the day's to tap. */
  nav.days .day-list button { align-self: stretch; }
  /* Nothing hidden under the bar: the page keeps its height at the bottom,
     and a part reached by the keyboard scrolls clear of it. */
  .with-days + footer.site {
    padding-bottom: calc(24px + 80px + env(safe-area-inset-bottom));
  }
  html:has(.with-days) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
/* A wide screen: every day in one column beside the page, lined up on
   the left, with no panel and no scroll of its own. It scrolls with the
   page: 31 days are taller than a screen. */
@media (min-width: 1024px) {
  nav.days {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding: 16px 0;
  }
  nav.days .day-list {
    flex-direction: column;
    align-items: flex-start;
  }
  nav.days .day-list button { min-height: 40px; text-align: left; }
  /* The search panel is there: no back arrow, no ⇅. */
  nav.days .back, nav.days .other { display: none; }
  /* Each day keeps room for its own name drawn as the chosen one, unseen
     and unread, so the list is as wide whichever day is chosen and its
     edge never moves. */
  nav.days .day-list button::after {
    content: attr(data-day);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
  }
}

/* The breadcrumbs. */
.crumbs { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; color: var(--secondary-foreground); margin: 0 0 8px; }

/* The footer: full width. */
footer.site {
  padding: 24px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--screen-background);
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  color: var(--secondary-foreground);
}
footer.site > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px auto; }
footer.site nav.links a { color: var(--primary-foreground); text-decoration: none; }
/* The stores' own badges (§7): 60 px high (the owner), and 16 px apart,
   more than the quarter of their height Apple and Google ask for around a
   badge. Above and below, only a paragraph's 8 px: the owner kept it
   (2026-11-25). The corners shape the focus ring and the tap highlight,
   about Apple's own at 60 px. */
.stores { display: flex; flex-wrap: wrap; gap: 16px; }
.stores a { display: block; border-radius: 12px; }
.stores img { display: block; height: 60px; width: auto; }

/* The route page's top: the facts, the largest block, in the body
   size and the main colour; the alerts' "updated" line in the secondary. */
.updated { color: var(--secondary-foreground); }
.live { margin: 8px 0 16px; }
/* The waiting line: the app's spinner in the place
   of the live part, its words for screen readers only. It goes as soon as
   anything follows it (a route's or a train's live part, the disruptions
   page's notices), with no script. Never by `:not(:last-child)`: Chrome
   reads no element as the last child while the page is still arriving,
   which would hide the spinner for the whole wait. */
.waiting {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  color: var(--primary-foreground);
}
.waiting:has(~ *) { display: none; }
/* The arc grows and shrinks while it turns, as the app's; with less motion
   asked for, a steady arc turning slowly. */
.spinner {
  width: 40px;
  height: 40px;
  animation: spinner-turn 1568ms linear infinite;
}
.spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: square;
  stroke-dasharray: 1 226.2;
  animation: spinner-arc 1333ms ease-in-out infinite;
}
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@keyframes spinner-arc {
  0% { stroke-dasharray: 1 226.2; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 80.3 226.2; stroke-dashoffset: -31.7; }
  100% { stroke-dasharray: 80.3 226.2; stroke-dashoffset: -112; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
  .spinner circle { animation: none; stroke-dasharray: 80.3 226.2; }
}

/* The trip's length, as under the Schedule's route name, over
   "Next in". Both start at the page's edge, as the text above them. */
.trip { font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px; margin: 8px 0; }
/* The red count beside "Service alerts": the app's header badge, a pill. */
.all-notices .count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--attention-negative-action-background);
  color: var(--action-foreground-inverted);
  font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px;
}
.hint { color: var(--secondary-foreground); font-style: italic; }

/* The app's empty state: a heading line, then the message. The
   missing line is its heading line. */
.empty, p.missing { margin: 24px 0; }
.empty .title, p.missing { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px; }
.empty .title { margin: 0; }
.empty .message { margin: 8px 0 0; }
/* The page's own line over trains still shown, three minutes old: a
   warning in red where "Next in" was, which it hides. */
p.missing.stale {
  margin: 8px 0;
  font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px;
  color: var(--attention-negative-foreground);
}

/* "Next in" and what is left today (§5.4), at the page's edge: not
   pushed in to the cards' times, as the app's. */
.next-in, .none-left { font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px; margin: 8px 0; }

/* A fold's heading. The earlier trains' is a line like "Next in" with a
   chevron, no button. */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 2px 3px 4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
details[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
details.earlier { margin: 8px 0; }
details.earlier > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-foreground);
  font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px;
}
details.earlier[open] > summary { margin-bottom: 8px; }

/* The trains: the app's cards. */
ol.trains { list-style: none; margin: 0; padding: 0; }
ol.trains > li + li { margin-top: 4px; }
.train .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 16px 10px 12px;
  background: var(--card-background);
  border-radius: 20px;
}
.train.late .card { padding-top: 2px; padding-bottom: 2px; }
.train.late.noted .card { padding-bottom: 9px; }
.train.faded .card { background: var(--card-departed); }
.card .dep { font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .dep.plain { color: var(--primary-foreground); }
.card .dep.attention { color: var(--attention-negative-foreground); }
.card .dep.muted { color: var(--disabled-foreground); }
.train.late .dep { position: relative; top: 2px; }
.card .dep s {
  display: block;
  position: relative;
  top: -4px;
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  font-variant-numeric: tabular-nums;
}
.card .arr { margin-left: 12px; font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .dest {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .unknown { display: inline-flex; margin-left: 8px; color: var(--attention-negative-foreground); }
.card .unknown svg {
  width: 16.8px;
  height: 16.8px;
  fill: currentColor;
}
.card .platform { margin-left: 8px; font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; white-space: nowrap; }
.card .unknown + .platform { margin-left: 4px; }
.card .notes {
  flex-basis: 100%;
  min-width: 0;
  margin-top: 4px;
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  color: var(--attention-negative-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.train.muted .arr, .train.muted .dest, .train.muted .platform { color: var(--disabled-foreground); }
.train.cancelled :is(.dep, .arr, .dest, .platform) {
  text-decoration: line-through;
  text-decoration-color: var(--disabled-foreground);
}
/* A card with a number is a button, to the train's own page. */
button.card { width: 100%; border: 0; text-align: left; }

/* The wait line: between two trains half an hour or more apart,
   under the time, longer for a longer wait, grey above the first train to
   come. In half-hour steps: a length can't be written on one element. */
ol.trains > li[class*="wait-"] { margin-top: 0; }
ol.trains > li[class*="wait-"]::before {
  content: "";
  display: block;
  width: 1.5px;
  margin-left: 39px;
  background: var(--wait-line);
}
ol.trains > li.wait-past::before { background: var(--wait-line-past); }
ol.trains > li.wait-1::before { height: 16px; }
ol.trains > li.wait-2::before { height: 32px; }
ol.trains > li.wait-3::before { height: 48px; }
ol.trains > li.wait-4::before { height: 64px; }
ol.trains > li.wait-5::before { height: 80px; }
ol.trains > li.wait-6::before { height: 96px; }
ol.trains > li.wait-7::before { height: 112px; }
ol.trains > li.wait-8::before { height: 128px; }
ol.trains > li.wait-9::before { height: 144px; }
ol.trains > li.wait-10::before { height: 160px; }
ol.trains > li.wait-11::before { height: 176px; }
ol.trains > li.wait-12::before { height: 192px; }
ol.trains > li.wait-13::before { height: 208px; }
ol.trains > li.wait-14::before { height: 224px; }
ol.trains > li.wait-15::before { height: 240px; }
ol.trains > li.wait-16::before { height: 256px; }
ol.trains > li.wait-17::before { height: 272px; }
ol.trains > li.wait-18::before { height: 288px; }
ol.trains > li.wait-19::before { height: 304px; }
ol.trains > li.wait-20::before { height: 320px; }

/* Every notice of the route's lines: the app's alert sheet as one
   card, folded until opened, above the trains, in a train card's shape:
   its corners, its insets, its gap. The heading takes the card's whole
   width, so a press anywhere on it opens the card. */
details.all-notices {
  margin: 4px 0;
  padding: 0 16px 0 12px;
  background: var(--card-background);
  border-radius: 20px;
}
details.all-notices > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px 0 -12px;
  padding: 10px 16px 10px 12px;
  font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px;
}
details.all-notices > summary::after { margin-left: auto; }
details.all-notices[open] { padding-bottom: 10px; }
.all-notices .updated { margin: 0 0 12px; }
.all-notices .notice:last-child { margin-bottom: 0; }
.updated, .notice p { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; }
.notice { margin: 0 0 12px; }
.notice p { margin: 0; color: var(--secondary-foreground); }
.notice p.text { color: var(--primary-foreground); }
/* The disruptions page's notices: each as in the app's full list,
   one card each, with the links to the pages it concerns. */
.notices .notice {
  padding: 10px 16px 10px 12px;
  margin: 8px 0;
  background: var(--card-background);
  border-radius: 20px;
}

/* A train's own page, as the app's Train Detail:
   under the heading the train's route and the red line for a delay of
   unknown length; then one card, its notes whole in red, and the leg in
   two columns, the times on the left. */
.train-day { margin: -12px 0 8px; color: var(--secondary-foreground); }
.train-day::first-letter { text-transform: uppercase; }
.train-route, .unknown-line { font-size: 14px; font-weight: 600; line-height: 1.43; letter-spacing: 0.25px; margin: 4px 0; }
.unknown-line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--attention-negative-foreground);
}
.unknown-line .unknown { display: inline-flex; }
.unknown-line svg {
  width: 16.8px;
  height: 16.8px;
  fill: currentColor;
}
.leg {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  /* The separator's own row, as the app's divider: at least its height,
     more when a struck departure needs it. */
  grid-template-rows: auto auto minmax(12px, auto) auto;
  grid-template-areas:
    "notes notes notes"
    "board-time board-station board-platform"
    "board-time separator separator"
    "arrive-time arrive-station arrive-platform";
  margin: 8px 0 16px;
  padding: 10px 16px 10px 12px;
  background: var(--card-background);
  border-radius: 20px;
}
.leg .notes {
  grid-area: notes;
  margin: 0 0 12px;
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  color: var(--attention-negative-foreground);
}
.leg .stop { display: contents; }
.leg .time { font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0; font-variant-numeric: tabular-nums; line-height: 28.02px; white-space: nowrap; }
.leg .time.plain { color: var(--primary-foreground); }
.leg .time.attention { color: var(--attention-negative-foreground); }
.leg .time.muted { color: var(--disabled-foreground); }
.leg .time s { display: block; font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; font-variant-numeric: tabular-nums; }
.leg :is(.station, .platform) {
  font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px;
  line-height: 28.02px;
  color: var(--secondary-foreground);
  white-space: nowrap;
}
.leg .station { margin-left: 12px; overflow: hidden; text-overflow: ellipsis; }
.leg .platform { margin-left: 8px; justify-self: end; }
.leg .stop.muted :is(.station, .platform) { color: var(--disabled-foreground); }
.leg .board .time { grid-area: board-time; }
.leg .board .station { grid-area: board-station; }
.leg .board .platform { grid-area: board-platform; }
.leg .arrive .time { grid-area: arrive-time; }
.leg .arrive .station { grid-area: arrive-station; }
.leg .arrive .platform { grid-area: arrive-platform; }
.leg .arrive::before {
  content: "";
  grid-area: separator;
  align-self: center;
  height: 1px;
  margin-left: 12px;
  background: var(--secondary-border);
}
.leg.cancelled :is(.time, .station, .platform) {
  text-decoration: line-through;
  text-decoration-color: var(--disabled-foreground);
}

.routes ul, .other-routes ul { padding-left: 20px; }

/* The home: the routes as the app's route cards. */
.routes.cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
a.route-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 8px 12px 8px 20px;
  border-radius: 28px;
  background: var(--message-card);
  text-decoration: none;
}
a.route-card .from { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: 0.25px; color: var(--secondary-foreground); }
a.route-card .to { font-size: 20px; font-weight: 500; line-height: 1.27; letter-spacing: 0; color: var(--primary-foreground); }

/* The data page: its text on one app card, its room the site's own. */
.sheet {
  padding: 4px 20px;
  background: var(--card-background);
  border-radius: 20px;
}
.sheet > h2:first-child { margin-top: 16px; }
