/* What the Kids Are Into: "The phrasebook".
   A traveller's phrasebook for the country your kids live in. Each word is met as a line you might
   hear, the word marked, its dictionary form glossed under it, then the meaning and a one-line verdict.
   The cover band and back cover are the book's covers. Tokens first, then frame, then components.
   No pills, no cards, no side tabs: labels and type do the work. */

/* ================================================================ tokens */
:root {
  color-scheme: light;
  /* ink, one spot colour, one marker */
  --ground: #FFFFFF;
  --ink: #1B1E36;
  --ink-2: #454964;
  --ink-3: #5C607D;        /* 5.9:1 on ground */
  --rule: #D8DAE5;
  --rule-strong: #1B1E36;
  --wash: #F1F2F8;
  --band: #20255A;         /* cover band and back cover */
  --band-ink: #FFFFFF;
  --band-ink-2: #CDD0EE;
  --band-rule: #3A4080;
  --spot: #2A3FB5;         /* links, glosses */
  --marker: #F4BF2A;       /* marigold: terms only, the wordmark's "Kids", edition days */
  --marker-deep: #F4BF2A;
  --on-marker: #1B1E36;
  --focus: #2A3FB5;

  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  /* type scale (px): 13 gloss, 14 fine print, 15 meta, 16 labels, 17 row body, 19 reading,
     21 lede/verdict, 24 entry meaning, 25 heard line, 32 row term, 36 section heads, 44/54 H1 */
  /* space (px): 4 8 12 16 24 32 48 72 88 104 */
  --gut: 16px;
  --max: 1200px;
  --measure: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #14162B; --ink: #ECEDF6; --ink-2: #C0C3D9; --ink-3: #A3A7C3;
    --rule: #30335A; --rule-strong: #ECEDF6; --wash: #1C1F3B;
    --band: #0B0D1F; --band-ink: #FFFFFF; --band-ink-2: #BABDE2; --band-rule: #2A2E57;
    --spot: #A9B6FF; --marker: #F6C944; --marker-deep: #7A5A00; --focus: #F6C944;
  }
}
@media (min-width: 760px) { :root { --gut: 32px; } }

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 var(--text); overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p, li, dd, figcaption, caption, td { text-wrap: pretty; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--spot); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--marker); color: var(--on-marker); }
button { font: inherit; color: inherit; }
.vh, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}
.skip { position: absolute; left: 12px; top: -80px; background: var(--marker); color: var(--on-marker); padding: 10px 16px; z-index: 5; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* The marker: a highlighter stroke through the lower half of the word. In dark mode, display terms get a
   solid block with dark ink; terms in lists get a deep stroke under light text, so lists never turn into
   rows of yellow pills. */
.hl {
  background-image: linear-gradient(transparent 56%, var(--marker-deep) 56%, var(--marker-deep) 93%, transparent 93%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.06em;
}
@media (prefers-color-scheme: dark) {
  h1 .hl, .row__term .hl, .listen .hl {
    background: var(--marker); color: var(--on-marker); padding: 0.02em 0.2em; border-radius: 2px;
  }
}

/* ===== Frame: the cover band (masthead) and the back cover (footer) ===== */
.cover { background: var(--band); color: var(--band-ink); }
.cover__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 40px; padding-top: 12px; }
.mark {
  display: inline-block; padding: 8px 0 12px;
  font: 700 27px/1.15 var(--display); letter-spacing: -0.01em;
  color: var(--band-ink); text-decoration: none;
}
.mark b { font-weight: 700; background: var(--marker); color: var(--band); padding: 0.02em 0.22em; margin: 0 0.04em; border-radius: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 22px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  font: 600 16px/1 var(--text); color: var(--band-ink-2); text-decoration: none;
  border-bottom: 3px solid transparent; padding-top: 3px;
}
.nav a:hover { color: var(--band-ink); border-bottom-color: var(--band-rule); }
.nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--marker); }
.cover :focus-visible, .back :focus-visible { outline-color: var(--marker); }
@media (max-width: 759px) {
  .cover__in { display: block; padding-top: 8px; }
  .mark { font-size: 23px; padding: 6px 0 4px; }
  .nav ul { flex-wrap: wrap; gap: 0 20px; }
  .nav a { min-height: 44px; }
}

