/* First-screen source-backed Singapore road dashboard */
.page-home .home-live{margin:24px 0 34px;padding:24px;border:1px solid #d5e1e8;border-radius:24px;background:linear-gradient(150deg,#f1f6fa,#fff 56%);color:#182c3b;box-shadow:0 14px 35px rgba(18,46,63,.08)}
.page-home .home-live-top{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin-bottom:22px}
.page-home .home-live-top .eyebrow{color:#a71930;font-size:14px;font-weight:800;letter-spacing:.08em}
.page-home .home-live-top h2{font-size:clamp(1.7rem,3vw,2.6rem);margin:7px 0 9px;color:#173346;line-height:1.15}
.page-home .home-live-top p{margin:0;color:#38546a;font-size:16px;line-height:1.5}
.page-home .home-live-top .home-report-count{display:inline-flex;margin-top:13px;padding:9px 14px;border-radius:99px;border:1px solid #cad9e3;background:#eaf1f6;color:#263e52;font-weight:750;font-size:14px}
.page-home .home-report-count[data-severity="critical"]{background:#fff0f0;border-color:#f4b0b6;color:#9b1626}
.page-home .home-report-count[data-severity="caution"]{background:#fff8e4;border-color:#e9d092;color:#715108}
.page-home .home-live-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;max-width:350px}
.page-home .home-live-nav a,.page-home .home-map-head a,.page-home .home-more-cameras{display:inline-flex;align-items:center;min-height:44px;padding:10px 13px;border-radius:12px;background:#173c51;color:#fff;text-decoration:none;font-weight:750;font-size:14px}
.page-home .home-live a:focus-visible,.page-home .home-live button:focus-visible{outline:3px solid #d55e19;outline-offset:3px}
.page-home .home-live-nav a:hover,.page-home .home-map-head a:hover,.page-home .home-more-cameras:hover{background:#a71930;color:#fff}
.page-home .home-live-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);gap:18px;align-items:stretch}
.page-home .home-live-layout>.home-incidents,.page-home .home-live-layout>.home-map{min-width:0}
.page-home .home-live .feed.panel,.page-home .home-map{margin:0;border:1px solid #dbe5ed;border-radius:20px;background:#fff;padding:18px;box-shadow:none}
.page-home .home-incidents .feed{height:100%}
.page-home .home-incidents .feed .section-head h2{font-size:22px;color:#20384b}
.page-home .home-incidents .feed-content{display:grid;gap:9px}
.page-home .home-incidents .incident{display:block;padding:14px 17px;background:#fff3f3;border:1px solid #f0b6bb;border-left:5px solid #bc1f32;border-radius:13px;text-decoration:none;color:#2e313b;min-height:98px;transition:transform .15s ease,box-shadow .15s ease}
.page-home .home-incidents .incident:hover{transform:translateY(-2px);box-shadow:0 9px 18px rgba(111,39,45,.12)}
.page-home .home-incidents .incident--caution{background:#fff9e9;border-color:#edd8a2;border-left-color:#ba780e}
.page-home .home-incidents .incident--notice{background:#f5f8fb;border-color:#d9e4ea;border-left-color:#4f748e}
.page-home .home-incidents .incident .event-type{display:inline-block;font-size:13px;font-weight:800;color:#a11e2d}
.page-home .home-incidents .incident--caution .event-type{color:#815909}
.page-home .home-incidents .incident--notice .event-type{color:#2b5a70}
.page-home .home-incidents .incident p{margin:7px 0;line-height:1.45;font-size:15px;color:#263a47;overflow-wrap:anywhere}
.page-home .home-incidents .incident-action{display:inline-block;color:#6a1b28;font-size:14px;font-weight:750}
.page-home .home-map-head,.page-home .home-cameras-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.page-home .home-map-head h3,.page-home .home-cameras-head h3{font-size:22px;color:#173346;line-height:1.25;margin:0}
.page-home .home-map-head a{background:#eef4f8;color:#183c54}
.page-home .home-map-layers{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
.page-home .home-map-layers button{border:1px solid #bad0dc;border-radius:10px;padding:10px 14px;font:inherit;font-size:14px;font-weight:700;background:#f1f6f9;color:#22445a;cursor:pointer;min-height:44px}
.page-home .home-map-layers button[aria-pressed="true"]{background:#173c51;color:#fff;border-color:#173c51}
.page-home #map-status{font-size:14px;line-height:1.45;color:#355267;margin:9px 0;padding:9px 12px;background:#eef4f7;border-radius:10px}
.page-home #mobility-map{height:370px;min-height:300px;background:#e8f1ed;border:1px solid #d6e4e6;border-radius:14px}
.page-home .home-map-credit{font-size:14px;line-height:1.5;color:#526574;margin-top:10px}
.page-home .home-map #map-results .result-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:180px;overflow:auto}
.page-home .home-map #map-results .result-record{padding:8px;border-radius:8px}
.page-home .home-map #map-results .result-record h3{font-size:14px}
.page-home .home-camera-overview{margin-top:20px;padding:21px;border:1px solid #dbe5ed;border-radius:20px;background:#fff}
.page-home .home-cameras-head p{margin:7px 0 0;color:#4f6678;font-size:15px}
.page-home .home-camera-overview .feed{margin-top:15px}
.page-home .home-camera-overview .camera-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.page-home .home-camera-overview .camera-card{min-width:0}
.page-home .home-camera-overview .camera-card .camera-view{aspect-ratio:16/9}
.page-home .home-camera-overview .camera-zoom{display:block;width:100%;height:100%;overflow:hidden}
.page-home .home-camera-overview .camera-zoom img{width:100%;height:100%;object-fit:cover}
.page-home .home-camera-note{margin:12px 0 0;font-size:14px;color:#4b6374}
.page-home .home-hero{margin-top:24px;padding:25px 34px;gap:30px}
.page-home .home-hero h1{font-size:clamp(2.4rem,4vw,3.6rem)}
.page-home .home-hero .lede{font-size:16px}
.page-home .journey-board{padding:18px}
.page-home .journey-board h2{font-size:25px}
.page-home .journey-board .journey-choice{min-height:65px;padding:9px 12px}
@media(max-width:1020px){.page-home .home-live-layout{grid-template-columns:1fr}.page-home .home-live-nav{max-width:none}.page-home .home-camera-overview .camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.page-home .home-live{padding:15px;border-radius:18px;margin:14px 0 22px}.page-home .home-live-top{display:block}.page-home .home-live-top h2{font-size:28px}.page-home .home-live-top p{font-size:15px}.page-home .home-live-nav{justify-content:stretch;margin-top:14px}.page-home .home-live-nav a{flex:1 1 auto;justify-content:center;padding:8px 11px}.page-home .home-live-layout{gap:13px}.page-home .home-live .feed.panel,.page-home .home-map,.page-home .home-camera-overview{padding:14px;border-radius:15px}.page-home #mobility-map{height:310px;min-height:275px}.page-home .home-camera-overview .camera-grid{grid-template-columns:1fr}.page-home .home-cameras-head{align-items:flex-start;flex-direction:column}.page-home .home-map-head h3,.page-home .home-cameras-head h3{font-size:20px}.page-home .home-map #map-results .result-records{grid-template-columns:1fr}.page-home .home-hero{padding:22px 18px;gap:15px}.page-home .journey-board h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.page-home .home-incidents .incident{transition:none}.page-home .home-incidents .incident:hover{transform:none}}

/* Hidden fetch form is never a user-facing control on the overview. */
.page-home #map-controls[hidden]{display:none!important}

/* Priority is map and live source-backed signals, not a second wall of text. */
.page-home .home-live{background:linear-gradient(160deg,#ecf8f3,#f7fafb 45%,#fff);border-color:#bad6cd;box-shadow:0 16px 50px rgba(13,59,54,.11)}
.page-home .home-live-top h2{font-size:clamp(27px,3.5vw,47px);letter-spacing:-.04em;max-width:670px;line-height:1.08;color:#103f43}
.page-home .home-live-top .eyebrow{color:#205e52}
.page-home .home-live-nav a{background:#1c554f;color:#fff}
.page-home .home-live-signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 21px}
.page-home .home-signal{display:flex;gap:13px;min-width:0;align-items:flex-start;padding:18px 15px;background:#fff;border:1px solid #cadcd8;border-radius:17px;box-shadow:0 5px 17px rgba(15,71,59,.06);text-decoration:none;transition:border-color .16s,transform .16s;color:#193c45}
.page-home .home-signal:hover{border-color:#699e95;transform:translateY(-2px)}
.page-home .home-signal-icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:13px;background:#e7f3ed;font-size:25px}
.page-home .home-signal-copy{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.page-home .home-signal-label{font-size:12px;line-height:1.5;letter-spacing:.06em;font-weight:830;color:#4e6668}
.page-home .home-signal-copy strong{font-size:clamp(19px,2vw,26px);letter-spacing:-.02em;line-height:1.15;color:#1d4444}
.page-home .home-signal-copy small{font-size:14px;line-height:1.4;color:#567072}
.page-home .home-signal-arrow{font-size:21px;line-height:1;color:#2d6b62}
.page-home .home-signal-alert[data-state=alert]{background:#fff0f0;border-color:#dd8795}
.page-home .home-signal-alert[data-state=alert] .home-signal-icon{background:#fbd5dc}
.page-home .home-signal-alert[data-state=alert] .home-signal-copy strong{color:#9b2536}
.page-home .home-signal[data-state=unavailable]{background:#f6f6f4;border-style:dashed;color:#4c5d65}
.page-home .home-signal[data-state=caution]{background:#fff9ef;border-color:#e4ca9e}
.page-home .home-live-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr);align-items:start}
.page-home .home-live-layout .home-map{order:-1}
.page-home .home-live .home-map{border:1px solid #c5dcd7;box-shadow:0 10px 28px rgba(26,71,65,.07)}
.page-home .home-map-head h3{font-size:24px;letter-spacing:-.02em}
.page-home .home-map-layers button{background:#fff;color:#235a54;border-color:#bfd8d1}
.page-home .home-map-layers button[aria-pressed=true]{background:#176255;border-color:#176255;color:#fff}
.page-home #mobility-map{height:430px}
.page-home #map-status{margin:11px 0;background:#e8f4ef;border-left:4px solid #397a68;color:#315b55}
.page-home .home-map #map-status[data-state=unavailable]{background:#fff0e8;border-color:#b25a3c;color:#85442f}
.page-home .home-map #map-results .map-places-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;overscroll-behavior:contain}
.page-home .home-map #map-results .map-place-card{border-radius:11px}
.page-home .home-map #map-results .map-place-focus{min-height:78px;padding:8px;gap:8px}
.page-home .home-map #map-results .map-place-focus>img{width:62px;height:60px}
.page-home .home-map #map-results .map-place-copy strong{font-size:14px}
.page-home .home-map #map-results .map-place-copy small{font-size:13px}
.page-home .home-map #map-results .map-place-external{font-size:13px}
.page-home .home-incidents .feed-content{max-height:700px;overflow:auto;overscroll-behavior:contain}
.page-home .home-camera-overview{border:1px solid #c5dad3;box-shadow:0 9px 29px rgba(24,75,66,.06)}
.page-home .home-camera-overview .camera-card{background:#f5f8f7;border:1px solid #d7e4df;border-radius:12px;overflow:hidden}
.page-home .home-camera-overview .camera-card figcaption{padding:12px}
@media(max-width:1020px){.page-home .home-live-signals{grid-template-columns:repeat(3,minmax(0,1fr))}.page-home .home-live-layout{grid-template-columns:1fr}.page-home .home-live-layout .home-map{order:0}}
@media(max-width:700px){.page-home .home-live-signals{grid-template-columns:1fr 1fr}.page-home .home-signal:last-child{grid-column:1/-1}.page-home .home-live-top h2{font-size:31px}.page-home #mobility-map{height:375px}.page-home .home-map #map-results .map-places-grid{grid-template-columns:1fr}}
@media(max-width:430px){.page-home .home-live-signals{grid-template-columns:1fr}.page-home .home-signal:last-child{grid-column:auto}.page-home .home-signal{padding:13px}.page-home #mobility-map{height:320px}}
@media(prefers-reduced-motion:reduce){.page-home .home-signal{transition:none}.page-home .home-signal:hover{transform:none}}

/* v9 traffic count cards: big number + Unicode traffic symbol + label; whole card is one link. */
.page-home .traffic-counts{margin:16px 0 22px}
.page-home .traffic-counts-head h2{font-size:clamp(20px,2.2vw,26px);letter-spacing:-.02em;margin:0 0 4px;color:#103f43}
.page-home .traffic-counts-meta,.page-home .traffic-counts-time{margin:0;font-size:14px;line-height:1.45;color:#4e6668}
.page-home .traffic-counts-time{margin-top:8px;font-weight:650}
.page-home .traffic-counts[data-state=stale] .traffic-counts-time{color:#8a4b12}
.page-home .traffic-counts-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:12px}
.page-home .tc{--tc:#5a6b70;--tc-bg:#f4f7f7;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon num" "label label";align-items:center;gap:4px 10px;min-width:0;padding:14px 14px 12px;border:1px solid color-mix(in srgb,var(--tc) 40%,#fff);border-left:6px solid var(--tc);border-radius:14px;background:var(--tc-bg);color:#17323a;text-decoration:none;box-shadow:0 4px 14px rgba(15,71,59,.06);transition:transform .15s,box-shadow .15s}
.page-home .tc:hover,.page-home .tc:focus-visible{transform:translateY(-2px);box-shadow:0 9px 22px rgba(15,71,59,.13)}
.page-home .tc:focus-visible{outline:3px solid #0f5f8a;outline-offset:2px}
.page-home .tc-icon{grid-area:icon;font-size:28px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.page-home .tc-num{grid-area:num;font-size:clamp(28px,3vw,38px);line-height:1;font-weight:850;letter-spacing:-.03em;color:var(--tc-ink,#17323a);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.page-home .tc-label{grid-area:label;font-size:14px;line-height:1.3;font-weight:750;color:#2b4248}
.page-home .tc--closures{--tc:#c4262e;--tc-bg:#fff1f1;--tc-ink:#9e1c24}
.page-home .tc--accidents{--tc:#d9363e;--tc-bg:#fff3f2;--tc-ink:#a3222a}
.page-home .tc--congestion{--tc:#e07a12;--tc-bg:#fff6eb;--tc-ink:#8f4a05}
.page-home .tc--roadworks{--tc:#d6a700;--tc-bg:#fffbe6;--tc-ink:#6f5600}
.page-home .tc--breakdowns{--tc:#b5541c;--tc-bg:#fdf3ec;--tc-ink:#86390d}
.page-home .tc--other{--tc:#2f6fa8;--tc-bg:#eef5fc;--tc-ink:#1d4f7c}
.page-home .tc[data-count="0"]{--tc-bg:#f6f8f8;--tc-ink:#4c5d65}
.page-home .traffic-counts[data-state=unknown] .tc-num{font-size:18px;color:#4c5d65}
@media(max-width:1020px){.page-home .traffic-counts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.page-home .traffic-counts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-home .tc{padding:12px 11px 10px}.page-home .tc-icon{font-size:24px}}
@media(prefers-reduced-motion:reduce){.page-home .tc{transition:none}.page-home .tc:hover{transform:none}}
.page-home .traffic-counts-time::first-letter{text-transform:uppercase}
.page-home .tc{grid-template-columns:auto auto 1fr;grid-template-areas:"icon num trend" "label label label"}
.page-home .tc-trend{grid-area:trend;align-self:center;font-size:14px;font-weight:800;white-space:nowrap}
.page-home .tc-trend-up{color:#b3261e}
.page-home .tc-trend-down{color:#1d7a3a}
.page-home .traffic-counts-total{margin:10px 0 0;font-size:15px;color:#17323a}
.page-home .traffic-counts-total strong{font-size:18px;font-variant-numeric:tabular-nums}
.page-home .traffic-counts-note{margin:4px 0 0;font-size:13px;line-height:1.45;color:#5a6b70}
