/* Selvrick: a transit line drawn down the left of the page.
   Rule of the sheet: interactive things are pill plates, everything else is square.
   Station circles are map glyphs, not blocks. */

:root {
  --paper: #FAFBFC;
  --ink: #14202B;
  --mute: #56656F;
  --rule: #D5DCE1;
  --line: #00806A;
  --on-line: #FFFFFF;

  --wash: rgba(213, 220, 225, .38);
  --halo: rgba(0, 128, 106, .16);
  --dim: rgba(20, 32, 43, .42);
  --ghost: rgba(86, 101, 111, .6);

  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pill: 26px;
  --sheet: 1560px;

  --rail-x: clamp(28px, 4.2vw, 64px);
  --gutter: clamp(26px, 4.4vw, 72px);
  --edge: clamp(16px, 4vw, 64px);
  --inset: calc(var(--rail-x) + var(--gutter));
  --rail-w: 6px;

  --leg-y: clamp(72px, 8.5vw, 128px);
  --hero-pad: clamp(32px, 4.4vw, 60px);
  --end-pad: 40px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 50;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 8px; }

/* Plates: station signs you can press */

.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.plate--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.plate--go { background: var(--line); color: var(--on-line); }
.plate--go:hover { background: var(--ink); }
.plate--ghost { border-color: var(--ink); color: var(--ink); }
.plate--ghost:hover { background: var(--ink); color: var(--paper); }
.plate--white { background: var(--paper); color: var(--ink); }
.plate--white:hover { background: var(--ink); color: var(--paper); }
.plate[disabled] { opacity: .72; cursor: progress; }

.plate__arrow { flex: 0 0 auto; width: 18px; height: 18px; transition: transform .2s ease; }
.plate:hover .plate__arrow { transform: translateX(4px); }

/* Masthead: a stretch of the map */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.masthead__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--sheet);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--edge) 0 calc(var(--rail-x) - 12px);
}

.brandplate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  border-radius: var(--pill);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brandplate img { width: 24px; height: 24px; }

.nextstop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mute);
  border-radius: var(--pill);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.nextstop b { margin-left: 4px; font-weight: 800; }

.masthead__cta { display: none; }

.burger {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mute);
  border-radius: var(--pill);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* On small screens the menu drops down with its line right on top of the page rail */

.linenav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  padding: 10px 0 18px;
  overflow-y: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.linenav.open { display: block; }

.linenav li { position: relative; }
.linenav li::after {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 50%;
  width: 4px;
  height: 100%;
  margin-left: -2px;
  background: var(--rule);
}
.linenav li:last-child::after { display: none; }
.linenav li.passed::after { background: var(--line); }

.linenav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: var(--inset);
  font-weight: 700;
  text-decoration: none;
}
.ln-dot {
  position: absolute;
  left: var(--rail-x);
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.linenav li.passed .ln-dot { border-color: var(--line); background: var(--line); }
.linenav li.here .ln-dot {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--halo);
}
.linenav li.here a { color: var(--line); }
.linenav a:hover .ln-dot { border-color: var(--line); }

/* The sheet and the rail */

.sheet { position: relative; max-width: var(--sheet); margin: 0 auto; }

.rail {
  position: absolute;
  left: var(--rail-x);
  top: calc(var(--hero-pad) + 16px);
  bottom: calc(var(--end-pad) + 16px);
  width: var(--rail-w);
  margin-left: calc(var(--rail-w) / -2);
  background: var(--rule);
}
.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--line);
  transform-origin: 0 0;
}
.rail__head {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, 0);
  margin-top: -7px;
}

.leg {
  position: relative;
  padding: var(--leg-y) var(--edge) 0 var(--inset);
  scroll-margin-top: calc(96px - var(--leg-y));
}
.leg--origin { padding-top: var(--hero-pad); scroll-margin-top: 100px; }

/* Station signs */

