/* fonts: vendored from concepts/sleepy2/fonts (SIL OFL, licences beside them) */
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/SchibstedGrotesk-Italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/assets/fonts/SplineSansMono.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
/* palette: from concepts/sleepy2/shared.css */
:root {
  --night: #221F33;    /* the dark ground: claims, questions, news; the avatar disc */
  --ink: #221F33;      /* text and rules on paper */
  --paper: #EFEDF4;    /* the light ground: measured results */
  --char: #A594EE;     /* the character, and only the character. The same in every palette */
  --feat: #221F33;     /* the character's features */
  --white: #F7F6FB;    /* eye whites, when the whites option is on */
  --wake: #FFC940;     /* the one value that matters: a band on paper, the question mark on night */
  --dot: #BAB7C6;      /* other arms, dominated data */
  --mute: #6C6979;     /* secondary text on paper */
  --rule: #D5D2DF;     /* hairlines on paper */
  --nmute: #B3AECB;    /* secondary text on night */
  --night2: #2E2A45;   /* a raised surface on night */
    
}
/* modelfatigue.news. The palette tokens above this line are copied by build.py from
 * concepts/sleepy2/shared.css ([data-pal="lilac"]), so the site and the brand can't drift; the page roles
 * and the layout follow the approved homepage concept (concepts/sleepy2/home/home.css). Dark mode swaps the
 * roles, never the palette (PALETTE.md). */
:root, [data-theme="light"] {
  --pg: var(--paper); --tx: var(--ink); --tx2: var(--mute); --hair: var(--rule); --heavy: var(--ink);
  --frame: var(--rule); --chip-bg: var(--ink); --chip-fg: var(--paper); --raised: #F7F6FB;
}
[data-theme="dark"] {
  --pg: var(--night); --tx: var(--paper); --tx2: var(--nmute); --hair: #3A3552; --heavy: var(--paper);
  --frame: #3A3552; --chip-bg: var(--paper); --chip-fg: var(--night); --raised: var(--night2);
}
:root { --f-disp: 'Schibsted Grotesk', sans-serif; --f-num: 'Spline Sans Mono', monospace; --dp-ls: -0.18em; --dp-ml: -0.06em; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-disp); font-weight: 400; background: var(--pg); color: var(--tx); min-height: 100vh;
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--wake); outline-offset: 3px; }
.wrap { max-width: 1312px; margin: 0 auto; }
.n { font-family: var(--f-num); font-feature-settings: 'tnum' 1; font-weight: 600; letter-spacing: -0.04em; word-spacing: -0.22em; }
.n .dp { letter-spacing: var(--dp-ls); margin-left: var(--dp-ml); }
/* in running text a figure keeps the number face but not the weight */
.prose .n, .note .n, .lede .n, .news p .n, .when .n, .meta .n, td.w .n, .src-list .n, .cap .n, .fig-cap .n { font-weight: 400; letter-spacing: -0.02em; }
a.ref { text-decoration: none; color: inherit; }
a.ref:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
.upd { font-family: var(--f-num); font-size: 0.72em; color: var(--tx2); margin-left: 0.25em; white-space: nowrap; }
.upd b { font-weight: 600; color: var(--tx); }

/* wordmark: the i's tittle is BB's half-lidded eye (shared.css) */
.wm { font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; text-decoration: none; }
.wm .i { position: relative; display: inline-block; }
.wm .i::after { content: ''; position: absolute; left: 50%; top: 0.14em; width: 0.21em; height: 0.1em; transform: translateX(-50%);
  background: currentColor; border-radius: 0 0 0.1em 0.1em; }
.wm .i::before { content: ''; position: absolute; left: 50%; top: 0.105em; width: 0.28em; height: 0.055em; transform: translateX(-50%);
  background: currentColor; border-radius: 0.03em; }

