/* Decode by KylaqLabs: transit-network world */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/overpass-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: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-italic-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;
}

:root {
  /* enamel and signage (light theme) */
  --ground: #f3f5f4;
  --panel: #ffffff;
  --raised: #e7ecf1;
  --code-bg: #e4e9ee;
  --ink: #12233d;
  --ink-2: #46566c;
  --rule: #d3dae1;
  --rule-strong: #aab6c3;
  --navy: #12233d;
  --navy-2: #1b3253;
  --on-navy: #ffffff;
  --on-navy-2: #b8c6d9;
  --on-navy-rule: rgba(184, 198, 217, 0.25);
  --sign-border: transparent;
  --line-ink: #12233d; /* dark text paired with orange and amber, in every theme */

  --btn-bg: var(--navy);
  --btn-fg: var(--on-navy);
  --btn-bg-hover: var(--navy-2);
  --btn-on-navy-hover: #dfe7f1;
  --wash: rgba(18, 35, 61, 0.06);
  --header-bg: rgba(243, 245, 244, 0.9);
  --input-bg: #ffffff;
  --input-fg: #12233d;
  --input-border: transparent;
  --placeholder: #5d6c80;
  --pre-bg: var(--navy);
  --pre-fg: #e8eef6;
  --dot-bg: var(--navy);
  --error-ring: #ff8a80;
  --error-text: #ffb4ab;

  --shadow-sign: 0 18px 40px -20px rgba(18, 35, 61, 0.55);
  --shadow-pop: 0 24px 48px -12px rgba(18, 35, 61, 0.45), 0 4px 12px rgba(18, 35, 61, 0.2);
  --shadow-tile: 0 16px 32px -18px rgba(18, 35, 61, 0.35);
  --shadow-bullet: 0 8px 16px -8px rgba(18, 35, 61, 0.5);

  /* one colour per line (incident) */
  --l-log4shell: #d7262e;
  --l-moveit: #e5661a;
  --l-xz: #f0a500;
  --l-crowdstrike: #007a52;
  --l-solarwinds: #0065b3;
  --l-colonial: #7f5126;

  --focus: #0065b3;
  --focus-on-navy: #f0a500;

  --font-sign: "Overpass", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-travel: cubic-bezier(0.45, 0, 0.1, 1);
  --ease-arrive: cubic-bezier(0.25, 0.8, 0.25, 1);

  color-scheme: light;
}

/* night service: the same network on a dark ground */
:root[data-theme="dark"] {
  --ground: #0c1420;
  --panel: #131d2c;
  --raised: #1b2738;
  --code-bg: #1d2a3d;
  --ink: #e9eef5;
  --ink-2: #a9b6c7;
  --rule: #243246;
  --rule-strong: #3d4e67;
  --navy: #15233a;
  --navy-2: #1d304e;
  --on-navy-2: #b3c1d4;
  --on-navy-rule: rgba(184, 198, 217, 0.16);
  --sign-border: rgba(233, 238, 245, 0.08);

  --btn-bg: #e9eef5;
  --btn-fg: #0c1420;
  --btn-bg-hover: #ffffff;
  --wash: rgba(233, 238, 245, 0.08);
  --header-bg: rgba(12, 20, 32, 0.86);
  --input-bg: #0c1420;
  --input-fg: #e9eef5;
  --input-border: rgba(233, 238, 245, 0.16);
  --placeholder: #7d8ba0;
  --pre-bg: #080e18;
  --dot-bg: #2a3d5c;

  --shadow-sign: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-tile: 0 16px 32px -18px rgba(0, 0, 0, 0.7);
  --shadow-bullet: 0 8px 16px -8px rgba(0, 0, 0, 0.7);

  --l-colonial: #9a6532; /* lifted so the line holds against the dark ground */
  --focus: #6cb4ff;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: var(--rule-strong) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(240, 165, 0, 0.38);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sign);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-sign);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px 10px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sign);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
    border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
}

.btn-ghost {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--wash);
}

.on-navy .btn-primary {
  background: var(--on-navy);
  color: var(--navy);
}

.on-navy .btn-primary:hover {
  background: var(--btn-on-navy-hover);
}

.on-navy .btn-ghost {
  color: var(--on-navy);
}

.on-navy .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.on-navy :focus-visible {
  outline-color: var(--focus-on-navy);
}

/* ───────── Header ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sign);
  line-height: 1;
}

.brand-name strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px 0;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: var(--wash);
}

.subscribe-trigger {
  min-height: 44px;
  padding-inline: 20px;
}

/* ───────── Theme toggle ───────── */

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.theme-toggle:hover {
  background: var(--wash);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: transform 360ms var(--ease-out), opacity 200ms var(--ease-out), filter 200ms var(--ease-out);
}