.sign {
  --sh: 32px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 10px;
  min-height: var(--sh);
  font-size: 1rem;
  font-weight: 400;
}
.sign::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gutter));
  top: calc(var(--sh) / 2 - 1px);
  width: calc(var(--gutter) - 8px);
  height: 2px;
  background: var(--line);
  transition: background-color .4s ease;
}
.sign__dot {
  position: absolute;
  left: calc(-1 * var(--gutter));
  top: calc(var(--sh) / 2);
  width: 24px;
  height: 24px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--line);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 5px var(--halo);
  transform: translate(-50%, -50%);
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.sign__no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: calc((var(--sh) - 24px) / 2);
  padding: 2px 7px 0;
  background: var(--line);
  color: var(--on-line);
  font: 600 .8125rem/1 var(--mono);
  transition: background-color .35s ease, color .35s ease;
}
.sign__name {
  min-width: 0;
  padding-top: calc((var(--sh) - 1.2em) / 2);
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
  font-weight: 800;
  line-height: 1.2;
  transition: color .35s ease;
}
.sign__note {
  padding-top: calc((var(--sh) - 1.3em) / 2);
  color: var(--mute);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.sign::after {
  content: "";
  flex: 1 1 24px;
  height: 1px;
  margin: calc(var(--sh) / 2) 0 0 6px;
  background: var(--rule);
}
.sign--end::after, .calling .sign::after { display: none; }

.sign--sub { --sh: 44px; flex-wrap: nowrap; }
.sign--sub::after { flex: 1 1 0px; }
.sign--sub .sign__dot {
  width: 16px;
  height: 16px;
  border-width: 3px;
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 4px var(--halo);
}
.sign--sub .sign__name {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  padding-top: calc((var(--sh) - 1.15em) / 2);
}

.sign--end { margin-top: 10px; }
.sign--end .sign__dot {
  width: 32px;
  height: 32px;
  border-width: 5px;
  box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 5px var(--halo);
}

/* Type */

.headline {
  margin-top: clamp(18px, 2.6vw, 34px);
  font-size: clamp(2.5rem, 6.2vw, 5.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.026em;
}
.headline span { display: block; }
.headline__acc { color: var(--line); }

.title {
  font-size: clamp(2rem, 4.3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.title--big {
  max-width: 17ch;
  margin-top: 18px;
  font-size: clamp(2.25rem, 5.6vw, 5.25rem);
  line-height: 1.02;
}

.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }

.minihead {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.minihead--gap { margin-top: clamp(24px, 3vw, 36px); }

.opening {
  display: grid;
  gap: 14px 24px;
  margin-top: clamp(16px, 2vw, 26px);
}

.onward {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: clamp(36px, 4.5vw, 56px);
}
.onward span { color: var(--mute); }

/* 00 Hero */

.origin { display: grid; gap: 20px; margin-top: clamp(18px, 2.4vw, 30px); }
.origin .lede { max-width: 62ch; }
.plates { display: flex; flex-wrap: wrap; gap: 12px; }

.linemap { margin-top: clamp(34px, 4.6vw, 60px); border-top: 3px solid var(--ink); }
.linemap__cap { padding-top: 12px; color: var(--mute); font-size: .9375rem; line-height: 1.4; max-width: 74ch; }
.linemap__cap b { color: var(--ink); font-weight: 800; }
.linemap__art { padding: clamp(14px, 2vw, 24px) 0; }

.linemap__wide { display: none; width: 100%; height: auto; }
.linemap__tall { width: 100%; max-width: 440px; height: auto; }

.linemap text { font-family: var(--sans); }
.m-main { fill: none; stroke: var(--line); stroke-width: 8; }
.m-lane { fill: none; stroke: var(--rule); stroke-width: 6; stroke-linejoin: round; }
.m-loop { fill: none; stroke: var(--line); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.m-stop { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.m-x { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.m-x--key { stroke-width: 4; }
.m-core { fill: var(--ink); }
.m-here { fill: var(--line); }
.m-herecore { fill: var(--paper); }
.m-sub-dot { fill: var(--paper); stroke: var(--mute); stroke-width: 3; }
.m-tick { fill: none; stroke: var(--line); stroke-width: 2; }
.m-l { fill: var(--ink); font-size: 21px; font-weight: 700; }
.m-l--s { font-size: 17px; }
.m-l2 { fill: var(--ink); font-size: 15px; font-weight: 500; }
.m-lane-l {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 10px;
  stroke-linejoin: round;
}
.m-loop-l { font-size: 16px; }
.m-lane-l--s { font-size: 14px; stroke-width: 8px; }
.m-herel { fill: var(--line); font-size: 16px; font-weight: 700; }
.m-herel--s { font-size: 14px; }
.m-note { fill: var(--ink); font-size: 20px; font-weight: 800; }
.m-note--s { font-size: 16px; }
.m-sub { fill: var(--mute); font-size: 15px; font-weight: 500; }
.m-sub--s { font-size: 13px; }
.m-key { fill: none; }
.m-key--main { stroke: var(--line); stroke-width: 8; }
.m-key--lane { stroke: var(--rule); stroke-width: 6; }
.m-key--loop { stroke: var(--line); stroke-width: 3.5; }

.faresheet { display: grid; border-top: 1px solid var(--rule); }
.faresheet > div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.faresheet dt { color: var(--mute); font-size: .875rem; font-weight: 600; }
.faresheet dd { font-size: 1rem; line-height: 1.3; }
.faresheet b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

/* 01 Rolling stock: posters on a platform */

.yard {
  --h: 360px;
  --yg: 16px;
  display: flex;
  gap: var(--yg);
  margin-top: clamp(26px, 4vw, 48px);
  margin-right: calc(-1 * var(--edge));
  padding: 0 var(--edge) 16px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.yard__row { display: contents; }

.ad {
  flex: 0 0 auto;
  width: calc(var(--r) * var(--h));
  scroll-snap-align: start;
}
.ad--low { --h: 260px; }

.ad__img { position: relative; }
.ad__img svg { width: 100%; height: auto; }
.ad__img::after {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * var(--yg));
  bottom: -10px;
  height: 4px;
  background: var(--rule);
  transition: background-color .25s ease;
}
.ad:hover .ad__img::after { background: var(--line); }

.ad figcaption { margin-top: 24px; }
.ad figcaption b { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.25; }
.ad__ratio { display: block; color: var(--line); font: 600 .75rem/1.5 var(--mono); }
.ad__txt { display: block; margin-top: 2px; color: var(--mute); font-size: .9375rem; line-height: 1.4; }

.yard__hint { margin-top: 2px; color: var(--mute); font-size: .875rem; }

.tx { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; }
.txw { font-family: var(--sans); font-weight: 600; }
.txm { font-family: var(--mono); font-weight: 600; }

/* stroke classes first, so a fill class can overrule their fill:none */
.si, .sl, .sp, .sw, .sr { fill: none; }
.si { stroke: var(--ink); }
.sl { stroke: var(--line); }
.sp { stroke: var(--paper); }
.sw { stroke: var(--on-line); }
.sr { stroke: var(--rule); }
.fi { fill: var(--ink); }
.fl { fill: var(--line); }
.fp { fill: var(--paper); }
.fr { fill: var(--rule); }
.fm { fill: var(--mute); }
.fw { fill: var(--on-line); }

/* 02 Depot */

.depotgrid {
  display: grid;
  gap: 40px;
  margin-top: clamp(32px, 4.5vw, 56px);
}

.pattern { margin-top: 18px; }
.pattern li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px 30px;
}
.pattern li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.pattern li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 8px;
  width: 3px;
  height: 100%;
  background: var(--line);
}
.pattern li:last-child::after { display: none; }
.pattern__no { padding-top: .32em; color: var(--mute); font: 600 .8125rem/1.5 var(--mono); }
.pattern b { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.pattern div span { display: block; color: var(--mute); line-height: 1.45; }

.depotnote { margin-top: 10px; color: var(--mute); }

.svcinfo { margin-top: 18px; }
.svcinfo > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.svcinfo dt { padding-top: .3em; color: var(--mute); font-size: .9375rem; font-weight: 600; }
.svcinfo dd { color: var(--mute); font-size: .9375rem; line-height: 1.4; }
.svcinfo dd b { display: block; color: var(--ink); font-size: 1.375rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }

/* Batch planner: the train length board on the platform */

.board {
  --thumb: 34px;
  --cg: clamp(3px, .45vw, 6px);
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(20px, 3.2vw, 44px) clamp(18px, 3.2vw, 44px);
  background: var(--ink);
  color: var(--paper);
}
.board :focus-visible { outline-color: var(--paper); }

.board__title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.board__label { display: block; max-width: 58ch; margin-top: 8px; color: var(--rule); line-height: 1.4; }

.train {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--cg);
  margin-top: clamp(20px, 3vw, 32px);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--mute);
}
.car {
  --nose: clamp(6px, 1vw, 14px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: center;
  gap: clamp(1.5px, .3vw, 4px);
  padding: clamp(3px, .65vw, 9px);
  box-shadow: inset 0 0 0 1.5px var(--mute);
  transition: background-color .2s ease;
}
.car i {
  display: block;
  aspect-ratio: 1 / 1.35;
  background: var(--ghost);
  transition: background-color .15s ease;
}
.car.on { background: var(--line); box-shadow: none; }
.car.on i { background: var(--dim); }
.car.on i.on { background: var(--paper); }
.car.head { clip-path: polygon(0 0, calc(100% - var(--nose)) 0, 100% var(--nose), 100% 100%, 0 100%); }
.car:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(-1 * var(--cg));
  top: 50%;
  width: var(--cg);
  height: 2px;
  background: var(--mute);
}
.car.on:not(.head)::after { background: var(--line); }

/* The slider starts where carriage 2 ends, so the handle sits under the nose of the train */
.track { position: relative; margin: 4px 0 0 25%; padding-bottom: 24px; }
.track input {
  --pct: 33.333%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: calc(100% + var(--thumb));
  height: 44px;
  margin: 0 0 0 calc(var(--thumb) / -2);
  padding: 0;
  background: transparent;
  cursor: grab;
}
.track input:active { cursor: grabbing; }
.track input:focus-visible { outline: none; }
.track input::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--line) var(--pct), var(--mute) var(--pct));
}
.track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: 26px;
  margin-top: -10px;
  border: 0;
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--line);
}
.track input::-moz-range-track { height: 6px; background: var(--mute); }
.track input::-moz-range-progress { height: 6px; background: var(--line); }
.track input::-moz-range-thumb {
  width: var(--thumb);
  height: 26px;
  border: 0;
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--line);
}
.track input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--paper); outline-offset: 4px; }
.track input:focus-visible::-moz-range-thumb { outline: 3px solid var(--paper); outline-offset: 4px; }

