/* Legis reader: margin numbers and the violet stamp (design 9). No web fonts, no images. */

:root {
  --paper: #F4F6F8; --ink: #1C2230; --pencil: #5E6675; --rule: #D5DAE1; --control: #868E9C;
  --stamp: #5B3FA0; --wash: #ECE7F7; --note-rule: #C9BDEA; --sheet: #FFFFFF;
  --serif: "PT Serif", "Source Serif 4", Georgia, "Noto Serif", "DejaVu Serif", serif;
  --sans: "PT Sans", "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --margin: 4.5rem; --measure: 66ch; --toc: 18rem; --gutter: 1.5rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171C; --ink: #E4E7EC; --pencil: #9AA3B2; --rule: #2A303A; --control: #646D7C;
    --stamp: #B7A3F0; --wash: #2B2545; --note-rule: #4A3F78; --sheet: #1B1F26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14171C; --ink: #E4E7EC; --pencil: #9AA3B2; --rule: #2A303A; --control: #646D7C;
  --stamp: #B7A3F0; --wash: #2B2545; --note-rule: #4A3F78; --sheet: #1B1F26;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--sans); overflow-wrap: break-word;
}
[hidden] { display: none !important; }
a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.pencil { color: var(--pencil); }
h1, h2, h3 { margin: 0; font-weight: 400; }
code.sha { font-size: .8125rem; overflow-wrap: anywhere; }

/* Controls: the only rounded things */
input[type="search"], input[type="text"] {
  font: inherit; font-size: .9375rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--control); border-radius: 4px; padding: .45rem .6rem; min-width: 0;
}
input[type="search"]:focus-visible, input[type="text"]:focus-visible { border-color: var(--stamp); }
button {
  font: inherit; font-size: .9375rem; color: var(--stamp); background: transparent;
  border: 1px solid var(--stamp); border-radius: 4px; padding: .45rem .85rem; cursor: pointer;
}
button:hover { background: var(--wash); }

/* Skip link */
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 2; padding: .5rem .75rem;
  background: var(--paper); border: 1px solid var(--stamp); border-radius: 4px;
}
.skip:focus { top: .5rem; }