/* the icon shows the theme you are in; the other turns away and blurs out */
.theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  filter: blur(2px);
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ───────── Phone menu ───────── */

.menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--wash);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

/* the same two strokes turn into a close mark, rather than swapping icons */
.menu-toggle path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 300ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-line-1 {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line-2 {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  inset: calc(var(--header-h) + 8px) 16px auto auto;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 8px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  transform-origin: top right;
  overscroll-behavior: contain;
}

@supports selector(:popover-open) {
  .menu-panel {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out),
      overlay 150ms allow-discrete, display 150ms allow-discrete;
  }

  .menu-panel:popover-open {
    opacity: 1;
    transform: none;
    transition-duration: 220ms;
  }

  @starting-style {
    .menu-panel:popover-open {
      opacity: 0;
      transform: translateY(-6px) scale(0.97);
    }
  }
}

/* the menu is a short line: each destination is a stop on it */
.menu-route {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-route::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 32px;
  bottom: 32px;
  width: 4px;
  border-radius: 2px;
  background: var(--rule);
}

.menu-route a {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 8px 12px 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}

.menu-route a:hover,
.menu-route a:focus-visible {
  background: var(--wash);
}

.menu-stop {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--panel);
}

.menu-route a[aria-current="page"] .menu-stop {
  border-width: 7px;
}

.menu-text {
  display: grid;
  gap: 2px;
}

.menu-text strong {
  font-family: var(--font-sign);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.menu-text small {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.menu-foot {
  display: grid;
  gap: 4px;
  margin: 8px 8px 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.menu-foot .btn {
  width: 100%;
}

.menu-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-sign);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.menu-mail:hover {
  color: var(--ink);
  text-decoration: underline;
}

.menu-mail svg {
  width: 18px;
  height: 18px;
  flex: none;
}

html.motion .menu-panel:popover-open .menu-route li {
  animation: rise 360ms var(--ease-out) backwards;
}

html.motion .menu-panel:popover-open .menu-route li:nth-child(2) { animation-delay: 40ms; }
html.motion .menu-panel:popover-open .menu-route li:nth-child(3) { animation-delay: 80ms; }

/* the new theme spreads from the toggle (driven by site.js) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 1;
}

/* ───────── Subscribe panel (popover) ───────── */

.subscribe-panel {
  position: fixed;
  inset: calc(var(--header-h) + 8px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) auto auto;
  margin: 0;
  width: min(400px, calc(100vw - 32px));
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-navy);
  border: 1px solid var(--sign-border);
  box-shadow: var(--shadow-pop);
}

.subscribe-panel {
  transform-origin: top right;
}

/* opens from the Subscribe button and closes a little faster than it opens */
@supports selector(:popover-open) {
  .subscribe-panel {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out),
      overlay 150ms allow-discrete, display 150ms allow-discrete;
  }

  .subscribe-panel:popover-open {
    opacity: 1;
    transform: none;
    transition-duration: 220ms;
  }

  @starting-style {
    .subscribe-panel:popover-open {
      opacity: 0;
      transform: translateY(-6px) scale(0.97);
    }
  }
}

.subscribe-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.subscribe-panel p {
  color: var(--on-navy-2);
  font-size: 1rem;
  line-height: 1.5;
}

.subscribe-form {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.subscribe-form label {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
}

.subscribe-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  border-color: var(--input-border);
  background: var(--input-bg);
  color: var(--input-fg);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--focus);
}

.subscribe-form input::placeholder {
  color: var(--placeholder);
}

.subscribe-form input[aria-invalid="true"] {
  border-color: var(--error-ring);
}

.subscribe-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--on-navy);
}

.form-status[data-tone="error"] {
  color: var(--error-text);
}

.panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-navy-2);
  cursor: pointer;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-navy);
}

.panel-close svg {
  width: 20px;
  height: 20px;
}

/* ───────── Hero: the network map ───────── */

.hero {
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: 0;
}

/* the sign is mounted on the map: the network runs edge to edge underneath it */
.hero-grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  padding-bottom: clamp(32px, 5vh, 56px);
}

.hero-grid > .map-frame {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
}

.hero-grid > .sign {
  grid-column: 1;
  grid-row: 1 / span 2;
  z-index: 2;
}

.hero-grid > .legend {
  grid-column: 2;
  grid-row: 2;
}

.sign {
  position: relative;
  align-self: start;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sign-border);
  box-shadow: var(--shadow-sign);
}

.sign-route {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.sign-route span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
}

