/*
 * studentenhelfer.eu: the network-map world. Cities are stops on colour-coded region lines, services are rows of a dark
 * departure board, every inner page is a station with a name plate. This file is only linked on studentenhelfer.eu.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f7fb;
  --paper-2: #e6ecf6;
  --white: #fff;
  --ink: #0d1b33;
  --ink-2: #44526b;
  --board: #0d1b33;
  --board-2: #17294a;
  --see: #0a63d8;
  --suedwest: #0b7a45;
  --breisgau: #c8470a;
  --fern: #5b6b88;
  --mithelfen: #d4146e;
  --signal: #ffc928;
  --lake: #cfe2fa;
  --logo-ink: var(--ink);
  --logo-blue: var(--see);
  --logo-magenta: var(--mithelfen);
  --focus: #0d1b33;
  --display: "Bricolage Grotesque", "Segoe UI", ui-sans-serif, system-ui,
    sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tone: var(--ink);
  --on-tone: #fff;
  --accent: var(--ink);
  --tabbar-h: 0px;
}

[data-tone="see"] {
  --tone: var(--see);
  --on-tone: #fff;
  --accent: var(--see);
}

[data-tone="suedwest"] {
  --tone: var(--suedwest);
  --on-tone: #fff;
  --accent: var(--suedwest);
}

[data-tone="breisgau"] {
  --tone: var(--breisgau);
  --on-tone: #fff;
  --accent: var(--breisgau);
}

[data-tone="fern"] {
  --tone: var(--fern);
  --on-tone: #fff;
  --accent: var(--fern);
}

[data-tone="navy"] {
  --tone: var(--ink);
  --on-tone: #fff;
  --accent: var(--ink);
}

[data-tone="mithelfen"] {
  --tone: var(--mithelfen);
  --on-tone: #fff;
  --accent: var(--mithelfen);
}

[data-tone="signal"] {
  --tone: var(--signal);
  --on-tone: var(--ink);
  --accent: var(--ink);
}

[data-tone="slate"] {
  --tone: var(--paper-2);
  --on-tone: var(--ink);
  --accent: var(--ink);
}

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

html {
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper-2);
  scroll-padding-top: 16px;
}

body.sh {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-variant-numeric: tabular-nums;
  caret-color: var(--mithelfen);
  accent-color: var(--see);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

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

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

.pict {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.skip:focus {
  top: 12px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

/* Masthead and route navigation */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter) 18px;
  background:
    linear-gradient(
        90deg,
        var(--see) 0 25%,
        var(--suedwest) 25% 50%,
        var(--breisgau) 50% 75%,
        var(--mithelfen) 75% 100%
      )
      top / 100% 8px no-repeat,
    var(--paper);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.route__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.route__stop {
  --stop: var(--ink);

  display: flex;
  align-items: center;
}

.route__stop[data-stop="leistungen"] {
  --stop: var(--see);
}

.route__stop[data-stop="orte"] {
  --stop: var(--suedwest);
}

.route__stop[data-stop="mithelfen"] {
  --stop: var(--mithelfen);
}

.route__stop[data-stop="tipps"] {
  --stop: #e0a100;
}

.route__stop:not(:last-child)::after {
  content: "";
  width: clamp(14px, 2.2vw, 34px);
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.18;
}

.route__stop a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.route__stop a::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--stop);
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.route__stop a:hover::before {
  background: var(--signal);
  transform: scale(1.2);
}

.route__stop a[aria-current="page"] {
  font-weight: 800;
}

.route__stop a[aria-current="page"]::before {
  background: var(--stop);
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 6px var(--stop);
  margin-right: 5px;
}

.route__icon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.75em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-student {
  background: var(--mithelfen);
  color: var(--white);
}

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

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn__arrow {
  width: 1.25em;
  height: 1.25em;
  transition: transform 200ms var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

/* Home: hero with the network map */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(40px, 6vw, 88px);
  overflow-x: clip;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__lead {
  max-width: 34em;
  margin: 24px 0 30px;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  font-weight: 650;
  font-size: 0.98rem;
}

.proof li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.proof li::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: 3.5px solid var(--see);
  background: var(--paper);
}

.proof li:nth-child(2)::before {
  border-color: var(--suedwest);
}

.proof li:nth-child(3)::before {
  border-color: var(--breisgau);
}

.netmap {
  margin: 0 calc(-1 * var(--gutter)) 0 0;
}

