/* Shared map shell: floating desktop panel, mobile bottom sheet. */
:root { --qgo-green:#173f36; --qgo-border:#dce5e1; --qgo-shadow:0 6px 28px #102a2624; --keyboard-inset:0px; }
body:has(.transport-shell) { overflow:hidden; background:#e4ece8; font-size:16px; }
[hidden] { display:none !important; }
.ui-icon { width:22px; height:22px; flex:none; display:inline-block; vertical-align:middle; }
body:has(.transport-shell) > header { position:fixed; top:16px; left:16px; right:auto; z-index:1300; width:250px; height:60px; padding:8px 12px; border:1px solid var(--qgo-border); border-radius:18px; box-shadow:var(--qgo-shadow); background:#fff; }
.brand { width:100%; min-height:42px; padding:2px 4px; border:0; background:transparent; display:flex; align-items:center; justify-content:flex-start; font-size:20px; gap:9px; letter-spacing:-.5px; text-decoration:none; color:inherit; font-weight:700; }
.brandmark { width:34px; height:36px; border-radius:11px; }
.transport-shell { display:block; position:fixed; inset:0 0 calc(42px + env(safe-area-inset-bottom)); height:auto; }
.transport-shell .map-area { position:absolute; inset:0; height:100%; min-height:0; }
.journey-panel { position:absolute; top:142px; left:16px; bottom:auto; width:370px; max-height:calc(100% - 104px); overflow-y:auto; overscroll-behavior:contain; padding:0; border:1px solid var(--qgo-border); border-radius:20px; background:#fff; box-shadow:var(--qgo-shadow); scrollbar-width:thin; z-index:1100; }
.sheet-heading { position:sticky; top:0; background:#fff; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:12px 16px 0; }
.sheet-heading h1 { margin:0; font-size:24px; line-height:1.25; letter-spacing:-.5px; }
#sheet-close { width:44px; padding:0; border:0; background:transparent; }
.sheet-toggle { display:none; }
.panel-section { padding:12px 16px 16px; border:0; background:#fff; }
.route-prototype { display:block; margin:0; padding:0; border:0; background:transparent; min-height:0; }
.route-location-row { grid-template-columns:42px minmax(0,1fr); gap:8px; margin:8px 0; }
.route-location-row label { font-size:14px; }
.route-location-entry { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; gap:6px; align-items:center; }
.route-location-control { min-height:46px; font-size:16px; border-radius:12px; background:#f5f8f7; border-color:var(--qgo-border); min-width:0; }
.route-location-shortcut { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; display:grid; place-items:center; border-radius:12px; background:#f5f8f7; border:1px solid var(--qgo-border); }
.route-location-shortcut .ui-icon { width:20px; height:20px; }
.journey-modes { display:flex; gap:6px; margin:12px 0 8px; }
.journey-modes button { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; padding:9px 6px; font-size:14px; font-weight:600; min-height:44px; border-radius:12px; background:#f5f8f7; }
.journey-modes button[aria-pressed="true"] { background:#e4f0e9; border-color:#426a59; color:#173f36; }
.route-plan-button { border-radius:12px; min-height:46px; order:initial; }
.route-advanced-option { display:none !important; }
.planner-status,#pick-status,#network-status { font-size:14px; line-height:1.45; margin:8px 0; }
.planner-status:empty,#pick-status:empty,#network-status:empty { display:none; }
.cycle-notices { margin-top:14px; font-size:14px; line-height:1.5; }
.cycle-notices summary,.future-modes summary,.route-sections summary { padding:12px 0; font-size:14px; font-weight:600; cursor:pointer; }
.cycle-notices p,.cycle-notices a { font-size:14px; line-height:1.5; }
.cycle-notices a { display:block; margin:10px 0; }
.routing-meta { margin-top:8px; }
.routing-meta .tag { display:none; }
.routing-meta small { font-size:12px; }
.future-modes { display:block; margin:0; border-top:1px solid var(--qgo-border); }
.future-modes > div { display:flex; align-items:center; gap:10px; padding:10px 0; background:transparent; border:0; border-radius:0; }
.future-modes span { display:inline; font-size:14px; }
.future-modes small { margin:0 0 0 auto; font-size:12px; }
.map-layers-control { top:16px; right:16px; left:auto; z-index:1250; }
.map-layers-button,.map-locate-button { width:46px; height:46px; min-width:46px; min-height:46px; border-radius:14px; display:grid; place-items:center; padding:0; box-shadow:var(--qgo-shadow); border:1px solid var(--qgo-border); }
.map-layers-panel { left:auto; right:0; width:min(310px,calc(100vw - 32px)); border-radius:18px; max-height:calc(100dvh - 150px); overflow:auto; }
.map-layers-heading { font-size:16px; }
.map-layer-row .layer-select { font-size:14px; }
.map-layer-row .mode-icon { background:transparent; }
.map-layer-row .toggle { min-width:44px; min-height:44px; }
.map-locate-button { right:16px; bottom:32px; z-index:1000; }
.leaflet-top.leaflet-right { top:72px; right:6px; }
.leaflet-control-zoom { border:1px solid var(--qgo-border)!important; border-radius:14px!important; overflow:hidden; box-shadow:var(--qgo-shadow)!important; }
.leaflet-control-zoom a { width:44px!important; height:44px!important; line-height:44px!important; }
.leaflet-popup-content-wrapper { border-radius:18px; }
.leaflet-popup-content { font-size:14px; line-height:1.5; }
#map-status { position:absolute; left:auto; right:76px; bottom:36px; max-width:min(400px,calc(100% - 110px)); font-size:12px; border-radius:12px; padding:8px 10px; z-index:900; }
#map-status:empty { display:none; }
.map-footer { position:fixed; bottom:0; left:0; right:0; min-height:42px; padding:0 12px env(safe-area-inset-bottom); background:#fff; border-top:1px solid var(--qgo-border); z-index:1300; }
.map-footer nav { display:flex; justify-content:center; gap:16px; }
.map-footer button { min-height:42px; border:0; border-radius:0; padding:8px 4px; font-size:14px; font-weight:500; background:transparent; }
.map-footer button[aria-pressed="true"] { color:#173f36; box-shadow:inset 0 -2px #173f36; font-weight:700; }
#toast { bottom:calc(54px + env(safe-area-inset-bottom)); font-size:14px; }
.route-result-primary { flex-wrap:wrap; white-space:normal; font-size:22px; }
.route-result-primary strong { font-size:22px; }
.route-result-primary .route-ascent,.route-result-primary .route-descent,.route-result-primary .route-ascent strong,.route-result-primary .route-descent strong { font-size:14px; }
.route-result-chips { flex-wrap:wrap; gap:10px; overflow:visible; }
.route-result-chip,.route-result-chip strong,.route-sections li,.route-sections li strong,.route-shortest-toggle { font-size:14px; }
.route-result-chip .ui-icon { width:18px; height:18px; }
.route-shortest-toggle { min-height:44px; }
.route-export-button { width:44px; height:44px; min-height:44px; }
.route-result-warning { font-size:14px; }
.route-time { margin:8px 0; font-size:14px; color:#526b61; }
.bus-option { margin-top:12px; padding:14px; border:1px solid var(--qgo-border); border-radius:14px; background:#f5f8f7; }
.bus-option h2 { display:flex; gap:8px; align-items:center; margin:0 0 8px; font-size:20px; }
.bus-option p,.bus-option summary,.bus-option li { font-size:14px; line-height:1.5; }
.bus-option p { margin:6px 0; }
.bus-option ol { padding-left:20px; }
.section-heading .eyebrow,.status-dot { display:none; }
.section-heading h2 { font-size:20px; }
.section-heading p,.notice p,.privacy-note,.detail-card p,.detail-card a { font-size:14px; line-height:1.5; }
.layer-select { font-size:14px; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible { outline:3px solid #bd7b2c; outline-offset:2px; }
dialog label,dialog p { font-size:16px; line-height:1.5; }
dialog .privacy-note { font-size:14px; }
@media(max-width:760px) {
  body:has(.transport-shell)>header { top:calc(8px + env(safe-area-inset-top)); left:8px; right:auto; width:176px; height:50px; border-radius:15px; padding:5px 8px; }
  body.qgo-panel-open:has(.transport-shell)>header { display:none; }
  .brand { font-size:17px; gap:6px; min-height:36px; }
  .brandmark { width:27px; height:30px; }
  .transport-shell { inset:0 0 calc(44px + env(safe-area-inset-bottom)); }
  .journey-panel { top:auto; left:8px; right:8px; bottom:calc(6px + var(--keyboard-inset)); width:auto; height:258px; max-height:calc(100% - 72px - var(--keyboard-inset)); border-radius:18px; transition:height .2s ease; margin:0; }
  .journey-panel.expanded { position:fixed; inset:0 0 calc(44px + env(safe-area-inset-bottom)) 0; width:auto; height:auto; max-height:none; border-radius:0; border:0; z-index:5000; }
  .journey-panel[data-view="network"],.journey-panel[data-view="community"] { position:fixed; inset:0 0 calc(44px + env(safe-area-inset-bottom)) 0; width:auto; height:auto; max-height:none; border-radius:0; border:0; z-index:5000; }
  .journey-panel.map-picking { top:auto; bottom:calc(54px + env(safe-area-inset-bottom)); height:54px; max-height:54px; overflow:hidden; z-index:1305; }
  .journey-panel.map-picking .sheet-toggle { display:none; }
  .journey-panel.map-picking .sheet-heading { top:0; min-height:54px; padding:0 14px; }
  .journey-panel.map-picking .panel-section { display:none!important; }
  .journey-panel.map-picking #sheet-close { display:none; }
  .sheet-toggle { display:none; width:100%; height:20px; min-height:20px; padding:6px; border:0; border-radius:18px 18px 0 0; background:#fff; position:sticky; top:0; z-index:3; touch-action:none; }
  .sheet-toggle span { display:block; width:34px; height:4px; border-radius:4px; background:#b3c2ba; margin:auto; }
  .sheet-heading { padding:10px 12px 4px; top:0; min-height:40px; }
  .sheet-heading h1 { font-size:18px; line-height:1.1; }
  #sheet-close { height:30px; min-height:30px; width:38px; }
  .panel-section,.journey-section { padding:2px 12px 12px; min-height:0; }
  .route-location-row { margin:6px 0; grid-template-columns:36px minmax(0,1fr); gap:6px; }
  .route-location-row label { font-size:12px; }
  .route-location-control { min-height:44px; font-size:16px; border-radius:11px; }
  .route-location-entry { grid-template-columns:minmax(0,1fr) 44px 44px; gap:5px; }
  .journey-modes { margin:6px 0 4px; gap:4px; }
  .journey-modes button { min-height:38px; padding:6px 4px; font-size:13px; border-radius:10px; }
  .route-plan-button { margin:4px 0 0!important; min-height:40px; }
  .map-layers-control { top:calc(10px + env(safe-area-inset-top)); right:8px; left:auto; }
  .map-layers-button { width:46px; min-width:46px; min-height:46px; }
  .map-layers-panel { top:54px; width:min(310px,calc(100vw - 20px)); }
  .map-locate-button { top:auto; bottom:calc(56px + env(safe-area-inset-bottom)); right:8px; width:44px; min-width:44px; height:44px; min-height:44px; border-radius:13px; font-size:20px; z-index:1000!important; }
  .leaflet-top.leaflet-right { top:calc(66px + env(safe-area-inset-top)); right:0; }
  #map-status { left:8px; right:60px; bottom:auto; top:calc(106px + env(safe-area-inset-top)); max-width:calc(100% - 82px); font-size:11px; padding:6px 8px; }
  .map-footer { min-height:44px; padding-left:8px; padding-right:8px; }
  .map-footer nav { justify-content:space-between; gap:4px; }
  .map-footer button { min-height:44px; font-size:12px; }
  .route-prototype { display:block; }
  .leaflet-control-attribution { max-width:calc(100vw - 20px); font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .journey-panel { transition:none; } }
.route-prototype .planner-status,.route-prototype #pick-status,.route-prototype #network-status,.route-prototype #cycle-results p { font-size:14px; }
.route-prototype .route-export-button { width:44px; }
@media(max-width:350px) {
  .brand { font-size:16px; }
  .brandmark { display:none; }
  body:has(.transport-shell)>header { width:160px; }
  .journey-modes button { font-size:13px; gap:3px; }
  .journey-modes .ui-icon { width:18px;height:18px; }
}

/* Icons retain their labels and fit the compact navigation. */
.map-footer button { display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.map-footer .ui-icon { width:18px; height:18px; }
#map-layers-close .ui-icon { width:18px; height:18px; }
#open-report, #refresh-community { display:inline-flex; align-items:center; gap:8px; }
@media (max-width:380px) { .map-footer button { gap:3px; } .map-footer .ui-icon { width:16px; height:16px; } }


/* Map-first planned route summary */
.route-summary-card {
  position:absolute;
  left:16px;
  bottom:18px;
  z-index:1250;
  width:min(390px,calc(100% - 32px));
  padding:14px;
  border:1px solid var(--qgo-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--qgo-shadow);
}
.route-summary-top { display:flex; align-items:center; gap:10px; }
.route-summary-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; min-width:0; font-size:15px; }
.route-summary-title > strong { font-size:22px; letter-spacing:-.4px; }
.route-summary-title .route-ascent,.route-summary-title .route-descent,
.route-summary-title .route-ascent strong,.route-summary-title .route-descent strong { font-size:13px; font-weight:600; }
.route-summary-close { margin-left:auto; width:36px; height:36px; min-width:36px; padding:0; border:0; background:transparent; display:grid; place-items:center; }
.route-summary-character { margin:5px 0 2px; font-size:12px; line-height:1.35; color:#526b61; }
.route-summary-profile .route-elevation { margin:5px 0 2px; }
.route-summary-profile .route-elevation-svg { height:56px; }
.route-summary-profile .route-elevation-key { display:none; }
.route-summary-actions { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:8px; }
.route-summary-actions button { min-height:42px; border-radius:11px; }
.route-summary-navigate { display:flex; align-items:center; justify-content:center; gap:7px; }
.route-summary-details { padding-inline:16px; }

@media(max-width:760px) {
  .route-summary-card {
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(50px + env(safe-area-inset-bottom));
    width:auto;
    padding:12px;
    border-radius:16px;
    z-index:1290;
  }
  .route-summary-title > strong { font-size:20px; }
  .route-summary-profile .route-elevation-svg { height:52px; }
  .route-summary-actions button { min-height:44px; }
}


/* Live cycle navigation */
.navigation-card {
  position:fixed;
  top:calc(8px + env(safe-area-inset-top));
  left:8px;
  right:8px;
  z-index:5200;
  padding:12px 12px 10px;
  border:1px solid var(--qgo-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--qgo-shadow);
}
.navigation-instruction {
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.navigation-manoeuvre {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  font-size:38px;
  line-height:1;
  font-weight:700;
  color:#173f36;
}
.navigation-instruction-copy { min-width:0; }
.navigation-next-distance {
  display:block;
  font-size:27px;
  line-height:1;
  letter-spacing:-.6px;
}
.navigation-next-text {
  display:block;
  margin-top:3px;
  font-size:17px;
  line-height:1.18;
}
.navigation-status {
  display:flex;
  flex-wrap:wrap;
  gap:5px 8px;
  align-items:baseline;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--qgo-border);
  font-size:12px;
  color:#526b61;
}
.navigation-status strong { color:#173f36; font-size:14px; }
.navigation-off-route { margin-left:auto; color:#9a4a00; font-weight:700; }
.navigation-controls {
  display:grid;
  grid-template-columns:1.12fr 1.12fr .8fr .9fr .72fr;
  gap:5px;
  margin-top:9px;
}
.navigation-controls button {
  min-width:0;
  min-height:42px;
  padding:6px 4px;
  border-radius:10px;
  font-size:11px;
  line-height:1.05;
}
.navigation-tool,
.navigation-controls #unused {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
}
.navigation-controls .ui-icon { width:16px; height:16px; }
.navigation-tool[aria-pressed="true"] { background:#e4f0e9; border-color:#426a59; color:#173f36; }
.navigation-end { margin-left:0; }
.navigation-cues { margin:10px 0 0; padding:8px 0 0; border-top:1px solid var(--qgo-border); list-style:none; max-height:38vh; overflow:auto; }
.navigation-cues li { display:grid; grid-template-columns:72px 1fr; gap:8px; padding:7px 0; font-size:13px; }
.navigation-cues li strong { font-size:12px; }
.navigation-starting { padding:8px; font-weight:600; }
body.qgo-navigating:has(.transport-shell)>header,
body.qgo-navigating .map-layers-control,
body.qgo-navigating .map-locate-button,
body.qgo-navigating .map-footer { display:none; }
body.qgo-navigating .transport-shell { inset:0; }
body.qgo-navigating #map-status { display:none; }

@media(min-width:761px) {
  .navigation-card { left:auto; right:16px; width:400px; top:16px; }
}

body.qgo-navigating #map { transition:transform .25s ease; transform-origin:50% 50%; }
body.qgo-navigating #map.navigation-heading-up { will-change:transform; }
body.qgo-navigating #map.navigation-heading-up .leaflet-control-container { display:none; }

@media(max-width:390px) {
  .navigation-controls { grid-template-columns:1.05fr 1.05fr .75fr .82fr .68fr; gap:4px; }
  .navigation-controls button { padding:5px 2px; font-size:10px; }
  .navigation-manoeuvre { width:48px; height:48px; font-size:34px; }
  .navigation-next-distance { font-size:24px; }
  .navigation-next-text { font-size:16px; }
}

/* MapLibre 3D navigation prototype */
.map-3d {
  position:absolute;
  inset:0;
  z-index:5;
  background:#dfe7e3;
}
body.qgo-3d #map { display:none; }
body.qgo-3d .map-3d { display:block; }
body.qgo-3d .maplibregl-ctrl-bottom-left,
body.qgo-3d .maplibregl-ctrl-bottom-right { font-size:9px; }
body.qgo-3d .navigation-tool[aria-pressed="true"] {
  background:#e4f0e9;
  border-color:#426a59;
  color:#173f36;
}


/* Critical local MapLibre canvas layout for iOS/in-app browsers */
.map-3d.maplibregl-map {
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  background:#20292d !important;
}
.map-3d .maplibregl-canvas-container {
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:1 !important;
  opacity:1 !important;
  visibility:visible !important;
}
.map-3d canvas.maplibregl-canvas,
.map-3d .maplibregl-canvas {
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  opacity:1 !important;
  visibility:visible !important;
  z-index:1 !important;
}
.map-3d .maplibregl-control-container {
  position:relative;
  z-index:2;
}

.location-error-actions { display:inline-flex; flex-wrap:wrap; gap:6px 10px; margin-left:4px; }
.location-error-link { appearance:none; border:0; padding:0; background:transparent; color:inherit; text-decoration:underline; font:inherit; cursor:pointer; }
.location-error-link:focus-visible { outline:2px solid #bd7b2c; outline-offset:2px; border-radius:3px; }
/* Supporter preview: the warning remains visible throughout the demo. */
.journey-modes { flex-wrap:wrap; }
.journey-modes button[hidden], .route-advanced-option[hidden] { display:none; }
.journey-modes small { display:block; font-size:12px; color:#854600; }
#carshare-demo { margin:14px 0; font-size:16px; line-height:1.5; }
.carshare-warning { display:flex; gap:10px; padding:16px; border:3px solid #b65c00; border-radius:12px; background:#fff1cf; color:#573000; }
.carshare-warning > .ui-icon { flex-shrink:0; width:26px; height:26px; }
.carshare-warning strong { font-size:16px; }
.carshare-warning p { margin:8px 0 0; }
#carshare-demo label { display:block; margin:14px 0 6px; font-weight:600; }
#carshare-demo select { width:100%; font-size:16px; min-height:44px; }
.carshare-example { margin:14px 0; padding:14px; border:2px dashed #b65c00; border-radius:12px; }
.carshare-example h3 { margin:0; font-size:16px; }
#carshare-demo button { min-height:44px; font-size:14px; }
#carshare-status { font-weight:600; }
.carshare-footnote { font-size:14px; }

/* Map-first uncluttered controls: layers at lower left, popup opens upward. */
.map-layers-control { top:auto!important; bottom:32px!important; left:16px!important; right:auto!important; }
.map-layers-panel { top:auto!important; bottom:56px!important; left:0!important; right:auto!important; max-height:min(65dvh,500px); }
@media(max-width:760px) {
 .map-layers-control { bottom:calc(74px + env(safe-area-inset-bottom))!important; left:8px!important; right:auto!important; }
 .map-layers-panel { bottom:52px!important; }
 .route-summary-card:not([hidden]) ~ .map-layers-control { opacity:.5; }
}

/* Keep the floating layer control from covering a planned-route summary. */
.map-area:has(#route-summary-card:not([hidden])) .map-layers-control { display:none; }

/* Layers control directly above My location in the lower-right map corner. */
.map-layers-control { top:auto!important; left:auto!important; right:16px!important; bottom:92px!important; }
.map-layers-panel { top:auto!important; left:auto!important; right:0!important; bottom:56px!important; max-height:min(65dvh,500px); }
@media(max-width:760px) {
 .map-layers-control { top:auto!important; left:auto!important; right:8px!important; bottom:calc(132px + env(safe-area-inset-bottom))!important; }
 .map-layers-panel { left:auto!important; right:0!important; bottom:52px!important; }
}

/* Route summary: compact breakdown and equally tall actions. */
.route-summary-types { display:flex; align-items:center; justify-content:space-around; flex-wrap:wrap; gap:8px; margin:10px 0 5px; }
.route-summary-type { display:inline-flex; align-items:center; justify-content:center; gap:5px; font-size:12px; white-space:nowrap; }
.route-summary-type .ui-icon { width:19px; height:19px; }
.route-summary-type strong { font-size:13px; }
.route-summary-type span { color:#526b61; }
.route-summary-actions { align-items:stretch; grid-template-columns:minmax(0,1fr) auto; }
.route-summary-actions button { height:100%; min-height:48px; }
.route-summary-details { align-self:stretch; display:flex; align-items:center; justify-content:center; }
@media(max-width:420px) { .route-summary-types { gap:7px 12px; } .route-summary-type span { font-size:11px; } }

/* Balanced route summary: distance / elevation / time, stacked surface indicators. */
.route-summary-top { align-items:center; }
.route-summary-title { flex:1; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:9px; }
.route-summary-distance { justify-self:start; white-space:nowrap; }
.route-summary-elevation { justify-self:center; display:flex; gap:7px; align-items:center; white-space:nowrap; }
.route-summary-duration { justify-self:end; white-space:nowrap; }
.route-summary-title .route-ascent,.route-summary-title .route-descent { font-size:12px; }
.route-summary-types { justify-content:space-evenly; align-items:flex-start; flex-wrap:nowrap; gap:5px; }
.route-summary-type { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:3px; text-align:center; white-space:normal; }
.route-summary-type .ui-icon { width:21px; height:21px; }
.route-summary-type strong { font-size:14px; line-height:1.1; }
.route-summary-type span { font-size:11px; line-height:1.2; }
.route-summary-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:8px; }
.route-summary-actions > button { box-sizing:border-box; align-self:stretch; height:48px!important; min-height:48px!important; margin:0!important; padding-block:0!important; }
@media(max-width:420px) {
 .route-summary-title { gap:5px; }
 .route-summary-title > strong { font-size:18px; }
 .route-summary-elevation { gap:4px; }
 .route-summary-title .route-ascent,.route-summary-title .route-descent,.route-summary-title .route-ascent strong,.route-summary-title .route-descent strong { font-size:11px; }
}

/* Summary speed and slightly larger ascent/descent figures. */
.route-summary-travel { justify-self:end; display:flex; align-items:center; gap:8px; white-space:nowrap; }
.route-summary-speed { display:inline-flex; align-items:center; gap:3px; font-size:12px; color:#526b61; }
.route-summary-speed .ui-icon { width:15px; height:15px; }
.route-summary-title .route-ascent,.route-summary-title .route-descent,
.route-summary-title .route-ascent strong,.route-summary-title .route-descent strong { font-size:15px; }
.route-summary-title { grid-template-columns:auto minmax(0,1fr) auto; gap:8px; }
@media(max-width:420px) {
 .route-summary-title .route-ascent,.route-summary-title .route-descent,
 .route-summary-title .route-ascent strong,.route-summary-title .route-descent strong { font-size:13px; }
 .route-summary-travel { gap:5px; }
 .route-summary-speed { font-size:11px; }
 .route-summary-speed .ui-icon { width:13px; height:13px; }
}

/* 2026-10-10 beta polish: readable journey summary and map picker navigation */
.route-summary-distance,.route-summary-duration { font-size:22px!important; line-height:1.15; font-weight:700; }
.route-sections { scroll-margin-top:88px; overflow:visible; }
.route-sections > summary { display:list-item; font-size:18px!important; font-weight:700; line-height:1.35; padding:14px 6px!important; white-space:normal; }
.route-sections > ol { padding-inline-start:24px; overflow:visible; }
.route-sections li { min-width:0; overflow-wrap:anywhere; }
#map-pick-back[hidden] { display:none!important; }
#map-pick-back { border:0; background:transparent; color:#173f36; font-size:15px; font-weight:700; display:inline-flex; align-items:center; gap:5px; min-height:42px; flex:none; }
.journey-panel.map-picking .sheet-heading { display:flex; align-items:center; gap:8px; }
.journey-panel.map-picking #map-pick-back { display:inline-flex!important; }
.journey-panel.map-picking #sheet-title { flex:1; }

/* Details page mirrors the compact planned-route heading. */
.route-detail-metrics { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); width:100%; align-items:center; gap:6px; flex-wrap:nowrap; }
.route-detail-distance,.route-detail-elevation,.route-detail-travel { min-width:0; }
.route-detail-distance strong,.route-detail-travel > strong { font-size:22px; line-height:1.2; font-weight:700; }
.route-detail-elevation { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.route-detail-travel { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.route-detail-speed { display:flex; gap:3px; align-items:center; white-space:nowrap; font-size:12px; font-weight:500; }
.route-detail-speed .ui-icon { width:14px; height:14px; }
.route-sections > h2 { font-size:18px; font-weight:700; line-height:1.35; margin:14px 0 6px; white-space:normal; }
.journey-panel.map-picking #map-pick-back { margin-left:auto; order:2; }
.journey-panel.map-picking #sheet-title { order:1; }
