/* aiadoptionbyindustry.com: an official statistical yearbook. A cloth-blue cover band with
   buff lettering and one gilt rule, blue-tinted paper, slab headings, double-ruled tables.
   Gilt is the one accent: the cover rule, the Census tick, the selection. */
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #e7edf4;
  --sheet: #f5f8fb;
  --ink: #0e1c38;
  --ink-2: #33415c;
  --ink-3: #4d5b75;
  --line: rgba(14, 28, 56, 0.16);
  --dots: rgba(14, 28, 56, 0.34);
  --cloth: #14306b;
  --cloth-2: #0d2250;
  --buff: #f2e8cb;
  --buff-2: rgba(242, 232, 203, 0.8);
  --gilt: #d2a03c;
  --gilt-ink: #8a5600;
  --gilt-2: #b87f14;
  --bar: #5673a8;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Roboto Slab", Rockwell, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 400 16.5px/1.58 var(--text); color: var(--ink); background: var(--paper); overflow-wrap: break-word; caret-color: var(--cloth); }
::selection { background: var(--gilt); color: var(--ink); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--cloth); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease); }
a:hover { color: var(--cloth); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cloth); outline-offset: 2px; box-shadow: 0 0 0 4px var(--gilt); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
.wrap { max-width: 1328px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; border: 1px solid var(--ink); z-index: 10; }
.skip:focus { left: 8px; }

