@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  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: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  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: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  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: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

:root {
  --paper: #f3f4f1;
  --white: #ffffff;
  --ink: #111418;
  --grey: #4a5058;
  --blue: #1f4fd8;
  --red: #d7262e;
  --yellow: #f5c400;
  --line: 4px;
  --head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 66ch;
  --gutter: clamp(18px, 3.4vw, 48px);
  color-scheme: light;
}

.ph-opstelling {
  --ph: var(--yellow);
  --on-ph: var(--ink);
}

.ph-beurt {
  --ph: var(--blue);
  --on-ph: var(--white);
}

.ph-ronde {
  --ph: var(--red);
  --on-ph: var(--white);
}

.ph-einde {
  --ph: var(--ink);
  --on-ph: var(--white);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-size-adjust: from-font;
}

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

img {
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

a,
button,
label,
select,
summary {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
  font-size-adjust: none;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
}

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

ul,
ol {
  padding-left: 1.2em;
}

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

.pict {
  width: 100%;
  height: 100%;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

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

.wrap {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}

.topbar-row {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-row > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.logo,
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 3px;
}

.logo-mark i {
  width: 12px;
  height: 12px;
  background: var(--yellow);
}

.logo-mark i:nth-child(2) {
  background: var(--blue);
}

.logo-mark i:nth-child(3) {
  background: var(--red);
}

.logo-mark i:nth-child(4) {
  background: var(--ink);
}

.foot .logo-mark i:nth-child(4) {
  background: var(--white);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  anchor-name: --menu-button;
}

.menu-lines {
  width: 18px;
  height: 12px;
  border-block: 3px solid currentColor;
  position: relative;
}

.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
}

.site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 76px;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: var(--gutter);
  inline-size: min(84dvw, 22rem);
  max-block-size: calc(100dvh - 6rem);
  margin: 10px 0 0;
  padding: 8px 0;
  overflow: auto;
  list-style: none;
  background: var(--white);
  border: var(--line) solid var(--ink);
  overscroll-behavior: contain;
}

.site-menu a {
  display: block;
  padding: 12px 20px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 8px solid transparent;
}

.site-menu a:hover {
  border-left-color: var(--yellow);
}

.site-menu a[aria-current="page"] {
  border-left-color: var(--blue);
}

.topbar.is-wide .menu-button {
  display: none;
}

.topbar.is-wide .site-menu {
  position: static;
  display: flex;
  gap: 4px;
  inline-size: auto;
  max-block-size: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.topbar.is-wide .site-menu::backdrop {
  display: none;
}

.topbar.is-wide .site-menu a {
  padding: 10px 12px;
  font-size: 1rem;
  border-left: 0;
  border-bottom: 6px solid transparent;
}

.topbar.is-wide .site-menu a:hover {
  border-bottom-color: var(--yellow);
}

.topbar.is-wide .site-menu a[aria-current="page"] {
  border-bottom-color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.map {
  padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px);
  min-height: calc(100svh - 72px);
  display: grid;
  align-content: center;
}

.map-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.map-head h1 {
  margin: 0;
  max-width: 13ch;
}

.map-lead p {
  font-size: 1.12rem;
  max-width: 54ch;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
}

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

.route::before {
  content: "";
  position: absolute;
  left: 0;
  right: 22px;
  top: 52px;
  height: 10px;
  background: var(--ink);
}

.route::after {
  content: "";
  position: absolute;
  right: 0;
  top: 41px;
  border: 16px solid transparent;
  border-right: 0;
  border-left: 24px solid var(--ink);
}

.stop a {
  position: relative;
  display: grid;
  gap: 6px;
  padding-right: 20px;
  color: var(--ink);
  text-decoration: none;
}

.stop-node {
  width: 104px;
  height: 104px;
  padding: 22px;
  background: var(--ph);
  color: var(--on-ph);
  border: var(--line) solid var(--ink);
  margin-bottom: 14px;
}

.stop-label {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.stop-question {
  font-size: 1.05rem;
  max-width: 22ch;
}

.stop-game {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: underline 2px;
  text-underline-offset: 0.2em;
}

.stop a:hover .stop-node,
.stop a:focus-visible .stop-node {
  outline: 6px solid var(--ph);
  outline-offset: 4px;
}

.stop.ph-opstelling a:hover .stop-node,
.stop.ph-opstelling a:focus-visible .stop-node {
  outline-color: var(--ink);
}

.stop a:hover .stop-game {
  color: var(--ink);
}

.workbench {
  background: var(--yellow);
  border-block: var(--line) solid var(--ink);
  padding-block: clamp(40px, 6vw, 80px);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.workbench-intro p {
  max-width: 40ch;
}

.workbench fieldset {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
}

.workbench legend {
  font-family: var(--head);
  font-weight: 800;
  margin-bottom: 10px;
}

.game-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 3px solid var(--ink);
  background: var(--white);
}

.game-pick label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 8px 14px;
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 0 solid var(--ink);
}

.game-pick label:nth-child(odd) {
  border-right-width: 3px;
}

.game-pick label:nth-child(-n + 2) {
  border-bottom-width: 3px;
}

.game-pick input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.game-pick label:has(input:checked) {
  background: var(--ink);
  color: var(--white);
}

.game-pick label:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: -6px;
}

