/* Turnleft Fares: one stylesheet, mobile first. Strict monochrome: white and near-black, greys
   only for secondary text and hairlines. Dark mode is the same page inverted, from
   prefers-color-scheme (tokens on :root). One typeface, Inter (OFL), self-hosted in /fonts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
    url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #525252; /* secondary text */
  --ink-3: #737373; /* tertiary text, still 4.7:1 on white */
  --rule: #e5e5e5; /* hairlines */
  --hover: #f5f5f5;
  --backdrop: rgba(10, 10, 10, 0.32);

  /* globe (read by globe.js) */
  --globe-sphere: #ffffff;
  --globe-land: #b5b5b5;
  --globe-graticule: #ededed;
  --globe-rim: #0a0a0a;
  --globe-arc: #0a0a0a;
  --globe-expired: #b0b0b0;
  --globe-free: #c2410c; /* the one accent: today's free fares on the globe */
  --globe-member: #cfcfcf; /* member-only routes, faint */
  --globe-dot: #0a0a0a;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --tap: 44px;
  /* Two button heights: --btn for everyday buttons, --btn-lg for the main calls to action. */
  --btn: 44px;
  --btn-lg: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0a0a0a;
    --ink: #f5f5f5;
    --ink-2: #a3a3a3;
    --ink-3: #8a8a8a;
    --rule: #262626;
    --hover: #141414;
    --backdrop: rgba(0, 0, 0, 0.6);

    --globe-sphere: #0a0a0a;
    --globe-land: #5c5c5c;
    --globe-graticule: #1c1c1c;
    --globe-rim: #e5e5e5;
    --globe-arc: #f5f5f5;
    --globe-expired: #5a5a5a;
    --globe-free: #fb923c;
    --globe-member: #3d3d3d;
    --globe-dot: #f5f5f5;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 56px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss03"; /* single-storey a, round quotes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

.num,
.fare__usd,
.sub--short,
.status-toggle__n,
.board__count,
.hero__stat,
.fare__detail dd {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Text links and text buttons */
.link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn);
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--lg {
  min-height: var(--btn-lg);
  padding: 0 24px;
  font-size: 15px;
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- Header ----------------------------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  gap: 4px;
  margin-right: -10px;
}

.topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

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