.netmap__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.netmap figcaption {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.netmap__lake {
  fill: var(--lake);
}

.netmap__lake-name {
  font: 700 19px var(--text);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  fill: #5a8bd1;
}

.netmap__line {
  fill: none;
  stroke: var(--tone);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.netmap__line.is-dashed {
  stroke-width: 10;
  stroke-dasharray: 1 20;
}

.netmap__flag rect {
  fill: var(--tone);
}

.netmap__flag text {
  fill: var(--on-tone);
  font: 700 16px var(--text);
}

.netmap__dot {
  fill: var(--white);
  stroke: var(--tone);
  stroke-width: 6;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    fill 160ms var(--ease),
    transform 200ms var(--ease);
}

.netmap__stop.is-hub .netmap__dot {
  stroke: var(--ink);
  stroke-width: 6;
}

.netmap__stop text {
  fill: var(--ink);
  font: 800 23px var(--display);
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.netmap__hit {
  fill: transparent;
}

.netmap__stop {
  cursor: pointer;
}

.netmap__stop:hover .netmap__dot,
.netmap__stop:focus-visible .netmap__dot {
  fill: var(--signal);
  transform: scale(1.25);
}

.netmap__stop:hover text,
.netmap__stop:focus-visible text {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.netmap__stop:focus-visible {
  outline: none;
}

.netmap__stop:focus-visible .netmap__hit {
  stroke: var(--focus);
  stroke-width: 3;
}

/* The one authored moment: the lines are drawn once, then the stops appear */
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

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

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .netmap__line:not(.is-dashed) {
    stroke-dasharray: 1;
    animation: draw 1.5s var(--ease) 0.15s backwards;
  }

  .netmap__line.is-dashed,
  .netmap__flag {
    animation: fade-in 0.8s ease-out 1s backwards;
  }

  .netmap__dot {
    animation: stop-in 0.6s var(--ease) 0.9s backwards;
  }
}

/* Home: departure board */
.departures {
  background: var(--board);
  color: var(--white);

  --focus: var(--signal);
}

.departures__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.departures h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.departures__note {
  max-width: 42em;
  margin: 14px 0 36px;
  color: #b9c6dc;
  font-size: 1.125rem;
}

.board-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.board-row a {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1.1fr) minmax(0, 1.6fr) 7rem;
  align-items: center;
  gap: 8px 28px;
  padding: 20px 14px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  text-decoration: none;
  transition: background-color 180ms var(--ease);
}

.board-row a:hover {
  background: var(--board-2);
}

.board-row__no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid var(--signal);
  border-radius: 14px;
  color: var(--signal);
}

.board-row__icon {
  width: 30px;
  height: 30px;
}

.board-row__dest {
  font: 800 clamp(1.4rem, 2.4vw, 2rem) / 1.1 var(--display);
  letter-spacing: -0.015em;
  color: var(--signal);
}

.board-row__what {
  color: #dbe4f4;
}

.board-row__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.board-row__arrow {
  width: 1.3em;
  height: 1.3em;
  transition: transform 200ms var(--ease);
}

.board-row a:hover .board-row__arrow {
  transform: translateX(6px);
}

/* Home: the two tracks of an Einsatz */
.tracks {
  background: var(--white);
}

.tracks__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.tracks h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.tracks__lead {
  max-width: 44em;
  margin: 14px 0 40px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.tracks__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
}

.track h3 {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--tone);
  color: var(--on-tone);
  font-size: 1.125rem;
  letter-spacing: 0;
}

.track__stops,
.rail__stops,
.stopline ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.track__stops {
  margin-top: 28px;
}

.track__stops::before,
.rail__stops::before,
.stopline ol::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 8px;
  border-radius: 4px;
  background: var(--accent);
}

.track__stops li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 26px 48px;
}

.track__stops li:last-child {
  padding-bottom: 0;
}

.track__stops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 6px solid var(--accent);
}

.track__stops b {
  font: 800 1.25rem/1.25 var(--display);
}

.track__stops span {
  color: var(--ink-2);
}

.tracks__more {
  margin: 44px 0 0;
}

/* Home: join band for students */
.join {
  position: relative;
  overflow: hidden;
  background: var(--mithelfen);
  color: var(--white);

  --focus: var(--white);
}

.join__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.join h2 {
  max-width: 14em;
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  line-height: 1;
}

.join p {
  max-width: 36em;
  margin: 22px 0 0;
  font-size: 1.1875rem;
}