.scheme {
  background: var(--white);
  border: var(--line) solid var(--ink);
  padding: clamp(18px, 3vw, 32px);
}

.scheme-title {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  counter-increment: step;
}

.steps li + li::before {
  content: "";
  width: clamp(14px, 2.4vw, 32px);
  height: var(--line);
  background: var(--ink);
}

.step {
  min-height: 72px;
  min-width: 128px;
  padding: 10px 14px;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-top: 10px solid var(--ph, var(--ink));
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}

.step::before {
  content: counter(step);
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
}

.step:hover {
  background: var(--paper);
}

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

.step[aria-pressed="true"]::before {
  color: var(--white);
}

.loop-note {
  margin: 14px 0 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--grey);
}

.scheme-info {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 10px solid var(--ph, var(--ink));
  min-height: 7em;
}

.scheme-info p {
  margin-bottom: 0.6em;
  max-width: var(--measure);
}

.line-section {
  padding-block: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
}

.line-head p {
  color: var(--grey);
  max-width: 36ch;
}

.stations {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.stations::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 10px;
  background: var(--ink);
}

.station {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}

.station:last-child {
  padding-bottom: 0;
}

.station-dot {
  width: 70px;
  height: 70px;
  padding: 15px;
  background: var(--ph);
  color: var(--on-ph);
  border: var(--line) solid var(--ink);
  position: relative;
}

.transfer .station-dot {
  background: var(--white);
  color: var(--ink);
  border-radius: 50%;
  border-width: 6px;
}

.station-body {
  padding-top: 4px;
}

.station-body h3 {
  margin-bottom: 6px;
}

.station-body h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.station-body h3 a:hover {
  background-size: 100% 100%;
  color: var(--white);
}

.station-body p {
  margin: 0;
  max-width: 60ch;
}

.station-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 6px !important;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey);
}

.phase-tag {
  display: inline-block;
  padding: 1px 8px;
  background: var(--ph, var(--ink));
  color: var(--on-ph, var(--white));
  font-family: var(--head);
  font-weight: 700;
}

.transfer .phase-tag {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
  border-top: var(--line) solid var(--ink);
}

.mission .prose p:first-of-type {
  font-size: 1.18rem;
}

.photo {
  margin: 0;
  background: var(--white);
  border: var(--line) solid var(--ink);
}

.photo img {
  width: 100%;
}

.photo figcaption {
  padding: 10px 14px;
  border-top: 3px solid var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
}

.compare {
  padding-block: clamp(40px, 6vw, 80px);
  border-top: var(--line) solid var(--ink);
}

.table-wrap {
  overflow-x: auto;
  container-type: inline-size;
  background: var(--white);
  border: var(--line) solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--head);
  font-weight: 800;
  border-bottom: 3px solid var(--ink);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 2px solid var(--paper);
}

thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
}

tbody th {
  font-family: var(--head);
  font-weight: 800;
  border-left: 10px solid var(--ink);
}

@container (width < 640px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td,
  caption {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    border-bottom: 3px solid var(--ink);
    padding: 6px 0 10px;
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  tbody th,
  tbody td {
    border-bottom: 0;
    padding: 6px 16px;
  }

  tbody th {
    padding-top: 12px;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--head);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--grey);
  }
}

.contact-band {
  background: var(--blue);
  color: var(--white);
  padding-block: clamp(40px, 6vw, 72px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contact p {
  max-width: 44ch;
}

.contact-band .facts {
  border-top-color: var(--white);
}

.contact-band .facts dt {
  color: var(--white);
}

.contact-band a {
  color: var(--white);
}

.contact-band a:hover {
  color: var(--yellow);
}

.contact-band :focus-visible {
  outline-color: var(--white);
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  padding-top: 14px;
  border-top: var(--line) solid var(--ink);
  font-size: 0.98rem;
}

.facts dt {
  font-family: var(--head);
  font-weight: 700;
  color: var(--grey);
}

.facts dd {
  margin: 0;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-list address {
  font-style: normal;
}

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

.notice {
  margin-block: clamp(32px, 5vw, 56px);
  padding: 18px 22px;
  background: var(--white);
  border-left: 10px solid var(--red);
  font-size: 0.98rem;
  max-width: 920px;
}

.page-head {
  padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 44px);
  max-width: 920px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 6vw, 3.6rem);
}

.page-head p {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 60ch;
}

.page-head.with-photo {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 1.4em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose li {
  margin-bottom: 0.4em;
}

.block {
  padding-bottom: clamp(28px, 4vw, 48px);
}

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

.filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--white);
}

