@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: "Literata";
  src: url("/assets/fonts/literata-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-400-vietnamese.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@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 {
  --plaster: #f2ebdd;
  --plaster-light: #fffdf6;
  --tropical-green: #1e5149;
  --vermilion: #d5533d;
  --vermilion-accessible: #a43a2b;
  --sun-yellow: #e7b94f;
  --blue-black: #17313a;
  --mist: var(--plaster);
  --sheet: var(--plaster-light);
  --white: var(--plaster-light);
  --indigo: var(--blue-black);
  --ink-muted: #52645e;
  --rule: #9dada5;
  --lacquer: var(--vermilion);
  --lacquer-action: var(--vermilion-accessible);
  --jade: var(--tropical-green);
  --marigold: var(--sun-yellow);
  --destructive: #8c2a25;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --shell: 60rem;
  --reading: 42.5rem;
  --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: var(--plaster);
  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 {
  align-items: center;
  background: var(--indigo);
  color: var(--white);
  display: inline-flex;
  left: 1rem;
  min-block-size: 48px;
  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; }
}

/* Tropical Modernist north star: follower Today */
.trip-masthead {
  background: var(--plaster);
  border: 0;
  flex-wrap: wrap;
  gap: var(--space-sm);
  min-height: 65px;
  padding: var(--space-sm) var(--space-md);
}

.trip-mark {
  color: var(--tropical-green);
  font-size: 1.5rem;
  letter-spacing: -.025em;
  line-height: 1;
  min-height: 48px;
}

.masthead-action {
  background: var(--tropical-green);
  border: 0;
  border-radius: 12px;
  color: var(--plaster-light);
  gap: var(--space-sm);
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  width: auto;
}

.masthead-action .audience-label {
  color: inherit;
  letter-spacing: .08em;
}

.masthead-action .audience-label::before { display: none; }