.sign h1 {
  font-size: clamp(2.3rem, 3.3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.sign-lede {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--on-navy-2);
  max-width: 34ch;
}

.sign-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.sign-actions .btn {
  width: 100%;
}

.map-frame {
  position: relative;
  min-width: 0;
  padding-top: 12px;
}

.map-scroll {
  width: 100%;
}

.network-map {
  width: 100%;
  height: auto;
  overflow: hidden;
  font-family: var(--font-sign);
}

.network-map .line-path {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-map .line-path.is-unfinished {
  stroke-dasharray: 2 14;
  stroke-width: 7;
}

.network-map .station {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 3;
}

.network-map .terminus {
  stroke-width: 3.5;
}

.network-map .interchange {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 3.5;
}

.network-map text {
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--ground);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.network-map .label-interchange {
  font-size: 17px;
  font-weight: 700;
}

.network-map .label-line {
  font-size: 21px;
  font-weight: 700;
}

/* station names appear only while a route is traced */
.network-map .stop-label {
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.network-map .line-group.is-active .stop-label {
  opacity: 1;
}

.network-map[data-active] .shared text {
  opacity: 0;
}

.network-map .line-group {
  transition: opacity 260ms var(--ease-out);
}

.network-map .line-group a {
  cursor: pointer;
}

.network-map[data-active] .line-group {
  opacity: 0.14;
}

.network-map[data-active] .line-group.is-active {
  opacity: 1;
}

.network-map[data-active] .shared {
  opacity: 0.3;
}

.network-map .shared {
  transition: opacity 260ms var(--ease-out);
}

/* the one authored load moment: lines draw, then stations land */
@media (prefers-reduced-motion: no-preference) {
  .network-map .line-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: draw-line 1400ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 130ms + 150ms);
  }

  .network-map .line-path.is-unfinished {
    stroke-dasharray: 2 14;
    animation: fade-in 600ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 130ms + 900ms);
  }

  .network-map .stops,
  .network-map .shared {
    animation: fade-in 500ms var(--ease-out) backwards;
    animation-delay: 1100ms;
  }

  @keyframes draw-line {
    from {
      stroke-dashoffset: 1;
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
}

.legend {
  align-self: end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 24px;
}

.legend a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 52px;
  padding: 4px 8px 4px 0;
  text-decoration: none;
  border-radius: var(--radius);
}

.legend .swatch {
  grid-row: span 2;
  width: 28px;
  height: 9px;
  border-radius: 5px;
  background: var(--line);
}

.legend strong {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
}

.legend small {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.2;
}

.legend a:hover strong,
.legend a:focus-visible strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* ───────── Method band ───────── */

.method {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.method-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.method h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.method-copy p {
  margin-top: 20px;
  color: var(--on-navy-2);
  max-width: 46ch;
}

.route-steps {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}

.route-steps::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 0;
  top: 11px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--on-navy) 0 39%, var(--l-xz) 39% 100%);
  transform-origin: left center;
}

.route-steps li {
  position: relative;
  padding-right: 24px;
}

.route-steps .dot {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--on-navy);
  border: 5px solid var(--navy);
  box-shadow: 0 0 0 3px var(--on-navy);
  margin-bottom: 24px;
}

.route-steps li:nth-child(n + 3) .dot {
  box-shadow: 0 0 0 3px var(--l-xz);
}

.route-steps h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.route-steps p {
  color: var(--on-navy-2);
  font-size: 1rem;
  line-height: 1.55;
}

/* two ways to ride the same route */
.branches {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
}

.branch::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 20px;
  border-radius: 3px;
  background: var(--branch);
}

.branch-plain {
  --branch: var(--on-navy);
}

.branch-deep {
  --branch: var(--l-xz);
}

.branch h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}

.branch p {
  color: var(--on-navy-2);
  font-size: 1rem;
  max-width: 52ch;
}

/* ───────── Incident tiles ───────── */

.incidents {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 52ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 44px;
  padding: 8px 16px 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
    border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.filter:hover {
  background: var(--wash);
}

.filter:active {
  transform: scale(0.96);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tile-grid:not([data-filtered]) .tile-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.tile {
  --line: var(--ink);
  --on-line: var(--on-navy);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-2px);
    border-color: var(--rule-strong);
    box-shadow: var(--shadow-tile);
  }
}

.tile:active {
  transform: scale(0.99);
  transition-duration: 120ms;
}

.tile[hidden] {
  display: none;
}

.tile-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  background: var(--line);
  color: var(--on-line);
  font-family: var(--font-sign);
}

.tile-sign strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile-sign time {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.9375rem;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 20px;
  flex: 1;
}

.tile h3 {
  font-size: 1.375rem;
  line-height: 1.15;
}

.tile h3 a {
  text-decoration: none;
}

/* the whole tile is the link target */
.tile h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tile h3 a:focus-visible {
  outline: none;
}

.tile:has(h3 a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover h3 a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
}

.tile-summary {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

.tile-meta {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-sign);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
}

.tile-meta .tag {
  padding: 4px 8px 2px;
  border-radius: 6px;
  border: 1.5px solid var(--rule-strong);
}

.ridden {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ink);
}

.ridden svg {
  width: 18px;
  height: 18px;
}

