/* Kaj.VG community dashboard, October 2026. */
:root { --bg:#0b1111; --surface:#121b1b; --card:#111a1a; --border:#2c3934; --border-hover:#45615b; --t1:#eef4f1; --t2:#a6b8b2; --t3:#819990; --blue:#83d7ba; --green:#9be3b8; --page-max:1280px; --gap:18px; --r-sm:0; --r-md:0; --r-lg:0; --r-xl:0; --r-full:0; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible { outline:2px solid #b1edcf; outline-offset:5px; }
html { scroll-padding-top:24px; }
body { background:var(--bg); }
.bg { background:var(--bg); animation:none; }
.bg::after { display:none; }
.header { padding:25px 0; border-bottom:1px solid var(--border); gap:24px; }
.header__mark { border-radius:0; background:#a8e4bd; color:#102a1c; width:42px; height:42px; }
.header__brand { font-size:1.22rem; }
.header__location { color:var(--t2); font-size:.62rem; letter-spacing:.12em; margin-top:4px; }
.header__date,.header__sun { color:var(--t2); }
.header__meta { align-items:flex-end; }
.aqi-glance { --aqi-accent:167,185,177; display:flex; align-items:center; gap:18px; flex:0 1 370px; min-width:0; padding:12px 18px; border:1px solid rgba(var(--aqi-accent),.3); border-left:3px solid rgb(var(--aqi-accent)); border-radius:0; background:#121d18; box-shadow:none; text-decoration:none; transition:border-color .2s,background .2s; }
.aqi-glance[data-status="excellent"],.aqi-glance[data-status="good"] { --aqi-accent:168,228,189; }
.aqi-glance[data-status="acceptable"] { --aqi-accent:204,220,143; }
.aqi-glance[data-status="moderate"] { --aqi-accent:238,214,133; }
.aqi-glance[data-status="poor"],.aqi-glance[data-status="sensitive"] { --aqi-accent:243,180,123; }
.aqi-glance[data-status="unhealthy"],.aqi-glance[data-status="very-unhealthy"] { --aqi-accent:248,154,145; }
.aqi-glance[data-status="dangerous"],.aqi-glance[data-status="hazardous"] { --aqi-accent:222,167,235; }
.aqi-glance[data-freshness="stale"],.aqi-glance[data-freshness="missing"] { --aqi-accent:167,185,177; }
.aqi-glance:hover { border-color:rgba(var(--aqi-accent),.7); background-color:#17231d; }
.aqi-glance__reading { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:0 0 auto; min-width:66px; padding-right:18px; border-right:1px solid rgba(var(--aqi-accent),.2); color:rgb(var(--aqi-accent)); }
.aqi-glance__reading strong { font-size:2.65rem; line-height:1; letter-spacing:-.065em; font-weight:600; font-variant-numeric:tabular-nums; }
.aqi-glance__reading>span { margin-top:5px; font-size:.56rem; font-weight:650; letter-spacing:.2em; padding-left:.2em; }
.aqi-glance__body { display:flex; flex-direction:column; gap:5px; min-width:0; }
.aqi-glance__eyebrow { display:flex; align-items:center; gap:7px; color:var(--t2); font-size:.56rem; font-weight:600; text-transform:uppercase; letter-spacing:.12em; }
.aqi-glance__eyebrow svg { width:15px; height:15px; flex-shrink:0; color:rgb(var(--aqi-accent)); }
.aqi-glance__status { color:rgb(var(--aqi-accent)); font-size:1.02rem; line-height:1.25; font-weight:600; letter-spacing:-.02em; overflow-wrap:anywhere; }
.aqi-glance__note { display:flex; align-items:center; gap:6px; color:var(--t2); font-size:.6rem; line-height:1.4; }
.aqi-glance__note i { flex:0 0 5px; height:5px; border-radius:0; background:rgb(var(--aqi-accent)); box-shadow:0 0 7px rgba(var(--aqi-accent),.3); }
.aqi-glance[data-freshness="stale"] .aqi-glance__note { color:#edc88c; }
.aqi-glance[data-freshness="stale"] .aqi-glance__note i { background:#edc88c; box-shadow:none; }
.aqi-glance[data-freshness="missing"] .aqi-glance__note i { background:transparent; border:1px solid var(--t3); box-shadow:none; }
.aqi-glance__arrow { width:16px; height:16px; flex-shrink:0; color:rgb(var(--aqi-accent)); margin-left:auto; opacity:.7; }
.header__meta-row { gap:12px; }
.city-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; padding:46px 0 40px; }
.eyebrow { color:#99c5ac; text-transform:uppercase; letter-spacing:.16em; font-size:.66rem; font-weight:650; margin:0 0 10px; }
.city-intro h1 { font-size:clamp(2.3rem,5.8vw,4.5rem); font-weight:650; letter-spacing:-.06em; line-height:1.04; }
.city-intro h1 span { color:#a8e4bd; }
.city-intro__sub { max-width:300px; font-size:.95rem; line-height:1.7; color:var(--t2); margin-bottom:3px; }
.heading-dot { color:#a8e4bd; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.section-heading h2 { font-size:clamp(1.45rem,2.5vw,2rem); line-height:1.16; font-weight:620; letter-spacing:-.04em; }
.section-meta { font-size:.73rem; line-height:1.6; color:var(--t2); }
.news-board { grid-column:1/-1; min-width:0; margin:0 0 26px; }
.news-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; }
.news-filters { display:flex; flex-wrap:wrap; gap:4px; }
.filter-chip { color:var(--t2); font-size:.75rem; border:1px solid transparent; background:transparent; border-radius:0; min-height:38px; padding:8px 12px; transition:background .15s,color .15s; }
.filter-chip:hover { color:var(--t1); background:#1e2a27; }
.filter-chip[aria-pressed="true"] { background:#a8e4bd0a; color:#d1eadb; border-color:transparent; border-bottom-color:#a8e4bd; }
.news-search { display:flex; align-items:center; gap:9px; padding:0 12px; border:1px solid var(--border); border-radius:0; color:var(--t2); }
.news-search input { background:transparent; color:var(--t1); font:inherit; font-size:.75rem; padding:10px 0; border:0; min-width:0; width:150px; min-height:38px; }
.news-search input::placeholder { color:var(--t3); }
.news-search:focus-within { border-color:#a8e4bd; }
.news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.news-story { display:flex; flex-direction:column; min-width:0; position:relative; border:1px solid var(--border); border-radius:0; padding:25px; background:var(--surface); transition:border-color .18s,background .18s; }
.news-story:hover { border-color:#729680; background:#16201d; }
.news-story:focus-within { border-color:#b1edcf; }
.news-story__top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; margin-bottom:23px; font-size:.64rem; line-height:1.5; color:var(--t2); }
.story-category { color:#bbdac7; font-size:.63rem; font-weight:650; letter-spacing:.06em; text-transform:uppercase; }
.story-category[data-category="culture"] { color:#d2b9ee; }
.story-category[data-category="traffic"] { color:#edc88c; }
.story-category[data-category="sport"] { color:#93cfe4; }
.news-story h3 { font-size:1.14rem; line-height:1.38; font-weight:620; letter-spacing:-.025em; overflow-wrap:anywhere; margin-bottom:12px; }
.news-story h3 a::after { content:""; position:absolute; inset:0; border-radius:0; }
.news-story__summary { font-size:.81rem; line-height:1.7; color:var(--t2); margin:0 0 25px; }
.news-story__bottom { display:flex; justify-content:space-between; gap:12px; padding-top:18px; margin-top:auto; border-top:1px solid var(--border); font-size:.63rem; color:var(--t2); }
.news-story__bottom span:last-child { color:#c0dccb; white-space:nowrap; }
.news-story--lead { grid-column:span 2; background:#192b22; border-color:#3c5847; border-top:2px solid #a8e4bd; }
.news-story--lead h3 { font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.25; max-width:620px; }
.news-story--lead .news-story__summary { max-width:630px; font-size:.9rem; }
.news-story--lead .news-story__bottom { border-color:#3c5847; }
.news-empty { padding:40px 20px; text-align:center; color:var(--t2); border:1px dashed var(--border); border-radius:0; font-size:.9rem; }
.news-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:20px; }
.more-button { display:flex; gap:24px; align-items:center; padding:11px 18px; min-height:44px; background:transparent; color:var(--t1); border:1px solid #50695c; border-radius:0; font-size:.77rem; }
.more-button:hover { background:#203328; }
.environment-heading { grid-column:1/-1; margin-bottom:0; padding-top:4px; }
.card { opacity:1; transform:none; }
.card__glass-light { display:none; }
.card--annual { grid-column:1/-1; min-width:0; padding:30px; margin:8px 0; }
.card--annual .section-heading { margin-bottom:12px; }
.period-pill { white-space:nowrap; border:1px solid #3a5045; border-radius:0; padding:7px 11px; color:#bbd5c6; font-size:.72rem; }
.trend-description { color:var(--t2); font-size:.82rem; line-height:1.65; max-width:620px; }
.trend-stats { display:flex; flex-wrap:wrap; gap:28px 56px; margin:28px 0 30px; }
.trend-stats>div { display:flex; flex-direction:column; gap:8px; }
.trend-stats>div>span { color:var(--t2); font-size:.68rem; }
.trend-stats strong { font-size:1.85rem; letter-spacing:-.04em; font-weight:550; font-variant-numeric:tabular-nums; }
.trend-stats small { color:var(--t3); font-size:.9rem; letter-spacing:0; }
.weekly-scroll { overflow-x:auto; padding:6px 5px 8px; scrollbar-width:thin; scrollbar-color:#50695c transparent; }
.weekly-plot { display:grid; grid-template-columns:35px 1fr; grid-template-rows:180px 28px; min-width:740px; gap:8px; }
.weekly-axis { display:flex; flex-direction:column; justify-content:space-between; text-align:right; padding-right:7px; color:var(--t3); font-size:.63rem; line-height:1; font-variant-numeric:tabular-nums; }
.weekly-columns { display:grid; grid-template-columns:repeat(52,minmax(0,1fr)); gap:4px; background:repeating-linear-gradient(to top,#38504555 0px,#38504555 1px,transparent 1px,transparent 25%); border-bottom:1px solid #50695c; }
.week-column { display:flex; align-items:flex-end; justify-content:center; width:100%; padding:0; height:100%; background:transparent; border:0; position:relative; border-radius:0; }
.week-column:hover { background:#accfb112; }
.week-column[aria-pressed="true"] { background:#b5e6c52b; box-shadow:0 0 0 1px #b5e6c5; }
.week-bar { width:100%; border-radius:0; background:#92cca8; min-height:2px; }
.week-column[data-tone="moderate"] .week-bar { background:#cbd08a; }
.week-column[data-tone="sensitive"] .week-bar { background:#e7af70; }
.week-column[data-tone="poor"] .week-bar { background:#dc8078; }
.week-column[data-tone="empty"] .week-bar { background:transparent; border-bottom:2px dotted #65776d; }
.week-bar--partial { background-image:repeating-linear-gradient(135deg,transparent,transparent 3px,#0b111155 3px,#0b111155 5px) !important; }
.weekly-months { grid-column:2; display:grid; grid-template-columns:repeat(52,minmax(0,1fr)); gap:4px; color:var(--t3); font-size:.62rem; white-space:nowrap; }
.weekly-months span:last-child { justify-self:end; }
.trend-detail { background:#1b2721; border-radius:0; padding:12px 15px; min-height:47px; color:#c9decf; font-size:.73rem; line-height:1.7; margin-top:10px; font-variant-numeric:tabular-nums; }
.trend-legend { display:flex; flex-wrap:wrap; gap:12px 22px; margin-top:18px; font-size:.66rem; color:var(--t2); }
.trend-legend>span { display:inline-flex; align-items:center; gap:6px; }
.legend-dot { width:7px; height:7px; border-radius:0; display:inline-block; }
.legend-dot--good { background:#92cca8; }.legend-dot--moderate { background:#cbd08a; }.legend-dot--sensitive { background:#e7af70; }.legend-dot--poor { background:#dc8078; }.legend-dot--empty { border:1px dotted #849c8d; }
.trend-method { margin-top:22px; border-top:1px solid var(--border); padding-top:16px; font-size:.73rem; color:var(--t2); line-height:1.8; }
.trend-method summary { cursor:pointer; color:#bdcfc4; }
.trend-method p { margin-top:10px; max-width:900px; }
.data-stale { grid-column:1/-1; padding:15px 20px; background:#392e1d; color:#edc88c; border-radius:0; font-size:.85rem; }
.card--aqi { background:#14221b; }
.card--weather,.card--radiation,.card--location { background:var(--surface); }
.card__badge { color:var(--t2); }
.footer { border-top:1px solid var(--border); }
.footer__subscribe { background:#17251d; border-color:#3b5445; }
.footer__subscribe:hover { transform:none; background:#1c2d23; border-color:#729680; }

/* Square edges across the original widgets as well as the news layout. */
.streak-alert__icon,.aqi-scale__bar,.aqi-scale__current::before,.aqi-scale__avg,
.aqi-chart__bar,.rad-daily-dose__bar,.rad-daily-dose__projected,.rad-daily-dose__fill,
.news-slide__logo,.parking__spot,.parking-timeline__home,.parking-timeline__slider,
.parking-timeline__tooltip,.modal__close { border-radius:0; }
.parking-timeline__slider::-moz-range-track { border-radius:0; }
.card:not(.card--storm):hover { box-shadow:none; }

@media (min-width:900px) { .card--aqi-history { grid-column:1/-1; } }
@media (max-width:1050px) {
    .header__date { display:none; }
    .news-toolbar { align-items:flex-start; }
    .news-search input { width:120px; }
    .news-story { padding:21px; }
}
@media (max-width:760px) {
    .header { flex-wrap:wrap; gap:16px; padding:20px 0; }
    .aqi-glance { order:3; flex:1 0 100%; width:100%; gap:18px; padding:14px 18px; }
    .header__meta { margin-left:auto; }
    .header__sun { font-size:.64rem; }
    .city-intro { display:block; padding:30px 0; }
    .city-intro__sub { margin-top:18px; max-width:450px; font-size:.85rem; }
    .section-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
    .news-toolbar { flex-direction:column; align-items:stretch; gap:12px; }
    .news-filters { flex-wrap:nowrap; overflow:auto; padding:3px 1px 6px; }
    .filter-chip { flex-shrink:0; padding:8px 10px; }
    .news-search input { width:100%; }
    .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .news-story--lead { grid-column:span 2; }
    .news-story h3 { font-size:1.08rem; }
    .news-story--lead h3 { font-size:1.6rem; }
    .card--annual { padding:22px 18px; }
    .trend-stats { gap:20px 30px; }
    .trend-stats strong { font-size:1.6rem; }
}
@media (max-width:520px) {
    :root { --page-px:16px; --card-px:20px; --gap:14px; }
    .news-grid { grid-template-columns:1fr; }
    .news-story--lead { grid-column:auto; }
    .news-story { padding:21px; }
    .news-story__top { margin-bottom:16px; }
    .news-story__summary { margin-bottom:20px; }
    .news-bottom { align-items:flex-start; }
    .more-button { padding:10px 12px; gap:12px; }
    .section-meta { font-size:.68rem; }
    .trend-stats>div { flex:1 1 120px; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { animation:none !important; transition:none !important; }
}

.skip-link { position:fixed; left:20px; top:-100px; background:#d1eadb; color:#123420; padding:12px 20px; z-index:1000; border-radius:0; }
.skip-link:focus { top:12px; }

/* Shared annual plot: station AQI bars and radiation dose-rate line. */
.weekly-plot { grid-template-columns:42px minmax(0,1fr)56px; grid-template-rows:20px 220px 28px; }
.weekly-axis-title { font-size:.63rem; font-weight:600; letter-spacing:.06em; align-self:start; }
.weekly-axis-title--aqi { grid-column:1/3; grid-row:1; color:#b9d7c2; }
.weekly-axis-title--radiation { grid-column:2/4; grid-row:1; justify-self:end; color:#9dd9f0; }
.weekly-axis { grid-column:1; grid-row:2; }
.weekly-axis--radiation { grid-column:3; text-align:left; padding:0 0 0 5px; color:#9dd9f0; }
.weekly-chart { grid-column:2; grid-row:2; position:relative; min-width:0; }
.weekly-columns { position:absolute; inset:0; gap:0; }
.week-bar { width:calc(100% - 4px); }
.weekly-months { grid-column:2; grid-row:3; gap:0; }
.radiation-line { display:block; position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.radiation-line__halo { fill:none; stroke:#0b1111; stroke-width:5.5; stroke-opacity:.8; vector-effect:non-scaling-stroke; }
.radiation-line__stroke { fill:none; stroke:#9dd9f0; stroke-width:2.2; vector-effect:non-scaling-stroke; }
.radiation-line__stroke--partial { stroke-dasharray:4 4; }
.radiation-line__point { fill:#9dd9f0; stroke:#0b1111; stroke-width:1; vector-effect:non-scaling-stroke; }
.radiation-line__point--partial { fill:#111a1a; stroke:#9dd9f0; stroke-width:1.5; }
.trend-stat--radiation strong { color:#b5e4f5; }
.trend-series-key { display:flex; flex-wrap:wrap; gap:12px 24px; color:var(--t2); font-size:.72rem; margin-bottom:20px; }
.trend-series-key>span { display:flex; align-items:center; gap:9px; }
.trend-series-key__hint { margin-left:auto; color:var(--t3); font-size:.66rem; }
.series-swatch { display:inline-block; width:22px; flex-shrink:0; }
.series-swatch--aqi { height:11px; background:repeating-linear-gradient(to right,#92cca8 0,#92cca8 5px,transparent 5px,transparent 8px); }
.series-swatch--radiation { height:2px; background:#9dd9f0; position:relative; }
.series-swatch--radiation::after { content:""; width:5px; height:5px; background:#9dd9f0; position:absolute; top:-1.5px; left:9px; }
.trend-detail { padding:16px 18px; }
.trend-detail__date { display:block; font-size:.7rem; color:var(--t2); font-weight:500; margin-bottom:14px; }
.trend-detail__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.trend-detail__series { border-left:2px solid #92cca8; padding-left:12px; min-width:0; }
.trend-detail__series--radiation { border-left-color:#9dd9f0; }
.trend-detail__series strong { display:block; font-size:1.02rem; font-weight:550; color:var(--t1); }
.trend-detail__series>span { display:block; color:var(--t2); font-size:.67rem; line-height:1.8; }
@media(max-width:760px) {
    .trend-series-key__hint { margin-left:0; flex-basis:100%; }
}
@media(max-width:520px) {
    .trend-detail__grid { grid-template-columns:1fr; gap:16px; }
}

.weekly-axis { position:sticky; left:0; z-index:3; background:var(--card); }
.weekly-axis--radiation { left:auto; right:0; }
.weekly-axis-title { position:sticky; z-index:3; width:max-content; background:var(--card); }
.weekly-axis-title--aqi { left:0; }
.weekly-axis-title--radiation { right:0; }

.weekly-scroll { padding-left:0; padding-right:0; }
