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

:root {
  color-scheme: light dark;
  --page: #f4f2eb;
  --surface: #eeece4;
  --card: #fffefa;
  --ink: #272923;
  --muted: #6f7168;
  --line: #deded4;
  --line-strong: #c9c9bd;
  --accent: #b35c3f;
  --accent-strong: #86442f;
  --accent-wash: #f5e8df;
  --green: #496d5b;
  --green-wash: #e8efe9;
  --amber: #99631f;
  --amber-wash: #f5eddd;
  --danger: #a44939;
  --route-return: #496d5b;
  --svg-card-bg: #fffefa;
  --svg-border: #deded4;
  --svg-fill-a: #e6d4bd;
  --svg-fill-b: #cfe0d7;
  --shadow: 0 4px 18px rgba(43, 43, 34, .06);
  --shadow-raised: 0 12px 34px rgba(43, 43, 34, .1);
  --radius: 18px;
  --radius-small: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --page: #171915;
    --surface: #20221c;
    --card: #242720;
    --ink: #eeeade;
    --muted: #aaa99c;
    --line: #393b33;
    --line-strong: #505247;
    --accent: #d58a68;
    --accent-strong: #e3a084;
    --accent-wash: #382820;
    --green: #91b39a;
    --green-wash: #27332b;
    --amber: #d4a55f;
    --amber-wash: #352e21;
    --danger: #e39a88;
    --route-return: #91b39a;
    --svg-card-bg: #242720;
    --svg-border: #393b33;
    --svg-fill-a: #564130;
    --svg-fill-b: #254237;
    --shadow: 0 4px 18px rgba(0, 0, 0, .16);
    --shadow-raised: 0 12px 34px rgba(0, 0, 0, .28);
  }
}

:root.dark {
  color-scheme: only dark;
  --page: #171915; --surface: #20221c; --card: #242720; --ink: #eeeade; --muted: #aaa99c;
  --line: #393b33; --line-strong: #505247; --accent: #d58a68; --accent-strong: #e3a084;
  --accent-wash: #382820; --green: #91b39a; --green-wash: #27332b; --amber: #d4a55f;
  --amber-wash: #352e21; --danger: #e39a88; --shadow: 0 4px 18px rgba(0, 0, 0, .16);
  --route-return: #91b39a; --svg-card-bg: #242720; --svg-border: #393b33;
  --svg-fill-a: #564130; --svg-fill-b: #254237;
  --shadow-raised: 0 12px 34px rgba(0, 0, 0, .28);
}

