@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --mist: #edf1ec;
  --sheet: #f8faf6;
  --white: #fff;
  --indigo: #13283a;
  --ink-muted: #475762;
  --rule: #bbc7c2;
  --lacquer: #d74a3a;
  --lacquer-action: #a3342d;
  --jade: #2f7d6c;
  --marigold: #f0b84a;
  --destructive: #8c2a25;
  --shell: 48rem;
  --reading: 40rem;
  --dock-reserve: 6.5rem;
  color: var(--indigo);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  line-height: 1.55;
}

* { box-sizing: border-box; }

html {
  background: var(--mist);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--lacquer) 0 4px, transparent 4px),
    var(--mist);
  color: var(--indigo);
  min-width: 0;
}

body,
button,
a,
input { -webkit-tap-highlight-color: rgb(19 40 58 / 16%); }

::selection { background: var(--marigold); color: var(--indigo); }

a { color: inherit; }

img,
svg { display: block; max-width: 100%; }

.skip-link {
  background: var(--indigo);
  color: var(--white);
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: .5rem;
  transform: translateY(-180%);
  z-index: 20;
}

.skip-link:focus { transform: none; }

:where(a, button, [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--mist);
}

.app-shell {
  margin-inline: auto;
  max-width: var(--shell);
  min-width: 0;
  padding-bottom: calc(var(--dock-reserve) + 1rem);
}

.companion-chapter {
  margin-inline: auto;
  max-width: var(--reading);
  padding-block: clamp(2rem, 7vw, 4rem) 3rem;
}

.chapter-lead { margin-bottom: 3rem; }
.chapter-lead h1 { font-size: 2.25rem; letter-spacing: -.03em; line-height: 1.05; margin: .5rem 0 1rem; text-wrap: balance; }
.chapter-lead > p:last-child { color: var(--ink-muted); font-size: 1rem; margin: 0; max-width: 38rem; }

.route-spine {
  background: var(--sheet);
  border-top: 4px solid var(--lacquer);
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.25rem 1.5rem 3.5rem;
  position: relative;
}

