* { box-sizing: border-box; }
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --text: #17202a;
  --muted: #66717d;
  --border: #dfe3e8;
  --accent: #2457a6;
  --accent-soft: #eaf0fb;
  --shadow: 0 2px 10px rgba(20, 30, 45, .06);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 42px 0 34px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.subtitle { margin-bottom: 10px; color: var(--muted); font-size: 17px; }
.freshness { margin: 0; color: var(--muted); font-size: 13px; }
.section { margin: 28px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 4px; font-size: 22px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; max-width: 900px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.embed-card { padding: 12px 16px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.map-card { min-width: 0; padding: 18px; }
.map-card h3 { margin-bottom: 12px; font-size: 17px; }
.datawrapper-frame { width: 100%; min-width: 0; overflow: hidden; }
.datawrapper-frame iframe { display: block; width: 1px; min-width: 100% !important; max-width: 100%; border: 0; }
.explorer { padding: 24px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 16px; }
.filter { min-width: 0; }
.filter > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.multi-picker { position: relative; }
.picker-button { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #cbd2da; border-radius: 8px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.picker-button:hover, .picker-button[aria-expanded="true"] { border-color: var(--accent); }
.picker-menu { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 320px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 8px 24px rgba(20, 30, 45, .14); }
.picker-menu[hidden] { display: none; }
.picker-actions { position: sticky; top: -8px; display: flex; gap: 8px; padding: 8px 4px; margin: -8px -8px 5px; background: #fff; border-bottom: 1px solid var(--border); }
.picker-actions button { border: 0; padding: 5px 7px; background: var(--accent-soft); color: var(--accent); border-radius: 5px; font-size: 12px; cursor: pointer; }
.picker-item { display: flex; align-items: center; gap: 9px; padding: 7px 5px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.picker-item:hover { background: #f4f6f9; }
.picker-item input { accent-color: var(--accent); }
.selection-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: #1e447e; font-size: 12px; }
.chip button { padding: 0 1px; border: 0; background: transparent; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.range-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.range-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.range-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.range-buttons button { padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.range-buttons button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.trend-chart { width: 100%; min-height: 430px; }
.status { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #edf0f3; text-align: left; white-space: nowrap; }
th { background: #f8f9fb; color: #4e5965; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:hover { background: #fafbfd; }
td.rate { font-variant-numeric: tabular-nums; font-weight: 700; }
.aggregate-row { background: #eef4ff; }
.aggregate-row td { border-top: 2px solid #b7c9e8; }
.methodology details { padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.methodology summary { font-weight: 700; cursor: pointer; }
.method-body { max-width: 900px; padding-top: 15px; color: #3e4852; font-size: 14px; }
.method-body h3 { margin: 20px 0 6px; font-size: 15px; color: var(--text); }
.method-body p:last-child { margin-bottom: 0; }
a { color: var(--accent); }
.site-footer { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .map-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .explorer { padding: 18px; }
  .section-heading { display: block; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 20px, 1240px); }
  .site-header { padding: 30px 0 25px; }
  .section { margin: 22px 0; }
  .explorer { padding: 14px; }
  .range-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .trend-chart { min-height: 360px; }
}
