/* Match Weather tiles. Satori Space keeps its existing presentation. */
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main){--panel:#001a30;--bg:#001020;--text:#e6f3ff;--muted:#a0cfee;--line:#006ea6;--blue:#25c9ff}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) :is([class*="-tile"],[class*="-card"],[class*="-metric"],[class*="-row"]:not(.content-rating-row),.bio-home,.bio-species,.video-card,.video-card .copy,.bio-card-body){background:linear-gradient(125deg,#001c33,#001126 80%)!important;border-color:#006ea6!important;color:#e6f3ff!important}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) :is(h2,h3,h4,strong,b,span,label,div){color:#e6f3ff!important}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) :is(p,small,time,i,figcaption){color:#a0cfee!important}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) a{color:#25c9ff!important}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) :is(.fuel-table,.fuel-comparison,.fuel-market,.statistic-card,.crime-stat-card,.electricity-home-metric){background:linear-gradient(125deg,#001c33,#001126 80%)!important;color:#e6f3ff!important}
.home-dashboard .status-strip{display:none!important}
/* The first video remains a lead card. Every secondary video has the same frame. */
#videoRail .video-secondary-grid{grid-template-rows:none!important;grid-auto-rows:210px!important;align-content:start!important;align-items:stretch!important}
#videoRail .video-secondary-grid .video-card{height:210px!important;min-height:210px!important;display:flex!important;flex-direction:column!important;overflow:hidden}
.home-layout-grid #videoRail .video-secondary-grid .video-thumb{height:118px!important;min-height:118px!important;max-height:118px!important;flex:0 0 118px!important;aspect-ratio:16/9;width:100%;overflow:hidden}
#videoRail .video-secondary-grid .video-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}
#videoRail .video-secondary-grid .copy{height:92px!important;min-height:92px!important;flex:0 0 92px!important;padding:9px!important;display:flex!important;flex-direction:column!important;gap:6px;overflow:hidden}
#videoRail .video-secondary-grid h4{font-size:12px!important;line-height:1.35!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:33px;flex-shrink:0}
#videoRail .video-secondary-grid .video-channel{font-size:10px!important;line-height:1.4!important;margin-top:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.song-chart-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.song-chart-tabs button{padding:9px 16px;border:1px solid #007fc1;border-radius:22px;background:#001b32;color:#e6f3ff}.song-chart-tabs button[aria-pressed="true"]{background:linear-gradient(135deg,#00bfff,#0077ff);color:white}
#videoRail .video-secondary-grid .copy h4{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;height:33px!important;min-height:33px!important;max-height:33px!important;flex:0 0 33px!important;overflow:hidden!important}
:is(.home-dashboard [data-home-card]:not([data-home-card="space"],[data-home-card="town-coin"]),.inner-page:not(.home-dashboard):not([data-dashboard="space"]) main) :is(.bio-button,.bio-hero,.bio-panel,.bio-photo){background:linear-gradient(125deg,#001c33,#001126 80%)!important;border-color:#006ea6!important;color:#e6f3ff!important}

/* Preserve the coin's transparent overlay so its animated trail stays visible. */
.home-dashboard [data-home-card="town-coin"] .coin-action{background:linear-gradient(135deg,#00bfff,#0077ff);border-color:#00a7ff;color:#fff!important}
.home-dashboard [data-home-card="town-coin"] .coin-action span{color:#fff!important}
.home-dashboard [data-home-card="town-coin"] .coin-action:hover{background:linear-gradient(135deg,#25c9ff,#1765b8)}
/* Explicit nested surfaces which do not use tile/card class names. */
.home-dashboard :is([data-home-card="traffic"] .traffic-home-metrics>div,[data-home-card="crypto-market"] .topic-item,[data-home-card="crypto-market"] .topic-global,[data-home-card="crypto-market"] .topic-change,[data-home-card="electricity"] .electricity-home-metric,[data-home-card="electricity"] .electricity-latest,[data-home-card="electricity"] .data-label){background:linear-gradient(125deg,#001c33,#001126 80%)!important;border:1px solid #006ea6!important;color:#e6f3ff!important}
.home-dashboard [data-home-card="electricity"] .data-label{font-size:8px!important;line-height:1.25!important;padding:3px 5px!important}
.home-dashboard :is([data-home-card="traffic"] .freshness-badge,[data-home-card="schools"] .school-event-fallback){background:#001b32!important;border-color:#006ea6!important;color:#a0cfee!important}
/* Modest card typography changes. Larger values remain intentionally prominent. */
.home-dashboard :is([data-home-card="businesses"],[data-home-card="property"]) .mini-data-card{min-height:72px;padding:10px 8px!important;gap:10px}
.home-dashboard [data-home-card="businesses"] .mini-data-card strong{font-size:13px!important;line-height:1.4!important}
.home-dashboard [data-home-card="businesses"] .mini-data-card small{font-size:11px!important;line-height:1.4!important}
.home-dashboard [data-home-card="businesses"] :is(.business-mini-logo,.business-logo,.module-brand-logo){width:40px;height:40px}
.home-dashboard [data-home-card="property"] .property-mini-thumb{width:64px;height:48px;object-fit:cover}
.home-dashboard [data-home-card="facebook"] .social-post p,.home-dashboard .social-feed .social-post p{font-size:13px!important;line-height:1.5!important}
.home-dashboard .social-feed .facebook-social-head strong{font-size:12px!important;line-height:1.35!important}
.home-dashboard .social-feed .social-published small{font-size:10px!important;line-height:1.4!important}
.home-dashboard [data-home-card="schools"] .school-home-list strong{font-size:12px!important;line-height:1.4!important}
.home-dashboard [data-home-card="schools"] .school-home-list small{font-size:10.5px!important;line-height:1.4!important}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>div>span{font-size:11px!important;line-height:1.35!important}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>strong{font-size:15px!important;line-height:1.3!important}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>:is(small,a){font-size:10.5px!important;line-height:1.4!important}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric{padding:10px!important;gap:5px 8px;grid-template-columns:minmax(0,1fr)}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>strong{grid-column:1;grid-row:auto;white-space:normal;overflow-wrap:anywhere}
.home-dashboard [data-home-card="crime"] .crime-stat-heading span{font-size:10.5px!important;line-height:1.35!important}
.home-dashboard [data-home-card="crime"] .crime-stat-heading strong{font-size:15px!important;line-height:1.3!important}
.home-dashboard [data-home-card="crime"] .crime-stat-category{font-size:12px!important;line-height:1.4!important}
.home-dashboard [data-home-card="crime"] :is(.crime-stat-meta,.crime-stat-meta span,.crime-stat-card>small){font-size:10.5px!important;line-height:1.4!important}
.home-dashboard [data-home-card="courts"] .mini-data-card strong{font-size:12px!important;line-height:1.4!important}
.home-dashboard [data-home-card="courts"] .mini-data-card small{font-size:10.5px!important;line-height:1.4!important}
.home-dashboard .section-title .more-link{font-size:12px!important;font-weight:600;line-height:1.4!important;padding:5px 0;flex-shrink:0;white-space:nowrap}
.home-dashboard .section-title>div{min-width:0}

.home-dashboard [data-home-card="businesses"] .mini-data-card{min-height:60px;padding:8px!important}
.home-dashboard [data-home-card="businesses"] .business-mini-logo{flex:0 0 40px}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>:is(small,a){grid-column:1/-1}
.home-dashboard [data-home-card="electricity"] .electricity-home-metric>div{flex-wrap:wrap;gap:6px}
/* Distinct Latest News tiles with larger thumbnails. */
.home-dashboard [data-home-card="municipality"] .stack-item strong{font-size:9px!important;line-height:1.3!important}
.home-dashboard [data-home-card="municipality"] .stack-item small{font-size:7px!important;line-height:1.4!important}
.home-dashboard [data-home-card="news-latest"] .news-list{gap:8px!important}
.home-dashboard [data-home-card="news-latest"] .news-row{grid-template-columns:70px minmax(0,1fr)!important;min-height:74px;padding:9px!important;border:1px solid #006ea6!important;border-radius:7px;gap:10px!important}
.home-dashboard [data-home-card="news-latest"] .news-row-media{width:68px;height:50px}
.home-dashboard :is([data-home-card="neighbourhood-watch"],[data-home-card="local-organisations"]) .topic-item h3{font-size:12px!important;line-height:1.4}
.home-dashboard :is([data-home-card="neighbourhood-watch"],[data-home-card="local-organisations"]) .topic-item p{font-size:11px!important;line-height:1.45}

/* Crime indicators retain contrast in both homepage layouts. */
.crime-stat-card{background:#052337!important;color:#d8f1ff!important;border-color:#237da8!important}
.crime-stat-card .crime-trend.up{background:#44212c!important;color:#ffbdc5!important;border:1px solid #a95065}
.crime-stat-card .crime-trend.down{background:#123e36!important;color:#a6f3d7!important;border:1px solid #328a72}
.crime-stat-card .crime-trend{font-size:11px!important;line-height:1.45!important;padding:3px 5px;border-radius:5px}

/* Shared inner-page surfaces, including nested labels and document archives. */
.inner-page:not(.home-dashboard):not([data-dashboard="space"]) :is(.tariff-period,.data-label,.freshness-badge,.traffic-road-icon,.provider-state,.notice-copy dl>div,.school-counts>div,.school-name-pill,.warning,.fact-carousel,.fact-story figure,.fact-controls button,.municipal-documents-panel,.topic-global,.topic-item,.experience-item,.topic-coming,.topic-change,.topic-pending,.fuel-comparison,.public-map-credit){background:#05283d!important;color:#e6f3ff!important;border-color:#197b9c!important}
.inner-page:not(.home-dashboard) :is(.data-live,.provider-ok){background:#073e36!important;color:#b8ffde!important}
.inner-page:not(.home-dashboard) :is(.data-estimated,.warning){background:#40321a!important;color:#ffe1a0!important}
.inner-page:not(.home-dashboard) .provider-error{background:#4a2030!important;color:#ffd3db!important}
.inner-page:not(.home-dashboard) :is(.data-historical){background:#302448!important;color:#e2d4ff!important}
.inner-page:not(.home-dashboard) :is(.fact-carousel,.fact-page,.fact-copy,.fact-page-summary){color:#e6f3ff!important}
.inner-page:not(.home-dashboard) :is(.fact-page-summary,.fact-copy p,.fact-controls span){color:#a0cfee!important}
.inner-page:not(.home-dashboard) :is(.fact-controls button,.fact-links a,.fact-page-nav a){color:#6bddff!important}
.inner-page:not(.home-dashboard) .data-label{font-size:10px!important;line-height:1.25;padding:4px 7px}
.municipal-documents-panel{max-width:1100px;margin:24px auto;padding:20px;background:#031e32;border:1px solid #197b9c;border-radius:10px;color:#e6f3ff}
.inner-page:not(.home-dashboard) :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-attribution){background:#05283d!important;color:#e6f3ff!important}
.inner-page:not(.home-dashboard) .leaflet-popup-close-button{color:#bfefff!important}
.electricity-page .electricity-chart text{fill:#b8dcef;font-size:12px}
.electricity-page .chart-gridline{stroke:#21516a}
.electricity-page :is(.chart-line.demand,.chart-point.demand){stroke:#ff6683}
.electricity-page :is(.chart-line.capacity,.chart-point.capacity){stroke:#36cfff}
.electricity-page .chart-point{fill:#001a30;stroke-width:3}
.electricity-page .chart-key.demand{background:#ff6683}.electricity-page .chart-key.capacity{background:#36cfff}
.electricity-page #electricityStatistics{overflow-x:auto}

.electricity-page .electricity-chart{display:block;min-height:0;padding:15px 0}.electricity-page .electricity-chart>small{display:block;font-size:12px;line-height:1.5;margin:12px 0}

.inner-page:not(.home-dashboard) :is(.creator-body,.creator-note,.creator-terms,.radar-controls button){background:#05283d!important;color:#e6f3ff!important;border-color:#197b9c!important}

.inner-page:not(.home-dashboard) .radio-logo:not(:has(img)){background:#05283d!important;color:#7ddfff!important;border-color:#197b9c!important}
