:root {
  --blue: #0072bc;
  --blue-dark: #05568b;
  --blue-darkest: #0b3754;
  --blue-soft: #cde3f1;
  --blue-pale: #e8f2f8;
  --cyan: #6cd8fd;
  --purple: #a097e3;
  --yellow: #ffc740;
  --green: #32c189;
  --red: #d25a45;
  --ink: #242a2e;
  --ink-2: #4d565c;
  --ink-3: #7c858b;
  --page: #eef2f5;
  --card: #ffffff;
  --line: #e3e8ec;
  --line-strong: #cfd7dd;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(11, 55, 84, 0.08);
  --content: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  padding: 24px;
  background: var(--page);
  color: var(--ink);
  font-family: Lato, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input { font: inherit; }
button,
input { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 114, 188, 0.28);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.dashboard-wrap {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue-darkest);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  padding: 18px 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  margin-bottom: 20px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  width: min(310px, 43vw);
  height: auto;
  object-fit: contain;
}

.brand-block strong,
.brand-block small { display: block; }
.brand-block strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-block small {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 24px 0 16px;
  padding: 5px;
  border-radius: var(--radius);
  background: #dfe7ed;
  box-shadow: inset 0 0 0 1px rgba(11, 55, 84, 0.04);
}

.dashboard-tab {
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.dashboard-tab:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-dark);
}
.dashboard-tab.active {
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(5, 86, 139, 0.22);
  color: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr);
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 20px;
  padding: 17px 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.timeline-heading { min-width: 220px; }
.timeline-label,
.period-label {
  display: block;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.timeline-heading strong {
  display: block;
  margin-top: 1px;
  color: var(--blue-dark);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

.collection-note {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11px;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.timeline-controls input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  appearance: none;
  background: var(--blue-soft);
  cursor: pointer;
  outline: none;
}
.timeline-controls input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--blue);
  box-shadow: 0 1px 3px rgba(11, 55, 84, 0.35);
}
.timeline-controls input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 1px 3px rgba(11, 55, 84, 0.35);
}

.timeline-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}
.timeline-button:hover {
  border-color: #8fc1e1;
  background: var(--blue-soft);
}
.timeline-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.timeline-latest {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.timeline-latest:hover,
.timeline-latest.active {
  background: var(--blue);
  color: #fff;
}

.timeline-download {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue-darkest);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.timeline-download:hover { background: var(--blue-dark); }
.timeline-download:focus-visible {
  outline: 3px solid rgba(0, 114, 188, 0.28);
  outline-offset: 2px;
}

.kpi-grid {
  display: grid;
  gap: 16px;
}
.kpi-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.global-summary { margin-bottom: 24px; }

.filter-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -10px 0 20px;
  padding: 10px 13px;
  border: 1px solid #9ac8e5;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--blue-darkest);
  font-size: 12px;
}

.filter-state button {
  padding: 5px 9px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.kpi-card,
.panel {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 116px;
  padding: 17px 19px;
  border-left: 4px solid var(--blue);
}
.kpi-occupancy { border-left-color: var(--yellow); }
.kpi-purple { border-left-color: var(--purple); }
.kpi-label,
.kpi-value,
.kpi-detail { display: block; }
.kpi-label {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kpi-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}
.kpi-detail {
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 11px;
}

.dashboard-overview { margin-bottom: 0; }
.dashboard-view { min-height: 420px; }
.view-title {
  margin: 0 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.view-subtitle {
  margin: 2px 4px 14px;
  color: var(--ink-3);
  font-size: 13px;
}

.content-grid {
  display: grid;
  gap: 20px;
}
.two-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-span-two { grid-column: 1 / -1; }

.demographics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.demographics-left {
  display: grid;
  align-content: start;
  gap: 20px;
}

.rac-map-panel {
  display: flex;
  flex-direction: column;
}
.map-heading { margin-bottom: 12px; }
.panel-source,
.map-summary {
  max-width: 210px;
  margin: 0;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}
.rac-map {
  position: relative;
  width: 100%;
  height: 640px;
  display: grid;
  flex: none;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #eaf3f7;
}
.moldova-map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.moldova-map.is-dragging { cursor: grabbing; }
.moldova-region {
  fill: #f8fbfa;
  fill-rule: evenodd;
  stroke: #9db8b2;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.moldova-region:hover { fill: #edf6f3; }
.rac-point {
  color: #fff;
  cursor: pointer;
  outline: none;
}
.rac-point circle {
  fill: var(--blue-dark);
  stroke: #fff;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px rgba(8, 61, 99, 0.34));
}
.rac-point text {
  fill: currentColor;
  font-family: inherit;
  font-weight: 900;
  pointer-events: none;
  text-anchor: middle;
}
.rac-point:hover circle,
.rac-point:focus-visible circle,
.rac-point.is-filter-selected circle {
  fill: var(--blue-darkest);
  stroke: #ffdd67;
  stroke-width: 4;
}

.map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.map-controls button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--blue-darkest);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}
.map-controls button:last-child {
  border-right: 0;
  font-size: 10px;
}
.map-controls button:hover:not(:disabled),
.map-controls button:focus-visible { background: var(--blue-pale); }
.map-controls button:disabled {
  color: #a8b7bf;
  cursor: default;
}
.map-help {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-3);
  font-size: 9px;
  pointer-events: none;
}

