﻿:root{
  --bg:#f5f7fb;--panel:#fff;--ink:#172033;--muted:#667085;--line:#d9e1ee;--brand:#10b9c8;--brand-dark:#2563eb;--shadow:0 18px 40px rgba(15,35,70,.10);--radius:18px
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Roboto,Arial,sans-serif;line-height:1.5}.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}.site-header{background:linear-gradient(135deg,#10b9c8,#2563eb);color:#fff;padding:44px 0 36px}.site-header.compact{padding:28px 0}.header-grid{display:grid;grid-template-columns:1fr minmax(220px,320px);gap:24px;align-items:center}.eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;opacity:.85}.site-header h1{margin:0;font-size:clamp(2rem,4vw,3.5rem);line-height:1.05}.lead{margin:12px 0 0;max-width:760px;font-size:1.1rem;opacity:.92}.status-card{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.28);border-radius:var(--radius);padding:18px;backdrop-filter:blur(12px)}.toolbar{display:flex;gap:16px;flex-wrap:wrap;margin:24px 0}.toolbar label{display:grid;gap:6px;font-weight:700;color:#344054}.toolbar input,.toolbar select,.chart-head select{min-width:220px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 14px;color:var(--ink)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-bottom:24px}.station-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.station-card{padding:18px;display:grid;gap:14px}.station-card h2{margin:0;font-size:1.25rem}.station-card a{color:var(--ink);text-decoration:none}.station-card a:hover{color:var(--brand)}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.82rem;font-weight:800;background:var(--cat-bg,#6b7280);color:var(--cat-text,#fff)}.station-meta{color:var(--muted);font-size:.92rem}.mini-values{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mini-value{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fafcff}.mini-value strong{display:block;font-size:.82rem;color:var(--muted)}.mini-value span{font-size:1rem;font-weight:800}.panel{padding:22px;margin:0 0 24px}.panel h2{margin:0 0 16px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:820px}.data-table th,.data-table td{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:top}.data-table th{font-size:.9rem;color:#344054;background:#f8fafc}.data-table th span{display:block;font-weight:500;color:var(--muted);font-size:.75rem}.value-cell{border-radius:12px;padding:8px 10px;display:inline-block;min-width:86px;text-align:center;background:var(--cat-bg,#6b7280);color:var(--cat-text,#fff)}.value-cell small{display:block;font-size:.68rem;opacity:.8;margin-top:2px}.legend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.legend-item{border-radius:12px;background:var(--cat-bg);color:var(--cat-text);padding:14px;text-align:center}.footer{color:var(--muted);padding:8px 0 34px}.back-link{color:#fff;text-decoration:none;font-weight:800}.station-layout{margin-top:24px}.info-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.info-list div{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafcff}.info-list strong{display:block;color:var(--muted);font-size:.82rem}.measure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.measure-card{border-radius:14px;padding:16px;background:var(--cat-bg,#6b7280);color:var(--cat-text,#fff)}.measure-card strong{display:block;font-size:1rem}.measure-card .big{font-size:1.9rem;font-weight:900;line-height:1.1}.measure-card small{opacity:.82}.chart-head{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.simple-chart svg{width:100%;height:320px;display:block}.chart-axis{stroke:#d0d5dd;stroke-width:1}.chart-line{fill:none;stroke:currentColor;stroke-width:3}.chart-dot{fill:currentColor}.chart-label{font-size:12px;fill:#667085}.empty{padding:18px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);background:#fafcff}@media(max-width:760px){.header-grid{grid-template-columns:1fr}.mini-values{grid-template-columns:repeat(2,1fr)}.toolbar label,.toolbar input,.toolbar select{width:100%;min-width:0}.site-header{padding:34px 0 28px}}
.top-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.brand{font-weight:900;color:#fff;text-decoration:none;letter-spacing:.02em}.top-nav nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.top-nav nav a{color:#fff;text-decoration:none;font-weight:800;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);padding:9px 12px;border-radius:999px}.top-nav nav a:hover,.top-nav nav a.active{background:#fff;color:#2563eb}.muted{color:var(--muted);margin-top:-8px}.advice-table{width:100%;border-collapse:separate;border-spacing:0;min-width:860px}.advice-table th,.advice-table td{border-bottom:1px solid var(--line);padding:14px;text-align:left;vertical-align:top}.advice-table thead th{background:#f8fafc;color:#344054}.advice-table tbody th{width:180px;font-size:1rem}.advice-table tr:last-child th,.advice-table tr:last-child td{border-bottom:0}.aq-good th{border-left:8px solid #22c55e}.aq-acceptable th{border-left:8px solid #84cc16}.aq-moderate th{border-left:8px solid #facc15}.aq-polluted th{border-left:8px solid #f97316}.aq-very th{border-left:8px solid #ef4444}.aq-extreme th{border-left:8px solid #7f1d1d}.report-list{display:grid;gap:12px}.report-list a{display:block;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fafcff;color:var(--brand-dark);font-weight:800;text-decoration:none}.report-list a:hover{background:#eef6ff;border-color:#b9d6ff}.footer a{color:var(--brand-dark);font-weight:800}@media(max-width:760px){.top-nav{align-items:flex-start;flex-direction:column}.top-nav nav{justify-content:flex-start}.top-nav nav a{font-size:.9rem}}

/* Fix8: portal shell closer to original public site */
.portal-header{background:#ffffff;color:var(--ink);padding-top:18px;border-bottom:1px solid var(--line)}
.portal-header .top-nav{margin-bottom:16px}.portal-header .brand,.portal-header .top-nav nav a{color:var(--ink)}
.brand-logo{display:flex;align-items:center;gap:10px}.brand-logo img{max-height:58px;max-width:230px;object-fit:contain}.brand-logo span{display:none}.brand-fallback span{display:inline}
.portal-header .top-nav nav a{background:#f8fafc;border:1px solid var(--line);border-radius:6px;padding:10px 12px;font-size:.86rem;letter-spacing:.02em}.portal-header .top-nav nav a:hover,.portal-header .top-nav nav a.active{background:var(--brand-dark);color:#fff;border-color:var(--brand-dark)}
.hero-logo{padding:8px 0 12px;text-align:center}.hero-logo img{max-width:100%;height:auto;max-height:150px;object-fit:contain}.portal-header .header-grid,.portal-header .page-title{padding:20px 0 32px}.portal-header h1{color:#46505f;font-size:clamp(1.8rem,3vw,2.7rem)}.portal-header .lead,.portal-header .eyebrow{color:#667085}.portal-header .status-card{background:#f8fafc;border-color:var(--line);color:#344054;box-shadow:none}.portal-footer{background:#172033;color:#d0d5dd;margin-top:30px;padding:26px 0}.portal-footer .wrap{padding:0}.portal-footer a{color:#fff;text-decoration:none}.footer-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.footer-links a{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 10px}.footer-links a:hover{background:#fff;color:#172033}.contact-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:24px}.contact-form{display:grid;gap:12px}.contact-form label{display:grid;gap:6px;font-weight:800;color:#344054}.contact-form input,.contact-form textarea{border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:inherit}.contact-form button{border:0;border-radius:12px;background:var(--brand-dark);color:#fff;padding:12px 18px;font-weight:900;cursor:pointer}.contact-form button:hover{filter:brightness(.95)}.contact-box{border:1px solid var(--line);border-radius:14px;background:#fafcff;padding:18px;height:max-content}.contact-box code{background:#eef2f7;border-radius:6px;padding:2px 5px}.page-title .back-link{color:var(--brand-dark)}
@media(max-width:900px){.portal-header .top-nav{align-items:flex-start;flex-direction:column}.portal-header .top-nav nav{justify-content:flex-start}.contact-grid{grid-template-columns:1fr}.brand-logo img{max-width:200px}.portal-header .top-nav nav a{font-size:.78rem}}

/* Fix9: unified, cleaner portal header/footer */
.portal-shell{
  background:#fff;
  color:var(--ink);
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 28px rgba(15,35,70,.06);
}
.portal-topbar{
  background:#ffffff;
  border-bottom:1px solid #e7edf6;
}
.portal-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:82px;
}
.brand-mark{
  display:flex;
  align-items:center;
  gap:12px;
  color:#172033;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.02em;
  flex:0 0 auto;
}
.brand-mark-aqms{
  display:block;
  max-height:58px;
  max-width:320px;
  object-fit:contain;
}
.component-info-button{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:800;
  padding:0;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.component-info-button:hover{color:var(--brand)}
.param-chip[data-component-details]{
  border:0;
  cursor:pointer;
}
.param-chip[data-component-details]:hover{
  filter:brightness(.97);
  box-shadow:0 0 0 2px rgba(14,165,233,.16) inset;
}
.component-details-body{
  color:var(--ink);
  line-height:1.65;
}
.component-details-body .component-summary{
  margin-bottom:14px;
  color:var(--muted);
}
.component-details-body .component-richtext{
  border-top:1px solid var(--line);
  padding-top:14px;
}
.report-list a small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-weight:500;
}
.brand-mark span{display:none}.brand-mark.brand-fallback span{display:inline}
.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  flex-wrap:wrap;
}
.main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border-radius:8px;
  color:#344054;
  text-decoration:none;
  font-size:.83rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.035em;
  border:1px solid transparent;
}
.main-nav a:hover{
  background:#f1f7fb;
  border-color:#d8e7f2;
  color:#10b9c8;
}
.main-nav a.active{
  background:#10b9c8;
  border-color:#10b9c8;
  color:#fff;
}
.portal-identity{
  background:linear-gradient(180deg,#fbfdff 0%,#f6f9fd 100%);
  border-bottom:1px solid #e7edf6;
}
.portal-identity-inner{
  min-height:118px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 0;
}
.institution-logo{
  max-width:min(100%,760px);
  max-height:98px;
  object-fit:contain;
}
.portal-titlebar{
  background:linear-gradient(135deg,#f7fbff 0%,#edf7f5 100%);
}
.portal-title-grid{
  display:grid;
  grid-template-columns:1fr minmax(220px,310px);
  gap:22px;
  align-items:center;
  padding:24px 0 28px;
}
.portal-title-grid h1{
  margin:0;
  color:#283449;
  font-size:clamp(1.7rem,3vw,2.55rem);
  line-height:1.12;
  letter-spacing:-.025em;
}
.portal-title-grid .lead{
  color:#667085;
  opacity:1;
  margin-top:8px;
}
.portal-title-grid .eyebrow{
  color:#10b9c8;
  opacity:1;
  font-weight:900;
}
.main-content{margin-top:24px}
.portal-title-grid .status-card{
  background:#fff;
  color:#344054;
  border:1px solid #dfe8f2;
  box-shadow:0 10px 30px rgba(15,35,70,.08);
}
.portal-footer-clean{
  margin-top:34px;
  background:#f8fafc;
  border-top:1px solid var(--line);
  color:#667085;
  font-size:.92rem;
}
.footer-clean-inner{
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.footer-clean-inner p{margin:0}
.back-link-light{
  display:inline-flex;
  color:#10b9c8;
  text-decoration:none;
  font-weight:900;
  margin-bottom:10px;
}
.back-link-light:hover{text-decoration:underline}

/* Neutralize older portal/header/footer rules where pages still load shared CSS */
.portal-header,.site-header.portal-header{background:transparent;color:inherit;padding:0;border:0;box-shadow:none}
.portal-footer{display:none}

@media(max-width:980px){
  .portal-topbar-inner{align-items:flex-start;flex-direction:column;padding:14px 0;gap:12px}
  .main-nav{justify-content:flex-start;width:100%}
  .main-nav a{font-size:.78rem;min-height:38px;padding:8px 10px}
  .portal-title-grid{grid-template-columns:1fr}
  .portal-identity-inner{min-height:92px}
  .institution-logo{max-height:76px}
}
@media(max-width:620px){
  .main-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .main-nav a{justify-content:center;text-align:center;border-color:#e7edf6;background:#fff}
  .brand-mark-aqms{max-width:180px;max-height:50px}
  .portal-title-grid h1{font-size:1.55rem}
}

/* Fix10: original-style content for MreÅ¾a stanica */
.content-panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:clamp(20px,3vw,34px);
  margin:0 0 24px;
}
.prose-panel{
  font-size:1rem;
  color:#344054;
}
.prose-panel h2{
  margin:0 0 18px;
  color:#283449;
  font-size:clamp(1.45rem,2.4vw,2rem);
}
.prose-panel p{
  margin:0 0 16px;
  text-align:justify;
}
.prose-panel p:last-child{margin-bottom:0}
.prose-panel a{color:var(--brand-dark);font-weight:800;text-decoration:none}
.prose-panel a:hover{text-decoration:underline}
.station-picker-panel{
  text-align:center;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.station-picker-panel h2{
  margin:0 0 18px;
  color:#283449;
  font-size:1.35rem;
}
.station-picker-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  max-width:920px;
  margin:0 auto;
}
.station-picker-grid a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #dce8f4;
  border-radius:14px;
  color:#10b9c8;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(15,35,70,.06);
}
.station-picker-grid a:hover{
  background:#10b9c8;
  color:#fff;
  border-color:#10b9c8;
  transform:translateY(-1px);
}
@media(max-width:620px){
  .prose-panel p{text-align:left}
  .station-picker-grid{grid-template-columns:1fr}
}

/* Fix11: mobile optimization for header, logos and latest-values table */
.portal-topbar-inner{
  flex-wrap:wrap;
}
.brand-mark{
  min-width:0;
}
.brand-mark-aqms{
  height:auto;
}
.institution-logo{
  width:auto;
  height:auto;
}
.table-scroll{
  -webkit-overflow-scrolling:touch;
}
.data-table a{
  color:var(--brand-dark);
  text-decoration:none;
}
.data-table a:hover{text-decoration:underline}

@media(max-width:860px){
  .wrap{width:min(100% - 22px,1180px)}
  .portal-topbar-inner{
    min-height:auto;
    padding:10px 0 12px;
    gap:10px;
  }
  .brand-mark-aqms{
    max-width:154px;
    max-height:42px;
  }
  .main-nav{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    padding:2px 0 7px;
    scrollbar-width:thin;
  }
  .main-nav a{
    flex:0 0 auto;
    min-height:36px;
    padding:8px 10px;
    font-size:.72rem;
    white-space:nowrap;
    border-color:#e7edf6;
    background:#fff;
  }
  .portal-identity-inner{
    min-height:auto;
    padding:10px 0;
  }
  .institution-logo{
    max-width:100%;
    max-height:62px;
  }
  .portal-title-grid{
    padding:18px 0 20px;
    gap:12px;
  }
  .portal-title-grid h1{
    font-size:1.35rem;
    line-height:1.18;
  }
  .portal-title-grid .lead{
    font-size:.95rem;
  }
  .portal-title-grid .status-card{
    padding:12px 14px;
    font-size:.9rem;
  }
  .toolbar{
    margin:16px 0;
    gap:10px;
  }
  .cards{
    grid-template-columns:1fr;
    gap:12px;
  }
  .station-card,.panel,.content-panel{
    border-radius:14px;
  }
  .panel{
    padding:16px;
  }
  .panel h2{
    font-size:1.2rem;
  }
  .mini-values{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  /* Turn the latest-values table into stacked station cards on phones */
  .table-scroll{
    overflow:visible;
  }
  .data-table{
    min-width:0;
    width:100%;
    border-collapse:separate;
    border-spacing:0 12px;
  }
  .data-table thead{
    display:none;
  }
  .data-table tbody,
  .data-table tr,
  .data-table td{
    display:block;
    width:100%;
  }
  .data-table tr{
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 8px 22px rgba(15,35,70,.06);
    overflow:hidden;
  }
  .data-table td{
    border-bottom:1px solid #edf2f7;
    padding:10px 12px;
  }
  .data-table td:last-child{
    border-bottom:0;
  }
  .data-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:6px;
    color:#667085;
    font-size:.76rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .data-table td:first-child{
    background:#f8fafc;
  }
  .data-table td:first-child::before{
    display:none;
  }
  .value-cell{
    width:100%;
    min-width:0;
    text-align:left;
    display:block;
    padding:10px 12px;
  }
  .badge{
    max-width:100%;
  }
  .footer-clean-inner{
    padding:14px 0;
    font-size:.85rem;
  }
}

@media(max-width:480px){
  body{font-size:15px}
  .wrap{width:min(100% - 18px,1180px)}
  .brand-mark-aqms{
    max-width:138px;
    max-height:38px;
  }
  .institution-logo{
    max-height:48px;
  }
  .portal-title-grid h1{
    font-size:1.18rem;
  }
  .eyebrow{
    font-size:.68rem;
    letter-spacing:.1em;
  }
  .lead{font-size:.9rem}
  .main-content{margin-top:14px}
  .toolbar input,.toolbar select,.chart-head select{
    padding:10px 12px;
  }
  .station-card{
    padding:14px;
  }
  .mini-values{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .mini-value{
    padding:8px;
  }
  .content-panel{
    padding:16px;
  }
  .prose-panel p{
    text-align:left;
  }
  .station-picker-grid a{
    min-height:50px;
  }
}


/* Fix12: larger institutional logo, AQ categorization moved to homepage, same category colors */
.institution-logo{
  max-width:min(100%,920px);
  max-height:132px;
}
.portal-identity-inner{
  min-height:156px;
  padding:18px 0;
}
.section-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:14px;
}
.inline-eyebrow{
  color:#10b9c8;
  opacity:1;
  font-weight:900;
  margin-bottom:4px;
}
.section-title-row h2{
  margin-bottom:0;
}
.section-note{
  margin:6px 0 0;
  max-width:430px;
  text-align:right;
}
.aq-index-home{
  scroll-margin-top:18px;
}
.advice-table-colored tbody tr{
  background:linear-gradient(90deg, color-mix(in srgb, var(--cat-bg) 18%, #fff 82%), #fff 38%);
}
.advice-table-colored tbody th{
  border-left:0;
  background:var(--cat-bg);
  color:var(--cat-text);
  font-weight:900;
}
.advice-table-colored .aq-index-label{
  display:inline-block;
  color:var(--cat-text);
}
.advice-table-colored tbody td{
  background:rgba(255,255,255,.78);
}
.advice-table-colored tbody tr:hover td{
  background:rgba(255,255,255,.62);
}

@supports not (background: color-mix(in srgb, #000 10%, #fff 90%)){
  .advice-table-colored tbody tr{background:#fff}
}

@media(max-width:980px){
  .institution-logo{max-height:104px;max-width:100%}
  .portal-identity-inner{min-height:122px;padding:14px 0}
}
@media(max-width:700px){
  .institution-logo{max-height:88px;max-width:100%}
  .portal-identity-inner{min-height:104px;padding:12px 0}
  .section-title-row{display:block}
  .section-note{text-align:left;max-width:none;margin-top:8px}
  .advice-table{min-width:0;width:100%}
  .advice-table thead{display:none}
  .advice-table tbody,.advice-table tr,.advice-table th,.advice-table td{display:block;width:100%}
  .advice-table-colored tbody tr{
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    margin-bottom:12px;
    box-shadow:0 8px 22px rgba(15,35,70,.06);
  }
  .advice-table-colored tbody th{
    padding:12px 14px;
    border-bottom:0;
  }
  .advice-table-colored tbody td{
    padding:12px 14px;
  }
  .advice-table-colored tbody td::before{
    display:block;
    margin-bottom:5px;
    color:#667085;
    font-size:.75rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .advice-table-colored tbody td:nth-child(2)::before{content:'OpÅ¡ta populacija'}
  .advice-table-colored tbody td:nth-child(3)::before{content:'Osetljiva populacija'}
}
@media(max-width:480px){
  .institution-logo{max-height:74px}
  .portal-identity-inner{min-height:88px}
}

/* Fix13: homepage pollutant chart and interactive station disposition */
.chart-toolbar{
  display:flex;
  justify-content:flex-start;
  gap:14px;
  margin:0 0 14px;
  flex-wrap:wrap;
}
.chart-toolbar label{
  display:grid;
  gap:6px;
  color:#344054;
  font-weight:900;
}
.chart-toolbar select{
  min-width:230px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:12px 14px;
  color:var(--ink);
  font:inherit;
}
.pollutant-chart{
  min-height:280px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  padding:12px;
  overflow:hidden;
}
.pollutant-chart svg{
  width:100%;
  height:auto;
  display:block;
}
.chart-grid{
  stroke:#edf2f7;
  stroke-width:1;
}
.pollutant-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:12px;
  color:#344054;
  font-size:.9rem;
}
.pollutant-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
}
.pollutant-legend i{
  width:12px;
  height:12px;
  border-radius:999px;
  display:inline-block;
}
.map-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,330px);
  gap:18px;
  align-items:stretch;
}
.station-map{
  min-height:390px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#eef7fb;
  overflow:hidden;
  position:relative;
}
.map-canvas{
  position:relative;
  min-height:390px;
  height:100%;
  background:
    radial-gradient(circle at 28% 25%, rgba(15,118,110,.18), transparent 24%),
    radial-gradient(circle at 72% 65%, rgba(29,78,216,.12), transparent 26%),
    linear-gradient(135deg,#f8fcff 0%,#e7f4ef 100%);
}
.map-canvas::before{
  content:'';
  position:absolute;
  inset:18px;
  border:1px dashed rgba(15,35,70,.22);
  border-radius:24px;
}
.map-canvas::after{
  content:'';
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(15,35,70,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(15,35,70,.055) 1px,transparent 1px);
  background-size:42px 42px;
  pointer-events:none;
}
.map-bg-label{
  position:absolute;
  color:#64748b;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
  z-index:1;
  opacity:.72;
}
.map-bg-label.north{top:14px;left:50%;transform:translateX(-50%)}
.map-bg-label.south{bottom:14px;left:50%;transform:translateX(-50%)}
.map-bg-label.west{left:16px;top:50%;transform:translateY(-50%)}
.map-bg-label.east{right:16px;top:50%;transform:translateY(-50%)}
.map-marker{
  position:absolute;
  z-index:3;
  transform:translate(-50%,-50%);
  width:22px;
  height:22px;
  border-radius:999px;
  border:3px solid #fff;
  background:var(--cat-bg,#6b7280);
  color:var(--cat-text,#fff);
  box-shadow:0 8px 20px rgba(15,35,70,.24);
  cursor:pointer;
}
.map-marker::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:-9px;
  transform:translateX(-50%);
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:9px solid var(--cat-bg,#6b7280);
}
.map-marker span{
  position:absolute;
  left:50%;
  top:-32px;
  transform:translateX(-50%);
  white-space:nowrap;
  background:#fff;
  color:#283449;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 8px;
  font-size:.72rem;
  font-weight:900;
  opacity:0;
  pointer-events:none;
  box-shadow:0 8px 20px rgba(15,35,70,.12);
}
.map-marker:hover span,.map-marker.active span{
  opacity:1;
}
.map-marker.active{
  outline:4px solid rgba(15,118,110,.2);
  width:28px;
  height:28px;
}
.map-info{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:18px;
  box-shadow:0 8px 22px rgba(15,35,70,.06);
}
.map-info h3{
  margin:12px 0 6px;
  color:#283449;
}
.map-info p{
  margin:0 0 10px;
}
.button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:6px;
  padding:10px 14px;
  border-radius:12px;
  background:#10b9c8;
  color:#fff;
  text-decoration:none;
  font-weight:900;
}
.button-link:hover{filter:brightness(.95)}
@media(max-width:820px){
  .map-layout{grid-template-columns:1fr}
  .station-map,.map-canvas{min-height:330px}
}
@media(max-width:560px){
  .chart-toolbar label,.chart-toolbar select{width:100%;min-width:0}
  .pollutant-chart{min-height:240px;padding:8px;border-radius:14px}
  .pollutant-legend{font-size:.78rem;gap:7px 10px}
  .station-map,.map-canvas{min-height:300px}
  .map-marker span{display:none}
  .map-info{padding:14px}
}

/* Fix14: Raven/Leaflet original map embed */
.raven-map-card {
  border: 1px solid var(--border, #d7dee8);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  min-height: 520px;
}
.raven-root,
.raven-map-card #root {
  min-height: 520px;
  width: 100%;
}
.raven-map-card #raven-map .map {
  height: 560px;
  min-height: 520px;
  width: 100%;
}
.raven-map-card #raven-view-container {
  height: 560px;
  min-height: 520px;
  width: 100%;
  padding-left: 0;
}
.raven-map-card .leaflet-container {
  font-family: inherit;
}
@media (max-width: 720px) {
  .raven-map-card,
  .raven-root,
  .raven-map-card #root,
  .raven-map-card #raven-map .map,
  .raven-map-card #raven-view-container {
    min-height: 430px;
    height: 430px;
  }
  .raven-map-card #raven-map .selector-position {
    left: 3.2rem;
  }
}


/* Fix15: Raven map alignment with AQMS public colors and simpler UI */
.raven-map-card #raven-map .legend-container,
.raven-map-card #raven-map .legend-details-container {
  display: none !important;
  visibility: hidden !important;
}
.raven-map-card #raven-map .good { background-color: #66ffff !important; color: #111827 !important; }
.raven-map-card #raven-map .fair { background-color: #66cc99 !important; color: #111827 !important; }
.raven-map-card #raven-map .mode { background-color: #ffff33 !important; color: #111827 !important; }
.raven-map-card #raven-map .poor { background-color: #ff6666 !important; color: #111827 !important; }
.raven-map-card #raven-map .very { background-color: #990033 !important; color: #ffffff !important; }
.raven-map-card #raven-map .extr { background-color: #663399 !important; color: #ffffff !important; }
.raven-map-card #raven-map .circle-with-txt {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
}
.raven-map-card #raven-map .selector-position {
  left: 1rem;
}
@media (max-width: 720px) {
  .raven-map-card #raven-map .selector-position {
    left: .6rem;
    top: .6rem;
  }
}

/* Fix23: station network cards display only parameters that exist for each station */
.station-network-panel{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.station-network-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
.network-station-card{
  overflow:hidden;
  background:#fff;
  border:1px solid #dce8f4;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(15,35,70,.07);
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.network-station-image{
  display:block;
  position:relative;
  height:168px;
  background:linear-gradient(135deg,#eef7f7,#f8fbff);
  overflow:hidden;
}
.network-station-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s ease;
}
.network-station-card:hover .network-station-image img{
  transform:scale(1.035);
}
.network-station-image.image-missing::after{
  content:'Slika stanice nije dostupna';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  color:#667085;
  font-weight:800;
  text-align:center;
}
.network-station-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.network-station-body h3{
  margin:0;
  font-size:1.18rem;
  color:#283449;
}
.network-station-body h3 a{
  color:inherit;
  text-decoration:none;
}
.network-station-body h3 a:hover{
  color:var(--brand-dark);
  text-decoration:underline;
}
.station-location,
.station-classification{
  margin:0;
  color:#667085;
  font-size:.92rem;
}
.station-param-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:2px;
}
.param-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#e9f8f6;
  color:#10b9c8;
  border:1px solid #c7eee8;
  font-weight:900;
  font-size:.82rem;
  line-height:1;
}
.param-chip-muted{
  background:#f2f4f7;
  color:#667085;
  border-color:#e4e7ec;
}
.station-detail-link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:12px;
  background:#10b9c8;
  color:#fff !important;
  font-weight:900;
  text-decoration:none !important;
}
.station-detail-link:hover{
  background:#2563eb;
}
@media(max-width:700px){
  .station-network-grid{grid-template-columns:1fr;gap:14px}
  .network-station-image{height:190px}
}