.masthead-action svg {
  fill: none;
  flex: 0 0 24px;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.today-main {
  max-width: var(--shell);
  padding: 0;
  width: 100%;
}

.today-main .today {
  margin: 0;
  max-width: none;
  width: 100%;
}

.today-hero {
  background: var(--tropical-green);
  isolation: isolate;
  min-height: max(521px, calc(100svh - 238px));
  overflow: hidden;
  position: relative;
}

.today-hero::after {
  background: var(--plaster);
  clip-path: polygon(0 0, 22% 0, 94% 100%, 0 100%);
  content: "";
  inset: 44% 0 0;
  position: absolute;
  z-index: 2;
}

.today-hero__photo {
  aspect-ratio: auto;
  background: var(--tropical-green);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  inset: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.today-hero__photo picture,
.today-hero__photo img,
.today-hero__material,
.today-hero__material img,
.today-next-leg__photo,
.today-next-leg__photo img {
  height: 100%;
  width: 100%;
}

.today-hero__photo img {
  object-fit: cover;
  object-position: 62% 52%;
}

.today-hero__material {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.today-hero__material img { object-fit: fill; }

.today-hero__copy {
  min-height: inherit;
  padding: 288px var(--space-md) var(--space-xl);
  position: relative;
  z-index: 4;
}

.today-hero__copy .state-label {
  color: var(--vermilion-accessible);
  font-size: .875rem;
  letter-spacing: .08em;
  line-height: 1.35;
  margin: 0 0 var(--space-sm);
}

.today-hero__copy h1 {
  color: var(--tropical-green);
  font-size: 3.25rem;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0;
  max-width: 11ch;
  overflow-wrap: anywhere;
}

.today-hero__intent {
  color: var(--tropical-green);
  font-size: 1rem;
  line-height: 1.5;
  margin: var(--space-sm) 0 0;
  max-width: 24ch;
}

.today-hero__copy .primary-action {
  background: var(--vermilion-accessible);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgb(23 49 58 / 18%);
  color: var(--plaster-light);
  gap: var(--space-md);
  justify-content: space-between;
  margin: var(--space-md) 0 0;
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  width: min(100%, 13rem);
}

.today-hero__copy .primary-action svg,
.today-next-leg__copy a svg {
  fill: none;
  flex: 0 0 24px;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.today-hero--quiet {
  background: var(--plaster);
}

.today-hero--quiet::before {
  background: var(--tropical-green);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 44% 52%, 0 36%);
  content: "";
  inset: 0;
  position: absolute;
}

.today-next-leg {
  background: var(--plaster-light);
  min-height: 108px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.today-next-leg__copy {
  align-items: center;
  display: grid;
  gap: var(--space-sm) var(--space-md);
  grid-template-columns: minmax(0, 1fr) 48px;
  min-height: inherit;
  padding: var(--space-md);
  position: relative;
  width: 62%;
  z-index: 2;
}

.today-next-leg__copy h2 {
  color: var(--tropical-green);
  display: flex;
  flex-wrap: wrap;
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 1rem;
  gap: var(--space-sm);
  grid-column: 1 / -1;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  max-width: none;
  white-space: normal;
}

.today-next-leg__copy h2 span { font-weight: 700; }
.today-next-leg__copy h2 i { color: var(--vermilion-accessible); font-style: normal; }

.today-next-leg__copy a {
  align-items: center;
  align-self: end;
  background: var(--tropical-green);
  border-radius: 50%;
  color: var(--plaster-light);
  display: flex;
  grid-column: 1;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.today-next-leg__photo {
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  inset: 0 0 0 36%;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.today-next-leg__photo img {
  object-fit: cover;
  object-position: 50% 52%;
}

.today-belowfold {
  margin-inline: auto;
  max-width: var(--reading);
  padding: var(--space-xl) var(--space-md) 0;
}

.today-belowfold .timeline,
.today-belowfold .quiet-day {
  background: transparent;
  border: 0;
  padding: var(--space-2xl) 0 0;
}

.today-belowfold .timeline h2,
.today-belowfold .quiet-day h2 {
  color: var(--tropical-green);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.today-belowfold .timeline ol { padding-left: var(--space-xl); }

.today-belowfold .timeline ol::before {
  background: var(--tropical-green);
  bottom: var(--space-sm);
  left: 7px;
  top: var(--space-sm);
  width: 2px;
}

.today-belowfold .timeline li {
  border-bottom: 1px solid var(--rule);
  min-height: 0;
  padding: 0 0 var(--space-lg) var(--space-md);
}

.today-belowfold .timeline li + li { padding-top: var(--space-lg); }
.today-belowfold .timeline li:last-child { border-bottom: 0; }

.today-belowfold .timeline li::before {
  background: var(--vermilion-accessible);
  border: 0;
  border-radius: 0;
  height: var(--space-sm);
  left: -29px;
  top: 7px;
  transform: rotate(45deg);
  width: var(--space-sm);
}

.today-belowfold .timeline__period { color: var(--vermilion-accessible); }

.bottom-dock {
  background: var(--tropical-green);
  border: 0;
  box-shadow: 0 -8px 24px rgb(23 49 58 / 16%);
  padding: 0 max(0px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px, env(safe-area-inset-left));
}

.bottom-dock a {
  border: 0;
  color: var(--plaster-light);
  gap: var(--space-xs);
  min-height: 65px;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
}

.bottom-dock a::after {
  background: transparent;
  border-radius: 2px;
  bottom: var(--space-xs);
  content: "";
  height: 4px;
  left: 28%;
  position: absolute;
  right: 28%;
}

.bottom-dock a[aria-current="page"] {
  border: 0;
  color: var(--sun-yellow);
}

.bottom-dock a[aria-current="page"]::after { background: var(--sun-yellow); }
.bottom-dock a[aria-current="page"] svg path:first-child { fill: none; }

.bottom-dock svg {
  height: 24px;
  width: 24px;
}

@media (hover: hover) {
  .bottom-dock a:hover { background: rgb(255 253 246 / 8%); }
  .masthead-action:hover { background: #173f39; color: var(--plaster-light); }
  .today-hero__copy .primary-action:hover { background: #8f3025; }
}

@media (min-width: 45rem) {
  .today-hero {
    min-height: 600px;
  }

  .today-hero__copy {
    padding: 352px var(--space-xl) var(--space-2xl);
  }

  .today-hero__copy h1 { font-size: 3.25rem; }
  .today-next-leg__copy { padding-inline: var(--space-xl); }
}

@media (max-width: 22rem) {
  .trip-masthead { align-items: center; }
  .trip-mark { font-size: 1.5rem; }
  .masthead-action { width: auto; }
  .today-hero { min-height: 521px; }
  .today-hero__copy { padding-top: 288px; }
  .today-hero__copy h1 { font-size: 3.25rem; }
  .today-next-leg__copy { width: 66%; }
}

@media (prefers-reduced-motion: reduce) {
  .today-hero__copy .primary-action { box-shadow: none; }
}

.day-rail {
  background: var(--tropical-green);
  margin-inline: calc(clamp(1rem, 4vw, 3rem) * -1);
  max-width: 100vw;
  min-width: 0;
  padding: var(--space-sm) clamp(1rem, 4vw, 3rem);
  scrollbar-color: var(--sun-yellow) var(--tropical-green);
}

.day-rail ol { gap: 0; }

.day-rail li + li { border-left: 1px solid rgb(255 253 246 / 28%); }

.day-rail a {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--plaster-light);
  min-height: 64px;
  min-width: 104px;
  padding: var(--space-sm) var(--space-md);
}

.day-rail a::after {
  background: transparent;
  bottom: 0;
  content: "";
  height: 4px;
  left: var(--space-md);
  position: absolute;
  right: var(--space-md);
}

.day-rail a[aria-current="page"] {
  background: var(--sun-yellow);
  border: 0;
  box-shadow: none;
  color: var(--blue-black);
}

.day-rail a[aria-current="page"]::after { background: var(--vermilion-accessible); }
.day-rail a[aria-current="page"] .day-rail__destination { color: var(--blue-black); }
.day-rail__destination { color: rgb(255 253 246 / 78%); }
.day-rail__today { color: var(--sun-yellow); }
.day-rail a[aria-current="page"] .day-rail__today { color: var(--blue-black); }

.day-rail a:focus-visible,
.bottom-dock a:focus-visible,
.masthead-action:focus-visible {
  outline-color: var(--sun-yellow);
  box-shadow: 0 0 0 2px var(--plaster);
}

.day-rail a[aria-current="page"]:focus-visible { outline-color: var(--blue-black); }

.day-view {
  margin-inline: auto;
  max-width: var(--reading);
}

.day-opening {
  background: var(--plaster-light);
  margin: var(--space-xl) 0 0;
  position: relative;
}

.day-opening::before {
  background: var(--tropical-green);
  content: "";
  height: var(--space-md);
  inset: 0 0 auto;
  position: absolute;
  z-index: 1;
}

.day-lead {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  position: relative;
}

.day-lead::after {
  background: var(--sun-yellow);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  content: "";
  height: var(--space-sm);
  inset: auto 0 0 0;
  position: absolute;
  width: 38%;
}

.day-lead .state-label {
  color: var(--vermilion-accessible);
  letter-spacing: .08em;
}

.day-lead h1 {
  color: var(--tropical-green);
  font-size: 3.25rem;
  line-height: 1;
  max-width: 10ch;
  overflow-wrap: anywhere;
}

.day-lead > p:not(.state-label) {
  color: var(--blue-black);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 45ch;
}

.day-opening .photo-plate {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 32px rgb(23 49 58 / 16%);
  clip-path: polygon(0 var(--space-lg), 100% 0, 100% 100%, 0 100%);
  margin: 0;
}

.today-hero__copy .state-label { color: var(--reference-paper); }

.day-route-state {
  background: var(--tropical-green);
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
}

.day-route-state .route-thread {
  color: var(--sun-yellow);
  margin: 0;
}

.day-route-state .route-thread__label { color: var(--plaster-light); }
.day-route-state .route-thread__label::before { background: var(--sun-yellow); }

.day-view .timeline,
.day-view .quiet-day {
  background: transparent;
  border: 0;
  padding: var(--space-2xl) 0 0;
}

.day-view .timeline h2,
.day-view .quiet-day h2 {
  color: var(--tropical-green);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.day-view .timeline ol { padding-left: var(--space-xl); }

.day-view .timeline ol::before {
  background: var(--tropical-green);
  bottom: var(--space-sm);
  left: 7px;
  top: var(--space-sm);
  width: 2px;
}

.day-view .timeline li {
  border-bottom: 1px solid var(--rule);
  min-height: 0;
  padding: 0 0 var(--space-lg) var(--space-md);
}

.day-view .timeline li + li { padding-top: var(--space-lg); }
.day-view .timeline li:last-child { border-bottom: 0; }

.day-view .timeline li::before {
  background: var(--vermilion-accessible);
  border: 0;
  border-radius: 0;
  height: var(--space-sm);
  left: -29px;
  top: 7px;
  transform: rotate(45deg);
  width: var(--space-sm);
}

.day-view .timeline__period { color: var(--vermilion-accessible); }

.route-ahead {
  background: var(--tropical-green);
  color: var(--plaster-light);
  isolation: isolate;
  margin: var(--space-2xl) 0;
  min-height: 64px;
  overflow: hidden;
  padding: var(--space-md) var(--space-lg);
  position: relative;
}

.route-ahead::before { background: var(--sun-yellow); }

.route-ahead::after {
  background: var(--vermilion);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
  inset: auto 0 0 auto;
  height: var(--space-xl);
  position: absolute;
  width: var(--space-2xl);
  z-index: -1;
}

.adjacent-days {
  gap: var(--space-sm);
  margin-block: var(--space-2xl);
}

.adjacent-link {
  border: 1px solid var(--tropical-green);
  border-radius: 0;
  color: var(--tropical-green);
  min-height: 48px;
}

.adjacent-link--next {
  background: var(--tropical-green);
  color: var(--plaster-light);
}

.companion-chapter {
  padding-block: var(--space-2xl);
}

.chapter-lead { margin-bottom: var(--space-2xl); }

.chapter-lead h1 {
  color: var(--tropical-green);
  font-size: 3.25rem;
  line-height: 1;
  margin: 0 0 var(--space-md);
  max-width: 11ch;
  overflow-wrap: anywhere;
}

.chapter-lead > p:last-child {
  color: var(--blue-black);
  line-height: 1.5;
}

.route-spine {
  background: var(--plaster-light);
  border: 0;
  border-top: var(--space-md) solid var(--tropical-green);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 56px;
}

.route-spine::before {
  background: var(--vermilion-accessible);
  inset: var(--space-xl) auto var(--space-xl) 28px;
  width: 3px;
}

.route-leg article {
  border-color: var(--rule);
  padding: var(--space-sm) 0 var(--space-xl);
}

.route-leg:not(:last-child) article::after {
  background: var(--sun-yellow);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  content: "";
  display: block;
  height: var(--space-xs);
  margin-top: var(--space-xl);
  width: 96px;
}

.route-stop {
  color: var(--tropical-green);
  font-size: 1.5rem;
  padding-block: var(--space-md) var(--space-sm);
}

.route-stop::before {
  background: var(--plaster-light);
  border-color: var(--vermilion-accessible);
  height: var(--space-md);
  left: -36px;
  top: 22px;
  width: var(--space-md);
}

.route-stop--start::before { background: var(--vermilion-accessible); }
.route-stop--finish::after { border-color: var(--sun-yellow); left: -41px; top: 17px; }
.route-leg__day-label { color: var(--vermilion-accessible); letter-spacing: .08em; }

.route-leg h2 {
  color: var(--blue-black);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.route-leg__facts {
  border-block: 1px solid var(--rule);
  gap: 0;
  margin-bottom: var(--space-md);
}

.route-leg__facts div {
  gap: var(--space-xs) var(--space-md);
  grid-template-columns: minmax(72px, .35fr) minmax(0, 1fr);
  padding-block: var(--space-sm);
}

.route-leg__facts div + div { border-top: 1px solid var(--rule); }
.route-leg__facts dt { color: var(--ink-muted); }
.route-leg__day { color: var(--vermilion-accessible); min-height: 48px; }

.operational-day {
  align-items: center;
  display: inline-flex;
  min-height: 48px;
}

.route-chapter .map-action {
  border: 0;
  border-radius: 0;
  color: var(--tropical-green);
  justify-content: flex-start;
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
  text-decoration: underline;
  text-underline-offset: var(--space-xs);
}

.maps-chapter-note {
  background: color-mix(in srgb, var(--sun-yellow) 34%, var(--plaster));
  border: 0;
  margin-bottom: var(--space-3xl);
  padding: var(--space-md) var(--space-lg);
}

.eat-destination { margin-top: var(--space-3xl); }

.eat-destination__lead {
  align-items: center;
  background: var(--tropical-green);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  overflow: hidden;
  padding: var(--space-md) var(--space-lg);
  position: relative;
}

.eat-destination__lead h2 {
  color: var(--plaster-light);
  font-size: 1.5rem;
  margin: 0;
}

.eat-destination__lead span {
  background: var(--sun-yellow);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  inset: 0 0 0 auto;
  position: absolute;
  width: 72px;
}

.eat-destination > h2 { border: 0; }

.eat-picks {
  background: var(--plaster-light);
  gap: 0;
}

.eat-pick {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--space-lg);
  position: relative;
}

.eat-pick::after {
  border-color: transparent var(--plaster) transparent transparent;
  border-style: solid;
  border-width: 0 var(--space-lg) var(--space-lg) 0;
  content: "";
  height: 0;
  inset: 0 0 auto auto;
  position: absolute;
  width: 0;
}

.eat-pick h3 {
  color: var(--tropical-green);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.eat-pick p { margin-top: var(--space-sm); }
.eat-pick__speciality { color: var(--vermilion-accessible); }

.eat-pick .map-action {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--rule);
  color: var(--tropical-green);
  justify-content: flex-start;
  margin-top: var(--space-md);
  padding: var(--space-md) 0 0;
  text-decoration: underline;
  text-underline-offset: var(--space-xs);
}

.eat-note {
  background: color-mix(in srgb, var(--sun-yellow) 34%, var(--plaster-light));
  border: 0;
  padding: var(--space-lg);
}

@media (hover: hover) {
  .day-rail a:hover { background: rgb(255 253 246 / 10%); }
  .day-rail a[aria-current="page"]:hover { background: var(--sun-yellow); }
  .adjacent-link:hover,
  .route-chapter .map-action:hover,
  .eat-pick .map-action:hover { color: var(--vermilion-accessible); }
  .adjacent-link--next:hover { background: #173f39; color: var(--plaster-light); }
}

@media (min-width: 45rem) {
  .day-rail { margin-inline: calc(clamp(2rem, 6vw, 5rem) * -1); padding-inline: clamp(2rem, 6vw, 5rem); }
  .day-opening { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .day-opening .photo-plate { aspect-ratio: auto; clip-path: polygon(var(--space-xl) 0, 100% 0, 100% 100%, 0 100%); min-height: 416px; }
  .day-lead { align-self: center; padding: var(--space-3xl) var(--space-xl); }
  .eat-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eat-pick:nth-child(odd):not(:last-child) { border-right: 1px solid var(--rule); }
  .eat-pick:last-child { grid-column: 1 / -1; }
}

@media (max-width: 24rem) {
  .day-rail {
    margin-inline: -16px;
    padding-inline: 16px;
    width: calc(100% + 32px);
  }

  .day-lead { padding-inline: var(--space-md); }
  .day-opening .photo-plate { box-shadow: none; }
  .route-spine { padding-inline: 48px var(--space-md); }
  .route-spine::before { left: 24px; }
  .route-stop::before { left: -32px; }
  .route-stop--finish::after { left: -37px; }
  .route-leg__facts div { grid-template-columns: minmax(0, 1fr); }
  .eat-destination__lead,
  .eat-pick,
  .eat-note { padding-inline: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  .day-opening .photo-plate { box-shadow: none; }
}

.access-chapter {
  margin-inline: auto;
  max-width: var(--reading);
  padding-block: var(--space-xl) var(--space-2xl);
}

.access-architecture {
  background: var(--tropical-green);
  box-shadow: 0 16px 36px rgb(23 49 58 / 18%);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.access-screen {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 152px;
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.access-screen span {
  border: 4px solid rgb(255 253 246 / 78%);
  min-height: 36px;
}

.access-screen__circle { border-radius: 50%; }
.access-screen__bar { border-width: 4px 0; }
.access-screen__half { border-bottom: 0 !important; border-radius: 48px 48px 0 0; }
.access-screen__slot { border-width: 0 4px; justify-self: center; width: 52%; }

.access-sheet {
  background: var(--plaster);
  border: 0;
  border-radius: 0;
  margin-top: -48px;
  max-width: none;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  position: relative;
}

.access-sheet::before {
  background: var(--plaster);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  content: "";
  height: var(--space-xl);
  inset: calc(var(--space-xl) * -1) 0 auto;
  position: absolute;
}

.access-sheet h1 {
  color: var(--tropical-green);
  font-size: 3.25rem;
  line-height: 1;
  margin: 0;
  max-width: 9ch;
  overflow-wrap: anywhere;
}

.access-intro {
  color: var(--blue-black);
  line-height: 1.5;
  margin-top: var(--space-md);
}

.pin-form { margin-top: var(--space-xl); }
.form-field { gap: var(--space-sm); }
.form-field label { color: var(--tropical-green); letter-spacing: .04em; }

.form-field input {
  background: var(--plaster-light);
  border-color: var(--blue-black);
  border-radius: 12px;
  caret-color: var(--vermilion-accessible);
  min-height: 56px;
}

.field-help { color: var(--ink-muted); line-height: 1.5; }

.pin-form .primary-action {
  background: var(--vermilion-accessible);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgb(23 49 58 / 18%);
  color: var(--plaster-light);
  margin-top: var(--space-lg);
  min-height: 48px;
}

.access-status { line-height: 1.5; margin-top: var(--space-sm); }

.access-status[role="alert"] {
  background: var(--plaster-light);
  border: 1px solid var(--destructive);
  border-radius: 0;
  padding: var(--space-md);
}

.back-to-following {
  color: var(--tropical-green);
  justify-content: flex-start;
  margin-top: var(--space-md);
  min-height: 48px;
  padding-inline: 0;
}

@media (hover: hover) {
  .back-to-following:hover { color: var(--vermilion-accessible); }
}

@media (min-width: 45rem) {
  .access-architecture {
    display: grid;
    grid-template-columns: minmax(248px, .78fr) minmax(0, 1.22fr);
    min-height: 640px;
  }

  .access-screen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    padding: var(--space-xl);
  }

  .access-sheet { margin: 0; padding: var(--space-3xl) var(--space-xl); }

  .access-sheet::before {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    height: 100%;
    inset: 0 auto 0 calc(var(--space-xl) * -1);
    width: var(--space-xl);
  }
}

@media (max-width: 24rem) {
  .access-chapter { padding-block: var(--space-md) var(--space-2xl); }
  .access-screen { height: 136px; padding-inline: var(--space-lg); }
  .access-sheet { padding: var(--space-xl) var(--space-md) var(--space-2xl); }
}

@media (prefers-reduced-motion: reduce) {
  .access-architecture,
  .pin-form .primary-action { box-shadow: none; }
}

/* Tropical Modernist traveller chapters */
.traveller-masthead .masthead-action {
  justify-content: space-between;
  min-width: 136px;
}

.traveller-day-opening {
  margin-top: var(--space-xl);
}

.traveller-day-opening + .day-route-state {
  margin-top: var(--space-xl);
}

.traveller-details {
  background: color-mix(in srgb, var(--sun-yellow) 24%, var(--plaster-light));
  border: 0;
  margin-top: var(--space-xl);
  padding: 0 var(--space-lg);
}

.traveller-details .stay-block,
.traveller-details .task-notice,
.traveller-details .practical-notice {
  padding-block: var(--space-lg);
}

.traveller-details .stay-block h2,
.traveller-details .task-notice h2,
.traveller-details .practical-notice h2 {
  color: var(--tropical-green);
  letter-spacing: .08em;
}

.transport-block {
  background: color-mix(in srgb, var(--sun-yellow) 20%, var(--plaster));
  border-radius: 0;
  padding: var(--space-md);
}

.transport-block h4 {
  color: var(--tropical-green);
  letter-spacing: .08em;
}

.optional-branches > div {
  background: var(--plaster-light);
  display: block;
}

.optional-branch {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: var(--space-lg);
}

.optional-branch + .optional-branch {
  border-top: 1px solid var(--rule);
}

.optional-branch h3 {
  color: var(--tropical-green);
  font-size: 1.5rem;
}

.day-view > .map-action {
  border-color: var(--tropical-green);
  border-radius: 0;
  color: var(--tropical-green);
}

.trip-chapter,
.more-chapter {
  max-width: var(--reading);
}

.trip-chapter a,
.more-chapter a {
  align-items: center;
  display: inline-flex;
  min-block-size: 48px;
  min-inline-size: 48px;
}

.trip-chapter .chapter-lead,
.more-chapter .chapter-lead {
  background: var(--plaster-light);
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  position: relative;
}

.trip-chapter .chapter-lead::before,
.more-chapter .chapter-lead::before {
  background: var(--tropical-green);
  content: "";
  height: var(--space-md);
  inset: 0 0 auto;
  position: absolute;
}

.trip-chapter .chapter-lead::after,
.more-chapter .chapter-lead::after {
  background: var(--sun-yellow);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  content: "";
  height: var(--space-sm);
  inset: auto 0 0;
  position: absolute;
  width: 38%;
}

.trip-chapter .chapter-lead .state-label,
.more-chapter .chapter-lead .state-label {
  color: var(--vermilion-accessible);
}

.trip-register,
.more-tools {
  gap: var(--space-2xl);
}

.trip-register > section,
.tool-section {
  min-width: 0;
}

.trip-register > section > h2,
.tool-section > h2 {
  background: var(--tropical-green);
  border: 0;
  color: var(--plaster-light);
  font-size: 1.5rem;
  margin: 0;
  min-height: 64px;
  overflow: hidden;
  padding: var(--space-md) 88px var(--space-md) var(--space-lg);
  position: relative;
}

.trip-register > section > h2::after,
.tool-section > h2::after {
  background: var(--sun-yellow);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: 72px;
}

.operational-list,
.packing-groups,
.phrase-list,
.emergency-list,
.money-list {
  background: var(--plaster-light);
}

.operational-list {
  padding-inline: var(--space-lg);
}

.operational-record,
.contact-record {
  padding-block: var(--space-lg);
}

.operational-record h3,
.open-record h3,
.contact-record h3,
.packing-group legend,
.phrase-list dt {
  color: var(--tropical-green);
  font-size: 1.5rem;
}

.operational-record dl {
  border-block: 1px solid var(--rule);
  gap: 0;
  margin-top: var(--space-lg);
}

.operational-record dl div {
  gap: var(--space-xs) var(--space-md);
  grid-template-columns: minmax(96px, .35fr) minmax(0, 1fr);
  padding-block: var(--space-sm);
}

.operational-record dl div + div {
  border-top: 1px solid var(--rule);
}

.reference-row button {
  background: var(--tropical-green);
  border: 0;
}

.open-record {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-lg);
}

.trip-register #open-bookings .operational-list {
  background: color-mix(in srgb, var(--sun-yellow) 24%, var(--plaster-light));
  padding: 0;
}

.trip-empty {
  background: color-mix(in srgb, var(--sun-yellow) 24%, var(--plaster-light));
  padding: var(--space-lg);
}

.packing-count,
.tool-guidance {
  background: color-mix(in srgb, var(--sun-yellow) 24%, var(--plaster-light));
  color: var(--blue-black);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
}

.packing-count {
  color: var(--vermilion-accessible);
}

.packing-groups,
.phrase-list,
.emergency-list {
  padding-inline: var(--space-lg);
}

.packing-clear {
  border-radius: 0;
  margin-left: var(--space-lg);
}

.packing-confirmation {
  border-radius: 0;
  margin-inline: var(--space-lg);
}

.packing-confirmation button {
  border-radius: 12px;
}

.emergency-note {
  background: color-mix(in srgb, var(--sun-yellow) 24%, var(--plaster-light));
  color: var(--blue-black);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
}

.money-list {
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-2xl);
}

@media (hover: hover) {
  .traveller-view.today > .primary-action:hover { background: #8f3025; }
  .reference-row button:hover { background: #173f39; }
  .day-view > .map-action:hover { color: var(--vermilion-accessible); }
}

@media (min-width: 45rem) {
  .traveller-view.today .journey-lead,
  .trip-chapter .chapter-lead,
  .more-chapter .chapter-lead {
    padding-inline: var(--space-xl);
  }

  .traveller-view.today > .traveller-photo {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 24rem) {
  .traveller-masthead {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .traveller-masthead .trip-mark {
    font-size: 1.5rem;
    margin-right: auto;
  }

  .traveller-masthead .masthead-action {
    flex-shrink: 0;
    min-width: 0;
    width: auto;
  }

  .trip-chapter .chapter-lead,
  .more-chapter .chapter-lead {
    padding-inline: var(--space-md);
  }

  .traveller-details,
  .optional-branch,
  .operational-list,
  .packing-groups,
  .phrase-list,
  .emergency-list,
  .money-list {
    padding-inline: var(--space-md);
  }

  .operational-record dl div,
  .reference-row,
  .open-record,
  .emergency-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-row button,
  .packing-confirmation__actions button,
  .offline-ledger__actions button {
    width: 100%;
  }

  .open-record {
    align-items: start;
    gap: var(--space-sm);
    padding-inline: var(--space-md);
  }

  .packing-clear,
  .packing-confirmation {
    margin-inline: var(--space-md);
  }

  .trip-register > section > h2,
  .tool-section > h2 {
    padding-left: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .traveller-view.today > .primary-action,
  .traveller-view.today > .traveller-photo { box-shadow: none; }
}

.offline-ledger,
.update-notice,
.session-notice,
.traveller-gate,
.private-load-error {
  background: var(--plaster-light);
  border: 0;
  border-top: 8px solid var(--tropical-green);
  border-radius: 0;
  box-shadow: 0 8px 24px rgb(23 49 58 / 8%);
  color: var(--blue-black);
  margin: 48px 0 0;
  min-width: 0;
  overflow: visible;
  padding: 24px;
  position: relative;
}

.offline-ledger::after,
.update-notice::after,
.session-notice::after,
.traveller-gate::after,
.private-load-error::after {
  background: var(--sun-yellow);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  content: "";
  height: 24px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
}

.offline-ledger[data-state="expired"],
.offline-ledger[data-state="preparation-failed"],
.update-notice[data-state="failed"] {
  border-top-color: var(--vermilion-accessible);
}

.offline-ledger[data-state="preparation-failed"]::after,
.update-notice[data-state="failed"]::after {
  background: var(--vermilion);
}

.offline-ledger[data-state="preparing"] {
  border-top-color: var(--sun-yellow);
}

.offline-ledger--traveller {
  margin-inline: 24px;
}

.offline-ledger--freshness {
  margin-top: 16px;
  padding: 16px;
}

.offline-ledger__connectivity {
  color: var(--tropical-green);
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.offline-ledger__connectivity::before { display: none; }

.offline-ledger__mark {
  background: var(--tropical-green);
  display: inline-block;
  flex: 0 0 8px;
  height: 8px;
  transform: rotate(45deg);
  width: 8px;
}

.offline-ledger[data-state="offline-ready"] .offline-ledger__mark,
.offline-ledger[data-state="legacy"] .offline-ledger__mark {
  background: transparent;
  border: 2px solid currentColor;
}

.offline-ledger[data-state="preparing"] .offline-ledger__mark { background: var(--sun-yellow); }
.offline-ledger[data-state="expired"] .offline-ledger__mark,
.offline-ledger[data-state="preparation-failed"] .offline-ledger__mark { background: var(--vermilion-accessible); }

.offline-ledger__notice {
  border-top: 1px solid color-mix(in srgb, var(--tropical-green) 38%, transparent);
  margin-top: 16px;
  padding-top: 16px;
}

.offline-ledger__notice h2,
.update-notice h2,
.session-notice h2,
.private-load-error h1 {
  color: var(--blue-black);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 8px;
  max-width: 26ch;
}

.offline-ledger__notice p,
.update-notice p,
.session-notice p,
.private-load-error > p {
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 65ch;
}

.offline-ledger__action,
.update-notice button {
  background: var(--vermilion-accessible);
  border: 0;
  border-radius: 12px;
  color: var(--plaster-light);
  font: 700 .875rem/1.35 var(--sans);
  margin-top: 24px;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 16px;
}

.offline-ledger__action--quiet,
.update-notice__actions button:last-child {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--tropical-green);
  color: var(--tropical-green);
}

.offline-ledger__confirmation {
  border: 1px solid var(--destructive);
  padding: 16px;
}

.offline-ledger__actions,
.update-notice__actions {
  gap: 8px;
  margin-top: 24px;
}

.offline-ledger__actions .offline-ledger__action,
.update-notice__actions button { margin-top: 0; }

.session-notice {
  margin: 0 0 32px;
  padding: 16px 24px;
}

.traveller-gate,
.private-load-error {
  margin-inline: 24px;
  min-height: 192px;
}

.traveller-gate p { color: var(--tropical-green); }

@media (max-width: 24rem) {
  .offline-ledger,
  .update-notice,
  .session-notice,
  .traveller-gate,
  .private-load-error {
    margin-inline: calc(16px - clamp(1rem, 4vw, 3rem));
    padding: 16px;
  }

  .offline-ledger__action,
  .offline-ledger__actions,
  .offline-ledger__actions .offline-ledger__action,
  .update-notice button,
  .update-notice__actions {
    width: 100%;
  }

  .offline-ledger__actions,
  .update-notice__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .offline-ledger__mark { transform: none; }
}

/* September reference replacement */
:root {
  --reference-header: #183239;
  --reference-header-deep: #153238;
  --reference-dock: #0d2126;
  --reference-ground: #f8f4eb;
  --reference-paper: #fffdf7;
  --reference-green: #1b6757;
  --reference-green-deep: #124f45;
  --reference-green-soft: #e6ecdf;
  --reference-amber: #f7dda2;
  --reference-gold: #edc54b;
  --reference-red: #9f301e;
  --reference-red-dark: #842719;
  --reference-ink: #183237;
  --reference-muted: #5c6a67;
  --reference-rule: #d9d9cf;
  --reference-blue-soft: #e8eff2;
  --reference-shadow: 0 4px 14px rgb(13 33 38 / 10%);
  --reference-shadow-raised: 0 8px 24px rgb(13 33 38 / 15%);
  --reference-radius-sm: 10px;
  --reference-radius: 14px;
  --reference-radius-lg: 16px;
  --reference-gutter: clamp(12px, 3.4vw, 16px);

  --plaster: var(--reference-ground);
  --plaster-light: var(--reference-paper);
  --tropical-green: var(--reference-header);
  --vermilion: #b53a28;
  --vermilion-accessible: var(--reference-red);
  --sun-yellow: var(--reference-gold);
  --blue-black: var(--reference-ink);
  --mist: var(--reference-ground);
  --sheet: var(--reference-paper);
  --white: var(--reference-paper);
  --indigo: var(--reference-ink);
  --ink-muted: var(--reference-muted);
  --rule: var(--reference-rule);
  --lacquer: var(--reference-red);
  --lacquer-action: var(--reference-red);
  --jade: var(--reference-green);
  --marigold: var(--reference-gold);
  --destructive: #8c2a25;
  --shell: 60rem;
  --reading: 46rem;
  --dock-reserve: 76px;
}

.visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

html {
  background: var(--reference-ground);
  color: var(--reference-ink);
  scrollbar-gutter: stable;
}

body {
  background: var(--reference-ground);
  color: var(--reference-ink);
  font-family: "Commissioner", system-ui, sans-serif;
  line-height: 1.42;
}

body,
button,
input,
select,
textarea { font-synthesis: none; }

h1,
h2,
h3,
.trip-mark,
.day-row__day,
.day-row__destination,
.venue-row__name,
.trip-card__title {
  font-family: "Literata", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.018em;
}

button,
a,
input,
select,
summary { touch-action: manipulation; }

button,
a,
input,
select { min-block-size: 48px; }

:focus-visible {
  outline: 3px solid var(--reference-gold);
  outline-offset: 3px;
}

.traveller-view h1[tabindex="-1"]:focus,
.companion-chapter h1[tabindex="-1"]:focus,
.today h1[tabindex="-1"]:focus {
  box-shadow: none;
  outline: none;
}

.app-shell {
  background: var(--reference-ground);
  margin: 0 auto;
  max-width: var(--shell);
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-reserve) + max(16px, env(safe-area-inset-bottom)));
}

.companion-chapter,
.traveller-view,
.day-view,
.trip-chapter,
.more-chapter {
  margin-inline: auto;
  max-width: var(--reading);
  padding: 18px var(--reference-gutter) 24px;
}

main:has(> .traveller-view.today) { padding-inline: 0; }

.traveller-view.today {
  --today-edge: var(--reference-gutter);
  padding: 0 var(--today-edge) 24px;
}

.screen-header,
.trip-masthead,
.traveller-masthead {
  align-items: center;
  background: var(--reference-header);
  color: var(--reference-paper);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 64px;
  padding: 7px var(--reference-gutter);
  position: relative;
  width: min(100%, var(--shell));
  z-index: 30;
}

.screen-header::before,
.trip-masthead::before,
.traveller-masthead::before {
  background: var(--reference-gold);
  content: "";
  flex: 0 0 34px;
  height: 34px;
  -webkit-mask: radial-gradient(circle at 50% 80%, #000 0 12%, transparent 13%), conic-gradient(from 225deg at 50% 90%, transparent 0 8%, #000 9% 15%, transparent 16% 21%, #000 22% 28%, transparent 29% 34%, #000 35% 41%, transparent 42% 100%);
  mask: radial-gradient(circle at 50% 80%, #000 0 12%, transparent 13%), conic-gradient(from 225deg at 50% 90%, transparent 0 8%, #000 9% 15%, transparent 16% 21%, #000 22% 28%, transparent 29% 34%, #000 35% 41%, transparent 42% 100%);
  width: 34px;
}

.trip-masthead:has(.trip-mark__lotus)::before,
.traveller-masthead:has(.trip-mark__lotus)::before { display: none; }

.trip-mark {
  align-items: center;
  color: var(--reference-paper);
  display: flex;
  font-size: 1.5rem;
  gap: 8px;
  line-height: 1;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}

.trip-mark__lotus {
  color: var(--reference-gold);
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.trip-mark > span { display: grid; }

.trip-mark strong {
  font-family: "Literata", Georgia, serif;
  font-weight: 400;
}

.trip-mark small,
.brand-tagline {
  color: rgb(255 253 247 / 72%);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1.15;
  margin-top: 3px;
  text-transform: uppercase;
}

.masthead-action,
.back-to-following,
.audience-chip {
  align-items: center;
  background: var(--reference-green);
  border: 0;
  border-radius: 999px;
  color: var(--reference-paper);
  display: inline-flex;
  font-size: .78rem;
  gap: 7px;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  text-decoration: none;
}

.masthead-action svg,
.audience-chip svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.audience-label {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.audience-label::before { display: none; }

.screen-header__audience,
.masthead-audience {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.masthead-mode {
  align-items: end;
  display: grid;
  gap: 1px;
  justify-items: end;
  padding-bottom: 16px;
  position: relative;
}

.masthead-status {
  align-items: center;
  background: var(--reference-green);
  border-radius: 999px;
  color: var(--reference-paper);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  pointer-events: none;
}

.masthead-status svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.masthead-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgb(255 253 247 / 78%);
  display: inline-flex;
  font: 400 .56rem/1.1 "Commissioner", system-ui, sans-serif;
  gap: 3px;
  inset: 0;
  justify-content: flex-end;
  min-block-size: 48px;
  padding: 31px 2px 0;
  position: absolute;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.masthead-switch svg {
  fill: none;
  height: 11px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 11px;
}

.screen-header__audience > a,
.masthead-audience > a {
  color: var(--reference-paper);
  font-size: .68rem;
  min-height: 20px;
  padding: 0 2px;
  text-underline-offset: 3px;
}

.bottom-dock,
.app-dock {
  background: var(--reference-dock);
  border: 0;
  bottom: 0;
  box-shadow: 0 -7px 22px rgb(13 33 38 / 16%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 50%;
  margin: 0;
  max-width: var(--shell);
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  position: fixed;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  z-index: 50;
}

.bottom-dock--traveller,
.bottom-dock--stacked { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bottom-dock a,
.app-dock .dock-item {
  align-items: center;
  border: 0;
  color: var(--reference-paper);
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  font-weight: 400;
  gap: 3px;
  justify-content: center;
  min-height: 76px;
  min-width: 0;
  overflow: visible;
  padding: 7px 2px 6px;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.bottom-dock a::after,
.app-dock .dock-item::after { display: none; }

.bottom-dock svg,
.app-dock .dock-item svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 25px;
}

.bottom-dock a[aria-current="page"],
.app-dock .dock-item[aria-current="page"] {
  color: var(--reference-gold);
  font-weight: 700;
}

.bottom-dock a[aria-current="page"] svg path:first-child,
.app-dock .dock-item[aria-current="page"] svg path:first-child { fill: none; }

.chapter-lead,
.traveller-view.today .journey-lead,
.trip-chapter .chapter-lead,
.more-chapter .chapter-lead {
  background: transparent;
  margin: 0 0 14px;
  overflow: visible;
  padding: 0;
  position: relative;
}

.chapter-lead::before,
.chapter-lead::after,
.traveller-view.today .journey-lead::before,
.traveller-view.today .journey-lead::after,
.trip-chapter .chapter-lead::before,
.trip-chapter .chapter-lead::after,
.more-chapter .chapter-lead::before,
.more-chapter .chapter-lead::after { display: none; }

.chapter-lead h1,
.journey-lead h1,
.day-lead h1,
.trip-chapter .chapter-lead h1,
.more-chapter .chapter-lead h1 {
  color: var(--reference-ink);
  font-size: clamp(2rem, 8vw, 2.55rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
  max-width: none;
  overflow-wrap: normal;
}

.chapter-lead > p:last-child,
.journey-lead > p:not(.state-label),
.day-lead > p:not(.state-label) {
  color: var(--reference-muted);
  font-size: .94rem;
  line-height: 1.35;
  margin: 5px 0 0;
  max-width: 52ch;
}

.state-label {
  color: var(--reference-green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.reference-banner,
.today-hero,
.traveller-photo {
  background: var(--reference-header);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  margin: 0 calc(var(--reference-gutter) * -1);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.today-main .today > .today-hero {
  margin-inline: 0;
  width: 100%;
}

.reference-banner picture,
.reference-banner > img,
.reference-banner picture img,
.today-hero__photo,
.today-hero__photo picture,
.today-hero__photo img,
.traveller-photo picture,
.traveller-photo img {
  border-radius: 0;
  clip-path: none;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.reference-banner::after,
.today-hero::after {
  background: linear-gradient(180deg, transparent 34%, rgb(6 27 31 / 72%) 100%);
  clip-path: none;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.today-hero::before { display: none; }

.reference-banner__copy,
.today-hero__copy {
  bottom: 0;
  color: var(--reference-paper);
  inset-inline: 0;
  padding: 18px var(--reference-gutter);
  position: absolute;
  width: 100%;
  z-index: 2;
}

.today .today-hero__copy {
  bottom: 0;
  inset: auto 0 0;
  padding: 16px 20px 25px;
}

.traveller-view.today > .today-hero {
  border-radius: 0;
  height: 205px;
  isolation: isolate;
  margin: 0 calc(var(--today-edge) * -1);
  width: calc(100% + (var(--today-edge) * 2));
}

.today-hero > .traveller-photo {
  aspect-ratio: auto;
  border-radius: 0;
  clip-path: none;
  height: 100%;
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.traveller-view.today .today-hero__copy {
  inset: auto 0 0;
  min-height: 0;
  padding: 16px 20px 25px;
  z-index: 3;
}

.reference-banner__copy h1,
.reference-banner__copy h2,
.today-hero__copy h1 {
  color: inherit;
  font-size: clamp(2rem, 9vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.reference-banner__copy p,
.today-hero__intent {
  color: inherit;
  font-size: .74rem;
  letter-spacing: .1em;
  line-height: 1.35;
  margin: 6px 0 0;
  max-width: 32ch;
  text-transform: uppercase;
}

.today .today-hero__intent {
  color: var(--reference-paper);
  font-size: .78rem;
  letter-spacing: .015em;
  line-height: 1.3;
  max-width: 29ch;
  text-transform: none;
}

.today .today-hero__copy .state-label { display: none; }

.today .today-hero__copy h1 {
  color: var(--reference-paper);
  font-size: clamp(2.35rem, 10vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.traveller-view.today .today-hero__copy h1 {
  color: #fffdf7;
  filter: none;
  font-size: clamp(2.35rem, 10vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  max-width: none;
  opacity: 1;
  overflow-wrap: normal;
  mix-blend-mode: normal;
  text-shadow: 0 1px 5px rgb(6 27 31 / 42%);
  -webkit-text-fill-color: #fffdf7;
}

.traveller-view.today .today-hero__copy > p,
.today .today-hero__copy > p {
  color: var(--reference-paper);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.3;
  margin: 5px 0 0;
  max-width: 29ch;
  opacity: 1;
  text-shadow: 0 1px 4px rgb(6 27 31 / 42%);
  text-transform: none;
}

.reference-banner.today-banner,
.today-hero { height: clamp(11.875rem, 48vw, 12.8125rem); }

.reference-banner.eat-banner,
.eat-banner { height: clamp(145px, 38vw, 165px); }

.reference-banner.trip-banner,
.trip-banner { height: clamp(9.0625rem, 38vw, 10.3125rem); }

.eat-banner,
.trip-banner {
  background: var(--reference-header);
  border-radius: 0;
  margin-inline: calc(var(--chapter-edge, var(--reference-gutter)) * -1);
  overflow: hidden;
  position: relative;
  width: calc(100% + (var(--chapter-edge, var(--reference-gutter)) * 2));
}

main:has(> .eat-chapter),
main:has(> .trip-chapter),
main:has(> .companion-chapter) { padding-inline: 0; }

.eat-chapter,
.trip-chapter {
  --chapter-edge: var(--reference-gutter);
  padding-top: 0;
}

.eat-banner picture,
.eat-banner img,
.trip-banner picture,
.trip-banner img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eat-banner > .photo-plate,
.trip-banner > .photo-plate {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  height: 100%;
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.trip-banner > .photo-plate picture,
.trip-banner > .photo-plate img,
.trip-record > .photo-plate picture,
.trip-record > .photo-plate img {
  display: block;
  opacity: 1;
  visibility: visible;
}

.eat-banner::after,
.trip-banner::after {
  background: linear-gradient(90deg, rgb(6 27 31 / 76%) 0%, transparent 72%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.eat-banner__copy,
.trip-banner__copy,
.eat-banner > div:not(.photo-plate),
.trip-banner > div:not(.photo-plate) {
  bottom: 15px;
  color: var(--reference-paper);
  left: var(--reference-gutter);
  max-width: 68%;
  position: absolute;
  z-index: 2;
}

.eat-banner__copy h1,
.trip-banner__copy h1,
.eat-banner > div:not(.photo-plate) h1,
.trip-banner > div:not(.photo-plate) h1 {
  color: inherit;
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

.eat-banner__copy p,
.trip-banner__copy p,
.eat-banner > div:not(.photo-plate) p,
.trip-banner > div:not(.photo-plate) p {
  font-size: .67rem;
  letter-spacing: .11em;
  margin: 6px 0 0;
  text-transform: uppercase;
}

.today-hero__material,
.today-hero--quiet::before,
.today-next-leg__photo { clip-path: none; }

.today-hero__material { display: none; }

.today-summary {
  align-items: center;
  background: var(--reference-ground);
  display: grid;
  gap: 5px 14px;
  grid-template-columns: auto 1fr auto;
  padding: 14px 0 9px;
  position: relative;
}

.today-summary > strong {
  border-right: 1px solid var(--reference-rule);
  font-family: "Literata", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  padding-right: 14px;
}

.today-summary > span {
  color: var(--reference-muted);
  font-size: .78rem;
}

.today-summary > span > b,
.today-summary > span > em {
  display: block;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
}

.today-summary > span > b {
  color: var(--reference-muted);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .72rem;
}

.today-summary > span > em {
  color: var(--reference-ink);
  font-family: "Literata", Georgia, serif;
  font-size: 1.12rem;
}

.today-summary::after {
  background: url("/assets/media/banana-leaf-flourish-360.png") right bottom / contain no-repeat;
  content: "";
  height: 92px;
  opacity: .68;
  pointer-events: none;
  position: absolute;
  right: calc(var(--reference-gutter) * -1);
  top: -8px;
  width: 88px;
}

.today-summary__day {
  border-right: 1px solid var(--reference-rule);
  font-family: "Literata", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  padding-right: 14px;
}

.today-summary__date,
.today-summary__place {
  display: block;
  font-size: .76rem;
  line-height: 1.3;
}

.today-summary__place {
  font-family: "Literata", Georgia, serif;
  font-size: 1.25rem;
}

.today-summary__description {
  font-size: .88rem;
  grid-column: 1 / -1;
  line-height: 1.36;
  margin: 3px 70px 0 0;
}

.today-intent {
  font-family: "Literata", Georgia, serif;
  font-size: .92rem;
  line-height: 1.45;
  margin: 10px 0 12px;
}

.next-card,
.next-event-card,
.traveller-view.today .next-event,
.today-next-leg {
  background: var(--reference-header);
  border: 0;
  border-radius: var(--reference-radius-lg);
  color: var(--reference-paper);
  display: grid;
  gap: 10px;
  grid-template-columns: 80px minmax(0, 1fr);
  margin: 7px 0 10px;
  min-height: 128px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.next-card::after,
.next-event-card::after,
.traveller-view.today .next-event::after { display: none; }

.today-next-leg .today-next-leg__copy h2,
.today-next-leg .today-next-leg__copy h2 i { color: var(--reference-paper); }

.next-card picture,
.next-card img,
.next-event-card picture,
.next-event-card img {
  border-radius: var(--reference-radius-sm);
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  width: 100%;
}

.next-event-card > .traveller-photo,
.next-card > .traveller-photo {
  aspect-ratio: auto;
  border-radius: var(--reference-radius-sm);
  clip-path: none;
  height: 104px;
  margin: 0;
  min-height: 0;
  width: 80px;
}

.next-event-card > div,
.next-card > div { align-self: center; min-width: 0; }

.traveller-view.today > .next-event-card {
  grid-template-columns: 80px minmax(0, 1fr);
  max-height: 132px;
  min-height: 128px;
}

.next-card__content { min-width: 0; }

.next-event-card:not(:has(picture, img)) { grid-template-columns: minmax(0, 1fr); }

.next-card__eyebrow {
  color: var(--reference-gold);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: none;
}

.next-event-card .state-label,
.traveller-view.today .next-event .state-label {
  color: var(--reference-gold);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 4px;
  text-transform: none;
}

.next-event-card .state-label > span { display: block; }

.next-event-card .state-label > time {
  color: rgb(255 253 247 / 72%);
  display: block;
  font-size: .65rem;
  font-weight: 400;
  margin-top: 2px;
}

.traveller-view.today .next-event h2 {
  color: var(--reference-paper);
  font-family: "Literata", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
  text-transform: none;
}

.next-card__title,
.traveller-view.today .next-event p {
  color: var(--reference-paper);
  font-family: "Literata", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.traveller-view.today .next-event .next-event-card__stay {
  color: rgb(255 253 247 / 72%);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .65rem;
  line-height: 1.2;
  margin-top: 5px;
}

.next-card__meta {
  border-top: 1px solid rgb(255 253 247 / 25%);
  color: rgb(255 253 247 / 82%);
  display: flex;
  flex-wrap: wrap;
  font-size: .7rem;
  gap: 7px 14px;
  margin-top: 10px;
  padding-top: 8px;
}

.departure-alert,
.notice-strip,
.traveller-alert,
.task-notice,
.practical-notice {
  align-items: center;
  background: var(--reference-amber);
  border: 0;
  border-radius: var(--reference-radius);
  color: var(--reference-ink);
  display: grid;
  gap: 3px 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  margin: 9px 0;
  min-height: 62px;
  padding: 10px 12px;
}

.departure-alert::before,
.notice-strip::before,
.traveller-alert::before {
  color: var(--reference-red);
  content: "!";
  font-family: "Literata", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  grid-row: 1 / span 2;
  text-align: center;
}

.departure-alert:has(> svg)::before,
.notice-strip:has(> svg)::before,
.traveller-alert:has(> svg)::before { display: none; }

.departure-alert > svg,
.notice-strip > svg,
.traveller-alert > svg {
  fill: none;
  height: 26px;
  stroke: var(--reference-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 26px;
}

.departure-alert strong,
.notice-strip strong,
.traveller-alert strong { color: var(--reference-red-dark); }

.departure-alert p,
.notice-strip p,
.traveller-alert p { font-size: .72rem; margin: 0; }

.primary-action,
.action-primary,
.route-primary-action {
  align-items: center;
  background: linear-gradient(180deg, #b83b29 0%, var(--reference-red) 100%);
  border: 0;
  border-radius: var(--reference-radius);
  box-shadow: 0 3px 10px rgb(13 33 38 / 12%);
  color: var(--reference-paper);
  display: flex;
  font-family: "Literata", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.primary-action:hover,
.action-primary:hover,
.route-primary-action:hover { background: var(--reference-red-dark); }

.action-grid,
.paired-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 9px 0;
}

.action-grid > a,
.action-grid > button,
.paired-actions > a,
.paired-actions > button,
.secondary-action,
.map-action,
.adjacent-link {
  align-items: center;
  background: var(--reference-paper);
  border: 1px solid #e6e3d9;
  border-radius: var(--reference-radius);
  color: var(--reference-ink);
  display: flex;
  font-size: .78rem;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 54px;
  padding: 9px 11px;
  text-align: left;
  text-decoration: none;
}

.paired-actions > * {
  margin: 0;
  min-width: 0;
  overflow-wrap: normal;
  width: 100%;
  word-break: normal;
}

.traveller-view.today > .primary-action {
  box-shadow: 0 3px 10px rgb(13 33 38 / 12%);
  margin: 9px 0;
  width: 100%;
}

.traveller-view.today > .paired-actions {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.traveller-view.today > .paired-actions > * { min-height: 56px; }

.paired-actions .map-action {
  flex-wrap: nowrap;
  gap: 7px;
  justify-content: center;
  white-space: normal;
}

.paired-actions .map-action > span {
  flex: 0 1 auto;
  min-width: 0;
}

.paired-actions .map-action > small {
  align-items: center;
  color: var(--reference-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .62rem;
  gap: 3px;
  line-height: 1.15;
  white-space: nowrap;
}

.paired-actions .map-action > small svg {
  flex-basis: 14px;
  height: 14px;
  width: 14px;
}

.action-grid svg,
.paired-actions svg,
.secondary-action svg,
.map-action svg {
  fill: none;
  flex: 0 0 23px;
  height: 23px;
  stroke: var(--reference-green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 23px;
}

.status-strip,
.offline-ledger--freshness {
  background: var(--reference-green-soft);
  border: 0;
  border-radius: var(--reference-radius);
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 9px 0 0;
  overflow: hidden;
  padding: 0;
}

.status-strip > *,
.offline-ledger--freshness > * { padding: 10px 12px; }

.status-strip > * + *,
.offline-ledger--freshness > * + * { border-left: 1px solid #cfd7cb; }

.status-strip strong { font-size: .78rem; }
.status-strip small { color: var(--reference-muted); display: block; font-size: .68rem; }

.today .route-thread { display: none; }

.today-belowfold {
  margin-inline: auto;
  max-width: var(--reading);
  padding: 6px 0 0;
}

.today-belowfold .timeline,
.today-belowfold .quiet-day {
  background: var(--reference-paper);
  border-radius: var(--reference-radius);
  margin: 8px 0;
  padding: 12px;
}

.today-belowfold .timeline h2,
.today-belowfold .quiet-day h2 {
  color: var(--reference-ink);
  font-size: 1.22rem;
  margin: 0 0 7px;
}

.today-belowfold .timeline ol { padding: 0; }

.today-belowfold .timeline li {
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 48px;
  padding: 8px 0;
}

.today-belowfold .timeline li::before,
.today-belowfold .timeline ol::before { display: none; }

.today-belowfold .timeline__period {
  grid-column: 1;
  line-height: 1.25;
}

.today-belowfold .timeline__detail {
  grid-column: 2;
  line-height: 1.25;
  overflow-wrap: normal;
}

.days-overview {
  background: var(--reference-ground);
  isolation: isolate;
  overflow: hidden;
  padding: 8px 0 18px;
  position: relative;
}

.days-overview .chapter-lead {
  isolation: isolate;
  position: relative;
}

.days-overview__flourish,
.days-flourish {
  height: auto;
  max-height: 118px;
  object-fit: contain;
  opacity: .82;
  pointer-events: none;
  position: absolute;
  right: -12px;
  top: -4px;
  width: min(42%, 172px);
  z-index: 0;
}

.days-flourish img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.days-overview .chapter-lead > h1,
.days-overview .chapter-lead > p {
  position: relative;
  z-index: 1;
}

.days-overview > h1 {
  font-size: clamp(2rem, 8vw, 2.45rem);
  margin: 0;
  max-width: 72%;
}

.days-overview > p {
  color: var(--reference-muted);
  font-family: "Literata", Georgia, serif;
  font-size: .9rem;
  margin: 4px 0 17px;
  max-width: 70%;
}

.trip-progress,
.days-progress {
  align-items: center;
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius);
  display: grid;
  gap: 10px 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 86px;
  padding: 12px 14px;
  position: relative;
}

.days-progress {
  gap: 2px 12px;
  grid-template-columns: 56px 58px minmax(0, 1fr);
}

.trip-progress__ring {
  align-items: center;
  border: 7px solid color-mix(in srgb, var(--reference-green) 20%, transparent);
  border-top-color: var(--reference-green-deep);
  border-radius: 50%;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.days-progress::before {
  border: 7px solid color-mix(in srgb, var(--reference-green) 20%, transparent);
  border-top-color: var(--reference-green-deep);
  border-radius: 50%;
  content: "";
  grid-row: 1 / span 3;
  height: 56px;
  width: 56px;
}

.trip-progress strong {
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.days-progress strong {
  font-family: "Literata", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  grid-column: 2;
  grid-row: 1 / span 2;
  line-height: 1;
}

.days-progress span {
  color: var(--reference-ink);
  font-size: .72rem;
  font-weight: 700;
  grid-column: 3;
  grid-row: 1;
  line-height: 1.15;
}

.days-progress em {
  color: var(--reference-muted);
  font-size: .66rem;
  font-style: normal;
  grid-column: 3;
  grid-row: 2;
  line-height: 1.2;
}

.trip-progress small {
  color: var(--reference-muted);
  display: block;
  font-size: .68rem;
}

.day-filters,
.category-pills,
.eat-filters {
  display: flex;
  gap: 7px;
  margin: 10px 0;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.day-filters::-webkit-scrollbar,
.category-pills::-webkit-scrollbar,
.eat-filters::-webkit-scrollbar { display: none; }

.day-filters button,
.day-filters a,
.category-pills button,
.category-pills a,
.eat-filters a {
  align-items: center;
  background: #f1f0eb;
  border: 1px solid #e2e1db;
  border-radius: 999px;
  color: var(--reference-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font: 400 .74rem/1.2 "Commissioner", system-ui, sans-serif;
  gap: 6px;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 15px;
  text-decoration: none;
}

.day-filters button[aria-pressed="true"],
.day-filters a[aria-current="page"],
.category-pills button[aria-pressed="true"],
.category-pills a[aria-current="true"],
.eat-filters a[aria-current="page"] {
  background: var(--reference-green-deep);
  border-color: var(--reference-green-deep);
  color: var(--reference-paper);
}

.day-list,
.day-rows,
.venue-list {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.day-row {
  align-items: center;
  background: rgb(255 253 247 / 68%);
  border: 1px solid #ebe8df;
  border-radius: var(--reference-radius);
  display: grid;
  gap: 3px 11px;
  grid-template-columns: 72px 58px minmax(0, 1fr) 76px;
  min-height: 96px;
  overflow: hidden;
  padding: 6px 9px 6px 6px;
  position: relative;
}

.day-row[hidden] { display: none; }

.day-row > picture,
.day-row > img,
.day-row__image {
  border-radius: 9px;
  grid-row: 1 / span 3;
  height: 66px;
  object-fit: cover;
  width: 72px;
}

.day-row > a:first-child {
  align-self: center;
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  height: 66px;
  min-width: 0;
  width: 72px;
}

.day-row > a:first-child .photo-plate {
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  clip-path: none;
  height: 100%;
  min-height: 66px;
  overflow: hidden;
  width: 100%;
}

.day-row > a:first-child .photo-plate picture,
.day-row > a:first-child .photo-plate img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.day-row > div:nth-child(2) { display: contents; }

.day-row > div:nth-child(2) .state-label {
  color: var(--reference-muted);
  font-size: .62rem;
  letter-spacing: 0;
  margin-bottom: 2px;
  text-transform: none;
}

.day-row > div:nth-child(2) h2 {
  display: contents;
  font-size: 1.08rem;
  line-height: 1.08;
  margin: 0;
}

.day-row > div:nth-child(2) p:not(.state-label) {
  color: var(--reference-muted);
  font-size: .68rem;
  line-height: 1.22;
  margin: 3px 0 0;
}

.day-row__copy > p:not(.day-row__date) {
  grid-column: 3 / 4;
  grid-row: 3;
}

.day-row__open {
  align-items: center;
  color: var(--reference-muted);
  display: flex;
  font-family: "Literata", Georgia, serif;
  font-size: 1.5rem;
  grid-column: 4;
  grid-row: 2 / span 2;
  justify-content: center;
  min-width: 32px;
  text-decoration: none;
}

.day-row__day {
  font-size: 1.16rem;
  grid-column: 2;
  line-height: 1.1;
}

.day-row__number {
  align-self: center;
  display: block;
  font-family: "Literata", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 400;
  grid-column: 2;
  grid-row: 1 / span 2;
  line-height: 1.05;
  padding-left: 2px;
}

.day-row__date {
  color: var(--reference-muted);
  font-size: .64rem;
  grid-column: 3;
  grid-row: 1;
}

.day-row__destination {
  display: block;
  font-size: 1rem;
  grid-column: 3;
  grid-row: 2;
  line-height: 1.1;
}

.day-row__intent {
  color: var(--reference-muted);
  font-size: .7rem;
  grid-column: 2 / -1;
  line-height: 1.25;
}

.day-row__status {
  align-items: center;
  align-self: start;
  background: var(--reference-green-soft);
  border-radius: 999px;
  color: var(--reference-green-deep);
  display: inline-flex;
  font-size: .64rem;
  gap: 4px;
  grid-column: 4;
  grid-row: 1;
  min-height: 30px;
  padding: 5px 8px;
}

.day-row.is-current,
.day-row--current {
  align-items: start;
  background: color-mix(in srgb, var(--reference-amber) 70%, var(--reference-paper));
  border-color: #f1d38c;
  min-height: 164px;
  padding-block: 9px;
}

.day-row.is-current .day-row__status,
.day-row--current .day-row__status {
  background: var(--reference-amber);
  color: var(--reference-ink);
}

.day-row__current {
  background: rgb(255 253 247 / 76%);
  border-radius: var(--reference-radius-sm);
  display: grid;
  font-size: .68rem;
  gap: 2px;
  grid-column: 1 / -1;
  margin-top: 5px;
  min-height: 54px;
  padding: 9px 11px;
}

.day-row__current strong { color: var(--reference-red-dark); }

.day-row__details {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 7px;
}

.day-row__facts {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 7px;
}

.day-row__facts > a {
  align-items: center;
  background: rgb(255 253 247 / 74%);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-ink);
  display: grid;
  font-size: .66rem;
  gap: 2px 7px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 62px;
  padding: 8px 9px;
  text-decoration: none;
}

.day-row__facts > a > svg {
  fill: none;
  grid-row: 1 / span 2;
  height: 20px;
  stroke: var(--reference-green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.day-row__facts > a > span {
  color: var(--reference-muted);
  line-height: 1.1;
}

.day-row__facts > a > strong {
  font-family: "Literata", Georgia, serif;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.15;
}

.day-row__detail {
  background: rgb(255 253 247 / 74%);
  border-radius: var(--reference-radius-sm);
  font-size: .68rem;
  min-height: 62px;
  padding: 9px;
}

.route-overview { margin: 9px 0 12px; }

.route-overview__map.route-map {
  aspect-ratio: 12 / 7;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 55%), transparent 48%),
    repeating-linear-gradient(28deg, transparent 0 22px, rgb(24 50 57 / 7%) 23px 24px),
    #e6e7d9;
  border-radius: var(--reference-radius-lg);
  min-height: 200px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.route-map > svg {
  display: block;
  height: 100%;
  max-width: 100%;
  width: 100%;
}

.route-map__water { fill: #b9d9d8; opacity: .72; }

.route-map__path,
.route-map__flight {
  fill: none;
  stroke: var(--reference-green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.route-map__flight { stroke-dasharray: 6 7; }

.route-map__point circle:first-child { fill: var(--reference-green-deep); }
.route-map__point circle:nth-child(2) { fill: var(--reference-gold); }
.route-map__point--sydney circle:first-child { fill: var(--reference-header); }
.route-map__point--hoi-an circle:first-child { fill: var(--reference-red); }

.route-map__point text {
  fill: var(--reference-ink);
  font: 700 12px/1 "Commissioner", system-ui, sans-serif;
  paint-order: stroke;
  stroke: rgb(248 244 235 / 92%);
  stroke-width: 4px;
}

.route-map__key {
  background: rgb(255 253 247 / 88%);
  border-radius: 999px;
  bottom: 10px;
  color: var(--reference-muted);
  font-size: .64rem;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
}

.route-overview > .maps-requirement {
  color: var(--reference-muted);
  font-size: .68rem;
  margin: 7px 2px 0;
}

.route-timeline {
  background: var(--reference-paper);
  border-radius: var(--reference-radius);
  margin: 10px 0;
  overflow: hidden;
  padding: 10px 12px;
}

.route-timeline > h2 {
  font-size: 1.4rem;
  margin: 0;
  padding: 0 0 9px;
}

.route-timeline .route-spine {
  background: transparent;
  border: 0;
  border-radius: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.route-timeline .route-spine::before {
  background: var(--reference-rule);
  content: "";
  inset: 20px auto 24px 15px;
  position: absolute;
  width: 2px;
}

.route-timeline .route-leg {
  border-bottom: 1px solid var(--reference-rule);
  display: grid;
  gap: 9px;
  grid-template-columns: 32px minmax(0, 1fr);
  min-width: 0;
  padding: 10px 0;
  position: relative;
}

.route-timeline .route-leg:last-child { border-bottom: 0; }

.route-leg__marker {
  align-items: center;
  background: var(--reference-green-deep);
  border: 3px solid var(--reference-paper);
  border-radius: 50%;
  color: var(--reference-paper);
  display: flex;
  font-size: .64rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  position: relative;
  width: 30px;
  z-index: 1;
}

.route-leg:nth-child(3) .route-leg__marker { background: var(--reference-red); }

.route-leg article {
  border: 0;
  min-width: 0;
  padding: 0;
}

.route-leg:not(:last-child) article::after { display: none; }

.route-leg__day-label {
  color: var(--reference-red-dark);
  font-size: .66rem;
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.route-leg h3 {
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

.route-leg__facts {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 7px 0;
}

.route-leg__facts div {
  background: var(--reference-green-soft);
  border-radius: 9px;
  min-width: 0;
  padding: 7px 8px;
}

.route-leg__facts dt {
  color: var(--reference-muted);
  font-size: .61rem;
  font-weight: 700;
}

.route-leg__facts dd {
  font-size: .72rem;
  line-height: 1.2;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.route-leg__actions {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-leg__actions > .route-leg__day,
.route-leg__actions .map-action {
  align-items: center;
  border: 1px solid #e4e1d7;
  border-radius: var(--reference-radius-sm);
  color: var(--reference-green-deep);
  display: flex;
  font-size: .67rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 7px;
  text-align: center;
  text-decoration: none;
}

.route-leg__actions .maps-action-group { margin: 0; min-width: 0; }
.route-leg__actions .map-action svg { height: 16px; width: 16px; }

.route-leg__home {
  color: var(--reference-muted);
  font-size: .62rem;
  grid-column: 2;
}

.eat-destination {
  margin-top: 14px;
  scroll-margin-top: 12px;
}

#hoi-an > .eat-destination__lead {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.eat-destination__lead {
  background: transparent;
  padding: 0 2px 6px;
}

.eat-destination__lead::before,
.eat-destination__lead::after,
.eat-pick::before,
.eat-pick::after { display: none; }

.eat-destination__lead h2 {
  color: var(--reference-ink);
  font-size: 1.28rem;
  font-weight: 400;
  margin: 0;
}

.eat-picks { display: grid; gap: 0; }

.eat-chapter .eat-row {
  align-items: start;
  border-bottom: 1px solid var(--reference-rule);
  display: grid;
  gap: 4px 11px;
  grid-template-columns: 120px minmax(0, 1fr);
  min-width: 0;
  padding: 7px 42px 7px 0;
  position: relative;
}

.eat-chapter .eat-row > .eat-row__photo {
  align-self: start;
  border-radius: var(--reference-radius-sm);
  display: block;
  grid-column: 1;
  grid-row: 1;
  height: 96px;
  min-height: 0;
  overflow: hidden;
  width: 120px;
}

.eat-chapter .eat-row > .eat-row__photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eat-row__copy {
  grid-column: 2;
  min-width: 0;
}

.eat-pick h3 {
  color: var(--reference-ink);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.eat-pick__speciality {
  color: var(--reference-muted);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eat-pick p {
  font-size: .68rem;
  line-height: 1.24;
  margin: 3px 0 0;
}

.eat-pick__booking { color: var(--reference-muted); }

.eat-row .maps-action-group {
  margin: 0;
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
}

.eat-row .map-action {
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: .66rem;
  justify-content: center;
  min-height: 48px;
  padding: 0;
  width: 48px;
}

.eat-row .map-action svg { height: 16px; width: 16px; }

.eat-row .map-action span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.maps-chapter-note {
  border-radius: var(--reference-radius-sm);
  font-size: .68rem;
  margin: 5px 0 7px;
  padding: 7px 10px;
}

.dishes-strip {
  align-items: center;
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(96px, 1fr) repeat(3, 54px);
  margin: 10px 0;
  min-height: 82px;
  padding: 9px;
}

.dishes-strip__lead {
  display: grid;
  font-size: .66rem;
  grid-template-columns: 26px minmax(0, 1fr);
  line-height: 1.18;
}

.dishes-strip__lead > span {
  color: var(--reference-green-deep);
  font-size: 1.2rem;
  grid-row: 1 / span 2;
}

.dishes-strip__lead small {
  color: var(--reference-muted);
  font-size: .56rem;
  grid-column: 2;
}

.dishes-strip figure { margin: 0; min-width: 0; text-align: center; }

.dishes-strip picture,
.dishes-strip img {
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.dishes-strip figcaption { font-size: .52rem; line-height: 1.1; margin-top: 3px; }

.eat-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 16px;
}

.eat-actions > * { min-height: 52px; min-width: 0; }

.trip-register,
.more-tools { gap: 12px; }

.trip-highlights {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
}

.trip-supporting {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -7px 0 14px;
}

.trip-supporting > a {
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-ink);
  display: grid;
  gap: 2px;
  min-height: 62px;
  min-width: 0;
  padding: 9px 10px;
  text-decoration: none;
}

.trip-supporting strong {
  font-family: "Literata", Georgia, serif;
  font-size: .87rem;
  font-weight: 400;
}

.trip-supporting span {
  color: var(--reference-muted);
  font-size: .62rem;
  line-height: 1.2;
}

.trip-card,
.trip-record,
.operational-list,
.packing-groups,
.phrase-list,
.emergency-list,
.money-list {
  background: var(--reference-paper);
  border: 1px solid #e8e4da;
  border-radius: var(--reference-radius);
  box-shadow: 0 2px 8px rgb(13 33 38 / 6%);
  overflow: hidden;
  padding: 0 11px;
}

.trip-card {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 9px;
}

.trip-record {
  align-items: start;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 9px;
}

.trip-record > .photo-plate {
  background: transparent;
  border: 0;
  border-radius: var(--reference-radius-sm);
  box-shadow: none;
  clip-path: none;
  grid-row: 1 / span 6;
  height: 118px;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  width: 108px;
}

.trip-highlights .trip-record > .photo-plate {
  grid-column: 1;
  grid-row: 1 / span 4;
}

.trip-highlights .trip-record > div { display: contents; }

.trip-highlights .trip-record > div > .trip-record__label,
.trip-highlights .trip-record > div > h2,
.trip-highlights .trip-record > div > .operational-date,
.trip-highlights .trip-record > div > .operational-condition,
.trip-highlights .trip-record > div > dl {
  grid-column: 2;
  min-width: 0;
}

.trip-highlights .trip-record > div > .trip-record__label { grid-row: 1; }
.trip-highlights .trip-record > div > h2 { grid-row: 2; }
.trip-highlights .trip-record > div > .operational-date { grid-row: 3; }
.trip-highlights .trip-record > div > .operational-condition,
.trip-highlights .trip-record > div > dl { grid-row: 4; }

.trip-highlights .trip-record > div > .booking-fact {
  align-items: center;
  border-top: 1px solid var(--reference-rule);
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-row: 5;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  margin-top: 3px;
  min-width: 0;
  padding-top: 7px;
}

.trip-highlights .booking-fact > .fact-row > span,
.trip-highlights .reference-row p span {
  font-size: .61rem;
  font-weight: 700;
}

.trip-highlights .booking-fact > .fact-row strong,
.trip-highlights .reference-row strong { font-size: .68rem; }

.trip-highlights .reference-row {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  min-width: 0;
}

.trip-highlights .reference-row button {
  font-size: .66rem;
  min-height: 48px;
  padding: 7px 9px;
}

.trip-highlights .copy-status {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.today-runtime-status > p {
  align-items: center;
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-muted);
  display: flex;
  font-size: .68rem;
  margin: 8px 0 0;
  min-height: 48px;
  padding: 8px 12px;
}

.day-lead::after { display: none; }

.trip-record > .photo-plate picture,
.trip-record > .photo-plate img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.trip-card > picture,
.trip-card > img,
.trip-card__image,
.trip-record > picture,
.trip-record > img,
.trip-record__image {
  border-radius: var(--reference-radius-sm);
  grid-row: 1 / span 5;
  height: 118px;
  object-fit: cover;
  width: 108px;
}

.trip-card__label {
  color: var(--reference-green-deep);
  font-size: .67rem;
  font-weight: 700;
}

.trip-record__label {
  color: var(--reference-green-deep);
  font-size: .67rem;
  font-weight: 700;
}

.trip-card__title {
  font-size: 1.2rem;
  line-height: 1.1;
}

.trip-record__title {
  font-family: "Literata", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.1;
}

.trip-record h2 {
  font-size: 1.12rem;
  line-height: 1.08;
  margin: 0;
}

.trip-record .operational-date,
.trip-record .operational-condition {
  color: var(--reference-muted);
  font-size: .66rem;
  line-height: 1.22;
  margin: 3px 0 0;
}

.trip-record > div > dl {
  display: grid;
  font-size: .66rem;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 6px 0 0;
}

.trip-record > div > dl div {
  background: var(--reference-green-soft);
  border-radius: 7px;
  min-width: 0;
  padding: 5px 6px;
}

.trip-highlights .trip-record--transport > div > dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-highlights .trip-record--transport > div > dl div {
  padding: 4px 5px;
}

.trip-highlights .trip-record--transport > div > dl dt,
.trip-highlights .trip-record--transport > div > dl dd {
  font-size: .59rem;
  line-height: 1.12;
}

.trip-card__facts {
  display: grid;
  font-size: .69rem;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-record__facts {
  display: grid;
  font-size: .69rem;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-card .action-grid,
.trip-record .paired-actions { grid-column: 1 / -1; }

.trip-register > section,
.tool-section { scroll-margin-top: 16px; }

.trip-register > section > h2,
.tool-section > h2 {
  background: transparent;
  border: 0;
  color: var(--reference-ink);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 7px;
  min-height: 0;
  padding: 0;
}

.trip-register > section > h2::after,
.tool-section > h2::after { display: none; }

.operational-record,
.contact-record {
  border: 0;
  padding: 14px 0;
}

.operational-record h3,
.open-record h3,
.contact-record h3,
.packing-group legend,
.phrase-list dt {
  color: var(--reference-ink);
  font-size: 1.12rem;
  font-weight: 400;
}

.operational-record dl {
  border: 0;
  margin-top: 9px;
}

.operational-record dl div { padding-block: 5px; }

.reference-row button,
.packing-confirm,
.offline-ledger__action,
.update-notice button {
  background: var(--reference-red);
  border: 0;
  border-radius: var(--reference-radius-sm);
  color: var(--reference-paper);
}

.open-record,
.trip-empty,
.travel-tasks {
  background: var(--reference-amber);
  border: 0;
  border-radius: var(--reference-radius);
  padding: 11px;
}

.packing-clear,
.packing-confirmation,
.packing-confirmation button {
  border-radius: var(--reference-radius-sm);
}

.offline-ledger,
.update-notice,
.session-notice,
.traveller-gate,
.private-load-error {
  background: var(--reference-green-soft);
  border: 0;
  border-radius: var(--reference-radius);
  box-shadow: none;
  color: var(--reference-ink);
  margin: 12px 0 0;
  overflow: hidden;
  padding: 14px;
}

.offline-ledger::after,
.update-notice::after,
.session-notice::after,
.traveller-gate::after,
.private-load-error::after { display: none; }

.offline-ledger__mark { border-radius: 50%; transform: none; }

.offline-ledger__action--quiet,
.update-notice__actions button:last-child {
  background: var(--reference-paper);
  box-shadow: inset 0 0 0 1px var(--reference-green-deep);
  color: var(--reference-green-deep);
}

.access-chapter {
  background: var(--reference-ground);
  min-height: calc(100dvh - var(--dock-reserve));
  padding: 24px var(--reference-gutter);
}

.access-sheet {
  background: var(--reference-paper);
  border: 0;
  border-radius: var(--reference-radius-lg);
  box-shadow: var(--reference-shadow-raised);
  margin: 0 auto;
  max-width: 34rem;
  padding: 24px;
}

.access-sheet::before,
.access-screen__half { display: none; }

.form-field input {
  background: var(--reference-ground);
  border: 1px solid var(--reference-rule);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-ink);
  min-height: 56px;
}

/* September reference fidelity repair */
.section-switch {
  align-items: stretch;
  background: var(--reference-ground);
  border-bottom: 1px solid var(--reference-rule);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -8px 0 6px;
  padding: 4px 0;
}

.section-switch a {
  align-items: center;
  border-radius: var(--reference-radius-sm);
  color: var(--reference-muted);
  display: flex;
  font-size: .78rem;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.section-switch a[aria-current="page"] {
  background: var(--reference-green-soft);
  color: var(--reference-green-deep);
  font-weight: 700;
}

.traveller-view.today > .section-switch {
  margin-inline: calc(var(--today-edge) * -1);
  padding-inline: var(--today-edge);
}

.today-main .today:not(.traveller-view) > .section-switch {
  padding-inline: var(--reference-gutter);
}

.photo-plate--placeholder {
  align-items: center;
  background: var(--reference-green-soft);
  color: var(--reference-green-deep);
  display: flex;
  justify-content: center;
}

.photo-plate--placeholder svg {
  fill: none;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 34px;
}

.today-next-leg.next-event-card {
  grid-template-columns: 94px minmax(0, 1fr);
  margin: 10px 0;
  min-height: 124px;
  padding: 10px;
}

.today-next-leg .today-next-leg__copy {
  align-content: center;
  display: grid;
  gap: 3px;
  min-height: 0;
  padding: 0;
}

.today-next-leg .today-next-leg__copy h2 {
  color: var(--reference-paper);
  font-size: 1.16rem;
  line-height: 1.08;
  margin: 0;
}

.today-next-leg .today-next-leg__copy > p:not(.state-label) {
  color: rgb(255 253 247 / 76%);
  font-size: .76rem;
  line-height: 1.25;
  margin: 0;
}

.today-next-leg .today-next-leg__copy > a {
  align-items: center;
  color: var(--reference-gold);
  display: inline-flex;
  font-size: .75rem;
  gap: 5px;
  min-height: 32px;
  text-decoration: none;
}

.today-next-leg .today-next-leg__copy > a svg {
  height: 16px;
  width: 16px;
}

.journey-complete-card {
  background: var(--reference-header);
  border-radius: var(--reference-radius);
  color: var(--reference-paper);
  margin: 12px 0;
  padding: 15px;
}

.journey-complete-card h2 {
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 3px 0 5px;
}

.journey-complete-card p:last-child {
  color: rgb(255 253 247 / 78%);
  font-size: .8rem;
  margin: 0;
}

.next-event-card__detail {
  color: rgb(255 253 247 / 76%) !important;
  font-family: "Commissioner", system-ui, sans-serif !important;
  font-size: .76rem !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  margin-top: 3px !important;
}

.next-event-card__facts {
  border-top: 1px solid rgb(255 253 247 / 18%);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 6px;
  padding-top: 6px;
}

.next-event-card__facts span,
.next-event-card__stay {
  color: rgb(255 253 247 / 78%);
  font-size: .72rem;
  line-height: 1.2;
}

.next-event-card__open {
  align-items: center;
  color: var(--reference-paper);
  display: flex;
  font: 400 1.6rem/1 "Literata", Georgia, serif;
  height: 48px;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  position: absolute;
  right: 3px;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
}

.days-overview .chapter-lead {
  min-height: 68px;
  margin-bottom: 8px;
  padding-right: min(40vw, 150px);
}

.days-overview .chapter-lead > p {
  max-width: 30ch;
}

.days-progress::before {
  background: radial-gradient(circle, var(--reference-green-soft) 0 50%, transparent 52%), conic-gradient(var(--reference-green-deep) var(--days-completed, 0%), color-mix(in srgb, var(--reference-green) 20%, transparent) 0);
  border: 0;
}

.days-progress {
  min-height: 72px;
  padding-block: 8px;
}

.days-progress::before {
  height: 50px;
  width: 50px;
}

.day-filters {
  flex-wrap: wrap;
  margin-block: 6px;
  overflow-x: visible;
}

.day-row {
  align-items: center;
  gap: 4px 10px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 4px 7px 4px 6px;
}

.day-row > a:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.day-row > div:nth-child(2) {
  align-self: center;
  display: grid;
  gap: 2px 9px;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.day-row > div:nth-child(2) .day-row__date {
  align-self: baseline;
  font-size: .72rem;
  grid-column: 2;
  grid-row: 1;
}

.day-row > div:nth-child(2) h2 {
  align-items: baseline;
  display: contents;
}

.day-row__number {
  font-size: 1.05rem;
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 0;
}

.day-row__destination {
  font-size: 1rem;
  grid-column: 2;
  grid-row: 2;
}

.day-row__copy > p:not(.day-row__date),
.day-row > div:nth-child(2) p:not(.state-label):not(.day-row__date) {
  color: var(--reference-muted);
  font-size: .75rem;
  grid-column: 1 / -1;
  grid-row: 3;
  line-height: 1.24;
  margin: 2px 0 0;
}

.day-row__status {
  align-self: start;
  font-size: .7rem;
  grid-column: 3;
  grid-row: 1;
  min-height: 30px;
  white-space: nowrap;
}

.day-row__status svg,
.day-detail-status svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.day-row__open {
  grid-column: 3;
  grid-row: 2;
  min-height: 48px;
  min-width: 48px;
}

.day-row--current {
  min-height: 0;
}

.day-row--current > a:first-child {
  align-self: start;
}

.day-row__current,
.day-row__facts {
  grid-column: 1 / -1;
}

.day-detail {
  background: var(--reference-ground);
  max-width: var(--reading);
  padding-top: 8px;
}

.day-detail-hero {
  background: var(--reference-header);
  height: clamp(10rem, 42vw, 11.5rem);
  margin: 0 calc(var(--reference-gutter) * -1) 10px;
  overflow: hidden;
  position: relative;
}

.day-detail-hero > .photo-plate,
.day-detail-hero > .traveller-photo {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  height: 100%;
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
}

.day-detail-hero > .photo-plate picture,
.day-detail-hero > .photo-plate img,
.day-detail-hero > .traveller-photo picture,
.day-detail-hero > .traveller-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.day-detail-hero::after {
  background: linear-gradient(180deg, transparent 28%, rgb(6 27 31 / 78%) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.day-detail-hero__copy {
  bottom: 0;
  color: var(--reference-paper);
  inset-inline: 0;
  padding: 14px var(--reference-gutter) 16px;
  position: absolute;
  z-index: 2;
}

.day-detail-hero__copy p {
  color: var(--reference-gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.day-detail-hero__copy h1 {
  color: inherit;
  font-size: clamp(2rem, 9vw, 2.65rem);
  line-height: 1;
  margin: 0;
}

.day-detail-hero__copy span {
  color: rgb(255 253 247 / 82%);
  display: block;
  font-size: .78rem;
  line-height: 1.3;
  margin-top: 5px;
  max-width: 44ch;
}

.day-detail-summary {
  background: var(--reference-paper);
  border-radius: var(--reference-radius);
  box-shadow: 0 2px 8px rgb(13 33 38 / 6%);
  display: grid;
  gap: 0;
  grid-template-columns: 1.15fr .8fr 1.35fr;
  margin: 0 0 10px;
  overflow: hidden;
}

.day-detail-summary > * {
  color: var(--reference-ink);
  display: grid;
  gap: 2px;
  min-height: 58px;
  min-width: 0;
  padding: 9px 10px;
  text-decoration: none;
}

.day-detail-summary > * + * { border-left: 1px solid var(--reference-rule); }

.day-detail-summary span {
  color: var(--reference-muted);
  font-size: .68rem;
}

.day-detail-summary strong {
  align-items: center;
  display: flex;
  font-family: "Literata", Georgia, serif;
  font-size: .77rem;
  font-weight: 400;
  gap: 5px;
  line-height: 1.2;
}

.day-detail > .timeline {
  background: var(--reference-header);
  border: 0;
  border-radius: var(--reference-radius);
  color: var(--reference-paper);
  margin: 0;
  padding: 13px 14px;
}

.day-detail > .timeline h2 {
  color: inherit;
  font-size: 1.22rem;
  margin: 0 0 6px;
}

.day-detail > .timeline ol {
  display: grid;
  gap: 0;
  padding: 0;
}

.day-detail > .timeline ol::before,
.day-detail > .timeline li::before { display: none; }

.day-detail > .timeline li {
  border-bottom: 1px solid rgb(255 253 247 / 18%);
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  min-height: 0;
  padding: 9px 0;
}

.day-detail > .timeline li:last-child { border-bottom: 0; }

.day-detail > .timeline .timeline__period {
  color: var(--reference-gold);
  font-size: .72rem;
  grid-column: 1;
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: normal;
  text-transform: none;
  word-break: normal;
}

.day-detail > .timeline h3 {
  color: inherit;
  font-family: "Literata", Georgia, serif;
  font-size: .94rem;
  font-weight: 400;
  grid-column: 2;
  line-height: 1.18;
  margin: 0;
}

.day-detail > .timeline .timeline__detail,
.day-detail > .timeline .transport-block,
.day-detail > .timeline .booking-fact {
  grid-column: 2;
}

.day-detail > .timeline .timeline__detail {
  color: rgb(255 253 247 / 74%);
  font-size: .74rem;
  margin: 0;
}

.day-detail > .timeline .transport-block,
.day-detail > .timeline .booking-fact {
  background: rgb(255 253 247 / 10%);
  border: 0;
  border-radius: var(--reference-radius-sm);
  color: var(--reference-paper);
  margin-top: 5px;
  padding: 8px;
}

.day-detail > .timeline .fact-row > span {
  color: rgb(255 253 247 / 72%);
}

.day-detail > .timeline .transport-block h4 {
  color: var(--reference-paper);
}

.day-detail > .timeline .fact-row strong,
.day-detail .stay-block,
.day-detail .task-notice,
.day-detail .practical-notice,
.day-detail .traveller-details p,
.day-detail .traveller-details li {
  overflow-wrap: normal;
  word-break: normal;
}

.day-detail .route-ahead {
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-green-deep);
  font-size: .78rem;
  margin: 9px 0;
  min-height: 0;
  padding: 10px 12px;
}

.day-detail .route-ahead::before,
.day-detail .route-ahead::after { display: none; }

.day-detail-primary,
.day-detail-action .map-action {
  align-items: center;
  background: var(--reference-red);
  border: 0;
  border-radius: var(--reference-radius-sm);
  color: var(--reference-paper);
  display: flex;
  justify-content: center;
  margin: 9px 0;
  min-height: 54px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.day-detail-action .map-action span { color: inherit; font-size: .95rem; }
.day-detail-action .map-action small { color: rgb(255 253 247 / 82%); }

.day-detail .traveller-details {
  align-items: start;
  background: transparent;
  border: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  margin: 10px 0;
  min-height: 0;
  padding: 0;
}

.day-detail .stay-block,
.day-detail .task-notice,
.day-detail .practical-notice {
  background: var(--reference-green-soft);
  border: 0;
  border-radius: var(--reference-radius);
  display: block;
  margin: 0;
  min-height: 0;
  min-width: 0;
  padding: 11px;
}

.day-detail .task-notice,
.day-detail .practical-notice { background: var(--reference-amber); }

.day-detail .practical-notice {
  grid-column: 1 / -1;
}

.day-detail .traveller-details h2 {
  color: var(--reference-muted);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: none;
}

.day-detail .task-notice h2,
.day-detail .practical-notice h2 {
  color: var(--reference-ink);
}

.day-detail .traveller-details p,
.day-detail .traveller-details li { font-size: .76rem; }

.day-detail .task-notice li {
  align-items: flex-start;
}

.traveller-alert:empty {
  display: none;
}

.day-detail .adjacent-days {
  gap: 7px;
  margin: 10px 0 14px;
}

.day-detail .adjacent-link {
  border: 1px solid var(--reference-rule);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-green-deep);
  font-size: .75rem;
}

.day-detail .adjacent-link--next {
  background: var(--reference-green-soft);
  color: var(--reference-green-deep);
}

.route-overview .notice-strip {
  background: var(--reference-amber);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-ink);
  font-size: .76rem;
  margin: 8px 0;
  padding: 10px 12px;
}

.route-overview .route-primary-action {
  display: flex;
  margin: 8px 0;
  min-height: 54px;
  width: 100%;
}

.route-overview > .paired-actions { margin: 0 0 10px; }

.route-timeline .route-spine { padding: 8px 10px; }
.route-timeline .route-leg { padding: 8px 0 8px 34px; }
.route-leg article { padding: 0; }
.route-timeline .route-leg__facts {
  grid-template-columns: minmax(0, 1fr);
  margin: 5px 0;
}
.route-timeline .route-leg__facts div {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: 54px minmax(0, 1fr);
}
.route-timeline .route-leg__facts dd {
  font-size: .76rem;
  overflow-wrap: normal;
  word-break: normal;
}

.eat-picks { grid-template-columns: minmax(0, 1fr); }
.eat-pick p { font-size: .76rem; line-height: 1.28; }
.eat-pick__speciality {
  font-size: .73rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}
.eat-pick h3 { font-size: 1.12rem; }

.dishes-strip__lead > span svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.trip-record__transport-icon {
  align-items: center;
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-green-deep);
  display: flex;
  grid-row: 1 / span 6;
  height: 118px;
  justify-content: center;
  width: 108px;
}

.trip-record__transport-icon svg {
  fill: none;
  height: 48px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 48px;
}

.trip-record .operational-date,
.trip-record .operational-condition { font-size: .74rem; }

.trip-record > div > dl,
.trip-card__facts,
.trip-record__facts { font-size: .72rem; }

.trip-highlights .booking-fact > .fact-row > span,
.trip-highlights .reference-row p span { font-size: .68rem; }

.trip-highlights .booking-fact > .fact-row strong,
.trip-highlights .reference-row strong { font-size: .75rem; overflow-wrap: normal; }

.trip-highlights .reference-row button {
  background: transparent;
  border: 1px solid var(--reference-rule);
  border-radius: 8px;
  color: var(--reference-green-deep);
  min-height: 48px;
  padding: 5px 8px;
}

.trip-highlights .trip-record--transport {
  grid-template-columns: 64px minmax(0, 1fr);
}

.trip-highlights .trip-record--transport > .trip-record__transport-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  height: 64px;
  width: 64px;
}

.trip-highlights .trip-record--transport > .trip-record__transport-icon svg {
  height: 32px;
  width: 32px;
}

.trip-highlights .trip-record--transport > div > h2 {
  font-size: 1.05rem;
}

.trip-highlights .trip-record--transport > div > dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 2;
  margin-top: 4px;
}

.trip-highlights .trip-record--transport > div > dl div {
  align-items: baseline;
  display: flex;
  flex: 0 1 auto;
  gap: 3px;
  padding: 4px 6px;
}

.trip-highlights .trip-record--transport > div > dl dt,
.trip-highlights .trip-record--transport > div > dl dd {
  font-size: .64rem;
  overflow-wrap: normal;
  word-break: normal;
}

.travel-task-panel {
  align-items: center;
  background: var(--reference-amber);
  border-radius: var(--reference-radius);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: -4px 0 14px;
  padding: 10px 11px;
}

.travel-task-panel > div { display: grid; gap: 2px; }
.travel-task-panel span { color: var(--reference-ink); font-size: .68rem; }
.travel-task-panel strong { font-family: "Literata", Georgia, serif; font-size: .9rem; font-weight: 400; }
.travel-task-panel p { font-size: .72rem; margin: 0; }
.travel-task-panel a {
  align-items: center;
  color: var(--reference-red-dark);
  display: flex;
  font-size: .72rem;
  font-weight: 700;
  min-height: 48px;
  padding-inline: 6px;
}

@media (hover: hover) {
  .bottom-dock a:hover,
  .app-dock .dock-item:hover { background: rgb(255 255 255 / 7%); }
  .action-grid > a:hover,
  .action-grid > button:hover,
  .secondary-action:hover { background: #f1efe7; }
  .day-row:hover { border-color: #c9d1c6; }
}

@media (min-width: 45rem) {
  .screen-header,
  .trip-masthead,
  .traveller-masthead { padding-inline: 24px; }

  .companion-chapter,
  .traveller-view,
  .day-view,
  .trip-chapter,
  .more-chapter { padding-inline: 24px; }

  .traveller-view.today { --today-edge: 24px; }
  .eat-chapter,
  .trip-chapter { --chapter-edge: 24px; }

  .reference-banner,
  .today-hero,
  .traveller-photo {
    border-radius: 0 0 var(--reference-radius-lg) var(--reference-radius-lg);
    margin-inline: 0;
  }

  .reference-banner.today-banner,
  .today-hero { height: 12.8125rem; }

  .reference-banner.eat-banner,
  .eat-banner { height: 165px; }

  .reference-banner.trip-banner,
  .trip-banner { height: 10.3125rem; }

  .day-list,
  .day-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-row.is-current,
  .day-row--current { grid-row: span 2; }
  .route-map { max-height: 360px; }
  .venue-row,
  .eat-row,
  .eat-pick { grid-template-columns: 160px minmax(0, 1fr) auto; }
  .venue-row > picture,
  .venue-row > img,
  .venue-row__image { width: 160px; }
  .eat-row > picture,
  .eat-row > img,
  .eat-row__image,
  .eat-row > .photo-plate { width: 160px; }
}

@media (max-width: 24rem) {
  :root { --reference-gutter: 12px; }

  .screen-header,
  .trip-masthead,
  .traveller-masthead {
    gap: 6px;
    padding-block: 6px;
  }

  .screen-header::before,
  .trip-masthead::before,
  .traveller-masthead::before {
    flex-basis: 28px;
    height: 28px;
    width: 28px;
  }

  .trip-mark { font-size: 1.28rem; }
  .trip-mark small,
  .brand-tagline { font-size: .48rem; }

  .masthead-action,
  .back-to-following,
  .audience-chip {
    min-width: 0;
    padding-inline: 9px;
  }

  .bottom-dock a,
  .app-dock .dock-item {
    font-size: .68rem;
    min-height: 72px;
  }

  .bottom-dock,
  .app-dock { min-height: calc(72px + env(safe-area-inset-bottom)); }

  .today-summary { grid-template-columns: auto minmax(0, 1fr); }
  .today-summary__description { margin-right: 38px; }

  .next-card,
  .traveller-view.today .next-event,
  .today-next-leg { grid-template-columns: 80px minmax(0, 1fr); }

  .action-grid { grid-template-columns: minmax(0, 1fr); }

  .day-row {
    gap-inline: 7px;
    grid-template-columns: 64px 52px minmax(56px, 1fr) 68px;
    padding-right: 6px;
  }

  .day-row > picture,
  .day-row > img,
  .day-row__image { height: 60px; width: 64px; }

  .day-row > a:first-child { height: 60px; width: 64px; }
  .day-row > a:first-child .photo-plate { min-height: 60px; width: 100%; }

  .day-row__details { grid-template-columns: minmax(0, 1fr); }

  .venue-row,
  .eat-row,
  .eat-pick { grid-template-columns: 104px minmax(0, 1fr); }

  .eat-chapter .eat-row { grid-template-columns: 104px minmax(0, 1fr); }

  .eat-chapter .eat-row > .eat-row__photo { width: 104px; }

  .venue-row > picture,
  .venue-row > img,
  .venue-row__image { height: 88px; width: 104px; }
  .eat-row > picture,
  .eat-row > img,
  .eat-row__image,
  .eat-row > .photo-plate { height: 88px; width: 104px; }

  .eat-chapter .eat-row { grid-template-columns: 104px minmax(0, 1fr); }
  .eat-chapter .eat-row > .eat-row__photo { height: 88px; width: 104px; }

  .dishes-strip { grid-template-columns: minmax(72px, .8fr) repeat(3, minmax(38px, .4fr)); }
  .dishes-strip picture,
  .dishes-strip img { height: 36px; width: 36px; }

  .trip-card,
  .trip-record { grid-template-columns: 88px minmax(0, 1fr); }
  .trip-card > picture,
  .trip-card > img,
  .trip-card__image,
  .trip-record > picture,
  .trip-record > img,
  .trip-record__image { height: 104px; width: 88px; }

  .trip-card__facts,
  .trip-record__facts,
  .route-leg__facts { grid-template-columns: minmax(0, 1fr); }

  .trip-record > .photo-plate { height: 104px; width: 88px; }
}

@media (max-width: 60rem) {
  html { scrollbar-gutter: auto; }
}

@media (max-width: 21rem), (min-resolution: 1dppx) and (max-width: 24rem) {
  .bottom-dock a span,
  .app-dock .dock-item span {
    overflow-wrap: normal;
    white-space: normal;
    word-break: keep-all;
  }
}

@media (max-width: 24rem) {
  .screen-header,
  .trip-masthead,
  .traveller-masthead {
    align-items: center;
    flex-wrap: wrap;
    min-height: 64px;
  }

  .trip-mark { flex: 1 1 150px; }
  .masthead-mode { flex: 0 1 auto; }

  .day-row {
    align-items: start;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 0;
    padding: 7px 34px 7px 6px;
  }

  .day-row > a:first-child {
    align-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .day-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .day-row > div:nth-child(2) .day-row__date,
  .day-row__number,
  .day-row__destination,
  .day-row__copy > p:not(.day-row__date),
  .day-row > div:nth-child(2) p:not(.state-label):not(.day-row__date) {
    grid-column: 1;
    grid-row: auto;
  }

  .day-row__number { font-size: 1rem; }
  .day-row__destination { font-size: .95rem; }

  .day-row__status {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .day-row__open {
    bottom: 6px;
    grid-column: auto;
    grid-row: auto;
    min-height: 48px;
    min-width: 48px;
    position: absolute;
    right: 2px;
  }

  .day-row__current,
  .day-row__facts {
    grid-column: 1 / -1;
  }

  .day-row__facts,
  .day-detail .traveller-details { grid-template-columns: minmax(0, 1fr); }

  .day-detail-summary { grid-template-columns: minmax(0, 1fr); }
  .day-detail-summary > * + * { border-left: 0; border-top: 1px solid var(--reference-rule); }

  .day-detail > .timeline li { grid-template-columns: minmax(0, 1fr); }
  .day-detail > .timeline .timeline__period,
  .day-detail > .timeline h3,
  .day-detail > .timeline .timeline__detail,
  .day-detail > .timeline .transport-block,
  .day-detail > .timeline .booking-fact { grid-column: 1; }

  .trip-highlights .trip-record {
    grid-template-columns: minmax(0, 1fr);
    padding: 9px;
  }

  .trip-highlights .trip-record > .photo-plate,
  .trip-highlights .trip-record > .trip-record__transport-icon {
    grid-column: 1;
    grid-row: 1;
    height: 108px;
    width: 100%;
  }

  .trip-highlights .trip-record > div > .trip-record__label,
  .trip-highlights .trip-record > div > h2,
  .trip-highlights .trip-record > div > .operational-date,
  .trip-highlights .trip-record > div > .operational-condition,
  .trip-highlights .trip-record > div > dl,
  .trip-highlights .trip-record > div > .booking-fact {
    grid-column: 1;
    grid-row: auto;
  }

  .trip-highlights .trip-record > div > .trip-record__label { margin-top: 5px; }
  .trip-highlights .booking-fact { grid-template-columns: minmax(0, 1fr); }
  .travel-task-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Readable operational sections */
.today .traveller-glance {
  background: var(--reference-paper);
  border: 1px solid var(--reference-rule);
  border-radius: var(--reference-radius);
  margin-block: 12px;
  padding: 10px 12px;
}

.today .traveller-glance > h2 {
  font-size: .72rem;
  letter-spacing: .05em;
  margin: 0 0 2px;
}

.today .glance-row {
  gap: 3px 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  padding-block: 9px;
}

.today .glance-row > span {
  font-size: .68rem;
  letter-spacing: .03em;
}

.today .glance-row > strong {
  font-size: .78rem;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}

.today .glance-row--check strong { align-items: flex-start; }

.offline-ledger {
  padding: 12px;
}

.offline-ledger__connectivity {
  font-size: .72rem;
  letter-spacing: .06em;
  line-height: 1.25;
}

.offline-ledger__notice {
  margin-top: 10px;
  padding-top: 10px;
}

.offline-ledger__notice h2 {
  font-size: 1.05rem;
  line-height: 1.18;
  margin-bottom: 6px;
  max-width: 32ch;
}

.offline-ledger__notice p {
  font-size: .82rem;
  line-height: 1.4;
}

.offline-ledger__notice p + p { margin-top: 4px; }
.offline-ledger__action { margin-top: 14px; }
.offline-ledger__actions { margin-top: 14px; }

.today .freshness {
  margin-top: 18px;
  padding-block: 14px 18px;
}

.trip-register { gap: 24px; }

.trip-register > section > h2,
.tool-section > h2 { margin-bottom: 10px; }

.trip-register .operational-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
  overflow: visible;
  padding: 0;
}

.trip-register .operational-list > li {
  background: var(--reference-paper);
  border: 1px solid #e8e4da;
  border-radius: var(--reference-radius);
  box-shadow: 0 2px 8px rgb(13 33 38 / 6%);
  list-style: none;
  min-width: 0;
  overflow: hidden;
}

.trip-register .operational-list > li + li { border-top: 1px solid #e8e4da; }

.trip-register .operational-record,
.trip-register .contact-record {
  padding: 14px;
}

.trip-register .operational-record h3,
.trip-register .contact-record h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.trip-register .operational-record dl {
  border: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  margin-top: 10px;
}

.trip-register .operational-record dl div {
  background: var(--reference-green-soft);
  border: 0;
  border-radius: 8px;
  display: block;
  min-width: 0;
  padding: 7px 8px;
}

.trip-register .operational-record dl div + div { border-top: 0; }

.trip-register .operational-record dt {
  font-size: .68rem;
  line-height: 1.2;
}

.trip-register .operational-record dd {
  font-size: .82rem;
  line-height: 1.3;
  margin-top: 2px;
  overflow-wrap: normal;
  word-break: normal;
}

.trip-register .booking-fact {
  margin-top: 10px;
  padding-top: 10px;
}

.trip-register .fact-row { gap: 2px; }
.trip-register .fact-row > span { font-size: .68rem; }
.trip-register .fact-row strong { font-size: .8rem; overflow-wrap: normal; }

.trip-register .reference-row {
  align-items: center;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  margin-top: 8px;
}

.trip-register .reference-row p span { font-size: .68rem; }
.trip-register .reference-row strong { font-size: .8rem; overflow-wrap: normal; }

.trip-register .reference-row button {
  background: var(--reference-paper);
  box-shadow: inset 0 0 0 1px var(--reference-green-deep);
  color: var(--reference-green-deep);
  font-size: .72rem;
  min-height: 48px;
  padding: 6px 10px;
  width: auto;
}

.more-tools { gap: 24px; }

.more-settings {
  align-items: center;
  border-bottom: 1px solid var(--reference-rule);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 4px 0 20px;
  padding: 12px 0 16px;
}

.more-settings h2 {
  color: var(--reference-ink);
  font-size: 1.12rem;
  font-weight: 400;
  margin: 0 0 3px;
}

.more-settings p {
  color: var(--reference-muted);
  font-size: .76rem;
  line-height: 1.4;
  margin: 0;
  max-width: 48ch;
}

.more-settings a {
  background: var(--reference-green-soft);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-green-deep);
  font-size: .76rem;
  font-weight: 700;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
}

.more-settings a:focus-visible {
  outline: 3px solid var(--reference-gold);
  outline-offset: 2px;
}

@media (max-width: 30rem) {
  .more-settings { align-items: stretch; grid-template-columns: minmax(0, 1fr); }
  .more-settings a { width: 100%; }
}

.app-update-page,
.app-update-page .app-update-panel { min-width: 0; }
.app-update-page [hidden] { display: none; }

.app-update-page .app-update-panel {
  margin-top: 16px;
}

.app-update-versions {
  background: var(--reference-paper);
  border-radius: var(--reference-radius-sm);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 14px 0 0;
  padding: 12px;
}

.app-update-versions dt {
  color: var(--reference-muted);
  font-size: .72rem;
}

.app-update-versions dd {
  color: var(--reference-ink);
  font-size: .78rem;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-update-page .update-notice__actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.app-update-page .update-notice__actions > * {
  justify-content: center;
  min-height: 48px;
  min-width: min(100%, 10rem);
}

@media (max-width: 30rem) {
  .app-update-page .update-notice__actions { flex-direction: column; }
  .app-update-page .update-notice__actions > * { width: 100%; }
}

.money-list {
  counter-reset: money-item;
  list-style: none;
  padding: 8px 12px;
}

.money-list li {
  counter-increment: money-item;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  min-width: 0;
  padding: 14px 0;
}

.money-list li::before {
  color: var(--reference-green-deep);
  content: counter(money-item) ".";
  font-family: "Literata", Georgia, serif;
  font-size: .75rem;
  line-height: 1.5;
}

@media (max-width: 21rem) {
  .days-overview .chapter-lead {
    min-height: 0;
    padding-right: 0;
    padding-top: 72px;
  }

  .days-overview__flourish,
  .days-flourish {
    max-height: 76px;
    opacity: .7;
    right: -8px;
    top: 0;
    width: 118px;
  }

  .days-progress {
    grid-template-columns: 50px auto minmax(0, 1fr);
    padding-inline: 10px;
  }

  .days-progress::before { height: 50px; width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .screen-header,
  .trip-masthead,
  .traveller-masthead,
  .bottom-dock,
  .app-dock { display: none; }

  .app-shell { padding-bottom: 0; }
}
/* The map uses projected geography; its legend reflows independently of the drawing. */
.route-map.vietnam-map {
  aspect-ratio: auto;
  background: var(--reference-paper);
  border-radius: var(--reference-radius-lg);
  margin: 0 auto 16px;
  max-height: none;
  max-width: 520px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.vietnam-map > svg { display: block; height: auto; width: 100%; }
.vietnam-map__sea { fill: #d7e9e7; }
.vietnam-map__neighbour { fill: #ede9de; stroke: #b2b7a6; stroke-width: 1; }
.vietnam-map__country { fill: #b8cfae; stroke: #6e907a; stroke-width: 1.3; }
.vietnam-map__context { fill: #66796d; font: 500 14px 'Commissioner', sans-serif; letter-spacing: 1.2px; }
.vietnam-map__context .vietnam-map__sea-label { fill: #42696d; font-size: 16px; font-style: italic; letter-spacing: 0; }
.vietnam-map__context .vietnam-map__country-label { fill: #325447; font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.vietnam-map__journey path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vietnam-map__land-route { stroke: var(--reference-green-deep); stroke-width: 3.5; }
.vietnam-map__flight { stroke: var(--reference-red); stroke-width: 2.7; stroke-dasharray: 5 6; }
.vietnam-map__international { stroke: #536f72; stroke-width: 2; stroke-dasharray: 3 6; }
.vietnam-map__arrow { stroke: #536f72; stroke-width: 2; }
.vietnam-map__stop circle { fill: var(--reference-green-deep); stroke: var(--reference-paper); stroke-width: 2; }
.vietnam-map__stop text { fill: #fffdf7; font: 700 17px 'Commissioner', sans-serif; }
.vietnam-map__connection { fill: var(--reference-paper); stroke: var(--reference-red); stroke-width: 2; }
.vietnam-map__labels { fill: var(--reference-ink); font-family: 'Commissioner', sans-serif; }
.vietnam-map__labels path { fill: none; stroke: #54706d; stroke-width: 1; }
.vietnam-map__labels text { paint-order: stroke; stroke: #e3ece1; stroke-linejoin: round; stroke-width: 4px; }
.vietnam-map__place { font-size: 22px; font-weight: 700; }
.vietnam-map__transit { font-size: 18px; font-weight: 700; }
.vietnam-map__note { font-size: 16px; }
.vietnam-map__north { fill: #42696d; stroke: #42696d; stroke-width: 1.5; font: 600 14px 'Commissioner', sans-serif; }
.vietnam-map__north text { stroke: none; }
.vietnam-map figcaption { padding: 16px; }
.vietnam-map__stops { counter-reset: map-stop; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.vietnam-map__stops li { min-width: 0; padding: 0; }
.vietnam-map__stops li::before { color: var(--reference-green-deep); content: counter(map-stop) '. '; counter-increment: map-stop; font-size: .85rem; font-weight: 700; }
.vietnam-map__stops strong { font-size: .85rem; }
.vietnam-map__stops span { color: var(--reference-muted); display: block; font-size: .76rem; margin-top: 4px; }
.vietnam-map__legend { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; font-size: .76rem; margin: 16px 0 8px; }
.vietnam-map__legend span { align-items: center; display: inline-flex; gap: 6px; }
.vietnam-map__legend span::before { border-top: 3px solid var(--reference-green-deep); content: ''; width: 24px; }
.vietnam-map__legend span + span::before { border-color: var(--reference-red); border-top-style: dashed; }
.vietnam-map__caption { color: var(--reference-muted); font-size: .76rem; line-height: 1.5; margin: 0; }
@media (max-width: 360px) {
  .vietnam-map__stops { grid-template-columns: 1fr; gap: 8px; }
  .vietnam-map__stops span { display: inline; margin-left: 8px; }
}

/* Day detail navigation */
.day-strip {
  display: flex;
  gap: 6px;
  margin: 2px calc(var(--reference-gutter) * -1) 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px var(--reference-gutter) 8px;
  scrollbar-color: var(--reference-rule) transparent;
  scrollbar-width: thin;
  scroll-padding-inline: var(--reference-gutter);
  scroll-snap-type: inline proximity;
  touch-action: pan-x;
}

.day-strip a {
  align-items: center;
  background: var(--reference-paper);
  border-radius: var(--reference-radius-sm);
  color: var(--reference-muted);
  display: grid;
  flex: 0 0 max(5.5rem, 88px);
  grid-template-rows: auto auto auto;
  justify-items: center;
  min-height: 58px;
  padding: 7px 8px;
  scroll-snap-align: center;
  text-align: center;
  text-decoration: none;
}

.day-strip small {
  line-height: 1.12;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-strip strong,
.day-strip span { line-height: 1.12; white-space: nowrap; }

.day-strip strong { color: var(--reference-ink); font-size: .74rem; }
.day-strip span { font-size: .66rem; }
.day-strip small { font-family: "Literata", Georgia, serif; font-size: .67rem; }

.day-strip a[aria-current="page"] {
  background: var(--reference-header);
  box-shadow: 0 4px 14px rgb(13 33 38 / 12%);
  color: rgb(255 253 247 / 78%);
}

.day-strip a[aria-current="page"] strong,
.day-strip a[aria-current="page"] small { color: var(--reference-paper); }

.day-strip a:focus-visible {
  outline: 3px solid var(--reference-gold);
  outline-offset: 2px;
}

@media (min-width: 45rem) {
  .day-strip { justify-content: safe center; }
}
/* Daily directions follow the same compact, inset rhythm as trip records. */
.daily-route,
.route-day-picker {
  margin: 1.5rem 0;
  scroll-margin-top: 1rem;
}
.daily-route h2,
.route-day-picker h2 {
  margin: 0 0 .5rem;
  font: 400 1.5rem/1.3 Literata, Georgia, serif;
}
.daily-route > p,
.route-day-picker > p {
  margin: 0 0 1rem;
  font-size: .9375rem;
  line-height: 1.5;
}
.daily-route__options { display: grid; gap: 1rem; }
.daily-route__option {
  min-width: 0;
  padding: 1rem;
  background: #fffdf7;
  border: 1px solid #d9d9cf;
  border-radius: 14px;
}
.daily-route__option h3 { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.4; }
.daily-route__option ol {
  display: grid;
  gap: .625rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
  counter-reset: route-stop;
}
.daily-route__option li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: start;
  gap: .625rem;
  line-height: 1.45;
  counter-increment: route-stop;
  overflow-wrap: anywhere;
}
.daily-route__option li::before {
  content: counter(route-stop);
  display: grid;
  place-items: center;
  min-height: 1.75rem;
  border-radius: 50%;
  background: #e6ecdf;
  color: #183237;
  font-size: .8125rem;
  font-weight: 700;
}
.daily-route__actions { display: grid; gap: .5rem; }
.daily-route__actions .map-action { flex-direction: column; justify-content: center; gap: .125rem; margin: 0; font-size: 1rem; background: #1b6757; color: #fffdf7; }
.daily-route__actions .map-action small { color: #fffdf7; font-size: .8125rem; }
.day-detail-map-action { margin: 1rem 0 1.5rem; }
.day-detail-map-action .map-action { font-size: 1rem; }
.daily-route__note,
.daily-route .daily-route__connectivity { margin: .875rem 0 0; font-size: .875rem; line-height: 1.5; color: #485951; }
.route-day-picker nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem; }
.route-day-picker nav a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; min-height: 48px; padding: .75rem; border: 1px solid #d9d9cf; border-radius: 10px; background: #fffdf7; color: #183237; text-decoration: none; }
.route-day-picker nav strong { grid-row: span 2; align-self: center; }
.route-day-picker nav small { grid-column: 2; }
.route-day-picker nav span { overflow-wrap: anywhere; }