.tile.is-read .ridden {
  display: inline-flex;
}

/* strip map inside each tile: five stops on a 5-column grid */
.strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  height: 26px;
  margin: 2px 0;
}

.strip::before {
  content: "";
  position: absolute;
  left: 9px;
  right: calc((100% - 32px) / 5 - 9px);
  top: 50%;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 4px;
  background: var(--line);
}

.strip i {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--ink);
}

.strip i:last-of-type {
  width: 22px;
  height: 22px;
  margin-left: -2px;
  border-width: 6px;
}

.strip .train {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .tile:hover .train {
    opacity: 1;
    animation: ride 1.4s var(--ease-out) forwards;
  }

  @keyframes ride {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(var(--ride, 0px));
    }
  }
}

.strip-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  font-family: var(--font-sign);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-2);
}

.strip-labels li:last-child {
  color: var(--ink);
}

.strip-labels strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.strip-labels span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}

/* small tiles: name the ends of the route */
.strip-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: -6px;
  font-family: var(--font-sign);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-2);
}

.strip-ends span:last-child {
  text-align: right;
  color: var(--ink);
}

.tile:not(.tile-featured) .strip.is-unfinished::before {
  right: calc(25% + 2px);
}

.tile .strip.is-unfinished::after {
  content: "";
  position: absolute;
  left: 75%;
  right: 11px;
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 10px);
}

.tile:not(.tile-featured) .strip {
  display: flex;
  justify-content: space-between;
}

.tile:not(.tile-featured) .strip::before {
  right: 9px;
}

.tile-featured .tile-body {
  padding: 28px 28px 24px;
  gap: 20px;
}

.tile-featured h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.06;
  max-width: 22ch;
}

.tile-excerpt {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.tile-excerpt h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tile-excerpt p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

.tile-featured .tile-summary {
  font-size: 1.125rem;
  max-width: 56ch;
}

.tile-featured .tile-sign {
  padding: 20px 28px 16px;
}

.tile-featured .tile-sign strong {
  font-size: 1.375rem;
}

/* ───────── Journey band ───────── */

.journey {
  padding-top: 0;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.journey-panel {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.journey h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

.journey p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 52ch;
}

.ride-track {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.ride-track li {
  display: flex;
  align-items: center;
  flex: 1;
}

.ride-track li:last-child {
  flex: none;
}

.ride-track li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 6px;
  margin-inline: 4px;
  border-radius: 3px;
  background: var(--rule);
}

.ride-track a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}

.ride-track a svg {
  width: 20px;
  height: 20px;
  color: var(--on-line);
  opacity: 0;
}

.ride-track li.is-read a {
  background: var(--line);
}

.ride-track li.is-read a svg {
  opacity: 1;
}

.ride-track a:hover {
  background: color-mix(in srgb, var(--line) 18%, var(--panel));
}

.ride-track li.is-read a:hover {
  background: var(--line);
}

.journey-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-left: clamp(0px, 4vw, 56px);
  border-left: 1px solid var(--rule);
}

.journey-actions h3 {
  font-size: 1.375rem;
}

.journey-actions p {
  margin-top: 0;
  font-size: 1rem;
}

.journey-actions .btn {
  align-self: flex-start;
}

/* ───────── Footer ───────── */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  padding-top: 56px;
  padding-bottom: 40px;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer .brand {
  color: var(--on-navy);
}

.site-footer .brand-name span {
  color: var(--on-navy-2);
}

.site-footer p {
  margin-top: 16px;
  max-width: 52ch;
}

.site-footer .footer-contact {
  margin-top: 12px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-sign);
  font-weight: 700;
  color: var(--on-navy);
  text-decoration: underline;
  text-decoration-color: var(--on-navy-rule);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  text-decoration-color: currentColor;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-navy);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-rule);
  font-size: 0.875rem;
}

.site-footer :focus-visible {
  outline-color: var(--focus-on-navy);
}

/* ───────── Article (post pages) ───────── */

.post-sign {
  background: var(--line);
  color: var(--on-line);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.post-sign .crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}

.post-sign .crumb svg {
  width: 18px;
  height: 18px;
}

.post-sign .crumb:hover {
  text-decoration: underline;
}

.post-line-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.125rem;
}

.post-line-name .roundel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 6px solid currentColor;
  background: #fff;
}

.post-sign h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.post-deck {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  max-width: 60ch;
}

.post-facts {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-family: var(--font-sign);
}

.post-facts div {
  display: grid;
  gap: 2px;
}

.post-facts dt {
  font-size: 0.875rem;
  font-weight: 600;
}

.post-facts dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.0625rem;
}

.on-dark-line {
  --focus: #ffffff;
}

.on-light-line {
  --focus: var(--line-ink);
}

.post-sign :focus-visible {
  outline-color: var(--focus);
}