/* header */
.hd { display: flex; align-items: center; justify-content: space-between; height: 76px; border-bottom: 2px solid var(--heavy); }
.hd .wm { font-size: 32px; }
.hd nav { display: flex; gap: 28px; align-items: center; font-size: 16px; font-weight: 700; margin-left: auto; margin-right: 28px; }
.hd nav a { text-decoration: none; }
.hd nav a.on { box-shadow: inset 0 -3px 0 currentColor; padding-bottom: 3px; }
.mode { font: inherit; font-size: 15px; color: var(--tx); background: none; border: 2px solid var(--tx); border-radius: 18px;
  padding: 4px 12px 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.mode i { width: 12px; height: 12px; border-radius: 50%; background: var(--tx); box-shadow: inset -4px 0 0 var(--pg); }

/* chips */
.st { display: inline-block; font-family: var(--f-num); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; line-height: 1;
  padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.st.pub { background: var(--chip-bg); color: var(--chip-fg); }
.st.nmy { background: var(--wake); color: var(--ink); }
.st.prop { box-shadow: inset 0 0 0 1.5px currentColor; }
.k { font-size: 16px; font-weight: 700; color: var(--tx2); margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }

/* home: hero */
.hero { position: relative; padding: 40px 0 30px; border-bottom: 6px solid var(--heavy); min-height: 300px; }
.hero h1 { max-width: 940px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; font-size: clamp(40px, 8.4vw, 112px); }
.hero p { margin-top: 20px; max-width: 760px; font-size: 20px; line-height: 1.42; color: var(--tx2); }
.hero .bb { position: absolute; right: 70px; bottom: 0; width: 150px; }
/* home: latest video | news | table */
.cols { display: grid; grid-template-columns: 576px 1fr 328px; column-gap: 48px; padding: 34px 0 48px; }
.thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--frame); background: var(--paper); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead > a { text-decoration: none; }
.lead h2 { margin-top: 20px; font-size: 30px; font-weight: 700; line-height: 1.13; letter-spacing: -0.02em; }
a:hover h2, a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.meta { margin-top: 10px; font-size: 15px; color: var(--tx2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { margin-top: 22px; padding-top: 20px; border-top: 1.5px solid var(--hair); }
.lede p { font-size: 17px; line-height: 1.6; max-width: 34em; }
.lede p + p { margin-top: 14px; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 16px; border-bottom: 2px solid var(--tx); padding-bottom: 1px; text-decoration: none; }
.news .item { padding: 18px 0 20px; border-top: 1.5px solid var(--hair); }
.news .item:first-of-type { border-top: 2px solid var(--heavy); }
.when { font-size: 14px; color: var(--tx2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.when b { color: var(--tx); font-weight: 700; }
.news h3 { margin-top: 8px; font-size: 21px; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
.news p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--tx2); }
.news .st { margin-top: 10px; }
.news .src { margin-top: 8px; font-size: 13.5px; color: var(--tx2); }
.news .src a, .note a { color: var(--tx2); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { white-space: nowrap; text-align: right; font-weight: 700; color: var(--tx2); font-size: 14px; padding: 0 0 8px 12px; }
.tbl th:first-child { text-align: left; padding-left: 0; }
.tbl td { padding: 6px 0 6px 12px; border-top: 1.5px solid var(--hair); text-align: right; font-family: var(--f-num); font-size: 15px; letter-spacing: -0.03em; }
.tbl td:first-child { text-align: left; font-family: var(--f-disp); font-size: 14.5px; letter-spacing: 0; padding-left: 25px; color: var(--tx2); }
.tbl tr.f td:first-child { font-weight: 700; color: var(--tx); padding-left: 0; }
.tbl tr.f td:first-child::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--wake); box-shadow: 0 0 0 2.5px var(--tx); margin: 0 10px 1px 2px; vertical-align: middle; }
.note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--tx2); }
.tbl .also { margin-top: 26px; padding-top: 16px; border-top: 2px solid var(--heavy); }
.tbl .also a { display: block; padding: 7px 0; font-weight: 700; font-size: 15.5px; border-bottom: 1.5px solid var(--hair); text-decoration: none; }
/* home: by question */
.byq { border-top: 6px solid var(--heavy); padding: 36px 0 52px; }
.byq .head { display: flex; justify-content: space-between; align-items: baseline; gap: 40px; }
.byq .head h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.byq .head p { font-size: 16.5px; color: var(--tx2); max-width: 520px; line-height: 1.45; }
.fams { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 28px; }
.stem { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; min-height: 72px; }
.stem .ell { color: var(--tx2); }
.q { display: grid; grid-template-columns: 120px 1fr; column-gap: 13px; padding: 13px 0; border-top: 2px solid var(--heavy); text-decoration: none; }
.q .qt { font-size: 15.5px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.q .s { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.q .st { font-size: 11.5px; padding: 3px 5px; }
.q.ans { background: var(--wake); color: var(--ink); margin: 0 -10px; padding: 13px 10px; }
.q.ans .st.pub { background: var(--ink); color: var(--paper); }
.q.ans .st.nmy { box-shadow: inset 0 0 0 1.5px var(--ink); }
.q.ans .qt { color: var(--ink); }
.none { padding: 13px 0; border-top: 2px solid var(--heavy); font-size: 14.5px; color: var(--tx2); }

/* video page */
.vhead { padding: 34px 0 26px; border-bottom: 6px solid var(--heavy); }
.vhead .k { margin-bottom: 12px; }
.vhead h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 1000px; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'pl side' 'chap side'; grid-template-rows: auto 1fr; column-gap: 56px; padding: 32px 0 20px; }
.vgrid > div { grid-area: pl; } .vgrid > .side { grid-area: side; } .vgrid > .chap { grid-area: chap; align-self: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--frame); background: #000; }
.player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.player button img { width: 100%; height: 100%; object-fit: cover; }
.player button .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 60px; transform: translate(-50%, -50%); background: var(--ink);
  border-radius: 12px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper); }