.raion-scroll {
  height: 220px;
  overflow-y: auto;
  padding-right: 7px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.panel {
  min-width: 0;
  padding: 21px 22px;
}
.data-panel {
  margin-top: 20px;
  padding: 20px;
}

.panel-heading,
.legend {
  display: flex;
  align-items: center;
}
.panel-heading {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
h2 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.metric-panel {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--purple);
}

.metric-panel-flat {
  display: flex;
  min-height: 104px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 16px;
}

.metric-inline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-panel-flat .feature-value {
  margin-top: 0;
  font-size: 38px;
}

.metric-panel-flat .feature-note {
  max-width: 115px;
  margin-top: 0;
}
.feature-value {
  display: block;
  margin-top: 20px;
  color: var(--blue-dark);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.feature-note {
  display: block;
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 12px;
}

.legend {
  flex-wrap: wrap;
  gap: 11px;
  color: var(--ink-2);
  font-size: 11px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.legend-swatch.female { background: var(--blue); }
.legend-swatch.male { background: var(--blue-darkest); }
.legend-swatch.other { background: var(--purple); }
.legend-swatch.available { background: var(--blue); }
.legend-swatch.needed { background: #8ab5f5; }
.legend-swatch.unavailable { background: var(--blue-darkest); }

.age-gender-chart,
.rank-list,
.category-chart,
.status-chart,
.needs-list,
.service-status-chart {
  display: grid;
  gap: 12px;
}

.age-gender-row {
  display: grid;
  grid-template-columns: 82px 1fr 58px;
  align-items: center;
  gap: 10px;
}

.age-gender-row,
.rank-row,
.category-row,
.status-row,
.need-row,
.service-status-row {
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.age-gender-row:hover,
.rank-row:hover,
.category-row:hover,
.status-row:hover,
.need-row:hover,
.service-status-row:hover {
  border-color: #b7d5e7;
  background: #f2f8fb;
}

.is-filter-selected {
  border-color: var(--blue) !important;
  background: var(--blue-pale) !important;
  box-shadow: inset 3px 0 0 var(--blue);
}
.chart-label {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stack-track {
  display: flex;
  overflow: hidden;
  height: 23px;
  border-radius: 5px;
  background: var(--page);
}
.stack-segment {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.stack-segment.female { background: var(--blue); }
.stack-segment.male { background: var(--blue-darkest); }
.stack-segment.other { background: var(--purple); }
.stack-segment.available { background: var(--blue); }
.stack-segment.needed { background: #8ab5f5; color: var(--blue-darkest); }
.stack-segment.unavailable { background: var(--blue-darkest); }
.stack-segment[data-filter-type] { cursor: pointer; }
.stack-segment[data-filter-type]:hover,
.stack-segment.segment-selected {
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--blue-darkest);
}
.chart-number {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.rank-row,
.category-row,
.status-row,
.need-row,
.service-status-row {
  display: grid;
  align-items: center;
  gap: 10px;
}
.rank-row { grid-template-columns: minmax(90px, 0.8fr) minmax(160px, 1.8fr) 55px; }
.category-row { grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.6fr) 50px; }
.status-row { grid-template-columns: minmax(100px, 1fr) minmax(140px, 1.6fr) 60px; }
.need-row { grid-template-columns: minmax(125px, 0.8fr) minmax(160px, 1.8fr) 48px; }
.service-status-row { grid-template-columns: minmax(190px, 0.9fr) minmax(230px, 1.6fr) 60px; }

.bar-track {
  display: block;
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--page);
}
.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--blue);
}
.status-row .bar-fill { background: var(--green); }
.bar-number {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.panel-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e7ecef;
  border-radius: 10px;
  background: #fff;
  scrollbar-color: #b9c7cf transparent;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink-2);
  font-size: 11.5px;
}
.data-table.compact-wide { min-width: 1120px; }
.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #dce3e7;
  background: #f8fafb;
  color: #56636b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color 120ms ease; }
.data-table tbody tr:nth-child(even) { background: transparent; }
.data-table tbody tr:hover { background: #f3f8fb; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody td:first-child {
  color: var(--blue-dark);
  font-weight: 900;
}
.number-cell { text-align: right !important; }
.location-cell { min-width: 220px; }

.demographic-table { min-width: 940px; }
.demographic-table th { padding: 0; }
.demographic-table th:nth-child(1) { width: 78px; }
.demographic-table th:nth-child(2) { width: 112px; }
.demographic-table th:nth-child(3) { width: 190px; }
.demographic-table th:nth-child(4) { width: 150px; }
.demographic-table th:nth-child(5) { width: 220px; }
.demographic-table th:nth-child(6) { width: 90px; }
.demographic-table th:nth-child(7) { width: 180px; }

.demographic-sort {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.demographic-sort:hover,
.demographic-sort:focus-visible { color: var(--blue); }
.demographic-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.demographic-sort span { margin-left: 3px; font-size: 8px; opacity: 0.45; }
.demographic-address {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demographic-occupancy,
.demographic-age { display: flex; flex-direction: column; gap: 4px; }
.demographic-occupancy { min-width: 110px; }
.demographic-occupancy > div:first-child { color: var(--blue-darkest); font-variant-numeric: tabular-nums; }
.demographic-occupancy strong { font-weight: 800; }
.demographic-occupancy > div:first-child span { color: #8a97a1; font-size: 10px; }
.demographic-occupancy-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f5;
}
.demographic-occupancy-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.demographic-age { min-width: 180px; }
.demographic-age-bar {
  display: flex;
  height: 15px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf2f5;
}
.demographic-age-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
}
.demographic-age-segment.child,
.demographic-legend-swatch.child { background: #0072bc; }
.demographic-age-segment.adult,
.demographic-legend-swatch.adult { background: #7cb9e8; }
.demographic-age-segment.older,
.demographic-legend-swatch.older { background: #18375f; }
.demographic-age-segment.small { color: transparent; }
.demographic-age-values {
  display: flex;
  gap: 7px;
  color: #8a97a1;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.demographic-age-values strong { color: var(--ink-2); font-weight: 700; }
.demographic-age-values i { font-style: normal; }
.demographic-pwd { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.demographic-pwd strong { color: var(--blue-darkest); }
.demographic-pwd span { color: #8a97a1; font-size: 9.5px; }
.demographic-source { display: inline-flex; align-items: center; gap: 5px; color: #8a97a1; font-size: 9.5px; white-space: nowrap; }
.demographic-source i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; }
.demographic-source i.mlsp { background: var(--blue); }
.demographic-source i.acted { background: var(--yellow); }
.demographic-source strong { color: var(--ink-2); font-weight: 800; }
.demographic-table-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  margin-top: 10px;
  color: #8a97a1;
  font-size: 9.5px;
}
.demographic-table-caption > span { display: inline-flex; align-items: center; gap: 4px; }
.demographic-legend-swatch { width: 7px; height: 7px; border-radius: 1px; }
.demographic-table-hint { margin-left: 4px; }

.status-pill {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef3f5;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill.yes,
.status-pill.available {
  background: #e6f7ef;
  color: #177653;
}
.status-pill.no,
.status-pill.unavailable {
  background: #fff0ec;
  color: var(--red);
}
.status-pill.needed {
  background: #fff2c7;
  color: #805d0b;
}

.calendar-grid {
  width: 100%;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e7ecef;
  border-radius: 10px;
  background: #f5f7f8;
  scrollbar-color: #b9c7cf transparent;
  scrollbar-width: thin;
}
.calendar-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
  font-size: 10.5px;
}
.calendar-table th,
.calendar-table td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.calendar-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f5f7f8;
  color: #5f6b72;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.calendar-table th:first-child { width: 78px; }
.calendar-table td:first-child {
  width: 78px;
  border: 1px solid #e2e8eb;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-darkest);
  font-weight: 900;
}
.calendar-table td:not(:first-child) {
  border: 1px solid #e2e8eb;
  border-radius: 8px;
  background: #fff;
}
.calendar-table small {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
}
.calendar-entry {
  padding: 7px 8px;
  border-left: 2px solid var(--blue);
  border-radius: 5px;
  background: #f2f8fb;
  color: var(--ink-2);
  line-height: 1.35;
}
.calendar-entry + .calendar-entry {
  margin-top: 6px;
}
.calendar-time {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.calendar-empty {
  color: #a0a8ad;
  font-size: 11px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 18px 2px 4px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: 11px;
}
footer p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .dashboard-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demographics-layout,
  .two-panel-grid { grid-template-columns: 1fr; }
  .panel-span-two { grid-column: auto; }
  .metric-panel { min-height: 180px; }
  .metric-panel-flat { min-height: 104px; }
  .rac-map { height: 480px; }
}

@media (max-width: 680px) {
  body { padding: 14px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-heading { min-width: 0; }
  .kpi-grid-three { grid-template-columns: 1fr; }
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .rank-row,
  .category-row,
  .status-row,
  .need-row,
  .service-status-row { grid-template-columns: minmax(105px, 1fr) 1.35fr 45px; }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  body { padding: 9px; }
  .site-header { min-height: 0; padding: 14px 15px; }
  .brand-block {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .brand-logo { width: min(210px, 75vw); }
  .brand-block strong { font-size: 18px; }
  .brand-block > span { display: block; }
  .brand-block small { margin-top: 2px; font-size: 11px; }
  .dashboard-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { padding: 15px; }
  .timeline-controls { gap: 6px; }
  .timeline-controls { flex-wrap: wrap; }
  .timeline-download { width: 100%; }
  .panel { padding: 17px; }
  .age-gender-row { grid-template-columns: 74px 1fr 44px; }
  .feature-value { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