/* route figure: the incident as a line */
.route-figure {
  margin: 0;
  padding-top: 40px;
  padding-bottom: 8px;
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--stops, 5), minmax(0, 1fr));
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: calc(100% / var(--stops, 5) - 12px);
  height: 9px;
  border-radius: 5px;
  background: var(--line);
}

.route.is-unfinished::before {
  right: calc(200% / var(--stops, 5) - 12px);
}

.route.is-unfinished::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(100% - 200% / var(--stops, 5) + 12px);
  right: calc(100% / var(--stops, 5) - 12px);
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 12px);
}

.route li {
  position: relative;
  padding-right: 16px;
}

.route .stop {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--panel);
  border: 4px solid var(--ink);
  margin-bottom: 14px;
}

.route li:last-child .stop {
  border-width: 9px;
}

.route strong {
  display: block;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
}

.route span {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.post-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.post-toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.post-toc h2 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.toc-track {
  position: relative;
}

.post-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.post-toc .toc-fill {
  z-index: 0;
}

.post-toc .toc-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.post-toc .toc-actions .btn {
  width: 100%;
  font-size: 0.9375rem;
}

.post-toc ol::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 5px;
  border-radius: 3px;
  background: var(--rule);
}

.post-toc .toc-fill {
  position: absolute;
  left: 9px;
  top: 14px;
  width: 5px;
  height: calc(100% - 44px);
  border-radius: 3px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 400ms var(--ease-out);
}

.post-toc li {
  position: relative;
}

.post-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
}

.post-toc a::before {
  content: "";
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--rule-strong);
  position: relative;
  z-index: 1;
  transition: border-color 200ms var(--ease-out), border-width 200ms var(--ease-out);
}

.post-toc a.is-passed::before {
  border-color: var(--ink);
}

.post-toc a[aria-current="true"] {
  color: var(--ink);
}

.post-toc a[aria-current="true"]::before {
  border-color: var(--ink);
  border-width: 7px;
}

.post-toc a:hover {
  color: var(--ink);
}

.prose {
  max-width: 70ch;
}

.prose > section + section {
  margin-top: clamp(56px, 7vw, 88px);
}

.prose h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  margin-bottom: 20px;
}

.prose h3 {
  font-size: 1.3125rem;
  margin: 36px 0 12px;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p {
  margin-top: 1.1em;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--ink-2);
  font-family: var(--font-sign);
  font-weight: 700;
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}

.prose pre {
  margin: 1.4em 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--pre-bg);
  border: 1px solid var(--sign-border);
  color: var(--pre-fg);
  overflow-x: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose strong {
  font-weight: 700;
}

.plain {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--panel);
  border: 2px solid var(--line);
}

.plain h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
}

.plain p {
  font-size: 1.1875rem;
  line-height: 1.6;
}

.depth-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.depth-note svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.timeline {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline li {
  display: grid;
  grid-template-columns: 11ch 1fr;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.timeline time {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.actions-list {
  list-style: none;
  padding: 0 !important;
  counter-reset: act;
}

.actions-list li {
  position: relative;
  padding-left: 52px;
  counter-increment: act;
}

.actions-list li + li {
  margin-top: 20px;
}

.actions-list li::before {
  content: counter(act);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dot-bg);
  color: var(--on-navy);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 0.9375rem;
  padding-top: 2px;
}

.sources {
  font-size: 1rem;
}

.sources li {
  overflow-wrap: anywhere;
}

/* glossary: terms decode inline */
.term {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline dotted;
  text-decoration-color: var(--ink-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  cursor: help;
}

.term {
  transition: text-decoration-color 160ms var(--ease-out);
}

.term:hover {
  text-decoration-style: solid;
}

.term[aria-expanded="true"] {
  text-decoration-style: solid;
  text-decoration-color: var(--line);
}

.term-def {
  display: block;
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  font-size: 1rem;
  line-height: 1.5;
}

.term-def[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .term-def {
    animation: def-in 220ms var(--ease-out);
  }

  @keyframes def-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}

.term-def b {
  font-family: var(--font-sign);
  font-weight: 700;
}

/* next lines at the end of a post */
.change-here {
  border-top: 2px solid var(--ink);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.change-here h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  margin-bottom: 32px;
}

.change-here .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* the end of a post is an interchange: this line meets the next ones */
.change-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 40px;
}

.change-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 96px;
  height: 40px;
}

.change-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  height: 9px;
  border-radius: 5px 0 0 5px;
  background: var(--line);
}

.change-pill {
  position: absolute;
  right: 0;
  width: 32px;
  height: 40px;
  border-radius: 16px;
  background: var(--panel);
  border: 4px solid var(--ink);
}

.change-sign h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

.change-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.line-bullet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px 6px;
  border-radius: 999px;
  background: var(--bullet);
  color: var(--on-bullet);
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .line-bullet:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-bullet);
  }
}