.route-spine::before { background: var(--lacquer); content: ""; inset: 2rem auto 2rem 1.55rem; position: absolute; width: 4px; }
.route-leg { min-width: 0; position: relative; }
.route-leg article { border-bottom: 1px solid var(--rule); padding: .75rem 0 2rem; }
.route-leg:last-child article { border-bottom: 0; }
.route-stop { font-family: "Literata", Georgia, serif; font-size: 1.375rem; font-weight: 700; margin: 0; padding-block: 1rem .25rem; position: relative; }
.route-stop::before { background: var(--sheet); border: 4px solid var(--lacquer); border-radius: 50%; content: ""; height: 1rem; left: -2.4rem; position: absolute; top: 1.35rem; width: 1rem; }
.route-stop--start::before { background: var(--lacquer); }
.route-stop--finish::after { border: 2px solid var(--lacquer); border-radius: 50%; content: ""; height: 1.65rem; left: -2.72rem; position: absolute; top: 1.02rem; width: 1.65rem; }
.route-leg__day-label { color: var(--lacquer-action); font-size: .875rem; font-weight: 700; letter-spacing: .06em; margin: 0 0 .25rem; text-transform: uppercase; }
.route-leg h2 { font-size: 1.375rem; line-height: 1.2; margin: 0 0 1rem; }
.route-leg__facts { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.route-leg__facts div { display: grid; gap: .125rem; }
.route-leg__facts dt { color: var(--ink-muted); font-size: .875rem; font-weight: 700; }
.route-leg__facts dd { margin: 0; overflow-wrap: anywhere; }
.route-leg__day { display: inline-flex; font-weight: 700; min-height: 3rem; padding-block: .65rem; text-decoration-thickness: 1px; text-underline-offset: .25rem; }

.maps-action-group { margin-top: 1rem; }
.map-action { align-items: center; color: var(--indigo); display: inline-flex; font-weight: 700; gap: .5rem; min-height: 3rem; overflow-wrap: normal; padding-block: .5rem; text-decoration-thickness: 1px; text-underline-offset: .25rem; }
.map-action svg { fill: none; flex: 0 0 1.5rem; height: 1.5rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 1.5rem; }
.maps-requirement { color: var(--ink-muted); font-size: .875rem; margin: .25rem 0 0; }
.maps-chapter-note { background: color-mix(in srgb, var(--marigold) 28%, var(--sheet)); margin: 0 0 3rem; padding: 1rem; }

.eat-destination { margin-top: 3rem; }
.eat-destination > h2 { border-bottom: 1px solid var(--rule); font-size: 1.375rem; margin: 0 0 1.5rem; padding-bottom: .75rem; }
.eat-picks { display: grid; gap: 1rem; }
.eat-pick { background: var(--sheet); border: 1px solid var(--rule); border-radius: .75rem; min-width: 0; padding: 1.25rem; }
.eat-pick h3 { font-family: "Literata", Georgia, serif; font-size: 1.375rem; line-height: 1.2; margin: 0 0 .75rem; overflow-wrap: anywhere; }
.eat-pick p { margin: .75rem 0 0; }
.eat-pick__speciality { color: var(--lacquer-action); font-weight: 700; }
.eat-pick__booking { color: var(--ink-muted); }
.eat-note { background: var(--sheet); border-top: 4px solid var(--marigold); padding: 1.25rem; }
.eat-note p { margin: 0; }

.trip-register { display: grid; gap: 48px; }
.trip-register > section { scroll-margin-top: 24px; }
.trip-register > section > h2 { border-bottom: 1px solid var(--rule); font-size: 1.375rem; margin: 0 0 16px; padding-bottom: 12px; }
.operational-list { background: var(--sheet); list-style: none; margin: 0; padding: 0 24px; }
.operational-list > li + li { border-top: 1px solid var(--rule); }
.operational-record { padding: 24px 0 32px; scroll-margin-top: 24px; }
.operational-record h3,
.open-record h3,
.contact-record h3 { font-family: "Literata", Georgia, serif; font-size: 1.375rem; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.operational-date { color: var(--ink-muted); margin: 8px 0 0; }
.operational-date a,
.operational-day,
.open-record > a,
.trip-empty a,
.contact-record__actions a { color: var(--lacquer-action); font-weight: 700; text-underline-offset: 4px; }
.operational-record dl { display: grid; gap: 12px; margin: 24px 0 0; }
.operational-record dl div { display: grid; gap: 4px; grid-template-columns: minmax(96px, .35fr) minmax(0, 1fr); }
.operational-record dt { color: var(--ink-muted); font-size: .875rem; font-weight: 700; }
.operational-record dd { margin: 0; overflow-wrap: anywhere; }
.operational-condition { margin: 16px 0 0; }
.trip-register .booking-fact { padding-top: 16px; }
.reference-row { align-items: end; display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; }
.reference-row p { display: grid; gap: 4px; margin: 0; min-width: 0; }
.reference-row p span { color: var(--ink-muted); font-size: .875rem; font-weight: 700; }
.reference-row button { background: var(--indigo); border: 0; border-radius: 12px; color: var(--sheet); cursor: pointer; font: inherit; font-weight: 700; min-height: 48px; padding: 12px 16px; }
.copy-status { grid-column: 1 / -1; min-height: 1.5em; }
.copy-status[role="alert"] { color: var(--destructive); }
.open-record { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) auto; padding: 24px 0; scroll-margin-top: 24px; }
.open-record__status { align-items: center; display: flex; font-weight: 700; gap: 8px; margin: 8px 0 0; }
.open-record__status i { border: 2px solid var(--marigold); display: inline-block; height: 10px; width: 10px; }
.operational-deadline { color: var(--ink-muted); margin: 8px 0 0; }
.trip-empty { background: var(--sheet); margin: 0; padding: 24px; }
.trip-empty p { margin: 0 0 16px; }
.contact-record { padding: 24px 0; }
.contact-record p { color: var(--ink-muted); margin: 8px 0 0; }
.contact-record__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }

.more-tools { display: grid; gap: 48px; }
.more-chapter .chapter-lead h1 { font-size: 2.25rem; overflow-wrap: normal; word-break: normal; }
.tool-section { scroll-margin-top: 24px; }
.tool-section > h2 { border-bottom: 1px solid var(--rule); font-size: 1.375rem; margin: 0 0 16px; padding-bottom: 12px; }
.tool-guidance,
.emergency-note { color: var(--ink-muted); margin: 0 0 24px; max-width: 65ch; }
.packing-count { color: var(--lacquer-action); font-weight: 700; margin: 0 0 16px; }
.packing-groups { background: var(--sheet); padding: 0 24px; }
.packing-group { border: 0; margin: 0; min-width: 0; padding: 24px 0; }
.packing-group + .packing-group { border-top: 1px solid var(--rule); }
.packing-group legend { font-family: "Literata", Georgia, serif; font-size: 1.375rem; font-weight: 700; line-height: 1.2; padding: 0; }
.packing-row { align-items: center; cursor: pointer; display: flex; gap: 12px; min-height: 48px; padding-block: 8px; }
.packing-row input { accent-color: var(--jade); flex: 0 0 20px; height: 20px; margin: 0; width: 20px; }
.packing-row:has(input:checked) span { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--jade); text-decoration-thickness: 2px; }
.packing-clear,
.packing-confirmation button { border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; min-height: 48px; padding: 12px 16px; }
.packing-clear { background: transparent; border: 1px solid var(--destructive); color: var(--destructive); margin-top: 24px; }
.packing-confirmation { background: var(--white); border: 2px solid var(--destructive); margin-top: 24px; padding: 24px; }
.packing-confirmation h3 { font-family: "Literata", Georgia, serif; font-size: 1.375rem; line-height: 1.2; margin: 0 0 8px; }
.packing-confirmation p { margin: 0; }
.packing-confirmation__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.packing-confirm { background: var(--destructive); border: 1px solid var(--destructive); color: var(--white); }
.packing-cancel { background: transparent; border: 1px solid var(--indigo); color: var(--indigo); }
.packing-confirmation[aria-busy="true"] button { cursor: wait; opacity: .72; }
.packing-status { color: var(--destructive); margin: 16px 0 0; min-height: 1.5em; }
.phrase-list { background: var(--sheet); margin: 0; padding: 0 24px; }
.phrase-list > div { padding: 20px 0; }
.phrase-list > div + div { border-top: 1px solid var(--rule); }
.phrase-list dt { font-family: "Literata", Georgia, serif; font-size: 1.375rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.phrase-list dd { color: var(--ink-muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.emergency-list { background: var(--sheet); list-style: none; margin: 0; padding: 0 24px; }
.emergency-list li { align-items: center; display: grid; gap: 8px 24px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 0; }
.emergency-list li + li { border-top: 1px solid var(--rule); }
.emergency-list a { align-items: center; color: var(--lacquer-action); display: inline-flex; font-variant-numeric: tabular-nums; font-weight: 700; min-height: 48px; text-underline-offset: 4px; }
.emergency-note { background: color-mix(in srgb, var(--marigold) 28%, var(--sheet)); margin-top: 16px; padding: 16px; }
.money-list { background: var(--sheet); margin: 0; padding: 8px 24px 8px 52px; }
.money-list li { padding: 16px 0 16px 8px; }
.money-list li + li { border-top: 1px solid var(--rule); }

.trip-masthead {
  align-items: center;
  background: color-mix(in srgb, var(--sheet) 96%, transparent);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  min-height: 4rem;
  padding: .75rem clamp(1rem, 4vw, 3rem);
}

.trip-mark { margin-right: auto; }

.trip-mark {
  align-items: center;
  display: inline-flex;
  font-family: "Literata", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 3rem;
  text-decoration: none;
}

.audience-label,
.state-label,
.timeline__period,
.route-thread__label {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audience-label {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
}

.audience-label::before {
  background: var(--jade);
  border-radius: 50%;
  content: "";
  height: .625rem;
  width: .625rem;
}

.masthead-action,
.back-to-following {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--indigo);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  padding: .5rem;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25rem;
}

main {
  margin-inline: auto;
  min-width: 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.access-chapter {
  margin-inline: auto;
  max-width: var(--reading);
  padding-block: clamp(2rem, 7vw, 4rem) 3rem;
}

.access-sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--lacquer);
  border-radius: 8px;
  max-width: 480px;
  padding: clamp(1.5rem, 5vw, 2rem);
}

.access-eyebrow {
  color: var(--ink-muted);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}

.access-sheet h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  max-width: none;
}

.access-intro {
  color: var(--ink-muted);
  margin: 1rem 0 0;
  max-width: 65ch;
}

.pin-form { margin-top: 2rem; }

.form-field { display: grid; gap: .5rem; }

.form-field label {
  font-size: .875rem;
  font-weight: 700;
}

.form-field input {
  background: var(--white);
  border: 1px solid var(--indigo);
  border-radius: 10px;
  color: var(--indigo);
  font: inherit;
  font-variant-numeric: tabular-nums;
  min-height: 3.5rem;
  padding: .75rem 1rem;
  width: 100%;
}

.form-field input:disabled {
  background: var(--mist);
  border-color: var(--ink-muted);
  color: var(--ink-muted);
}

.field-help {
  color: var(--ink-muted);
  margin: 0;
}

.pin-form .primary-action {
  cursor: pointer;
  font: inherit;
  margin-top: 1.5rem;
  width: 100%;
}

.pin-form .primary-action:disabled {
  background: var(--lacquer-action);
  border-color: var(--indigo);
  color: var(--white);
  cursor: wait;
}

.access-status {
  font-variant-numeric: tabular-nums;
  margin-top: 1rem;
  min-height: 1.5rem;
}

.access-status[role="alert"] {
  border: 1px solid var(--destructive);
  border-radius: 8px;
  padding: 1rem;
}

.access-status[role="alert"]::before {
  border: 2px solid var(--destructive);
  content: "";
  display: inline-block;
  height: .5rem;
  margin-right: .5rem;
  transform: rotate(45deg);
  width: .5rem;
}

.back-to-following { margin-top: 1rem; }

.access-sheet--success { border-top-color: var(--jade); }

.traveller-gate,
.private-load-error {
  margin-inline: auto;
  max-width: var(--reading);
  padding-block: 64px;
}

.traveller-gate p {
  color: var(--ink-muted);
  font-weight: 700;
  margin: 0;
}

.private-load-error {
  background: var(--sheet);
  border-top: 4px solid var(--marigold);
  margin-top: 48px;
  padding: 32px;
}

.private-load-error > p { color: var(--ink-muted); max-width: 65ch; }

.traveller-details {
  border-block: 1px solid var(--rule);
  display: grid;
  margin-top: 32px;
}

.stay-block,
.task-notice,
.practical-notice {
  min-width: 0;
  padding-block: 24px;
}

.stay-block + .task-notice,
.stay-block + .practical-notice,
.task-notice + .practical-notice { border-top: 1px solid var(--rule); }

.stay-block h2,
.task-notice h2,
.practical-notice h2,
.transport-block h4 {
  font-family: inherit;
  font-size: .875rem;
  letter-spacing: .06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.stay-block__name {
  font-family: "Literata", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.task-notice ul,
.practical-notice p { margin: 0; }

.task-notice ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.task-notice li {
  align-items: baseline;
  display: flex;
  font-weight: 700;
  gap: 10px;
}

.task-notice i,
.glance-row--check i {
  background: transparent;
  border: 2px solid var(--marigold);
  display: inline-block;
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.traveller-detail {
  display: grid;
  gap: 4px;
  padding-block: 16px;
}

.traveller-detail + .traveller-detail { border-top: 1px solid var(--rule); }
.traveller-detail h2 { font-family: inherit; font-size: .875rem; letter-spacing: .06em; margin: 0; text-transform: uppercase; }
.traveller-detail p { font-size: 1.125rem; margin: 0; }
.traveller-timeline { margin-top: 32px; }
.next-event {
  background: var(--sheet);
  border-top: 4px solid var(--lacquer);
  margin-bottom: 24px;
  padding: 24px;
}
.next-event h2 { font-family: inherit; font-size: .875rem; letter-spacing: .06em; margin-bottom: 8px; text-transform: uppercase; }
.next-event p { font-family: "Literata", Georgia, serif; font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0; }
.traveller-glance { margin-block: 24px; }
.traveller-glance > h2 { font-size: 1.5rem; margin-bottom: 8px; }
.glance-row { align-items: baseline; border-top: 1px solid var(--rule); display: grid; gap: 8px; margin: 0; padding-block: 16px; }
.glance-row span { color: var(--ink-muted); font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.glance-row--check strong { align-items: baseline; display: flex; gap: 8px; }
.traveller-fact { color: var(--ink-muted); display: grid; gap: 4px; margin: 8px 0 0; }
.traveller-fact span { font-size: .875rem; }
.traveller-fact strong { color: var(--indigo); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.traveller-alert { min-height: 24px; }

.session-notice {
  background: var(--sheet);
  border-top: 4px solid var(--marigold);
  margin: 32px 0 0;
  padding: 16px;
}

.protected-proof {
  align-items: center;
  border-block: 1px solid var(--rule);
  display: flex;
  font-weight: 700;
  gap: .5rem;
  margin: 2rem 0 0;
  min-height: 3rem;
  padding-block: .75rem;
}

.protected-proof::before {
  background: var(--jade);
  border-radius: 50%;
  content: "";
  display: block;
  flex: 0 0 1.5rem;
  height: 1.5rem;
  outline: 2px solid var(--sheet);
  outline-offset: -.35rem;
  width: 1.5rem;
}

.session-expiry {
  color: var(--ink-muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  margin: .5rem 0 0;
}

.today,
.day-view {
  margin-inline: auto;
  max-width: var(--reading);
}

.journey-lead,
.day-lead {
  padding-block: clamp(2rem, 7vw, 4rem) 2rem;
}

.state-label {
  color: var(--ink-muted);
  margin: 0 0 .5rem;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2 {
  font-family: "Literata", Georgia, serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, calc(1.5rem + 4vw), 4.75rem);
  margin: 0;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: .25rem 0 0;
}

.journey-lead > p:not(.state-label),
.day-lead > p:not(.state-label) {
  color: var(--ink-muted);
  font-size: 1.125rem;
  margin: 1rem 0 0;
  max-width: 38rem;
}

.primary-action,
.adjacent-link {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1rem;
  text-decoration: none;
}

.primary-action {
  background: var(--lacquer-action);
  border: 1px solid var(--indigo);
  box-shadow: inset 0 1px rgb(255 255 255 / 25%);
  color: var(--white);
  margin-top: 1.5rem;
}

.today .journey-lead { padding-block: 1rem .75rem; }
.today .journey-lead > p:not(.state-label) { font-size: 1rem; margin-top: .5rem; }
.today .next-event { margin-bottom: 1rem; padding: .75rem 1rem; }
.today .next-event h2 { margin-bottom: .25rem; }
.today .next-event p { font-size: 1.25rem; }
.today .traveller-glance { margin-block: 0; }
.today .traveller-glance > h2 {
  font-family: inherit;
  font-size: .875rem;
  letter-spacing: .06em;
  margin-bottom: 0;
  text-transform: uppercase;
}
.today .glance-row {
  align-items: start;
  gap: .75rem;
  grid-template-columns: minmax(6.5rem, .7fr) 1.3fr;
  padding-block: .5rem;
}
.today .primary-action { display: flex; margin: .75rem 0 1rem; width: 100%; }

.route-ahead {
  align-items: center;
  display: flex;
  gap: .75rem;
  font-weight: 700;
  margin: 2rem 0;
  padding: .75rem 0;
}

.route-ahead::before {
  background: var(--marigold);
  content: "";
  flex: 0 0 .625rem;
  height: .625rem;
}

.route-thread {
  color: var(--lacquer);
  margin-block: 0 2rem;
  padding-block: .5rem;
}

.route-thread__track { height: 1rem; overflow: visible; }

.route-thread__label {
  align-items: center;
  color: var(--indigo);
  display: flex;
  gap: .5rem;
  margin: .5rem 0 0;
}

.route-thread__label::before {
  background: currentColor;
  content: "";
  height: .5rem;
  width: .5rem;
}

.route-thread--complete { color: var(--jade); }
.route-thread--upcoming { color: var(--marigold); }
.route-thread--viewed { color: var(--lacquer-action); }
.route-thread--upcoming .route-thread__label::before { background: transparent; border: 2px solid var(--marigold); border-radius: 50%; }
.route-thread--current .route-thread__label::before { border-radius: 50%; }

.timeline,
.quiet-day {
  background: var(--sheet);
  border-top: 4px solid var(--lacquer);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  position: relative;
}

.timeline ol::before {
  background: var(--lacquer);
  content: "";
  left: .375rem;
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  width: 4px;
}

.timeline li {
  min-height: 4rem;
  padding: 0 0 1.5rem 1rem;
  position: relative;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  background: var(--sheet);
  border: 4px solid var(--lacquer);
  border-radius: 50%;
  content: "";
  height: 1rem;
  left: -1.875rem;
  position: absolute;
  top: .25rem;
  width: 1rem;
}

.timeline__period {
  color: var(--ink-muted);
  margin: 0;
}

.timeline__detail {
  color: var(--ink-muted);
  margin: 8px 0 0;
  max-width: 65ch;
}

.transport-block {
  background: color-mix(in srgb, var(--mist) 76%, var(--sheet));
  border-radius: 12px;
  margin-top: 16px;
  min-width: 0;
  padding: 16px;
}

.transport-block h4,
.transport-block p { margin-block-start: 0; }
.transport-block > p:last-of-type { margin-bottom: 0; }

.transport-block__route {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.transport-block__route strong:last-child { text-align: right; }

.booking-fact {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  min-width: 0;
  padding-top: 12px;
}

.fact-row {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.fact-row + .fact-row { margin-top: 10px; }
.fact-row > span { color: var(--ink-muted); font-size: .8125rem; font-weight: 700; }
.fact-row strong { align-items: baseline; display: flex; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.fact-row i { display: inline-block; flex: 0 0 10px; height: 10px; width: 10px; }
.booking-fact--paid .fact-row:first-child i { background: var(--jade); border-radius: 50%; }
.booking-fact--due .fact-row:first-child i { border: 2px solid var(--jade); }
.booking-fact--open .fact-row:first-child i { border: 2px solid var(--marigold); }
.booking-reference { font-variant-numeric: tabular-nums; user-select: text; }

.optional-branches { margin-top: 32px; }
.optional-branches > h2 { font-size: 1.75rem; margin-bottom: 16px; }
.optional-branches > div { display: grid; gap: 16px; }
.optional-branch { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; min-width: 0; padding: 24px; }
.optional-branch__label { color: var(--lacquer-action); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; margin: 0 0 8px; text-transform: uppercase; }
.optional-branch h3 { font-family: "Literata", Georgia, serif; font-size: 1.375rem; margin: 0; }
.optional-branch > p:not(.optional-branch__label) { color: var(--ink-muted); }
.optional-branch ol { border-top: 1px solid var(--rule); list-style: none; margin: 16px 0 0; padding: 12px 0 0; }
.optional-branch li { display: grid; gap: 4px; padding-block: 8px; }
.optional-branch li span { color: var(--ink-muted); font-size: .8125rem; text-transform: uppercase; }

.map-action {
  align-items: center;
  border: 1px solid var(--indigo);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
  min-height: 56px;
  min-width: 0;
  padding: 12px 16px;
  text-decoration: none;
}

.map-action > span { font-weight: 700; min-width: 0; }
.map-action small { align-items: center; color: var(--ink-muted); display: inline-flex; flex: 0 0 auto; gap: 6px; }
.map-action svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 24px; }

.quiet-day p { margin-bottom: 0; }

.photo-plate {
  aspect-ratio: 3 / 2;
  background: var(--sheet);
  border-radius: 8px;
  border-top: 4px solid var(--lacquer);
  box-shadow: inset 0 0 0 1px rgb(19 40 58 / 15%);
  margin: 0 0 2rem;
  overflow: hidden;
}

.photo-plate picture,
.photo-plate img {
  height: 100%;
  width: 100%;
}

.photo-plate img {
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
}

.day-rail {
  margin-inline: calc(clamp(1rem, 4vw, 3rem) * -1);
  overflow-x: auto;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  scrollbar-color: var(--rule) transparent;
  scroll-padding-inline: 1rem;
}

.day-rail ol {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 0 auto;
  max-width: var(--shell);
  padding: 0;
  width: max-content;
}

.day-rail a {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: inset 0 1px var(--white), 0 2px 0 rgb(19 40 58 / 8%);
  display: grid;
  min-height: 3.25rem;
  min-width: 5.5rem;
  padding: .5rem .75rem .5rem 1rem;
  position: relative;
  text-decoration: none;
}

.day-rail a[aria-current="page"] {
  border-color: var(--indigo);
  box-shadow: inset 4px 0 var(--lacquer), inset 0 1px var(--white);
}

.day-rail__date { font-size: .875rem; font-weight: 700; }
.day-rail__destination { color: var(--ink-muted); font-size: .875rem; }
.day-rail__today { color: var(--lacquer-action); font-size: .75rem; font-weight: 700; }

.adjacent-days {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 2rem;
}

.adjacent-link {
  border: 1px solid var(--indigo);
  gap: .5rem;
}

.adjacent-link svg {
  fill: none;
  flex: 0 0 1.5rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.5rem;
}

.freshness {
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: .875rem;
  margin-top: 3rem;
  padding-block: 1.5rem 3rem;
}

.freshness p { margin: 0; }
.freshness__status:not(:empty) { margin-top: .5rem; }

.update-notice {
  background: var(--sheet);
  border-top: 4px solid var(--marigold);
  color: var(--ink);
  margin-top: 1.25rem;
  padding: 1rem;
}

.update-notice h2 {
  font-family: var(--display);
  font-size: 1.125rem;
  margin: 0 0 .35rem;
}

.update-notice p { margin: 0 0 .75rem; }

.update-notice button {
  background: var(--indigo);
  border: 0;
  border-radius: 12px;
  color: var(--mist);
  cursor: pointer;
  font: 700 .875rem/1 var(--sans);
  min-height: 48px;
  padding: .75rem 1rem;
}

.update-notice button:disabled { cursor: wait; opacity: .65; }

.update-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.update-notice__actions button:last-child {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--indigo);
}

.offline-ledger {
  background: var(--sheet);
  border-top: 4px solid var(--lacquer);
  margin-top: 48px;
  min-width: 0;
  padding: 24px;
}

.offline-ledger--freshness {
  margin-top: 20px;
  padding: 16px;
}

.offline-ledger--freshness.update-notice { border-top-color: var(--marigold); }

.offline-ledger--freshness[data-state="install"] { border-top-color: var(--indigo); }

.offline-ledger--freshness[data-state="installed"] { border-top-color: var(--jade); }

.offline-ledger .offline-ledger__notice--install {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.update-notice .offline-ledger__notice--install .offline-ledger__action--quiet {
  background: transparent;
  border: 1px solid var(--indigo);
  color: var(--indigo);
  margin-top: 0;
}

.offline-ledger__connectivity {
  align-items: center;
  display: flex;
  font-size: .875rem;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.offline-ledger__connectivity::before {
  background: var(--jade);
  border-radius: 50%;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.offline-ledger[data-state="offline-ready"] .offline-ledger__connectivity::before {
  background: transparent;
  border-block: 2px solid var(--indigo);
  border-radius: 0;
}

.offline-ledger[data-state="expired"] { border-top-color: var(--marigold); }

.offline-ledger__notice {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding-top: 16px;
}

.offline-ledger__notice h2 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 8px;
  max-width: 26ch;
}

.offline-ledger__notice p {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  margin: 0;
  max-width: 65ch;
}

.offline-ledger__action {
  align-items: center;
  background: var(--lacquer-action);
  border: 1px solid var(--indigo);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  margin-top: 24px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  text-align: left;
}

.offline-ledger__action:disabled {
  background: color-mix(in srgb, var(--lacquer-action) 72%, var(--sheet));
  cursor: wait;
}

.offline-ledger__action--quiet {
  background: transparent;
  color: var(--indigo);
}

.offline-ledger__confirmation {
  border: 2px solid var(--destructive);
  padding: 16px;
}

.offline-ledger__actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.offline-ledger__actions .offline-ledger__action { margin-top: 0; }

.offline-ledger__action--destructive {
  background: var(--destructive);
  border-color: var(--destructive);
}

.session-notice {
  background: var(--sheet);
  border-top: 4px solid var(--lacquer);
  margin: 0 0 32px;
  padding: 20px 24px;
}

.session-notice h2 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.session-notice h2:last-child,
.session-notice p { margin-bottom: 0; }

.bottom-dock {
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  bottom: 0;
  box-shadow: 0 4px 16px rgb(19 40 58 / 10%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 0;
  padding: 0 max(1rem, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(1rem, env(safe-area-inset-right));
  position: fixed;
  right: 0;
  z-index: 10;
}

.bottom-dock a {
  align-items: center;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  font-size: .875rem;
  font-weight: 700;
  justify-content: center;
  min-height: 4rem;
  padding: .5rem;
  text-decoration: none;
}

.bottom-dock a span { overflow-wrap: normal; white-space: normal; word-break: keep-all; }
.bottom-dock--traveller { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: var(--shell); }
.bottom-dock--stacked { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bottom-dock a[aria-current="page"] { border-top-color: var(--lacquer); }

.bottom-dock svg {
  fill: none;
  height: 1.5rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.5rem;
}

.bottom-dock a[aria-current="page"] svg path:first-child { fill: var(--marigold); }

@media (hover: hover) {
  a,
  button { transition: background-color 120ms, border-color 120ms, color 120ms, transform 120ms; }
  .bottom-dock a:hover { background: var(--mist); border-top-color: var(--lacquer); }
  .masthead-action:hover,
  .back-to-following:hover { background: var(--mist); }
}

@media (min-width: 45rem) {
  main { padding-inline: clamp(2rem, 6vw, 5rem); }
  .day-rail { margin-inline: calc(clamp(2rem, 6vw, 5rem) * -1); padding-inline: clamp(2rem, 6vw, 5rem); }
  .bottom-dock { left: 50%; max-width: var(--shell); right: auto; transform: translateX(-50%); width: 100%; }
  .eat-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today .photo-plate { aspect-ratio: 16 / 7; }
  .access-sheet { margin-inline: auto; }
  .optional-branches > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 24rem) {
  main { padding-inline: 16px; }
  .day-rail { margin-inline: -16px; padding-inline: 16px; }
  .trip-masthead { align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .access-chapter { padding-block: 32px 48px; }
  .access-sheet { padding: 24px 16px; }
  .access-intro { margin-top: 16px; }
  .pin-form { margin-top: 32px; }
  .pin-form .primary-action { margin-top: 24px; }
  .access-status,
  .back-to-following { margin-top: 16px; }
  .adjacent-days { grid-template-columns: 1fr; }
  .adjacent-link { justify-content: flex-start; }
  .masthead-action { width: 100%; }
  .next-event,
  .timeline,
  .optional-branch { padding: 20px 16px; }
  .transport-block__route { align-items: flex-start; grid-template-columns: 1fr; }
  .transport-block__route span { transform: rotate(90deg); }
  .transport-block__route strong:last-child { text-align: left; }
  .map-action { align-items: center; flex-direction: row; gap: 12px; }
  .operational-list { padding-inline: 16px; }
  .operational-record dl div,
  .reference-row,
  .open-record { grid-template-columns: minmax(0, 1fr); }
  .reference-row button { justify-self: start; width: 100%; }
  .open-record { align-items: start; gap: 12px; }
  .packing-groups,
  .phrase-list,
  .emergency-list { padding-inline: 16px; }
  .packing-confirmation { padding: 20px 16px; }
  .packing-confirmation__actions { align-items: stretch; flex-direction: column; }
  .emergency-list li { align-items: start; grid-template-columns: minmax(0, 1fr); }
  .money-list { padding-inline: 40px 16px; }
  .bottom-dock a { min-height: 64px; padding: 8px; }
  .bottom-dock svg { height: 24px; width: 24px; }
  .offline-ledger { padding: 20px 16px; }
  .offline-ledger__action { width: 100%; }
  .offline-ledger__actions { flex-direction: column; }
  .session-notice { padding: 20px 16px; }
  .route-spine { padding-inline: 44px 16px; }
  .route-spine::before { left: 20px; }
  .route-stop::before { height: 16px; left: -36px; width: 16px; }
  .route-stop--finish::after { height: 26px; left: -39px; width: 26px; }
  .route-leg__facts { grid-template-columns: 1fr; }

  .traveller-masthead {
    align-items: center;
    display: grid;
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .traveller-masthead .trip-mark { font-size: 1rem; margin: 0; }
  .traveller-masthead .audience-label { font-size: .75rem; }
  .traveller-masthead .masthead-action { grid-column: 1 / -1; justify-self: start; padding-inline: 0; width: auto; }
  .today .next-event { padding: .75rem 1rem; }
  .today .glance-row { padding-block: .25rem; }
  .today .primary-action { margin-top: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  a:active { transform: none; }
}

@media print {
  .bottom-dock { display: none; }
  .app-shell { padding-bottom: 0; }
}