/* Fix24: mreÅ¾a first, unified info block, station profile page */
.main-content > .station-network-panel:first-child{margin-top:0}.network-info-block{margin-top:22px}.station-network-panel .section-note{display:none}.station-param-list:empty{display:none}.station-profile-panel{overflow:hidden}.station-profile-grid{display:grid;grid-template-columns:minmax(260px,420px) minmax(0,1fr);gap:24px;align-items:start}.station-profile-image{margin:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#f3f6fb;min-height:240px;display:grid;place-items:center}.station-profile-image img{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}.station-profile-image.image-missing::after{content:'Slika stanice nije dostupna';color:var(--muted);font-weight:800;padding:28px;text-align:center}.station-profile-copy h2{margin:0 0 12px;font-size:clamp(1.6rem,3vw,2.35rem)}.station-description{font-size:1.02rem;color:#344054}.station-notice{margin-top:14px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:14px;padding:12px 14px}.station-notice p{margin:.25rem 0}.station-info-list{margin-top:20px}.back-link-light{color:var(--brand-dark);font-weight:850;text-decoration:none}.back-link-light:hover{text-decoration:underline}@media(max-width:820px){.station-profile-grid{grid-template-columns:1fr}.station-profile-image{min-height:190px}.station-profile-image img{max-height:280px}}


/* Fix25: latest-values states and partial status badges */
.value-cell-empty{
  background:#eef2f7;
  color:#667085;
  border:1px solid #d0d5dd;
}
.value-cell-unavailable{
  background:#fafafa;
  color:#b8c0cc;
  border:1px solid #edf0f4;
}
.badge-status{
  background:var(--cat-bg,#e5e7eb);
  color:var(--cat-text,#344054);
}
.badge-status-partial{
  position:relative;
  color:#344054;
  box-shadow:inset 0 0 0 999px rgba(255,255,255,.48);
  border:1px solid rgba(52,64,84,.18);
}
.badge-status-partial::after{
  content:'nepotpuno';
  margin-left:6px;
  font-size:.68rem;
  font-weight:800;
  opacity:.78;
}
@media(max-width:760px){
  .badge-status-partial::after{content:'nepot.'}
}

/* Fix26: explanatory note for full vs incomplete AQ index coloring */
.aq-index-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.55;
    font-size: 0.95rem;
}
.aq-index-note strong {
    color: #0f172a;
}
@media (max-width: 640px) {
    .aq-index-note {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Fix31: AQI shared modal, cleaner status badge, advanced charts, exceedances */
.link-button,
.primary-soft-button{
  appearance:none;
  border:0;
  cursor:pointer;
  font:inherit;
  font-weight:850;
  border-radius:999px;
  padding:10px 14px;
}
.link-button{
  color:var(--brand-dark,#10b9c8);
  background:#eefcf8;
  border:1px solid #c7eee8;
}
.link-button:hover{background:#def7ee}
.primary-soft-button{
  color:#fff;
  background:#10b9c8;
  box-shadow:0 8px 18px rgba(15,118,110,.18);
}
.primary-soft-button:hover{background:#2563eb}
.aq-index-compact{background:linear-gradient(180deg,#ffffff,#f8fffd)}
body.modal-open{overflow:hidden}
.aqi-modal[aria-hidden="true"]{display:none}
.aqi-modal[aria-hidden="false"]{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px}
.aqi-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}
.aqi-modal-panel{position:relative;z-index:1;width:min(1040px,100%);max-height:min(88vh,900px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 30px 80px rgba(15,23,42,.35);padding:26px;border:1px solid rgba(255,255,255,.4)}
.aqi-modal-panel h2{margin:0 0 8px}.aqi-modal-panel h3{margin:24px 0 12px}.aqi-modal-close{position:sticky;top:0;float:right;display:grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#111827;font-size:28px;line-height:1;cursor:pointer;z-index:2}.aqi-modal-close:hover{background:#f8fafc}.aqi-bands-table{width:100%;border-collapse:collapse;min-width:780px}.aqi-bands-table th,.aqi-bands-table td{padding:10px;border:1px solid #e5e7eb;text-align:center}.aqi-bands-table thead th:not(:first-child),.aqi-bands-table tbody td{background:var(--cat-bg);color:var(--cat-text);font-weight:800}.aqi-bands-table tbody th{text-align:left;background:#f8fafc;color:#344054;white-space:nowrap}.badge-status-partial::after{content:none!important}.badge-status-partial{box-shadow:inset 0 0 0 999px rgba(255,255,255,.50);}
.success-empty{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.exceedance-table{min-width:760px}.exceedance-table a{font-weight:850;color:var(--brand-dark,#10b9c8);text-decoration:none}.exceedance-table a:hover{text-decoration:underline}.exceedance-flag{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;font-weight:900;font-size:.82rem}.chart-toolbar-advanced{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end}.chart-title{font-size:16px;fill:#1f2937;font-weight:800}.pollutant-chart{overflow:auto}.pollutant-chart svg{min-width:760px}.raven-map-card .leaflet-popup h2 a{color:#10b9c8!important;text-decoration:none!important}.raven-map-card .leaflet-popup h2 a:hover{text-decoration:underline!important}@media(max-width:720px){.aqi-modal-panel{padding:18px;border-radius:18px}.section-title-row{align-items:flex-start}.link-button,.primary-soft-button{width:100%;justify-content:center}.pollutant-chart svg{min-width:680px}}

/* fix32: index chart bars */
.chart-help {
  font-size: 12px;
  fill: #64748b;
}
.aqi-bar {
  shape-rendering: crispEdges;
}
.chart-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 6px;
}
.station-legend {
  color: #475569;
  font-size: 12px;
}
.legend-station::before {
  content: 'â€¢';
  margin-right: 5px;
  color: #64748b;
}

/* Fix33: station 30-day heatmap modal and concentration-only chart */
.status-history-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:6px 9px;
  border:1px solid #d7e2ee;
  border-radius:999px;
  background:#fff;
  color:#10b9c8;
  font-weight:900;
  font-size:.74rem;
  line-height:1.2;
  cursor:pointer;
  max-width:190px;
}
.status-history-btn:hover{background:#f0fdfa;border-color:#99f6e4}
.heatmap-modal-panel{width:min(980px,100%)}
.station-heatmap-content{margin-top:16px}
.heatmap-summary{
  display:grid;
  gap:4px;
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#f8fafc;
  color:#344054;
}
.heatmap-summary strong{font-size:1.05rem;color:#1f2937}
.heatmap-weekdays,
.station-heatmap-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}
.heatmap-weekdays{margin-bottom:8px;color:#667085;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em;text-align:center}
.heatmap-cell{
  min-height:62px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  background:var(--cat-bg,#6b7280);
  color:var(--cat-text,#fff);
  padding:8px 6px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:4px;
  cursor:help;
  box-shadow:0 8px 18px rgba(15,23,42,.07);
}
.heatmap-cell span{font-size:.76rem;font-weight:900;opacity:.86}
.heatmap-cell strong{font-size:.78rem;text-align:center;line-height:1.1}
.heatmap-cell-empty{background:#eef2f7;color:#64748b;border-style:dashed;box-shadow:none}
.heatmap-legend-inline{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:16px;
  color:#344054;
  font-size:.86rem;
  font-weight:850;
}
.heatmap-legend-inline span{display:inline-flex;align-items:center;gap:6px}
.heatmap-legend-inline i{width:13px;height:13px;border-radius:999px;display:inline-block;border:1px solid rgba(15,23,42,.15)}
@media(max-width:720px){
  .status-history-btn{max-width:none;width:100%;font-size:.72rem}
  .heatmap-weekdays,.station-heatmap-grid{gap:5px}
  .heatmap-cell{min-height:54px;border-radius:10px;padding:6px 3px}
  .heatmap-cell strong{font-size:.68rem}.heatmap-cell span{font-size:.68rem}
}

/* Fix34: ApexCharts heatmap modal */
.apex-heatmap-chart{
  min-height:300px;
  margin-top:10px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  padding:10px 10px 2px;
  overflow:hidden;
}
.apex-heatmap-chart .apexcharts-canvas{
  margin:0 auto;
}
.apex-heatmap-chart .apexcharts-heatmap-rect{
  stroke:rgba(15,23,42,.16) !important;
  stroke-width:1.5px;
}
.aqms-apex-tooltip{
  padding:10px 12px;
  display:grid;
  gap:4px;
  font-family:inherit;
  color:#111827;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 12px 30px rgba(15,23,42,.16);
  border-radius:12px;
  min-width:220px;
}
.aqms-apex-tooltip strong{
  font-weight:950;
}
.heatmap-summary + .apex-heatmap-chart{
  margin-top:12px;
}
@media(max-width:720px){
  .apex-heatmap-chart{
    min-height:260px;
    padding:4px 0 0;
    border-radius:14px;
  }
  .aqms-apex-tooltip{
    min-width:180px;
    max-width:260px;
    font-size:.82rem;
  }
}

/* Fix35: hourly ApexCharts heatmap */
.apex-heatmap-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  padding:10px 10px 2px;
}
.apex-heatmap-scroll .apex-heatmap-chart{
  border:0;
  border-radius:0;
  padding:0;
  margin:0;
  min-height:440px;
  overflow:visible;
}
.apex-heatmap-chart-hourly .apexcharts-heatmap-rect{
  stroke:rgba(15,23,42,.18) !important;
  stroke-width:1px;
}
.apex-heatmap-chart[aria-busy="true"]{
  display:grid;
  place-items:center;
}
@media(max-width:720px){
  .apex-heatmap-scroll{
    margin-left:-2px;
    margin-right:-2px;
    padding:8px 6px 0;
    border-radius:14px;
  }
  .apex-heatmap-scroll .apex-heatmap-chart{
    min-height:420px;
  }
}

/* Fix36: micro hourly heatmap */
.heatmap-modal-panel{width:min(760px,100%)}
.heatmap-summary-compact{
  margin-bottom:8px;
  padding:10px 12px;
  border-radius:12px;
}
.heatmap-summary-compact strong{font-size:.96rem}
.heatmap-summary-compact span{font-size:.82rem}
.apex-heatmap-scroll-compact{
  display:inline-block;
  max-width:100%;
  overflow-x:auto;
  padding:8px;
  border-radius:12px;
}
.apex-heatmap-scroll-compact .apex-heatmap-chart{
  min-height:190px;
  width:auto;
}
.apex-heatmap-chart-micro .apexcharts-canvas,
.apex-heatmap-chart-micro .apexcharts-svg{
  overflow:visible;
}
.apex-heatmap-chart-micro .apexcharts-heatmap-rect{
  stroke:rgba(255,255,255,.82) !important;
  stroke-width:.7px !important;
}
.aqms-apex-tooltip-date-only{
  min-width:auto;
  padding:5px 7px;
  border-radius:8px;
  font-size:11px;
  line-height:1.1;
  box-shadow:0 8px 18px rgba(15,23,42,.14);
}
.heatmap-legend-inline-compact{
  margin-top:8px;
  gap:5px 10px;
  font-size:.72rem;
}
.heatmap-legend-inline-compact i{
  width:8px;
  height:8px;
}
@media(max-width:720px){
  .heatmap-modal-panel{width:min(96vw,100%)}
  .apex-heatmap-scroll-compact{padding:6px;}
  .apex-heatmap-scroll-compact .apex-heatmap-chart{min-height:185px;}
  .heatmap-legend-inline-compact{font-size:.68rem;}
}

/* Fix37: inline micro heatmap in status column */
.status-heatmap-mini{
  display:inline-grid;
  gap:4px;
  margin-top:7px;
  padding:6px;
  border:1px solid #d7e2ee;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  color:#344054;
  width:max-content;
  max-width:172px;
  text-align:left;
  vertical-align:top;
}
.status-heatmap-mini:hover{
  border-color:#99f6e4;
  background:#f8fffd;
}
.status-heatmap-mini-title{
  font-size:.64rem;
  line-height:1;
  font-weight:950;
  color:#10b9c8;
  letter-spacing:.01em;
}
.status-heatmap-mini-grid{
  display:grid;
  grid-template-columns:repeat(24,4px);
  grid-template-rows:repeat(30,4px);
  gap:1px;
  width:119px;
  height:149px;
  align-items:start;
  justify-items:start;
}
.status-heatmap-dot{
  display:block;
  width:4px;
  height:4px;
  border-radius:1px;
  background:var(--hm-color,#e5e7eb);
}
.status-heatmap-loading,
.status-heatmap-empty{
  display:grid;
  place-items:center;
  width:119px;
  height:32px;
  font-size:.68rem;
  color:#64748b;
  background:#f8fafc;
  border-radius:8px;
}
@media(max-width:900px){
  .status-heatmap-mini{max-width:100%;}
  .status-heatmap-mini-grid{grid-template-columns:repeat(24,3px);grid-template-rows:repeat(30,3px);width:95px;height:119px;}
  .status-heatmap-dot{width:3px;height:3px;}
  .status-heatmap-loading,.status-heatmap-empty{width:95px;}
}

/* Fix38: collapsible pollutant heatmaps in latest hourly table */
.status-heatmap-mini{
  cursor:default;
}
.status-heatmap-mini:hover{
  border-color:#d7e2ee;
  background:#fff;
}
.pollutant-heatmap-toggle{
  margin-top:7px;
  border:1px solid #cce7e2;
  background:#f8fffd;
  color:#10b9c8;
  border-radius:999px;
  padding:5px 8px;
  font-size:.68rem;
  line-height:1;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.pollutant-heatmap-toggle:hover{
  background:#10b9c8;
  color:#fff;
  border-color:#10b9c8;
}
.pollutant-heatmap-details-row{
  display:none;
}
.pollutant-heatmap-details-row.is-open{
  display:table-row;
}
.pollutant-heatmap-details-row > td{
  background:#f8fafc;
  border-top:0 !important;
  padding:10px 14px 16px !important;
}
.pollutant-heatmap-panel{
  border:1px solid #e3ebf4;
  border-radius:14px;
  background:#fff;
  padding:12px;
}
.pollutant-heatmap-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.pollutant-heatmap-panel-head strong{
  color:#283449;
  font-weight:950;
}
.pollutant-heatmap-panel-head span{
  color:#64748b;
  font-size:.78rem;
  max-width:680px;
}
.pollutant-heatmap-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
}
.pollutant-heatmap-card{
  border:1px solid #e5edf6;
  border-radius:12px;
  background:#fff;
  padding:8px;
  min-width:0;
}
.pollutant-heatmap-card-muted{
  background:#fbfcfe;
}
.pollutant-heatmap-card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
  color:#344054;
}
.pollutant-heatmap-card-title strong{
  font-size:.82rem;
  font-weight:950;
}
.pollutant-heatmap-card-title span{
  color:#64748b;
  font-size:.68rem;
  font-weight:800;
}
.pollutant-heatmap-mini-grid{
  display:grid;
  grid-template-columns:repeat(24,4px);
  grid-template-rows:repeat(30,4px);
  gap:1px;
  width:119px;
  height:149px;
  align-items:start;
  justify-items:start;
}
.pollutant-heatmap-mini-grid .status-heatmap-loading,
.pollutant-heatmap-mini-grid .status-heatmap-empty{
  width:149px;
}
.pollutant-heatmap-empty{
  color:#64748b;
  font-size:.86rem;
  background:#f8fafc;
  border-radius:10px;
  padding:12px;
}
@media(max-width:900px){
  .pollutant-heatmap-panel-head{display:block;}
  .pollutant-heatmap-panel-head span{display:block;margin-top:4px;}
  .pollutant-heatmap-grid{grid-template-columns:1fr 1fr;}
  .pollutant-heatmap-mini-grid{grid-template-columns:repeat(24,3px);grid-template-rows:repeat(30,3px);width:95px;height:119px;}
  .pollutant-heatmap-mini-grid .status-heatmap-dot{width:3px;height:3px;}
  .pollutant-heatmap-mini-grid .status-heatmap-loading,
  .pollutant-heatmap-mini-grid .status-heatmap-empty{width:95px;}
}
@media(max-width:620px){
  .pollutant-heatmap-grid{grid-template-columns:1fr;}
  .pollutant-heatmap-toggle{white-space:normal;}
}

/* Fix39: status heatmap moved into collapsible details panel */
.pollutant-heatmap-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
}
.status-heatmap-side-card{
  border:2px solid #cce7e2;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fffd 0%,#ffffff 100%);
  padding:10px;
  min-width:176px;
  box-shadow:0 12px 26px rgba(15,118,110,.08);
}
.status-heatmap-side-title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
  margin-bottom:7px;
  color:#10b9c8;
}
.status-heatmap-side-title strong{
  font-size:.86rem;
  font-weight:950;
}
.status-heatmap-side-title span{
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
}
.status-heatmap-mini-details{
  margin-top:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.status-heatmap-mini-details:hover{
  border-color:transparent;
  background:transparent;
}
@media(max-width:1040px){
  .pollutant-heatmap-content{grid-template-columns:1fr;}
  .status-heatmap-side-card{justify-self:start;}
}
@media(max-width:620px){
  .status-heatmap-side-card{width:100%;min-width:0;}
}

/* Fix40: align collapsible heatmaps with latest-values table columns */
#latestTable{
  table-layout:fixed;
  min-width:1120px;
}
#latestTable th:first-child,
#latestTable td:first-child{
  width:20%;
}
#latestTable th:nth-child(2),
#latestTable td:nth-child(2),
#latestTable th:nth-child(3),
#latestTable td:nth-child(3),
#latestTable th:nth-child(4),
#latestTable td:nth-child(4),
#latestTable th:nth-child(5),
#latestTable td:nth-child(5),
#latestTable th:nth-child(6),
#latestTable td:nth-child(6){
  width:12.5%;
}
#latestTable th:nth-child(7),
#latestTable td:nth-child(7){
  width:17.5%;
}
.pollutant-heatmap-panel-aligned{
  padding:10px;
}
.pollutant-heatmap-table-grid{
  display:grid;
  grid-template-columns:20% repeat(5,12.5%) 17.5%;
  gap:0;
  align-items:start;
  width:100%;
}
.pollutant-heatmap-station-slot,
.pollutant-heatmap-slot,
.status-heatmap-side-card-aligned{
  min-width:0;
  padding:0 6px;
}
.pollutant-heatmap-row-note{
  min-height:100%;
  display:grid;
  align-content:start;
  gap:4px;
  color:#344054;
  font-size:.78rem;
  padding:8px 4px;
}
.pollutant-heatmap-row-note strong{
  font-size:.86rem;
  font-weight:950;
  color:#283449;
}
.pollutant-heatmap-row-note span{
  color:#64748b;
  line-height:1.25;
}
.pollutant-heatmap-slot-empty{
  min-height:124px;
  border-left:1px dashed #edf2f7;
  border-right:1px dashed #edf2f7;
  opacity:.45;
}
.pollutant-heatmap-table-grid .pollutant-heatmap-card{
  width:100%;
  padding:7px;
}
.pollutant-heatmap-table-grid .pollutant-heatmap-card-title{
  margin-bottom:5px;
}
.pollutant-heatmap-table-grid .pollutant-heatmap-mini-grid,
.pollutant-heatmap-table-grid .status-heatmap-mini-grid{
  grid-template-columns:repeat(24,3px);
  grid-template-rows:repeat(30,3px);
  width:95px;
  height:119px;
  max-width:100%;
}
.pollutant-heatmap-table-grid .status-heatmap-dot{
  width:3px;
  height:3px;
}
.pollutant-heatmap-table-grid .pollutant-heatmap-mini-grid .status-heatmap-loading,
.pollutant-heatmap-table-grid .pollutant-heatmap-mini-grid .status-heatmap-empty,
.pollutant-heatmap-table-grid .status-heatmap-loading,
.pollutant-heatmap-table-grid .status-heatmap-empty{
  width:119px;
  max-width:100%;
}
.status-heatmap-side-card-aligned{
  min-width:0;
  width:100%;
}
.status-heatmap-side-card-aligned .status-heatmap-side-title{
  display:block;
  margin-bottom:5px;
}
.status-heatmap-side-card-aligned .status-heatmap-side-title span{
  display:block;
  margin-top:1px;
}
@media(max-width:1040px){
  #latestTable{min-width:1040px;}
  .pollutant-heatmap-table-grid .pollutant-heatmap-mini-grid,
  .pollutant-heatmap-table-grid .status-heatmap-mini-grid{
    grid-template-columns:repeat(24,2.5px);
    grid-template-rows:repeat(30,2.5px);
    width:83px;
    height:104px;
  }
  .pollutant-heatmap-table-grid .status-heatmap-dot{width:2.5px;height:2.5px;}
}
@media(max-width:700px){
  #latestTable{min-width:0;table-layout:auto;}
  .pollutant-heatmap-details-row{
    display:none !important;
  }
  .pollutant-heatmap-details-row.is-open{
    display:block !important;
  }
  .pollutant-heatmap-details-row > td{
    display:block;
    width:100%;
  }
  .pollutant-heatmap-table-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .pollutant-heatmap-station-slot,
  .pollutant-heatmap-slot,
  .status-heatmap-side-card-aligned{
    padding:0;
  }
  .pollutant-heatmap-slot-empty{
    display:none;
  }
  .pollutant-heatmap-table-grid .pollutant-heatmap-mini-grid,
  .pollutant-heatmap-table-grid .status-heatmap-mini-grid{
    grid-template-columns:repeat(24,3px);
    grid-template-rows:repeat(30,3px);
    width:95px;
    height:119px;
  }
  .pollutant-heatmap-table-grid .status-heatmap-dot{width:3px;height:3px;}
}

/* Fix42: heatmap layer toggled directly inside latest hourly table cells */
.latest-heatmap-master-toggle{
  white-space:nowrap;
}
#latestTable .latest-cell-heatmap{
  display:none;
  margin:7px auto 0;
  grid-template-columns:repeat(24,3px);
  grid-template-rows:repeat(30,3px);
  gap:1px;
  width:95px;
  height:119px;
  padding:4px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}
#latestTable.latest-heatmaps-enabled .latest-cell-heatmap{
  display:grid;
}
#latestTable .latest-status-heatmap{
  border-color:#d7e2ee;
  background:#fbfdff;
}
#latestTable .latest-cell-heatmap.status-heatmap-ready{
  place-content:start;
}
#latestTable .latest-cell-heatmap .status-heatmap-dot{
  width:3px;
  height:3px;
  border-radius:1px;
}
#latestTable .latest-cell-heatmap .status-heatmap-loading,
#latestTable .latest-cell-heatmap .status-heatmap-empty{
  width:84px;
  height:24px;
  font-size:.62rem;
  border-radius:6px;
}
#latestTable.latest-heatmaps-enabled .value-cell{
  display:block;
  margin-inline:auto;
}
#latestTable.latest-heatmaps-enabled td{
  text-align:center;
}
#latestTable.latest-heatmaps-enabled td:first-child{
  text-align:left;
}
.pollutant-heatmap-toggle,
.pollutant-heatmap-details-row{
  display:none!important;
}
@media(max-width:700px){
  #latestTable.latest-heatmaps-enabled .latest-cell-heatmap{
    margin-left:0;
    margin-right:0;
    grid-template-columns:repeat(24,2.5px);
    grid-template-rows:repeat(30,2.5px);
    width:83px;
    height:103px;
  }
  #latestTable.latest-heatmaps-enabled td{
    text-align:left;
  }
  #latestTable .latest-cell-heatmap .status-heatmap-dot{
    width:2.5px;
    height:2.5px;
  }
}

