:root {
  --paper: #f6f4ef;
  --paper-2: #fffdf9;
  --ink: #14171c;
  --muted: #3f4754;
  --faint: #5c6573;
  --line: rgba(20, 23, 28, 0.1);
  --line-strong: rgba(20, 23, 28, 0.16);
  --brand: #1846e6;
  --brand-ink: #fff;
  --brand-soft: #e8eeff;
  --lake: #0c6b56;
  --lake-soft: #e5f5ef;
  --warn: #8a4b08;
  --warn-soft: #fff4e4;
  --sky: #d7e5f4;
  --shadow: 0 1px 1px rgba(20, 23, 28, 0.04), 0 16px 40px rgba(20, 23, 28, 0.05);
  --radius: 22px;
  --nav-h: 4.25rem;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(24, 70, 230, 0.1), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(12, 107, 86, 0.08), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.panel-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 60;
}
.skip:focus { top: 0.75rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
}
.mark svg { display: block; }
.nav-links {
  display: none;
  flex-wrap: wrap;
  gap: 0.85rem 1.05rem;
  margin-left: 0.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary, .btn-ghost {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost { background: transparent; }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.hero { padding: 1.35rem 0 0.6rem; }
.hero-layout { display: flex; flex-direction: column; }
.hero-copy { display: contents; }
.hero-intro { order: 1; }
.stage { order: 2; }
.hero-rest { order: 3; }
.hero-intro, .hero-rest { min-width: 0; }
.hero-rest { margin-top: 1.35rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lake);
}
h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.6rem, 8vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 1rem 0 1rem;
  max-width: 11em;
}
h1 em { font-style: italic; font-weight: 500; }
.lede {
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.3rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.fine, .globe-caption, .panel-fine {
  color: var(--faint);
  font-size: 0.92rem;
  margin: 0;
  max-width: 40rem;
}
.stage { margin-top: 0.35rem; min-width: 0; }
.globe-well {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  background: transparent;
  border: 0;
  box-shadow: none;
  touch-action: none;
}
#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pin-layer { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.45rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1c1e24;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.pin[hidden] { display: none; }
.pin-code {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px #fff, 0 0 8px #fff, 0 1px 0 #fff;
}
.pin-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pin.is-selected .pin-code { color: #1a6ff2; }
.globe-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.globe-controls .btn { min-height: 44px; padding: 0.55rem 0.9rem; }
.globe-caption { margin-top: 0.75rem; }
.ground {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}
.ground-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: center;
}
.ground-row b { font-size: 0.92rem; grid-row: 1 / span 2; }
.ground-row span { color: var(--faint); font-size: 0.82rem; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.08);
  grid-column: 2;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.bar.lake i { background: var(--lake); width: 31%; }
.bar.long i { background: var(--ink); width: 100%; }
.ground-meta { grid-column: 2; }
.route-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.pick {
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem 0.8rem;
  min-height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.pick.is-prefer { border-color: color-mix(in srgb, var(--lake) 45%, var(--line)); }
.pick[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pick-code {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pick-name { display: block; font-weight: 700; margin-top: 0.2rem; }
.pick-meta { display: block; color: var(--faint); font-size: 0.82rem; }
section { padding: 1.2rem 0; }
.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.section-intro {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--muted);
}
.grid-3, .grid-2, .board { display: grid; gap: 0.9rem; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.2rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.35rem;
}
.date {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.2rem 0 0.55rem;
}
.card p { margin: 0.35rem 0 0; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pill-lake { background: var(--lake-soft); color: var(--lake); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-ink { background: var(--ink); color: var(--paper); }
.thesis {
  padding: 1.4rem 1.2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: var(--paper);
}
.thesis .section-kicker { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.thesis p { margin: 0; font-size: 1.12rem; max-width: 46rem; }
.airport { display: flex; flex-direction: column; gap: 0.8rem; }
.airport header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.code {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.stat {
  display: flex;
  gap: 1.25rem;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
}
.stat li { min-width: 0; }
.stat b, .ground-stats b { display: block; font-size: 1rem; }
.stat span, .ground-stats span { color: var(--faint); font-size: 0.82rem; }
.airport-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.windows { display: grid; gap: 0.9rem; }
.cheapest-callout {
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: var(--lake-soft);
  border: 1px solid color-mix(in srgb, var(--lake) 28%, transparent);
}
.cheapest-callout p { margin: 0.35rem 0 0; color: var(--muted); max-width: 42rem; }
.cheapest-callout strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.window { padding: 1.15rem; }
.window.cheapest { border-color: color-mix(in srgb, var(--lake) 42%, var(--line)); }
.window-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.window h3 { margin: 0; font-size: 1.35rem; }
.pair, .route-col { display: grid; gap: 0.65rem; }
.route-col-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.route-col h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.fare-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  padding: 0.95rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, var(--paper-2));
  cursor: pointer;
}
.fare-slot:hover { border-color: var(--line-strong); }
.fare-sq { background: var(--brand-soft); border-color: transparent; }
.slot-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.price {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.price-quiet {
  font-size: 1.2rem;
  color: var(--muted);
}
.carrier, .stops, .hsbc-note, .awaiting {
  font-size: 0.92rem;
  color: var(--muted);
}
.hsbc-note { color: var(--brand); font-weight: 650; }
.fare-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.text-link, .fare-links a, .note a, .term a, .sq a, .panel-ground a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.text-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.fare-links a:hover, .text-link:hover, .note a:hover, .term a:hover, .sq a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.note { margin-top: 0.85rem; color: var(--muted); font-size: 0.95rem; }
.sq {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: var(--brand-soft);
}
.sq p { margin: 0.35rem 0 0; color: var(--muted); }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: color-mix(in srgb, var(--paper) 70%, var(--ink) 6%);
  padding: 0.08rem 0.38rem;
  border-radius: 6px;
}
.board-card.is-epfl { border-color: color-mix(in srgb, var(--lake) 35%, var(--line)); }
.board-card .price { margin-top: 0.35rem; }
.skel {
  height: 0.7rem;
  width: 72%;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, rgba(20, 23, 28, 0.05), rgba(20, 23, 28, 0.05) 6px, rgba(20, 23, 28, 0.1) 6px, rgba(20, 23, 28, 0.1) 12px);
}
.terms { display: grid; gap: 0.9rem; }
.term { padding: 1.25rem 1.15rem 1.3rem; }
.term-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--faint);
  font-size: 1rem;
}
.term h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-top: 0.15rem; }
.term ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.term li { margin: 0.45rem 0; }
.term li strong { color: var(--ink); font-weight: 700; }
footer { padding: 2rem 0 3rem; color: var(--faint); font-size: 0.92rem; }
footer .wrap {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .hero { padding: 1.8rem 0 1rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1.15fr 0.85fr; }
  .pair { grid-template-columns: 1fr 1fr; align-items: start; }
  .board { grid-template-columns: 1.1fr 1.1fr 0.9fr; }
  .window { padding: 1.3rem 1.35rem; }
  .term { padding: 1.5rem 1.5rem 1.55rem; }
}
@media (min-width: 960px) {
  .wrap, .nav-inner { width: min(var(--max), calc(100% - 4rem)); }
  section { padding: 1.6rem 0; }
  .hero { padding: 3.2rem 0 1.2rem; }
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 2.4rem;
    align-items: start;
  }
  .hero-copy { display: block; }
  .hero-intro, .stage, .hero-rest { order: 0; }
  .hero-rest { margin-top: 1.2rem; }
  .stage { margin-top: 0; }
  .globe-well { aspect-ratio: 1 / 0.98; }
}