.stations { position: absolute; left: 0; right: 0; bottom: 2px; height: 16px; }
.stations li {
  position: absolute;
  left: calc(var(--i) * 100% / 6);
  transform: translateX(-50%);
  color: var(--rule);
  font: 400 .75rem/16px var(--mono);
}

.readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-top: 14px;
}
.readout__big {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.readout__big small { font-size: .42em; font-weight: 600; letter-spacing: 0; }
.readout__mid { color: var(--rule); font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; }
.readout__go { flex: 0 0 auto; margin-top: 12px; }
.board .plate--go:hover { background: var(--paper); color: var(--ink); }
.board__note { margin-top: 14px; color: var(--rule); font-size: .9375rem; }

/* 03 Route cards */

.routes { margin-top: clamp(28px, 4vw, 48px); }
.route {
  display: grid;
  gap: 22px 48px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--rule);
}
.route:last-child { border-bottom: 1px solid var(--rule); }
.route__no { color: var(--line); font: 600 .8125rem/1.5 var(--mono); }
.route h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.route__head p { max-width: 44ch; margin: 6px 0 14px; color: var(--mute); line-height: 1.45; }

.miniline li {
  position: relative;
  padding: 0 0 14px 26px;
  font-weight: 600;
  line-height: 1.3;
}
.miniline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.miniline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 100%;
  background: var(--line);
}
.miniline__end { padding-bottom: 0; }
.miniline li.miniline__end::before { border-color: var(--ink); border-width: 5px; width: 20px; height: 20px; left: -2px; }
.miniline__end span { display: block; color: var(--mute); font-size: .875rem; font-weight: 500; }
.miniline__end b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.022em;
}
.miniline__end--open b { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.01em; }

