.population-card { margin-bottom: 22px; }
.population-picker { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0 22px; margin: 0; min-width: 0; }
.population-picker legend, .population-table caption, .population-picker input {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.population-picker label { cursor: pointer; }
.population-picker span {
  display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.population-picker input:checked + span { background: var(--indigo-soft); color: #423abf; border-color: #c7c4f6; }
.population-picker input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.population-panel { display: none; }
.population-card:has(#population-all:checked) #population-panel-all,
.population-card:has(#population-scored:checked) #population-panel-scored,
.population-card:has(#population-paired:checked) #population-panel-paired { display: block; }
.population-context { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 17px 22px 12px; }
.population-context strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.population-context span, .population-note, .population-method, .population-unit, .population-table small { color: var(--muted); }
.population-note, .population-method { padding: 12px 22px 17px; font-size: 13px; }
.population-method p + p { margin-top: 5px; }
.population-scroll { overflow-x: auto; }
.population-table { width: 100%; border-collapse: collapse; }
.population-table th, .population-table td { padding: 8px 22px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.population-table th { text-align: left; }
.population-table thead th { color: var(--muted); font-size: 12px; background: #fafbfd; }
.population-table th[scope="rowgroup"] { font-size: 13px; color: #35566d; background: #f1f6f8; }
.population-table th[scope="row"] { width: 48%; font-weight: 500; }
.population-table td, .population-table thead th:not(:first-child) { text-align: right; }
.population-table .population-estimate { white-space: nowrap; font-weight: 600; }
.population-table small { display: block; }
@media (max-width: 760px) {
  .population-picker { padding-inline: 16px; }
  .population-context, .population-note, .population-method { padding-inline: 16px; }
  .population-table th, .population-table td { padding: 8px; }
  .population-table th:first-child { padding-left: 16px; }
  .population-table td:last-child, .population-table thead th:last-child { padding-right: 16px; }
}
.population-coverage summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none; padding: 13px 22px; font-weight: 600;
}
.population-coverage summary::-webkit-details-marker { display: none; }
.population-coverage[open] summary .icon { transform: rotate(180deg); }
.population-coverage > p { margin: 0; padding: 0 22px 13px; color: var(--muted); }
.population-coverage tbody th[scope="row"] {
  text-transform: none; font-size: 14px; letter-spacing: 0; background: white; color: var(--ink); white-space: normal;
}
.population-bmi { padding: 11px 22px; border-bottom: 1px solid var(--line); }
.population-bmi summary, .population-method-details summary { cursor: pointer; font-weight: 600; color: #405575; }
.population-method-details { margin-top: 6px; }
.population-bmi dl { margin: 10px 0; max-width: 620px; }
.population-bmi dl > div { display: flex; justify-content: space-between; gap: 10px; }
.population-bmi dd { margin: 0; font-variant-numeric: tabular-nums; }
.population-bmi p, .population-method-details p { color: var(--muted); font-size: 13px; margin-top: 6px; }