.join p:last-child {
  margin-top: 32px;
}

.join__art {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: min(52vw, 620px);
  height: auto;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}

.join__line {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join__line.is-a {
  stroke: var(--signal);
}

.join__line.is-b {
  stroke: var(--white);
}

.join__line.is-c {
  stroke: var(--ink);
}

.join__dot {
  fill: var(--mithelfen);
  stroke: var(--white);
  stroke-width: 6;
}

/* Home: the stops of the lines */
.stops {
  background: var(--paper-2);
}

.stops__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.stops h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.stops__lead {
  max-width: 44em;
  margin: 14px 0 40px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.stops__lines {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px clamp(20px, 3vw, 48px);
}

.stopline h3,
.farstrip h3 {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--tone);
  color: var(--on-tone);
  font-size: 1.125rem;
  letter-spacing: 0;
}

.stopline ol {
  margin-top: 24px;
}

.stopline li {
  position: relative;
  padding: 0 0 14px 48px;
}

.stopline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 6px solid var(--accent);
}

.stopline a {
  font: 700 1.5rem/1.3 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.stopline a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.stops__more {
  margin: 36px 0 0;
}

.read__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 104px);
}

/* Inner pages: the station */
.station {
  background: var(--tone);
  color: var(--on-tone);
}

.station__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter) clamp(34px, 5vw, 64px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  margin: 0 0 clamp(22px, 4vw, 44px);
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 650;
}

.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  border-top: 2.5px solid currentcolor;
  border-right: 2.5px solid currentcolor;
  transform: rotate(45deg) translateY(-1px);
}

.crumbs a {
  text-underline-offset: 0.25em;
}

.plate {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  max-width: min(100%, 1040px);
  padding: clamp(10px, 1.6vw, 16px) clamp(20px, 3vw, 40px)
    clamp(10px, 1.6vw, 16px) clamp(10px, 1.6vw, 16px);
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
}

.plate__bullet {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(52px, 6vw, 84px);
  height: clamp(52px, 6vw, 84px);
  border-radius: 50%;
  background: var(--tone);
  color: var(--on-tone);
}

.plate__icon {
  width: 56%;
  height: 56%;
}

