/* =====================================================================
   VOZDUH-LOCK 2026-09-24 — PROTECTED SECTION STYLESHEET
   =====================================================================
   DO NOT overwrite, delete, or unlink this file.
   Load AFTER adaptive.css (and after readability-lock / side-column).
   Sweeps A/B/C: never FTP this path; never strip its <link> from main.tpl.
   Owners: vozduh restore bc-1ae9ee0e · archive ship bc-13c49fb3 ·
           anti-otkat lock bc-6329c5b5
   Marker search: VOZDUH-LOCK 2026-09-24
   Related PHP (also protected): engine/modules/vozduh.php,
     airquality.php, airquality_home.php
   Canonical list: internal/protected-sections-lock.md (project store)
   ===================================================================== */

/* === VOZDUH ARCHIVE + HOME WIDGET 2026-09-24 (do not shrink fonts; leave header AQ alone) === */
.aq-edu--top {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-top: 0;
  border-bottom: 1px solid #e4eaf2;
}
.aq-edu--top h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f3358;
}
.aq-edu--top p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #3a4a62;
  max-width: 54em;
}

.aq-home {
  margin: 0 0 18px;
  padding: 12px 14px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}
.aq-home__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.aq-home__head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.aq-home__head h4 a { color: #1f3358; text-decoration: none; }
.aq-home__head h4 a:hover { color: #4563ad; }
.aq-home__more {
  font-size: 14px;
  color: #4563ad;
  text-decoration: none;
  white-space: nowrap;
}
.aq-home__more:hover { text-decoration: underline; }
.aq-home__err,
.aq-home__stale {
  margin: 0 0 8px;
  font-size: 14px;
  color: #5a6a82;
}
.aq-now--home { margin: 0; }

.aq-archive {
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #e4eaf2;
}
.aq-archive__title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1f3358;
}
.aq-archive__subtitle {
  margin: 16px 0 8px;
  font-size: 16px;
  color: #1f3358;
}
.aq-archive__hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a4a62;
  max-width: 54em;
}
.aq-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 0 0 16px;
  padding: 12px;
  background: #f4f7fb;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}
.aq-archive__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.aq-archive__field span {
  font-size: 13px;
  color: #5a6a82;
  font-weight: 600;
}
.aq-archive__field select {
  font-size: 15px;
  line-height: 1.3;
  padding: 7px 10px;
  border: 1px solid #b8c4d6;
  border-radius: 6px;
  background: #fff;
  color: #1f3358;
  min-width: 140px;
}
.aq-archive__btn {
  font-size: 15px;
  line-height: 1.3;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #4563ad;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.aq-archive__btn:hover { background: #365292; }

.aq-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.aq-parts__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 10px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
}
.aq-parts__card--good { border-color: #9dcea9; background: #f3faf5; }
.aq-parts__card--fair { border-color: #c5d89a; background: #f7faef; }
.aq-parts__card--moderate { border-color: #f0d48a; background: #fffaf0; }
.aq-parts__card--poor { border-color: #efb090; background: #fff6f1; }
.aq-parts__card--very-poor,
.aq-parts__card--extreme { border-color: #e0a0a0; background: #fff4f4; }
.aq-parts__name {
  font-size: 15px;
  font-weight: 700;
  color: #1f3358;
}
.aq-parts__hours {
  font-size: 13px;
  color: #6a7b94;
}
.aq-parts__num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 4px;
  color: #1f3358;
}
.aq-parts__label {
  font-size: 14px;
  color: #3a4a62;
  margin-bottom: 6px;
}
.aq-parts__bar-wrap {
  display: block;
  height: 8px;
  background: rgba(30, 50, 80, .08);
  border-radius: 999px;
  overflow: hidden;
}
.aq-parts__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 6px;
}

.aq-chart--month .aq-chart__col {
  flex: 1 1 18px;
  min-width: 16px;
  max-width: 28px;
}
.aq-chart--hours {
  height: 180px;
}
.aq-chart--hours .aq-chart__col {
  flex: 1 1 14px;
  min-width: 12px;
  max-width: 28px;
}
.aq-chart__col--morn { background: rgba(90, 170, 110, .06); border-radius: 4px 4px 0 0; }
.aq-chart__col--day { background: rgba(224, 176, 58, .07); border-radius: 4px 4px 0 0; }
.aq-chart__col--eve { background: rgba(224, 122, 58, .07); border-radius: 4px 4px 0 0; }
.aq-chart__col--night { background: rgba(70, 90, 120, .05); border-radius: 4px 4px 0 0; }

.aq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  font-size: 13px;
  color: #5a6a82;
}
.aq-legend__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.aq-legend__swatch--morn { background: #5aaa6e; }
.aq-legend__swatch--day { background: #e0b03a; }
.aq-legend__swatch--eve { background: #e07a3a; }
.aq-legend__swatch--night { background: #8a9bb0; }

.aq-table--parts td,
.aq-table--parts th { text-align: center; }
.aq-table--parts td:first-child,
.aq-table--parts th:first-child { text-align: left; }

@media (max-width: 720px) {
  .aq-parts { grid-template-columns: 1fr; }
  .aq-archive__filters { padding: 10px; }
  .aq-parts__num { font-size: 26px; }
  .aq-chart--hours { height: 160px; }
  .aq-chart--hours .aq-chart__val { font-size: 9px; }
  .aq-home { padding: 10px 10px 12px; }
  .aq-home__head h4 { font-size: 17px; }
}
/* === end VOZDUH ARCHIVE + HOME WIDGET === */


/* === POLLUTION GRID OVERFLOW FIX 2026-09-24 ===
   Contain .aq-now pollutants inside mid column; wrap instead of spilling into right sidebar.
   Do not shrink base pollutant font floors (14px values). Archive blocks above untouched.
   ===================================================================== */
.aq-page,
.aq-home {
  max-width: 100%;
  box-sizing: border-box;
}
.aq-page .aq-now,
.aq-home .aq-now,
.mid_col .aq-now {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  gap: 12px 16px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* clip any residual bleed into .right */
  padding-right: 12px !important;
  padding-left: 12px !important;
}
.aq-page .aq-now__main,
.aq-home .aq-now__main,
.mid_col .aq-now__main {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}
.aq-page .aq-pollutants,
.aq-home .aq-pollutants,
.mid_col .aq-pollutants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  /* Own full-width row under EAQI score — O₃/CO never spill into .right */
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2-col wrap: O₃/CO on next rows */
  gap: 8px 10px;
  flex: 0 0 100% !important; /* never share row with EAQI score — prevents .right bleed */
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
.aq-page .aq-pollutants li,
.aq-home .aq-pollutants li,
.mid_col .aq-pollutants li {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aq-page .aq-pollutants span,
.aq-home .aq-pollutants span {
  font-size: 11px;
}
.aq-page .aq-pollutants strong,
.aq-home .aq-pollutants strong {
  font-size: 14px; /* floor — do not shrink */
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .aq-page .aq-pollutants,
  .aq-home .aq-pollutants,
  .mid_col .aq-pollutants {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-basis: 100%;
  }
}
@media (max-width: 480px) {
  .aq-page .aq-pollutants,
  .aq-home .aq-pollutants,
  .mid_col .aq-pollutants {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* === end POLLUTION GRID OVERFLOW FIX 2026-09-24 === */

/* === END VOZDUH-LOCK 2026-09-24 — do not truncate above === */