/* "Join" (home page): phones only, where the hero's buttons have scrolled away quickly. */
.topbar__nav a.topbar__join {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar__nav a.topbar__join[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .topbar__nav a.topbar__join {
    display: none;
  }
}

/* -- Request a feature (dialog) ---------------------------------------------------------- */
.request {
  width: min(480px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 2 * var(--gutter));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
}

.request::backdrop {
  background: var(--backdrop);
}

.request__form {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.request__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.request__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.request__close {
  min-height: var(--tap);
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

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

.request__lead {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.request__label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.request__opt {
  color: var(--ink-3);
  font-weight: 400;
}

.request__input {
  width: 100%;
  min-height: var(--tap);
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--ink-3); /* 3:1 or better against the page, both themes */
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* no zoom-on-focus in iOS Safari */
}

.request__input:focus {
  border-color: var(--ink);
  outline: none;
}

.request__input:disabled {
  color: var(--ink-3);
}

.request__input--area {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.request__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request__status {
  min-height: 1.45em;
  margin: -6px 0 12px;
  color: var(--ink-2);
  font-size: 14px;
}

.request__status.is-error {
  color: var(--ink);
  font-weight: 500;
}

.request__foot {
  display: flex;
  justify-content: flex-end;
}

/* Phones: "Request a feature" is a bottom sheet like the filters, scrolling inside itself, so
   the keyboard never pushes the fields off screen. */
@media (max-width: 599px) {
  dialog.request:not(.paywall-dialog) {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    overflow-y: auto;
    border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* -- Hero ------------------------------------------------------------------------------- */
.hero {
  padding: 40px 0 8px;
}

.hero__grid {
  display: grid;
  gap: 28px;
}

.hero h1 {
  max-width: 15em;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

/* "A friend sent you." over the hero on /?ref=1 (lib/home.js withReferralBanner). */
.hero__ref {
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.hero__pitch {
  max-width: 32em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__stat {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

/* Two calls to action: today's free fares, and membership. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 20px;
}

.hero__actions .btn {
  white-space: normal;
  text-align: center;
}

.hero__actions .btn[hidden] {
  display: none;
}

/* Phones: the globe comes after the fares (index.html order), in a band of its own. */
.globe-band {
  padding: 0 0 40px;
}

.globe {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.globe__stage {
  position: relative;
  aspect-ratio: 1 / 1;
}

/* A hairline sphere while the globe's scripts load (and behind the fallback text), so the stage
   is never an empty box; the canvas paints over it. */
.globe__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--rule);
  stroke-width: 0.4;
}

.globe__placeholder circle {
  stroke: var(--ink-3);
  stroke-width: 0.3;
}

#globe-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

#globe-canvas.is-dragging {
  cursor: grabbing;
}

#globe-canvas.is-pointing {
  cursor: pointer;
}

#globe-canvas:focus-visible {
  outline-offset: -2px;
  border-radius: 50%;
}

.globe__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 14px;
}

.globe__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

.globe__pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  color: var(--ink);
}

.globe__fallback[hidden],
.globe__pick[hidden] {
  display: none;
}

.globe-key {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin: 0 6px 3px 0;
  vertical-align: middle;
}

.globe-key--free {
  height: 3px;
  background: var(--globe-free);
}

.globe-key--member {
  margin-left: 4px;
  background: var(--globe-member);
}

.globe__hint[hidden] {
  display: none;
}

/* -- Fares board ------------------------------------------------------------------------ */
.board {
  padding: 32px 0 56px;
}

.board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.board__head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.board__count {
  color: var(--ink-3);
  font-size: 14px;
}

.board__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* US$ / A$: two quiet text toggles; the active one is black and underlined. */
.currency {
  display: inline-flex;
  margin-right: -8px;
}

.currency[hidden] {
  display: none;
}

.currency__opt {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

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

.currency__opt[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Search + filters */
.controls {
  margin-top: 16px;
}

.controls__bar {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

#q {
  flex: 1;
  min-width: 0;
  height: var(--tap);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 16px; /* no zoom on iOS */
  appearance: none;
  -webkit-appearance: none;
}

#q::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

#q:focus {
  outline: none;
  border-bottom-width: 2px;
}

#q:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

#q::-webkit-search-decoration {
  -webkit-appearance: none;
}

.controls__toggle {
  flex: none;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.controls__toggle [hidden] {
  display: none;
}

/* Filter sheet: a bottom sheet on phones, an inline row on wide screens. */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-height: 85vh;
  overflow-y: auto;
  padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--ink);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}

.sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.2s ease;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--backdrop);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet__head h3 {
  font-size: 15px;
  font-weight: 600;
}

.sheet__close {
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet__fields {
  display: grid;
  gap: 4px;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.field label {
  color: var(--ink-3);
  font-size: 14px;
}

.field select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 22px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field select:focus-visible {
  outline: none;
}

.field:focus-within {
  border-bottom-color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.field select option {
  background: var(--bg);
  color: var(--ink);
}

/* Chevron: two hairlines, no image. */
.field::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.25px solid var(--ink-2);
  border-bottom: 1.25px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Text, number and date inputs in the filters: a hairline underneath, like the search. */
.field--input::after,
.field--check::after {
  display: none;
}

.field--input input,
.when__range input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* no zoom on iOS */
  appearance: none;
  -webkit-appearance: none;
}

.field--input input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.field--input input:focus-visible,
.when__range input:focus-visible,
.field--check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* "Live only": a checkbox, then its label. */
.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 48px;
}

.field--check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.field--check label {
  color: var(--ink);
}

/* When: the next 12 departure months as toggles (several at once), or a date range. */
.when {
  min-width: 0;
  margin: 12px 0 0;
}

.when__label {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}

.when__months {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.when__range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
}

.when__range input {
  flex: 1 1 9rem;
  width: auto;
  height: var(--tap);
  border-bottom: 1px solid var(--rule);
}

.active__summary {
  min-width: 0;
  color: var(--ink-2);
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* Free visitors with a date, airport, city or price filter on: one line counting the
   member-only fares that fit the region and cabin. */
.members-note {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
}

.members-note .link {
  min-height: 0;
  font-weight: 500;
}

.sheet__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.sheet__foot .btn {
  flex: 1;
}

/* Status: a row of text toggles with a small square, filled when on. */
/* Phones: one line that scrolls sideways inside itself (never the page). */
.statuses {
  display: flex;
  column-gap: 20px;
  margin: 8px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.statuses[hidden] {
  display: none !important;
}

.statuses::-webkit-scrollbar {
  display: none;
}

.status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 14px;
  white-space: nowrap;
}

.status-toggle::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
}

.status-toggle[aria-pressed="true"] {
  color: var(--ink);
}

.status-toggle[aria-pressed="true"]::before {
  background: currentColor;
}

.status-toggle__n {
  color: var(--ink-3);
}

.active {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
}

.active[hidden] {
  display: none;
}

.notice {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

/* -- The fares table ---------------------------------------------------------------------
   Phones: two lines per fare (route + price; airline · cabin · dates · status).
   900px and up: a real grid of columns under a sticky header. */
.table {
  margin-top: 16px;
  border-top: 1px solid var(--ink);
}

.thead {
  display: none;
}

.fare {
  border-bottom: 1px solid var(--rule);
}

.fare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 14px;
  grid-template-areas:
    "route disc price toggle"
    "meta  meta meta  meta";
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  border: 0;
  background: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.fare__row:focus-visible {
  outline-offset: -2px;
}

.c-route {
  grid-area: route;
  min-width: 0;
}

.fare__codes {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fare__arrow {
  font-weight: 400;
  color: var(--ink-3);
}

.c-route .sub {
  display: none;
}

/* Every item starts with a separator; the meta line is shifted left by one separator and
   clipped, so no line ever starts with a dot when it wraps. */
.fare__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  margin-left: -14px;
  clip-path: inset(0 0 0 14px);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.fare__meta > .c-status--none {
  display: none;
}

.fare__meta > span::before {
  content: "·";
  display: inline-block;
  width: 14px;
  color: var(--ink-3);
  text-align: center;
}

.fare__meta .sub {
  display: none;
}

.c-price {
  display: contents;
}

.fare__usd {
  grid-area: price;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.c-price .sub {
  grid-area: disc;
  color: var(--ink-3);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.sub--long {
  display: none;
}

.c-toggle {
  grid-area: toggle;
  position: relative;
  align-self: start;
  width: 14px;
  height: 22px;
}

/* A plus that becomes a minus. */
.fare__row .c-toggle::before,
.fare__row .c-toggle::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 11px;
  height: 1px;
  background: var(--ink-2);
}

.fare__row .c-toggle::after {
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}

.fare.is-open .c-toggle::after {
  transform: rotate(0deg);
}

.st--live {
  color: var(--ink);
  font-weight: 600;
}

.st--price_up,
.st--price_down {
  color: var(--ink);
}

.st--unverified,
.st--expired {
  color: var(--ink-3);
}

.fare.is-expired .fare__codes,
.fare.is-expired .fare__cities,
.fare.is-expired .fare__meta,
.fare.is-expired .fare__usd {
  color: var(--ink-3);
}

.fare.is-expired .fare__usd {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

@media (hover: hover) {
  .fare__row:hover {
    background: var(--hover);
  }

  .fare__row:hover .c-toggle::before,
  .fare__row:hover .c-toggle::after {
    background: var(--ink);
  }
}

/* Detail */
.fare__detail {
  padding: 4px 0 28px;
}

.detail__grid {
  display: grid;
  gap: 20px;
}

.fare__detail h4 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fare__detail dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.fare__detail dt {
  color: var(--ink-3);
}

.fare__detail dd {
  min-width: 0;
}

.fare__detail .note {
  margin-left: 8px;
  color: var(--ink-3);
}

.fare__detail .note--block {
  display: block;
  margin-left: 0;
}

.detail__notes {
  margin-top: 20px;
}

.detail__notes ul {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.detail__notes li {
  position: relative;
  padding: 2px 0 2px 16px;
}

.detail__notes li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

/* Right under the row that was opened: book first, details after. */
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 4px 0 20px;
}
.detail__teaser { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted, #555); }

/* Empty, no-match and error states */
.empty {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.empty h3 {
  font-size: 17px;
  font-weight: 600;
}

.empty p {
  margin-top: 4px;
  color: var(--ink-2);
}

.empty .link {
  margin-top: 4px;
}

/* -- Footer ----------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule);
}

.footer__inner {
  padding-top: 24px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  color: var(--ink-3);
  font-size: 14px;
}

/* Footer links: a 44px tall target each, on every screen. */
.footer__legal a,
.footer__guides a {
  display: inline-block;
  padding: 12px 0;
}

.footer__request .link {
  color: var(--ink-2);
}

.footer p + p {
  margin-top: 2px;
}

/* -- Larger phones and tablets ---------------------------------------------------------- */
@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__pitch {
    font-size: 17px;
  }

  .sheet {
    left: 50%;
    right: auto;
    width: 560px;
    margin-left: -280px;
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
  }

  .fare__meta {
    font-size: 14px;
  }
}

/* -- Desktop ---------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }

  .topbar__inner {
    height: 64px;
  }

  .hero {
    padding: 48px 0 24px;
  }

  /* The globe band shares the hero's grid row and columns: it comes after the fares in the
     page (phones see the fares first), but sits beside the hero text from 900px up. */
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero,
  .globe-band {
    grid-row: 1;
    grid-column: 1;
  }

  .hero {
    display: flex;
    align-items: center;
  }

  .globe-band {
    align-self: center;
    padding: 48px 0 24px;
    pointer-events: none;
  }

  .hero__grid,
  .globe-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 48px;
    align-items: center;
  }

  .globe-band .globe {
    grid-column: 2;
    pointer-events: auto;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(38px, 3.6vw, 52px);
  }

  .globe {
    max-width: 500px;
    margin: 0 0 0 auto;
  }

  .hero__text {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .board {
    padding-top: 40px;
  }

  .board__head h2 {
    font-size: 26px;
  }

  /* The sheet becomes one inline row: search, then quiet label + value selects. */
  .controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 32px;
    margin-top: 20px;
  }

  .controls__bar {
    flex: 1 1 260px;
    max-width: 340px;
  }

  .controls__toggle,
  .sheet__head,
  .sheet__foot,
  .sheet-backdrop {
    display: none !important;
  }

  .sheet {
    position: static;
    left: auto;
    width: auto;
    max-height: none;
    margin: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    background: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .sheet__fields {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
  }

  .field {
    display: inline-flex;
    gap: 8px;
    border: 0;
  }

  .field label {
    font-size: 14px;
  }

  .field:focus-within {
    box-shadow: none;
  }

  .field select:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }

  .field select {
    width: auto;
    field-sizing: content;
    max-width: 13rem;
    height: var(--tap);
    padding-right: 16px;
    font-size: 14px;
    font-weight: 500;
  }

  .field::after {
    right: 2px;
    width: 5px;
    height: 5px;
    margin-top: -4px;
  }

  .statuses {
    flex-basis: 100%;
    flex-wrap: wrap;
    column-gap: 28px;
    margin: 4px 0 0;
    padding: 0;
    overflow: visible;
  }

  .field--input input {
    width: 11rem;
    height: var(--tap);
    font-size: 14px;
    font-weight: 500;
  }

  .field--input input[type="number"] {
    width: 6.5rem;
  }

  .field--check input {
    margin-left: 0;
  }

  .when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 28px;
    margin-top: 4px;
  }

  .when__months {
    flex: 0 1 auto;
    margin: 0;
  }

  .when__range {
    margin-top: 0;
  }

  .when__range input {
    flex: none;
    width: 10rem;
    font-size: 14px;
  }

  /* Columns: Route | Airline | Cabin | Dates | Status | Price | toggle */
  .table {
    --cols: minmax(0, 1.35fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(7rem, 0.8fr) 14px;
    margin-top: 20px;
  }

  .table.is-empty .thead {
    display: none;
  }

  /* Every visible fare unverified: no Status column (it would say "Not re-checked" six times). */
  .table.no-status {
    --cols: minmax(0, 1.35fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(7rem, 0.8fr) 14px;
  }

  .table.no-status .thead .c-status,
  .table.no-status .fare__meta > .c-status {
    display: none;
  }

  .thead {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: var(--cols);
    column-gap: 24px;
    align-items: center;
    height: 44px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
  }

  .thead > span {
    grid-area: auto;
    min-width: 0;
  }

  .thead .c-price {
    display: block;
    text-align: right;
  }

  .thead__sort {
    min-height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
  }

  .thead__sort:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .fare__row {
    grid-template-columns: var(--cols);
    grid-template-areas: none;
    column-gap: 24px;
    min-height: 68px;
    padding: 14px 0;
    align-items: start;
  }

  .fare__row .c-route,
  .fare__row .c-toggle,
  .fare__usd,
  .c-price .sub {
    grid-area: auto;
  }

  .sub--short {
    display: none;
  }

  .sub--long {
    display: inline;
  }

  .c-route .sub,
  .fare__meta .sub {
    display: block;
  }

  .fare__meta {
    display: contents;
    font-size: 15px;
  }

  .fare__meta > span::before {
    content: none;
  }

  .fare__meta > span,
  .fare__meta > .c-status--none,
  .fare__row .c-route,
  .fare__row .c-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
  }

  .fare__meta > span .main,
  .fare__row .c-route .main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sub,
  .c-price .sub {
    margin-top: 1px;
    overflow: hidden;
    color: var(--ink-3);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fare__codes,
  .fare__usd {
    font-size: 15px;
  }

  .fare__row .c-price {
    align-items: flex-end;
  }

  .fare.is-expired .fare__meta > span,
  .fare.is-expired .fare__row .c-route {
    color: var(--ink-3);
  }

  .c-toggle {
    height: 22px;
  }

  .fare__detail {
    padding: 4px 0 32px;
  }

  .detail__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  /* Wide screens: the route on one line across the full width, above the three blocks. */
  .detail__block--route {
    grid-column: 1 / -1;
  }

  .detail__notes {
    max-width: 52rem;
    margin-top: 24px;
  }
}

@media (min-width: 1200px) {
  .hero,
  .globe-band {
    padding: 64px 0 32px;
  }

  .globe {
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .sheet.is-open,
  .c-toggle::after {
    transition: none;
  }
}

/* "Show more" under the first page of rows */
.more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--ink-3);
  font-size: 14px;
}

.more .link {
  font-weight: 500;
}

/* == Membership ===============================================================================
   Locked fares, the pricing panel (section + dialog), the phones' sticky bar, the digest form
   and the account pages. Same tokens, same type scale, still no colour. */

/* Header: Sign in / Account sits beside "Request a feature". */
.topbar__nav a.topbar__account {
  color: var(--ink);
  font-weight: 500;
}

/* Narrow phones: Fares, Join and Sign in; About is in the footer too. */
@media (max-width: 440px) {
  .topbar__nav a[href="/#about"] {
    display: none;
  }
}

.eyebrow {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.btn--block {
  width: 100%;
}

/* -- Free visitors: member-only fares ------------------------------------------------------
   The rows are made-up stand-ins (the server sends nothing about these fares); the blur is
   presentation only. The whole row is one button that opens the pricing dialog. */
.fare.is-blurred .fare__row {
  cursor: pointer;
}

.fare.is-blurred .fare__row * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* What the server sends (region to region, cabin, discount band) reads plainly; the airline,
   dates and price are empty bars, blurred. */
.fare.is-blurred .is-ph {
  filter: blur(3px);
}

.fare.is-blurred .bar {
  display: inline-block;
  width: 6.5em;
  height: 0.8em;
  border-radius: 2px;
  background: var(--ink-3);
  opacity: 0.45;
  vertical-align: middle;
}

.fare.is-blurred .bar--w1 {
  width: 5em;
}

.fare.is-blurred .bar--w2 {
  width: 7.5em;
}

.fare.is-blurred .bar--w3 {
  width: 4.5em;
}

.fare.is-blurred .bar--price {
  width: 4.2em;
  height: 0.9em;
  background: var(--ink);
  opacity: 0.35;
}

.fare__regions {
  font-size: 16px;
  font-weight: 600;
}

.fare.is-blurred .fare__band {
  color: var(--ink-2);
}

.fare.is-blurred .fare__meta {
  clip-path: none; /* the blur needs room */
}

.fare.is-blurred .c-toggle::before,
.fare.is-blurred .c-toggle::after {
  content: none;
}

/* Between the free fares and the member-only ones. */
.members-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.members-cta__head {
  max-width: 24em;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variant-numeric: tabular-nums;
}

.members-cta__lead {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15px;
}

.members-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.members-cta__founding {
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.members-cta__founding[hidden] {
  display: none;
}

.members-head {
  padding: 18px 0 4px;
}

.members-head__count {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.members-head__note {
  color: var(--ink-3);
  font-size: 14px;
}

.members-more {
  border-top: 0;
}

.paywall-dialog .digest--inline {
  margin-top: 20px;
}

/* -- Pricing --------------------------------------------------------------------------------- */
.membership {
  padding: 8px 0 64px;
}

.membership[hidden] {
  display: none;
}

.membership__head {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.membership__head h2 {
  max-width: 16em;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.membership__lead {
  max-width: 34em;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
  text-wrap: pretty;
}

#pricing-panel {
  margin-top: 28px;
}

.pricing {
  display: grid;
  gap: 28px;
}

.pricing__benefits {
  border-top: 1px solid var(--rule);
}

.pricing__benefits li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

/* A small filled square, the same mark as the status toggles. */
.pricing__benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.pricing__proof {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pricing__proof[hidden] {
  display: none;
}

.plans {
  display: grid;
  gap: 10px;
}

.plan {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.plan:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.plan:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.plan input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}

.plan input:checked {
  background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px);
}

.plan input:focus-visible {
  outline: none;
}

.plan__body {
  display: grid;
  flex: 1;
  min-width: 0;
  row-gap: 2px;
}

.plan__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__name {
  font-size: 15px;
  font-weight: 600;
}

.plan__tag {
  padding: 1px 6px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan__price {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan__was {
  color: var(--ink-3);
  font-size: 17px;
  font-weight: 400;
  text-decoration-thickness: 1px;
}

.plan__unit {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan__note {
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pricing__founding {
  margin-top: 14px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pricing__founding strong {
  font-weight: 600;
}

.pricing__left {
  display: block;
  color: var(--ink-2);
}

.pricing__go {
  margin-top: 18px;
}

.pricing__status {
  min-height: 1.5em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.pricing__status.is-error {
  color: var(--ink);
  font-weight: 500;
}

.pricing__fine {
  color: var(--ink-3);
  font-size: 14px;
}

/* The dialog version: one column, plans first, scrolls inside on short screens. */
.paywall-dialog {
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  overflow-y: auto;
}

.paywall-dialog .pricing {
  gap: 20px;
}

.paywall-dialog .pricing__benefits li {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 14px;
}

.paywall-dialog .pricing__benefits li::before {
  top: 14px;
}

.paywall-dialog .pricing__buy {
  order: -1;
}

.paywall-dialog .request__lead {
  margin-bottom: 16px;
}

/* The button stays in view at the foot of the dialog on short screens and at 200% zoom. */
.paywall-dialog .pricing__go {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 18px -20px 0;
  padding: 12px 20px 4px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

/* -- Sticky bar (phones, free visitors) ------------------------------------------------------ */
.lockbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px env(safe-area-inset-bottom) var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}

.lockbar[hidden] {
  display: none;
}

.lockbar__text {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.lockbar__open,
.lockbar__close {
  min-width: var(--tap);
  min-height: var(--btn-lg);
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--bg);
  font-size: 14px;
}

.lockbar__open {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lockbar__close {
  font-size: 22px;
  line-height: 1;
}

body.has-lockbar .footer__inner {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

/* -- Digest form ---------------------------------------------------------------------------- */
.digest {
  max-width: 30rem;
  margin-bottom: 28px;
}

.digest__label {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.digest__lead {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 13px;
}

.digest__row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.digest__input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.digest__input:focus {
  border-color: var(--ink);
  outline: none;
}

.digest__status {
  min-height: 1.45em;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.digest__status.is-error {
  color: var(--ink);
  font-weight: 500;
}

.digest--inline {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.footer a {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .lockbar {
    display: none !important;
  }

  .members-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px 0 34px;
  }

  .members-cta__head {
    font-size: 22px;
  }

  .members-cta__actions {
    flex-direction: column;
    align-items: flex-end;
    flex: none;
  }

  .membership {
    padding-bottom: 88px;
  }

  .membership__head h2 {
    font-size: 34px;
  }

  #pricing-panel .pricing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 64px;
    align-items: start;
  }
}

/* -- Deal pages (/deal/<id>, rendered by functions/deal/[id].js) ------------------------------- */
.deal__kicker {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.deal__price {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.deal__amount {
  color: var(--ink);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.deal__usual {
  color: var(--ink-2);
  font-size: 15px;
}

.deal__banner {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.deal__facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: 8px 20px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.deal__facts dt {
  color: var(--ink-3);
  font-size: 14px;
}

.deal__facts dd {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.deal__locked {
  color: var(--ink-2);
  font-style: italic;
}

/* Google Flights, then the member button under it: one column, the same width. */
.deal__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.deal__actions .btn {
  min-height: var(--btn-lg);
  font-size: 15px;
}

/* The four steps on a possible mistake fare, and what a price includes: plain boxes. */
.deal__mistake,
.deal__includes {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
}

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

.deal__mistake h2,
.deal__includes h2 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.deal__amount del {
  color: var(--ink-3);
  text-decoration-thickness: 2px;
}

.deal__history,
.deal__note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 14px;
}

.deal__join {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.deal__join h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.deal__join .btn {
  margin-right: 16px;
}

/* -- Route pages (/fares, functions/fares/[[path]].js) ----------------------------------------- */
.route__lead {
  font-size: 17px;
}

.route__chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.route__grid line {
  stroke: var(--rule);
  stroke-width: 1;
}

.route__ticks text {
  fill: var(--ink-3);
}

.route__median {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.route__low {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-linejoin: round;
}

.route__legend {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.route__from {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.route__answer {
  font-size: 17px;
}

.deal__route {
  margin-top: 16px;
}

/* -- Guides (/guides, functions/guides/[[path]].js) --------------------------------------------- */
.doc h3 {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
}

.doc h3 + p {
  margin-top: 6px;
}

.guide__table {
  margin-top: 12px;
  overflow-x: auto;
}

.guide__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.guide__table th,
.guide__table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.guide__table thead th {
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
}

.guide__table tbody th {
  font-weight: 500;
}

.guide__table td {
  color: var(--ink-2);
  white-space: nowrap;
}

.guide__muted {
  color: var(--ink-3);
  font-weight: 400;
}

/* -- The home page's server-rendered free fares (removed by app.js once the table draws) -------- */
.ssr-fares {
  margin: 16px 0 24px;
}

.ssr-fares h3 {
  font-size: 16px;
  font-weight: 600;
}

.ssr-fares__note,
.ssr-fares__more {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
}

.ssr-fares__list {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

/* -- Economy: the home page's section under the board and the /economy page (lib/economy.js) --- */
.econ-section {
  margin: 32px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.econ-section h3 {
  font-size: 16px;
  font-weight: 600;
}

.econ-section__lead,
.econ-section__more,
.doc .econ-count,
.doc .econ-note {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
}

.econ-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.econ-fare {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.doc .econ-fare p,
.econ-fare p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.doc .econ-fare p.econ-fare__route,
.econ-fare p.econ-fare__route {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.econ-fare__route a {
  color: inherit;
}

.doc .econ-fare p.econ-fare__price,
.econ-fare p.econ-fare__price {
  color: var(--ink);
}

.doc .econ-fare p.econ-fare__status,
.econ-fare p.econ-fare__status {
  color: var(--ink-3);
}

.doc .econ-empty {
  margin-top: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.econ-empty[hidden],
.econ-fare[hidden] {
  display: none;
}

/* /economy's filter bar (public/economy-search.js): a "Filter" button on phones that opens the
   fields in place; from 900px up always open, in one wrapping row like the board's. */
.esearch {
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}

.esearch__toggle {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.esearch__toggle::-webkit-details-marker {
  display: none;
}

.esearch__body {
  padding-bottom: 8px;
}

.doc .esearch__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
}

.esearch__foot .link[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .esearch__toggle {
    display: none;
  }

  .esearch__fields {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
  }
}

.footer__guides a {
  white-space: nowrap;
}

/* Guides: reading text, full ink, a comfortable measure. */
.doc.guide p,
.doc.guide li {
  max-width: 66ch;
  color: var(--ink);
  font-size: 17px;
}

.doc.guide .deal__kicker,
.doc.guide .deal__note {
  font-size: 14px;
  color: var(--ink-3);
}

.guide__digest {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.doc.guide .guide__digest .digest__lead {
  font-size: 15px;
  color: var(--ink-2);
}

/* -- Account, sign-in, welcome and the legal pages ----------------------------------------------- */
.doc {
  max-width: 44rem;
  padding-top: 40px;
  padding-bottom: 72px;
}

.doc--short {
  max-width: 36rem;
}

.doc h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.doc h2 {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.doc p + p,
.doc h1 + p,
.doc h2 + p {
  margin-top: 10px;
}

.doc ul.bullets {
  margin-top: 10px;
}

.doc ul.bullets li {
  position: relative;
  padding: 2px 0 2px 18px;
}

.doc ul.bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

.doc .meta {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.doc .meta--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  overflow-wrap: anywhere;
}

.meta--row .link {
  min-height: 32px;
  font-size: 13px;
}

.panel {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.panel > h2 {
  margin: 0;
}

.panel__lead {
  margin-top: 4px;
}

.kv {
  margin-top: 12px;
}

/* "Your referral link" on /account: the link in a read-only field, the copy button beside it
   (under it on narrow phones). */
.referral {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.referral__link {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.kv > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px;
}

.fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fieldset legend,
.fieldset .label {
  display: block;
  padding: 0;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fieldset .hint {
  margin: 0 0 6px;
  color: var(--ink-3);
  font-size: 14px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--bg);
}

.check input:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.check input:disabled {
  border-color: var(--ink-3);
}

.check input:disabled + span {
  color: var(--ink-3);
}

.check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.text-input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.text-input:focus {
  border-color: var(--ink);
  outline: none;
}

.text-input--short {
  max-width: 12rem;
}

.text-input--area {
  min-height: 0;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

/* /account: the reason step before cancelling. The options stack; the pause and cancel buttons
   share one size (no button is made easier to miss than another). */
.checks--stack {
  flex-direction: column;
}

.check input[type="radio"] {
  border-radius: 50%;
}

.reason .fieldset .label {
  margin-bottom: 6px;
}

.actions--even .btn {
  flex: 1 1 11rem;
}

.membership__notice {
  margin-top: 14px;
  color: var(--ink);
}

/* /gift, /gift/thanks, /gift/redeem (lib/giftpage.js) */
.gift__lead {
  color: var(--ink);
  font-size: 17px;
}

.gift__buy {
  margin-top: 28px;
}

.doc .gift__buy + .hint {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.gift__code {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  user-select: all;
  overflow-wrap: anywhere;
}

.doc .gift__code {
  color: var(--ink);
  font-size: 26px;
}

.gift .signin-form .label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

/* Minimum discount slider: a hairline track, a square thumb. */
.range {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range output {
  min-width: 3.5em;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.range input[type="range"] {
  flex: 1;
  height: var(--tap);
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.range input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--ink);
}

.range input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--ink);
}

.range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--bg);
  appearance: none;
  -webkit-appearance: none;
}

.range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 1px;
  background: var(--bg);
}

.range input[type="range"]:focus-visible {
  outline: none;
}

.range input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Home airports: chips of the chosen ones, a search box, a scrolling list of checkboxes. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chips:empty {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 2px 0 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
}

.chip button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1;
}

.picker__list {
  max-height: 248px;
  margin-top: 6px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.picker__list .check {
  display: flex;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
}

.picker__list .check:last-child {
  border-bottom: 0;
}

.picker__code {
  min-width: 2.6em;
  font-weight: 600;
}

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

.picker__empty {
  padding: 12px;
  color: var(--ink-3);
  font-size: 14px;
}

.form-status {
  min-height: 1.45em;
  color: var(--ink-2);
  font-size: 14px;
}

.form-status.is-error {
  color: var(--ink);
  font-weight: 500;
}

/* E-mail alerts: the switch, where they go, and a note on the sender. */
.alerts__dest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin: 2px 0 10px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.doc .alerts__dest {
  color: var(--ink);
}

.alerts__label {
  color: var(--ink-3);
}

.alerts__email {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.alerts .hint strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* -- Alert preferences editor (/account) ---------------------------------------------------
   Collapsible groups (open on wide screens) whose headers show the current choice; chips for
   regions, alliances, cabins and trips with an "All" chip that resets the group. */
.prefs__summary {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.doc .prefs__summary {
  color: var(--ink);
}

.doc .prefs__lead {
  margin: 10px 0 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.pgroup {
  border-bottom: 1px solid var(--rule);
}

.pgroup:first-of-type {
  border-top: 1px solid var(--rule);
}

.pgroup__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding-right: 24px;
  cursor: pointer;
  list-style: none;
}

.pgroup__head::-webkit-details-marker {
  display: none;
}

/* A chevron that turns when the group opens. */
.pgroup__head::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.25px solid var(--ink-2);
  border-bottom: 1.25px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.pgroup[open] > .pgroup__head::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.pgroup__title {
  flex: none;
  font-size: 15px;
  font-weight: 600;
}

.pgroup__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgroup__body {
  padding: 2px 0 22px;
}

.doc .pgroup__label,
.pgroup__label {
  display: block;
  margin: 14px 0 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.pgroup__body > .pgroup__label:first-child {
  margin-top: 4px;
}

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

.pchip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.pchip:hover {
  border-color: var(--ink-3);
}

.pchip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.pchip--all {
  font-weight: 600;
}

.picker__search {
  margin-top: 2px;
}

.doc .picker__note:empty {
  display: none;
}

.tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.tier__head .pgroup__label {
  margin-bottom: 4px;
}

.tier__head .link {
  min-height: 36px;
  font-size: 13px;
}

.airline-grid {
  display: grid;
  border-top: 1px solid var(--rule);
}

.check.airline {
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}

.airline__text {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.airline__name {
  min-width: 0;
  font-size: 15px;
}

.airline__meta {
  flex: none;
  color: var(--ink-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.doc .pgroup__foot {
  margin-top: 8px;
}

.money {
  display: flex;
  align-items: center;
  gap: 10px;
}

.money__sym {
  color: var(--ink-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.money + .hint {
  margin-top: 8px;
}

/* The guessed home airport, offered before the first save. */
.doc .prefs__guess,
.prefs__guess {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.prefs__guess .link {
  font-size: 14px;
}

/* When: departure date ranges and the school-holidays switch. */
.dates {
  display: grid;
  gap: 8px;
}

.dates__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dates__input {
  flex: 1 1 9.5rem;
  max-width: 12rem;
}

.dates__to {
  color: var(--ink-2);
  font-size: 14px;
}

.dates__remove {
  min-width: var(--tap);
  min-height: var(--tap);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

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

.dates__school {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.prefs__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .airline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .pgroup__body {
    padding-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pgroup__head::after {
    transition: none;
  }
}

.signin-form {
  max-width: 26rem;
  margin-top: 24px;
}

.signin-form .text-input {
  margin-top: 6px;
}

.signin-form .btn {
  margin-top: 12px;
}

/* /signin's two steps; each sits in its own block, so restore the h1 + p spacing. */
.doc .signin-step > p:first-child {
  margin-top: 10px;
}

/* /signin?why=gift: the two steps to redeeming a gift, numbered. */
.doc ol.signin-why {
  margin-top: 12px;
  padding-left: 1.4em;
}

.doc ol.signin-why li {
  padding-left: 4px;
  color: var(--ink);
}

.doc ol.signin-why li + li {
  margin-top: 6px;
}

/* Step 2: the address the code went to, the code itself, "Send a new code". */
.signin-to {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.signin-form .code-input {
  max-width: 13rem;
  min-height: 56px;
  padding: 0 16px;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.signin-form .code-input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.doc .signin-again {
  margin-top: 16px;
  column-gap: 24px;
}

.signin-again .link {
  min-height: var(--tap);
  font-size: 14px;
}

.signin-again .link:disabled {
  color: var(--ink-3);
  cursor: default;
}

@media (min-width: 600px) {
  .doc h1 {
    font-size: 36px;
  }
}

@media (min-width: 900px) {
  .doc {
    padding-top: 56px;
  }
}

/* -- Admin (/admin, rendered by functions/admin.js; owner only) ------------------------------- */
.admin {
  padding-top: 32px;
  padding-bottom: 72px;
}

.admin h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.admin h2 {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.admin__stamp,
.admin__lead {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13px;
}

.admin__error {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  font-size: 14px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  column-gap: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--ink);
}

.tile {
  min-width: 0;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--rule);
}

.tile dt {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tile dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.tile__n {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tile__line {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.queue {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.queue h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.queue__when {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

/* The forums queue: a block per departure region, a draft per venue. */
.queue h4 {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.post--venue {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.post--venue h5 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.queue__done {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.post {
  margin-top: 14px;
}

.post__slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.post__slides--wide {
  grid-template-columns: minmax(0, 520px);
}

.post__slide {
  min-width: 0;
}

.post__card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--hover);
}

/* A card the publisher hasn't rendered yet: an empty frame of the card's shape. */
.post__nocard {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border: 1px dashed var(--rule);
  background: var(--hover);
  color: var(--ink-2);
  font-size: 13px;
}

.post__nocard--square {
  aspect-ratio: 1 / 1;
}

.post__nocard--email {
  aspect-ratio: 16 / 9;
}

.post__card figcaption .post__note {
  display: inline;
}

.post__card figcaption .link,
.post__slide > .link,
.post__copyall .link {
  min-height: 32px;
  font-size: 13px;
}

.post__meta {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.post__note {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 13px;
}

.post__copyall {
  margin-top: 4px;
}

.copy {
  margin-top: 16px;
}

.copy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.copy__head label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.btn--small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.copy__text {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.copy__text:focus {
  border-color: var(--ink);
  outline: none;
}

.copy__text--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.posted {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.posted summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.posted__list li,
.posted p {
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.posted__list .link {
  min-height: 0;
}

.posted__when {
  display: inline-block;
  min-width: 7.5em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* -- Home: the price under the hero, About ----------------------------------------------------- */
.hero__price {
  max-width: 32em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.hero__price[hidden] {
  display: none;
}

.about {
  padding: 8px 0 64px;
}

.about__head {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.about__head h2 {
  max-width: 16em;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about__body {
  max-width: 34em;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
  text-wrap: pretty;
}

.about__body p + p {
  margin-top: 10px;
}

.ssr-fares__members {
  margin-top: 10px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* -- Fare rows on phones: "Sydney (SYD) → London (LHR)"; a long pair wraps after the origin, and
   only a city too long for a line of its own is shortened -------------------------------------- */
.fare__codes {
  display: none;
}

.fare__cities {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.fare__place {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
}

.fare__city {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fare__code {
  flex-shrink: 0;
  color: var(--ink-2);
  font-weight: 400;
  white-space: pre;
}

.fare__cities .fare__arrow {
  flex-shrink: 0;
  white-space: pre;
}

@media (min-width: 900px) {
  .fare__row .c-route .fare__codes {
    display: block;
  }

  .fare__row .c-route .fare__cities {
    display: none;
  }
}

/* -- Member-only rows: the whole row opens the pricing (styles above, .fare.is-blurred) ------ */
.fare.is-blurred {
  cursor: pointer;
}

.footer__legal a[href^="mailto:"] {
  white-space: nowrap;
}

/* The narrowest phones: a long city wraps instead of being cut short with an ellipsis. */
@media (max-width: 359px) {
  .fare__cities {
    white-space: normal;
  }

  .fare__place {
    display: inline;
  }

  .fare__city {
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

/* -- the conversion review: value lines, recently gone, the watch form, the cohort table ------- */

.hero__sub {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.gone {
  margin: 24px 0 8px;
}

.gone h3 {
  font-size: 16px;
  font-weight: 600;
}

.gone__lead {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
}

.gone__list,
.pricing__gone {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.pricing__extras {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.pricing__value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pricing__gone-title {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.pricing__after {
  color: var(--ink-3);
  font-weight: 400;
}

.pricing__members,
.pricing__gift,
.about__members {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pricing__members[hidden],
.about__members[hidden],
.prefs__preview[hidden],
.reason__hint[hidden] {
  display: none;
}

.deal__value {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.deal__join .digest,
.deal .digest {
  margin-top: 20px;
}

.prefs__preview {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.reason__hint {
  margin-top: 10px;
}

.reason__digest {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.cohorts {
  margin: 24px 0;
}

.cohorts__table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cohorts__table th,
.cohorts__table td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.digest-sample {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

/* -- /admin's Growth tab (lib/growth.js) ------------------------------------------------------- */
.growth__block {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.growth__block h3 {
  font-size: 16px;
  font-weight: 600;
}

.growth__table th[scope="row"] {
  font-weight: 500;
}

.growth__scroll {
  overflow-x: auto;
}

.growth-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  color: var(--ink);
}

.growth-chart__grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.growth-chart__label {
  fill: var(--ink-3);
  font-size: 11px;
  font-family: var(--sans);
}

.growth-chart__target {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.growth-chart__mark {
  fill: var(--bg);
  stroke: var(--ink-3);
  stroke-width: 1.5;
}

.growth-chart__actual {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.growth-chart__now {
  fill: var(--ink);
}

/* Meta ads (lib/ads.js): the feed square and the Reels story side by side, kept small. */
.post__slides--ads {
  grid-template-columns: repeat(2, minmax(0, 180px));
  align-items: start;
}

.growth__notes {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
}

.growth__notes li + li {
  margin-top: 4px;
}

.growth__legend {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
}

.growth__key {
  display: inline-block;
  width: 18px;
  height: 0;
  margin: 0 4px 3px 8px;
  vertical-align: middle;
  border-top: 2.5px solid var(--ink);
}

.growth__key--target {
  border-top: 1.5px dashed var(--ink-3);
}

.growth__checks {
  margin-top: 8px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.growth__check {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

.growth__state {
  display: inline-block;
  min-width: 64px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.growth__check--todo .growth__state,
.growth__check--na .growth__state,
.growth__detail {
  color: var(--ink-3);
}

.growth__spend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
  margin-top: 12px;
  font-size: 13px;
}

.growth__spend label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.growth__input {
  width: 9em;
}

.growth__winner {
  margin-top: 8px;
  font-size: 14px;
}

.growth__plan {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.growth__plan summary {
  cursor: pointer;
  font-weight: 600;
}

.growth__doc {
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
}

.growth__doc h3,
.growth__doc h4 {
  margin-top: 24px;
  font-weight: 600;
}

.growth__doc p,
.growth__doc ol,
.growth__doc ul {
  margin-top: 10px;
}

.growth__doc ol,
.growth__doc ul {
  padding-left: 1.4em;
}

.growth__doc table {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
}

.growth__doc th,
.growth__doc td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

/* -- /press (lib/press.js) --------------------------------------------------------------------- */
.press__numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  column-gap: 20px;
  margin-top: 16px;
  border-top: 1px solid var(--ink);
}

.press__assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.press__assets img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.press__assets figcaption {
  margin-top: 6px;
  font-size: 13px;
}

/* -- Sharing a deal (lib/dealpage.js shareBlock; the native button: public/share.js) ----------- */
.deal__share {
  margin-top: 24px;
}

.deal__share h2 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.deal__share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* .btn sets display, which would otherwise win over the hidden attribute. */
.deal__share-links [hidden] {
  display: none;
}

/* -- Airport pages (/from/<city>-<code>, functions/from/[slug].js) ----------------------------- */
.airport__fares {
  margin-top: 12px;
}

.airport__fares a.fare__row {
  color: inherit;
  text-decoration: none;
}

.airport__fares .fare__meta > .c-found {
  color: var(--ink-3);
}

.airport__members {
  margin-top: 12px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* -- The three tiers (public/member.js tiersPanel: Free / Economy / Elite) ---------------------- */
.tiers {
  display: grid;
  gap: 16px;
}

.tier {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--rule);
  min-width: 0;
}

.tier--elite {
  border-color: var(--ink);
}

.tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tier__name {
  font-size: 20px;
}

.tier__lead,
.tier__price {
  color: var(--ink-2);
  font-size: 15px;
}

.tier .pricing__benefits li {
  font-size: 14px;
}

.econ-fare--teaser .econ-fare__status {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  #pricing-panel .pricing.pricing--tiers {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #pricing-panel .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -- The Elite strip on airport and route pages (lib/elitestrip.js) --------------------------- */
.elite-strip {
  margin: 32px 0;
  padding: 18px 16px;
  border: 1px solid var(--ink);
}

.elite-strip h2 {
  margin-top: 0;
}

.elite-strip__cards {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elite-strip__card {
  min-width: 0;
  border: 1px solid var(--rule);
}

.elite-strip__link {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

a.elite-strip__link:hover,
a.elite-strip__link:focus-visible {
  background: var(--hover);
}

.elite-strip__dest {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.elite-strip__code,
.elite-strip__meta {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
}

.elite-strip__price {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.elite-strip__saving {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* A fare this viewer doesn't get: the price is an empty bar (the server sends nothing behind it). */
.elite-strip__card.is-blurred .elite-strip__bar {
  display: inline-block;
  width: 4.2em;
  height: 0.9em;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.35;
  filter: blur(3px);
  vertical-align: middle;
}

.elite-strip__cta {
  margin: 16px 0 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.elite-strip__actions {
  margin: 0;
}

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

/* -- The /start quiz (public/start/index.html, start.js) ---------------------------------------
   One question per screen, large tap targets, a hairline progress bar. Namespaced .quiz… */
.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap);
}

.doc .quiz__count {
  margin: 0 0 0 auto;
  color: var(--ink-3);
  font-size: 13px;
}

.quiz__bar {
  height: 2px;
  margin-bottom: 28px;
  background: var(--rule);
}

.quiz__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.2s ease;
}

.doc .quiz__why {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

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

.quiz__opt {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--btn-lg);
  padding: 10px 16px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

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

.quiz__opt[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}

.quiz__opt:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.quiz__screen h1:focus {
  outline: none;
}

.quiz__other {
  margin-top: 16px;
}

.quiz__other .text-input {
  flex: 1;
  min-width: 0;
}

.doc .quiz__actions {
  margin-top: 20px;
}

.quiz__form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.doc .quiz__note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.doc .quiz__done {
  margin-top: 20px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

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

  .quiz__opt--wide {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz__fill {
    transition: none;
  }
}

/* Deal bands (public/fare-text.js dealBand): Good, Great, Rare as a small word badge next to a
   fare's discount. The word carries the meaning; the weight of the outline only echoes it
   (hairline, ink, filled), so nothing depends on colour. */
.band {
  display: inline-block;
  margin-left: 2px;
  padding: 0 6px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  white-space: nowrap;
}

.band--great {
  border-color: var(--ink);
  color: var(--ink);
}

.band--rare {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.deal__price .band {
  vertical-align: 4px;
}

.band-explain p {
  color: var(--ink-2);
}

/* The pricing dialog's three tiers (public/member.js tiersPanel): each card reads its name, lead
   and benefits, then its price and button. The single-plan dialog puts the plans first
   (.paywall-dialog .pricing__buy, order: -1); inside a tier card that put each price above its
   plan's name, and Elite's price under Economy's benefits. */
.paywall-dialog .tier .pricing__buy {
  order: 0;
}

/* The free sign-up near the top of a deal page (under the price) and an airport page (under its
   opening paragraph), for visitors who aren't members: lib/chrome.js topSignup. Compact, so a
   390 px phone shows it without scrolling. */
.doc .digest--top {
  max-width: 34rem;
  margin: 16px 0 4px;
  padding: 14px 16px 6px;
  border: 1px solid var(--ink);
}

.digest--top .digest__label {
  font-size: 16px;
}

.digest--top .digest__row {
  margin-top: 8px;
}

.digest--top .digest__row .btn {
  flex: none;
}

.digest--top .digest__status:empty {
  min-height: 8px;
}

/* The /start quiz's first screen with the advertised fare (public/start.js): the fare as a card,
   the sign-up straight under it. A hidden part of the quiz stays hidden even where its class
   sets a display (.link, .btn). */
.quiz [hidden] {
  display: none;
}

.quiz__fare {
  margin: 8px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
}

.quiz__fare + h1 {
  font-size: 28px;
}

.doc .quiz__fare-kicker {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.doc .quiz__fare-route {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.doc .quiz__fare-price {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.quiz__fare-amount {
  margin-right: 6px;
  font-size: 24px;
  font-weight: 700;
}

.doc .quiz__fare-meta {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

.quiz__home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.quiz__home .text-input {
  flex: 1;
  min-width: 10rem;
}

.doc .quiz__more {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.doc .quiz__breakdown {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
}