.player button .play::after { content: ''; border-left: 22px solid var(--paper); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.player button:hover .play, .player button:focus-visible .play { background: var(--wake); }
.player button:hover .play::after, .player button:focus-visible .play::after { border-left-color: var(--ink); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .yt-note { position: absolute; left: 12px; bottom: 10px; font-size: 12.5px; color: var(--paper); background: rgba(34,31,51,.82); padding: 4px 8px; border-radius: 3px; }
.side h2 { font-size: 16px; font-weight: 700; color: var(--tx2); margin-bottom: 10px; }
.side .lede { margin-top: 0; padding-top: 0; border-top: 0; }
.side .lede p { font-size: 17px; }
.chap { margin-top: 26px; }
.chap h2 { font-size: 16px; font-weight: 700; color: var(--tx2); margin-bottom: 10px; }
.chap ol { list-style: none; border-top: 2px solid var(--heavy); columns: 2; column-gap: 32px; }
.chap li { break-inside: avoid; }
.chap li { border-top: 1.5px solid var(--hair); }

.chap a { display: grid; grid-template-columns: 56px 1fr; padding: 7px 0; font-size: 15px; text-decoration: none; }
.chap a:hover span:last-child { text-decoration: underline; }
.chap .n { font-weight: 400; color: var(--tx2); }
.box { margin: 8px 0 0; padding: 14px 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--hair); font-size: 15px; line-height: 1.5; }
.box h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.box ul { margin-left: 18px; }
.box li + li { margin-top: 6px; }
.box.upd-box { box-shadow: inset 4px 0 0 var(--wake), inset 0 0 0 1.5px var(--hair); }

.vbody { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; padding: 10px 0 40px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: 14.5px; }
.toc h2 { font-size: 16px; font-weight: 700; color: var(--tx2); margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; border-top: 1.5px solid var(--hair); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 42em; }
.prose h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 46px 0 14px; padding-top: 16px; border-top: 2px solid var(--heavy); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.prose h2:first-child { margin-top: 10px; }
.prose h2 .at { font-size: 15px; font-weight: 400; color: var(--tx2); text-decoration: none; white-space: nowrap; }
.prose h2 .at:hover { color: var(--tx); text-decoration: underline; }
.prose p { font-size: 18px; line-height: 1.62; margin-top: 14px; }
.prose a:not(.ref):not(.at) { text-underline-offset: 3px; }
.prose q, .prose .qt { quotes: '“' '”'; }

/* figures */
.fig { margin: 30px 0 8px; }
.fig h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.fig .sub { margin-top: 4px; font-size: 15px; color: var(--tx2); line-height: 1.4; }
.fig .plot { margin-top: 14px; }
.fig .plot svg { width: 100%; height: auto; overflow: visible; }
.fig .narrow { display: none; }
.fig-cap { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--heavy); font-size: 13.5px; line-height: 1.45; color: var(--tx2); }
.fig details { margin-top: 8px; font-size: 14px; }
.fig summary { cursor: pointer; color: var(--tx2); font-weight: 700; }
.fig details table { margin-top: 8px; }
/* svg roles: every colour comes from the page roles, so dark mode swaps with the page */
.plot text { font-family: var(--f-disp); fill: var(--tx2); font-size: 13px; }
.plot text.num { font-family: var(--f-num); fill: var(--tx); font-weight: 600; letter-spacing: -0.03em; }
.plot text.lab { fill: var(--tx); font-weight: 700; }
.plot text.axl { font-weight: 700; fill: var(--tx); letter-spacing: 0.02em; }
.plot text.onw { fill: var(--ink); }
.plot .axis { stroke: var(--heavy); stroke-width: 2; }
.plot .grid { stroke: var(--hair); stroke-width: 1; }
.plot .bar-a { fill: var(--pg); stroke: var(--tx); stroke-width: 2; }
.plot .bar-b { fill: var(--tx); }
.plot .band { fill: var(--wake); }
.plot .ln-a { fill: none; stroke: var(--tx); stroke-width: 2.5; }
.plot .ln-b { fill: none; stroke: var(--dot); stroke-width: 2; }
.plot .ln-c { fill: none; stroke: var(--tx); stroke-width: 2; }
.plot .ln-d { fill: none; stroke: var(--dot); stroke-width: 2; stroke-dasharray: 5 4; }
.plot .pt-a { fill: var(--tx); stroke: var(--pg); stroke-width: 2; }
.plot .pt-b { fill: var(--dot); stroke: var(--pg); stroke-width: 2; }
.plot .pt-c { fill: var(--pg); stroke: var(--tx); stroke-width: 2; }
.plot .pt-d { fill: var(--pg); stroke: var(--dot); stroke-width: 2; }
.plot .pair { stroke: var(--wake); stroke-width: 4; }
.plot .dot { fill: var(--tx); stroke: var(--pg); stroke-width: 2; }
.plot .med { stroke: var(--tx); stroke-width: 3; }
.plot .hit { fill: transparent; }
.plot .hit:hover + .show, .plot g.tip:hover .bar-b, .plot g.tip:hover .dot { opacity: 0.8; }
.key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.key span { display: inline-flex; gap: 6px; align-items: center; }
.key i { display: inline-block; width: 14px; height: 14px; }
.key i.a { box-shadow: inset 0 0 0 2px var(--tx); }
.key i.b { background: var(--tx); }
.key i.l1 { height: 3px; background: var(--tx); }
.key i.l2 { height: 3px; background: var(--dot); }
.key i.l3 { height: 0; border-top: 2px solid var(--tx); position: relative; }
.key i.l4 { height: 0; border-top: 2px dashed var(--dot); }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.gal figure { margin: 0; }
.gal img { width: 100%; height: auto; aspect-ratio: 1024 / 688; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--frame); background: var(--paper); }
.gal figcaption { margin-top: 7px; font-size: 14px; line-height: 1.35; }
.gal figcaption b { display: block; font-size: 15.5px; }
.gal figcaption span { color: var(--tx2); }
.gal .ref-img figcaption { color: var(--tx2); font-size: 13px; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: right; font-weight: 700; color: var(--tx2); font-size: 13.5px; padding: 6px 0 6px 12px; border-bottom: 2px solid var(--heavy); vertical-align: bottom; }
table.data th:first-child, table.data td:first-child { text-align: left; padding-left: 0; }
table.data td { padding: 6px 0 6px 12px; border-top: 1.5px solid var(--hair); text-align: right; vertical-align: top; }
table.data td.num { font-family: var(--f-num); letter-spacing: -0.03em; white-space: nowrap; }
table.data td.w { text-align: left; }
table.data tr.hl td { background: color-mix(in srgb, var(--wake) 28%, transparent); }
.scroll { overflow-x: auto; }