/* 04 Main line */

.platform { margin-top: clamp(40px, 5vw, 64px); }

.split { display: grid; gap: 22px; margin-top: 14px; }
.split__text p { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; margin-bottom: 18px; }

.faretable li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  line-height: 1.35;
}
.faretable li:last-child { border-bottom: 1px solid var(--rule); }
.faretable b { font-weight: 700; }
.faretable span { color: var(--mute); }

.band {
  display: grid;
  gap: 12px 36px;
  margin-top: 14px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--line);
  color: var(--on-line);
}
.band :focus-visible { outline-color: var(--ink); }
.band__big {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.band__txt { max-width: 48ch; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.4; }
.band .plate { justify-self: start; margin-top: 6px; }

.platform__lede { max-width: 70ch; margin-top: 12px; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }

.readings { display: grid; gap: 18px 28px; margin-top: 22px; }
.readings > div { padding-top: 10px; border-top: 2px solid var(--ink); }
.readings dt { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.readings dd { margin-top: 4px; color: var(--mute); line-height: 1.45; }

/* 05 Junction: the branch leaves the rail at 45 degrees and rejoins it */

.branch {
  --d: 48px;
  position: relative;
  margin-top: calc(var(--gutter) + 26px);
  margin-bottom: calc(var(--gutter) + 8px);
}
.bend { position: absolute; overflow: visible; max-width: none; }
.bend path {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke .3s ease;
}
.bend--out { left: calc(-1 * var(--gutter)); top: calc(-1 * var(--gutter)); width: var(--gutter); height: var(--gutter); }
.bend--in { left: calc(-1 * var(--gutter)); bottom: calc(-1 * var(--gutter)); width: var(--gutter); height: var(--gutter); }
.bend--tr, .bend--br, .trk--b, .trk--c { display: none; }

.trk { position: absolute; display: block; background: var(--line); transition: background-color .3s ease; }
.trk--a { left: -3px; top: 0; bottom: 0; width: 6px; background: var(--rule); }
.trk__fill {
  position: absolute;
  inset: 0;
  background: var(--line);
  transform-origin: 0 0;
  transform: scaleY(var(--bp, 1));
}

.ixs { position: relative; padding-top: 24px; }
.ix { position: relative; padding: 0 0 24px 30px; }
.ix__ring {
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding-top: 2px;
  border: 5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 600 .8125rem/1 var(--mono);
  transform: translate(-50%, -50%);
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.ix h3 { font-size: 1.375rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.ix p { margin-top: 4px; color: var(--mute); line-height: 1.45; }

.branch__back { position: relative; padding: 0 0 6px 30px; font-size: .9375rem; font-weight: 700; line-height: 1.35; }

/* 06 Four stops */

.callings { margin-top: clamp(24px, 3vw, 40px); }
.calling {
  display: grid;
  gap: 8px 32px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--rule);
}
.calling__claim {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.calling__list li { position: relative; padding: 4px 0 4px 20px; color: var(--mute); line-height: 1.4; }
.calling__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95em;
  width: 11px;
  height: 2px;
  background: var(--line);
}

/* 07 Connections */

.conns { display: grid; gap: 0 32px; margin-top: clamp(26px, 3.6vw, 44px); }
.conn { position: relative; padding: 16px 0 24px; border-top: 1px solid var(--rule); }
.conn::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 3px;
  background: var(--line);
  transition: width .3s ease;
}
.conn:hover::before { width: 100%; }
.conn__no { color: var(--line); font: 600 .8125rem/1.5 var(--mono); }
.conn h3 { margin-top: 4px; font-size: 1.1875rem; font-weight: 800; line-height: 1.22; }
.conn p { margin-top: 6px; color: var(--mute); line-height: 1.45; }
.conn--ask p { margin: 0 0 14px; color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

/* 08 Conditions of carriage */

.rules__lede { max-width: 58ch; margin-top: 18px; }
.terms { display: grid; gap: 0 48px; margin-top: clamp(28px, 4vw, 52px); }
.term {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 2px solid var(--ink);
}
.term__no { color: var(--line); font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--mono); }
.term h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.term p { margin-top: 6px; color: var(--mute); line-height: 1.45; }

/* 09 Network: the departures board */

.departures {
  width: 100%;
  margin-top: clamp(26px, 3.6vw, 44px);
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
}
.departures th, .departures td { text-align: left; font-weight: 400; }
.departures tbody th { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.departures td { color: var(--mute); }
.departures td.departures__no { color: var(--line); font: 600 .9375rem/1.5 var(--mono); }
.departures tbody tr { transition: background-color .15s ease; }
.departures tbody tr:hover { background: var(--wash); }

@media (max-width: 639.98px) {
  .car i { aspect-ratio: 1 / 1.9; }
}

@media (max-width: 759.98px) {
  .departures thead { position: absolute; left: -9999px; }
  .departures, .departures tbody { display: block; }
  .departures tbody tr {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    column-gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
  .departures tbody th, .departures tbody td { display: block; grid-column: 2; line-height: 1.35; }
  .departures td.departures__no { grid-column: 1; grid-row: 1 / span 3; line-height: 1.75; }
  .departures__measure { border-top: 2px solid var(--ink); }
}

@media (min-width: 760px) {
  .departures thead th { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); color: var(--mute); font-size: .875rem; font-weight: 600; }
  .departures tbody th, .departures tbody td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
  .departures td.departures__no { width: 3.5rem; padding-left: 4px; }
  .departures__measure th, .departures__measure td { border-top: 2px solid var(--ink); }
}

/* 10 Help point */

.helpgrid { display: grid; gap: 22px; margin-top: clamp(16px, 2vw, 26px); }
.helpgrid__lede { margin-top: 14px; }

.ask { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.ask:first-child { border-top: 1px solid var(--rule); }
.ask summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--pill);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ask summary::-webkit-details-marker { display: none; }
.ask summary:hover { background: var(--wash); }
.ask__mark {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ask__mark::before, .ask__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ask__mark::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.ask[open] .ask__mark { border-color: var(--line); background: var(--line); color: var(--on-line); }
.ask[open] .ask__mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.ask__a { max-width: 70ch; padding: 6px 14px 16px; color: var(--mute); line-height: 1.5; }

/* 11 Ticket office */

.office { display: grid; gap: 30px; margin-top: clamp(16px, 2vw, 26px); }
.office__text .lede { margin-top: 14px; }

.included { margin: 10px 0 20px; }
.included li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--rule); font-weight: 600; line-height: 1.35; }
.included li:last-child { border-bottom: 1px solid var(--rule); }
.included li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--line);
  border-radius: 50%;
}