/* Fare cards and SQ board */

.fare {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 55%, var(--paper-2));
  min-width: 0;
}
.fare .price {
  margin: 0.2rem 0 0.15rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.fare .carrier { margin: 0; font-size: 0.92rem; color: var(--muted); }


  .airport-fare {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
  }
  .airport-fare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .airport-fare-head h4 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .fare-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .fare-cash {
    background: var(--paper-2);
  }
  .fare-cash .fare-kicker { color: var(--lake); }
  .fare-sq {
    background: var(--brand-soft);
    border-color: transparent;
  }
  .fare-sq .fare-kicker { color: var(--brand); }
  .fare .price {
    font-size: clamp(1.55rem, 2.8vw, 2.25rem);
    line-height: 1.05;
  }
  .fare .price-absent {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    line-height: 1.15;
    max-width: 12em;
  }
  .hsbc {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
  }
  .fare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
  }
  .fare-actions .btn {
    min-height: 44px;
    padding: 0.6rem 0.95rem;
    font-size: 0.95rem;
  }
  .fare a.btn {
    margin-top: 0;
    color: inherit;
    text-decoration: none;
  }
  .fare a.btn:hover { text-decoration: none; }
  .fare a.btn-primary { color: var(--brand-ink); }
  .fare[data-route-open],
  .sq-slot[data-route-open] { cursor: pointer; }
  .fare.is-selected,
  .sq-slot.is-selected {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
  .sq-board-banner {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1.25rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    background: var(--paper-2);
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .sq-board-other { margin-top: 1.35rem; }
  .sq-board-primary,
  .sq-board-secondary { display: grid; gap: 0.9rem; }
  .sq-slot {
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 1.1rem 1.1rem 1.15rem;
    min-width: 0;
  }
  .sq-slot[data-tier="epfl"] {
    border-style: solid;
    border-color: color-mix(in srgb, var(--lake) 42%, var(--line));
    box-shadow: var(--shadow);
    background: var(--lake-soft);
  }
  .sq-slot[data-tier="secondary"] {
    background: color-mix(in srgb, var(--paper) 35%, var(--paper-2));
  }
  .sq-slot[data-status="live"] {
    border-style: solid;
    border-color: color-mix(in srgb, var(--lake) 42%, var(--line));
    background: var(--paper-2);
  }
  .sq-slot[data-tier="epfl"][data-status="live"] {
    background: var(--lake-soft);
  }
  .sq-slot[data-tier="epfl"][data-status="absent"] {
    border-style: solid;
    border-color: color-mix(in srgb, var(--warn) 55%, var(--line));
    background: var(--warn-soft);
    box-shadow: var(--shadow);
  }
  .sq-slot[data-status="absent"] .sq-slot-price {
    color: var(--warn);
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    line-height: 1.12;
  }
  .sq-slot[data-headline="europe"] {
    border-style: solid;
    border-color: color-mix(in srgb, var(--warn) 55%, var(--line));
    background: var(--warn-soft);
  }
  .ch-callout-follow { margin-top: 1.15rem; }
  .ch-callout {
    margin: 0 0 1rem;
    padding: 1rem 1.15rem 1.05rem;
    border-radius: var(--radius);
    background: var(--warn-soft);
    border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  }
  .ch-callout p { margin: 0.35rem 0 0; color: var(--muted); max-width: 46rem; }
  .ch-callout strong {
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.25rem, 2.6vw, 1.55rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .not-ch {
    margin: 0.35rem 0 0;
    color: var(--warn);
    font-weight: 700;
    font-size: 0.92rem;
  }
  .sale-promos {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
  }
  .sale-promos li {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--muted);
  }
  .sale-promos strong { color: var(--ink); }
  .source-links { margin: 0 0 1.15rem; }
  .sq-board-banner { max-width: 100%; white-space: normal; }
  .sq-slot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .sq-slot h3 {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    margin: 0.45rem 0 0;
  }
  .sq-slot-code {
    font-family: var(--serif);
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    line-height: 0.9;
  }
  .sq-slot-price {
    margin: 0.35rem 0 0.15rem;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .sq-slot[data-status="waiting"] .sq-slot-price { color: var(--faint); }
  .sq-slot-meta { margin: 0.2rem 0 0; color: var(--muted); }
  .sq-board-secondary .sq-slot-price,
  .sq-board-sale .sq-slot-price { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
  .fare-compare { margin: 0.45rem 0 0; display: grid; gap: 0.55rem; }
  .fare-compare dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .fare-compare dd {
    margin: 0.12rem 0 0;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
  .fare-compare dd.sample-missing,
  .fare-compare dd.scout-note {
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--muted);
  }
  .promo-window {
    margin: 0.85rem 0 1.1rem;
    display: grid;
    gap: 0.7rem;
  }
  .promo-window div { margin: 0; min-width: 0; }
  .promo-window dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .promo-window dd {
    margin: 0.12rem 0 0;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .promo-window .window-source {
    margin-top: 0.15rem;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
  }
  .slot-waiting { color: var(--warn); font-weight: 700; }
  .promo-slot { margin-top: 0.45rem; }
  .travel-window {
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
  }
  .travel-window li {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
  }
  .travel-window b { color: var(--ink); }
  @media (min-width: 720px) {
    .promo-window { grid-template-columns: repeat(3, 1fr); }
  }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  @media (min-width: 720px) {
    .sq-board-primary { grid-template-columns: 1fr 1fr; }
    .sq-board-secondary, .sq-board-sale { grid-template-columns: 1fr 1fr; }
    .sale-promos { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 960px) {
    .sq-board-secondary { grid-template-columns: repeat(4, 1fr); }
    .sq-board-sale { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 1100px) {
    .sq-board-sale { grid-template-columns: repeat(3, 1fr); }
  }

/* Route detail drawer */

  .window-top { flex-wrap: wrap; align-items: center; }
  .window-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
  }
  .stop-select,
  .fare-detail,
  .window-detail,
  .panel-pill,
  .panel-swap,
  .panel-close {
    font: inherit;
    cursor: pointer;
  }
  .stop-select {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.2rem 0.35rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
  }
  .stop-select:hover,
  .stop-select.is-selected { background: var(--brand-soft); }
  .fare-detail,
  .window-detail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0.1rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  }
  .fare-detail:hover,
  .window-detail:hover,
  .fare-detail[aria-expanded="true"],
  .window-detail[aria-expanded="true"] { color: var(--brand); }
  .fare.is-selected,
  .window.is-selected,
  .airport.is-selected {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
    box-shadow: var(--shadow), 0 0 0 3px var(--brand-soft);
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  html.panel-open,
  html.panel-open body { overflow: hidden; }
  .panel-root {
    position: fixed;
    inset: 0;
    z-index: 40;
  }
  .panel-root[hidden] { display: none !important; }
  .panel-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: color-mix(in srgb, var(--ink) 46%, transparent);
  }
  .panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, 100%);
    background: var(--paper-2);
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .panel-grab {
    width: 2.5rem;
    height: 0.28rem;
    margin: 0.7rem auto 0.15rem;
    border-radius: 999px;
    background: var(--line-strong);
    flex: none;
  }
  .panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem 0.85rem 1.15rem;
  }
  .panel-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
  }
  .panel-kicker-row .section-kicker { margin: 0; }
  .panel-head h2 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.85rem, 4vw, 2.45rem);
  }
  .panel-close {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    line-height: 1;
    flex: none;
  }
  .panel-close span { font-size: 1.45rem; }
  .panel-close:hover { border-color: var(--ink); }
  .panel-body {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    padding: 0 1.15rem 1rem;
  }
  .panel-switches { display: grid; gap: 0.5rem; margin-bottom: 0.9rem; }
  .switch-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .panel-pill {
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-weight: 650;
  }
  .panel-pill[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .panel-stack { display: grid; gap: 0.75rem; }
  .panel-card {
    background: color-mix(in srgb, var(--paper) 72%, var(--paper-2));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem 1rem;
  }
  .panel-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .panel-price {
    margin: 0.65rem 0 0.15rem;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .fact-list {
    display: grid;
    grid-template-columns: minmax(6.6rem, auto) minmax(0, 1fr);
    gap: 0.45rem 0.75rem;
    margin: 0.85rem 0 0;
  }
  .fact-list dt {
    margin: 0;
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .fact-list dd { margin: 0; font-weight: 650; }
  .panel-note,
  .panel-meta { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.95rem; }
  .panel-meta { color: var(--faint); }
  .panel-time {
    margin: 0.15rem 0 0;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .panel-links { display: grid; gap: 0.55rem; margin-top: 0.85rem; }
  .panel-maps { width: 100%; }
  .panel-campus {
    justify-self: start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    font-weight: 700;
    text-underline-offset: 0.18em;
  }
  .panel-swap {
    width: 100%;
    margin-top: 0.85rem;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    color: var(--ink);
    font-weight: 650;
    text-align: left;
  }
  .panel-swap:hover { border-color: var(--ink); }
  .promo { margin-top: 0.85rem; }
  .promo p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
  .promo strong { color: var(--ink); }
  .promo a, .panel-note a {
    color: var(--brand);
    font-weight: 700;
    text-underline-offset: 0.18em;
  }
  .panel-terms {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.35rem;
    color: var(--brand);
    font-weight: 700;
    text-underline-offset: 0.18em;
  }
  .panel-foot {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 35%, var(--paper-2));
  }
  .panel-propose {
    margin: 0;
    color: var(--faint);
    font-size: 0.88rem;
  }
  .panel-foot .btn { width: 100%; white-space: normal; text-align: center; }
  @media (min-width: 720px) {
    .panel-backdrop { background: color-mix(in srgb, var(--ink) 24%, transparent); }
    .panel-grab { display: none; }
    .panel {
      top: 1rem;
      right: 1rem;
      bottom: 1rem;
      left: auto;
      width: min(26.5rem, calc(100% - 2rem));
      max-height: none;
      border-radius: 22px;
      border-bottom: 1px solid var(--line);
    }
    .panel-head { padding-top: 1.05rem; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .panel { animation: epfl-sheet-in 220ms ease; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 720px) {
    .panel { animation-name: epfl-bar-in; }
  }
  @keyframes epfl-sheet-in {
    from { transform: translateY(1.1rem); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes epfl-bar-in {
    from { transform: translateX(1.1rem); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