/* Header */
.top-in {
  max-width: 76rem; margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { font: 400 1.0625rem/1.2 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.qs { flex: 1 1 auto; display: flex; gap: .5rem; max-width: 26rem; }
.qs input { flex: 1; }
.qs-link { display: none; font-size: .9375rem; }
.langs { margin-left: auto; display: flex; gap: 1rem; font-size: .9375rem; }
.langs a { text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs .lc { color: var(--ink); }
.ls { display: none; }
.theme { border-color: transparent; padding: .35rem; line-height: 0; color: var(--ink); }
.theme[data-state="light"] path { opacity: 0; }
.theme[data-state="dark"] circle { fill: currentColor; }

/* Footer */
.foot { margin-top: 4rem; }
.foot-in {
  max-width: 76rem; margin: 0 auto; padding: 1.5rem var(--gutter) 2.5rem;
  font-size: .8125rem; color: var(--pencil);
}
.foot-in p { margin: 0 0 .35rem; }
.foot-in a { margin-right: 1rem; }

/* Act page: TOC | head + text */
main.act {
  max-width: 76rem; margin: 0 auto; padding: 1rem var(--gutter) 2rem;
  display: grid; grid-template-columns: var(--toc) minmax(0, 1fr); column-gap: 3rem;
  grid-template-areas: "toc head" "toc text";
}
main.act.no-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text"; }
.ahd { grid-area: head; padding-left: var(--margin); max-width: calc(var(--margin) + 38rem); min-width: 0; }
.text {
  grid-area: text; min-width: 0; max-width: calc(var(--margin) + var(--measure));
  font: 400 1.0625rem/1.6 var(--serif);
}
.dsg { font: 400 .9375rem/1.4 var(--sans); color: var(--pencil); margin: .5rem 0 .4rem; }
.ahd h1 { font: 400 2.25rem/1.15 var(--serif); margin: 0 0 1.5rem; text-wrap: balance; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .75rem 2rem; margin: 0 0 1.25rem;
}
.facts div { min-width: 0; }
.facts dt { font-size: .8125rem; color: var(--pencil); }
.facts dd { margin: 0; font-size: .9375rem; line-height: 1.45; }

.disc { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0 0 2rem; font-size: .9375rem; }
.disc details[open] { flex-basis: 100%; }
.disc summary { cursor: pointer; color: var(--stamp); }
.disc ol, .disc ul { margin: .75rem 0 .5rem; }
.vl, .aml { padding-left: 1.25rem; }
.vl li, .aml li { margin: .2rem 0; font-variant-numeric: tabular-nums; }
.disc .list { padding: 0; }
.disc p { margin: .25rem 0 0; font-size: .8125rem; }

/* TOC */
.toc {
  grid-area: toc; position: sticky; top: 0; align-self: start;
  max-height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  padding: .5rem .25rem 2rem 0; font-size: .9375rem; line-height: 1.35;
}
.tocd > summary { cursor: pointer; font-weight: 700; padding: .4rem 0 .6rem; }
.tc { font-weight: 400; color: var(--pencil); }
.goto { margin: 0 0 1rem; font-size: .8125rem; color: var(--pencil); }
.goto label { display: block; margin-bottom: .3rem; }
.gr { display: flex; gap: .4rem; }
.gr input { width: 6rem; }
.goto output { display: block; margin-top: .35rem; color: var(--ink); }
.goto output:empty { display: none; }
.tl { list-style: none; margin: 0; padding: 0; }
.toc-in > .tl { border-left: 1px solid var(--rule); }
.tl .tl { margin: 0 0 .5rem; }
.tl a {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem;
  padding: .2rem .5rem .2rem 0; color: var(--ink); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -1px;
}
.tl a:hover .tt { text-decoration: underline; }
.tl a[aria-current] { border-left-color: var(--stamp); color: var(--stamp); }
.tn { text-align: right; color: var(--stamp); font-variant-numeric: tabular-nums; }
.tt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt.rep { font-style: italic; color: var(--pencil); }
.tp > summary { cursor: pointer; color: var(--pencil); padding: .45rem .5rem .3rem .75rem; }
/* The part link sits inside .tl, so undo the two-column grid of article links (it squeezed part titles into 2.6rem). */
.tp > summary a { display: inline; padding: 0; margin: 0; border: 0; color: inherit; text-decoration: none; }
.tp > summary a:hover { color: var(--ink); text-decoration: underline; }
.ts a { display: block; color: var(--pencil); padding: .3rem .5rem .2rem 1.5rem; }

/* Text column */
.text > :not(.art) { margin-left: var(--margin); }
.text p { margin: 0 0 .75em; }
.art { padding-left: var(--margin); content-visibility: auto; contain-intrinsic-size: auto 30rem; }
.ah {
  display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); align-items: baseline;
  margin: 2.25rem 0 .75rem calc(-1 * var(--margin)); padding: .15rem 0;
}
.mn {
  justify-self: end; padding-right: 1rem; font: 400 1.625rem/1 var(--sans);
  font-variant-numeric: tabular-nums; color: var(--stamp); text-decoration: none;
}
.mn:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.al { display: block; font: 400 .9375rem/1.4 var(--sans); color: var(--pencil); }
.at { display: block; font: 700 1.3125rem/1.3 var(--serif); color: var(--ink); margin-top: .1rem; }
.at.rep { font: italic 400 1.0625rem/1.4 var(--serif); color: var(--pencil); }
.pt { margin-top: 3.5rem; margin-bottom: 1rem; font: 400 1.5rem/1.25 var(--serif); text-wrap: balance; }
.pt.lv4, .pt.lv5 { font-size: 1.25rem; margin-top: 2.5rem; }
.pd { display: block; font: 400 .9375rem/1.4 var(--sans); color: var(--pencil); margin-bottom: .2rem; }
.pn.caps { font-size: .86em; letter-spacing: .03em; }
.pk { padding-left: 2.2em; text-indent: -2.2em; }
.pi { padding-left: 4.4em; text-indent: -2.2em; }
.hn { display: inline-block; min-width: 2.2em; text-indent: 0; }
.note {
  font: 400 .8125rem/1.5 var(--sans); color: var(--pencil);
  border-left: 2px solid var(--note-rule); padding-left: .75rem; margin: -.25rem 0 1rem;
}
html.notes-off .note { display: none; }
.text hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
.tail { margin-top: 2.5rem; color: var(--pencil); font-size: .9375rem; }
.seg, .missing { font: 400 .8125rem/1.5 var(--sans); color: var(--pencil); }
/* Version banner (design 16): the text is not the version that applied on the snapshot date. */
.vb { margin: 0 0 1.25rem; padding: .55rem .8rem; max-width: var(--measure); border-left: 3px solid var(--stamp);
  background: var(--wash); font: 400 .875rem/1.5 var(--sans); }
.vb.soft { background: none; border-left-color: var(--rule); color: var(--pencil); }
.bar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.nsw { font-size: .8125rem; padding: .3rem .7rem; color: var(--pencil); border-color: var(--rule); }
.nsw:not([data-state="off"]) { color: var(--stamp); border-color: var(--stamp); }
.nsw[data-state="off"] { border-color: var(--control); }
.ah h3[tabindex="-1"]:focus { outline: none; }
/* The source's own list of amending acts, folded above the text */
.mal { margin: 0 0 1rem; font: 400 .9375rem/1.5 var(--sans); }
.mal summary { cursor: pointer; color: var(--stamp); padding: .25rem 0; }
.mal[open] summary { margin-bottom: .5rem; }
.mal p { margin: 0 0 .2rem; font-variant-numeric: tabular-nums; }
/* An anchor that this language's text lacks (after a language switch) */
.miss-note {
  font: 400 .9375rem/1.5 var(--sans); color: var(--ink);
  border-left: 2px solid var(--stamp); padding-left: .75rem; margin-bottom: 1.5rem;
}

/* Links to other acts: violet; unresolved references: pencil, dotted */
.text a, .disc a { color: var(--stamp); }
a.ext { text-decoration-style: dotted; }
.ref { color: var(--pencil); text-decoration: underline dotted 1px; text-underline-offset: .15em; cursor: help; }
/* Unresolved: a glyph after the text, so the cue is not colour alone (design 15.6). Empty
   alternative text, not copied with a selection; line-height 0 keeps the line box. An
   inline-block inherits the hanging indent of .pk and .pi, so text-indent is reset as on .hn. */
a.amb { text-decoration-style: dotted; }
.ref::after, a.amb::after {
  content: "?"; content: "?" / ""; display: inline-block; margin-left: .08em; text-indent: 0;
  font: 700 .72em/0 var(--sans); vertical-align: .55em; color: var(--pencil); text-decoration: none;
}
.ref-repealed::after { content: "†"; content: "†" / ""; }
.ref[role="button"] { cursor: pointer; }

/* Preview card on citations (design 15.5): a white sheet on the grey page, no shadow.
   Header, title and actions stay put; when the card is cut to the room by the link, only the
   middle (.pv-s: facts and text) scrolls, so the actions are always in view. */
.pv {
  position: absolute; z-index: 10; top: 0; left: 0; width: min(32rem, calc(100vw - 32px));
  display: flex; flex-direction: column; overflow: hidden; padding: .7rem 1rem .85rem;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--control); border-radius: 4px;
  font: 400 .9375rem/1.45 var(--sans); animation: pv-in .12s ease-out;
}
.pv > * { flex: none; }
.pv > .pv-s { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@keyframes pv-in { from { opacity: 0; } }
.pv a { color: var(--stamp); }
.pv-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pv-d { margin: 0; font: 400 .8125rem/1.4 var(--sans); color: var(--pencil); }
.pv-x { flex: none; font-size: .8125rem; padding: .2rem .6rem; color: var(--pencil); border-color: var(--rule); }
.pv-t {
  margin: .15rem 0 .5rem; font: 400 1.0625rem/1.35 var(--serif); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pv-f {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .15rem .75rem;
  margin: 0 0 .65rem; font: 400 .8125rem/1.4 var(--sans);
}
.pv-f dt { color: var(--pencil); }
.pv-f dd { margin: 0; }
.pv-b { border-top: 1px solid var(--rule); padding-top: .6rem; font: 400 .9375rem/1.5 var(--serif); }
.pv-b[aria-busy="true"] { min-height: 4.5em; color: var(--pencil); font-family: var(--sans); }
.pv-b p { margin: 0 0 .4em; }
/* the numeral column grows for 1121 or 12¹: the scrolling middle clips what spills left */
.pv-ar { display: grid; grid-template-columns: minmax(2.75rem, max-content) minmax(0, 1fr); align-items: baseline; }
.pv-n {
  justify-self: end; padding-right: .75rem; font: 400 1.25rem/1 var(--sans);
  font-variant-numeric: tabular-nums; color: var(--stamp);
}
.pv-b .pv-al { margin: 0; font: 400 .8125rem/1.4 var(--sans); color: var(--pencil); }
.pv-b .pv-at { margin: 0 0 .3rem; font: 700 .9375rem/1.4 var(--serif); }
.pv-a {
  display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin: .5rem 0 0; padding-top: .45rem;
  border-top: 1px solid var(--rule); font: 400 .9375rem/1.4 var(--sans);
}
.pv-a:empty { display: none; }
.pv-b .pv-why { font-family: var(--sans); }
.pv .list > li { padding: .3rem 0; }
.pv .list .ttl { font-size: .9375rem; }
.pv-b .pv-li { padding-left: 1.25em; }

/* The way back to a same-page link the reader followed (inpage.js): small, under the card */
.lr-back {
  position: fixed; z-index: 9; padding: .4rem .8rem; background: var(--sheet);
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font: 400 .9375rem/1.2 var(--sans); animation: pv-in .12s ease-out;
}
.lr-from { animation: wash 1.6s ease-out both; }

/* Tables scroll in their own labelled region */
.tw { overflow-x: auto; margin: 1rem 0 1.25rem var(--margin); max-width: 100%; }
.tw table { border-collapse: collapse; font: 400 .9375rem/1.45 var(--serif); }
.tw th, .tw td { border: 1px solid var(--rule); padding: .35rem .55rem; vertical-align: top; text-align: left; min-width: 4rem; }
.tw th { font-family: var(--sans); font-weight: 700; }

/* :target is the only motion */
:target { scroll-margin-top: 1rem; }
.ah:has(> h3:target), .text p:target, .pt:target { animation: wash 1.6s ease-out .15s both; }
@keyframes wash { from { background: var(--wash); } to { background: transparent; } }

/* Shared list style: designation link, title, status */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .55rem 0; }
.list .dsg, .sr-link { font: 400 .9375rem/1.4 var(--sans); margin: 0; }
.list .ttl, .sr-title { display: block; font: 400 1.0625rem/1.45 var(--serif); color: var(--ink); }
.sr-link { display: block; text-decoration: none; }
.sr-link .sr-dsg { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.sr-link:hover .sr-title { text-decoration: underline; text-decoration-thickness: 1px; }
.sr-jump-title { color: var(--pencil); }
.list .st, .sr-status { font-size: .8125rem; color: var(--pencil); }

/* Home */
main.home, main.listing, main.search, main.prose { max-width: 76rem; margin: 0 auto; padding: 2.5rem var(--gutter) 2rem; }
main.listing > *, main.search > * { max-width: 48rem; }
main.home h1 { font: 400 2.25rem/1.15 var(--serif); margin: 1rem 0 1.5rem; }
.hs { max-width: 44rem; }
.hs, .hs-row { display: flex; gap: .5rem; }
.search .hs { display: block; }
.hs input { flex: 1; font-size: 1.0625rem; padding: .7rem .85rem; }
.hs button { font-size: 1rem; padding: .7rem 1.1rem; }
.fl { color: var(--pencil); font-size: .9375rem; margin: .75rem 0 3rem; }
.hero { margin: 0 0 3.5rem; padding-left: var(--margin); max-width: calc(var(--margin) + 40rem); }
.hero .ah { margin-top: 0; }
.hero .mn { font-size: 1.625rem; }
.hl { margin: 0; font: 700 1.3125rem/1.3 var(--serif); }
.hl a { color: var(--ink); text-decoration-color: var(--rule); }
.hl a:hover { text-decoration-color: var(--stamp); }
.hero blockquote { margin: 0; font: 400 1.0625rem/1.6 var(--serif); }
.hero blockquote p { margin: 0; }
.hero figcaption { margin-top: .5rem; font: 400 .8125rem/1.4 var(--sans); color: var(--pencil); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.cols h2, .prose h2 { font: 400 1.5rem/1.25 var(--serif); margin: 0 0 1rem; }
.codes { list-style: none; margin: 0; padding: 0; font: 400 1.0625rem/1.45 var(--serif); }
.codes li { padding: .3rem 0; }
.codes a { color: var(--ink); text-decoration-color: var(--rule); }
.codes a:hover { color: var(--stamp); text-decoration-color: var(--stamp); }
.yr { color: var(--pencil); font: 400 .9375rem var(--sans); }
.years {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .25rem 1rem;
}
.years a { display: block; padding: .35rem 0; text-decoration: none; }
.years .y { display: block; font: 400 1.25rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--stamp); }
.years .c { display: block; font-size: .8125rem; color: var(--pencil); }
.years a:hover .y { text-decoration: underline; text-decoration-thickness: 1px; }

/* Listings, search, about */
main.listing h1, main.search h1, main.prose h1 { font: 400 2.25rem/1.15 var(--serif); margin: .5rem 0 1rem; }
.crumb { margin: 0; font-size: .9375rem; }
.listing .fl { margin-bottom: 1.5rem; }
.cats { border: 0; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.cats label { display: inline-flex; gap: .4rem; align-items: center; font-size: .9375rem; cursor: pointer; }
.cats input { accent-color: var(--stamp); margin: 0; }
.status { color: var(--pencil); font-size: .9375rem; margin: 1.5rem 0 1rem; }
#search-jump { margin: 0 0 1.5rem; padding-left: 1rem; border-left: 2px solid var(--stamp); }
#search-jump p { margin: 0 0 .25rem; color: var(--pencil); font-size: .8125rem; }
#search-jump ul { list-style: none; margin: 0; padding: 0; }
.sr-wait { color: var(--pencil); font-size: .9375rem; }
.sr-excerpt { display: block; margin: .25rem 0 0; font: 400 .9375rem/1.5 var(--serif); color: var(--ink); }
.sr-subs { list-style: none; margin: .5rem 0 0; padding: 0 0 0 1rem; border-left: 1px solid var(--rule); }
.sr-subs li { margin: .35rem 0; font-size: .9375rem; }
.sr-subs a { font-family: var(--sans); }
mark { background: var(--wash); color: inherit; padding: 0 .1em; }
#search-more { margin-top: 1rem; }
.prose { font: 400 1.0625rem/1.6 var(--serif); }
.prose > * { max-width: 40rem; }
.prose h2 { margin-top: 2.5rem; }

/* Root chooser and 404 */
main.root { max-width: 40rem; margin: 0 auto; padding: 18vh var(--gutter) 4rem; }
main.root h1, main.root .h1 { font: 400 2.25rem/1.15 var(--serif); margin: 0 0 .25rem; }
main.root > p { font: 400 1.5rem/1.2 var(--serif); color: var(--pencil); margin: 0 0 2.5rem; }
.pick { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; font-size: 1.25rem; }
main.nf > div { margin-bottom: 2.5rem; }
main.nf p a { margin-right: 1.25rem; }

/* 720-1100: TOC becomes a disclosure above the text */
@media (max-width: 1099.98px) {
  main.act { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "text"; }
  .toc {
    position: static; max-height: none; overflow: visible; padding: 0;
    margin: 0 0 1rem var(--margin); max-width: calc(var(--margin) + 38rem);
  }
  .tocd > summary {
    display: list-item; width: fit-content; font-weight: 400; padding: .45rem .85rem;
    border: 1px solid var(--control); border-radius: 4px;
  }
  .tocd[open] > summary { margin-bottom: .75rem; }
}

/* Under 720 (checked at 360): inline numerals, no page scroll sideways */
@media (max-width: 719.98px) {
  :root { --gutter: 1rem; }
  .top-in { gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
  .qs { display: none; }
  .qs-link { display: inline-block; margin-left: auto; }
  /* touch targets: 24px or more (WCAG 2.5.8) */
  .langs a, .langs .lc, .qs-link, .brand, .foot-in a { display: inline-block; min-height: 24px; padding: .25rem 0; }
  .disc summary, .mal summary { padding: .3rem 0; }
  .langs { margin-left: 0; gap: .75rem; }
  .lf { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ls { display: inline; }
  .ahd, .art { padding-left: 0; }
  .toc, .text > :not(.art), .tw { margin-left: 0; }
  .ahd h1, main.home h1, main.listing h1, main.search h1, main.prose h1, main.root h1, main.root .h1 { font-size: 1.75rem; }
  .ah { display: flex; gap: .5rem; margin-left: 0; }
  .mn { padding-right: 0; font-size: 1.25rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
  .hero { padding-left: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .hs-row input, .hs input { font-size: 1rem; }
  .pi { padding-left: 3.3em; }
}

@media (prefers-reduced-motion: reduce) {
  .ah:has(> h3:target), .text p:target, .pt:target { animation: none; background: var(--wash); }
  .pv, .lr-back { animation: none; }
  .lr-from { animation: none; background: var(--wash); }
}

@media print {
  .top, .toc, .disc, .bar, .skip, .foot, .theme, .citation-status, .pv, .lr-back { display: none !important; }
  .ref::after, a.amb::after { content: none; }
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --paper: #fff; --ink: #000; --pencil: #444; --stamp: #000; --wash: #fff; --rule: #ccc; }
  body { font-size: 11pt; }
  main.act { display: block; padding: 0; }
  .ahd, .art { padding-left: 0; }
  .text { max-width: none; }
  .text > :not(.art), .tw { margin-left: 0; }
  .art { content-visibility: visible; }
  .ah { display: flex; gap: .5rem; margin-left: 0; break-after: avoid; }
  .mn { padding-right: 0; font-size: 1.1rem; }
  a { color: inherit; text-decoration: none; }
  .vb a.ext::after { content: " (" attr(href) ")"; font-size: .8em; overflow-wrap: anywhere; }
  .ah:has(> h3:target), .text p:target, .pt:target { animation: none; background: none; }
}