.ticket { border: 2px solid var(--ink); background: var(--paper); }
.ticket__stub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 12px clamp(16px, 2.6vw, 28px) 10px;
  background: var(--line);
  color: var(--on-line);
  font-weight: 700;
  line-height: 1.3;
}
#lead, .ticket__done { padding: clamp(18px, 2.6vw, 28px) clamp(16px, 2.6vw, 28px); }

.fields { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px 11px;
  border: 1.5px solid var(--mute);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color .15s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--line); }

.hp { position: absolute; left: -9999px; }

.ticket__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed var(--rule);
}
.ticket__promise { flex: 1 1 220px; color: var(--mute); font-size: .9375rem; line-height: 1.4; }

.form-status { min-height: 1.5em; margin-top: 12px; font-weight: 600; line-height: 1.4; }
.form-status.is-error { padding-left: 12px; border-left: 4px solid var(--ink); }

.ticket__done:focus { outline: none; }
.ticket__done h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.ticket__done p { margin-top: 10px; color: var(--mute); }
.ticket__lamp {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: var(--line);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 5px var(--halo);
}

/* 12 End of the line */

.leg--end { padding-bottom: var(--end-pad); }

.endgrid { display: grid; gap: 22px; }
.endmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.endline { max-width: 38ch; margin-top: 8px; color: var(--mute); line-height: 1.45; }