.line-bullet:active {
  transform: scale(0.97);
}

/* ───────── Demo: a post, read the Decode way ───────── */

.demo {
  margin: 0;
  container-type: inline-size;
  min-width: 0;
}

.demo-stage {
  position: relative;
  height: 400px;
  overflow: hidden;
  /* the window fades out at its foot instead of being cut */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  font-family: var(--font-sign);
  user-select: none;
}

.demo-window {
  position: absolute;
  inset: 0 0 auto;
  height: 480px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--sign-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.demo-chrome {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--rule);
}

.demo-lights {
  display: flex;
  gap: 8px;
}

.demo-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-strong);
}

.demo-url {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  padding: 4px 16px 3px;
  border-radius: 6px;
  background: var(--ground);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}

.demo-band {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  background: var(--l-log4shell);
  color: #fff;
}

.demo-roundel {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: -2px;
  border-radius: 50%;
  border: 4px solid currentColor;
  background: #fff;
}

.demo-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  height: calc(100% - 96px);
}

.demo-rail {
  --axis: y;
  position: relative;
  padding: 20px 0 0 20px;
}

.demo-rail ol {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  transition: color 200ms var(--ease-out);
}

.demo-stop {
  position: relative;
  z-index: 1;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--rule-strong);
  background: var(--panel);
  transition: border-color 200ms var(--ease-out), border-width 200ms var(--ease-out);
}

.demo-rail li.is-passed .demo-stop {
  border-color: var(--ink);
}

.demo-rail li.is-current {
  color: var(--ink);
}

.demo-rail li.is-current .demo-stop {
  border-color: var(--ink);
  border-width: 4.5px;
}

.demo-rail-track,
.demo-rail-fill {
  position: absolute;
  border-radius: 2px;
  transform-origin: 0 0;
}

.demo-rail-track {
  background: var(--rule);
}

.demo-rail-fill {
  background: var(--l-log4shell);
  transform: scaleY(0);
  transition: transform 640ms var(--ease-in-out);
}

.demo-view {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 0 12px;
}

.demo-scroll {
  transition: transform 720ms var(--ease-in-out);
}

.demo-plain {
  padding: 16px;
  border: 2px solid var(--l-log4shell);
  border-radius: 10px;
}

.demo-h {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-p {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
}

.demo-term {
  font-weight: 700;
  text-decoration: underline dotted 2px;
  text-decoration-color: var(--ink-2);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms var(--ease-out);
}

.demo-term.is-open {
  text-decoration-style: solid;
  text-decoration-color: var(--l-log4shell);
}

.demo-def {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
}

.demo-def > div {
  min-height: 0;
  overflow: hidden;
}

.demo-def-inner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--raised);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.demo-def-inner b {
  font-family: var(--font-sign);
}

.demo-def.is-open {
  grid-template-rows: 1fr;
}

.demo-def.is-open .demo-def-inner {
  opacity: 1;
  transform: none;
  transition-delay: 140ms;
}

.demo-def.is-instant,
.demo-def.is-instant .demo-def-inner {
  transition: none;
}

.demo-bars {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.demo-bars i,
.demo-rows i {
  display: block;
  height: 7px;
  width: var(--w, 100%);
  border-radius: 4px;
  background: var(--rule);
}

.demo-sec {
  margin-top: 24px;
}

.demo-rows {
  display: grid;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}

.demo-rows span {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: 28px;
  border-bottom: 1px solid var(--rule);
}

.demo-rows span i:first-child {
  background: var(--rule-strong);
}

.demo-code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--pre-bg);
  color: var(--pre-fg);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the cursor: the stageshow kit's macOS arrow and pointing hand */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition-property: transform, opacity;
  transition-timing-function: var(--ease-travel), ease;
}

.demo-cursor.is-on {
  opacity: 1;
}

.demo-press {
  display: grid;
  transform-origin: 0 0;
  transition: transform 260ms var(--ease-out);
}

.demo-cursor.is-pressed .demo-press {
  transform: scale(0.88);
  transition-duration: 80ms;
}

.demo-press svg {
  grid-area: 1 / 1;
  transition: opacity 160ms ease, transform 160ms ease;
}

.demo-arrow {
  margin: -5px 0 0 -8px;
}

.demo-hand {
  margin: -3px 0 0 -10px;
  opacity: 0;
  transform: scale(0.8);
}

.demo-cursor.is-hand .demo-arrow {
  opacity: 0;
  transform: scale(0.8);
}

.demo-cursor.is-hand .demo-hand {
  opacity: 1;
  transform: none;
}

