/* v3.12: Road-trip planner page. The route tool leads the page; uses site tokens only. */
.rt-hero { --rt-check: #E3B765; --rt-rail: color-mix(in srgb, var(--brand-ink) 45%, transparent); padding-block: 44px 64px; scroll-margin-top: 80px; }
@media (prefers-color-scheme: light) { .rt-hero { --rt-check: #8A5A00; } }
.rt-head { width: min(860px, calc(100% - 40px)); margin-inline: auto; text-align: center; }
.rt-head h1 { margin: 16px auto 14px; max-width: 17ch; }
.rt-head .rt-lede { margin: 0 auto; max-width: 52ch; font-size: 1.12rem; line-height: 1.65; }
.rt-fallback { justify-content: center; }
#route-tool [hidden] { display: none !important; }
#route-tool button, #route-tool select, #route-tool a, #route-tool summary { touch-action: manipulation; scroll-margin-top: 90px; }
#route-tool button:focus-visible, #route-tool a:focus-visible, #route-tool select:focus-visible, #route-tool summary:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }
#route-tool button:disabled { opacity: .6; cursor: default; }

/* Form card */
.route-tool-body { width: min(1120px, calc(100% - 40px)); margin: 30px auto 0; }
.rt-card { max-width: 860px; margin-inline: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .55); }
.route-tool-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin: 0; }
.route-tool-label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; color: var(--ink-2); font-size: .82rem; letter-spacing: .02em; min-width: 0; }
.route-tool-label input, .route-tool-label select { min-height: 52px; padding: 12px 14px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.02rem; font-weight: 500; letter-spacing: 0; width: 100%; min-width: 0; }
.route-tool-label input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.route-tool-label input:focus { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.route-tool-submit { min-height: 52px; padding: 12px 26px; border: 0; border-radius: 12px; background: var(--brand-cta); color: var(--on-accent, #fff); font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.route-tool-submit:hover { background: var(--brand-cta-hover); }
.route-tool-submit:active { transform: scale(.98); }
/* Place suggestions: an overlay under the field, so nothing moves when it opens. */
.rt-field { position: relative; min-width: 0; }
.rt-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--control-border); border-radius: 14px; box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .6); text-align: left; }
.rt-suggest-item { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 7px 12px; border-radius: 10px; cursor: pointer; }
.rt-suggest-item:hover, .rt-suggest-item[aria-selected="true"] { background: color-mix(in srgb, var(--brand-ink) 16%, transparent); }
.rt-suggest-main { color: var(--ink); font-size: .98rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-suggest-sub { color: var(--muted); font-size: .8rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-quick { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 12px; }
.rt-quick button { border: 0; background: none; padding: 8px 0; color: var(--brand-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--brand-ink) 40%, transparent); }
.rt-quick button:hover { text-decoration-color: currentColor; }
.rt-locate svg { width: 14px; height: 14px; margin-right: 7px; vertical-align: -1px; fill: currentColor; }
.rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rt-scope { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.route-tool-status { min-height: 1.4em; color: var(--ink-2); margin: 14px auto 0; max-width: 860px; text-align: center; font-size: .95rem; }
.route-tool-status:empty { min-height: 0; margin: 0; }
.route-tool-status.route-tool-error { color: var(--stamp-red-ink); font-weight: 600; }
.route-tool-places, .route-tool-chosen { scroll-margin-top: 80px; max-width: 860px; border: 1px solid var(--control-border); border-radius: 16px; padding: 20px; margin: 16px auto 0; background: var(--card); }
.route-tool-places legend { font-weight: 700; color: var(--ink); padding: 0 8px; }
.route-tool-places p { margin: 0 0 6px; font-size: .92rem; }
.route-tool-places .route-tool-label { margin: 12px 0; }
.route-tool-places .route-tool-submit { margin-top: 6px; }

/* Results */
.rt-out { margin-top: 34px; }
.route-tool-summary { scroll-margin-top: 84px; margin: 0; outline: none; }
.rt-trip-title { display: block; color: var(--ink); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.rt-trip-facts, .rt-trip-note { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.rt-trip-facts { display: block; margin-top: 8px; }
.rt-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.rt-stats li { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 16px; min-width: 104px; }
.rt-stats b { display: block; color: var(--ink); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rt-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.rt-stats .rt-stat-next { flex: 1 1 240px; border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); }
.rt-stats .rt-stat-next b { font-size: 1.05rem; line-height: 1.35; }
.rt-edit { border: 0; background: none; padding: 10px 0; margin-top: 4px; color: var(--brand-ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.rt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: start; margin-top: 22px; }
.rt-map-col { position: sticky; top: 84px; order: 2; }
.route-tool-map { scroll-margin-top: 84px; width: 100%; height: min(72vh, 620px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper-deep); }
.route-tool-map:empty { display: none; }

/* Journey list: a mile rail with a dot per stop. */
.route-tool-results { list-style: none; margin: 0; padding: 0; }
.route-tool-results:empty { display: none; }
.route-tool-row, .rt-end, .rt-gap { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
.route-tool-row::before, .rt-end::before, .rt-gap::before { content: ""; position: absolute; left: 63px; top: 0; bottom: 0; width: 2px; background: var(--rt-rail); }
.rt-end:first-child::before { top: 14px; }
.rt-end:last-child::before { bottom: auto; height: 14px; }
.route-tool-row::after, .rt-end::after { content: ""; position: absolute; left: 57px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-ink); box-shadow: 0 0 0 4px var(--paper); }
.rt-end::after { top: 7px; background: var(--paper); border: 3px solid var(--ink-2); width: 8px; height: 8px; }
.route-tool-row.rt-check::after { background: var(--paper); border: 2px solid var(--muted); width: 10px; height: 10px; }
.route-tool-row { padding: 10px 0 12px; scroll-margin-top: 90px; border-radius: 12px; transition: background .2s ease; }
.route-tool-row > * { grid-column: 2; margin-left: 12px; }
.route-tool-row-head { display: contents; }
button.route-tool-mile { border: 0; background: none; font-family: inherit; cursor: pointer; min-height: 44px; align-self: start; border-radius: 10px; }
button.route-tool-mile:hover b { color: var(--brand-ink); }
.route-tool-row:hover, .route-tool-row:focus-within { background: color-mix(in srgb, var(--brand-ink) 6%, transparent); }
.route-tool-mile { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-top: 5px; text-align: right; padding-right: 14px; color: var(--muted); font-size: .72rem; line-height: 1.2; white-space: nowrap; }
.route-tool-mile b { display: block; color: var(--ink); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.route-tool-select { grid-column: 2; margin-left: 12px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; padding: 4px 0; cursor: pointer; justify-self: start; }
.route-tool-select:hover { color: var(--brand-ink); }
.route-tool-row.rt-twin .route-tool-mile { visibility: hidden; }
.route-tool-row.rt-twin::after { width: 6px; height: 6px; left: 61px; top: 26px; border-width: 2px; }
.route-tool-row-selected { background: color-mix(in srgb, var(--brand-ink) 9%, transparent); }
.route-tool-meta { margin-top: 3px; margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.route-tool-row:not(.rt-check) > .route-tool-meta:first-of-type { color: var(--brand-ink); }
.route-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.route-tool-actions a, .route-tool-keep, .route-tool-remove, #route-tool-print { display: inline-flex; align-items: center; min-height: 38px; border: 1px solid var(--control-border); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 16px; cursor: pointer; text-decoration: none; }
.route-tool-actions a { border-color: color-mix(in srgb, var(--brand-ink) 55%, transparent); color: var(--brand-ink); }
.route-tool-actions a:hover, .route-tool-keep:hover { background: color-mix(in srgb, var(--brand-ink) 12%, transparent); }
.route-tool-keep[aria-pressed="true"] { background: var(--brand-cta); border-color: var(--brand-cta); color: var(--on-accent, #fff); }
.route-tool-source { margin-top: 6px; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.route-tool-source summary { cursor: pointer; padding: 6px 0; }
.route-tool-access-checks > summary { cursor: pointer; padding: 10px 0; }
.route-tool-source p { margin: 4px 0; font-size: .82rem; }
.rt-end { padding: 2px 0 14px; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.rt-end:last-child { padding: 14px 0 0; }
.rt-end:last-child::after { top: 19px; }
.rt-end span { grid-column: 2; margin-left: 12px; }
.rt-time { margin-top: 1px; margin-bottom: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.rt-break { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 8px 0; }
.rt-break::before { content: ""; position: absolute; left: 63px; top: 0; bottom: 0; width: 2px; background: var(--rt-rail); }
.rt-break::after { content: ""; position: absolute; left: 58px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; transform: rotate(45deg); background: var(--paper); border: 2px solid var(--brand-ink); box-sizing: border-box; }
.rt-break span { grid-column: 2; margin-left: 12px; justify-self: start; color: var(--ink); font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand-ink) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand-ink) 35%, transparent); }
.rt-legend { margin: 0 0 10px; color: var(--muted); font-size: .8rem; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; margin-bottom: 0; }
.rt-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--card); color: var(--ink-2); font-size: .76rem; font-weight: 600; line-height: 1.5; }
.rt-chip-yes { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 40%, transparent); background: color-mix(in srgb, var(--brand-ink) 9%, transparent); }
.rt-calm .route-tool-meta { font-size: .8rem; }
.rt-calm .route-tool-row:not(.rt-check) > .route-tool-meta:first-of-type { color: var(--brand-ink); }
.rt-calm .route-tool-actions { gap: 0 20px; margin-top: 2px; }
.rt-calm .route-tool-actions a, .rt-calm .route-tool-keep { min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.rt-calm .route-tool-actions a:hover, .rt-calm .route-tool-keep:hover { background: none; text-decoration-color: currentColor; }
.rt-calm .route-tool-keep { color: var(--ink-2); }
.rt-calm .route-tool-keep[aria-pressed="true"] { background: none; color: var(--brand-ink); text-decoration: none; }
.rt-calm .route-tool-source summary { padding: 4px 0; }
.rt-trip-actions { display: flex; flex-wrap: wrap; gap: 0 24px; }
.rt-trip-actions .rt-edit { min-height: 44px; }
.rt-end .rt-end-note { color: var(--muted); font-weight: 400; font-size: .8rem; }
.rt-skeleton { margin-top: 34px; }
.rt-skel { border-radius: 14px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.rt-skel-title { height: 34px; width: min(420px, 80%); }
.rt-skel-stats { display: flex; gap: 10px; margin-top: 18px; }
.rt-skel-stats .rt-skel { height: 66px; flex: 0 1 150px; }
.rt-skel-rows { display: grid; gap: 14px; margin-top: 30px; max-width: 560px; }
.rt-skel-rows .rt-skel { height: 74px; }
@media (prefers-reduced-motion: no-preference) {
  .rt-skel { animation: rt-pulse 1.2s ease-in-out infinite alternate; }
  @keyframes rt-pulse { from { opacity: .45; } to { opacity: 1; } }
}
.rt-strip { margin: 18px 0 2px; min-height: 64px; padding: 10px 14px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); cursor: pointer; overflow: hidden; }
.rt-strip svg { display: block; width: 100%; height: 64px; }
.rt-strip-road { stroke: color-mix(in srgb, var(--brand-ink) 45%, transparent); stroke-width: 3; stroke-linecap: round; }
.rt-strip-long { stroke: var(--rt-check); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 7; }
.rt-strip-mark { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.rt-strip-label, .rt-strip-place { fill: var(--muted); font-size: 11px; font-weight: 600; font-family: inherit; }
.rt-strip-place { fill: var(--ink-2); }
.rt-strip-stop { fill: var(--card); stroke: var(--brand-ink); stroke-width: 1.6; }
.rt-strip-stop.rt-strip-side { fill: var(--brand-ink); }
.rt-strip-stop.rt-strip-on { fill: var(--ink); stroke: var(--card); stroke-width: 2.5; }
.rt-strip-end { fill: var(--card); stroke: var(--ink-2); stroke-width: 3; }
.rt-leave { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.rt-leave input { min-height: 38px; padding: 4px 10px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500; color-scheme: light dark; }
.rt-leave input:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
/* v3.13: web-nearby-app-prompt (D-2026-11-19-022). iOS Safari draws an empty time field as a blank box, so on iOS a quiet
   "--:--" sits inside it until a time is picked. The hint takes no taps and is hidden from VoiceOver; other browsers keep their own. */
.rt-leave-field { position: relative; display: inline-flex; }
.rt-leave-hint { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--muted); font-weight: 500; pointer-events: none; }
.rt-leave-ios .rt-leave-field input { min-width: 6.5em; }
.rt-leave-ios.rt-leave-empty .rt-leave-hint { display: flex; }
.rt-trip-actions { align-items: center; }
.rt-drives { max-width: 860px; margin: 22px auto 0; }
.rt-drives-title { margin: 0 0 10px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.rt-drives-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rt-drive { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.rt-drive:hover { border-color: color-mix(in srgb, var(--brand-ink) 55%, transparent); transform: translateY(-1px); }
.rt-drive svg { flex: 0 0 48px; width: 48px; height: 30px; }
.rt-drive path { fill: none; stroke: var(--brand-ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 5; }
.rt-drive-a { fill: var(--card); stroke: var(--brand-ink); stroke-width: 2; }
.rt-drive-b { fill: var(--brand-ink); }
.rt-drive span { min-width: 0; line-height: 1.25; }
.rt-drive b { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.rt-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 18px; border-radius: 999px; background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--control-border); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .65); color: var(--ink); font-size: .86rem; font-weight: 600; }
.rt-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-bar button { flex: 0 0 auto; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--brand-cta); color: var(--on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 901px) { .rt-bar { display: none !important; } }
@media (max-width: 900px) { #route-tool .route-tool-row button, #route-tool .route-tool-row a, #route-tool .route-tool-row summary { scroll-margin-bottom: 84px; } }
.rt-sprite { position: absolute; }
.rt-glyph { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rt-chip { display: inline-flex; align-items: center; gap: 5px; }
.rt-break-glyph::after { display: none; }
.rt-break-glyph > .rt-glyph { position: absolute; left: 55px; top: 50%; width: 18px; height: 18px; margin-top: -9px; padding: 1px; border-radius: 50%; background: var(--paper); color: var(--brand-ink); box-sizing: border-box; }
.rt-end-glyph:last-child::after { display: none; }
.rt-end-glyph > .rt-glyph { position: absolute; left: 55px; top: 14px; width: 18px; height: 18px; background: var(--paper); color: var(--ink-2); }
.rt-gap { padding: 4px 0; }
.rt-gap span { grid-column: 2; margin-left: 12px; justify-self: start; color: var(--muted); font-size: .78rem; padding: 4px 0; }
.rt-gap.rt-gap-long span { color: var(--rt-check); border: 1px dashed color-mix(in srgb, var(--rt-check) 60%, transparent); border-radius: 999px; padding: 6px 14px; font-weight: 600; margin-block: 6px; }
.route-tool-access-checks { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 6px; color: var(--ink-2); font-size: .92rem; }
.route-tool-foot { color: var(--muted); font-size: .8rem; line-height: 1.6; max-width: 860px; margin: 26px auto 0; text-align: center; }

/* App card: shown with results, inside the list. */
.rt-app { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 20px; align-items: center; margin: 12px 0 18px; padding: 22px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--brand-cta) 20%, var(--card)), var(--card) 62%); border: 1px solid color-mix(in srgb, var(--brand-ink) 35%, transparent); }
li.rt-app-slot { list-style: none; position: relative; }
.rt-app h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.rt-app p { margin: 0 0 14px; font-size: .95rem; line-height: 1.6; }
.rt-app ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 7px; }
.rt-app li { position: relative; padding-left: 24px; color: var(--ink); font-size: .92rem; line-height: 1.45; }
.rt-app li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg); }
.rt-app .small { margin: 10px 0 0; color: var(--muted); }
.rt-app img { width: 132px; height: auto; border-radius: 20px; border: 1px solid var(--line-soft); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }

.route-tool-chosen h3 { margin: 0 0 6px; font-size: 1.2rem; }
.route-tool-chosen ol { padding-left: 20px; }
.route-tool-chosen li { margin-bottom: 14px; }
.route-tool-chosen a { display: inline-block; padding: 8px 0; }
.route-tool-remove { margin-left: 14px; }
.route-tool-print-credit { display: none; }

/* App band below the tool */
.rt-app-band { padding-block: 56px 60px; }
.rt-app-band h2 { max-width: 16ch; margin: 14px 0 16px; }

@media (prefers-reduced-motion: no-preference) {
  .route-tool-row, .rt-app, .rt-end, .rt-gap { animation: rt-rise .4s ease both; }
  @keyframes rt-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .rt-split { grid-template-columns: 1fr; gap: 18px; }
  .rt-map-col { position: static; order: 0; }
  .route-tool-map { height: 300px; }
}
@media (max-width: 640px) {
  .rt-hero { padding-block: 26px 44px; }
  .rt-head h1 { font-size: clamp(2.05rem, 8.4vw, 2.8rem); margin-top: 12px; }
  .rt-head .rt-lede { font-size: 1rem; }
  .route-tool-body { width: calc(100% - 32px); margin-top: 22px; }
  .rt-card { padding: 16px; border-radius: 18px; }
  .route-tool-form { grid-template-columns: 1fr; gap: 12px; }
  .route-tool-form .route-tool-submit { width: 100%; }
  .route-tool-row, .rt-end, .rt-gap, .rt-break { grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; }
  .rt-break::before { left: 53px; }
  .rt-break-glyph > .rt-glyph, .rt-end-glyph > .rt-glyph { left: 45px; }
  .rt-break::after { left: 48px; }
  .rt-break span { margin-left: 8px; }
  .route-tool-row::before, .rt-end::before, .rt-gap::before { left: 53px; }
  .route-tool-row::after, .rt-end::after { left: 47px; }
  .route-tool-row.rt-twin::after { left: 51px; }
  .route-tool-mile { padding-right: 14px; }
  .route-tool-row > *, .route-tool-select, .rt-end span, .rt-gap span { margin-left: 8px; }
  .route-tool-mile b { font-size: 1rem; }
  .rt-app { grid-template-columns: 1fr; padding: 18px; }
  .rt-app img { display: none; }
  .rt-app .launch-button { width: 100%; }
  .rt-stats li { flex: 1 1 96px; padding: 9px 12px; }
  .rt-drives-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .rt-bar { display: none !important; }
  /* v3.12: The trip sheet. Light tokens on paper; controls, the map and the app card stay on screen only. */
  #route-tool.rt-sheet { --ink: #000; --ink-2: #222; --muted: #444; --brand-ink: #0B6675; --card: #fff; --paper: #fff; --line-soft: #bbb; --rt-check: #8A5A00; --rt-rail: #9bb; }
  #route-tool.rt-sheet .route-tool-body { width: 100%; margin: 0; }
  #route-tool.rt-sheet .route-tool-body > #route-tool-out, #route-tool.rt-sheet .route-tool-body > .route-tool-foot:not(#route-tool-chosen) { display: block !important; }
  #route-tool.rt-sheet .rt-out { margin-top: 0; }
  #route-tool.rt-sheet .rt-trip-actions, #route-tool.rt-sheet .rt-map-col, #route-tool.rt-sheet .route-tool-actions, #route-tool.rt-sheet .route-tool-source,
  #route-tool.rt-sheet .rt-app-slot, #route-tool.rt-sheet #route-tool-access-checks { display: none !important; }
  #route-tool.rt-sheet.rt-has-chosen #route-tool-results, #route-tool.rt-sheet.rt-has-chosen .rt-legend { display: none !important; }
  #route-tool.rt-sheet .rt-split { display: block; margin-top: 10px; }
  #route-tool.rt-sheet .rt-trip-title { font-size: 18pt; }
  #route-tool.rt-sheet .rt-stats li, #route-tool.rt-sheet .rt-strip { border-color: #999; }
  #route-tool.rt-sheet .route-tool-row { padding: 4px 0 6px; break-inside: avoid; background: none !important; animation: none; }
  #route-tool.rt-sheet .route-tool-row.rt-twin { display: none; }
  #route-tool.rt-sheet .route-tool-foot { text-align: left; margin-top: 12px; color: #000; }
  #route-tool.rt-sheet .route-tool-foot a { color: #000; text-decoration: none; }
  body > :not(main), main > :not(#route-tool), #route-tool > :not(.route-tool-body), #route-tool .route-tool-body > :not(#route-tool-chosen) { display: none !important; }
  body, #route-tool, #route-tool-chosen { padding: 0; margin: 0; background: white; color: black; }
  #route-tool-chosen { width: 100%; max-width: none; border: 0; }
  #route-tool-chosen li { break-inside: avoid; }
  #route-tool-chosen .route-tool-meta { color: black; }
  #route-tool-chosen button { display: none; }
  .route-tool-print-credit { display: block; }
}

/* v3.12: A place name with no spaces wraps instead of widening the page. */
.rt-trip-title, .rt-end span, .route-tool-select, .route-tool-status { overflow-wrap: anywhere; }

/* v3.12: Nearest rest areas, listed from one tap on "Start from my location" with no destination. */
.rt-near { max-width: 860px; margin: 22px auto 0; scroll-margin-top: 84px; }
.rt-near h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.02em; scroll-margin-top: 90px; }
.rt-near h3:focus { outline: none; }
.rt-near-note { margin: 0 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.rt-near-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.rt-near-row { padding: 14px 16px 15px; border-bottom: 1px solid var(--line-soft); }
.rt-near-row:last-child { border-bottom: 0; }
.rt-near-name { margin: 0; font-size: 1.02rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.rt-near-where { margin: 3px 0 0; font-size: .92rem; color: var(--ink-2); }
.rt-near-side { margin: 2px 0 0; font-size: .88rem; font-weight: 600; color: var(--brand-ink); }
.rt-near-check .rt-near-side { color: var(--muted); font-weight: 500; }
.rt-near-row .rt-chips { margin: 8px 0 0; }
.rt-near-next { margin-top: 16px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--brand-ink) 7%, transparent); }
.rt-near-next p { margin: 0 0 10px; font-size: .95rem; line-height: 1.55; }
/* v3.13: web-nearby-app-prompt (D-2026-11-19-022). The app line sits under the note, before the list, in the note's quiet type. */
.rt-near-app { margin: 0 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.rt-near-app a { font-weight: 650; white-space: nowrap; }
@media print { .rt-near-next, .rt-near-app { display: none; } }