.endnav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -12px; }
.endnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--pill);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.endnav a:hover { background: var(--wash); }
.endgrid__back { justify-self: start; }

.endnote { margin-top: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.35; }

/* Wider sheets */

@media (min-width: 640px) {
  .masthead__cta { display: inline-flex; }
  .faresheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faresheet > div { padding-left: 16px; border-left: 1px solid var(--rule); }
  .faresheet > div:first-child { padding-left: 0; border-left: 0; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .conns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faretable li { grid-template-columns: 11rem minmax(0, 1fr); }
  .readings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .readout__go { margin-left: auto; margin-top: 0; align-self: center; }
}

@media (min-width: 640px) and (max-width: 999.98px) {
  .linemap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: 32px; align-items: start; }
  .linemap__cap { grid-column: 1 / -1; }
  .faresheet { grid-template-columns: none; margin-top: 24px; }
  .faresheet > div { padding-left: 0; border-left: 0; }
}

@media (min-width: 760px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .opening { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .opening .title { grid-column: 1 / span 8; }
  .opening .lede { grid-column: 9 / -1; }
  .opening--wide .title { grid-column: 1 / -1; max-width: 22ch; }

  .origin { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
  .plates { justify-content: flex-end; }

  .linemap__wide { display: block; }
  .linemap__tall { display: none; }

  .depotgrid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }

  .route { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .miniline { display: flex; padding-top: 6px; }
  .miniline li { flex: 1 1 0; min-width: 0; padding: 26px 12px 0 0; }
  .miniline li::before { top: 0; }
  .miniline li:not(:last-child)::after { left: 8px; top: 6px; width: 100%; height: 4px; }
  .miniline li.miniline__end { flex: 1.7 1 0; padding: 30px 0 0; }
  .miniline li.miniline__end::before { top: -2px; left: 0; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .band { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .band .plate { margin-top: 0; }

  .calling { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); padding: 22px 0 30px; }

  .helpgrid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .office { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .endgrid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: start; gap: 40px; }
}

@media (min-width: 1100px) {
  .masthead__in { height: 76px; gap: 28px; padding-left: calc(var(--rail-x) - 14px); }
  .brandplate { margin-right: 0; font-size: 1.3125rem; }
  .brandplate img { width: 28px; height: 28px; }
  .masthead__cta { margin-left: auto; }
  .nextstop, .burger { display: none; }

  .linenav {
    display: block;
    position: static;
    flex: 1 1 auto;
    max-width: 800px;
    max-height: none;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .linenav ol { display: flex; }
  .linenav li { flex: 1 1 auto; }
  .linenav li:last-child { flex: 0 0 auto; }
  .linenav li::after {
    left: 7px;
    top: 8px;
    width: 100%;
    height: 3px;
    margin: -1.5px 0 0;
  }
  .linenav a {
    display: block;
    min-height: 0;
    padding: 20px 10px 2px 0;
    border-radius: var(--pill);
    font-size: .875rem;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
  }
  .ln-dot { left: 7px; top: 8px; width: 14px; height: 14px; }
  .linenav a:hover { color: var(--line); }

  .yard {
    --yg: 24px;
    display: block;
    margin-right: 0;
    padding: 0;
    overflow: visible;
  }
  .yard__row { display: flex; align-items: flex-start; gap: var(--yg); }
  .yard__row + .yard__row { margin-top: 44px; }
  .ad, .ad--low { flex: var(--r) 1 0px; width: auto; min-width: 0; }
  .ad:last-child .ad__img::after { right: 0; }
  .yard__hint { display: none; }

  .conns { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* The branch runs across the page, drops at the far end and comes back underneath */
  .branch { margin-top: calc(var(--gutter) + 34px); margin-bottom: calc(var(--gutter) + 10px); }
  .bend--tr, .bend--br { display: block; }
  .trk--b, .trk--c { display: block; }
  .trk--a { left: 0; right: var(--d); top: -3px; bottom: auto; width: auto; height: 6px; }
  .trk__fill { transform: scaleX(var(--bp, 1)); }
  .bend--tr { right: 0; top: 0; width: var(--d); height: var(--d); }
  .bend--br { right: 0; bottom: 0; width: var(--d); height: var(--d); }
  .trk--b { right: -3px; top: var(--d); bottom: var(--d); width: 6px; }
  .trk--c { left: 0; right: var(--d); bottom: -3px; height: 6px; }

  .ixs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 0 calc(var(--d) + 24px) 70px 0;
  }
  .ix { margin-left: 24px; padding: 30px 0 0 14px; border-left: 2px solid var(--rule); }
  .ix__ring { left: -1px; top: 0; width: 38px; height: 38px; }
  .branch__back {
    position: absolute;
    left: 50%;
    bottom: 0;
    padding: 0 16px;
    background: var(--paper);
    white-space: nowrap;
    transform: translate(-50%, 50%);
  }
}

@media (max-width: 1199.98px) {
  .m-legend { display: none; }
}

@media (max-width: 1099.98px) {
  html:not(.js) .burger { display: none; }
  html:not(.js) .masthead { position: static; }
  html:not(.js) .masthead__in { flex-wrap: wrap; height: auto; min-height: 64px; }
  html:not(.js) .linenav { display: block; position: static; order: 5; width: 100%; max-height: none; border: 0; }
}

/* Motion: the line fills, stations light on approach, blocks settle in.
   Everything here needs .anim, which the page only sets when JS runs and motion is welcome. */

.anim .rail__head { display: block; }
.anim .rail__fill { transform: scaleY(0); }

.anim .sign:not(.lit) .sign__dot { border-color: var(--rule); background: var(--paper); box-shadow: none; }
.anim .sign:not(.lit)::before { background: var(--rule); }
.anim .sign:not(.lit) .sign__no { background: var(--rule); color: var(--ink); }
.anim .sign:not(.lit) .sign__name { color: var(--mute); }
.anim .sign.lit .sign__dot { animation: lamp .55s cubic-bezier(.2, .9, .3, 1); }

@keyframes lamp {
  0% { transform: translate(-50%, -50%) scale(.7); }
  55% { transform: translate(-50%, -50%) scale(1.28); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.anim .rv { opacity: .18; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.anim .rv.in { opacity: 1; transform: none; }

.anim .branch:not(.lit) .bend--out path { stroke: var(--rule); }
.anim .branch:not(.done) .bend--tr path,
.anim .branch:not(.done) .bend--br path,
.anim .branch:not(.done) .bend--in path { stroke: var(--rule); }
.anim .branch:not(.done) .trk--b,
.anim .branch:not(.done) .trk--c { background: var(--rule); }
.anim .ix:not(.lit) .ix__ring { border-color: var(--rule); color: var(--mute); }
.anim .ix.lit .ix__ring { box-shadow: 0 0 0 5px var(--halo); }
.anim .ix:not(.lit) h3 { color: var(--mute); }
.ix h3 { transition: color .3s ease; }

.anim .linemap .m-main { stroke-dasharray: 1160; stroke-dashoffset: 1160; animation: draw 1.9s cubic-bezier(.3, .6, .2, 1) .15s forwards; }
.anim .linemap__wide .m-lane { opacity: 0; animation: fadein .5s ease forwards; animation-delay: calc(.8s + var(--i) * .07s); }
.anim .linemap__wide .m-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: popin .42s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: var(--t, 0s);
}
.anim .m-lanelabels { opacity: 0; animation: fadein .5s ease 1.25s forwards; }
.anim .linemap__wide .m-loop, .anim .linemap__wide .m-loop-l { opacity: 0; animation: fadein .6s ease 1.9s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes popin { from { transform: scale(0); } to { transform: scale(1); } }

.anim .mv--a { animation: run-a 1.1s linear infinite; }
.anim .mv--b { animation: run-b 1.5s linear infinite; }
@keyframes run-a { to { stroke-dashoffset: -16; } }
@keyframes run-b { to { stroke-dashoffset: -48; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .anim .rv { opacity: 1; transform: none; }
  .masthead { position: static; }
}