/* phone column: the progress line runs across the top instead */
@container (max-width: 520px) {
  .demo-stage {
    height: 380px;
  }

  .demo-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .demo-rail {
    --axis: x;
    padding: 16px 12px 4px;
  }

  .demo-rail ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .demo-rail li {
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    font-size: 11px;
    text-align: center;
  }

  .demo-rail li:not(.is-current) .demo-label {
    opacity: 0;
  }

  .demo-label {
    white-space: nowrap;
    transition: opacity 200ms var(--ease-out);
  }

  .demo-rail-fill {
    transform: scaleX(0);
  }

  .demo-view {
    padding: 12px 16px 0;
  }

  .demo-url {
    display: none;
  }

  .demo-title {
    font-size: 15px;
  }
}

/* ───────── Entrances ─────────
   html.motion is set in <head> only when motion is allowed. */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}

@keyframes stop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

html.motion [data-reveal]:not(.is-in) {
  opacity: 0;
}

html.motion [data-reveal].is-in {
  animation: rise 640ms var(--ease-out) backwards;
  animation-delay: calc(var(--d, 0) * 70ms);
}

/* the method route draws itself, and each stop lands as the line reaches it */
html.motion .route-steps[data-reveal].is-in {
  animation: none;
}

html.motion .route-steps.is-in::before {
  animation: grow-x 1100ms var(--ease-in-out) backwards;
}

html.motion .route-steps.is-in .dot {
  animation: stop-in 420ms var(--ease-out) backwards;
}

html.motion .route-steps.is-in :is(h3, p) {
  animation: rise 520ms var(--ease-out) backwards;
}

html.motion .route-steps.is-in li:nth-child(1) > * { animation-delay: 80ms; }
html.motion .route-steps.is-in li:nth-child(2) > * { animation-delay: 300ms; }
html.motion .route-steps.is-in li:nth-child(3) > * { animation-delay: 520ms; }
html.motion .route-steps.is-in li:nth-child(4) > * { animation-delay: 740ms; }
html.motion .route-steps.is-in li:nth-child(5) > * { animation-delay: 960ms; }

/* the reading tracker fills in the stops you've read, one after another */
html.motion .ride-track.is-in li.is-read a {
  animation: ride-fill 420ms var(--ease-out) backwards;
  animation-delay: calc(var(--n, 0) * 90ms + 200ms);
}

@keyframes ride-fill {
  from {
    background: var(--panel);
    transform: scale(0.85);
  }
}

html.motion .ride-track.is-in li.is-read a svg {
  animation: fade 240ms var(--ease-out) backwards;
  animation-delay: calc(var(--n, 0) * 90ms + 380ms);
}

/* hero: the sign settles while the lines draw; its route bar draws with them */
@media (prefers-reduced-motion: no-preference) {
  html.motion .sign {
    animation: rise 700ms var(--ease-out) backwards;
  }

  html.motion .sign-route span {
    transform-origin: left center;
    animation: grow-x 700ms var(--ease-in-out) backwards;
  }

  html.motion .sign-route span:nth-child(1) { animation-delay: 150ms; }
  html.motion .sign-route span:nth-child(2) { animation-delay: 280ms; }
  html.motion .sign-route span:nth-child(3) { animation-delay: 410ms; }
  html.motion .sign-route span:nth-child(4) { animation-delay: 540ms; }
  html.motion .sign-route span:nth-child(5) { animation-delay: 670ms; }
  html.motion .sign-route span:nth-child(6) { animation-delay: 800ms; }

  html.motion .sign :is(h1, .sign-lede, .sign-actions) {
    animation: rise 640ms var(--ease-out) backwards;
  }

  html.motion .sign h1 { animation-delay: 120ms; }
  html.motion .sign .sign-lede { animation-delay: 200ms; }
  html.motion .sign .sign-actions { animation-delay: 280ms; }

  html.motion .legend li {
    animation: rise 520ms var(--ease-out) backwards;
    animation-delay: calc(900ms + var(--n, 0) * 60ms);
  }

  /* post pages: the band settles, then the route's stops land in order */
  html.motion .post-sign .wrap > * {
    animation: rise 600ms var(--ease-out) backwards;
  }

  html.motion .post-sign .wrap > :nth-child(2) { animation-delay: 60ms; }
  html.motion .post-sign .wrap > :nth-child(3) { animation-delay: 120ms; }
  html.motion .post-sign .wrap > :nth-child(4) { animation-delay: 180ms; }
  html.motion .post-sign .wrap > :nth-child(5) { animation-delay: 240ms; }

  html.motion .route::before {
    animation: grow-x 1000ms var(--ease-in-out) 200ms backwards;
    transform-origin: left center;
  }

  html.motion .route .stop {
    animation: stop-in 420ms var(--ease-out) backwards;
  }

  html.motion .route li:nth-child(1) .stop { animation-delay: 240ms; }
  html.motion .route li:nth-child(2) .stop { animation-delay: 420ms; }
  html.motion .route li:nth-child(3) .stop { animation-delay: 600ms; }
  html.motion .route li:nth-child(4) .stop { animation-delay: 780ms; }
  html.motion .route li:nth-child(5) .stop { animation-delay: 960ms; }
}

