/* UNESCO GNLC report — professional responsive shell and evidence UI */
body.unesco-page {
  --unesco-edge: 20px;
  --unesco-shell: min(calc(100vw - (var(--unesco-edge) * 2)), 1400px);
  overflow-x: hidden;
}

body.unesco-page .hero-in,
body.unesco-page > .wrap,
body.unesco-page .unesco-rail-in,
body.unesco-page .aqm-footer-inner {
  width: var(--unesco-shell) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

body.unesco-page .hero {
  padding-inline: 0 !important;
}

body.unesco-page .hero-in {
  min-width: 0;
}

body.unesco-page .hero-badge {
  width: fit-content;
  max-width: 100%;
}

body.unesco-page .hero-meta div {
  min-width: 0;
  border-radius: 16px !important;
}

body.unesco-page > .wrap > .sect,
body.unesco-page > .wrap > .evidence-brief {
  width: 100% !important;
  max-width: none !important;
}

.unesco-rail {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--report-border);
  background: color-mix(in srgb, var(--report-bg) 88%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.unesco-rail-in {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding-block: 10px;
}

.unesco-rail a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--report-muted) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.unesco-rail a span {
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 9px;
}

.unesco-rail a:hover,
.unesco-rail a:focus-visible {
  border-color: var(--report-border-2);
  background: var(--report-surface);
  color: var(--report-heading) !important;
  outline: none;
  transform: translateY(-1px);
}

.evidence-brief,
.unesco-page .mg,
.unesco-page .pillars,
.unesco-page .arch,
.unesco-page .stn-grid,
.unesco-page .chart-grid,
.unesco-page .comfort-callout,
.unesco-page .findings,
.unesco-page .method-grid,
.unesco-page .cost-compare {
  align-items: stretch;
}

.evidence-brief > *,
.unesco-page .mg > *,
.unesco-page .pillars > *,
.unesco-page .arch > *,
.unesco-page .stn-grid > *,
.unesco-page .chart-grid > *,
.unesco-page .comfort-callout > *,
.unesco-page .findings > *,
.unesco-page .method-grid > *,
.unesco-page .cost-compare > * {
  min-width: 0;
  height: 100%;
}

.method-card,
.brief-kpi,
.unesco-page .mc,
.unesco-page .pillar,
.unesco-page .arch-item,
.unesco-page .stn-card,
.unesco-page .finding,
.unesco-page .comfort-card,
.unesco-page .cost-box {
  display: flex;
  flex-direction: column;
}

.unesco-page .pillar .p-metric,
.unesco-page .stn-status,
.unesco-page .method-card span:last-child {
  margin-top: auto;
}

.evidence-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 32%, var(--report-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 9%, var(--report-surface));
  color: var(--green);
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.evidence-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}

.method-card code {
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: .72rem;
}

.unesco-page .tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.unesco-page .tbl {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.unesco-page .chart-area,
.unesco-page .chart-sm {
  min-width: 0;
}

.science-caveat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--report-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--orange) 7%, var(--report-surface));
  color: var(--report-muted);
  font-size: .79rem;
  line-height: 1.7;
}

.science-caveat strong {
  color: var(--report-heading);
}

.science-caveat a {
  font-weight: 600;
}

.station-registry-note {
  margin: -8px 0 18px;
  color: var(--report-muted);
  font-size: .78rem;
}

.unesco-page .stn-card .stn-status.off {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--report-border));
  background: color-mix(in srgb, var(--orange) 9%, var(--report-surface));
  color: var(--orange);
}

html[data-aqm-theme="dark"] .unesco-rail {
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

@media (max-width: 980px) {
  .unesco-rail-in {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .unesco-rail-in::-webkit-scrollbar {
    display: none;
  }

  .unesco-rail a {
    min-width: 150px;
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  body.unesco-page {
    --unesco-edge: 14px;
  }

  body.unesco-page .hero {
    padding-block: 38px 34px !important;
  }

  .unesco-rail a {
    min-width: 136px;
    min-height: 40px;
  }

  .evidence-brief {
    grid-template-columns: 1fr;
  }

  .unesco-page .tbl {
    min-width: 660px;
  }

  .unesco-page .lang-float {
    left: 14px;
    bottom: 14px;
  }
}

@media print {
  .unesco-rail {
    display: none;
  }

  body.unesco-page {
    --unesco-edge: 0px;
  }
}
