.front-door-main:has(.driving-app){max-width:none;width:100%;padding:0}.driving-app{--drive-ink:#12312f;--drive-accent:#086dcc;background:#f1f5f4;color:#12312f;min-height:100dvh;font-family:system-ui,sans-serif}.driving-app *{box-sizing:border-box}.drive-header{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;background:#12312f;color:white}.drive-brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;font-size:20px;font-weight:800}.drive-brand img{width:56px;height:56px;object-fit:contain;border-radius:10px}.drive-brand small{display:block;font-size:10px;letter-spacing:2px;color:#c8e0cc;margin-top:3px}.drive-home{color:white}.driving-app button,.driving-app select{min-height:44px;border:1px solid #becfc9;border-radius:12px;padding:10px 14px;font:inherit;font-weight:650;color:#12312f;background:white;cursor:pointer}.driving-app button:disabled{opacity:.5;cursor:default}.driving-app button:focus-visible,.driving-app a:focus-visible,.driving-app select:focus-visible{outline:3px solid #f4ba45;outline-offset:3px}.driving-app button.drive-primary{background:#086dcc;color:white;border-color:#086dcc}.driving-app [hidden]{display:none!important}.drive-toolbar{display:flex;gap:10px;align-items:center;padding:14px 24px;background:white;border-bottom:1px solid #d5e1dc}.drive-toolbar>div{flex:1}.drive-toolbar strong{font-size:18px}.drive-toolbar small{display:block;margin-top:4px;font-size:12px;color:#526963}.drive-workspace{display:grid;grid-template-columns:minmax(0,1fr) 370px;height:calc(100dvh - 220px);min-height:480px}.drive-map-wrap{position:relative;min-width:0}#drivingMap{height:100%;width:100%;background:#dce9e6;z-index:0}.drive-map-controls{position:absolute;right:12px;top:12px;z-index:500;display:flex;gap:8px;flex-direction:column}.drive-map-controls button{box-shadow:0 3px 12px #12312f22}.drive-map-controls [aria-pressed=true]{background:#086dcc;color:white}.drive-county-badge{position:absolute;left:12px;bottom:32px;z-index:500;box-shadow:0 3px 12px #12312f33;text-align:left;max-width:calc(100% - 24px)}.drive-county-badge strong{display:inline-block;margin-left:10px;border-radius:20px;background:#12312f;color:white;padding:2px 10px}.drive-county-badge small{display:block;font-size:11px;font-weight:400}.drive-panel{padding:18px;overflow:auto;background:#f8fbfa;border-left:1px solid #c8d9d1;scroll-margin-top:10px}.drive-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.drive-panel h1{font-size:21px;margin:0}.drive-panel-heading button{font-size:13px}.drive-county-select{display:block;font-size:12px;font-weight:700}.drive-county-select select{display:block;width:100%;margin-top:6px;font-size:14px}.drive-filters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}.drive-filters button{font-size:12px;padding:7px 11px;border-radius:24px}.drive-filters [aria-pressed=true]{background:#12312f;color:white}.drive-freshness{font-size:12px;color:#526963;padding:9px 0;margin:0}.drive-freshness.is-stale{color:#9b361c;font-weight:700}.drive-alert-list{display:grid;gap:10px}.driving-app .drive-alert-card{display:block;width:100%;text-align:left;padding:14px;background:white;border-left:5px solid #527f94;border-radius:12px;line-height:1.4}.driving-app .drive-alert-card.severity-3{border-left-color:#c53736}.driving-app .drive-alert-card.severity-2{border-left-color:#d68a16}.drive-alert-card span{display:block;font-size:11px;color:#526963;margin-bottom:5px}.drive-alert-card strong{display:block;font-size:14px}.drive-alert-card small{display:block;font-size:11px;font-weight:500;color:#526963;margin-top:7px}.drive-footnote{font-size:12px;line-height:1.6;color:#526963;margin-top:20px}.drive-footer{font-size:12px;line-height:1.6;padding:12px 24px;color:#526963}.drive-dialog{border:0;border-radius:20px;max-width:540px;width:calc(100% - 28px);max-height:85dvh;padding:24px;box-shadow:0 20px 90px #0005;color:#12312f}.drive-dialog::backdrop{background:#092a2bd0}.drive-dialog h2{font-size:24px;line-height:1.2}.drive-dialog p{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.drive-dialog>div:last-child{display:flex;flex-wrap:wrap;gap:10px}.drive-details>div:last-child{display:block}.drive-details button{float:right;margin:0 0 16px 12px}.drive-details h2{clear:both}.drive-details a{display:inline-block;margin:8px 14px 0 0}.drive-pin{display:flex;align-items:center;justify-content:center;border:3px solid white;border-radius:50%;background:#b02e30;color:white;box-shadow:0 2px 8px #0005;font:800 14px system-ui}.drive-pin.severity-1{background:#316c81}.drive-pin.severity-2{background:#9e6000}.drive-vehicle{border:0;background:none}.drive-vehicle span{display:block;width:30px;height:30px;filter:drop-shadow(0 2px 3px #0006);background:#0878ec;clip-path:polygon(50% 0,95% 95%,50% 72%,5% 95%)}.drive-vehicle.is-stale{opacity:.4}.drive-map-status{position:absolute;top:12px;left:56px;right:165px;z-index:500;background:#fff4dc;border-radius:8px;padding:8px;font-size:12px;pointer-events:none}.drive-map-status:empty{display:none}.driving-app .leaflet-popup-content button{display:block;width:100%;margin:6px 0;text-align:left;font-size:13px}.driving-app .leaflet-control-attribution{font-size:10px}.driving-app .leaflet-control-zoom a{width:40px;height:40px;line-height:40px}
@media(max-width:760px){.drive-header{padding:8px 12px}.drive-brand{font-size:16px}.drive-brand img{width:42px;height:42px}.drive-toolbar{padding:10px 12px;gap:6px}.drive-toolbar strong{font-size:14px}.drive-toolbar button{font-size:12px;padding:8px 10px}.drive-workspace{display:flex;flex-direction:column;height:auto;min-height:0}.drive-map-wrap{height:58dvh;min-height:340px}.drive-panel{overflow:visible;border-left:0;border-top:1px solid #c8d9d1;padding:16px}.drive-footer{padding:12px}.drive-map-controls button{font-size:12px;padding:8px}.drive-map-status{left:58px;right:145px;top:4px;font-size:11px}.drive-dialog{padding:20px}}
.drive-trip-panel{padding:12px 24px;background:#e5eef8;border-bottom:1px solid #c8d9d1}.drive-trip-panel strong{display:block;font-size:15px;overflow-wrap:anywhere}.drive-trip-panel small{display:block;margin-top:4px;color:#526963}.drive-trip-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:8px}.drive-trip-actions button,.drive-trip-actions a{font-size:13px}.drive-trip-panel p:empty{display:none}.drive-trip-stop{background:#fff;border:3px solid #1258b5;border-radius:50%;color:#12312f;text-align:center;font:bold 14px/22px system-ui}.drive-workspace{height:calc(100dvh - 330px)}@media(max-width:760px){.drive-trip-panel{padding:10px 12px}.drive-workspace{height:auto}.drive-toolbar{flex-wrap:wrap}.drive-toolbar>div{min-width:180px}}
/* Expanded driving surface: native fullscreen where supported, viewport fallback elsewhere. */
.drive-expanded-only{display:none!important}
html.drive-screen-open,html.drive-screen-open body{overflow:hidden}
.driving-app.is-expanded{position:fixed;inset:auto;top:var(--drive-viewport-top,0px);left:var(--drive-viewport-left,0px);z-index:10000;box-sizing:border-box;width:var(--drive-viewport-width,100%);height:100vh;height:var(--drive-viewport-height,100dvh);min-height:0;margin:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}
.driving-app.is-expanded>.drive-header,.driving-app.is-expanded>.drive-trip-panel,.driving-app.is-expanded>.drive-footer{display:none}
.is-expanded .drive-toolbar{flex:none;padding:8px 12px;gap:6px;flex-wrap:wrap}
.is-expanded .drive-toolbar strong{font-size:14px}.is-expanded .drive-toolbar small{font-size:11px}
.is-expanded .drive-toolbar button{font-size:12px;padding:8px 10px}
.is-expanded .drive-workspace{position:relative;display:block;flex:1;min-height:0;height:auto}
.is-expanded .drive-map-wrap{position:absolute;inset:0;height:100%;min-height:0}
.is-expanded .drive-expanded-only:not([hidden]){display:block!important}
.is-expanded .drive-panel{display:none;position:absolute;z-index:700;inset:0 0 0 auto;width:min(420px,100%);height:100%;overflow:auto;overscroll-behavior:contain;box-shadow:-6px 0 24px #12312f33}
.is-expanded.drive-warnings-open .drive-panel{display:block}
.drive-panel-close{position:sticky;top:0;z-index:1;margin:0 0 12px auto;box-shadow:0 2px 8px #12312f22}
.is-expanded .drive-map-controls{max-height:calc(100% - 95px);overflow:auto;overscroll-behavior:contain}
.is-expanded .drive-county-badge{bottom:26px}
@media(max-height:500px) and (orientation:landscape){.is-expanded .drive-toolbar{flex-wrap:nowrap}.is-expanded .drive-toolbar>div{min-width:0}.is-expanded .drive-map-controls{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:70%;max-height:100px}.is-expanded .drive-map-controls button{font-size:11px;padding:6px 8px}.is-expanded .drive-map-status{top:65px;right:12px}.is-expanded .drive-county-badge small{display:none}}

/* Keep both gauges readable over the map, including the expanded view. */
.drive-speed-hud{position:absolute;left:12px;bottom:112px;z-index:500;width:190px;max-width:calc(100% - 155px);background:#fff;border:1px solid #c8d9d1;border-radius:14px;padding:8px;box-shadow:0 3px 12px #12312f44;pointer-events:none;text-align:center;color:#12312f}
.drive-speed-gauges{display:flex;align-items:stretch;justify-content:center;gap:8px}.drive-speedometer,.drive-speed-sign{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;min-width:0;padding:5px 2px}.drive-speedometer{border-radius:10px;background:#12312f;color:#fff}.drive-speed-sign{border:2px solid #171717;border-radius:6px;background:#fff;color:#171717}.drive-speed-hud strong{font:800 36px/1.1 system-ui;font-variant-numeric:tabular-nums}.drive-speed-hud small{display:block;font-size:10px;line-height:1.15;font-weight:700}.drive-speed-hud p{font-size:11px;line-height:1.2;margin:6px 0 4px;overflow-wrap:anywhere}.drive-speed-hud.is-over-limit .drive-speedometer{background:#ad2525}.drive-speed-info{margin-bottom:14px;padding:12px;background:#fff;border:1px solid #c8d9d1;border-radius:10px;font-size:12px;line-height:1.5}.drive-speed-info summary{cursor:pointer;font-weight:750;min-height:24px}.drive-speed-info [data-drive-speed-zone-list]>div{padding:8px 0;border-bottom:1px solid #d5e1dc}.drive-speed-info small,.drive-speed-info strong{display:block}.drive-speed-info a{color:#0862a5}
@media(max-height:500px) and (orientation:landscape){.is-expanded .drive-speed-hud{bottom:82px;width:160px;padding:5px}.is-expanded .drive-speed-hud strong{font-size:27px}.is-expanded .drive-speed-hud p{margin:3px 0}}
/* Default full-screen map and compact destination controls. */
.drive-control{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #becfc9;border-radius:12px;padding:10px 14px;background:#fff;color:#12312f;text-decoration:none;font-weight:650;box-shadow:0 3px 12px #12312f22}
.is-expanded .drive-toolbar{order:0}.is-expanded .drive-workspace{order:2}
.drive-location-prompt{max-width:380px;padding:20px}.drive-location-prompt h2{font-size:21px;margin:0 0 12px}.drive-location-prompt p{font-size:13px;line-height:1.5;margin:10px 0}.drive-location-prompt .drive-consent-note{font-size:11px;color:#526963}.drive-location-prompt>div:last-child{margin-top:16px}.drive-location-prompt button{flex:1;padding:9px 10px}
.drive-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.drive-search-heading h2{margin:0;font-size:22px}.drive-search-dialog form{margin:18px 0 10px}.drive-search-dialog label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.drive-search-fields{display:flex;gap:8px}.drive-search-fields input{min-width:0;flex:1;min-height:46px;border:1px solid #a5bdb4;border-radius:10px;padding:10px;font:16px system-ui;color:#12312f;background:#fff}.drive-search-fields input:focus-visible{outline:3px solid #f4ba45;outline-offset:2px}.drive-search-dialog>small{display:block;margin-top:14px;color:#526963;font-size:11px}.drive-search-results{display:grid;gap:10px}.drive-search-result{padding:12px;border:1px solid #c8d9d1;border-radius:12px;background:#f4f8f6}.drive-search-result p{margin:0 0 10px;line-height:1.4}.drive-search-result button{width:100%}
@media(max-width:760px){.drive-control{font-size:12px;padding:8px}.drive-map-controls{max-width:145px}.drive-search-dialog{padding:18px}.drive-search-heading h2{font-size:20px}}
@media(max-height:500px) and (orientation:landscape){.is-expanded .drive-map-controls{max-width:70%}.is-expanded .drive-control{font-size:11px;padding:6px 8px}.drive-location-prompt{max-width:540px}.is-expanded .drive-trip-panel strong{-webkit-line-clamp:1}}

/* Slide the controls off the road view; keep one small handle at the edge. */
.drive-map-wrap{overflow:hidden}
.driving-app .drive-controls-toggle{position:absolute;z-index:510;right:12px;top:12px;font-size:12px;padding:8px 12px;box-shadow:0 3px 12px #12312f33;background:#fff}
.drive-map-controls,.is-expanded .drive-map-controls{top:64px;max-height:calc(100% - 155px);max-width:165px;overflow:auto;overscroll-behavior:contain;transform:translateX(calc(100% + 20px));opacity:0;visibility:hidden;transition:transform .2s ease,opacity .2s ease,visibility .2s}
.drive-controls-open .drive-map-controls{transform:translateX(0);opacity:1;visibility:visible}
@media(max-width:760px){.drive-map-controls,.is-expanded .drive-map-controls{max-width:145px}}
@media(max-height:500px) and (orientation:landscape){.drive-map-controls,.is-expanded .drive-map-controls{flex-direction:column;flex-wrap:nowrap;max-width:165px;max-height:calc(100% - 80px)}}
@media(prefers-reduced-motion:reduce){.drive-map-controls{transition:none}}
/* Keep the complete speed panel and county warnings beside each other at the bottom. */
.drive-bottom-row{position:absolute;left:12px;bottom:20px;z-index:500;display:grid;grid-template-columns:190px minmax(0,1fr);gap:8px;width:calc(100% - 24px);max-width:350px;align-items:stretch;pointer-events:none}
.drive-bottom-row .drive-speed-hud{position:static;width:100%;max-width:none;margin:0}
.driving-app .drive-bottom-row .drive-county-badge{position:static;width:100%;max-width:none;margin:0;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid #c8d9d1;border-radius:14px;background:white;box-shadow:0 3px 12px #12312f44;text-align:center;pointer-events:auto}
.drive-bottom-row .drive-county-badge span{font-size:14px;font-weight:750;line-height:1.25}
.drive-bottom-row .drive-county-badge strong{margin:0;padding:2px 12px;font-size:28px;line-height:1.2}
.drive-bottom-row .drive-county-badge small{display:block;font-size:10px;line-height:1.2}
@media(max-width:350px){.drive-bottom-row{left:8px;width:calc(100% - 16px);grid-template-columns:minmax(175px,1.35fr) minmax(0,1fr);gap:6px}}
@media(max-height:500px) and (orientation:landscape){.drive-bottom-row{bottom:18px;max-width:300px;grid-template-columns:160px minmax(0,1fr)}.drive-bottom-row .drive-speed-hud{width:100%}}

/* Keep the gauges, warnings, and attribution above visible Android/iOS system UI. */
.is-expanded .drive-bottom-row{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
.is-expanded .drive-panel{bottom:env(safe-area-inset-bottom,0px);height:auto}
.is-expanded .leaflet-bottom{bottom:env(safe-area-inset-bottom,0px)}