.filter {
  min-height: 46px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-right: 3px solid var(--ink);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: inset 0 -6px 0 var(--ph, transparent);
}

.filter:last-child {
  border-right: 0;
}

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

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
}

select {
  min-height: 46px;
  min-width: 220px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
}

.shelf {
  padding-bottom: clamp(32px, 5vw, 64px);
}

.shelf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--line) solid var(--ink);
}

.shelf-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 2px solid var(--ink);
}

.shelf-icon {
  width: 64px;
  height: 64px;
  padding: 13px;
  background: var(--ph);
  color: var(--on-ph);
  border: 3px solid var(--ink);
}

.shelf-item h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 6px;
}

.shelf-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.shelf-item h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.shelf-item:hover h2 a {
  color: var(--blue);
  text-decoration: underline 3px;
}

.shelf-item p {
  margin: 0;
  max-width: 64ch;
}

.article {
  padding-block: clamp(44px, 6vw, 80px);
  border-top: 12px solid var(--ph, var(--ink));
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.article-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head);
  font-weight: 700;
  color: var(--grey);
}

.article-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-plate {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--ph);
  color: var(--on-ph);
  border: var(--line) solid var(--ink);
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.6rem;
}

.side-plate .pict {
  width: 72px;
  height: 72px;
}

.stamp {
  color: var(--grey);
  font-size: 0.95rem;
}

.diagram {
  margin: 28px 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--white);
  border: 3px solid var(--ink);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram figcaption {
  margin-top: 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--grey);
}

.d-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.d-soft {
  fill: none;
  stroke: var(--grey);
  stroke-width: 2;
}

.d-dash {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 8 6;
}

.d-box {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 3;
}

.d-box-off {
  fill: var(--paper);
  stroke: var(--grey);
  stroke-width: 2;
}

.d-fill {
  fill: var(--ink);
}

.d-text {
  fill: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 20px;
}

.d-small {
  fill: var(--grey);
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
}

.mid {
  text-anchor: middle;
}

.dashed {
  stroke-dasharray: 8 6;
}

.term {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline dotted var(--blue) 2px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.term:hover {
  color: var(--blue);
}

.term-box {
  width: min(92vw, 520px);
  padding: 28px;
  background: var(--white);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-top: 12px solid var(--blue);
  overscroll-behavior: contain;
}

.term-box::backdrop {
  background: rgb(17 20 24 / 0.55);
}

.term-box h2 {
  font-size: 1.5rem;
}

.term-from {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.terms {
  background: var(--white);
  border: var(--line) solid var(--ink);
}

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

.terms summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  cursor: pointer;
}

.terms summary::-webkit-details-marker {
  display: none;
}

.terms summary::before {
  content: "+";
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
}

.terms details[open] > summary::before {
  content: "\2212";
  background: var(--ink);
}

.terms summary:hover {
  background: var(--paper);
}

.terms details::details-content {
  overflow: clip;
}

.term-text {
  padding: 0 18px 20px 60px;
  max-width: calc(var(--measure) + 60px);
}

.term-text p {
  margin-bottom: 0.7em;
}

.example {
  padding-left: 14px;
  border-left: 6px solid var(--yellow);
  color: var(--grey);
}

.jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: var(--line) solid var(--ink);
  background: var(--white);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.job {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 32px);
  border-bottom: 3px solid var(--ink);
}

.job:nth-child(odd) {
  border-right: 3px solid var(--ink);
}

.job:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.job h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.job h3 {
  font-size: 1rem;
  margin: 1.2em 0 0.4em;
}

.job ul {
  margin: 0;
}

.ref {
  align-self: start;
  margin-bottom: 12px;
  padding: 2px 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 18px 0 0;
}

.chips li {
  padding: 2px 10px;
  border: 2px solid var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.88rem;
}

.job-apply {
  margin: 18px 0 0;
  font-size: 0.98rem;
}

.job-apply a {
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
  background: var(--white);
  border: var(--line) solid var(--ink);
}

.split > div {
  padding: clamp(20px, 2.6vw, 32px);
}

.split > div:first-child {
  border-right: 3px solid var(--ink);
  border-top: 10px solid var(--blue);
}

.split > div:last-child {
  border-top: 10px solid var(--red);
}

.split h2 {
  font-size: 1.35rem;
}

.charter {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 80px);
  padding: 0;
  max-width: 920px;
  border-top: var(--line) solid var(--ink);
}

.charter li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
}

.charter li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 4px;
  background: var(--blue);
}