/* Fix43: heatmap only on station.php measure cards, not in the main latest table */
#latestTable .latest-cell-heatmap,
.latest-heatmap-master-toggle{display:none!important;}

.station-measure-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:stretch;}
.station-measure-card{display:flex;flex-direction:column;gap:6px;min-height:190px;}
.station-measure-card .big{margin-top:2px;}
.station-measure-heatmap{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.35);}
.station-measure-heatmap .status-heatmap-loading,
.station-measure-heatmap .status-heatmap-empty{width:105px;min-height:34px;padding:6px;border-radius:8px;background:rgba(255,255,255,.55);color:#344054;border:1px solid rgba(255,255,255,.45);font-size:.7rem;}
.station-measure-heatmap.status-heatmap-ready{display:block;}
.station-measure-heatmap.status-heatmap-ready{display:grid;grid-template-columns:repeat(24,4px);grid-template-rows:repeat(30,4px);gap:1px;width:max-content;max-width:100%;padding:10px 0 0;overflow:hidden;}
.station-measure-heatmap .status-heatmap-dot{width:4px;height:4px;border-radius:1px;background:var(--hm-color,#6b7280);display:block;box-shadow:none;}
.station-measure-card .status-heatmap-empty{display:inline-flex;align-items:center;justify-content:center;}
.section-subnote{font-size:.85rem;color:var(--muted);margin-left:auto;}

@media(max-width:760px){
  .station-measure-grid{grid-template-columns:1fr;}
  .station-measure-card{min-height:0;}
  .station-measure-heatmap.status-heatmap-ready{grid-template-columns:repeat(24,3px);grid-template-rows:repeat(30,3px);gap:1px;}
  .station-measure-heatmap .status-heatmap-dot{width:3px;height:3px;}
  .section-subnote{width:100%;margin-left:0;}
}


/* Fix44: isolate and center heatmaps inside station.php latest-value cards */
.station-measure-card{
  align-items:center;
  text-align:center;
}
.station-measure-card > strong,
.station-measure-card .big,
.station-measure-card > small{
  align-self:stretch;
}
.station-measure-heatmap{
  align-self:center;
  margin:10px auto 0;
  padding:8px;
  border-top:0;
  border:1px solid rgba(15,23,42,.10);
  border-radius:10px;
  background:#ffffff;
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}
.station-measure-heatmap.status-heatmap-ready{
  display:grid;
  place-content:center;
  grid-template-columns:repeat(24,4px);
  grid-template-rows:repeat(30,4px);
  gap:1px;
  width:max-content;
  max-width:100%;
  padding:8px;
  overflow:hidden;
}
.station-measure-heatmap .status-heatmap-dot{
  box-shadow:none;
}
.station-measure-heatmap .status-heatmap-loading,
.station-measure-heatmap .status-heatmap-empty{
  background:#ffffff;
  color:#344054;
  border:1px dashed #d0d5dd;
}
@media(max-width:760px){
  .station-measure-card{align-items:center;text-align:center;}
  .station-measure-heatmap.status-heatmap-ready{
    grid-template-columns:repeat(24,3px);
    grid-template-rows:repeat(30,3px);
    gap:1px;
    padding:7px;
  }
}

/* Fix45: station latest values as horizontal rows with 7-day heatmap and 7-day trend */
.station-measure-table{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.station-measure-row{
  display:grid;
  grid-template-columns:minmax(170px, .85fr) minmax(180px, 1.1fr) minmax(150px, .9fr);
  align-items:center;
  gap:14px;
  padding:12px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.station-measure-value-block{
  min-height:88px;
  border-radius:14px;
  padding:12px;
  background:var(--cat-bg,#f3f4f6);
  color:var(--cat-text,#475467);
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.station-measure-value-block strong{
  font-size:.82rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.station-measure-value-block .big{
  margin:3px 0 1px;
  font-size:1.65rem;
  font-weight:950;
  line-height:1;
}
.station-measure-value-block small{font-weight:750;opacity:.86;line-height:1.35;}
.station-measure-history-block,
.station-measure-trend-block{
  min-height:88px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 10px;
}
.station-measure-mini-title{
  font-size:.72rem;
  font-weight:900;
  color:#667085;
  text-transform:uppercase;
  letter-spacing:.04em;
  line-height:1;
}
.station-measure-heatmap-7d{
  display:grid;
  grid-template-columns:repeat(24,4px);
  grid-template-rows:repeat(7,4px);
  gap:1px;
  width:119px;
  height:34px;
  justify-content:center;
  align-content:center;
}
.station-measure-heatmap-7d .status-heatmap-dot{
  width:4px;
  height:4px;
  border-radius:1px;
}
.station-measure-heatmap-7d .status-heatmap-loading,
.station-measure-heatmap-7d .status-heatmap-empty{
  width:119px;
  min-height:34px;
}
.station-measure-trend{
  width:148px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.station-mini-trend-svg{
  width:138px;
  height:42px;
  overflow:visible;
}
.station-mini-trend-svg polyline{
  stroke:rgba(30,64,175,.95);
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.station-mini-trend-svg.trend-up polyline{stroke:rgba(185,28,28,.95);}
.station-mini-trend-svg.trend-down polyline{stroke:rgba(21,128,61,.95);}
.station-mini-trend-svg.trend-flat polyline{stroke:rgba(71,85,105,.95);}
.station-measure-grid{display:none;}
@media (max-width:780px){
  .station-measure-row{
    grid-template-columns:1fr;
    gap:9px;
    padding:10px;
  }
  .station-measure-value-block,
  .station-measure-history-block,
  .station-measure-trend-block{min-height:auto;}
  .station-measure-history-block,
  .station-measure-trend-block{align-items:flex-start;}
  .station-measure-heatmap-7d{justify-content:start;}
  .station-measure-trend{justify-content:flex-start;width:100%;}
}


/* Fix46: force station.php latest-values heatmap to use 7 days Ã— 24 hours */
.station-measure-heatmap.station-measure-heatmap-7d{
  margin:0 auto;
  padding:7px;
}
.station-measure-heatmap.station-measure-heatmap-7d.status-heatmap-ready{
  display:grid;
  grid-template-columns:repeat(24,4px);
  grid-template-rows:repeat(7,4px);
  gap:1px;
  width:119px;
  height:34px;
  min-height:34px;
  max-width:none;
  overflow:hidden;
  place-content:center;
}
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-dot{
  width:4px;
  height:4px;
  min-width:4px;
  min-height:4px;
}
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-loading,
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-empty{
  width:119px;
  min-height:34px;
  height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media(max-width:760px){
  .station-measure-heatmap.station-measure-heatmap-7d.status-heatmap-ready{
    grid-template-columns:repeat(24,3px);
    grid-template-rows:repeat(7,3px);
    width:95px;
    height:27px;
    min-height:27px;
    padding:6px;
  }
  .station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-dot{
    width:3px;
    height:3px;
    min-width:3px;
    min-height:3px;
  }
}

/* Fix47: station latest rows refinements */
.station-measure-value-block .station-measure-name{
  font-size:1.08rem;
  letter-spacing:.04em;
  line-height:1.05;
}
.station-measure-value-block .station-measure-date{
  display:block;
  margin-top:3px;
  opacity:.88;
}
.station-measure-value-block .station-measure-unit,
.station-measure-value-block .station-measure-category{
  display:block;
}
.station-measure-row.station-measure-row-no-trend{
  grid-template-columns:minmax(190px,.95fr) minmax(190px,1.05fr);
}
.station-measure-trend-block.is-empty{
  display:none;
}
.station-measure-heatmap.station-measure-heatmap-7d.status-heatmap-ready{
  grid-template-columns:repeat(24,5px);
  grid-template-rows:repeat(7,5px);
  gap:1px;
  width:143px;
  height:41px;
  min-height:41px;
}
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-dot{
  width:5px;
  height:5px;
  min-width:5px;
  min-height:5px;
}
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-loading,
.station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-empty{
  width:143px;
  min-height:41px;
  height:41px;
}
.station-mini-trend-svg polyline,
.station-mini-trend-svg.trend-up polyline,
.station-mini-trend-svg.trend-down polyline,
.station-mini-trend-svg.trend-flat polyline{
  stroke:#15803d;
}
@media(max-width:760px){
  .station-measure-row.station-measure-row-no-trend{
    grid-template-columns:1fr;
  }
  .station-measure-heatmap.station-measure-heatmap-7d.status-heatmap-ready{
    grid-template-columns:repeat(24,5px);
    grid-template-rows:repeat(7,5px);
    width:143px;
    height:41px;
    min-height:41px;
    padding:6px;
  }
  .station-measure-heatmap.station-measure-heatmap-7d .status-heatmap-dot{
    width:5px;
    height:5px;
    min-width:5px;
    min-height:5px;
  }
}

/* Managed public contact page */
.contact-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);
  gap:24px;
  align-items:start;
}
.contact-page{
  margin:0;
  padding:24px;
}
.contact-info-grid{
  display:grid;
  gap:12px;
}
.contact-info-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafcff;
  padding:16px;
}
.contact-info-icon{
  flex:0 0 44px;
  min-height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#e7f5f3;
  color:var(--brand-dark);
  font-weight:900;
  font-size:.78rem;
}
.contact-info-label{
  margin:0 0 4px;
  color:var(--muted);
  font-size:.84rem;
  font-weight:800;
}
.contact-info-value{
  margin:0;
  color:var(--ink);
  font-weight:800;
  text-decoration:none;
}
.contact-info-value:hover{color:var(--brand-dark)}
.contact-send-form{
  display:grid;
  gap:14px;
}
.contact-send-form .form-row.two-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.contact-send-form label{
  display:grid;
  gap:7px;
  color:#344054;
  font-weight:800;
}
.contact-send-form input,
.contact-send-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  padding:12px 14px;
  font:inherit;
  font-weight:500;
  outline:none;
}
.contact-send-form input:focus,
.contact-send-form textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(15,118,110,.14);
}
.contact-send-form button{
  justify-self:start;
  border:0;
  border-radius:12px;
  background:var(--brand-dark);
  color:#fff;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
}
.contact-send-form button:hover{filter:brightness(.96)}
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.form-alert{
  border-radius:12px;
  padding:12px 14px;
  margin:0 0 16px;
  font-weight:800;
}
.form-alert-success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.form-alert-warning{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.form-alert-error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
@media(max-width:900px){
  .contact-layout,
  .contact-send-form .form-row.two-columns{
    grid-template-columns:1fr;
  }
}


/* AQMS Live public overrides */
.portal-header .top-nav nav a,
.top-nav nav a{
  font-size:.9rem;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.01em;
}
.portal-header .top-nav nav a:hover,
.portal-header .top-nav nav a.active,
.top-nav nav a:hover,
.top-nav nav a.active{
  color:#fff;
  background:var(--brand-dark);
  border-color:var(--brand-dark);
}
.table-head-component{
  font-weight:900;
  font-size:.9rem;
  padding:0;
}
.data-table td:empty::after{
  content:'';
}
.pollutant-legend{
  justify-content:center;
  text-align:center;
}
.pollutant-legend span{
  justify-content:center;
}

.meteo-panel{
  overflow:hidden;
}
.meteo-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}
.meteo-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:112px;
  border:1px solid #dbe7f3;
  border-radius:14px;
  background:linear-gradient(135deg,#0b1624,#122c42);
  color:#eefaff;
  padding:12px;
  box-shadow:0 14px 32px rgba(15,35,70,.14);
}
.meteo-card img{
  width:64px;
  height:64px;
  object-fit:contain;
  filter:saturate(1.08);
}
.meteo-card-body{
  display:grid;
  gap:2px;
  min-width:0;
}
.meteo-card-body strong{
  font-size:.9rem;
  color:#c8f7ff;
  line-height:1.2;
}
.meteo-value{
  display:block;
  max-width:100%;
  font-size:1.35rem;
  line-height:1.08;
  font-weight:950;
  color:#fff;
  overflow-wrap:anywhere;
}
.meteo-unit{
  color:#7ee7f2;
  font-weight:850;
}
.meteo-card small{
  color:#a9bac8;
  font-size:.76rem;
}
@media(max-width:620px){
  .meteo-card-grid{grid-template-columns:1fr;}
}

.report-link-list{
  display:grid;
  gap:10px;
}
.report-link-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid #dbe7f3;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 10px 24px rgba(15,35,70,.07);
}
.report-link-card:hover{
  border-color:#22b8cf;
  color:#006f8f;
  transform:translateY(-1px);
}
.report-file-icon{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:32px;
  border-radius:8px;
  background:#fee2e2;
  color:#b91c1c;
  font-size:.78rem;
  font-weight:900;
}