:root.light { color-scheme: only light; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.65; }
body, button, select { font-family: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 30px 70px; }
.top-nav { position: sticky; top: 0; z-index: 30; display: flex; min-height: 62px; align-items: center; gap: 11px; margin: 0 -30px; padding: 8px 30px; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(16px); font-size: 12px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav .brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px 9px 9px 3px; background: var(--green); color: #fff; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.nav-sep { color: var(--line-strong); }
.nav-current { color: var(--ink); font-weight: 600; }
.nav-spacer { flex: 1; }
.top-links { display: flex; align-items: center; gap: 6px; margin-right: 10px; }
.top-links a { min-height: 40px; padding: 9px 11px; border-radius: 10px; }
.top-links a:hover, .top-links a[aria-current="location"] { background: var(--surface); color: var(--accent-strong); }
.theme-toggle { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 17px; cursor: pointer; }

.hero { display: flex; min-height: 260px; flex-direction: column; justify-content: center; gap: 22px; margin: 24px 0 16px; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.hero-copy { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(29px, 5vw, 48px); font-weight: 760; letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; }
.hero .sub { margin: 12px 0 0; color: var(--muted); font-size: clamp(14px, 2vw, 17px); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.button-primary, .button-secondary { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 12px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out; }
.button-primary { border-color: var(--green); background: var(--green); color: #fff; }
.button-primary:hover { background: color-mix(in srgb, var(--green) 88%, black); color: #fff; box-shadow: var(--shadow); }
.button-secondary { background: var(--surface); color: var(--ink); }
.button-primary:active, .button-secondary:active, .live-button:active { transform: scale(.98); }
.meta-info { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.meta-info span { display: inline-flex; align-items: baseline; gap: 4px; }
.meta-info b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }

section { margin: 30px 0; scroll-margin-top: 82px; }
.roadbook-section { margin: 24px 0 44px; }
.roadbook-overview { padding: clamp(19px, 3vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.roadbook-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.roadbook-heading .eyebrow { margin-bottom: 9px; }
.overview-period { padding: 3px 7px; border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.roadbook-heading h2 { margin: 0; padding: 0; border: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; }
.trip-status { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
/* 行程生命周期 / 实时能力状态（T07 §4/§5）。空态不占高度，未接入时不留空白块。 */
.trip-lifecycle-status { margin: 6px 0 0; padding: 7px 10px; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.55; }
.trip-lifecycle-status:empty { display: none; }
.trip-lifecycle-status.dim { font-size: 11px; }
.trip-lifecycle-status[data-trip-state="archived"] { border-left-color: #f59e0b; }
.trip-lifecycle-status[data-realtime-registered="false"] { border-left-color: var(--line); }
@media (max-width: 719px) { .trip-lifecycle-status { font-size: 11px; } }
.trip-total { display: grid; min-width: 120px; justify-items: end; gap: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.trip-total strong { font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1.15; }
.trip-total span { color: var(--muted); font-size: 11px; }
.trip-total small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.route-steps-wrap { position: relative; overflow: hidden; margin: 23px 0 18px; }
.route-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--route-columns, 10), minmax(0, 1fr)); grid-auto-rows: 42px; gap: 0; margin: 0; padding: 0 0 4px; list-style: none; }
.route-steps-wrap .route-trail { position: absolute; inset: 0; z-index: 0; display: block; overflow: visible; pointer-events: none; }
.route-trail path { fill: none; stroke-linecap: round; stroke-width: 3; }
.route-trail-go { stroke: var(--accent); }
.route-trail-return { stroke: var(--route-return); stroke-dasharray: 7 7; }
.route-steps li { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); text-align: center; }
.route-steps li > span { z-index: 1; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--green); font-size: 8px; font-variant-numeric: tabular-nums; }
.route-steps li b { max-width: 100%; color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.route-steps li.route-return > span { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-strong); font-size: 13px; }
.day-index-heading { display: flex; align-items: end; justify-content: space-between; margin: 30px 2px 10px; }
.day-index-heading > div { min-width: 0; }
.day-index-heading .eyebrow { margin: 0 0 3px; font-size: 9px; }
.day-index-heading h3 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.025em; }
.day-badge-guide { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.day-index-hint { color: var(--muted); font-size: 10px; }
.day-index { position: sticky; top: 61px; z-index: 15; display: flex; overflow-x: auto; gap: 7px; margin: 0 -6px 13px; padding: 9px 6px; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(14px); scrollbar-width: none; }
.day-index::-webkit-scrollbar { display: none; }
.day-index button { display: grid; min-width: 85px; min-height: 48px; flex: 1 0 auto; align-content: center; justify-items: start; gap: 0; padding: 6px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--muted); text-align: left; cursor: pointer; transition: border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out; }
.day-index button span { font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.day-index button b { color: var(--ink); font-size: 11px; font-weight: 650; white-space: nowrap; }
.day-index button[aria-current="date"] { border-color: var(--green); background: var(--green); color: #fff; }
.day-index button[aria-current="date"] b { color: #fff; }
#dayIndex:empty, .roadbook-days:empty { display: none; }
.roadbook-section:not(.is-ready) .day-index-heading { display: none; }
.roadbook-days { display: grid; gap: 10px; }
.day-card { margin: 0; scroll-margin-top: 126px; }
.day-details { overflow: clip; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: var(--shadow); transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.day-card.is-current .day-details { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
.day-details[open] { box-shadow: var(--shadow-raised); }
.day-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 14px 19px; cursor: pointer; list-style: none; }
.day-summary::-webkit-details-marker { display: none; }
.day-summary::after { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); content: "+"; font-size: 17px; line-height: 1; transition: transform 150ms ease-out, background-color 150ms ease-out; }
.day-details[open] > .day-summary::after { background: var(--surface); content: "−"; }
.day-summary h2 { min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); font-size: 16px; line-height: 1.35; text-wrap: balance; }
.day-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }
.day-badges span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 9px; line-height: 1.45; }
.day-badge-attention, .day-badge[data-tone="attention"] { border-color: color-mix(in srgb, var(--amber) 38%, var(--line)); background: var(--amber-wash); color: var(--amber); }
.day-badge[data-tone="critical"] { border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); background: color-mix(in srgb, var(--danger) 9%, var(--card)); color: var(--danger); }
.badge-guide { margin: -5px 0 10px; line-height: 1.6; }
.drive-intensity { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.drive-intensity[data-level="elevated"] { border-color: color-mix(in srgb, var(--amber) 38%, var(--line)); background: var(--amber-wash); color: var(--amber); }
.drive-intensity[data-level="high"] { border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); background: color-mix(in srgb, var(--danger) 9%, var(--card)); color: var(--danger); }
.day-body { padding: 0 19px 20px; border-top: 1px solid var(--line); animation: card-enter 190ms ease-out both; }
@keyframes card-enter { from { opacity: .65; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.day-weather { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; margin: 15px 0 17px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.day-weather-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.day-weather-forecast { min-width: 0; color: var(--ink); font-size: 11px; }
.weather-entry { display: inline; }
.day-weather-adjustment { margin: 0; }
.day-weather-adjustment summary { min-height: 40px; padding: 9px 0; color: var(--accent-strong); font-size: 10px; font-weight: 700; cursor: pointer; }
.day-weather-adjustment p { margin: 2px 0 0; color: var(--muted); font-size: 10px; text-wrap: pretty; }
.day-route-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.day-route-tools-label { margin-right: 3px; color: var(--muted); font-size: 10px; }
.route-query-button { min-height: 40px; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line)); border-radius: 9px; background: var(--green-wash); color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; transition: background-color 140ms ease-out, transform 140ms ease-out; }
.route-query-button:hover { background: color-mix(in srgb, var(--green-wash) 65%, var(--green)); }
.route-query-button:disabled { cursor: wait; opacity: .65; }
.day-route-result { width: 100%; }
.day-route-result:empty { display: none; }
.day-route-result[hidden] { display: none; }
.route-result-box { margin: 0 0 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.timeline { position: relative; display: grid; gap: 0; margin: 4px 0 17px; }
.map-nav-link { display: inline-flex; min-height: 30px; align-items: center; margin: 0 4px; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); border-radius: 999px; background: var(--green-wash); color: var(--green); font-size: .82em; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.map-nav-link:hover { border-color: var(--green); background: color-mix(in srgb, var(--green-wash) 72%, var(--card)); }
.map-nav-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; }
.timeline::before { position: absolute; top: 13px; bottom: 18px; left: 109px; width: 1px; background: var(--line-strong); content: ""; }
.tl-row { position: relative; display: grid; grid-template-columns: 86px 26px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 0; border: 0; background: transparent; }
.tl-time { padding-top: 2px; color: var(--accent-strong); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5; text-align: right; }
.tl-icon { z-index: 1; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 12px; }
.tl-content { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-wrap: pretty; }
.tl-content strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.service-stop-text { color: var(--ink); font-weight: 700; }
.tip-box { margin: 11px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 11px; }
.tip-title { margin-bottom: 3px; color: var(--ink); font-size: 11px; font-weight: 750; }
.tip-box.urgent { border-left: 3px solid var(--danger); }
.tip-box.urgent .tip-title { color: var(--danger); }
.meal-card { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.meal-card strong { color: var(--ink); font-size: 12px; }
.meal-card p { margin: 5px 0; color: var(--muted); font-size: 11px; }
.meal-card a { display: inline-flex; min-height: 36px; align-items: center; font-size: 10px; }
.meal-days { display: grid; gap: 8px; }
.meal-day { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
.meal-day-summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; color: var(--accent-strong); font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.meal-day-summary::-webkit-details-marker { display: none; }
.meal-day-summary::after { content: '＋'; color: var(--muted); font-size: 15px; }
.meal-day[open] > .meal-day-summary::after { content: '−'; }
.meal-day-summary:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.meal-day-content { padding: 0 14px 10px; }
.meal-day-content .meal-card:first-child { border-top: 1px solid var(--line); }

h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.4; text-wrap: balance; }
h3 { color: var(--ink); }
.map-container { overflow: hidden; padding: 17px 17px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.map-title { margin: 0 0 9px; color: var(--green); text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .05em; }
.route-map-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.route-map-toolbar label { flex: 0 0 auto; font-weight: 700; }
.route-map-toolbar select, .map-control-button, .map-zoom-controls button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.route-map-toolbar select { min-width: 0; flex: 1 1 auto; padding: 0 10px; }
.map-control-button { padding: 0 12px; color: var(--green); font-weight: 700; cursor: pointer; }
.map-zoom-controls { display: flex; gap: 5px; }
.map-zoom-controls button { width: 42px; padding: 0; color: var(--green); font-size: 19px; cursor: pointer; }
.route-map-toolbar select:focus-visible, .map-control-button:focus-visible, .map-zoom-controls button:focus-visible, .route-map-stop-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; }
.interactive-map { position: relative; width: 100%; height: clamp(330px, 52vh, 560px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--green-wash); touch-action: none; }
.map-placeholder { display: grid; min-height: 100%; place-items: center; margin: 0; padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.map-unavailable { display: grid; place-items: center; }
.route-map-status { margin: 8px 2px 6px; color: var(--muted); font-size: 10px; }
.route-map-stops { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.route-map-stop-button { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 10px; cursor: pointer; }
.route-map-stop-number, .map-stop-marker { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #b6533b; box-shadow: 0 1px 4px #17241d55; color: #fff; font-size: 11px; font-weight: 800; }
.route-map-stop-number[data-place-category="city"], .map-stop-marker[data-place-category="city"] { background: #426b56; }
.route-map-stop-number[data-place-category="lodging"], .map-stop-marker[data-place-category="lodging"] { background: #4d6583; }
.route-map-stop-number[data-place-category="attraction"], .map-stop-marker[data-place-category="attraction"] { background: #b6533b; }
.route-map-stop-number[data-place-category="meal"], .map-stop-marker[data-place-category="meal"] { background: #8b6200; }
.map-stop-marker { width: 28px; height: 28px; border-width: 2px; font: 700 11px/1 system-ui, sans-serif; }
.map-info-label { display: block; padding: 2px; color: #1e2a24; font: 700 13px/1.4 system-ui, sans-serif; }
.map-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 18px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.legend-line.back { background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 11px); }
.legend-place { width: 11px; height: 11px; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.legend-place.city { background: #426b56; }
.legend-place.lodging { background: #4d6583; }
.legend-place.attraction { background: #b6533b; }
.legend-place.meal { background: #8b6200; }
.route-callout { display: grid; gap: 4px; margin: 13px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--muted); font-size: 11px; }
.route-callout strong { color: var(--green); }
.driving-overview { margin-top: 17px; }
.reference-disclosure { margin: 9px 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
.reference-disclosure > summary { min-height: 45px; padding: 11px 14px; color: var(--accent-strong); font-size: 11px; font-weight: 700; cursor: pointer; }
.reference-disclosure .table-wrap, .reference-disclosure > p { margin: 0 13px 12px; }
.reference-disclosure > p { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { position: sticky; top: 0; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 750; text-align: left; }
th, td { min-width: 86px; padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface) 75%, var(--card)); }
.route-table [data-attraction-summary] { min-width: 220px; }
.attraction-ticket-line { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 4px; margin: 0 0 4px; line-height: 1.5; }
.attraction-ticket-line:last-child { margin-bottom: 0; }
.attraction-ticket-line strong { color: var(--accent-strong); font-weight: 700; }
.small { font-size: 10px; }
.dim { color: var(--muted); }

.roadbook-weather-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.roadbook-weather-action > div:first-child { display: grid; gap: 2px; }
.roadbook-weather-action strong { color: var(--ink); font-size: 11px; }
.roadbook-weather-action span, .roadbook-weather-action .live-status { color: var(--muted); font-size: 9px; }
.roadbook-weather-controls { display: flex; align-items: center; gap: 10px; }
.roadbook-weather-controls .live-status { max-width: 250px; margin: 0; }
.live-button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: #fff; font-size: 10px; font-weight: 750; cursor: pointer; transition: transform 140ms ease-out, background-color 140ms ease-out; }
.live-button:hover { background: color-mix(in srgb, var(--green) 88%, black); }
.live-button:disabled { cursor: wait; opacity: .65; }
.live-status { min-height: 2em; margin-bottom: 0 !important; }
.live-result { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.live-result:empty { display: none; }
.live-result strong { color: var(--green); }
.live-result p { margin: 4px 0; }
.live-note { margin: 11px 2px 0; color: var(--muted); font-size: 9px; }
.route-inline-status { min-width: 100%; margin: 0; color: var(--muted); font-size: 9px; }
.route-result-box > strong { display: block; color: var(--green); font-size: 13px; }
.route-result-box > p { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.route-result-box .route-summary-copy { color: var(--ink); font-weight: 650; }
.route-result-box .route-traffic-summary { color: var(--accent-strong); font-weight: 700; }
.route-traffic-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.route-traffic-metrics:empty { display: none; }
.route-traffic-metric { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.route-traffic-metric.status-clear { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); color: var(--green); }
.route-traffic-metric.status-slow { border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); color: var(--amber); }
.route-traffic-metric.status-congested { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--danger); }
.route-traffic-metric.status-unknown { color: var(--muted); }
.route-result-box .route-queried-at { padding-top: 8px; border-top: 1px solid var(--line); font-size: 9px; }

.food-grid, .items-grid, .act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.food-grid .meal-card, .act-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
.act-card .act-icon { font-size: 21px; }
.act-card .act-name { margin: 3px 0; color: var(--ink); font-size: 12px; font-weight: 750; }
.act-card .act-desc { color: var(--muted); font-size: 10px; }
.hotel-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.hotel-cell-lines { display: grid; gap: 4px; min-width: 0; }
.hotel-cell-lines > span { min-width: 0; overflow-wrap: anywhere; }
.hotel-name, .hotel-rate { color: var(--ink); font-weight: 700; }
.hotel-area, .hotel-room-facts { color: var(--muted); }
.hotel-breakfast-included { display: inline-flex; width: fit-content; padding: 3px 9px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--card); font-size: 11px; font-weight: 800; }
.hotel-breakfast-pending { color: var(--amber); font-weight: 700; }
.hotel-cancellation { color: var(--accent-strong); font-weight: 650; }
.budget-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.budget-summary > div { display: flex; min-height: 90px; flex-direction: column; justify-content: center; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.budget-summary span { color: var(--muted); font-size: 10px; }
.budget-summary strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.budget-summary small { color: var(--muted); font-size: 9px; }
.budget-summary .budget-total { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); background: var(--green-wash); }
.budget-input-disclosure { margin-top: 12px; }
.budget-inputs { display: grid; gap: 6px; }
.budget-input-row { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.budget-input-row strong { color: var(--ink); }
.budget-input-row a { margin-left: 6px; }
.budget-table { table-layout: fixed; }
.budget-table td { overflow-wrap: anywhere; }
.budget-table .amt-cell { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.guide-heading { margin: 26px 0 4px; font-size: 16px; }
.guide-cards { display: grid; gap: 8px; }
.guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
.guide-card-summary { display: grid; min-height: 54px; align-content: center; gap: 4px; padding: 9px 13px; color: var(--ink); cursor: pointer; }
.guide-card-summary strong { font-size: 12px; line-height: 1.4; }
.guide-card-summary span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.guide-card-body { padding: 0 13px 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.guide-card-body h4 { margin: 11px 0 4px; color: var(--ink); font-size: 11px; }
.guide-card-body p { margin: 5px 0; }
.guide-points { display: grid; gap: 4px; margin: 5px 0; padding-left: 20px; }
.guide-prompt { padding: 8px 10px; border-left: 2px solid var(--accent); border-radius: 0 7px 7px 0; background: var(--accent-wash); }
.guide-literature { margin-top: 12px; padding: 10px; border-radius: 9px; background: var(--surface); }
.guide-literature h4 { margin-top: 0; }
.guide-byline { color: var(--muted); font-size: 10px; }
.guide-original { margin-top: 8px; border-top: 1px solid var(--line); }
.guide-original summary { min-height: 38px; padding: 9px 0; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.guide-original-text { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); font: inherit; font-size: 11px; line-height: 1.9; }
.guide-source { display: inline-flex; min-height: 36px; align-items: center; color: var(--green); font-weight: 700; }
.guide-sources { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.guide-sources a { display: inline-flex; min-height: 36px; align-items: center; color: var(--green); font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.checklist input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 19px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.checklist li.is-done > span, .checklist li.is-done { color: var(--muted); }
.checklist-progress { margin: -4px 0 10px; color: var(--muted); font-size: 10px; }
.checklist-progress strong { color: var(--green); font-variant-numeric: tabular-nums; }
.tip-box.tight { margin: 9px 0 0; }

.note-detail { overflow: hidden; margin: 8px 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--card); }
.note-detail summary { min-height: 45px; padding: 11px 14px; color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.details-body { padding: 0 14px 12px; color: var(--muted); font-size: 10px; }
.details-body p { margin: 8px 0; }
.source-list p { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.site-footer { margin-top: 40px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer p { margin: 4px 0; font-size: 9px; }
.bottom-nav { display: none; }
.no-script { padding: 12px; border-radius: 10px; background: var(--amber-wash); color: var(--amber); font-size: 11px; }

@media (max-width: 780px) {
  .container { padding-right: 20px; padding-left: 20px; }
  .top-nav { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .hero { min-height: 230px; }
  .top-links { gap: 0; }
  .top-links a { padding-right: 8px; padding-left: 8px; }
  .route-steps { grid-template-columns: repeat(var(--route-columns, 5), minmax(0, 1fr)); grid-auto-rows: 43px; row-gap: 17px; padding: 0; }
  .route-steps li { min-width: 0; }
  .route-steps li > span { width: 25px; height: 25px; }
  .route-steps li b { font-size: 9px; }
  .day-summary { padding-right: 15px; padding-left: 15px; }
  .day-body { padding-right: 15px; padding-left: 15px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 72px; }
  .container { padding: 0 12px calc(92px + env(safe-area-inset-bottom)); }
  .top-nav { min-height: 54px; gap: 8px; margin-right: -12px; margin-left: -12px; overflow-x: clip; padding: 5px 12px; }
  .top-nav .nav-current, .nav-sep, .top-links { display: none; }
  .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .hero { min-height: auto; gap: 18px; margin: 13px 0 10px; padding: 22px 19px; border-radius: 19px; }
  .hero h1 { font-size: clamp(27px, 8vw, 36px); }
  .hero .sub { margin-top: 8px; font-size: 12px; }
  .hero-actions { gap: 7px; margin-top: 16px; }
  .button-primary, .button-secondary { min-height: 43px; padding: 8px 12px; font-size: 11px; }
  .meta-info { gap: 7px 14px; padding-top: 13px; font-size: 10px; }
  .meta-info b { font-size: 11px; }
  .roadbook-section { margin: 12px 0 34px; }
  .roadbook-overview { padding: 17px 14px 13px; border-radius: 18px; }
  .roadbook-heading { gap: 8px; }
  .roadbook-heading h2 { font-size: 21px; }
  .trip-status { max-width: 220px; font-size: 10px; }
  .trip-total { min-width: auto; padding-left: 12px; }
  .trip-total strong { font-size: 23px; }
  .trip-total span { font-size: 9px; }
  .trip-total small { max-width: 75px; font-size: 8px; text-align: right; }
  .route-steps-wrap { margin: 17px 0 13px; }
  .day-index-heading { align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; margin: 22px 1px 7px; }
  .day-index-heading h3 { font-size: 17px; }
  .day-index-hint { font-size: 9px; }
  .day-index { top: 53px; gap: 5px; margin: 0 -7px 9px; padding: 7px; }
  .day-index button { min-width: 66px; min-height: 45px; padding: 5px 8px; border-radius: 9px; }
  .day-index button span { font-size: 8px; }
  .day-index button b { font-size: 9px; }
  .day-card { scroll-margin-top: 108px; }
  .day-details { border-radius: 14px; }
  .day-summary { min-height: 71px; gap: 9px; padding: 12px; }
  .day-summary h2 { font-size: 13px; line-height: 1.42; }
  .day-summary::after { width: 25px; height: 25px; flex-basis: 25px; }
  .day-badges { gap: 4px; margin-top: 6px; }
  .day-badges span { padding: 3px 6px; font-size: 8px; }
  .day-body { padding: 0 12px 14px; }
  .day-weather { grid-template-columns: 1fr; gap: 5px; margin: 11px 0; padding: 10px; }
  .day-weather-title { grid-column: auto; }
  .day-weather-forecast { font-size: 10px; }
  .day-weather-adjustment summary { min-height: 40px; padding-top: 10px; font-size: 9px; }
  .day-weather-adjustment p { font-size: 9px; }
  .day-route-tools { gap: 5px; margin-bottom: 11px; }
  .day-route-tools-label { width: 100%; }
  .route-query-button { min-height: 42px; padding: 7px 9px; font-size: 9px; }
  .timeline { margin-bottom: 12px; }
  .timeline::before { left: 82px; }
  .tl-row { grid-template-columns: 64px 22px minmax(0, 1fr); gap: 7px; padding: 8px 0; }
  .tl-time { font-size: 9px; }
  .tl-icon { width: 22px; height: 22px; font-size: 10px; }
  .tl-content { font-size: 10px; }
  .tl-content strong { font-size: 10px; }
  section { margin: 25px 0; scroll-margin-top: 70px; }
  h2 { font-size: 17px; }
  .map-container { padding: 10px 7px; border-radius: 14px; }
  .map-title { font-size: 10px; }
  .route-map-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; font-size: 10px; }
  .route-map-toolbar label { grid-column: 1; }
  .route-map-toolbar select { grid-column: 2; min-height: 42px; padding-inline: 7px; font-size: 10px; }
  .map-control-button { grid-column: 3; padding: 0 8px; font-size: 10px; }
  .map-zoom-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .map-zoom-controls button { min-height: 40px; }
  .interactive-map { height: clamp(320px, 48vh, 440px); }
  .route-map-stop-button { min-height: 40px; font-size: 10px; }
  .map-legend { justify-content: flex-start; gap: 6px 10px; font-size: 9px; }
  .route-callout { padding: 11px; font-size: 10px; }
  .food-grid, .items-grid, .act-grid { grid-template-columns: 1fr; }
  .roadbook-weather-action { align-items: flex-start; flex-direction: column; gap: 8px; }
  .roadbook-weather-controls { width: 100%; align-items: flex-start; flex-direction: column; gap: 5px; }
  .roadbook-weather-controls .live-status { max-width: none; }
  .live-button { min-height: 43px; }
  .budget-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .budget-summary > div { min-height: 82px; padding: 9px; }
  .budget-summary strong { font-size: 13px; }
  .budget-table { font-size: 9px; }
  .budget-table th, .budget-table td { padding: 7px 5px; }
  .checklist { grid-template-columns: 1fr; }
  .checklist li { gap: 9px; padding: 10px 0; font-size: 10px; }
  .checklist input[type="checkbox"] { width: 21px; height: 21px; flex-basis: 21px; }
  th, td { min-width: 76px; padding: 8px; font-size: 9px; }
  .site-footer { margin-top: 26px; }
  .bottom-nav { position: fixed; right: 9px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 9px; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 5px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--card) 93%, transparent); box-shadow: var(--shadow-raised); backdrop-filter: blur(16px); }
  .bottom-nav a { display: flex; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 10px; color: var(--muted); font-size: 9px; text-decoration: none; }
  .bottom-nav a span { font-size: 15px; line-height: 1.2; }
  .bottom-nav a[aria-current="location"] { background: var(--green-wash); color: var(--green); font-weight: 750; }
}

@media (max-width: 360px) {
  .container { padding-right: 9px; padding-left: 9px; }
  .top-nav { margin-right: -9px; margin-left: -9px; padding-right: 9px; padding-left: 9px; }
  .hero { padding-right: 15px; padding-left: 15px; }
  .route-steps li { min-width: 0; }
  .day-summary h2 { font-size: 12px; }
  .tl-row { grid-template-columns: 58px 20px minmax(0, 1fr); gap: 6px; }
  .timeline::before { left: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.roadbook-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 2px 0; }
.roadbook-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.roadbook-tool-actions .button-primary, .roadbook-tool-actions .button-secondary { min-height: 40px; padding: 8px 12px; font-size: 11px; }
.weather-query-status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; color: var(--muted); font-size: 10px; text-align: right; }
.weather-query-status p { margin: 0; }
.weather-retry-button:not([hidden]) { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent-strong); font: inherit; font-weight: 700; cursor: pointer; }
.weather-retry-button:disabled { opacity: .65; cursor: wait; }
.day-focus-controls[hidden] { display: none !important; }
.day-focus-controls { position: sticky; top: 68px; z-index: 25; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: var(--shadow-raised); backdrop-filter: blur(12px); }
.day-focus-controls button { min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.day-focus-controls button:disabled { opacity: .45; cursor: default; }
.day-focus-controls #dayFocusLabel { min-width: 140px; color: var(--green); font-size: 11px; font-weight: 800; text-align: center; }
body.today-mode .container > #main-content > :not(#roadbook),
body.today-mode .container > .site-footer,
body.today-mode .top-links,
body.today-mode #main-content > #roadbook .roadbook-overview .route-steps-wrap,
body.today-mode #main-content > #roadbook .roadbook-overview .trip-total,
body.today-mode #main-content > #roadbook .roadbook-overview .trip-status,
body.today-mode #main-content > #roadbook .day-index-heading,
body.today-mode #main-content > #roadbook #dayIndex,
body.today-mode #main-content > #roadbook #roadbookDays > .day-card:not(.is-current),
body.today-mode .bottom-nav { display: none !important; }
body.today-mode #main-content > #roadbook .roadbook-section { margin-top: 12px; }
body.today-mode #main-content > #roadbook .roadbook-overview { padding-bottom: 14px; }
body.today-mode #main-content > #roadbook .day-card { scroll-margin-top: 125px; }

.roadbook-print-dialog { width: min(1120px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--page); color: var(--ink); box-shadow: var(--shadow-raised); }
.roadbook-print-dialog::backdrop { background: rgb(17 20 16 / 62%); backdrop-filter: blur(3px); }
.print-preview-shell { display: flex; max-height: calc(100dvh - 28px); flex-direction: column; }
.print-preview-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.print-preview-toolbar h2 { margin: 0; font-size: 16px; }
.print-preview-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.print-preview-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.print-preview-actions button { min-height: 40px; padding: 8px 12px; font-size: 10px; }
.print-preview-content { overflow: auto; padding: 22px clamp(14px, 3.5vw, 40px) 40px; overscroll-behavior: contain; }
.print-document-cover { max-width: 960px; margin: 0 auto 18px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; background: var(--card); }
.print-document-cover h1 { margin: 0; font-size: clamp(20px, 3vw, 30px); line-height: 1.3; }
.print-trip-dates { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.print-offline-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.print-preview-content > .print-section { max-width: 960px; margin: 0 auto 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.print-preview-content .day-card { margin: 10px 0; }
.print-preview-content .day-details { background: var(--card); }
.print-preview-content .day-summary { cursor: default; }
.print-preview-content .day-summary::after { display: none; }
.print-preview-content details[open] > summary { cursor: default; }
.print-preview-content .table-wrap { overflow-x: auto; }
.print-preview-content .route-table th, .print-preview-content .route-table td, .print-preview-content .budget-table th, .print-preview-content .budget-table td { min-width: 0; }
.print-navigation-section h2 { margin: 0; }
.print-section-intro { color: var(--muted); font-size: 10px; line-height: 1.6; }
.print-stop-day { margin: 12px 0; }
.print-stop-day h3 { margin: 0 0 6px; font-size: 12px; }
.print-stop-day ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.print-stop-day li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; line-height: 1.5; }
.print-stop-kind { color: var(--accent-strong); font-weight: 700; }
.print-stop-day li strong { overflow-wrap: anywhere; }
.print-stop-address { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.print-preview-content .checklist input:disabled { opacity: .9; }

@media (max-width: 620px) {
  .roadbook-tools { align-items: flex-start; flex-direction: column; gap: 7px; }
  .roadbook-tool-actions { width: 100%; }
  .roadbook-tool-actions .button-primary, .roadbook-tool-actions .button-secondary { flex: 1; min-height: 42px; }
  .weather-query-status { min-height: 25px; justify-content: flex-start; text-align: left; }
  .day-focus-controls { top: 55px; gap: 5px; padding: 6px; }
  .day-focus-controls button { min-height: 40px; padding: 6px 8px; font-size: 10px; }
  .day-focus-controls #dayFocusLabel { min-width: 84px; font-size: 10px; }
  .roadbook-print-dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .print-preview-shell { max-height: 100dvh; height: 100dvh; }
  .print-preview-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 14px; }
  .print-preview-toolbar h2 { font-size: 15px; }
  .print-preview-actions { width: 100%; }
  .print-preview-actions button { flex: 1; min-height: 42px; }
  .print-preview-content { padding: 12px 10px calc(20px + env(safe-area-inset-bottom)); }
  .print-document-cover { margin-bottom: 10px; padding: 14px; }
  .print-preview-content > .print-section { margin-bottom: 10px; padding: 13px 11px; border-radius: 12px; }
  .print-stop-day ul { grid-template-columns: 1fr; }
  .print-stop-day li { grid-template-columns: 6em minmax(0, 1fr); }
}

@media print {
  @page { size: A4 portrait; margin: 12mm 11mm; }
  body.printing-roadbook { background: #fff !important; color: #222 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.printing-roadbook .container,
  body.printing-roadbook .bottom-nav { display: none !important; }
  body.printing-roadbook #roadbookPrintDialog[open] { position: static; display: block; width: auto; max-width: none; max-height: none; height: auto; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: #fff; color: #222; box-shadow: none; }
  body.printing-roadbook #roadbookPrintDialog::backdrop,
  body.printing-roadbook .print-preview-toolbar,
  body.printing-roadbook .ui-print-section-picker { display: none !important; }
  body.printing-roadbook .print-preview-shell,
  body.printing-roadbook .print-preview-content { display: block; width: auto; max-width: none; max-height: none; height: auto; overflow: visible; padding: 0; }
  body.printing-roadbook .print-document-cover,
  body.printing-roadbook .print-preview-content > .print-section { max-width: none; margin: 0 0 8mm; padding: 0 0 4mm; border: 0; border-bottom: 1px solid #d6d6d0; border-radius: 0; background: #fff; box-shadow: none; color: #222; }
  body.printing-roadbook .print-document-cover { padding-bottom: 6mm; }
  body.printing-roadbook .print-document-cover h1 { font-size: 22pt; }
  body.printing-roadbook .print-trip-dates { font-size: 10pt; }
  body.printing-roadbook .print-offline-note,
  body.printing-roadbook .print-section-intro { color: #555; font-size: 8.5pt; }
  body.printing-roadbook .print-section h2 { margin: 0 0 4mm; font-size: 15pt; }
  body.printing-roadbook .print-section h3 { font-size: 11pt; }
  body.printing-roadbook .print-section p,
  body.printing-roadbook .print-section li,
  body.printing-roadbook .print-section td,
  body.printing-roadbook .print-section th { color: #222; font-size: 8.5pt; }
  body.printing-roadbook .print-section a { color: #315f4d; text-decoration: underline; overflow-wrap: anywhere; }
  body.printing-roadbook .print-section .table-wrap { overflow: visible; border-color: #ccc; }
  body.printing-roadbook .print-section table { width: 100%; table-layout: auto; font-size: 8pt; }
  body.printing-roadbook .print-section th { position: static; background: #f1f1ec; }
  body.printing-roadbook .print-section th,
  body.printing-roadbook .print-section td { min-width: 0; padding: 4px 5px; }
  body.printing-roadbook .print-roadbookDays .day-card { break-before: page; page-break-before: always; margin: 0; }
  body.printing-roadbook .print-roadbookDays .day-card:first-child { break-before: auto; page-break-before: auto; }
  body.printing-roadbook .print-section .day-details,
  body.printing-roadbook .print-section .meal-day,
  body.printing-roadbook .print-section .reference-disclosure,
  body.printing-roadbook .print-section .note-detail { overflow: visible; border-color: #ddd; background: #fff; box-shadow: none; break-inside: auto; }
  body.printing-roadbook .print-section summary { color: #315f4d; }
  body.printing-roadbook .print-section .day-summary { border-bottom: 1px solid #ddd; }
  body.printing-roadbook .print-section .day-summary h2 { font-size: 12pt; }
  body.printing-roadbook .print-section .tip-box,
  body.printing-roadbook .print-section .guide-card,
  body.printing-roadbook .print-section .meal-card,
  body.printing-roadbook .print-stop-day li { break-inside: avoid; page-break-inside: avoid; }
  body.printing-roadbook .print-section .guide-original-text { white-space: pre-wrap; font-size: 8.5pt; line-height: 1.65; }
  body.printing-roadbook .print-stop-day ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.printing-roadbook .print-stop-day li { font-size: 8.5pt; }
  body.printing-roadbook .print-section .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen {
 .hero h1 { font-size:max(1.8125rem, min(4vw, 2.5rem)); }
 .hero .sub { font-size:var(--site-font-body, .875rem); }
}