.charter h3 {
  margin-bottom: 0.3em;
}

.charter p {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.about-grid figure {
  margin: 0;
  position: sticky;
  top: 96px;
  background: var(--white);
  border: var(--line) solid var(--ink);
}

.about-grid figcaption {
  padding: 10px 14px;
  border-top: 3px solid var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.92rem;
}

.legal {
  max-width: var(--measure);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.legal .notice {
  margin-top: 0;
}

.legal .table-wrap {
  margin-block: 16px 20px;
}

.foot {
  background: var(--ink);
  color: var(--white);
  padding-block: 44px 28px;
  margin-top: 0;
  border-top: 12px solid var(--yellow);
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (min-width: 1081px) {
  .foot-cols:has(> [aria-label="Contact"]) {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  }
}

.foot-brand {
  color: var(--white);
  margin-bottom: 10px;
}

.foot p {
  max-width: 40ch;
  font-size: 0.97rem;
}

.foot h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--yellow);
  display: inline-block;
}

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

.foot li a {
  display: inline-block;
  padding: 5px 0;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot li a:hover,
.foot li a[aria-current="page"] {
  text-decoration: underline 2px;
  text-underline-offset: 0.25em;
}

.foot :focus-visible {
  outline-color: var(--yellow);
}

.foot-address {
  margin-bottom: 8px;
}

.foot-line {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 2px solid var(--grey);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.lost {
  min-height: 100vh;
  display: grid;
  place-content: center;
  max-width: 760px;
  margin-inline: auto;
  padding: var(--gutter);
}

.lost .lost-code {
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1;
}

.lost-code span {
  padding: 10px 18px;
  border: var(--line) solid var(--ink);
  background: var(--yellow);
}

.lost-code span:nth-child(2) {
  background: var(--red);
  color: var(--white);
}

.lost-code span:nth-child(3) {
  background: var(--blue);
  color: var(--white);
}

.lost p {
  color: var(--grey);
  font-size: 1.12rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .map-head,
  .workbench-grid,
  .line-section,
  .mission,
  .article-grid,
  .about-grid,
  .glossary-grid,
  .contact,
  .page-head.with-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-side,
  .about-grid figure {
    position: static;
  }

  .article-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot-cols > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .route {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .route::before {
    left: 33px;
    right: auto;
    top: 0;
    bottom: 26px;
    width: 10px;
    height: auto;
  }

  .route::after {
    left: 22px;
    right: auto;
    top: auto;
    bottom: 0;
    border: 16px solid transparent;
    border-bottom: 0;
    border-top: 24px solid var(--ink);
  }

  .stop a {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 18px;
    padding-right: 0;
  }

  .stop-node {
    grid-row: 1 / 4;
    width: 76px;
    height: 76px;
    padding: 16px;
    margin: 0;
  }

  .map {
    min-height: 0;
  }
}

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

  .split > div:first-child,
  .job:nth-child(odd) {
    border-right: 0;
  }

  .job:nth-last-child(2) {
    border-bottom: 3px solid var(--ink);
  }

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

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

  .foot-cols > [aria-label="Contact"] {
    grid-column: 1 / -1;
  }

  .steps {
    flex-direction: column;
    align-items: stretch;
  }

  .steps li {
    flex-direction: column;
    align-items: stretch;
  }

  .steps li + li::before {
    width: var(--line);
    height: 16px;
    margin-left: 24px;
  }

  .step {
    min-width: 0;
  }

  .station {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }

  .station-dot {
    width: 56px;
    height: 56px;
    padding: 11px;
  }

  .stations::before {
    left: 23px;
    top: 28px;
  }
}

@media (max-width: 560px) {
  .diagram svg {
    min-width: 480px;
  }

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

  .game-pick label {
    border-right-width: 0 !important;
    border-bottom-width: 3px;
  }

  .game-pick label:last-child {
    border-bottom-width: 0;
  }

  .term-text {
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .topbar-row {
    gap: 10px;
  }

  .logo {
    gap: 9px;
    font-size: 0.98rem;
  }

  .logo .logo-mark {
    grid-template-columns: repeat(2, 10px);
    gap: 2px;
  }

  .logo .logo-mark i {
    width: 10px;
    height: 10px;
  }

  .menu-button {
    gap: 8px;
    padding: 0 12px;
  }

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

  select {
    min-width: 0;
    width: 100%;
  }

  .filters .field {
    width: 100%;
  }

  .filter {
    flex: 1 1 auto;
  }
}

@media (forced-colors: active) {
  .stop-node,
  .station-dot,
  .shelf-icon,
  .side-plate {
    border-color: CanvasText;
  }

  .topbar.is-wide .site-menu a[aria-current="page"] {
    border-bottom-color: Highlight;
  }
}

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