/* The slow journey: jade, warm paper, brass details and an atmospheric cover. */
:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --surface: #fffcf5;
  --ink: #173c34;
  --muted: #68786c;
  --line: #dedfd2;
  --lake: #286b56;
  --lake-soft: #e6ede0;
  --forest: #4e7456;
  --terracotta: #b46b4a;
  --gold: #a88142;
  --on-accent: #fffdf5;
  --glass: rgba(255, 253, 246, .82);
  --shadow: 0 16px 50px rgba(33, 62, 44, .08), 0 2px 5px rgba(33, 62, 44, .03);
  --content: 1120px;
  --header-height: 76px;
  --ease-out: cubic-bezier(.2,.75,.25,1);
}
html { scroll-padding-top: calc(var(--header-height) + 20px + var(--safe-top)); }
body { background: var(--paper); color: var(--ink); background-image: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 2% 30%, #b8cbbb22, transparent 42%), radial-gradient(ellipse at 100% 75%, #dbc08d15, transparent 45%); }
::selection { color: #fffdf5; background: #41775d; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: default; }
main { overflow: clip; }

/* A compact glass header, with a scroll-linked gold hairline. */
.topbar { height: calc(var(--header-height) + var(--safe-top)); padding-inline: max(24px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid #65776018; background: rgba(245, 242, 233, .84); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); transition: box-shadow .3s; }
.topbar.is-scrolled { box-shadow: 0 8px 30px #082e2010; }
.topbar::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #4f947b, #d5b676); transform-origin: left; transform: scaleX(var(--page-progress, 0)); }
.wordmark { gap: 6px; font-size: 15px; letter-spacing: .08em; }
.wordmark::before { content: ""; width: 34px; height: 34px; margin-right: 5px; border-radius: 11px; background: #173c34 url('assets/images/journey-mark.svg') center / cover; box-shadow: 0 4px 12px #163e3618; }
.wordmark span { color: var(--muted); font-size: 11px; }
.topbar .primary-navigation { gap: 9px; }
.travel-navigation summary, .topbar .primary-navigation__ledger { min-height: 44px; padding-inline: 16px; font-size: 12px; font-weight: 720; border-radius: 999px; }
.travel-navigation summary { gap: 8px; }
.travel-navigation summary[aria-current="page"]::after, .topbar .primary-navigation__ledger[aria-current="page"]::after { left: 18px; right: 18px; bottom: 4px; height: 2px; background: var(--gold); }
.travel-navigation-menu { top: calc(var(--header-height) + 8px + var(--safe-top)); border-color: var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
.topbar .travel-navigation-menu a { min-height: 46px; background: var(--lake-soft); border-radius: 11px; }
  .topbar .travel-navigation-menu a:hover, .topbar .travel-navigation-menu a:focus-visible { color: #fffdf5; background: #285d49; }

/* The image is decorative; all itinerary information stays in live HTML. */
.hero { isolation: isolate; position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: auto auto auto auto auto; align-content: center; column-gap: 72px; width: min(calc(100% - 48px), 1280px); min-height: 630px; margin: 24px auto 0; padding: 68px 64px; border: 1px solid #ffffff40; border-radius: 32px; overflow: hidden; color: #fff9e9; background: #11342d; box-shadow: 0 26px 60px #1e493124; }
.hero__art { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero__art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 53%; opacity: .94; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,32,27,.5), rgba(7,32,27,.08) 67%), linear-gradient(0deg, rgba(4,27,23,.83), transparent 66%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid #f4e6c523; border-radius: 23px; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(480px circle at var(--glow-x, 75%) var(--glow-y, 20%), rgba(249,220,147,.13), transparent 75%); }
.hero__compass { position: absolute; top: 38px; right: 46px; width: 84px; opacity: .65; color: #fff0cc; pointer-events: none; }
.hero__compass svg { display: block; width: 100%; stroke: currentColor; stroke-width: .7; }
.hero__eyebrow, .hero h1, .hero__route, .hero__date, .departure-countdown { grid-column: 1; position: relative; align-self: start; }
.hero__eyebrow { grid-row: 1; display: flex; align-items: center; gap: 11px; margin-bottom: 27px; color: #e4c994; font: 700 10px/1.5 ui-monospace, monospace; letter-spacing: .22em; }
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { grid-row: 2; max-width: 100%; margin: 0; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(50px, 6.6vw, 84px); font-weight: 600; line-height: 1.16; letter-spacing: .015em; text-wrap: balance; text-shadow: 0 3px 25px #051c2855; }
.hero-title-accent { display: block; color: #f0d5a6; }
.hero__date { grid-row: 3; margin: 26px 0 0; color: #e0e5ce; font: 550 12px/1.6 ui-monospace, monospace; letter-spacing: .035em; }
.hero__route { grid-row: 4; width: fit-content; max-width: 100%; margin: 12px 0 0; padding: 7px 11px; border: 1px solid #f1edcf30; border-radius: 7px; color: #d8e7d5; background: #092b243d; font-size: 11px; font-weight: 560; line-height: 1.6; }
.hero__route[hidden] { display: none; }
.departure-countdown { grid-row: 5; width: min(100%, 420px); max-width: 100%; min-height: 74px; margin: 30px 0 0; padding: 15px 20px 15px 16px; align-items: center; gap: 13px; border: 1px solid #eed4a273; border-radius: 16px; color: #f5e2be; background: rgba(10,36,28,.68); box-shadow: 0 10px 28px #061f2540, 0 1px 0 #ffffff12 inset; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.departure-countdown strong { font: 650 clamp(23px,2.7vw,31px)/1.1 ui-monospace, monospace; letter-spacing: -.03em; white-space: normal; }
.departure-countdown small { color: #b4c9b9; font-size: 10px; line-height: 1.5; }
.departure-countdown__icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ead29d40; border-radius: 50%; font-size: 17px; }
#trip-summary { grid-column: 2; grid-row: 2 / -1; align-self: end; padding: 26px 27px 20px; border: 1px solid #f7ecc332; border-radius: 22px; background: linear-gradient(140deg, #173f31a8, #0c2c27b8); box-shadow: 0 15px 45px #031b2033, 0 1px 0 #ffffff17 inset; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#trip-summary:empty { display: none; }
.trip-intro { margin: 0 0 23px; color: #e5eadb; font-size: 14px; line-height: 1.95; }
.trip-facts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 18px 0; border-color: #f1ebc52b; color: #c2d4c1; font-size: 10px; }
.trip-facts span { display: grid; gap: 7px; }
.trip-facts b { margin: 0; color: #f3deb5; font: 500 35px/1 Georgia, serif; }
.trip-companions { margin: 18px 0 0; color: #c2d4c4; font-size: 11px; letter-spacing: .04em; }
.trip-actions { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 23px; }
.trip-actions a, .trip-actions button { min-height: 43px; padding: 10px 14px; border-color: #f1e8c42b; border-radius: 10px; color: #d3e1cf; font-size: 11px; font-weight: 650; transition: transform .2s var(--ease-out), background .2s, box-shadow .2s; }
.trip-actions .trip-primary-action { min-height: 46px; border-color: #f0d7a8; color: #1b3b2d; background: linear-gradient(105deg, #f5e4c6, #dbc08b); box-shadow: 0 4px 16px #001e2422; }
.trip-actions a:hover, .trip-actions button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px #001b2540; }
.storage-caption { max-width: 100%; margin: 14px 0 0; color: #aac3b0; font-size: 9px; line-height: 1.7; }

.trip-notices-wrap { width: min(calc(100% - 64px), var(--content)); margin: 27px auto 0; }
.trip-notices { border-color: #d8c7a347; border-radius: 14px; background: #eee7d680; }
.trip-notices summary { min-height: 52px; padding-inline: 20px; color: #7c6440; font-size: 12px; }
.trip-notices summary span { font-weight: 650; }
.trip-notices summary b { min-width: 37px; padding: 4px 7px; text-align: center; border-radius: 6px; background: #c4a87524; }
.section { width: min(calc(100% - 64px), var(--content)); padding: 64px 0; scroll-margin-top: 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 27px; gap: 16px; }
.section-heading h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 740; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.section-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--gold); font: 650 9px/1.4 ui-monospace, monospace; letter-spacing: .19em; }
.section-kicker::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.soft-label, .section-index { color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.soft-label { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.flight-controls { display: flex; align-items: center; gap: 8px; }
.flight-controls .section-index { margin-right: 8px; }
.flight-arrow { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font-size: 18px; transition: transform .2s var(--ease-out), background .2s, color .2s; }
.flight-arrow:not(:disabled):hover { transform: translateY(-2px); color: #fff; background: #285d49; }
.flight-arrow:disabled { opacity: .35; }
.flight-carousel { gap: 18px; padding: 4px 3px 18px; scroll-padding-inline: 3px; }
.flight-card { position: relative; isolation: isolate; overflow: hidden; flex-basis: calc((100% - 18px) / 2); min-height: 380px; padding: 27px; border: 1px solid #a5c5a34d; border-radius: 23px; background: radial-gradient(ellipse at 90% 0%, #46704d66, transparent 52%), linear-gradient(135deg, #1a4036, #122d2a); box-shadow: 0 12px 28px #102e321a; }
.flight-card::before { content: ""; position: absolute; z-index: -1; top: -90px; right: -65px; width: 240px; height: 240px; border: 1px solid #d6d8a216; border-radius: 50%; box-shadow: 0 0 0 35px #d6d8a208, 0 0 0 70px #d6d8a206; pointer-events: none; }
.flight-card::after { content: ""; position: absolute; inset: 5px; z-index: -1; border: 1px solid #ffffff06; border-radius: 18px; pointer-events: none; }
.flight-card__top { color: #c4d6bd; font-size: 10px; letter-spacing: .1em; }
.flight-card__schedule-tag { color: #ead3a7; border-color: #e1c3944d; padding: 5px 8px; background: #d2b16e0d; font-size: 9px; }
.flight-card__airlines { color: #b6c7b3; }
.flight-flow { margin-top: 25px; }
.flight-stop__code { font-size: 40px; font-weight: 560; letter-spacing: -.03em; }
.flight-stop__city { font-size: 12px; margin-top: 8px; color: #c9d4c0; }
.flight-stop__timing { font-size: 10px; color: #adc5b5; }
.flight-stop__timing b { font-size: 12px; }
.flight-stop__dot { background: #234c3e; border-color: #cebb84; }
.flight-segment { color: #a6c5b1; padding-top: 62px; }
.flight-segment i { color: #dbc597; background: linear-gradient(90deg, #95bca35c, #dec696b3); }
.flight-card__countdown-row { position: relative; border-top: 1px dashed #d4d6aa40; margin-top: 24px; padding-top: 17px; }
.flight-countdown strong { color: #f6e6c4; font-size: 29px; font-weight: 550; }
.flight-countdown span { color: #b1c8b9; font-size: 10px; }
.flight-live { border-color: #d4d6aa2b; margin-top: 17px; }
.flight-live__heading button { border-radius: 999px; border-color: #a7c5b343; }
.flight-card--placeholder { background: linear-gradient(135deg, #334841, #253630); border-style: dashed; }
.flight-placeholder { margin-block: 31px 22px; }
.flight-placeholder h3 { font-size: 27px; }
.carousel-dots { gap: 3px; margin-top: 0; }
.carousel-dot, .carousel-dot.is-active { width: 40px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: transparent; cursor: pointer; }
.carousel-dot::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: #9eaf9f80; transition: width .25s var(--ease-out), background .25s; }
.carousel-dot.is-active::before { width: 26px; background: var(--lake); }

.route-section { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; padding: 32px; transform: none; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.route-region-tabs button { min-height: 44px; border-radius: 10px; font-weight: 700; }
.route-caption { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; }

.geo-view-tabs { display: flex; gap: 7px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
.geo-view-tabs::-webkit-scrollbar { display: none; }
.geo-view-tabs button { flex: none; min-height: 44px; padding: 0 15px; border: 1px solid #d5e4db; border-radius: 999px; color: #426a61; background: #f5f9f3; font-size: 12px; font-weight: 750; transition: transform .18s var(--ease-out), background .18s, color .18s; }
.geo-view-tabs button[aria-pressed="true"] { border-color: #1c5550; color: #fffefa; background: #1c5550; }
.geo-map-hint { margin: 0 0 13px; color: #718780; font-size: 11px; line-height: 1.6; }
.geo-map-stage { min-width: 0; }
.geo-country-view, .geo-city-view { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.geo-national-map { position: relative; width: min(100%, 300px); min-width: 0; margin-inline: auto; }
.is-geographic .travel-map-scroll { overflow: hidden; border: 1px solid #d6e5db; border-radius: 20px; background: #eaf2ee; }
.is-geographic .travel-map-canvas { width: 100%; min-width: 0; }
.geo-map-scale { display: block; margin-top: 8px; color: #5d8177; font-size: 11px; font-weight: 720; letter-spacing: .04em; text-align: center; }
.geo-city-hit { position: absolute; z-index: 1; width: 22%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .18s ease; }
.geo-city-hit:hover, .geo-city-hit:focus-visible { background: rgba(28, 96, 92, .12); }
.geo-city-plot { position: relative; width: 100%; aspect-ratio: 400 / 290; overflow: hidden; border: 1px solid #dce8de; border-radius: 16px; background: radial-gradient(circle at 50% 50%, #f8faf4, #eef5ed); }
.geo-city-plot svg { display: block; width: 100%; height: 100%; position: relative; }
.geo-city-tiles { position: absolute; inset: 0; overflow: hidden; filter: saturate(.72) sepia(.08); }
.geo-city-tiles img[hidden] { display: none; }
.geo-city-tiles img { position: absolute; display: block; max-width: none; user-select: none; pointer-events: none; }
.geo-city-attribution { position: absolute; left: 6px; bottom: 5px; z-index: 2; padding: 1px 5px; border-radius: 4px; color: #5d7870; background: rgba(255, 254, 250, .82); font-size: 9px; line-height: 1.5; }
.geo-city-attribution a { color: inherit; text-decoration: none; }
.geo-city-pin { position: absolute; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fffefa; border-radius: 50%; color: #fffefa; background: #1c605c; box-shadow: 0 2px 8px #123b3b44; font-size: 11px; font-weight: 800; line-height: 1; transition: transform .18s ease, box-shadow .18s ease; }
.geo-city-pin__label { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); padding: 2px 6px; border-radius: 6px; color: #173f42; background: rgba(255, 254, 250, .92); box-shadow: 0 1px 4px #123b3b1f; font-size: 11px; font-weight: 720; white-space: nowrap; pointer-events: none; }
.geo-city-pin.is-label-left .geo-city-pin__label { left: auto; right: calc(100% + 6px); }
.geo-city-pin.is-label-above .geo-city-pin__label, .geo-city-pin.is-label-below .geo-city-pin__label { left: 50%; transform: translateX(-50%); }
.geo-city-pin.is-label-above .geo-city-pin__label { top: auto; bottom: calc(100% + 5px); }
.geo-city-pin.is-label-below .geo-city-pin__label { top: calc(100% + 5px); }
.geo-city-figure { display: grid; gap: 8px; min-width: 0; }
.geo-city-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: #5d8177; font-size: 10px; font-weight: 750; }
.geo-city-legend li { display: flex; align-items: center; gap: 5px; }
.geo-city-legend i { width: 14px; height: 3px; border-radius: 2px; }
.geo-stop-list button.is-linked { border-color: #a9cbc0; background: #eaf4eb; }
.geo-city-pin:hover, .geo-city-pin:focus-visible, .geo-city-pin[aria-expanded="true"], .geo-city-pin.is-linked { z-index: 3; transform: translate(-50%, -50%) scale(1.24); box-shadow: 0 0 0 4px #fffefaad, 0 3px 10px #123b3b55; }
.geo-stop-list { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.geo-stop-list button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 54px; padding: 6px 9px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: #f5f9f3; text-align: left; }
.geo-stop-list button:hover, .geo-stop-list button:focus-visible, .geo-stop-list button[aria-expanded="true"] { border-color: #a9cbc0; background: #eaf4eb; }
.geo-stop-list b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fffefa; background: #1c605c; font-size: 11px; }
.geo-stop-main { display: grid; min-width: 0; gap: 3px; }
.geo-stop-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.geo-stop-main small { color: #758f86; font-size: 10px; }
.geo-stop-list time { padding: 4px 7px; border-radius: 6px; color: #336d61; background: #dfede5; font-size: 11px; font-weight: 800; white-space: nowrap; }
.is-geographic .map-utility { gap: 15px; align-items: start; margin-top: 11px; line-height: 1.6; }
.is-geographic .map-utility a { color: var(--lake); }
.is-geographic .map-utility button { flex: none; }
#map-dialog-content .is-geographic .geo-map-stage { width: min(1060px, calc(96vw - 48px)); }
#map-dialog-content .is-geographic .travel-map-canvas { min-width: 0; }
.day-route-map { margin: 22px 0; padding: 16px; border: 1px solid #d9e8de; border-radius: 18px; background: #fbfcf8; }
.day-route-map__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.day-route-map__heading span { color: var(--ink); font-size: 14px; font-weight: 780; }
.day-route-map__heading small { color: #6d897f; font-size: 11px; font-weight: 720; }
.day-route-map .geo-national-map { width: min(100%, 235px); }
.day-route-map .map-utility { margin-bottom: 0; }
.day-route-map .geo-stop-list button { min-height: 52px; }


/* The itinerary is a set of readable, independent day cards. */
.stay-list { gap: 18px; }
.stay-card { position: relative; overflow: hidden; min-height: 244px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.stay-card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, #a5b88a, #ddc699 60%, transparent); }
.stay-number { display: inline-block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--gold); font: 650 9px/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.stay-card h3 { margin-block: 20px 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.stay-dates { margin-block: 10px; font-size: 11px; }
.stay-dates b { border-radius: 5px; padding: 2px 6px; background: var(--lake-soft); }
.stay-card a { font-size: 11px; font-weight: 700; text-decoration: none; }
.day-navigation { position: sticky; top: calc(var(--header-height) + var(--safe-top)); z-index: 12; gap: 8px; margin: 0 -8px 23px; padding: 10px 8px 12px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); scrollbar-width: none; border-radius: 0 0 16px 16px; }
.day-navigation::-webkit-scrollbar { display: none; }
.day-navigation button { flex: 1 0 76px; min-height: 66px; padding: 12px 8px; border-radius: 12px; transition: transform .2s var(--ease-out), background .2s, box-shadow .2s; }
.day-navigation button span { font-size: 9px; letter-spacing: .09em; }
.day-navigation button b { margin-top: 6px; font-size: 14px; }
.day-navigation button[aria-current="true"] { color: #fff9e9; border-color: #315d45; background: linear-gradient(130deg, #284f3c, #34614c); box-shadow: 0 7px 19px #183b3526; }
.day-navigation button[aria-current="true"] span { color: #d3dcc0; }
.timeline::before { display: none; }
.day-card { position: relative; padding-left: 0; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); scroll-margin-top: 88px; box-shadow: 0 3px 12px #173c3403; }
.day-card + .day-card { margin-top: 12px; }
.day-card:has(.day-toggle[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--gold) 38%, var(--line)); box-shadow: var(--shadow); }
.day-dot { left: 25px; top: 29px; width: 9px; height: 9px; border: 2px solid var(--surface); background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.day-toggle { min-height: 96px; padding: 22px 23px 21px 52px; border-bottom: 1px solid transparent; border-radius: 20px; }
.day-toggle[aria-expanded="true"] { border-bottom-color: var(--line); border-radius: 20px 20px 0 0; }
.day-meta, .day-title, .day-locations { display: block; }
.day-meta { font-size: 10px; letter-spacing: .065em; }
.day-title { margin-top: 8px; font-size: 18px; font-weight: 700; }
.day-locations { font-size: 11px; margin-top: 7px; }
.day-toggle:hover .day-title { color: var(--lake); }
.day-chevron { width: 32px; height: 32px; border-color: var(--line); background: var(--paper); font-size: 19px; }
.day-detail { padding: 24px 25px 30px 52px; animation: detail-arrive .35s var(--ease-out); }
.schedule-text { font-size: 13px; line-height: 1.85; }
.schedule-time { color: var(--lake); font-size: 10px; }
.schedule-item { padding-bottom: 26px; }
.schedule-item::before { background: var(--line); }
.schedule-map-link { min-height: 36px; padding-inline: 12px; font-size: 10px; background: #eaf0e4; border-color: #cddbc5; color: #456b50; }
.schedule-map-link:hover { background: #dfebd7; }
.schedule-copy-address { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-left: -2px; padding: 0 10px; border: 1px dashed #bccdb9; border-radius: 999px; background: transparent; color: var(--forest); font-size: 10px; font-weight: 650; cursor: pointer; }
.schedule-copy-address svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.schedule-copy-address:hover { border-style: solid; border-color: var(--lake); }
.day-route-map { padding: 16px; border-radius: 16px; }
.geo-city-pin::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.geo-view-tabs button { min-height: 40px; }
.geo-stop-list button { min-height: 58px; }
.geo-stop-list button:focus-visible { outline-offset: -2px; }
.day-route-map .geo-stop-list button { min-height: 52px; }

.food-cities { gap: 18px; }
.food-city { padding: 23px; border-radius: 22px; box-shadow: var(--shadow); }
.food-city h4 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--gold); font-size: 12px; letter-spacing: .06em; }
.food-spot { padding: 15px 1px; gap: 7px 12px; }
.food-spot__main strong { font-size: 14px; }
.food-spot__main > span { line-height: 1.8; }
.food-spot__name { flex-wrap: wrap; row-gap: 0; }
.food-jump { margin-bottom: 15px; }
.food-jump a { min-height: 44px; padding-inline: 17px; border-radius: 10px; font-size: 12px; transition: transform .18s var(--ease-out), background .18s; }
.food-badge { padding: 4px 8px; font-size: 9px; font-weight: 650; }
.food-legend { gap: 7px; margin-bottom: 27px; }
.food-group > h3 { margin-bottom: 14px; font-size: 18px; }
.copy-address { font-size: 10px; border-color: var(--line); }
.copy-address:hover { background: var(--lake-soft); }
.copy-toast { padding: 13px 19px; border-radius: 15px; border: 1px solid #d0dbc137; box-shadow: var(--shadow); }
.runtime-notice { padding-right: 45px; border-radius: 18px; }
.runtime-notice .runtime-notice__close { position: absolute; right: 7px; top: 7px; width: 32px; min-height: 32px; margin: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 23px; line-height: 1; }
.runtime-notice .runtime-notice__close:hover { background: #a58a4f26; }
.rental-panel { border-radius: 24px; }
.accordion { border-radius: 17px; background: var(--surface); }
.prep-section { margin: 28px auto 0; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.todo-progress-track { height: 5px; margin: -3px 0 24px; overflow: hidden; border-radius: 99px; background: var(--line); }
.todo-progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #418469, #c8b678); transition: width .4s var(--ease-out); }
.todo-form input, .todo-form button { min-height: 50px; border-radius: 12px; font-size: 13px; }
.todo-form input { color: var(--ink); background: var(--paper); }
.todo-form button { min-width: 84px; background: #285d49; transition: transform .18s, box-shadow .18s; }
.todo-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 15px #285d4933; }
.todo-item { min-height: 62px; transition: background .2s; }
.todo-item label { min-height: 62px; }
.todo-text { font-size: 13px; line-height: 1.7; }
.todo-item:focus-within { border-radius: 10px; background: var(--lake-soft); }
.todo-check { width: 23px; height: 23px; border-radius: 8px; border-color: #a1b49d; transition: background .2s, border-color .2s, transform .2s; }
.todo-item.is-complete .todo-check { animation: check-arrive .3s var(--ease-out); }
.todo-item input:focus-visible + .todo-check { outline: 3px solid var(--lake); outline-offset: 3px; }
.todo-delete { font-size: 11px; }
.footer { width: min(calc(100% - 64px), var(--content)); padding: 46px 0 calc(116px + var(--safe-bottom)); border-top: 0; }
.footer p { font-size: 11px; letter-spacing: .12em; }

/* Floating navigation stays within reach without covering the content. */
.mobile-dock { position: fixed; z-index: 30; left: 50%; bottom: calc(20px + var(--safe-bottom)); display: flex; gap: 3px; padding: 6px; transform: translateX(-50%); border: 1px solid #fffdf9d9; border-radius: 21px; background: rgba(252, 250, 241, .89); box-shadow: 0 14px 45px #163c3426, 0 2px 6px #163c340d, 0 1px 0 #ffffff inset; backdrop-filter: blur(25px) saturate(1.5); -webkit-backdrop-filter: blur(25px) saturate(1.5); }
.mobile-dock a { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background .25s, color .25s, transform .2s var(--ease-out); }
.mobile-dock a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mobile-dock a:hover { color: var(--ink); background: var(--lake-soft); }
.mobile-dock a.is-active { color: #24533c; background: #e0e8d6; box-shadow: 0 1px 0 #ffffff4d inset; }
.mobile-dock a.is-active::after { content: ""; position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 2px; border-radius: 3px; background: var(--gold); }
.mobile-dock a[hidden] { display: none; }

/* The expense book belongs to the same visual family. */
.ledger-view, body[data-active-view="ledger"] { background: var(--paper); }
body[data-active-view="ledger"] .topbar { background: var(--glass); }
.ledger-app { width: min(calc(100% - 64px), 900px); padding: 52px 0 calc(125px + var(--safe-bottom)); }
.ledger-page-header h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 740; letter-spacing: -.04em; }
.ledger-tabs { gap: 30px; margin-top: 25px; }
.ledger-tab { font-size: 13px; }
.ledger-tab.ledger-is-active::after { background: linear-gradient(90deg, var(--lake), var(--gold)); }
.ledger-entry-card, .ledger-list-section, .ledger-stats-overview, .ledger-transfer-row, .ledger-member-stat { border-color: var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.ledger-entry-card { padding: 28px; }
.ledger-primary-button { background: linear-gradient(120deg, #214936, #3e6b50); border-radius: 12px; min-height: 49px; }
.ledger-primary-button:hover { box-shadow: 0 7px 20px #143e3226; }
.ledger-dialog { border-radius: 25px; box-shadow: 0 24px 90px #092f3540; }
.ledger-dialog::backdrop, .ticket-dialog::backdrop { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.ledger-icon-button { background: var(--surface); border-color: var(--line); }
.ledger-list-heading { padding: 22px; }
.ledger-bill-row { padding: 18px 22px 13px; }
.ledger-section-kicker { color: var(--gold); font-size: 9px; letter-spacing: .12em; }

/* Small, finite animations keep the page responsive and reading calm. */
.page-loader__content h2 { font-family: "Songti SC", "STSong", serif; letter-spacing: .07em; font-weight: 650; }
.page-loader__plane { fill: #9c7c42; }
.page-loader__orbit { stroke: #b5a68170; }
.page-loader__progress { width: 170px; height: 2px; }
.page-loader__eyebrow { font-size: 8px; letter-spacing: .23em; }
@keyframes cover-arrive { from { opacity: 0; translate: 0 15px; } to { opacity: 1; translate: 0 0; } }
@keyframes scenic-arrive { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes detail-arrive { from { opacity: .5; } to { opacity: 1; } }
@keyframes check-arrive { 50% { transform: scale(1.13); } }
@keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ui-loaded:not(.ui-entered) .hero__art img { animation: scenic-arrive 1.6s var(--ease-out) backwards; }
.ui-loaded:not(.ui-entered) .hero :is(.hero__eyebrow, h1, .hero__date, .hero__route, .departure-countdown, #trip-summary) { animation: cover-arrive .85s var(--ease-out) backwards; }
.ui-loaded:not(.ui-entered) .hero h1 { animation-delay: .08s; }
.ui-loaded:not(.ui-entered) .hero .hero__date, .ui-loaded:not(.ui-entered) .hero .hero__route { animation-delay: .16s; }
.ui-loaded:not(.ui-entered) .hero .departure-countdown { animation-delay: .24s; }
.ui-loaded:not(.ui-entered) .hero #trip-summary { animation-delay: .32s; }
.is-reveal-pending { opacity: 0; translate: 0 16px; }
.is-revealed { animation: cover-arrive .7s var(--ease-out) backwards; }
@supports (animation-timeline: scroll()) {
  .topbar::after { animation: reading-progress linear both; animation-timeline: scroll(root block); }
}
@media (hover: hover) and (pointer: fine) {
  .stay-card, .food-city { transition: transform .3s var(--ease-out), box-shadow .3s; }
  .stay-card:hover, .food-city:hover { transform: translateY(-4px); box-shadow: 0 22px 48px #193f3217; }
  .day-navigation button:hover { transform: translateY(-2px); }
  .mobile-dock a:hover svg { transform: translateY(-1px); }
}
@media (hover: none) {
  .trip-actions :is(a, button):active,
  .flight-arrow:not(:disabled):active,
  .geo-view-tabs button:active,
  .day-navigation button:active,
  .food-jump a:active,
  .todo-form button:not(:disabled):active { transform: scale(.96); }
}

@media (min-width: 1400px) {
  .hero { padding-inline: 80px; column-gap: 140px; }
}
@media (max-width: 1050px) {
  .hero { column-gap: 34px; padding: 50px 40px; min-height: 590px; }
  .hero h1 { font-size: 65px; }
  #trip-summary { padding: 23px; }
  .hero__compass { top: 24px; right: 27px; width: 67px; }
}
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .topbar { padding-inline: 18px; }
  .wordmark { font-size: 13px; gap: 4px; }
  .wordmark::before { width: 30px; height: 30px; margin-right: 3px; border-radius: 10px; }
  .wordmark span { font-size: 9px; display: inline; }
  .topbar .primary-navigation { display: flex; gap: 6px; }
  .topbar .primary-navigation__ledger { display: none; }
  .travel-navigation summary { min-height: 44px; padding-inline: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; }
  .travel-navigation summary[aria-current="page"]::after { display: none; }
  .travel-navigation-menu { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1fr); grid-template-rows: none; width: calc(100% - 24px); min-height: 0; margin-top: 12px; padding: 38px 28px 25px; border-radius: 25px; }
  .hero::after { inset: 8px; border-radius: 18px; }
  .hero::before { background: linear-gradient(90deg, #082d2773, transparent), linear-gradient(0deg, #05271ef2 2%, #062c2566 80%); }
  .hero__art img { object-position: 61% center; }
  .hero__compass { top: 29px; right: 25px; width: 62px; opacity: .7; }
  .hero__eyebrow { max-width: calc(100% - 54px); margin-bottom: 25px; font-size: 8px; letter-spacing: .12em; gap: 8px; }
  .hero__eyebrow::before { width: 16px; flex-shrink: 0; }
  .hero h1 { font-size: clamp(49px, 11.5vw, 69px); line-height: 1.15; }
  .hero-title-accent { display: inline; }
  .hero h1:has(.hero-title-accent) { max-width: 4.5em; }
  .hero-title-accent { display: block; }
  .hero__date { margin-top: 22px; font-size: 11px; }
  .hero__route { margin-top: 9px; padding: 6px 9px; font-size: 10px; }
  .departure-countdown { margin-top: 22px; min-height: 62px; padding: 11px 15px 11px 12px; border-radius: 12px; }
  .departure-countdown strong { font-size: clamp(21px,5.6vw,28px); }
  .departure-countdown small { font-size: 10px; }
  #trip-summary { grid-column: 1; grid-row: 6; margin-top: 26px; padding: 20px 0 0; border: 0; border-top: 1px solid #e3d6ac3b; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .trip-intro { margin: 0 0 18px; font-size: 13px; line-height: 1.85; }
  .trip-facts { display: flex; justify-content: flex-start; gap: 28px; padding: 0; border: 0; font-size: 10px; }
  .trip-facts span { display: flex; align-items: baseline; gap: 5px; }
  .trip-facts b { font-size: 26px; }
  .trip-companions { font-size: 11px; margin-top: 14px; }
  .trip-actions { grid-template-columns: 1fr auto; gap: 8px; margin-top: 20px; }
  .trip-actions a, .trip-actions button { font-size: 11px; min-height: 44px; padding-inline: 12px; }
  .trip-actions .trip-primary-action { min-height: 44px; }
  .storage-caption { font-size: 10px; margin-top: 11px; }
  .trip-notices-wrap { width: calc(100% - 32px); margin-top: 17px; }
  .trip-notices summary { min-height: 51px; padding-inline: 14px; font-size: 11px; }
  .section { width: calc(100% - 36px); padding-block: 43px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 27px; }
  .section-kicker { font-size: 8px; gap: 7px; letter-spacing: .14em; }
  .soft-label { padding: 6px 7px; font-size: 9px; }
  .flight-controls { gap: 6px; }
  .flight-controls .section-index { margin-right: 1px; font-size: 9px; }
  .flight-arrow { width: 44px; height: 44px; }
  .flight-carousel { margin-right: -18px; gap: 12px; padding-bottom: 15px; }
  .flight-card { flex-basis: calc(100% - 24px); min-height: 355px; padding: 22px; border-radius: 20px; }
  .flight-stop__code { font-size: 34px; }
  .flight-stop__city { font-size: 11px; }
  .flight-stop__timing b { font-size: 11px; }
  .flight-card__top { font-size: 9px; }
  .flight-segment { padding-top: 56px; }
  .flight-countdown strong { font-size: 26px; }
  .flight-placeholder h3 { font-size: 25px; }
  .route-section, .prep-section { width: calc(100% - 24px); padding: 25px 18px; border-radius: 23px; }
  .geo-country-view, .geo-city-view { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .geo-national-map { width: min(100%, 250px); }
  .geo-city-plot { max-height: 230px; }
  .geo-map-scale { font-size: 9px; }
  .geo-stop-list { gap: 4px; }
  .geo-stop-list button { min-height: 51px; padding-block: 9px; }
  .geo-stop-main strong { font-size: 11px; }
  .geo-city-pin__label { font-size: 10px; }
  .day-route-map { margin: 15px 0; padding: 12px; }
  .day-route-map .geo-national-map { width: min(100%,170px); }
  #map-dialog-content .is-geographic .geo-map-stage { width: min(560px,calc(96vw - 48px)); }
  .stay-card { min-height: 0; padding: 23px; border-radius: 20px; }
  .stay-card h3 { font-size: 21px; }
  .day-navigation { margin-inline: -6px; padding-inline: 6px; }
  .day-navigation button { flex: 0 0 66px; min-height: 61px; }
  .day-navigation button b { font-size: 13px; }
  .day-card { scroll-margin-top: 90px; border-radius: 18px; }
  .day-dot { left: 18px; top: 27px; }
  .day-toggle { min-height: 94px; padding: 20px 16px 20px 38px; border-radius: 18px; }
  .day-toggle[aria-expanded="true"] { border-radius: 18px 18px 0 0; }
  .day-title { font-size: 16px; line-height: 1.45; }
  .day-detail { padding: 20px 16px 24px; }
  .schedule-item { padding-left: 61px; }
  .schedule-item::before { left: 49px; }
  .schedule-item::after { left: 45px; }
  .schedule-time { width: 43px; font-size: 9px; }
  .schedule-text { font-size: 13px; }
  .schedule-map-link, .schedule-copy-address { min-height: 44px; }
  .geo-view-tabs button { min-height: 44px; }
  .food-city { padding: 20px; }
  .food-jump a { min-height: 40px; padding-inline: 13px; font-size: 11px; }
  .food-spot { padding-block: 14px; }
  .food-spot__main strong { font-size: 13px; }
  .todo-form button { min-width: 72px; }
  .todo-text { font-size: 13px; }
  .footer { width: calc(100% - 36px); padding-block: 34px calc(113px + var(--safe-bottom)); }
  .mobile-dock { left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); min-height: 65px; transform: none; gap: 2px; padding: 5px; border-radius: 21px; }
  .mobile-dock a { min-width: 0; flex: 1; flex-direction: column; gap: 5px; min-height: 54px; padding: 6px 2px; border-radius: 15px; font-size: 9px; }
  .mobile-dock a svg { width: 20px; height: 20px; }
  .mobile-dock a.is-active::after { bottom: 3px; width: 3px; height: 2px; }
  .mobile-dock a:active { transform: scale(.93); }
  .ledger-app { width: 100%; padding: 32px 18px calc(122px + var(--safe-bottom)); }
  .ledger-entry-card { padding: 23px 20px; }
  .ledger-list-heading { padding: 20px; }
  .ledger-bill-row { padding-inline: 20px; }
  .runtime-notice { bottom: calc(94px + var(--safe-bottom)); }
  .ledger-confirm-dialog { margin-bottom: calc(94px + var(--safe-bottom)); }
}
@media (max-width: 380px) {
  .wordmark span { display: none; }
  .hero { padding-inline: 23px; }
  .hero__eyebrow { font-size: 7px; }
  .hero h1 { font-size: 48px; }
  .trip-facts { gap: 18px; }
  .trip-actions { grid-template-columns: 1fr; }
  .flight-card { padding: 19px; }
  .section-heading h2 { font-size: 24px; }
  .flight-controls { gap: 4px; }
  .flight-controls .section-index { display: none; }
  .geo-stop-list time { padding-inline: 5px; font-size: 10px; }
  .ledger-entry-card { padding-inline: 16px; }
}
@media print {
  :root { --paper: #fff; --surface: #fff; }
  .hero__art, .hero__glow, .hero__compass, .mobile-dock, .flight-controls .flight-arrow, .todo-progress-track { display: none !important; }
  .hero, .section, .footer { width: 100%; }
  .hero { display: block; margin: 0; padding: 18px 0; min-height: 0; border-radius: 0; border: 0; background: #fff !important; color: #173c34; box-shadow: none; }
  .hero::before, .hero::after { display: none; }
  .hero h1 { font-size: 32px; color: #173c34; text-shadow: none; }
  .hero-title-accent { display: inline; color: #173c34; }
  .hero__eyebrow, .hero__date, .hero__route, .trip-intro, .trip-facts, .trip-facts b, .trip-companions { color: #173c34; }
  #trip-summary { display: block; margin: 0; padding: 18px 0; color: #173c34; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .hero__route, .departure-countdown { color: #173c34; border-color: #dedfd2; background: #fff; box-shadow: none; }
  .departure-countdown small { color: #526166; }
  .route-section, .prep-section { padding: 18px 0; border: 0; background: #fff !important; box-shadow: none; }
  .is-reveal-pending { opacity: 1 !important; translate: none !important; }
  .day-card { background: #fff; box-shadow: none; }
  .day-detail { padding-inline: 10px; }
}

/* Clear, comfortable type and dependable touch targets across the full trip UI. */
@media screen {
  .travel-navigation summary,
  .topbar .primary-navigation__ledger { font-size: 12px; }
  .topbar .travel-navigation-menu a { font-size: 12px; }
  .hero__date { font-size: 13px; }
  .hero__route { font-size: 12px; }
  #main button { min-height: 44px; }
  .runtime-notice button { min-height: 44px; }
  .runtime-notice .runtime-notice__close { width: 44px; height: 44px; min-height: 44px; }
  .trip-notices summary { font-size: 13px; }
  .trip-notices summary b { font-size: 12px; }
  .departure-countdown small,
  .storage-caption,
  .trip-companions,
  .route-caption,
  .geo-map-hint,
  .day-route-map__heading small,
  .stay-dates,
  .stay-note,
  .food-spot__main > span { font-size: 12px; }
  .trip-facts { font-size: 12px; }
  .trip-actions a, .trip-actions button { min-height: 46px; font-size: 12px; }
  .section-kicker { font-size: 10px; }
  .soft-label, .section-index { font-size: 12px; }
  .flight-card__top { font-size: 12px; }
  .flight-card__schedule-tag,
  .flight-stop__timing,
  .flight-stop__timing span,
  .flight-stop__timing em,
  .flight-countdown span { font-size: 12px; }
  .flight-stop__timing b { font-size: 13px; }
  .flight-card__airlines,
  .flight-live,
  .flight-live__heading { font-size: 12px; }
  .flight-placeholder li,
  .flight-placeholder > span { font-size: 12px; }
  .ticket-card__head p,
  .ticket-card__guidance span,
  .ticket-details dl div,
  .ticket-uncertainties,
  .schedule-ticket__status,
  .schedule-ticket__content strong,
  .schedule-ticket__content small,
  .schedule-ticket summary,
  .schedule-ticket__open,
  .packing-group h3,
  .accordion li { font-size: 12px; }
  .ticket-badge { min-height: 30px; display: inline-flex; align-items: center; font-size: 12px; }
  .schedule-ticket summary { min-height: 44px; }
  .schedule-ticket__open { min-height: 44px; }
  .footer { font-size: 13px; }
  .flight-segment span { font-size: 12px; }
  .flight-live small { font-size: 12px; }
  .flight-stop__city { font-size: 13px; }
  .carousel-dot, .carousel-dot.is-active { width: 44px; height: 44px; }
  .flight-controls .section-index { font-size: 11px; }
  .geo-map-scale, .geo-stop-main small, .geo-stop-list time { font-size: 12px; }
  .geo-stop-list b, .geo-stop-main strong { font-size: 12px; }
  .geo-city-attribution { font-size: 11px; }
  .geo-city-pin { width: 44px; height: 44px; }
  .geo-city-pin { font-size: 12px; }
  .geo-city-pin__label { font-size: 12px; }
  .is-geographic .map-utility button { min-height: 44px; }
  .stay-number { font-size: 12px; }
  .stay-card a { font-size: 12px; }
  .food-spot__name small,
  .food-spot__meta small,
  .food-spot__meta time { font-size: 12px; }
  .food-jump { flex-wrap: wrap; }
  .food-jump a { min-height: 44px; font-size: 12px; }
  .food-jump a b { font-size: 12px; }
  .food-badge { font-size: 12px; }
  .food-spot__name { min-height: 44px; align-items: center; }
  .flight-card a { display: inline-flex; align-items: center; min-height: 44px; }
  .is-geographic .map-utility a { display: inline-flex; align-items: center; min-height: 44px; }
  .food-contact { min-height: 44px; padding-inline: 11px; font-size: 12px; }
  .copy-address { min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .schedule-time, .schedule-status { font-size: 12px; }
  .schedule-map-link, .schedule-copy-address { min-height: 44px; font-size: 12px; }
  .todo-empty { font-size: 12px; }
  .mobile-dock a { font-size: 12px; }
  .theme-toggle { font-size: 12px; }
  .ledger-app :where(small, [class*="help"], [class*="note"], [class*="date"], [class*="label"], [class*="meta"], [class*="summary"], [class*="status"], [class*="count"], [class*="stat"], [class*="person-name"], [class*="contact"], [class*="bill-people"]) { font-size: max(12px, .75em); }
  .ledger-live, .ledger-empty-state, .ledger-category-choice { font-size: 12px; }
  .ledger-section-kicker, .ledger-members-strip-heading span,
  .ledger-list-total span { font-size: 12px; }
  .ledger-select, .ledger-input, .ledger-currency-option { font-size: 14px; }
  .ledger-currency-option { min-height: 44px; }
  .ledger-text-button, .ledger-icon-button,
  .ledger-member-edit-actions .ledger-text-button,
  .ledger-member-edit-actions .ledger-icon-button { min-height: 44px; font-size: 12px; }
  .ledger-add-person { min-width: 58px; min-height: 72px; font-size: 12px; }
  .ledger-add-person small { font-size: 12px; }
  .ledger-bill-note-trigger { min-height: 44px; font-size: 12px; }
  .ledger-bill-date, .ledger-bill-people,
  .ledger-member-bill, .ledger-member-empty { font-size: 12px; }
  .ledger-bill-note-form { font-size: 12px; }
  .ledger-bill-note-form { grid-template-columns: auto minmax(68px, 1fr) 44px 44px; }
  .ledger-bill-note-form input { height: 44px; font-size: 14px; }
  .ledger-bill-note-form button { width: 44px; height: 44px; }
  .ledger-header-actions .ledger-text-button { min-height: 44px; }
  .ledger-currency-chip button { width: 40px; height: 40px; }
  .ledger-color-picker { width: 44px; height: 44px; }
  .ledger-dialog-close { width: 44px; height: 44px; flex-basis: 44px; }
}

@media screen and (max-width: 760px) {
  .wordmark span { font-size: 11px; }
  .hero__eyebrow { font-size: 10px; }
  .trip-actions { width: 100%; }
  .trip-actions a, .trip-actions button { min-height: 48px; }
  .day-navigation button { flex-basis: 76px; min-height: 68px; }
  .day-navigation button span, .day-meta { font-size: 12px; }
  .day-locations { font-size: 12px; }
  .geo-city-pin { width: 44px; height: 44px; }
  .mobile-dock a { font-size: 12px; }
  .ledger-person-static, .ledger-add-person { font-size: 12px; }
  .ledger-add-person small { font-size: 12px; }
  .ledger-category-choice { min-height: 48px; }
  .ledger-member-metrics dt { font-size: 12px; }
  .todo-delete { min-width: 48px; min-height: 48px; }
}
@media screen and (max-width: 380px) {
  .hero__eyebrow { font-size: 9px; }
  .flight-card { padding: 18px; }
}

/* Put the useful details first, while keeping long travel notes comfortable to read. */
@media screen {
  .trip-intro, .schedule-text { font-size: 14px; }
  .detail-note { font-size: 13px; line-height: 1.7; }
  .stay-dates, .day-locations, .food-spot__main > span,
  .food-spot__meta small { font-size: 13px; }
  .food-spot__main strong { font-size: 15px; line-height: 1.45; }
  .todo-text { font-size: 14px; line-height: 1.55; }
  .food-group { scroll-margin-top: calc(var(--header-height) + var(--safe-top) + 16px); }

  .runtime-notice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    max-height: min(55dvh, 440px);
    overflow-y: auto;
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.5;
  }
  .runtime-notice__heading { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; }
  .runtime-notice__heading strong { flex: 1; padding-block: 4px; font-weight: 750; }
  .runtime-notice .runtime-notice__close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -8px -10px 0 0;
    text-decoration: none;
  }
  .runtime-notice details { min-width: 0; margin-top: 2px; border-top: 1px solid currentColor; }
  .runtime-notice details[open] { grid-column: 1 / -1; }
  .runtime-notice details summary { display: flex; align-items: center; min-height: 44px; width: fit-content; cursor: pointer; font-weight: 700; }
  .runtime-notice details p { margin: 0 0 8px; line-height: 1.6; }
  .runtime-notice .runtime-notice__retry,
  .runtime-notice .runtime-notice__dismiss { margin-top: 0; padding: 0 8px; font-weight: 750; white-space: nowrap; }
  .runtime-notice .runtime-notice__retry { min-height: 44px; }
}

@media screen and (max-width: 760px) {
  .runtime-notice { width: calc(100% - 28px); max-height: 45dvh; }
}


/* Intrinsic-height flight cards: a connecting journey must not stretch its peers. */
@media screen {
  .flight-carousel { align-items: flex-start; overflow-y: hidden; }
  .flight-card { min-height: 0; }
  .flight-flow { margin-top: 20px; }
  .flight-time-notice { margin: 12px 0 0; }
  .flight-time-notice--basis { color: #b6c7b3; font-size: 11px; }
  .flight-card__countdown-row { margin-top: 16px; padding-top: 14px; }
  .flight-live { margin-top: 14px; padding-top: 0; }
  .flight-live__summary { position: relative; display: grid; gap: 4px; min-height: 58px; padding: 12px 24px 0 0; cursor: pointer; list-style: none; }
  .flight-live__summary::-webkit-details-marker { display: none; }
  .flight-live__summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: #d6e7d3; font-size: 20px; line-height: 1; }
  .flight-live[open] > .flight-live__summary::after { content: "−"; }
  .flight-live__summary > span:first-child { color: #b1c8b9; font-weight: 700; }
  .flight-live__summary [data-live-summary] { font-weight: 500; }
  .flight-live__content { padding-top: 12px; }
  .flight-live__content > p:empty, .flight-live__content > small:empty { display: none; }
  .flight-live__summary:focus-visible { outline: 2px solid #ead3a7; outline-offset: 4px; border-radius: 3px; }
}
@media print {
  .flight-carousel { height: auto !important; overflow: visible !important; }
  .flight-live { display: none; }
}

/* Read-only, destination-local timetable progress. Never a completion checkbox. */
.itinerary-live { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--lake); }
.itinerary-live[hidden] { display: none; }
.itinerary-live time { font-variant-numeric: tabular-nums; }
.itinerary-live button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--lake); background: var(--surface); cursor: pointer; font: inherit; }
.day-navigation button.is-today { box-shadow: inset 0 -3px 0 var(--terracotta); }
.day-time-progress { display: grid; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.day-time-progress[hidden] { display: none; }
.day-time-progress progress { width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: 4px; background: var(--line); color: var(--lake); accent-color: var(--lake); }
.day-time-progress progress::-webkit-progress-bar { background: var(--line); }
.day-time-progress progress::-webkit-progress-value { background: var(--lake); }
.day-time-progress progress::-moz-progress-bar { background: var(--lake); }
.schedule-time-label { display: block; width: fit-content; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.6; }
.schedule-time-label[hidden] { display: none; }
.schedule-item[data-time-phase="elapsed"]::after { border-color: var(--muted); background: var(--line); }
.schedule-item[data-time-phase="elapsed"]::before { background: var(--lake); opacity: .3; }
.schedule-item[data-time-phase="current"]::after { border-color: var(--terracotta); background: var(--terracotta); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terracotta) 15%, transparent); }
.schedule-item[data-time-phase="current"] .schedule-time-label { color: var(--terracotta); }
.schedule-item.is-next-time .schedule-time-label { color: var(--lake); }
.timeline-now { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--terracotta); font: 750 11px/1.6 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.timeline-now::after { content: ""; height: 1px; flex: 1; background: var(--terracotta); opacity: .45; }
.timeline-now[hidden] { display: none; }
@media print {
  .itinerary-live, .day-time-progress, .timeline-now, .schedule-time-label { display: none !important; }
}
