/* Greece Atmosphere Watch V0.4 — Weatherdata Light.
   Presentation only: collector, quality rules and live JSON contract are unchanged. */
:root {
  color-scheme: light;
  --bg: #e9f4fa;
  --surface: #ffffff;
  --surface-2: #f3f9fc;
  --surface-3: #e6f3fa;
  --line: #d7e7f0;
  --line-hi: #acd1e4;
  --text: #153e58;
  --muted: #627d91;
  --soft: #7896a7;
  --cyan: #128eb8;
  --blue: #0878ae;
  --shadow: 0 12px 42px rgba(27,83,121,.08);
}
html { background:#e9f4fa; }
body {
  color:var(--text);
  background:linear-gradient(180deg,#A4CDEE 0,#CCE5F8 570px,#ADD4F0 100%);
  font-family:'Source Sans 3',sans-serif;
  font-size:15px;
  font-weight:500;
}
h1,h2,h3,strong,b,button,select { font-family:Nunito,system-ui,sans-serif; }
.site-shell { width:min(1280px,calc(100% - 50px));margin:29px auto 0; }
.hero {
  height:257px;
  border:1px solid #c4e2f1;
  background:#d7edf8;
  border-radius:19px;
  box-shadow:0 15px 42px rgba(30,105,150,.11);
}
.hero:after { height:0; }
.hero-photo {
  position:absolute;inset:0;
  background-image:linear-gradient(90deg,rgba(236,248,254,.85) 0%,rgba(231,246,253,.64) 41%,rgba(219,240,249,.04) 83%),url('./hero-air-quality.webp');
  background-size:cover;
  background-position:center 55%;
}
.hero-content { position:relative;padding:46px 52px;width:min(930px,76%); }
.hero-eyebrow { color:#237997;font-size:10px;letter-spacing:2.1px;font-weight:900; }
.eyebrow-dot { background:#13b895;box-shadow:0 0 0 5px rgba(19,184,149,.11); }
.hero-brand { align-items:center;gap:17px;margin-top:25px; }
.brand-logo { width:72px;height:58px;flex-basis:72px;filter:drop-shadow(0 4px 10px rgba(22,139,187,.1)); }
.hero h1 { font-size:clamp(32px,3vw,45px);letter-spacing:-1.5px;color:#0a3e5d;text-shadow:0 1px 0 rgba(255,255,255,.5); }
.hero h1 span { color:#0b95c4; }
.hero-brand p { color:#3b6e88;font-size:15px;letter-spacing:0;font-weight:700;margin-top:9px; }
.hero-mark { top:22px;right:27px;color:#0d6790;font-size:13px;font-weight:900;background:rgba(255,255,255,.72);padding:7px 12px;border-radius:999px;box-shadow:0 2px 18px rgba(49,103,132,.06); }
.product-nav {
  margin:15px 0 24px;height:62px;padding:7px 10px;
  background:#ffffff;border:1px solid #d9e9f2;border-radius:14px;
  box-shadow:0 5px 19px rgba(28,90,128,.035);
}
.nav-tab { height:44px;color:#5a7b90;font-size:13px; }
.nav-tab:hover { color:#116d9c;background:#f2f9fd; }
.nav-tab.active { color:#075a81;background:#ddf1fb;border-color:#b7e3f4;box-shadow:none; }
.nav-tab.active svg { color:#088cc0; }
.tool-button { height:37px;color:#124966;background:#f2f9fd;border-color:#d5e8f3; }
.lang-divider,#otherLanguage { color:#85a3b6; }
.page-overview { display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px; }
.overview-intro { min-width:0; }
.section-overline { color:#178ba8;font-size:10px;letter-spacing:1.55px; }
.live-ring { border-color:#28baa2;box-shadow:0 0 0 4px rgba(40,186,162,.1); }
.overview-intro h2 { font-size:clamp(25px,2.5vw,34px);line-height:1.2;font-weight:900;margin:7px 0 6px;color:#0d4160;letter-spacing:-.7px; }
.overview-intro p { margin:0;color:#648196;font-size:14.5px;line-height:1.35; }
.overview-facts { display:grid;grid-template-columns:minmax(142px,.55fr) minmax(260px,1fr);gap:11px;flex-shrink:0; }
.fact-card { min-height:80px;padding:13px 19px;background:#fff;border:1px solid #d5e6ef;border-radius:13px;box-shadow:0 6px 20px rgba(28,79,122,.045);display:flex;flex-direction:column;justify-content:center;gap:4px; }
.fact-card span { color:#617e91;font-size:11.5px;font-weight:800; }
.fact-card strong { color:#0b5276;font-size:27px;letter-spacing:-.8px;line-height:1.15;font-weight:900; }
.time-fact { border-left:3px solid #58b7de; }
.time-fact strong { font-family:'Source Sans 3',sans-serif;font-size:15px;letter-spacing:0;font-weight:700; }
.station-fact { border-left:3px solid #20b7a4; }
.status-notice { display:block;margin-bottom:16px;background:#fff4e5;color:#8e552c;border:1px solid #f1d3ab;border-radius:12px;padding:13px 16px;font-size:13.5px;font-weight:700; }
.status-notice[hidden] { display:none; }
.data-panel { border:1px solid #d1e5ef;border-radius:17px;background:#fff;box-shadow:0 12px 46px rgba(26,88,135,.09); }
.panel-heading { padding:24px 27px 17px; }
.panel-heading h3 { font-size:22px;font-weight:900;color:#153d57;margin:0; }
.controls-row { gap:10px; }
.search-wrap,.select-wrap { height:47px;background:#f8fcfe;border:1px solid #d6e8f1;border-radius:9px; }
.search-wrap:focus-within,.select-wrap:focus-within { border-color:#65b4d6;box-shadow:0 0 0 3px rgba(63,168,213,.1); }
.search-wrap svg { stroke:#5093b5; }
.search-wrap input { color:#173f59;font-family:'Source Sans 3',sans-serif;font-size:14px;font-weight:500; }
.search-wrap input::placeholder { color:#90a6b4; }
.select-wrap { color:#6c8ba0;min-width:192px; }
.select-wrap span { font-size:11px;font-weight:900;color:#55798d; }
.select-wrap select { color:#144964;font-size:12px;font-weight:800; }
.select-wrap select option { color:#173f59;background:#fff; }
.sort-wrap { min-width:203px; }
.pollutant-tabs { padding:15px 27px 19px;gap:8px; }
.pollutant-chip { color:#416a82;background:#edf6fa;border:1px solid #d1e5f0;font-size:12px;height:35px;padding:0 15px; }
.pollutant-chip:hover:not(:disabled) { color:#0e6793;border-color:#95d2e9; }
.pollutant-chip.selected { color:#fff;background:#087eb1;border-color:#087eb1;box-shadow:0 3px 9px rgba(5,104,147,.14); }
.reset-button { color:#538399;font-size:12px; }
.reset-button:hover { color:#087db0; }
.desktop-table-wrap { max-height:810px;scrollbar-color:#bad4e3 #f4f9fc; }
.observations-table thead th { background:#0c425f;color:#e8f8ff;height:54px;border-bottom:1px solid #0c425f;box-shadow:0 4px 13px rgba(7,57,84,.12);font-size:11px; }
.observations-table thead th:first-child { width:29%;padding-left:24px; }
.observations-table thead th:last-child { width:auto; }
.observations-table thead th button { font-size:11px; }
.column-unit { color:#abd7e8;font-size:9px; }
.sort-icon { color:#74b5d2; }
.observations-table tbody tr,.observations-table tbody tr:nth-child(even) { background:#fff;height:66px; }
.observations-table tbody tr:nth-child(odd) { background:#f7fbfe; }
.observations-table tbody tr:hover { background:#e9f7ff; }
.observations-table td { border-bottom:1px solid #e2edf3;padding:7px 6px; }
.observations-table td:first-child { padding-left:24px; }
.station-icon { width:32px;height:32px;flex-basis:32px;color:#2493be;background:#eaf7fc;border:1px solid #d4eaf4; }
.station-icon svg { width:16px;height:16px; }
.station-info strong { color:#143d55;font-size:12.6px; }
.station-info small { color:#7b9bad;font-size:10px; }
.value-pill { min-width:75px;border-radius:8px;padding:6px 6px 5px; }
.value-pill strong { font-size:16px; }
.value-pill small { font-family:'Source Sans 3',sans-serif;font-size:10px;color:inherit;opacity:.74; }
.value-missing { color:#b3c5d1; }
.band-0 { --band-bg:#e0f5eb;--band-text:#086b50;--band-border:#b5e6d2; }
.band-1 { --band-bg:#eaf5df;--band-text:#51762a;--band-border:#d0e7b6; }
.band-2 { --band-bg:#fff3d3;--band-text:#956200;--band-border:#f3dfa6; }
.band-3 { --band-bg:#ffe9d9;--band-text:#ab4c10;--band-border:#f2c7a8; }
.band-4 { --band-bg:#ffe2e6;--band-text:#b92f4b;--band-border:#f0b9c3; }
.band-5 { --band-bg:#f1e5fb;--band-text:#7a4197;--band-border:#dcc3ed; }
.band-co { --band-bg:#e7f1f7;--band-text:#436e89;--band-border:#ccdfeb; }
.observations-table tbody tr.region-row,.observations-table tbody tr.region-row:nth-child(even),.observations-table tbody tr.region-row:hover { background:#dff0f8;height:48px; }
.observations-table tbody tr.region-row td,.observations-table tbody tr.region-row td:first-child { padding:0 20px;border-top:1px solid #c6e3ef;border-bottom:1px solid #c6e3ef; }
.region-heading-inner { min-height:47px;border-left:3px solid #159fc7;padding-left:11px; }
.region-heading-title strong { color:#0d5174;font-size:13px; }
.region-heading-title span { display:none; }
.region-heading-inner > small { display:none; }
.legend-panel { display:block;margin:16px 0 26px;border:1px solid #d6e8f2;background:#fff;box-shadow:none;padding:0;border-radius:13px; }
.legend-panel summary { cursor:pointer;font-family:Nunito,sans-serif;color:#295d78;font-size:13px;font-weight:900;padding:15px 20px; }
.legend-panel[open] summary { border-bottom:1px solid #e1edf4; }
.legend-content { padding:15px 20px 19px; }
.legend-swatches { gap:8px; }
.swatch { height:38px;font-size:10px;border-radius:7px; }
.legend-content p { margin:12px 0 0;color:#728b9b;font-size:11px;line-height:1.5; }
.page-footer { margin:0 4px 26px;border-top:1px solid #ccdfeb;padding:18px 5px 7px;color:#658196; }
.page-footer .footer-top { justify-content:space-between;gap:10px;font-size:13px; }
.page-footer .footer-top b { color:#155676; }
.page-footer .footer-top span { color:#7f9aab; }
.page-footer p { font-size:11px;color:#718b9b;margin:8px 0 0; }
.page-footer a { display:inline-block;font-size:11px;color:#087aa9;text-decoration:underline;text-underline-offset:3px;margin-top:8px; }
.detail-backdrop { background:rgba(13,40,57,.54); }
.detail-sheet { background:#f7fbfe;color:#153e58;border-left:1px solid #cce3ef;box-shadow:-25px 0 70px rgba(13,50,76,.24); }
.detail-sheet h3 { color:#13415c; }
.detail-sub { color:#7093a7; }
.detail-reading { background:#fff;border-color:#d7e9f2; }
.detail-reading small { color:#7794a5; }
.detail-close { background:#eaf6fc;color:#216a8b;border-color:#c9e2ef; }
.detail-footnote { background:#eaf6fc;color:#577f94;border-color:#d3e8f1; }
.empty-state { color:#618197; }
.empty-state b { color:#1d4e69; }

/* Footer — Weatherdata Light */
.page-footer {
    margin: 16px 0 28px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #d3e5ef;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(20, 76, 112, 0.06);
}

/* Footer — final spacing */
.legend-panel {
    margin-bottom: 6px;
}

.page-footer {
    margin-top: 0;
    margin-bottom: 44px;
    background: #F1F3F5;
}

/* Region headings — Champagne Edition */
.observations-table tbody tr.region-row,
.observations-table tbody tr.region-row:nth-child(even),
.observations-table tbody tr.region-row:hover {
    background: #F5E6D3;
}

.observations-table tbody tr.region-row td,
.observations-table tbody tr.region-row td:first-child {
    border-top: 1px solid #E8C9A8;
    border-bottom: 1px solid #E8C9A8;
}

.region-heading-inner {
    border-left-color: #C98654;
}

.region-heading-title strong {
    color: #75492D;
}

/* Same appearance on mobile */
.mobile-region-heading {
    background: #F5E6D3;
    border-color: #E8C9A8;
}

/* Hero — Soft Champagne */
.hero {
    background: #FAF2F0;
    border-color: #E8DFE3;
}

.hero-photo {
    background-image:
        linear-gradient(
            90deg,
            rgba(245,238,239,0.96) 0%,
            rgba(250,242,240,0.84) 43%,
            rgba(253,240,235,0.06) 85%
        ),
        url('./hero-air-quality.webp');
}

@media (max-width:1100px) {
  .site-shell { width:calc(100% - 32px); }
  .page-overview { align-items:flex-start;flex-direction:column; }
  .overview-facts { width:100%;grid-template-columns:1fr 2fr; }
  .hero h1 { font-size:35px; }
}
@media (max-width:800px) {
  .site-shell { width:calc(100% - 22px);margin-top:12px; }
  .hero { height:220px;min-height:220px;border-radius:14px; }
  .hero-photo { background-position:59% 54%; }
  .hero-content { padding:37px 22px;width:100%; }
  .hero h1 { font-size:29px;max-width:550px; }
  .hero-brand { margin-top:23px; }
  .brand-logo { flex-basis:50px;width:50px;height:44px; }
  .hero-brand p { font-size:12px; }
  .hero-mark { top:12px;right:12px;font-size:10px; }
  .product-nav { margin:11px 0 23px; }
  .page-overview { gap:17px; }
  .overview-intro h2 { font-size:26px; }
  .overview-facts { grid-template-columns:1fr 1.5fr; }
  .fact-card { min-height:75px;padding:12px 14px; }
  .time-fact strong { font-size:13px; }
  .panel-heading { padding:19px 18px 15px; }
  .controls-row { gap:8px;padding:0 18px; }
  .pollutant-tabs { padding:15px 18px; }
  .mobile-stations { padding:11px;gap:8px; }
  .mobile-station { background:#fff;border:1px solid #d9e8f1;box-shadow:0 2px 11px rgba(24,82,119,.04); }
  .mobile-station-top strong { color:#164865; }
  .mobile-station-top small { color:#7f9cae; }
  .mobile-value label { color:#507c96; }
  .mobile-region-heading { display:block;background:#dff0f8;border:1px solid #cbe4ef; }
  .legend-swatches { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:530px) {
  .hero { height:205px;min-height:205px; }
  .hero-content { padding:33px 15px; }
  .hero-eyebrow { font-size:8px;letter-spacing:1.3px; }
  .hero-brand { gap:9px; }
  .hero h1 { font-size:23px; }
  .hero-brand p { font-size:11px;line-height:1.3; }
  .hero-mark { font-size:9px; }
  .nav-tab { padding:7px 8px;font-size:10px; }
  .overview-facts { grid-template-columns:1fr;gap:8px; }
  .fact-card { min-height:65px; }
  .fact-card strong { font-size:22px; }
  .time-fact strong { font-size:14px; }
  .overview-intro h2 { font-size:24px; }
  .overview-intro p { font-size:12.5px; }
  .mobile-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .legend-swatches { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

body {
    min-height: 100vh;
    display: flow-root;
}

/* Equal top and bottom spacing: 29px */
.page-footer {
    margin-bottom: 29px;
}

/* Mobile: equal spacing at 12px */
@media (max-width: 800px) {
    .page-footer {
        margin-bottom: 12px;
    }
}
