*{box-sizing:border-box}body{font:16px/1.6 Arial,sans-serif;margin:0;background:#f4f6f8;color:#243746}a{color:#1f3a57}header{background:white;border-bottom:1px solid #d8dde3;position:sticky;top:0;z-index:1002}.nav{max-width:1080px;margin:auto;display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:12px 16px}.nav a{text-decoration:none;font-size:14px;font-weight:700}.nav .logo{font-size:20px;margin-right:auto}main{max-width:1050px;margin:auto;padding:24px 16px 48px}.hero,.card{background:white;border:1px solid #d8dde3;border-radius:15px;padding:22px;margin-bottom:18px;box-shadow:0 3px 11px #00000008}h1{font-size:clamp(25px,4vw,36px);line-height:1.2;margin:0 0 12px}h2{font-size:22px;margin:0 0 12px}p{margin:0 0 13px}.btn{display:inline-block;background:#1f3a57;color:white;border-radius:10px;padding:10px 15px;text-decoration:none;font-weight:700}.links{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.links a{border:1px solid #cfd8e2;border-radius:999px;padding:5px 12px;text-decoration:none;background:#fff}.stats{display:flex;flex-wrap:wrap;gap:15px;color:#576879;font-size:14px}.status.ok{color:#276b38}.status.error{color:#b33131}#highway-map{height:350px;border-radius:12px;overflow:hidden;margin:12px 0}.point-row{padding:13px 2px;border-top:1px solid #e7edf3}.point-heading,.point-info{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.point-info{justify-content:flex-start;gap:22px;margin:5px 0}.point-heading strong{font-size:17px}.level{border-radius:999px;background:var(--level);padding:2px 10px;font-size:12px;color:#15212d;font-weight:700}.point-row small,.muted{color:#66788a}.empty{padding:20px;text-align:center;color:#697989}footer{max-width:1050px;margin:auto;padding:20px 16px 35px;color:#657382;font-size:13px}.disclaimer{background:#fff8e9;border-radius:10px;padding:12px 14px}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:720px){.split{grid-template-columns:1fr}.nav .logo{width:100%}main{padding:14px 10px}.hero,.card{padding:16px}#highway-map{height:295px}}
.direction-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;background:#eef6ff;padding:12px;border-radius:10px}.direction-picker select{padding:10px 12px;border:1px solid #9bb7d0;border-radius:8px;max-width:100%;font-size:15px;background:#fff}.point-row small{display:block;margin-top:4px}


/* BGtrafik highway speed v13 – standalone stylesheet, no changes to production CSS */
.speed-markers-control {display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto;font-size:13px}
.speed-markers-control select {padding:9px 11px;border:1px solid #a5b8ce;border-radius:8px;background:white;color:#243746;font:inherit}
.speed-intro {background:#f3f8fc;border:1px solid #d5e5f2;border-radius:10px;padding:11px 13px;color:#334c61;font-size:13px;margin:10px 0 14px}
.speed-intro strong {color:#16436a}
.hwy-velocity-pill {display:flex;min-width:55px;min-height:39px;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:2px 5px;background:var(--pill-bg,#e9eef3);border:2px solid var(--pill-stroke,#6c7e90);color:var(--pill-text,#243746);border-radius:10px;box-shadow:0 2px 6px #0003;white-space:nowrap;font-family:Arial,sans-serif}
.hwy-velocity-pill strong {font-size:15px;line-height:1.05;font-variant-numeric:tabular-nums}
.hwy-velocity-pill small {font-size:10px;font-weight:700;line-height:1.1;margin-top:2px;color:inherit}
.hwy-icon-holder {border:0!important;background:transparent!important}
.hwy-velocity-pill.speed-low {--pill-bg:#fbd9d9;--pill-stroke:#b53136;--pill-text:#6a1820}
.hwy-velocity-pill.speed-mid {--pill-bg:#ffe9b8;--pill-stroke:#d29b2d;--pill-text:#654914}
.hwy-velocity-pill.speed-good {--pill-bg:#dff1d9;--pill-stroke:#5b9b43;--pill-text:#265c25}
.hwy-velocity-pill.speed-high {--pill-bg:#b7e8cf;--pill-stroke:#2c8857;--pill-text:#175538}
.hwy-velocity-pill.speed-none {--pill-bg:#f0f2f5;--pill-stroke:#9da8b4;--pill-text:#536475}
.hwy-velocity-pill.count-marker {--pill-bg:#eef4fc;--pill-stroke:#487da6;--pill-text:#1f4f73}
.point-row .point-info {gap:9px 12px;margin-top:9px;align-items:stretch}
.point-row .hwy-metric {display:flex;flex-direction:column;gap:1px;min-width:126px;flex:1 1 126px;border-radius:9px;background:#f5f8fb;border:1px solid #e2eaf1;padding:8px 10px}
.hwy-metric b {font-size:19px;line-height:1.15;font-variant-numeric:tabular-nums;color:#21394e}
.hwy-metric small {font-size:11px;color:#61758a;margin:0}
.hwy-metric-speed {background:#edf6fd!important;border-color:#c9e2f5!important}
.hwy-metric-speed b {color:#124a74}
.hwy-metric .unit {font-size:11px;font-weight:600;margin-left:3px;color:#536b7e}
.speed-level {display:inline-block;margin:6px 0 1px;font-weight:700;font-size:12px;padding:3px 10px;border:1px solid;border-radius:999px}
.speed-level.speed-low {color:#8e252d;background:#fff0f1;border-color:#e8b9bc}
.speed-level.speed-mid {color:#865900;background:#fff7e6;border-color:#eed3a0}
.speed-level.speed-good {color:#316822;background:#ecf9e6;border-color:#c8e5bb}
.speed-level.speed-high {color:#116142;background:#e5f8ed;border-color:#a4dbc3}
.speed-level.speed-none {color:#68788a;background:#f2f4f7;border-color:#dce2e7}
.point-row .hwy-card-link {align-self:center;white-space:nowrap;font-size:13px;font-weight:700}
.hwy-popup-speed {font-size:13px;line-height:1.6;min-width:180px}
.hwy-popup-speed b {font-size:15px}
.speed-key {display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:#566a7c;margin:6px 0 0}
.speed-key span::before {content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--dot);margin-right:5px}
.hwy-testing-banner {display:inline-block;background:#e8f2fb;border-radius:99px;padding:3px 10px;color:#2b5c81;font-weight:700;font-size:12px;margin-bottom:12px}
@media(max-width:720px){.speed-markers-control{margin-left:0;width:100%}.speed-markers-control select{max-width:100%;flex:1}.point-row .hwy-metric{min-width:42%;flex:1 1 42%}.point-row .point-info{gap:8px}.hwy-metric b{font-size:17px}.hwy-velocity-pill{min-width:50px}}

/* MTO weather details, shared by point cards and marker popups */
.hwy-weather{margin:10px 0;padding:10px;border:1px solid #d9e5ef;border-radius:10px;background:#f8fbfe}.hwy-weather-title{font-weight:700;font-size:13px;margin-bottom:7px}.hwy-weather-title small{display:block;font-weight:400;color:#647587}.hwy-weather-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hwy-weather-grid>div{background:#fff;border:1px solid #e6edf3;border-radius:7px;padding:6px}.hwy-weather-grid small{display:block;font-size:11px;color:#61758a}.hwy-weather-grid b{font-size:13px;color:#21394e}@media(max-width:720px){.hwy-weather-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Collapsed weather details only when no nearby station is available. */
.hwy-weather-collapsible{padding:0;overflow:hidden}
.hwy-weather-collapsible summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;padding:10px;font-size:13px;font-weight:700}
.hwy-weather-collapsible summary::-webkit-details-marker{display:none}
.hwy-weather-collapsible summary small{display:block;font-weight:400;color:#647587}
.hwy-weather-toggle{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex:0 0 25px;border:1px solid #ccdce8;border-radius:7px;background:#fff;color:#1f3a57}
.hwy-weather-toggle::before{content:'+';font-size:20px;line-height:1}
.hwy-weather-collapsible[open] .hwy-weather-toggle::before{content:'−'}
.hwy-weather-collapsible summary:focus-visible{outline:2px solid #2374b5;outline-offset:-2px}
.hwy-weather-hidden{padding:0 10px 10px}