/* numbers + sources */
.sec { border-top: 6px solid var(--heavy); padding: 34px 0 20px; }
.sec > h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.sec > p.intro { margin-top: 10px; font-size: 16.5px; color: var(--tx2); max-width: 46em; line-height: 1.5; }
.grp { margin-top: 26px; }
.grp > summary { cursor: pointer; list-style: none; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary h3 { display: inline; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.grp > summary::before { content: '+'; font-family: var(--f-num); font-weight: 700; display: inline-block; width: 22px; }
.grp[open] > summary::before { content: '−'; }
.grp .meta { margin: 4px 0 10px 22px; }
.grp .body { margin-left: 22px; }
.mv { font-family: var(--f-num); font-size: 12px; font-weight: 700; padding: 1px 4px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--tx2); white-space: nowrap; }
.src-list { list-style: none; margin-top: 18px; border-top: 2px solid var(--heavy); max-width: 60em; }
.src-list li { padding: 10px 0; border-top: 1.5px solid var(--hair); font-size: 15.5px; line-height: 1.45; }
.src-list li:first-child { border-top: 0; }
.src-list .who { font-weight: 700; }
.src-list .rd { color: var(--tx2); font-size: 14px; }
.dl { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.dl a { font-weight: 700; border-bottom: 2px solid var(--tx); text-decoration: none; }
.credits { margin-top: 14px; font-size: 14.5px; color: var(--tx2); line-height: 1.55; max-width: 60em; }

/* plain pages */
.page { padding: 34px 0 50px; max-width: 46em; }
.page h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; padding-bottom: 20px; border-bottom: 6px solid var(--heavy); max-width: 16em; }
.page h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 34px; padding-top: 12px; border-top: 2px solid var(--heavy); }
.page h1 + h2 { border-top: 0; padding-top: 0; }
.page p { font-size: 18px; line-height: 1.6; margin-top: 12px; }
.page ul { margin: 12px 0 0 20px; font-size: 18px; line-height: 1.6; }
.vlist { list-style: none; margin: 24px 0 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.vlist a { text-decoration: none; }
.vlist h2 { font-size: 22px; font-weight: 700; margin-top: 12px; line-height: 1.18; letter-spacing: -0.015em; border: 0; padding: 0; }

.foot { border-top: 2px solid var(--heavy); padding: 24px 0 40px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--tx2); position: relative; }
.foot a { color: var(--tx2); }
.foot .bb { position: absolute; right: 40px; bottom: 100%; width: 46px; }
.foot .fl { display: flex; gap: 18px; flex-wrap: wrap; }