/* ───────── Responsive ───────── */

@media (max-width: 1179px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .hero-grid > .sign,
  .hero-grid > .map-frame,
  .hero-grid > .legend {
    grid-column: 1;
    grid-row: auto;
  }

  .sign {
    max-width: 760px;
  }

  .map-frame {
    padding-top: 32px;
  }

  .sign-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .sign-actions .btn {
    width: auto;
  }
}

/* tablet: the sign runs wide in two columns so the map reaches the fold */
@media (min-width: 761px) and (max-width: 1179px) {
  .sign {
    max-width: none;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    column-gap: 40px;
    align-items: start;
  }

  .sign-route {
    grid-column: 1 / -1;
  }

  .sign h1 {
    grid-column: 1;
    grid-row: 2 / span 2;
    font-size: clamp(2.2rem, 4.4vw, 3rem);
  }

  .sign-lede {
    grid-column: 2;
    margin-top: 0;
    font-size: 1.0625rem;
  }

  .sign-actions {
    grid-column: 2;
    margin-top: 20px;
  }
}

.map-hint {
  display: none;
}

@media (max-width: 1100px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 52px;
  }

  .route-steps::before {
    left: 11px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 8px;
    height: auto;
    background: linear-gradient(180deg, var(--on-navy) 0 34%, var(--l-xz) 34% 100%);
    transform-origin: center top;
  }

  .route-steps .dot {
    position: absolute;
    left: -52px;
    top: 0;
  }

  html.motion .route-steps.is-in::before {
    animation-name: grow-y;
  }

  .method-head,
  .branches,
  .journey-panel {
    grid-template-columns: 1fr;
  }

  .journey-actions {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-toc {
    display: none;
  }

  .change-here .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* two columns: the featured tile takes a full row, and a tile left alone
     at the end widens to close the row instead of leaving a hole */
  .tile-grid:not([data-filtered]) .tile-featured {
    grid-row: auto;
  }

  .tile-grid[data-filterable]:not([data-filtered]) > .tile:last-child:nth-child(even),
  .change-here .tile-grid > .tile:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 1.0625rem;
  }

  .site-nav {
    display: none;
  }

  .site-header .wrap {
    gap: 4px;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .menu-toggle {
    display: grid;
  }

  .subscribe-trigger {
    margin-right: 4px;
  }

  .brand-name span {
    display: none;
  }

  /* on a phone the map is panned sideways at a readable scale */
  .map-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }

  .network-map {
    width: 560px;
    max-width: none;
  }

  .network-map .label-line {
    font-size: 25px;
  }

  .network-map .label-interchange {
    font-size: 20px;
  }

  .map-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--font-sign);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-2);
  }

  .map-hint svg {
    width: 18px;
    height: 18px;
  }

  .map-frame {
    padding-top: 20px;
  }

  .sign {
    padding: 28px 24px;
  }

  .sign-route {
    margin-bottom: 20px;
  }

  .sign-lede {
    font-size: 1.0625rem;
  }

  .sign-actions {
    display: grid;
    margin-top: 24px;
  }

  .sign-actions .btn {
    width: 100%;
  }

  .strip-labels {
    display: none;
  }

  .legend ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-grid,
  .change-here .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile-grid:not([data-filtered]) .tile-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 52px;
  }

  .route::before {
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: auto;
    width: 9px;
    height: auto;
  }

  .route.is-unfinished::before {
    bottom: 30%;
  }

  .route.is-unfinished::after {
    top: 70%;
    bottom: 12px;
    left: 14px;
    right: auto;
    width: 5px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 12px);
  }

  .route .stop {
    position: absolute;
    left: -52px;
    top: -4px;
  }

  html.motion .route::before {
    animation-name: grow-y;
    transform-origin: center top;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-panel {
    inset: calc(var(--header-h) + 8px) 16px auto 16px;
    width: auto;
  }
}

/* phones: Subscribe becomes a bell beside the theme and menu buttons,
   still labelled for screen readers */
@media (max-width: 480px) {
  .subscribe-trigger {
    width: 44px;
    padding: 0;
  }

  .subscribe-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  /* keep air between the wordmark and the header buttons */
  .brand {
    gap: 8px;
    padding-right: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name strong {
    font-size: 1.375rem;
  }

  .menu-foot .btn {
    padding-inline: 16px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .journey-panel {
    padding: 24px 20px;
  }

  .ride-track a {
    width: 36px;
    height: 36px;
  }

  .ride-track a svg {
    width: 16px;
    height: 16px;
  }

  .ride-track li:not(:last-child)::after {
    margin-inline: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
