/* Live, source-honest Canada homepage. Accent colours encode reports, never a road-clearance verdict. */
.hero-camera{gap:10px;background:#f9fdfd;border:1px solid #c5e3e3;box-shadow:0 24px 55px #042d3445}
.hero-camera .home-camera-top{display:flex;gap:8px;align-items:center;justify-content:space-between}
.home-camera-source{padding:6px 9px;border-radius:99px;background:#e2f4ed;color:#145744;font-size:12px;font-weight:800}
.hero-camera .home-camera-photo{height:210px;display:grid;place-items:center;overflow:hidden;position:relative;border-radius:13px;background:linear-gradient(145deg,#0a4151,#0c6c70);text-decoration:none;color:white}
.hero-camera .home-camera-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hero-camera .home-camera-photo img[hidden]{display:none}
.hero-camera .home-camera-photo:hover img{transform:scale(1.015)}
.hero-camera .home-camera-photo img{transition:transform .2s ease}
.home-camera-fallback{display:grid;gap:10px;place-content:center;text-align:center;padding:18px;color:#f3fffa;font-size:14px;font-weight:700;min-height:160px}
.home-camera-fallback[hidden]{display:none}
.camera-placeholder-glyph{display:block;font-size:42px;line-height:1;color:#b2f9d7}
.hero-camera h2{font-size:21px!important;line-height:1.25!important}
.hero-camera p{min-height:24px;line-height:1.5}
.hero-camera .hero-report-bottom{padding-top:11px;margin-top:0}
.hero-camera .hero-report-bottom small{font-size:14px;line-height:1.45}
.home-command-center{margin-top:24px;display:grid;gap:18px}
.home-command-heading{display:flex;align-items:end;justify-content:space-between;gap:24px}
.home-command-eyebrow{font-size:12px;color:#0b7568;font-weight:850;letter-spacing:.12em}
.home-command-heading h2{font:800 clamp(27px,3vw,36px)/1.17 Manrope,system-ui;letter-spacing:-1px;margin:8px 0}
.home-command-heading p{font-size:15px;line-height:1.55;color:#45636c;max-width:770px;margin:0}
.home-command-full-map,.home-map-all,.home-gallery-all{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 14px;border:1px solid #a7cfcc;border-radius:10px;background:#fff;color:#075a58;text-decoration:none;font-weight:800;font-size:14px}
.home-command-full-map:hover,.home-map-all:hover,.home-gallery-all:hover{background:#e5f4f0}
.home-status-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.home-status-tile{min-height:100px;background:#fff;border:1px solid #d2e3e3;border-left:4px solid #497985;border-radius:12px;padding:15px 12px;display:flex;align-items:start;gap:9px;text-decoration:none;box-shadow:0 3px 10px #0639440a;transition:transform .18s,box-shadow .18s}
.home-status-tile:hover{transform:translateY(-2px);box-shadow:0 8px 22px #06394420}
.home-status-tile:focus-visible,.home-event:focus-visible,.home-map-province:focus-visible,.home-road-pill:focus-visible,.home-gallery-toggle:focus-visible,.home-filter-row button:focus-visible{outline:3px solid #f0a719;outline-offset:3px}
.home-status-dot{height:9px;width:9px;border:2px solid #698d96;border-radius:50%;flex:0 0 auto;margin-top:5px}
.home-status-tile>span:nth-child(2){display:grid;gap:9px;min-width:0}
.home-status-tile strong{font:800 14px/1.4 Manrope,system-ui;color:#163843}
.home-status-tile small{font-size:14px;line-height:1.4;color:#49636c}
.home-status-arrow{color:#16766f;margin-left:auto;flex:none}
.home-status-on{border-left-color:#d67a28}.home-status-bc{border-left-color:#067b77}
.home-status-on .home-status-dot{border-color:#d67a28}.home-status-bc .home-status-dot{border-color:#067b77}
.home-status-risk,.home-status-risk.home-status-bc{border-left-color:#bf253b;background:#fff8f7}
.home-status-risk .home-status-dot{border-color:#bc263b;background:#bc263b}
.home-status-unknown,.home-status-unknown.home-status-bc{border-left-color:#7e8990}
.home-command-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.8fr);gap:16px;align-items:start}
.home-events-panel,.home-map-panel{border:1px solid #d4e4e4;border-radius:17px;background:#fff;padding:22px;box-shadow:0 7px 22px #0739440a}
.home-panel-heading{display:flex;align-items:start;gap:11px;margin-bottom:18px}
.home-panel-heading h3{font:800 22px/1.3 Manrope,system-ui;margin:0;color:#193b43}
.home-panel-heading p{font-size:14px;line-height:1.5;color:#557179;margin:5px 0 0}
.home-live-marker{display:inline-block;flex:none;width:12px;height:12px;border-radius:50%;background:#c34531;margin-top:8px;box-shadow:0 0 0 5px #c345311c}
.home-filter-row{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.home-filter-row button{font:800 13px/1.3 Manrope,system-ui;border-radius:99px;min-height:44px;padding:10px 15px;background:#edf4f4;color:#26545a;border:1px solid #bed5d5}
.home-filter-row button[aria-pressed="true"]{color:#fff;background:#084e59;border-color:#084e59}
.home-events-list{display:grid;gap:9px}
.home-event{display:flex;flex-direction:column;gap:5px;padding:15px 16px;border:1px solid #dbe5e6;border-left:5px solid #d5882d;border-radius:10px;text-decoration:none;background:#fafdfe;min-height:100px}
.home-event:hover{background:#f3f9f9;border-color:#83bbbf}
.home-event-critical{border-left-color:#c53045;background:#fff6f6}
.home-event-critical .home-event-flag{color:#a72133}
.home-event-planned{border-left-color:#a76816;background:#fffaf0}
.home-event-planned .home-event-flag{color:#825411}
.home-event-caution{border-left-color:#bb7d27}
.home-event-flag{font-size:13px;line-height:1.3;font-weight:850;color:#825411}
.home-event strong{font:800 16px/1.4 Manrope,system-ui;color:#163640}
.home-event-desc{font-size:14px;line-height:1.5;color:#4c6670}
.home-event-foot{font-size:14px;line-height:1.4;color:#4b676f}
.home-event-foot b{margin-left:6px;color:#007e74}
.home-feed-state,.home-filter-empty{background:#f2f7f8;color:#3e5b61;padding:16px;border-radius:10px;line-height:1.55;font-size:14px}
.home-state-unknown{background:#fff0df;color:#744a1a}
.home-report-time{font-size:14px;color:#546d74;margin:16px 0 0;line-height:1.6}
.home-map-panel{background:#f4faf8}
.home-map-panel .home-panel-heading{margin-bottom:13px}
.home-canada-map{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(4,minmax(42px,auto));gap:5px;margin:14px 0;align-items:stretch}
.home-map-province{min-height:43px;border:1px solid #7ac0b6;border-radius:8px;background:#e0f2ec;color:#125c52;display:grid;place-items:center;text-decoration:none;font:800 13px Manrope,system-ui}
.home-map-province:hover{background:#006c68;color:#fff}
.map-yt{grid-area:1/1/2/3}.map-nt{grid-area:1/3/2/5}.map-nu{grid-area:1/5/2/9}
.map-bc{grid-area:2/1/4/3}.map-ab{grid-area:2/3/4/4}.map-sk{grid-area:2/4/4/5}.map-mb{grid-area:2/5/4/6}
.map-on{grid-area:2/6/4/7}.map-qc{grid-area:2/7/4/8}.map-nb{grid-area:3/8/4/9}
.map-ns{grid-area:4/8/5/9}.map-pe{grid-area:4/7/5/8}.map-nl{grid-area:2/8/3/10}
.home-map-note{font-size:14px;line-height:1.6;color:#526b6f;margin:17px 0}
.home-road-shortcuts{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch;background:#edf7f5;border-radius:14px;border:1px solid #d0e5e3;padding:13px}
.home-road-shortcuts>div{display:grid;gap:3px;min-width:130px;margin:auto 3px}
.home-road-shortcuts>div strong{font-size:15px;color:#183f43}
.home-road-shortcuts>div span{font-size:14px;color:#5b7476}
.home-road-pill{display:flex;align-items:center;gap:8px;min-height:52px;background:white;border:1px solid #b8dcd6;padding:11px 12px;border-radius:10px;text-decoration:none;flex:1 1 140px}
.home-road-pill strong{font-size:14px;color:#165654}
.home-road-pill small{font-size:14px;color:#4b696c}
.home-road-pill span{color:#127e70;margin-left:auto}
.home-road-pill:hover{border-color:#007c71}
.home-gallery{border-radius:18px;padding:22px;background:#e9f5f6;border:1px solid #bfe0e0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center}
.home-gallery>div:first-child{flex:1 1 340px}
.home-gallery h3{font:800 21px/1.3 Manrope,system-ui;color:#183d47;margin:0 0 7px}
.home-gallery p{font-size:14px;color:#46656c;line-height:1.55;margin:0}
.home-gallery-toggle{min-height:44px;padding:11px 16px;border:0;border-radius:10px;background:#06665f;color:white;font:800 14px Manrope,system-ui}
.home-camera-grid{flex:1 1 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-camera-grid[hidden]{display:none}
.home-camera-tile{display:flex;flex-direction:column;background:#fff;border-radius:12px;border:1px solid #cae1e1;overflow:hidden;text-decoration:none}
.home-camera-tile img,.home-camera-noimage{width:100%;height:112px;object-fit:cover;background:#124b54;color:white;display:grid;place-items:center}
.home-camera-tile span{font:800 14px/1.5 Manrope,system-ui;color:#23464d;padding:12px}
.home-camera-tile small{color:#536a71;padding:0 12px 12px;font-size:14px}
.home-gallery-all{flex:0 0 auto}
@media(max-width:1100px){
 .home-command-grid{grid-template-columns:1fr}
 .home-status-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-camera-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
 .hero-camera .home-camera-photo{height:190px}
 .home-command-heading{align-items:start;flex-direction:column}
 .home-command-full-map{align-self:start}
 .home-camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:525px){
 .home-command-center{margin-top:9px}
 .home-status-row{grid-template-columns:1fr 1fr;gap:8px}
 .home-status-tile{padding:11px 8px;min-height:122px}
 .home-status-tile strong{font-size:14px}
 .home-status-tile small{font-size:14px}
 .home-events-panel,.home-map-panel{padding:17px}
 .home-map-province{font-size:12px}
 .home-canada-map{gap:3px}
 .home-gallery{padding:17px}
 .home-camera-grid{grid-template-columns:1fr 1fr;gap:9px}
 .home-camera-tile img,.home-camera-noimage{height:90px}
 .home-road-pill{flex:1 1 150px}
 .home-filter-row button{font-size:13px;padding:9px 11px}
}
@media(prefers-reduced-motion:reduce){.hero-camera .home-camera-photo img{transition:none}}

/* In-page camera navigation with same-highway gallery (buttons, not external links) */
.home-gallery{scroll-margin-top:105px}
.home-camera-selected{grid-column:1/-1;padding:16px;background:#dff1ee;border:1px solid #a6cfc6;border-radius:13px;display:grid;gap:9px}
.home-camera-selected strong{font:800 16px/1.4 Manrope,system-ui;color:#124c4d}
.home-camera-selected p{color:#37595c;margin:0;font-size:14px;line-height:1.5}
.home-camera-selected-image{width:100%;max-height:280px;object-fit:contain;background:#173f48;border-radius:10px}
button.home-camera-tile{font:inherit;text-align:left;padding:0;color:#18474d;cursor:pointer}
button.home-camera-tile[aria-pressed="true"]{outline:3px solid #138476;outline-offset:2px}
button.home-camera-tile:hover{border-color:#078978;background:#f3fffb}
button.home-camera-tile:focus-visible{outline:3px solid #dc963b;outline-offset:3px}


/* Real BC camera frame gallery: visible selection rationale and native accessible modal. */
.home-camera-why{color:#37606b;font-size:14px;line-height:1.5;font-weight:750;margin:8px 0 5px}
.home-camera-road-chips{grid-column:1/-1;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.home-camera-road-chips strong{font-size:14px;color:#224c4e;margin-right:5px}
.home-camera-road-chip{min-height:44px;padding:9px 12px;border:1px solid #a4cfc8;border-radius:100px;background:white;color:#24514e;font-size:14px;font-weight:800;cursor:pointer}
.home-camera-road-chip[aria-pressed="true"]{color:#fff;background:#065f59;border-color:#065f59}
.home-camera-count{grid-column:1/-1;font-size:14px;color:#405e64;margin:0}
.home-camera-load-more{grid-column:1/-1;justify-self:center;min-height:44px;padding:10px 18px;border-radius:11px;border:1px solid #21736c;background:white;color:#09544f;font-weight:800;font-size:14px;cursor:pointer}
.home-camera-tile{min-width:0}
.home-camera-tile img{width:100%;height:112px;object-fit:cover}
.home-camera-noimage{padding:10px;text-align:center;font-size:14px;line-height:1.3}
.home-camera-dialog{width:min(950px,calc(100vw - 30px));max-height:min(92vh,900px);border:1px solid #b9d0d3;border-radius:18px;background:#fff;padding:0;color:#193943;box-shadow:0 24px 80px #061f2970}
.home-camera-dialog::backdrop{background:#091f2bd1}
.home-camera-dialog-inner{padding:clamp(16px,3vw,28px);display:grid;gap:15px}
.home-camera-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:15px}
.home-camera-dialog-head h2{font:850 clamp(19px,2.7vw,26px)/1.35 Manrope,system-ui;margin:0;color:#153b42}
.home-camera-dialog-close{border:1px solid #a7c7cb;border-radius:10px;background:#fff;color:#174c4d;min-height:44px;padding:9px 13px;font-size:14px;font-weight:800;cursor:pointer;flex:none}
.home-camera-dialog-preview{min-height:190px;display:grid;place-items:center;background:linear-gradient(135deg,#093d4d,#095c62);border-radius:13px;overflow:hidden}
.home-camera-dialog-preview img{width:100%;max-height:min(62vh,570px);object-fit:contain}
.home-camera-dialog-preview img[hidden]{display:none}
.home-camera-dialog-state{color:white;font-size:15px;font-weight:700;text-align:center;padding:25px;margin:0;line-height:1.6}
.home-camera-dialog-state[hidden]{display:none}
.home-camera-dialog-detail{font-size:14px;color:#465f67;line-height:1.55;margin:0}
.home-camera-dialog-controls{display:flex;gap:8px;flex-wrap:wrap}
.home-camera-dialog-controls button,.home-camera-dialog-official{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #a6c6c5;border-radius:10px;background:#f2faf8;color:#145552;font-size:14px;font-weight:800;padding:9px 14px;text-decoration:none;cursor:pointer}
.home-camera-dialog-controls button:disabled{opacity:.55;cursor:default}
.home-camera-dialog-official{margin-left:auto;background:#fff}
.home-camera-dialog button:focus-visible,.home-camera-road-chip:focus-visible,.home-camera-load-more:focus-visible{outline:3px solid #ed9d27;outline-offset:3px}
@media(max-width:590px){.home-camera-dialog{width:calc(100vw - 12px);max-height:95vh}.home-camera-dialog-inner{padding:13px;gap:12px}.home-camera-dialog-controls button{flex:1 1 42%}.home-camera-dialog-official{flex:1 1 100%;margin-left:0}.home-camera-dialog-preview{min-height:160px}.home-camera-dialog-preview img{max-height:45vh}.home-camera-road-chip{font-size:13px}}
/* v9 §3.1 national counters (server-rendered, whole-card links) */
.traffic-counters{max-width:1260px;margin:22px auto 6px;padding:0 28px}
.tc-head h2{margin:0 0 4px;font:800 clamp(20px,2.4vw,26px)/1.2 'Manrope',system-ui,sans-serif;color:var(--dark,#052c37)}
.tc-head p{margin:0 0 12px;color:var(--muted,#5e7179);font-size:14px;line-height:1.45;max-width:880px}
.tc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tc-card{position:relative;display:flex;flex-direction:column;gap:2px;min-height:118px;padding:14px 16px 12px;border-radius:16px;border:1px solid;text-decoration:none;color:#102b35;background:#fff;transition:transform .15s ease,box-shadow .15s ease}
.tc-card:hover,.tc-card:focus-visible{transform:translateY(-2px);box-shadow:0 8px 22px rgba(5,44,55,.12)}
.tc-card:focus-visible{outline:3px solid #166780;outline-offset:2px}
.tc-icon{font-size:26px;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.tc-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.tc-num{font:800 clamp(30px,4vw,40px)/1.05 'Manrope',system-ui,sans-serif;letter-spacing:-.02em}
.tc-na{font-size:20px;font-weight:700}
.tc-label{font-weight:700;font-size:15px}
.tc-src{color:#4b5f66;font-size:12px;margin-top:auto}
.tc-trend{font-weight:800;font-size:15px;white-space:nowrap}
.tc-up{color:#b3261e}.tc-down{color:#11793f}
.tc-red{background:#fdeeec;border-color:#f1b9b2}.tc-red .tc-num{color:#a1251b}
.tc-yellow{background:#fff7d6;border-color:#f0d36b}.tc-yellow .tc-num{color:#7a5300}
.tc-blue{background:#e8f2fb;border-color:#a9cbe8}.tc-blue .tc-num{color:#124f86}
.tc-unknown{background:#f2f4f5;border-color:#d4dcdf}.tc-unknown .tc-num{color:#5e7179}
.tc-foot{margin:10px 0 0;font-size:12.5px;color:#4b5f66;line-height:1.45}
.re-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.re-list li{background:#fff;border:1px solid #dbe7e7;border-left:5px solid #d4dcdf;border-radius:12px;padding:12px 14px}
.re-list li.re-red{border-left-color:#c62828}.re-list li.re-yellow{border-left-color:#e0a800}.re-list li.re-blue{border-left-color:#1e6fb8}
.re-list strong{display:block;margin:4px 0}.re-list p{margin:0 0 6px;font-size:14px;line-height:1.45}.re-list small{color:#5e7179}
.re-tag{font-size:12px;font-weight:700;color:#166780;text-transform:uppercase;letter-spacing:.03em}
.re-count{display:inline-block;margin-left:6px;padding:0 10px;border-radius:999px;background:#052c37;color:#fff;font-size:.75em;vertical-align:middle}
.re-empty,.re-more{color:#4b5f66}
@media (max-width:900px){.tc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.traffic-counters{padding:0 16px}.tc-card{min-height:104px;padding:12px}.tc-num{font-size:30px}.tc-label{font-size:14px}}
@media (prefers-reduced-motion:reduce){.tc-card{transition:none}.tc-card:hover{transform:none}}
/* §17: long labels in the 15 languages (e.g. Filipino, Dutch) must wrap instead of widening the phone layout */
.home-status-tile,.home-command-heading>*,.tc-card{min-width:0;overflow-wrap:anywhere}
@media (max-width:780px){.home-gallery-all{flex:1 1 100%;max-width:100%;white-space:normal;text-align:center}}