/* medium screens */
@media (max-width: 1400px) { .wrap { margin: 0 44px; } }
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .tbl { grid-column: 1 / 3; margin-top: 36px; max-width: 560px; }
  .hero h1 { margin-right: 200px; }
  .hero p { margin-right: 220px; }
  .fams { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .vbody { grid-template-columns: minmax(0, 1fr); }
  .vgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'pl' 'side' 'chap'; }
  .side { margin-top: 26px; }
  .toc { display: none; }
}
/* phone */
@media (max-width: 640px) {
  .wrap { margin: 0 20px; }
  .hd { height: auto; padding: 14px 0 10px; flex-wrap: wrap; row-gap: 10px; }
  .hd .wm { font-size: 27px; }
  .hd nav { width: 100%; order: 3; gap: 18px; font-size: 14.5px; margin: 0; overflow-x: auto; white-space: nowrap; }
  .hd .mode { font-size: 13px; padding: 3px 10px 4px 8px; order: 2; }
  .hero { padding: 22px 0 18px; min-height: 0; border-bottom-width: 5px; }
  .hero h1 { margin-right: 84px; }
  .hero p { margin: 12px 86px 0 0; font-size: 15px; }
  .hero .bb { right: 4px; width: 72px; }
  .cols { display: block; padding: 22px 0 30px; }
  .lead h2 { font-size: 23px; margin-top: 14px; }
  .lede p, .side .lede p { font-size: 16px; }
  .news { margin-top: 34px; }
  .news h3 { font-size: 19px; }
  .tbl { margin-top: 34px; max-width: none; }
  .byq { padding: 26px 0 34px; border-top-width: 5px; }
  .byq .head { display: block; }
  .byq .head h2 { font-size: 30px; }
  .byq .head p { margin-top: 8px; font-size: 14.5px; }
  .fams { display: block; margin-top: 10px; }
  .fam { margin-top: 24px; }
  .stem { font-size: 26px; min-height: 0; margin-bottom: 10px; }
  .stem br { display: none; }
  .q { grid-template-columns: 108px 1fr; }
  .vhead { padding: 22px 0 18px; border-bottom-width: 5px; }
  .vgrid { padding-top: 20px; }
  .prose h2 { font-size: 24px; flex-direction: column; gap: 4px; }
  .prose p { font-size: 16.5px; }
  .fig .wide { display: none; }
  .fig .narrow { display: block; }
  .gal { grid-template-columns: 1fr 1fr; gap: 12px; }
  .chap ol { columns: 1; }
  .sec > h2 { font-size: 30px; }
  .grp .meta, .grp .body { margin-left: 0; }
  .foot { flex-direction: column; gap: 6px; }
  .foot .bb { right: 10px; width: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .hd nav, .mode, .player { display: none; } }