.back { background: var(--band); color: var(--band-ink-2); margin-top: 104px; padding: 48px 0 40px; font-size: 16px; }
.back__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .back__grid { grid-template-columns: 22rem minmax(0, 1fr); column-gap: 72px; } .back__fine { grid-column: 1 / -1; } }
.back .mark { font-size: 22px; padding: 0 0 6px; }
.back__blurb { max-width: 32ch; }
.back ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.back ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--band-ink); font-weight: 600; text-decoration-color: var(--band-rule); }
.back ul a:hover { text-decoration-color: var(--marker); }
.back__fine { border-top: 1px solid var(--band-rule); padding-top: 20px; font-size: 14px; max-width: 70ch; }

/* ===== Shared bits ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); }
.sep { color: var(--ink-3); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 15px; color: var(--ink-2); }
.flag { color: var(--ink); font-weight: 700; }
.small { font-size: 15px; color: var(--ink-3); }
.notices { display: grid; gap: 8px; margin-top: 24px; max-width: var(--measure); }
.notice { margin-top: 14px; padding: 12px 16px; background: var(--wash); color: var(--ink); font-size: 16px; max-width: var(--measure); }
.notices .notice { margin-top: 0; }
.notice a { color: inherit; }
.empty { margin-top: 18px; padding: 24px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-style: italic; }
html:not(.show-mature) .is-mature { display: none; }
.mature-note { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
html.show-mature .mature-note { display: none; }

/* Stage: where a word sits on its run, by position and by name. Never by colour alone. */
.stage { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.stage__dots { display: inline-flex; align-items: center; gap: 3px; }
.stage__dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.stage__dots i.past { background: var(--ink-3); }
.stage__dots i.now { width: 11px; height: 11px; background: var(--ink); border-color: var(--ink); }
.stage__bar { display: inline-block; width: 41px; height: 4px; border-radius: 2px; background: var(--ink); }

/* Listen for: the signature. The line you might hear, set like a phrasebook phrase. */
.listen { font: 500 25px/1.55 var(--display); color: var(--ink); quotes: "\201C" "\201D"; }
.listen ruby { ruby-position: under; }
.listen rt {
  font: italic 500 max(13px, 0.5em)/1.3 var(--display); color: var(--spot);
  letter-spacing: 0.01em; padding-top: 2px;
}
.listen--xl { font-size: clamp(26px, 1.3vw + 17px, 36px); line-height: 1.5; }

/* Mature toggle: a designed checkbox. site.js reveals it and keeps aria-pressed in step. */
.mature { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: left; }
.mature__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--ink-2); border-radius: 3px; background: var(--ground); }
.mature:hover { color: var(--ink); }
.mature:hover .mature__box { border-color: var(--ink); }
.mature[aria-pressed="true"] { color: var(--ink); }
.mature[aria-pressed="true"] .mature__box { background: var(--ink); border-color: var(--ink); }
.mature[aria-pressed="true"] .mature__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--ground); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
/* A shared link pointed at a hidden item: ring the box (marigold plus an ink keyline, visible on both grounds). */
.mature.is-nudged { color: var(--ink); }
.mature.is-nudged .mature__box { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--marker), 0 0 0 7px var(--ink); }

/* Copy link: quiet until used; "Copied" and "Copy failed" read as states, not just new words. */
.row__foot { display: flex; justify-content: flex-end; }
.copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0 2px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 0.2em; }
.copy:hover { color: var(--ink); }
.copy[data-state] { text-decoration: none; font-weight: 700; color: var(--ink); }
.copy[data-state="copied"]::before {
  content: ""; width: 6px; height: 11px; margin: -3px 4px 0 2px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.copy[data-state="failed"]::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; font-size: 12px; line-height: 1; }

/* ===== The edition (home + edition pages) ===== */
.ed { display: grid; padding-top: 40px; }
.ed > * { grid-column: 1; min-width: 0; }
@media (min-width: 1100px) {
  .ed { grid-template-columns: minmax(0, 46rem) 17.5rem; column-gap: 88px; }
  .ed__aside { grid-column: 2; grid-row: 1 / span 40; align-self: start; position: sticky; top: 24px; }
}
.dateline { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 16px; color: var(--ink-2); }
.dateline time { font-weight: 700; color: var(--ink); }
.dateline a { color: var(--ink-2); }
.headline { font: 700 clamp(30px, 1.9vw + 16px, 44px)/1.13 var(--display); letter-spacing: -0.01em; margin: 14px 0 12px; max-width: 28ch; }
.updated { font-size: 15px; color: var(--ink-3); }
.updated + .updated { margin-top: 4px; }
.pn-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; margin-bottom: 26px; }
.pn-top a { font-weight: 600; }