/* Cover band and running head */
.cover { background: var(--cloth); color: var(--buff); border-bottom: 6px solid var(--cloth-2); }
.cover ::selection { background: var(--buff); color: var(--cloth-2); }
.cover :focus-visible { outline-color: var(--buff); box-shadow: none; }
.cover .cover-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; padding-top: 26px; padding-bottom: 16px; }
.site .name { display: block; font: 500 28px/1.1 var(--slab); letter-spacing: -0.01em; text-decoration: none; color: var(--buff); }
.imprint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; font: 400 15px/1.3 var(--slab); color: var(--buff-2); }
.by { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--buff); font-family: var(--text); font-size: 14px; }
.by:hover { color: #ffffff; }
.by .ulsa-mark { align-self: center; }
.run > .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 28px; }
.run > .wrap::before { content: ""; flex: 0 0 100%; height: 5px; border-top: 2px solid var(--gilt); border-bottom: 1px solid var(--gilt); }
.navlab { display: none; color: var(--buff-2); font-size: 14px; }
.run ul { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; font-size: 14.5px; }
.run a { display: block; padding: 11px 0 9px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--buff-2); transition: color 140ms var(--ease), border-color 140ms var(--ease); }
.run a:hover { color: #ffffff; border-bottom-color: var(--buff-2); }
.run a[aria-current="page"] { color: var(--buff); font-weight: 600; border-bottom-color: var(--gilt); }

/* Title page */
.release { padding: 36px 0 8px; }
h1 { font: 500 31px/1.14 var(--slab); letter-spacing: -0.015em; max-width: 21em; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.55; margin-top: 20px; max-width: 37em; }
.ledenote { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; max-width: 46em; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 22px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.meta div { display: flex; gap: 8px; }
.meta dt { color: var(--ink-3); }
.meta dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.back { margin-top: 24px; }

/* Key figures: a summary table beside the opening, not a row of big numbers */
.keys, .contents.rail { margin-top: 32px; }
.keys h2, .contents h2 { font: 500 18px/1.2 var(--slab); padding-bottom: 8px; border-bottom: 3px double var(--ink); }
.keys ul { list-style: none; }
.keys li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; padding: 12px 0; border-bottom: 1px dotted var(--dots); }
.big { font: 500 23px/1.2 var(--slab); font-variant-numeric: tabular-nums; color: var(--cloth); }
.def { font-size: 14.5px; line-height: 1.42; }
.src { font-size: 13px; line-height: 1.42; color: var(--ink-3); margin-top: 4px; }

/* Contents */
.contents ul { list-style: none; font-size: 15.5px; }
.contents a { text-decoration-color: transparent; }
.contents a:hover { text-decoration-color: var(--cloth); }
.contents.rail li { border-bottom: 1px dotted var(--dots); }
.contents.rail a { display: block; padding: 9px 0; }
.contents.strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-top: 28px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.contents.strip h2 { border: 0; padding: 0; font-size: 16px; }
.contents.strip ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.contents.strip a { display: block; padding: 8px 0; }

/* Ranking plate */
.rank { margin-top: 32px; background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--cloth); padding: 18px 14px 16px; --cols: minmax(0, 1fr); }
.rank figcaption { max-width: none; margin-bottom: 14px; }
.rt { display: block; font: 500 22px/1.2 var(--slab); }
.rh { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.rank-in { display: grid; gap: 16px; }
.side { display: contents; }
.board { order: 1; }
dl.def { order: 2; }
.rl { order: 3; flex-direction: column; margin-top: 0; }
.pick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.opt:nth-of-type(odd) { border-right: 1px solid var(--line); }
.pick legend { display: flex; justify-content: space-between; width: 100%; padding: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; padding: 8px 10px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.on { font-weight: 600; font-size: 14px; line-height: 1.25; align-self: center; }
.ok { display: none; grid-column: 1; font-size: 13px; line-height: 1.3; color: var(--ink-3); }
.ot { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font: 500 17px/1.15 var(--slab); font-variant-numeric: tabular-nums; }
.oa { display: block; max-width: 62px; margin-left: auto; font: 400 11.5px/1.2 var(--text); color: var(--ink-3); }
.opt:hover { background: var(--paper); }
.opt:has(:checked) { background: var(--cloth); color: var(--buff); }
.opt:has(:checked) .ok, .opt:has(:checked) .oa { color: var(--buff-2); }
.opt:has(:focus-visible) { outline: 2px solid var(--cloth); outline-offset: 2px; box-shadow: 0 0 0 4px var(--gilt); z-index: 1; }
dl.def { font-size: 14px; line-height: 1.42; }
dl.def div + div { margin-top: 8px; }
dl.def dt { font-size: 13px; color: var(--ink-3); }
.v { display: none; }
.bhead { display: none; }
.bbody { position: relative; }
.gl { display: none; }
.rows { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.row { order: var(--o-btos); --w: var(--w-btos, 0%); position: relative; display: grid; grid-template-columns: var(--cols); column-gap: 16px; align-items: center; padding: 6px 0 2px; border-bottom: 1px dotted var(--dots); font-size: 14.5px; line-height: 1.3; }
.nm { font-weight: 500; }
.trk { position: relative; display: block; height: 30px; }
.trk .bar { position: absolute; left: 0; top: 7px; height: 16px; width: var(--w); background: var(--cloth); transform-origin: 0 50%; }
.tick { position: absolute; left: var(--w-btos); top: 2px; width: 3px; height: 26px; margin-left: -1px; background: var(--gilt-2); box-shadow: 0 0 0 1px var(--sheet); }
.trk .v { position: absolute; top: 0; left: max(var(--w), var(--w-btos, 0%)); padding-left: 8px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trk .v.na { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.as { display: block; font-weight: 400; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.as .v { padding-bottom: 2px; }
.rank:has(input[value="btos"]:checked) .v-btos { display: block; }
.rank:has(input[value="btos"]:checked) :is(.tick, .lt) { display: none; }
.rank:has(input[value="ramp"]:checked) .row { order: var(--o-ramp); --w: var(--w-ramp, 0%); }
.rank:has(input[value="ramp"]:checked) .v-ramp { display: block; }
.rank:has(input[value="eurostat"]:checked) .row { order: var(--o-eurostat); --w: var(--w-eurostat, 0%); }
.rank:has(input[value="eurostat"]:checked) .v-eurostat { display: block; }
.rank:has(input[value="oecd"]:checked) .row { order: var(--o-oecd); --w: var(--w-oecd, 0%); }
.rank:has(input[value="oecd"]:checked) .v-oecd { display: block; }
.rank:has(input[value="statcan"]:checked) .row { order: var(--o-statcan); --w: var(--w-statcan, 0%); }
.rank:has(input[value="statcan"]:checked) .v-statcan { display: block; }
.rank:has(input[value="ons"]:checked) .row { order: var(--o-ons); --w: var(--w-ons, 0%); }
.rank:has(input[value="ons"]:checked) .v-ons { display: block; }
.rank:has(input[value="gallup"]:checked) .row { order: var(--o-gallup); --w: var(--w-gallup, 0%); }
.rank:has(input[value="gallup"]:checked) .v-gallup { display: block; }
.rank:has(input[value="rps"]:checked) .row { order: var(--o-rps); --w: var(--w-rps, 0%); }
.rank:has(input[value="rps"]:checked) .v-rps { display: block; }
@supports not selector(:has(a)) {
  .v-btos { display: block; }
  .tick, .lt { display: none; }
  .pick { pointer-events: none; }
}

/* Sections */
.sec { margin-top: 56px; padding-top: 18px; border-top: 2px solid var(--ink); }
.sec > h2 { font: 500 25px/1.18 var(--slab); letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 14px; }
h3 { font: 500 19px/1.25 var(--slab); margin-top: 28px; }
.prose > * { max-width: 41em; }
.prose > * + *, .sec > * + .prose { margin-top: 14px; }
.sec > h2 + .prose { margin-top: 0; }
.plain { padding-left: 20px; }
.plain li + li { margin-top: 8px; }
.plain li { break-inside: avoid; }
.plain li::marker { color: var(--ink-3); }

/* Tables and figures */
.tbl, .fig { margin-top: 32px; }
.sec > h2 + .tbl, .sec > h2 + .fig { margin-top: 8px; }
figcaption { font-weight: 500; font-size: 16.5px; line-height: 1.35; max-width: 46em; margin-bottom: 10px; }
.lab { font: 600 16.5px/1.35 var(--slab); margin-right: 10px; color: var(--cloth); }
.sorthint { display: none; font-size: 13px; color: var(--ink-3); margin: -4px 0 8px; }
.js .sorthint { display: block; }
.scroll { overflow-x: auto; max-width: 100%; border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); scrollbar-color: var(--cloth) var(--sheet); scrollbar-width: thin; }
.scroll.tall { max-height: 82vh; overflow-y: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); min-width: 96px; background: var(--paper); font-weight: 400; }
thead th { font: 600 14px/1.25 var(--text); vertical-align: bottom; border-bottom: 1px solid var(--ink); }
thead tr:first-child th { position: sticky; top: 0; z-index: 2; }
tbody th, tfoot th, thead tr > :first-child { position: sticky; left: 0; z-index: 1; min-width: 136px; max-width: 46vw; border-right: 1px solid var(--ink); }
thead tr:first-child th:first-child { z-index: 3; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
tfoot th, tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; }
.val { font-weight: 500; white-space: nowrap; }
tfoot .val { font-weight: 600; }
.sub { display: block; font: 400 12.5px/1.35 var(--text); color: var(--ink-3); margin-top: 2px; }
.na { font-size: 13px; color: var(--ink-3); }
.sorted { background: var(--sheet); }
td.sorted .val, th.sorted .hl { color: var(--cloth); font-weight: 700; }
.sortbtn { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: block; width: 100%; }
.sortbtn .hl::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: middle; border: 4px solid transparent; border-top-color: var(--ink-3); border-bottom-width: 0; opacity: 0.6; }
th[aria-sort] .sortbtn .hl::after { border-top-color: var(--cloth); opacity: 1; }
th[aria-sort="ascending"] .sortbtn .hl::after { border-top-width: 0; border-bottom: 4px solid var(--cloth); }
.sortbtn:hover .hl { color: var(--cloth); }
table.widetext { min-width: calc(var(--cols) * 176px); }

/* Table 1 */
.defs td { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.defs dt { color: var(--ink-3); margin-top: 6px; }
.defs dt:first-child { margin-top: 0; }
.defs dd { color: var(--ink); }
.rowsub { color: var(--ink-2); }
.matrix th, .matrix td { min-width: 132px; }

/* Notes under every table and figure, set off by a short footnote rule */
.notes { margin-top: 12px; padding-top: 8px; position: relative; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 64em; }
.notes::before { content: ""; position: absolute; top: 0; left: 0; width: 96px; border-top: 1px solid var(--ink); }
.notes div + div { margin-top: 4px; }
.notes dt { display: inline; font-weight: 600; color: var(--ink); margin-right: 4px; }
.notes dd { display: inline; overflow-wrap: anywhere; }
.footnote { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 64em; }

/* Charts */
.plot { max-width: 900px; padding: 14px 14px 6px; background: var(--sheet); border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); }
.chart { display: block; width: 100%; height: auto; font-family: var(--text); font-variant-numeric: tabular-nums; }
.chart.wide { display: none; }
.chart.narrow { max-width: 440px; }
.chart .lbl { font-size: 13px; font-weight: 500; fill: var(--ink); }
.chart .val { font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.chart .tick { font-size: 12px; fill: var(--ink-3); }
.chart .axis { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); }
.chart .note { font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.chart .tag { font-size: 12.5px; font-weight: 600; }
.chart .tag.base { fill: var(--ink-2); }
.chart .tag.lead { fill: var(--cloth); }
.chart .grid { stroke: var(--ink); stroke-opacity: 0.14; stroke-width: 1; }
.chart .tickmark { stroke: var(--ink-3); stroke-width: 1; }
.chart .bar { fill: var(--bar); }
.chart .bar.lead { fill: var(--cloth); }
.chart .prev { stroke: var(--gilt-ink); stroke-width: 2.5; }
.chart .line { fill: none; stroke-width: 2; }
.chart .line.base { stroke: var(--bar); }
.chart .line.lead { stroke: var(--cloth); }
.chart .dot.base { fill: var(--bar); }
.chart .dot.lead { fill: var(--cloth); }
.chart .break { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); max-width: 64em; }
.legend li { display: flex; align-items: baseline; gap: 8px; }
.sw { flex: none; width: 12px; height: 12px; background: var(--bar); transform: translateY(1px); }
.sw.lead { background: var(--cloth); }
.sw.base { background: var(--bar); }
.sw.mark { width: 3px; height: 14px; margin: 0 4px; background: var(--gilt-ink); }
.rl .sw.mark { background: var(--gilt-2); }

/* Questions and answers */
.qa .q { padding: 2px 0 18px; border-bottom: 1px dotted var(--dots); max-width: 44em; }
.qa h3 { margin-top: 18px; }
.qa .q:first-child h3 { margin-top: 0; }
.qa .ans { margin-top: 8px; }
.qa .more { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Publisher note */
.ulsa { margin-top: 64px; padding: 20px 20px 22px; background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--cloth); max-width: 780px; }
.ulsa h2 { font: 500 21px/1.2 var(--slab); }
.ulsa-body p { margin-top: 12px; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.go span { flex: 1 1 240px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 2px; background: var(--cloth); color: var(--buff); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color 140ms var(--ease); }
.btn:hover { background: var(--cloth-2); color: #ffffff; }

/* Back matter: the reference list, then the colophon band */
.foot { margin-top: 72px; font-size: 13.5px; line-height: 1.5; }
.foot > .wrap { padding-bottom: 40px; }
.refs { border-top: 4px double var(--ink); padding-top: 20px; }
.refs h2 { font: 500 21px/1.2 var(--slab); }
.refsnote { color: var(--ink-2); margin-top: 4px; }
.refs ol { margin-top: 16px; padding-left: 28px; font-variant-numeric: tabular-nums; }
.refs li { margin-top: 6px; padding-left: 4px; overflow-wrap: anywhere; break-inside: avoid; }
.refs li::marker { color: var(--ink-3); }
.colophon { background: var(--cloth); color: var(--buff-2); border-top: 6px solid var(--cloth-2); }
.colophon .pub { padding-top: 18px; padding-bottom: 22px; }
.pub a { margin-left: 12px; color: var(--buff); text-decoration-color: var(--gilt); }
.pub a:hover { color: #ffffff; }
.colophon :focus-visible { outline-color: var(--buff); box-shadow: none; }

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .site .name { font-size: 40px; }
  .cover .cover-in { padding-top: 32px; padding-bottom: 18px; }
  .imprint { font-size: 16px; }
  .run ul { gap: 0 28px; font-size: 15px; }
  h1 { font-size: 40px; }
  .lede { font-size: 19px; }
  .chart.wide { display: block; }
  .chart.narrow { display: none; }
  tbody th, tfoot th, thead tr > :first-child { min-width: 200px; max-width: none; }
  .rank { padding: 22px 24px 20px; --cols: 208px minmax(0, 1fr); }
  .bhead { display: grid; grid-template-columns: var(--cols); column-gap: 16px; align-items: end; padding-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .ax { position: relative; display: block; height: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
  .ax i { position: absolute; bottom: 0; font-style: normal; transform: translateX(-50%); }
  .ax i:first-child { transform: none; }
  .gl { display: grid; grid-template-columns: var(--cols); column-gap: 16px; position: absolute; inset: 0; pointer-events: none; }
  .gl span { grid-column: 2; position: relative; }
  .gl i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
  .pick { grid-template-columns: repeat(4, 1fr); }
  .opt:nth-of-type(n) { border-right: 1px solid var(--line); }
  .opt:nth-of-type(4n) { border-right: 0; }
  .ok { display: block; }
  .oa { max-width: 84px; }
  .on { font-size: 14.5px; align-self: auto; }
  .row { padding: 3px 0; }
  dl.def { columns: 2; column-gap: 24px; }
  dl.def div { break-inside: avoid; }
}
@media (min-width: 1000px) {
  .wrap { padding: 0 32px; }
  .navlab { display: block; }
  .release.split { display: grid; grid-template-columns: minmax(0, 1fr) 372px; column-gap: 64px; align-items: start; padding-top: 36px; }
  h1 { font-size: 44px; }
  .keys, .contents.rail { margin-top: 6px; }
  .rank-in { grid-template-columns: 296px minmax(0, 1fr); gap: 40px; align-items: start; }
  .side { display: block; }
  .rl { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  .pick { grid-template-columns: 1fr; }
  .pick .opt:nth-of-type(n) { border-right: 0; padding: 7px 10px; }
  dl.def { columns: auto; margin-top: 16px; padding-top: 12px; border-top: 3px double var(--ink); }
  dl.def div + div { margin-top: 8px; }
  .refs ol { columns: 2; column-gap: 48px; }
}
@media (min-width: 1200px) {
  .scroll, .scroll.tall { overflow: visible; max-height: none; }
  .matrix table { table-layout: fixed; }
  .matrix th, .matrix td { min-width: 0; }
  .matrix thead tr > :first-child { width: 224px; }
  .rank { --cols: 264px minmax(0, 1fr); }
  /* Hanging section titles in the margin; wide tables span the full page */
  .sec { display: grid; grid-template-columns: 216px minmax(0, 1fr); column-gap: 48px; align-content: start; }
  .sec > * { grid-column: 2; min-width: 0; }
  .sec > h2 { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .sec > .full { grid-column: 1 / -1; }
  .full .notes { max-width: none; display: grid; grid-template-columns: 5fr 4fr 3fr; column-gap: 40px; }
  .full .notes div + div { margin-top: 0; }
  .sec > h2 ~ .full:nth-child(2) { margin-top: 20px; }
  .sec > h2 + .tbl, .sec > h2 + .fig { margin-top: 0; }
  .prose.two { columns: 2; column-gap: 36px; }
  .prose.two > * { max-width: none; break-inside: avoid-column; }
  .prose.two > p { break-inside: auto; orphans: 3; widows: 3; }
  .qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
  .qa .q:nth-child(2) h3 { margin-top: 0; }
  .ulsa { margin-left: 264px; }
  .refs ol { columns: 3; column-gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .scroll, .scroll.tall { overflow: visible; max-height: none; }
  .run, .ulsa, .pick { display: none; }
}

/* AI disclosure line (added by the build) keeps the colophon's gutters */
.colophon .ai-note { max-width: 1328px !important; margin: 8px auto 0 !important; padding: 0 clamp(16px, 2.5vw, 32px) 20px; }
