/* The automatic data-set page (owner: dataset_template.py). Everything a page shows is drawn by the design kit
   (rks-kit.css); these are the few rules a data-set page needs beside it, under the class `ds` that
   dataset_template puts on the page. No shapes of its own and no edge stripes: text sizes, spacing, a table that
   scrolls inside its card, and columns of words set left. */
.ds.ds>header h1{font-size:clamp(23px,3.3vw,46px);line-height:1.1;letter-spacing:-.032em;max-width:30ch;overflow-wrap:break-word;hyphens:auto}
.ds .ds-titlenote{font-size:13px;color:var(--ink-2);margin:-6px 0 12px}
.ds .ds-lede{font-size:clamp(16px,1.5vw,20px);line-height:1.5;color:var(--ink-2);max-width:60ch}
.ds .ds-state{font-size:15px;line-height:1.5;font-weight:600;color:var(--ink);max-width:60ch;margin-top:12px}
.ds .ds-lede+.ds-state{margin-top:10px}
.ds .ds-facts{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:18px;padding:0;list-style:none;font-size:14px;color:var(--ink-2)}
.ds .ds-facts b{color:var(--ink);font-weight:650}
.ds .ds-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:18px}
.ds .ds-row>a{font-size:14px;font-weight:650;color:var(--kit-deep)}
.ds>header>p:not([class]){margin-top:14px}
.ds .ds-text{margin-top:18px;max-width:72ch;font-size:16px;line-height:1.6;color:var(--ink-2);overflow-wrap:anywhere}
.ds .ds-list{margin-top:18px;padding-left:20px;max-width:72ch;color:var(--ink-2)}
.ds .ds-list li{margin:6px 0}
.ds .ds-notes{margin-top:14px;padding:0;list-style:none;display:grid;gap:6px;max-width:80ch;font-size:13px;line-height:1.5;color:var(--ink-2);overflow-wrap:anywhere}

/* a long table scrolls inside its card, header and row labels stay in view */
.ds .ds-tall div:has(>table){max-height:min(76vh,720px);overflow:auto}
.ds .ds-tall thead th{position:sticky;top:0;z-index:2;background:var(--surface);box-shadow:0 1px 0 var(--line);white-space:normal;vertical-align:bottom;min-width:5.5em;max-width:16em}
.ds .ds-tall thead th:first-child{z-index:3}
.ds .ds-tall tbody th{white-space:normal;min-width:min(15em,36vw);max-width:24em;z-index:1}

/* columns that hold words, not numbers (dataset_template: ds-l<column number>) */
.ds .ds-l2 :is(td,thead th):nth-child(2),.ds .ds-l3 :is(td,thead th):nth-child(3),.ds .ds-l4 :is(td,thead th):nth-child(4),
.ds .ds-l5 :is(td,thead th):nth-child(5),.ds .ds-l6 :is(td,thead th):nth-child(6),.ds .ds-l7 :is(td,thead th):nth-child(7),
.ds .ds-l8 :is(td,thead th):nth-child(8),.ds .ds-l9 :is(td,thead th):nth-child(9),.ds .ds-l10 :is(td,thead th):nth-child(10),
.ds .ds-l11 :is(td,thead th):nth-child(11),.ds .ds-l12 :is(td,thead th):nth-child(12),.ds .ds-l13 :is(td,thead th):nth-child(13),
.ds .ds-l14 :is(td,thead th):nth-child(14),.ds .ds-l15 :is(td,thead th):nth-child(15),.ds .ds-l16 :is(td,thead th):nth-child(16){text-align:left;white-space:normal;min-width:8em;max-width:26em}
@media(max-width:700px){.ds .ds-tall tbody th{max-width:11em}.ds .ds-tall div:has(>table){max-height:70vh}}
/* the reading note under a row of bars keeps its distance */
.ds section ul+p{margin-top:16px}
@media print{.ds .ds-tall div:has(>table){max-height:none;overflow:visible}}