.digest { margin-top: 36px; border-top: 2px solid var(--rule-strong); padding-top: 18px; }
.digest h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.digest p { font-size: 19px; line-height: 1.65; max-width: 40rem; }
.digest p + p { margin-top: 16px; }
.digest p:first-of-type { font-size: 21px; line-height: 1.55; }

.ed__aside { margin-top: 44px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
@media (min-width: 1100px) { .ed__aside { margin-top: 0; } }
.ed__aside h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.ed__aside h3 { font: 600 15px/1.4 var(--text); color: var(--ink-2); margin: 22px 0 4px; }
.ed__aside ol { list-style: none; margin: 0; padding: 0; }
.ed__aside li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 46px; padding: 6px 0; border-top: 1px solid var(--rule); }
.ed__aside li:first-child { border-top: 0; }
.ed__aside li a { font: 600 18px/1.3 var(--display); color: var(--ink); text-decoration: none; }
.ed__aside li a:hover { text-decoration: underline; }
.ed__aside .stage { font-size: 14px; color: var(--ink-2); }
.themes { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.themes b { color: var(--ink); }

.sh { margin-top: 88px; border-top: 2px solid var(--rule-strong); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sh h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; }
.sh__count { font-size: 16px; color: var(--ink-3); }
.sh__blurb { margin-top: 6px; font-size: 17px; color: var(--ink-2); max-width: 40rem; }
.sh__blurb + .small { margin-top: 2px; }

.row { padding: 34px 0 10px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.rows { margin-top: 18px; }
.rows > .row:first-child { border-top: 0; }
.row__term { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.row__term a { color: var(--ink); text-decoration: none; }
.row__term a:hover .hl { text-decoration: underline; text-decoration-thickness: 2px; }
.row__title { font-size: 26px; font-weight: 700; line-height: 1.2; }
.row .meta { margin: 8px 0 20px; }

.fields { display: grid; gap: 14px; }
.f { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: 22px; }
.f dt { font: italic 500 16px/1.5 var(--display); color: var(--ink-2); padding-top: 2px; }
.f dd { font-size: 17px; line-height: 1.6; max-width: 36rem; }
.f--listen dt { padding-top: 7px; }
.f--listen { margin-bottom: 4px; }
.f--mean dd { font-size: 19px; line-height: 1.55; color: var(--ink); }
.f--heads dt { font: 700 16px/1.5 var(--text); color: var(--ink); font-style: normal; padding-top: 1px; }
.f--heads dd { color: var(--ink); }
@media (max-width: 639px) {
  .f { display: block; }
  .f dt { margin-bottom: 1px; }
  .listen { font-size: 22px; }
}

/* Sources, expanded and labelled by kind */
.srcs { list-style: none; padding: 0; display: grid; gap: 8px; }
.srcs li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 14px; font-size: 15px; line-height: 1.5; }
.srcs .kind { font-weight: 700; color: var(--ink-2); }
.srcs .when { color: var(--ink-3); white-space: nowrap; }
.srcs a { overflow-wrap: anywhere; }
@media (max-width: 639px) { .srcs li { display: block; } .srcs .kind { display: block; } }

/* Trending videos: a watch list */
.watch { list-style: none; padding: 0; margin-top: 18px; display: grid; column-gap: 40px; }
@media (min-width: 900px) { .watch { grid-template-columns: 1fr 1fr; } }
.watch > li { border-top: 1px solid var(--rule); padding: 20px 0 8px; scroll-margin-top: 16px; min-width: 0; }
.watch h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.watch .meta { margin: 6px 0 10px; font-size: 15px; }
.watch p { font-size: 17px; }
.watch .go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.watch .srcs { margin-top: 4px; }
.watch .srcs li { grid-template-columns: 1fr; }

/* What we checked */
.tw { overflow-x: auto; margin-top: 18px; }
.checked { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 16px; }
.checked caption { text-align: left; font-size: 15px; color: var(--ink-3); padding-bottom: 10px; caption-side: top; }
.checked th { text-align: left; font: 700 15px/1.4 var(--text); color: var(--ink-2); padding: 8px 16px 8px 0; border-bottom: 2px solid var(--rule-strong); }
.checked td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.checked td:nth-child(n+2) { white-space: nowrap; }
@media (max-width: 639px) {
  .checked { min-width: 0; }
  .checked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .checked tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .checked td { border: 0; padding: 0; }
  .checked td:first-child { grid-column: 1 / -1; }
  .checked td:nth-child(2) { color: var(--ink-2); font-size: 15px; }
}
.res { font-weight: 600; }
.res--miss { font-weight: 400; color: var(--ink-2); }

.corr { margin-top: 18px; max-width: 40rem; font-size: 17px; }
.corr b { font-weight: 700; }

.pn { display: grid; gap: 18px; margin-top: 88px; border-top: 2px solid var(--rule-strong); padding-top: 20px; }
@media (min-width: 760px) { .pn { grid-template-columns: 1fr 1fr; column-gap: 40px; } .pn > :last-child:not(:first-child) { text-align: right; } }
.pn a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; }
.pn a:hover .pn__h { text-decoration: underline; }
.pn__dir { display: block; font-size: 15px; color: var(--ink-2); }
.pn__h { display: block; font: 600 20px/1.3 var(--display); }
.pn p { font-size: 16px; color: var(--ink-2); }

/* ===== Entry pages (slang, meme, guide) ===== */
.ent { display: grid; padding-top: 32px; }
.ent > * { grid-column: 1; min-width: 0; }
@media (min-width: 1100px) {
  .ent { grid-template-columns: minmax(0, 52rem) 17.5rem; column-gap: 80px; }
  .ent__aside { grid-column: 2; grid-row: 1 / span 40; align-self: start; position: sticky; top: 24px; }
}
.t-head h1 { font-size: clamp(36px, 2.4vw + 20px, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
.t-head .meta { margin-top: 16px; font-size: 16px; }
.t-head .lede { margin-top: 16px; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.sec { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 32px; padding: 28px 0 30px; border-top: 1px solid var(--rule); }
.sec--first { margin-top: 34px; border-top: 2px solid var(--rule-strong); }
.notices + .sec--first { margin-top: 24px; }
.sec__h { font: italic 500 19px/1.35 var(--display); color: var(--ink-2); padding-top: 3px; }
.sec__b { max-width: 40rem; min-width: 0; }
.sec__b > * + * { margin-top: 14px; }
.sec__b p, .sec__b li { font-size: 19px; line-height: 1.62; }
.sec__b .srcs li { font-size: 16px; line-height: 1.5; }
.sec__b .small { font-size: 15px; }
.sec__b .def { font-size: 24px; line-height: 1.45; color: var(--ink); }
.sec--listen .sec__h { padding-top: 10px; }
.sec__b .verdict { font-size: 21px; line-height: 1.5; }
.sec--verdict .sec__h { font-style: normal; font-weight: 700; color: var(--ink); }
.sec__b ul.plain { list-style: none; padding: 0; display: grid; gap: 4px; }
.sec__b ul.plain a { display: inline-flex; min-height: 44px; align-items: center; }
.sec__b .plain--desc { gap: 14px; }
.sec__b .plain--desc a { min-height: 0; font: 600 20px/1.35 var(--display); }
.sec__b .plain--desc p { margin-top: 2px; max-width: 65ch; }
@media (max-width: 759px) {
  .sec { display: block; padding: 22px 0 24px; }
  .sec__h { margin-bottom: 8px; padding-top: 0 !important; }
  .sec__b .def { font-size: 21px; }
}

/* The run: a word's stages as a line with stops, dated from our own briefs */
.track { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.track::before { content: ""; position: absolute; left: 10px; right: calc(25% - 10px); top: 9px; height: 2px; background: var(--ink-3); }
.sec__b .track li { position: relative; padding: 32px 10px 0 0; font-size: 16px; line-height: 1.4; }
.track li::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--ink-3); }
.track li.past::before { background: var(--ink-3); }
.track li.now::before { top: -1px; left: -1px; width: 22px; height: 22px; background: var(--marker); border: 3px solid var(--ink); }
.track b { display: block; font: 500 18px/1.3 var(--display); color: var(--ink-3); }
.track li.past b, .track li.now b { color: var(--ink); font-weight: 700; }
.track span { display: block; font-size: 14px; color: var(--ink-2); }
.sec__b .then { margin-top: 22px; }
.then figcaption { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.then blockquote { margin-top: 4px; font-style: italic; color: var(--ink-2); }
.sec__b .then blockquote p { font-size: 17px; }
.then blockquote p + p { margin-top: 6px; }

.ent__aside { margin-top: 56px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
@media (min-width: 1100px) { .ent__aside { margin-top: 0; } }
.ent__aside h2 { font-size: 22px; font-weight: 700; }
.ent__aside > p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.near { list-style: none; padding: 0; margin-top: 10px; }
.near li { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
.near li:first-child { border-top: 0; }
.near__t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.near__t a { font: 700 20px/1.3 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; }
.near__t a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.near .stage { font-size: 14px; color: var(--ink-2); }
.sec__b .near p, .near p { font-size: 15px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.near .def-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.near .why { color: var(--ink); }
.sec__b .near { margin-top: 0; }
@media (min-width: 760px) {
  .near--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .near--grid li:nth-child(2) { border-top: 0; }
}
.toc-list { list-style: none; padding: 0; margin-top: 10px; }
.toc-list li { border-top: 1px solid var(--rule); }
.toc-list li:first-child { border-top: 0; }
.toc-list a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 16px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }

/* Guides: a long read in the entry frame */
.guide__body { margin-top: 34px; border-top: 2px solid var(--rule-strong); padding-top: 28px; max-width: 40rem; display: grid; gap: 18px; }
.guide__body > p { font-size: 19px; line-height: 1.65; }
.guide__body > p:first-child { font-size: 21px; line-height: 1.55; }
.guide__body h2 { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 30px; scroll-margin-top: 16px; }
.guide__body ul { padding-left: 1.25rem; display: grid; gap: 8px; font-size: 19px; line-height: 1.6; }
.guide__body .g-list--inline { padding-left: 0; gap: 0; }
.guide__body .note-b { padding: 14px 18px; background: var(--wash); font-size: 18px; }
.guide__body .ad { margin-block: 8px; }
.guide .sec:first-of-type, .guide__body + .sec { margin-top: 48px; border-top: 2px solid var(--rule-strong); }

/* ===== Labelled-row explainers (platforms) ===== */
.doc { padding-top: 32px; }
.doc > * { max-width: 52rem; }

/* ===== Index and prose pages ===== */
.pg { padding-top: 32px; }
.page-head { max-width: var(--measure); }
.page-head h1 { font-size: clamp(38px, 2.4vw + 20px, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
.page-head__lede { margin-top: 12px; font-size: 21px; line-height: 1.5; color: var(--ink-2); }

.list { list-style: none; padding: 0; margin-top: 40px; border-top: 2px solid var(--rule-strong); max-width: var(--measure); }
.list > li { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; }
.list__h { font-size: 26px; font-weight: 700; line-height: 1.22; }
.list__h a { color: var(--ink); text-decoration: none; }
.list__h a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.list .meta { margin-top: 6px; }
.list p:not(.meta) { margin-top: 8px; font-size: 17px; color: var(--ink-2); max-width: 65ch; }

.prose { max-width: var(--measure); margin-top: 40px; }
.prose > .small { margin-bottom: 16px; }
.prose section { margin-top: 56px; scroll-margin-top: 16px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
.prose h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.prose section > * + * { margin-top: 14px; }
.prose p, .prose li { font-size: 19px; line-height: 1.62; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 8px; }
.toc { border-top: 2px solid var(--rule-strong); padding-top: 14px; }
.toc h2 { font: 600 15px/1.4 var(--text); color: var(--ink-2); margin-bottom: 4px; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.toc li { font-size: 17px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.label-list { display: grid; gap: 12px; }
.label-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; align-items: baseline; }
.label-list dd { margin: 0; font-size: 17px; }
@media (max-width: 30rem) { .label-list div { grid-template-columns: 1fr; gap: 2px; } }

/* A to Z (slang glossary, memes) with the filter site.js shows */
.glossary-controls { display: grid; gap: 18px; margin-top: 32px; padding: 20px 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .glossary-controls { grid-template-columns: minmax(0, 24rem) auto; align-items: end; column-gap: 40px; }
  .glossary-controls .mature { grid-column: 1 / -1; margin-top: 0; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field__label { font: italic 500 17px/1.4 var(--display); color: var(--ink-2); }
.field input {
  width: 100%; min-height: 48px; font: inherit; font-size: 18px; padding: 8px 12px;
  border: 2px solid var(--ink-3); border-radius: 3px; background: var(--ground); color: var(--ink);
}
.field input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 44px; padding: 0 14px; cursor: pointer; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--rule); border-radius: 3px; background: var(--ground); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.az { margin-top: 20px; }
.az ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.az a, .az span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  font: 700 18px/1 var(--display); text-decoration: none;
}
.az a { color: var(--ink); border-radius: 3px; }
.az a:hover { background: var(--marker); color: var(--on-marker); }
/* Letters with nothing (or only hidden entries) under them: lighter weight and ink, still 4.5:1. */
.az .az__off, .az a.is-empty { color: var(--ink-3); font-weight: 400; pointer-events: none; }
.g-count { font-size: 15px; color: var(--ink-3); margin-top: 12px; min-height: 1.5em; }
.g-group { margin-top: 48px; scroll-margin-top: 16px; }
.g-group h2 { font-size: 36px; font-weight: 700; border-top: 2px solid var(--rule-strong); padding-top: 10px; }
.g-list { list-style: none; padding: 0; }
.g-entry { padding: 18px 0 20px; border-top: 1px solid var(--rule); min-width: 0; }
.g-group h2 + .g-list > .g-entry:first-child { border-top: 0; }
.g-entry__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.g-entry__term { font: 700 26px/1.2 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.g-entry__term:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.g-entry__def { margin-top: 6px; max-width: 36rem; font-size: 17px; }
.g-entry__aliases { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
@media (min-width: 1000px) {
  .wide .g-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .wide .g-group h2 + .g-list > .g-entry:nth-child(2) { border-top: 0; }
}
.g-list--inline { margin: 6px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.g-list--inline .g-entry:first-child { border-top: 0; }
.g-list--inline .g-entry__term { font-size: 22px; }

/* ===== Archive ===== */
.arc { padding-top: 32px; }
.arc__jump { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 16px; }
.arc__jump b { font: 700 18px var(--display); }
.arc__jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.month { margin-top: 40px; border-top: 2px solid var(--rule-strong); padding-top: 16px; display: grid; gap: 28px; }
.month__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.month__h h2 { font-size: 36px; font-weight: 700; }
.month__h p { font-size: 16px; color: var(--ink-3); }
@media (min-width: 1000px) {
  .month { grid-template-columns: 20rem minmax(0, 46rem); column-gap: 72px; }
  .month__h { grid-column: 1 / -1; }
  .cal-wrap { position: sticky; top: 24px; align-self: start; }
}
.cal { width: 100%; max-width: 22rem; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums lining-nums; }
.cal th { font: 600 14px/1 var(--text); color: var(--ink-3); padding: 0 0 10px; text-align: center; }
.cal td { height: 46px; text-align: center; font-size: 16px; color: var(--ink-3); border-top: 1px solid var(--rule); padding: 0; }
.cal td.ed-day a { display: flex; align-items: center; justify-content: center; height: 46px; color: var(--on-marker); font: 700 19px/1 var(--display); text-decoration: none; }
.cal .disc { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--marker); color: var(--on-marker); }
.cal td.ed-day a:hover .disc { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }
.cal abbr { text-decoration: none; }
.cal td.gap-day { font-style: italic; }
.cal__key { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 22rem; }
.eds { list-style: none; padding: 0; }
.eds > li { border-top: 1px solid var(--rule); padding: 24px 0 28px; }
.eds > li:first-child { border-top: 0; padding-top: 0; }
.eds__date { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.eds h3 { margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 1.22; }
.eds h3 a { color: var(--ink); text-decoration: none; }
.eds h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.eds__counts { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.eds__list { margin-top: 14px; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 16px; row-gap: 8px; font-size: 16px; }
.eds__list dt { font: italic 500 16px/1.6 var(--display); color: var(--ink-2); }
.eds__list dd { line-height: 1.6; }
.inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.eds__list .inline a { color: var(--ink); font: 600 18px/1.4 var(--display); text-decoration: underline; text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; }
.eds__list .inline a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.eds__corr { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 68ch; }
.eds__corr b { color: var(--ink); }
.eds > li.none { padding: 14px 0; font-size: 15px; color: var(--ink-3); font-style: italic; }
@media (max-width: 639px) { .eds__list { grid-template-columns: 1fr; row-gap: 0; } .eds__list dd + dt { margin-top: 8px; } }

/* ===== Ads (only when site.json turns them on, only on eligible pages) ===== */
.ad { margin-block: 32px; padding-top: 8px; border-top: 1px solid var(--rule); text-align: center; }
.ad__label { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; text-align: left; }
.ad ins.adsbygoogle { display: block; }
.ad--inline ins.adsbygoogle { min-height: 280px; }
.ed__aside .ad--rail, .ent__aside .ad--rail { margin-top: 32px; }
.ad--rail ins.adsbygoogle { width: 300px; max-width: 100%; min-height: 600px; margin-inline: auto; }

/* ===== Motion and print ===== */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .cover nav, .ed__aside, .ent__aside, .copy, .mature, .back nav, .ad, .skip, .glossary-controls { display: none !important; }
  .back { margin-top: 32px; }
  .row, .g-entry { break-inside: avoid; }
}