.plate__name {
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.page-error .plate {
  padding-left: clamp(20px, 3vw, 40px);
}

.station__lead {
  max-width: 40em;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
}

.page-error .actions {
  margin-top: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.chip {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid currentcolor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.page__cols {
  display: grid;
  grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(48px, 6vw, 88px);
}

.page__cols:not(:has(.rail)) {
  grid-template-columns: minmax(0, 1fr);
}

.page__cols:not(:has(.rail)) .prose {
  max-width: 46rem;
}

.rail {
  align-self: start;
  position: sticky;
  top: 24px;
}

.rail h2 {
  margin-bottom: 22px;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rail__stops li {
  position: relative;
  padding: 0 0 14px 44px;
  min-height: 38px;
}

.rail__stops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--accent);
}

.rail__stops a,
.rail__stops span {
  display: inline-block;
  font: 700 1.1875rem/1.35 var(--display);
  text-decoration: none;
}

.rail__stops a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.rail__stops .is-here::before {
  background: var(--signal);
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 8px var(--accent);
}

.rail__stops .is-here span {
  padding: 1px 10px;
  margin-left: -10px;
  background: var(--signal);
  border-radius: 8px;
}

.rail__all {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Reading column */
.prose {
  min-width: 0;
  font-size: 1.125rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}

.prose h3 {
  margin: 1.8em 0 0.4em;
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  font-weight: 650;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

.ticks li {
  position: relative;
  padding: 0 0 0.55em 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  background: var(--paper);
}

.ticks-no li::before {
  border-color: var(--ink);
  background: var(--ink);
}

.legs {
  list-style: none;
  counter-reset: leg;
  margin: 0 0 1.6em;
  padding: 0;
}

.legs li {
  position: relative;
  counter-increment: leg;
  padding: 0 0 1.2em 56px;
}

.legs li::before {
  content: counter(leg);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font: 800 1.0625rem/1 var(--display);
}

.hops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 1.4em 0 2em;
  padding: 0;
  max-width: 52rem;
}

.hops a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.hops a:hover {
  background: var(--ink);
  color: var(--white);
}

.hops__arrow {
  width: 1.25em;
  height: 1.25em;
  transition: transform 200ms var(--ease);
}

.hops a:hover .hops__arrow {
  transform: translateX(4px);
}

.callout {
  max-width: 44rem;
  margin: 1.6em 0;
  padding: 18px 24px;
  background: var(--signal);
  color: var(--ink);
  border-radius: 16px;
  font-weight: 600;
}

.callout p {
  margin: 0;
}

.limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 52rem;
  margin: 1.6em 0;
}

.limits section {
  padding: 8px 24px 12px;
  background: var(--white);
  border-radius: 18px;
}

.limits h2 {
  margin: 14px 0;
  font-size: 1.375rem;
}

.group {
  margin: 0 0 1.4em;
}

.board {
  max-width: 52rem;
  margin: 1.6em 0 2em;
  overflow-x: auto;
  background: var(--board);
  color: var(--white);
  border-radius: 18px;
}

.board__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.board__table th,
.board__table td {
  padding: 14px 22px;
  text-align: left;
  vertical-align: top;
}

.board__table thead th {
  padding-top: 18px;
  color: #b9c6dc;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board__table tbody tr {
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.board__table tbody th {
  color: var(--signal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
}

.operator {
  display: inline-block;
  margin: 0 0 1.4em;
  padding: 18px 26px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  font-style: normal;
  line-height: 1.6;
}

/* Next step band */
.next {
  background: var(--paper-2);

  --focus: var(--ink);
}

.next__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter);
}

.next__text {
  max-width: 30em;
  margin: 0;
  font: 800 clamp(1.4rem, 2.4vw, 2rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Footer */
.terminal {
  --logo-ink: #fff;
  --logo-blue: #6db1ff;
  --logo-magenta: #ff6fb3;

  background: var(--board);
  color: #dbe4f4;

  --focus: var(--signal);
}

.terminal__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: 36px clamp(32px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 40px;
}

.terminal__claim {
  max-width: 18em;
  margin: 12px 0 0;
}

.terminal__lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.terminal__line h2 {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--tone);
  color: var(--on-tone);
  font: 700 0.875rem/1.4 var(--text);
  letter-spacing: 0;
}

.terminal__line ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.terminal__line a {
  display: inline-block;
  padding: 3px 0;
  text-decoration: none;
}

.terminal__line a:hover,
.terminal__legal a:hover {
  color: var(--signal);
  text-decoration: underline;
}

.terminal__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 0.9375rem;
}

.terminal__legal a {
  padding: 4px 0;
}

.terminal__legal small {
  margin-left: auto;
  font-size: 0.875rem;
  color: #9fb0cc;
}

/* Tablet and smaller */
@media (max-width: 1000px) {
  .masthead {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .route {
    width: 100%;
  }

  .route__list {
    justify-content: space-between;
  }
}

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

  .hero__lead {
    max-width: 36em;
  }

  .board-row a {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .board-row__what {
    grid-column: 2;
    grid-row: 2;
  }

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

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

@media (max-width: 900px) {
  .page__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rail {
    position: static;
  }

  .rail h2 {
    margin-bottom: 8px;
  }

  .rail__stops {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .rail__stops::before {
    inset: 14px 0 auto;
    width: auto;
    height: 8px;
    min-width: max-content;
  }

  .rail__stops li {
    flex: none;
    padding: 44px 28px 0 0;
    min-height: 0;
    scroll-snap-align: start;
  }

  .rail__stops li::before {
    top: 6px;
  }

  .rail__stops .is-here span {
    margin-left: 0;
  }

  .tracks__pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

/* Phone: the route navigation becomes a tab bar at the bottom */
@media (max-width: 720px) {
  :root {
    --tabbar-h: 72px;
  }

  body.sh {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    font-size: 1.0625rem;
  }

  .masthead {
    padding-top: 24px;
  }

  .route {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 2px solid var(--ink);
  }

  .route__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .route__stop {
    display: block;
  }

  .route__stop:not(:last-child)::after {
    display: none;
  }

  .route__stop a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: var(--tabbar-h);
    padding: 6px 2px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .route__stop a::before {
    content: "";
    position: absolute;
    inset: -2px 14% auto;
    width: auto;
    height: 5px;
    border: 0;
    border-radius: 0 0 4px 4px;
    background: transparent;
  }

  .route__stop a:hover::before {
    background: var(--signal);
    transform: none;
  }

  .route__stop a[aria-current="page"]::before {
    background: var(--stop);
    box-shadow: none;
  }

  .route__stop a[aria-current="page"] {
    color: var(--stop);
  }

  .route__icon {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.75rem);
  }

  .hero__lead {
    font-size: 1.125rem;
  }

  .actions .btn {
    width: 100%;
    padding-inline: 0.9em;
    font-size: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .board-row a {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px 4px;
  }

  .board-row__no {
    width: 48px;
    height: 48px;
    grid-row: span 2;
  }

  .board-row__go {
    display: none;
  }

  .board-row__what {
    grid-column: 2;
  }

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

  .hops,
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate {
    border-radius: 18px;
  }

  .terminal__legal small {
    margin-left: 0;
    width: 100%;
  }

  .join::after {
    opacity: 0.35;
  }
}

@media (max-width: 420px) {
  .terminal__lines {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .btn,
  .btn__arrow,
  .hops__arrow,
  .board-row__arrow,
  .netmap__dot {
    transition: none;
  }
}

/* The network map as the first block of the places page */
.mapband {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(32px, 4vw, 56px);
}

.netmap-page {
  max-width: 920px;
}

.read__pair {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(24px, 3vw, 44px) 0;
}

.read__pair + .read__pair {
  border-top: 2px solid var(--ink);
}

.read__pair h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.read__pair .prose > :first-child {
  margin-top: 0.3em;
}

.read__pair .prose > :last-child {
  margin-bottom: 0;
}

.netmap__stop.is-current .netmap__dot {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 7;
  transform: scale(1.35);
}

.netmap__stop.is-current text {
  font-size: 27px;
}

@media (max-width: 900px) {
  .read__pair {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
}

.board-head {
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1.1fr) minmax(0, 1.6fr) 7rem;
  gap: 8px 28px;
  margin: 0;
  padding: 0 14px 12px;
  border-bottom: 2px solid var(--signal);
  color: #b9c6dc;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-head span:nth-child(3) {
  grid-column: 3;
}

.board-row__gate {
  font: 800 2.25rem/1 var(--display);
  color: var(--signal);
  text-align: center;
}

.board-row a .board-row__go {
  min-width: 5.5rem;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .board-head {
    display: none;
  }

  .board-row a {
    grid-template-columns: 40px 72px minmax(0, 1fr) auto;
  }

  .board-row__what {
    grid-column: 3;
  }
}

@media (max-width: 720px) {
  .board-row__gate {
    display: none;
  }

  .board-row a {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .board-row__what {
    grid-column: 2;
  }

  .hero {
    gap: 8px;
  }

  .hero__lead {
    margin: 16px 0 22px;
  }

  .proof {
    display: none;
  }

  .netmap {
    margin: 0 -10px;
  }

  .netmap__stop text {
    font-size: 29px;
  }

  .netmap__stop.is-current text {
    font-size: 31px;
  }

  .netmap__flag text {
    font-size: 21px;
  }

  .netmap__hit {
    r: 34px;
  }

  .netmap figcaption {
    margin: 6px 10px 0;
  }

  .join__art {
    width: 90vw;
    opacity: 0.5;
  }

  .rail__stops {
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    padding-right: 32px;
  }
}

.farstrip p {
  max-width: 34em;
  margin: 18px 0 20px;
  color: var(--ink-2);
}

.farstrip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.farstrip__list a {
  display: inline-block;
  padding: 10px 22px;
  border: 3px dashed var(--fern);
  border-radius: 999px;
  font: 700 1.25rem/1.2 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.farstrip__list a:hover {
  background: var(--fern);
  color: var(--white);
}

.netmap__stop.is-far text {
  fill: var(--ink-2);
  font-size: 20px;
}

.netmap__stop.is-far .netmap__dot {
  stroke-width: 5;
}

@media (max-width: 720px) {
  .netmap__stop.is-far text {
    font-size: 25px;
  }
}

@media (max-width: 720px) {
  .netmap__lake-name {
    font-size: 26px;
  }
}

.logo-svg {
  display: block;
  height: 34px;
  width: auto;
  aspect-ratio: 776.3 / 74;
}

.terminal__logo {
  display: inline-block;
  line-height: 0;
}

.terminal__logo .logo-svg {
  height: 36px;
}

@media (max-width: 1200px) {
  .wordmark .logo-svg {
    height: 30px;
  }
}

@media (max-width: 720px) {
  .wordmark .logo-svg {
    height: 26px;
  }

  .terminal__logo .logo-svg {
    height: 28px;
  }
}
