/* Learn While You: site stylesheet, final identity (revision F2, 23 Nov 2026): Direction A "Annotated" with Direction B's
   mobile usability. For the Owner's review; not approved, not published.
   Colours, episode colours, families, the type scale, spacing and the mobile rules come from tokens.css, a byte copy of
   00 Brand/Identity_Final/tokens/tokens.css (generated from tokens.json; never edit it here). Brand standard:
   00 Brand/Identity_Final/LWY_Brand_Standard_v2.md, section 7.
   Mobile rules (from Direction B): every control at least 44 x 44 px (or a 44 px row) with 8 px gaps; a sticky 48 px jump
   bar on long pages; a heading, then a <details> or a list, for every group (never a heading inside <summary>); nothing
   under 12 px; a phone loads only Newsreader roman, IBM Plex Sans and IBM Plex Mono Regular (no italic below 640 px).
   The leader (a straight line ending in one dot, joining a label to what it names) is the one decorative device, and it is used
   only where its dot lands on something: the wordmark, figures and photographs. Labels and card rows get a plain hairline.
   Refined 22 Nov 2026 after the author-side critique: episode cloths by scheme (tokens.css), no leader without a part, a sticky
   "On this page" bar, source IDs that link to their rows, 12 px minimum text, no Mono Medium and no italic on mobile episode pages. */
@import url("tokens.css");

/* ---------- Fonts (self-hosted WOFF; SIL Open Font License) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-Variable.woff") format("woff");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Variable.woff") format("woff");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* IBM Plex Mono Medium is not loaded (57 KB saved): every mono label is set in Regular. */

/* ---------- Site-level aliases (all derived from tokens) ---------- */
:root {
  --gutter: var(--lwy-space-gutter_mobile);
  --section: var(--lwy-space-section_mobile);
  --rule: var(--lwy-paper-300);
  --rule-dark: var(--lwy-ink-800);
  --lead: var(--lwy-gilt);          /* leader colour on Paper */
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: var(--lwy-space-gutter_desktop); --section: 96px; } }

/* Episode cloths: tokens.css sets --cloth and the --on-cloth-* colours on every element with data-episode (or
   data-latest-episode), by the cloth's scheme (five dark, one light). This sheet never names an episode's colour. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--lwy-scroll-padding); }
body {
  margin: 0;
  background: var(--lwy-paper-50);
  color: var(--lwy-ink-text);
  font-family: var(--lwy-font-ui);
  font-size: var(--lwy-type-ui-size);
  line-height: var(--lwy-type-ui-line);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--lwy-font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
em { font-style: italic; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ol, ul { margin: 0; padding: 0; }
time { font-family: var(--lwy-font-mono); font-weight: 400; letter-spacing: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

/* Focus: Signal blue on Paper, Amber on every dark field. */
:focus-visible { outline: var(--lwy-focus-ring) solid var(--lwy-signal-ink); outline-offset: 3px; border-radius: 1px; }
.dark :focus-visible, .dark:focus-visible { outline-color: var(--lwy-amber); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--lwy-amber); color: var(--lwy-ink-950);
  padding: 0.75rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--lwy-space-max_width); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--lwy-ink-950); color: var(--lwy-bone); --lead: var(--lwy-amber); }

/* Preview strip: on every page while site.json has production: false. */
.preview-strip {
  background: var(--lwy-amber); color: var(--lwy-ink-950);
  font-family: var(--lwy-font-ui); font-size: 12.5px; font-weight: 600; line-height: 1.4;
  padding-block: 5px;
}

/* ---------- The leader ----------
   A straight line ending in one dot. Drawn with two flat-colour layers: the line, and the dot at its end. */
.marker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 var(--lwy-space-md);
  font-family: var(--lwy-font-mono);
  font-size: var(--lwy-type-label-size);
  font-weight: 400;
  line-height: var(--lwy-type-label-line);
  letter-spacing: var(--lwy-type-label-tracking);
  text-transform: uppercase;
  color: var(--lwy-ochre);
}
.wordmark__lead {
  content: "";
  flex: none;
  width: 44px;
  height: var(--lwy-leader-dot);
  background:
    linear-gradient(var(--lead), var(--lead)) left center / calc(100% - 3px) var(--lwy-leader-weight) no-repeat,
    radial-gradient(circle closest-side, var(--lead) 88%, transparent) right center / var(--lwy-leader-dot) var(--lwy-leader-dot) no-repeat;
}
/* A label names nothing in particular, so it takes a plain hairline (decoration), never a leader and dot. */
.marker::after { content: ""; flex: 1 1 auto; max-width: 96px; height: 1px; background: var(--rule); }
.dark .marker { color: var(--lwy-mist); }
.dark .marker::after { background: var(--rule-dark); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 40px;
}
.wordmark { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; }
.wordmark img { height: 19px; width: auto; }   /* the small-cut wordmark: a 19 px image sets the name at 24 px, above the 18 px minimum */
.site-nav { flex: 1 1 100%; border-top: 1px solid var(--rule-dark); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--lwy-tap-target); min-width: var(--lwy-tap-target);
  color: var(--lwy-mist); font-size: 14.5px; font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--lwy-bone); }
.site-nav a[aria-current="page"] { color: var(--lwy-bone); border-bottom-color: var(--lwy-amber); }
@media (min-width: 760px) {
  .wordmark { min-height: 72px; }
  .wordmark img { height: 22px; }
  .site-nav { flex: none; border-top: 0; }
  .site-nav ul { gap: 0 28px; }
  .site-nav a { min-height: 72px; font-size: 15px; }
}
.ext::after { content: "\2197" / ""; display: inline-block; margin-left: 0.3em; font-family: var(--lwy-font-ui); font-weight: 400; }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.actions .textlink { display: inline-flex; align-items: center; min-height: var(--lwy-tap-target); }
/* Stand-alone text links get a 44 px tall target; links inside sentences stay inline. */
.section__foot .textlink, .feature__links .textlink { display: inline-flex; align-items: center; min-height: 44px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 14px;
  font-family: var(--lwy-font-ui); font-size: 14.5px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: var(--lwy-radius-chip);
}
.btn--amber { background: var(--lwy-amber); color: var(--lwy-ink-950); }
.btn--amber:hover { background: var(--lwy-paper-50); color: var(--lwy-ink-text); }
.btn--ghost { color: var(--lwy-bone); box-shadow: inset 0 0 0 1px var(--lwy-mist); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lwy-bone); }

.textlink {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
  text-decoration-color: var(--lwy-gilt);
}
.textlink:hover { color: var(--lwy-ochre); }
.dark .textlink { text-decoration-color: var(--lwy-amber); }
.dark .textlink:hover { color: var(--lwy-amber); }
.sep { margin-inline: 0.5rem; color: var(--lwy-graphite); }

/* ---------- Status chips and evidence tags ---------- */
.status, .tag {
  display: inline-block;
  font-family: var(--lwy-font-mono); font-weight: 400; font-size: 12px; line-height: 1.5;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0 5px; border-radius: var(--lwy-radius-chip);
  border: 1px solid currentColor; white-space: nowrap; max-width: 100%;
}
/* F2: a chip may wrap (inside its own box) only when it cannot fit the line, as with text at 200 % on a 320 px screen. */
@media (max-width: 639px) { .status, .tag { white-space: normal; overflow-wrap: anywhere; } }
.status--public { color: var(--lwy-ink-text); }
.status--in_production, .status--under_review { color: var(--lwy-graphite); border-style: dashed; }
.status--private, .status--unlisted, .status--removed { color: var(--lwy-graphite); }
.status--corrected { color: var(--lwy-paper-50); background: var(--lwy-ink-text); border-color: var(--lwy-ink-text); }
.dark .status { color: var(--lwy-mist); background: transparent; }
.dark .status--public { color: var(--lwy-bone); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag { color: var(--lwy-graphite); }
.tag--DISPUTED, .tag--UNKNOWN { border-style: dashed; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--band { background: var(--lwy-paper-100); }
.section--tight { padding-block: 40px 56px; }
.section__head { display: grid; gap: 0 64px; margin-bottom: 28px; }
.section__head .marker { grid-column: 1 / -1; }
.section__head h2 {
  font-size: var(--lwy-type-h2-size); line-height: var(--lwy-type-h2-line);
  letter-spacing: var(--lwy-type-h2-tracking); max-width: 21ch; margin-bottom: 10px;
}
.section__intro { color: var(--lwy-graphite); max-width: 36rem; }
.section__foot { margin-top: 20px; }
@media (min-width: 1024px) {
  .section__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; margin-bottom: 48px; }
  .section__head h2 { margin-bottom: 0; }
  .section__intro { font-size: 17px; }
}

/* ---------- Home: hero ---------- */
.hero { padding-block: 36px 44px; }
.hero__grid { display: grid; gap: 36px; }
.hero h1 {
  font-size: var(--lwy-type-display-size); line-height: var(--lwy-type-display-line);
  letter-spacing: var(--lwy-type-display-tracking); max-width: 14ch; margin-bottom: 16px;
}
.hero h1 em { font-weight: 500; }
/* F2 (critique 7): a phone loads no italic face, so the emphasis is dropped there, never recoloured (Amber is annotation). */
@media (max-width: 639px) { .hero h1 em { font-style: normal; } }
.hero__lede {
  font-family: var(--lwy-font-display); color: var(--lwy-mist);
  font-size: var(--lwy-type-body-size); line-height: var(--lwy-type-body-line);
  max-width: 33rem; margin-bottom: 24px;
}
.hero__stat {
  margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--rule-dark);
  color: var(--lwy-mist); font-family: var(--lwy-font-mono); font-size: var(--lwy-type-meta-size);
  max-width: 33rem;
}
@media (min-width: 640px) {
  .hero { padding-block: 72px 80px; }
  .hero__lede { font-size: var(--lwy-type-deck-size); line-height: var(--lwy-type-deck-line); margin-bottom: 32px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 104px 112px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
}

/* A plate: an episode's cloth with its number, a hairline and (for released editions) the running time. */
.plate-top {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--lwy-font-mono); font-size: 12.5px; line-height: 1.4; color: var(--on-cloth-2, var(--lwy-mist));
  margin-bottom: 14px;
}
.plate-top__num { color: var(--on-cloth-accent, var(--lwy-amber)); font-weight: 400; letter-spacing: 0.08em; }
.plate-top__date { color: var(--on-cloth-2, var(--lwy-mist)); }
.plate-top__rule { flex: 1 1 auto; min-width: 24px; height: 1px; background: var(--on-cloth-rule, var(--rule-dark)); }
.plate-top > span:last-child:empty:not(.plate-top__rule) { display: none; }

.feature {
  background: var(--cloth, var(--lwy-ink-900)); color: var(--on-cloth, var(--lwy-bone));
  box-shadow: inset 0 0 0 1px var(--on-cloth-edge, transparent);
  padding: 22px 20px 22px;
}
.feature .marker { margin-bottom: 18px; color: var(--on-cloth-2); }
.feature .marker::after { background: var(--on-cloth-rule); }
.feature .textlink { text-decoration-color: var(--on-cloth-lead); }
.feature .textlink:hover { color: var(--on-cloth-accent); }
.feature :focus-visible { outline-color: var(--on-cloth-focus); }
.feature h2 {
  font-size: 25px; line-height: 1.16; letter-spacing: -0.008em; margin-bottom: 10px;
}
.feature__hook { display: none; font-family: var(--lwy-font-display); color: var(--on-cloth-2); font-size: 19px; line-height: 1.45; margin-bottom: 16px; }
.feature h2 + .feature__date { margin-top: 14px; }
.feature__date { font-family: var(--lwy-font-mono); font-size: var(--lwy-type-meta-size); color: var(--on-cloth-2); margin-bottom: 4px; }
.feature__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--on-cloth-rule);
}
/* F2 (critique 6c): on a phone the hero's "Browse the episodes" is the one Amber button; the feature's is an outline. */
@media (max-width: 639px) {
  .feature .btn--amber { background: transparent; color: var(--on-cloth); box-shadow: inset 0 0 0 1.5px var(--on-cloth-lead); }
  .feature .btn--amber:hover { background: var(--on-cloth-lead); color: var(--lwy-ink-950); }
}
@media (min-width: 640px) {
  .feature { padding: 32px 32px 28px; }
  .feature h2 { font-size: 32px; }
  .feature__hook { display: block; }
  .feature h2 + .feature__hook + .feature__date { margin-top: 0; }
}

/* ---------- Home: episode plates (cards) ---------- */
.cards { display: grid; gap: 12px; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
/* F2 (critique 6a): the home list takes the library's calmer treatment: Paper, a 6 px spine in the episode's cloth and the
   44 px number chip. Full cloth is kept for the "Latest release" feature only. */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--lwy-paper-50); color: var(--lwy-ink-text);
  box-shadow: inset 6px 0 0 var(--cloth, var(--lwy-ink-900)), inset 0 0 0 1px var(--rule);
  padding: 14px 16px 12px 22px;
}
.card .plate-top { color: var(--lwy-graphite); }
.card .plate-top__num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px;
  background: var(--cloth, var(--lwy-ink-900)); color: var(--on-cloth-accent, var(--lwy-amber)); letter-spacing: 0.04em;
}
.card .plate-top__date { color: var(--lwy-graphite); }
.card .plate-top__rule { background: var(--rule); }
.card .plate-top { margin-bottom: 10px; }
.card h3 { font-size: 20px; line-height: 1.18; letter-spacing: -0.005em; margin-bottom: 6px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--lwy-signal-ink); outline-offset: 3px; }
.card:hover h3 a { text-decoration: underline; text-decoration-color: var(--lwy-gilt); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.card__hook { color: var(--lwy-graphite); font-size: 14.5px; line-height: 1.45; margin-bottom: 12px; }
/* Edition status stays on the card (the site's R8 test checks every card's labelled chips) but folded away:
   the audience sees the title, hook, date and running time; "Editions" opens the chips. */
.card__eds { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid var(--rule); }
.card__eds > summary {
  display: flex; align-items: center; gap: 8px; min-height: var(--lwy-tap-target); width: max-content;
  font-family: var(--lwy-font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lwy-graphite);
}
.card__eds > summary::after { color: var(--lwy-ochre); font-size: 16px; }
.card__eds .chips { padding-bottom: 4px; }
.card .status { color: var(--lwy-graphite); }
.card .status--public { color: var(--lwy-ink-text); }
/* Phones: the two newest released episodes keep their hook; older ones become compact rows (number, title, date and time). */
@media (max-width: 639px) {
  .cards > .card:nth-child(n+3) { padding: 12px 14px 12px; }
  .cards > .card:nth-child(n+3) .plate-top { margin-bottom: 4px; }
  .cards > .card:nth-child(n+3) h3 { font-size: 17.5px; margin-bottom: 0; }
  .cards > .card:nth-child(n+3) .card__hook, .cards > .card:nth-child(n+3) .card__eds { display: none; }
  .cards { gap: 8px; }
}
@media (min-width: 640px) {
  .card { padding: 22px 24px 18px 30px; min-height: 260px; }
  .card .plate-top { margin-bottom: 14px; }
  .card h3 { font-size: 24px; margin-bottom: 12px; }
  .card__hook { font-family: var(--lwy-font-display); font-size: 17px; line-height: 1.45; margin-bottom: 20px; }
}

/* ---------- Home: listening promise, beside an annotated archival photograph ---------- */
.listen-grid { display: grid; gap: 4px; }
@media (min-width: 1024px) { .listen-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } .listen-grid .fig { margin: 0; } }
.promises { display: grid; list-style: none; border-bottom: 1px solid var(--rule); }
.promise {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px;
  padding-block: 14px; border-top: 1px solid var(--rule);
}
.promise__num { grid-row: 1 / span 2; font-family: var(--lwy-font-mono); font-weight: 400; font-size: 12.5px; color: var(--lwy-ochre); padding-top: 4px; }
.promise h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-bottom: 4px; }
.promise p { color: var(--lwy-graphite); font-size: 14.5px; }
@media (min-width: 760px) {
  .promise { grid-template-columns: 96px minmax(0, 1fr); padding-block: 22px; }
  .promise__num { padding-top: 6px; }
  .promise h3 { font-size: 24px; line-height: 1.2; margin-bottom: 6px; font-weight: 500; }
  .promise p { font-size: 16px; }
  .listen-grid .promises { border-bottom: 1px solid var(--rule); }
}

/* ---------- Figures: a licensed photograph as a duotone (shadow in the episode's cloth or Ink, highlight in Paper),
   with one leader: a label on a solid Ink plate, a straight line, and one dot on the part it names.
   --x and --y (set on the figure) are the dot's position in the image; the note's variant says where the label sits. */
.fig { margin: 20px 0 24px; }
.fig__frame { position: relative; background: var(--cloth-deep, var(--lwy-ink-950)); }
.fig__frame img { width: 100%; height: auto; }
.fig__note { position: absolute; display: flex; align-items: center; pointer-events: none; }
.fig__dot { flex: none; width: var(--lwy-leader-dot); height: var(--lwy-leader-dot); border-radius: 50%; background: var(--lwy-amber); box-shadow: 0 0 0 2px var(--cloth-deep, var(--lwy-ink-950)); }
.fig__line { flex: 1 1 auto; min-width: 12px; height: var(--lwy-leader-weight); background: var(--lwy-amber); box-shadow: 0 0 0 1px var(--cloth-deep, var(--lwy-ink-950)); }
/* F2 (critique 5): the leader's label is set one way everywhere: IBM Plex Sans 600, sentence case, Straw on an episode's
   deep shade or Amber on Ink (as on thumbnails and video cards). Mono stays for kickers, IDs and EP numbers. */
.fig__label {
  flex: none; background: var(--cloth-deep, var(--lwy-ink-950)); color: var(--on-cloth-accent, var(--lwy-amber));
  font-family: var(--lwy-font-ui); font-size: 13px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0; padding: 3px 8px; white-space: nowrap;
}
/* Where each figure's dot sits (x, y as a share of the photograph). Classes, not style attributes: the deploy
   Content-Security-Policy (deploy/_headers, style-src 'self') blocks inline styles, which would move the dot off its part. */
.fig--at-home-ear { --x: 43.5%; --y: 37.5%; }
.fig--at-ep01-pipe { --x: 30.2%; --y: 66.6%; }
.fig--at-ep02-readout { --x: 30%; --y: 35.6%; }
.fig--at-ep05-leds { --x: 64.2%; --y: 30%; }
.fig--right .fig__note { left: var(--x); right: 10px; top: var(--y); transform: translateY(-50%); }
.fig--right .fig__dot { margin-left: -3.5px; }
.fig--left .fig__note { left: 10px; right: calc(100% - var(--x)); top: var(--y); transform: translateY(-50%); flex-direction: row-reverse; }
.fig--left .fig__dot { margin-right: -3.5px; }
.fig--down .fig__note, .fig--up .fig__note { left: var(--x); flex-direction: column; align-items: flex-start; }
.fig--down .fig__note { top: var(--y); bottom: 10px; }
.fig--up .fig__note { top: 10px; bottom: calc(100% - var(--y)); flex-direction: column-reverse; }
.fig--down .fig__dot { margin: -3.5px 0 0 -3.5px; }
.fig--up .fig__dot { margin: 0 0 -3.5px -3.5px; }
.fig--down .fig__line, .fig--up .fig__line { width: 1.5px; height: auto; min-height: 12px; min-width: 0; margin-left: -0.75px; }
.fig--down .fig__label, .fig--up .fig__label { margin-left: -3.5px; }
.fig figcaption { margin-top: 8px; font-family: var(--lwy-font-ui); font-size: 12.5px; line-height: 1.5; color: var(--lwy-graphite); }
.fig figcaption a { text-decoration: underline; text-decoration-color: var(--lwy-gilt); text-underline-offset: 0.2em; }
.fig__credit { color: var(--lwy-graphite); }
@media (min-width: 640px) { .fig__label { font-size: 14px; padding: 4px 10px; } .fig { margin: 28px 0 32px; } }
/* F2: on a phone a label may take two lines rather than run past the picture (text at 200 %). */
@media (max-width: 639px) { .fig__label { flex: 0 1 auto; min-width: 0; white-space: normal; } }

/* ---------- Home: in production (collapsed list) ---------- */
.section--prod { padding-block: 44px; }
.prod { display: grid; gap: 10px 64px; }
.prod__head h2 { font-size: var(--lwy-type-h2-size); line-height: var(--lwy-type-h2-line); letter-spacing: var(--lwy-type-h2-tracking); }
.prod__body > p { color: var(--lwy-graphite); max-width: 40rem; margin-bottom: 16px; }
@media (min-width: 1024px) {
  .section--prod { padding-block: 72px; }
  .prod { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .prod__head .marker { margin-bottom: 16px; }
  .prod__body > p { font-size: 17px; }
}
.prod-list { list-style: none; margin-top: 4px; }
.prod-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding-block: 14px; border-top: 1px solid var(--rule); }
.prod-item h3 a::after { content: ""; position: absolute; inset: 0; }
.prod-item h3 a:focus-visible { outline: none; }
.prod-item:focus-within { outline: var(--lwy-focus-ring) solid var(--lwy-signal-ink); outline-offset: 3px; }
.prod-item__num { font-family: var(--lwy-font-mono); font-weight: 400; font-size: 12.5px; color: var(--lwy-ochre); padding-top: 3px; }
.prod-item h3 { font-size: 18px; line-height: 1.25; font-weight: 600; margin-bottom: 4px; }
.prod-item h3 a { text-decoration: none; }
.prod-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--lwy-gilt); text-underline-offset: 0.18em; }
.prod-item p { color: var(--lwy-graphite); font-size: 14px; }
.prod-item .status { margin-right: 6px; }

/* ---------- Disclosure (details) used for every collapsible list ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "+" / ""; flex: none; margin-left: auto;
  font-family: var(--lwy-font-mono); font-weight: 400; font-size: 18px; line-height: 1; color: var(--lwy-ochre);
}
details[open] > summary::after { content: "\2212" / ""; }
.prod__more, .more, .pending--edition { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prod__more > summary, .more > summary, .pending--edition > summary {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding-block: 10px;
  font-weight: 600; font-size: 15px;
}
.more { margin-top: 16px; border-top: 0; }
.more > summary { min-height: 44px; font-size: 14px; color: var(--lwy-graphite); font-weight: 500; }
.more > .note { padding-bottom: 14px; }

/* ---------- Where to listen (dark close) ---------- */
.channel { padding-block: 36px 36px; border-top: 1px solid var(--rule-dark); }
.channel__grid { display: grid; gap: 24px; align-items: end; }
.channel p { color: var(--lwy-mist); max-width: 34rem; }
.channel__handle { display: block; font-family: var(--lwy-font-mono); font-size: 14px; color: var(--lwy-bone); margin-top: 12px; }
@media (min-width: 1024px) { .channel { padding-block: 88px; } .channel__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }

/* The unfinished sentence: "Learn While You ——● drive, walk, cook." (home close, 404). Inline, so the words keep
   their spaces for screen readers and copying. */
.sentence {
  font-family: var(--lwy-font-display); font-weight: 500;
  font-size: 30px; line-height: 1.16; letter-spacing: -0.012em;
  color: var(--lwy-bone); margin-bottom: 16px;
}
.sentence .wordmark__lead {
  display: inline-block; width: 1.3em; height: 0.36em; margin: 0 0.3em 0 0.05em; vertical-align: 0.04em;
  --lead: var(--lwy-amber);
  background:
    linear-gradient(var(--lead), var(--lead)) left center / calc(100% - 0.15em) 2px no-repeat,
    radial-gradient(circle closest-side, var(--lead) 88%, transparent) right center / 0.3em 0.3em no-repeat;
}
.sentence__end { font-style: italic; font-weight: 400; color: var(--lwy-mist); }
@media (max-width: 639px) { .sentence__end { font-style: normal; } }
@media (min-width: 640px) { .sentence { font-size: 48px; line-height: 1.08; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-dark); padding-block: 36px 28px; font-size: 14.5px; }
.site-footer .wordmark { min-height: 44px; }
.site-footer .wordmark img { height: 17px; }
.footer__grid { display: grid; gap: 12px; }
.footer__desc { color: var(--lwy-mist); font-family: var(--lwy-font-display); font-size: 17px; margin-top: 10px; }   /* roman: no italic face on pages that need none */
/* Phones, home page: the 'Where to listen' close already carries the name, so the footer drops its own wordmark block. */
@media (max-width: 639px) {
  body:has(.channel) .footer__grid > div:first-child { display: none; }
  body:has(.channel) .site-footer { border-top: 0; padding-top: 8px; }
}
.footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--lwy-tap-gap) 20px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: var(--lwy-tap-target); min-width: var(--lwy-tap-target); color: var(--lwy-mist); text-decoration: none; }
.footer__nav a:hover { color: var(--lwy-bone); text-decoration: underline; text-decoration-color: var(--lwy-amber); text-underline-offset: 0.25em; }
.footer__small { color: var(--lwy-mist); font-size: 12.5px; line-height: 1.55; border-top: 1px solid var(--rule-dark); padding-top: 18px; margin-top: 24px; }
.footer__small p { margin-bottom: 4px; }
@media (min-width: 760px) {
  .site-footer { padding-block: 56px 36px; }
  .footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .footer__nav ul { display: grid; gap: 0; }
}

/* ---------- Page masthead (library, about, corrections, AI use) ---------- */
.masthead { padding-block: 32px 36px; }
.masthead h1 {
  font-size: var(--lwy-type-h1-size); line-height: var(--lwy-type-h1-line);
  letter-spacing: var(--lwy-type-h1-tracking); max-width: 18ch; margin-bottom: 14px;
}
.masthead__lede {
  font-family: var(--lwy-font-display); color: var(--lwy-mist);
  font-size: var(--lwy-type-body-size); line-height: var(--lwy-type-body-line); max-width: 40rem;
}
@media (min-width: 640px) {
  .masthead { padding-block: 64px 72px; }
  .masthead__lede { font-size: var(--lwy-type-deck-size); line-height: var(--lwy-type-deck-line); }
}
.crumbs { font-family: var(--lwy-font-mono); font-size: 12.5px; color: var(--lwy-mist); margin-bottom: 10px; }
.crumbs a { color: var(--lwy-mist); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--lwy-tap-target); }
.crumbs a:hover { color: var(--lwy-bone); text-decoration: underline; text-underline-offset: 0.25em; }
.crumbs span[aria-hidden] { margin-inline: 0.5em; }

/* ---------- Library ---------- */
.library { list-style: none; border-bottom: 1px solid var(--rule); }
.library + .note { margin-top: 24px; max-width: 40rem; }
.ep-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px;
  padding-block: 20px; border-top: 1px solid var(--rule);
}
.ep-row:focus-within { outline: 3px solid var(--lwy-signal-ink); outline-offset: 4px; }
.ep-row__num {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: var(--cloth, var(--lwy-ink-900)); color: var(--on-cloth-accent, var(--lwy-amber));
  box-shadow: inset 0 0 0 1px var(--on-cloth-edge, transparent);
  font-family: var(--lwy-font-mono); font-weight: 400; font-size: 15px;
}
.ep-row__main { min-width: 0; }
.ep-row h2 { font-size: 21px; line-height: 1.18; margin-bottom: 6px; }
.ep-row h2 a { text-decoration: none; }
.ep-row h2 a::after { content: ""; position: absolute; inset: 0; }
.ep-row h2 a:focus-visible { outline: none; }
.ep-row:hover h2 a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--lwy-gilt); }
.ep-row__hook { color: var(--lwy-graphite); font-size: 15px; max-width: 40rem; }
.ep-row__meta { grid-column: 2; margin-top: 8px; font-size: 13.5px; color: var(--lwy-graphite); min-width: 0; }
.ep-row__dur { display: block; font-family: var(--lwy-font-mono); margin-bottom: 4px; }
.ep-row__dur:empty { display: none; }
.ed-list { list-style: none; display: grid; gap: 4px; }
.ed-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ed-list__label { font-weight: 600; color: var(--lwy-ink-text); }
.ed-list__text { flex-basis: 100%; }
.ed-list__text:empty { display: none; }
/* Phones: the running time sits under the number, beside the edition lines, so the list stays short. */
@media (max-width: 859px) {
  .ep-row { padding-block: 16px; }
  .ep-row__meta { display: contents; }
  .ep-row__dur { grid-column: 1; grid-row: 2; margin: 8px 0 0; font-size: 12.5px; color: var(--lwy-graphite); }
  .ed-list { grid-column: 2; grid-row: 2; margin-top: 8px; font-size: 13.5px; color: var(--lwy-graphite); }
}
@media (min-width: 860px) {
  .ep-row { grid-template-columns: 72px minmax(0, 1fr) 17rem; gap: 0 32px; padding-block: 28px; align-items: start; }
  .ep-row__num { width: 72px; height: 72px; font-size: 22px; }
  .ep-row h2 { font-size: 28px; }
  .ep-row__hook { font-family: var(--lwy-font-display); font-size: 17px; }
  .ep-row__meta { grid-column: 3; margin-top: 4px; }
}

/* ---------- Episode page: hero on the episode's cloth ---------- */
.ep-hero { background: var(--cloth, var(--lwy-ink-950)); color: var(--on-cloth); --lead: var(--on-cloth-lead); padding-block: 22px 30px; }
.ep-hero__grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
/* F2: with text at 200 % on a 320 px screen, a long title word or button must wrap, never widen the page. */
.ep-hero__main { min-width: 0; }
.ep-hero h1 { overflow-wrap: anywhere; }
.btn { max-width: 100%; text-align: center; }
.tag { overflow-wrap: anywhere; }
.ep-hero .marker { margin-bottom: 12px; color: var(--on-cloth-2); }
.ep-hero .marker::after { background: var(--on-cloth-rule); }
.ep-hero h1 { max-width: 20ch; margin-bottom: 12px; font-size: var(--lwy-type-h1-size); line-height: var(--lwy-type-h1-line); letter-spacing: var(--lwy-type-h1-tracking); }
.ep-hero .masthead__lede { color: var(--on-cloth-2); margin-bottom: 20px; }   /* roman: a phone loads no italic face on an episode page */
.ep-hero .crumbs, .ep-hero .crumbs a { color: var(--on-cloth-2); }
.ep-hero .crumbs a:hover { color: var(--on-cloth); }
.ep-hero .btn--ghost { color: var(--on-cloth); box-shadow: inset 0 0 0 1px var(--on-cloth-2); }
.ep-hero .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-cloth); }
.ep-hero :focus-visible { outline-color: var(--on-cloth-focus); }
.ep-hero__numeral, .ep-hero__side { display: none; }
@media (min-width: 1024px) { .ep-hero__side { display: block; } }
/* Edition details live in the aside ("Editions"), under the status list. */
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; padding-block: 8px; border-top: 1px solid var(--rule); }
.facts dt { color: var(--lwy-graphite); font-size: 14px; }
.facts dd { margin: 0; font-size: 14px; line-height: 1.4; color: var(--lwy-ink-text); }
@media (min-width: 640px) {
  .ep-hero { padding-block: 40px 56px; }
  .ep-hero .masthead__lede { margin-bottom: 28px; }
}
@media (min-width: 1024px) {
  .ep-hero { padding-block: 56px 72px; }
  .ep-hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 72px; align-items: end; }
  .ep-hero__numeral {
    display: block; font-family: var(--lwy-font-display); font-style: italic; font-weight: 400;
    font-size: 168px; line-height: 0.8; letter-spacing: -0.03em; color: var(--on-cloth-lead);
    text-align: right;
  }
}

/* Jump bar ("On this page"): on every page of about 2,400 px or more at 390 px wide (episode pages, home, About,
   Corrections, AI use). 48 px tall and sticky, so each part of the page is one tap away; html scroll-padding-top
   (64 px) lands a jump below it. The links share the width; F2 (critique 13): when they do not fit (320 px, or text at
   200 %), the bar scrolls sideways instead of clipping a label, and toc.js marks the section you are in (aria-current). */
.toc { position: sticky; top: 0; z-index: 4; background: var(--lwy-paper-100); border-bottom: 1px solid var(--rule); }
.toc ul { display: flex; gap: 0 var(--lwy-tap-gap); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.toc li { flex: 1 0 auto; }
.toc a {
  display: flex; align-items: center; justify-content: center; min-height: var(--lwy-jump-bar-height); min-width: var(--lwy-tap-target);
  font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--lwy-ink-text); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.toc a:hover { border-bottom-color: var(--lwy-gilt); }
.toc a[aria-current] { border-bottom-color: var(--lwy-ochre); color: var(--lwy-ink-text); }
.toc li:first-child a { justify-content: flex-start; }
.toc li:last-child a { justify-content: flex-end; }
@media (min-width: 640px) {
  .toc ul { gap: 0 32px; }
  .toc li { flex: 0 0 auto; }
  .toc li a, .toc li:first-child a, .toc li:last-child a { justify-content: flex-start; font-size: 15px; }
}
/* On the About, Corrections and AI use pages the bar sits inside the content column: paint it edge to edge. */
.page .toc { margin: -8px 0 24px; box-shadow: 0 0 0 100vmax var(--lwy-paper-100); clip-path: inset(0 -100vmax); border-bottom: 0; }
@media (min-width: 640px) { .page .toc { margin-top: -24px; } }

/* ---------- Episode page: body ---------- */
.ep-body { padding-block: 32px 40px; }
.ep-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .ep-body { padding-block: 72px 80px; }
  .ep-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: 80px; }
}
.prose { max-width: 42rem; min-width: 0; }
.prose h2 {
  font-size: 24px; line-height: 1.17; letter-spacing: -0.008em; margin: 0 0 14px;
}
.prose .block { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.prose .block--quiet h2 { font-size: 19px; margin-bottom: 6px; }
@media (min-width: 640px) {
  .prose h2 { font-size: 30px; margin-bottom: 18px; }
  .prose .block { margin-top: 56px; padding-top: 24px; }
  .prose .block--quiet h2 { font-size: 22px; }
}
.ep-overview p, .about-sec .prose > p, #deeper p {
  font-family: var(--lwy-font-display); font-size: var(--lwy-type-body-size); line-height: var(--lwy-type-body-line);
}
.ep-overview .lead-para, .about-sec .prose > p:first-of-type { font-size: 18px; }
@media (min-width: 640px) { .ep-overview .lead-para { font-size: 21px; line-height: 1.52; } }
.ep-overview .note { font-family: var(--lwy-font-ui); font-size: 14.5px; line-height: 1.5; }
.note { color: var(--lwy-graphite); font-size: 14px; line-height: 1.5; }
.prose .note { margin-top: 12px; }
.prose .more .note { margin-top: 0; }
h3.minor + .corrections + h3.minor { margin-top: 24px; }
h3.minor {
  font-family: var(--lwy-font-mono); font-size: var(--lwy-type-label-size); font-weight: 400;
  letter-spacing: var(--lwy-type-label-tracking); text-transform: uppercase; color: var(--lwy-ochre);
  margin: 20px 0 6px;
}

/* Player facade: a link to YouTube; player.js swaps in a nocookie embed on press. Poster on the episode's cloth. */
.player { margin-bottom: 12px; }
.player__link {
  display: block; position: relative; text-decoration: none; color: var(--on-cloth, var(--lwy-bone));
  background: var(--cloth, var(--lwy-ink-950)); aspect-ratio: 16 / 9; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--on-cloth-edge, transparent);
}
.player__poster {
  position: absolute; inset: 0 0 52px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 18px 14px;
}
.player__poster .plate-top { margin-bottom: 10px; }
.player__poster .plate-top__rule { flex: 0 0 72px; }
.player__title {
  font-family: var(--lwy-font-display); font-weight: 500;
  font-size: 22px; line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch;
}
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--lwy-ink-950); color: var(--lwy-bone); font-weight: 600; font-size: 14.5px;
}
.player__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lwy-amber); position: relative; }
.player__icon::after {
  content: ""; position: absolute; left: 12px; top: 9px;
  border-left: 11px solid var(--lwy-ink-950); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.player__dur { margin-left: auto; font-family: var(--lwy-font-mono); font-weight: 400; color: var(--lwy-mist); }
.player__link:hover .player__icon { background: var(--lwy-bone); }
.player__link:focus-visible { outline: 3px solid var(--lwy-signal-ink); outline-offset: 3px; }
.player__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--lwy-ink-950); }
/* F2 (critique 1): the poster is the episode's thumbnail (one episode, one face); the play bar sits under it, never over
   its words (a footnote can be a qualifier the facts require). */
.player__link--img { aspect-ratio: auto; background: var(--cloth-deep, var(--lwy-ink-950)); }
.player__img { display: block; width: 100%; height: auto; }
.player__link--img .player__bar { position: static; }
.player__credit { margin-top: 4px; font-size: 13px; color: var(--lwy-graphite); }
.player__note { margin-top: 8px; font-size: 13px; color: var(--lwy-graphite); }
@media (min-width: 640px) {
  .player__poster { padding: 28px 36px 30px; inset: 0 0 60px; }
  .player__title { font-size: 44px; line-height: 1.06; max-width: 16ch; }
  .player__bar { height: 60px; padding: 0 24px; font-size: 15px; }
  .player__icon { width: 36px; height: 36px; }
  .player__icon::after { left: 14px; top: 11px; }
}

/* Planned editions and other pending notices */
.pending { border: 1px dashed var(--lwy-graphite); padding: 14px 16px; color: var(--lwy-graphite); margin-bottom: 12px; font-size: 15px; }
.pending strong { color: var(--lwy-ink-text); font-weight: 600; }
.pending--edition { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0; margin-top: 4px; }
.pending--edition > summary { font-weight: 400; color: var(--lwy-graphite); }
.pending--edition > p { padding-bottom: 14px; font-size: 14.5px; }
.pending:not(.pending--edition) > strong { display: block; margin-bottom: 4px; }

/* Chapters: the whole row opens YouTube at that time */
.chapters { list-style: none; border-bottom: 1px solid var(--rule); }
.chapters li {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-content: center;
  min-height: var(--lwy-tap-target); padding-block: 10px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.4;
}
.chapters .t { font-family: var(--lwy-font-mono); font-size: 13.5px; color: var(--lwy-ochre); padding-top: 1px; }
.chapters a.t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--lwy-gilt); }
.chapters a.t::after { content: ""; position: absolute; inset: 0; }
.chapters li:hover { background: var(--lwy-paper-100); }
.chapters li:hover a.t { color: var(--lwy-ink-text); }
.chapters--plain li { grid-template-columns: 2.5rem minmax(0, 1fr); }
.chapters--plain .t { color: var(--lwy-graphite); }
.chapters + .more { border-top: 0; margin-top: 0; }
@media (min-width: 760px) {
  .chapters { columns: 2; column-gap: 32px; border-bottom: 0; }
  .chapters li { break-inside: avoid; }
  .chapters + .more { border-top: 1px solid var(--rule); margin-top: 0; }
}

/* ---------- Research sources: collapsible groups, compact rows, an anchor per source ---------- */
.sources__lede { color: var(--lwy-graphite); font-size: 15px; margin-bottom: 4px; }
.type-key { margin: 12px 0 0; }
/* A group is a visible h3 (its name and count), then a <details> whose summary only shows or hides the list. A screen
   reader meets a real heading, then a disclosure button that announces its own state. */
.src-group { margin-top: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.src-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px;
  font-family: var(--lwy-font-ui); font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 0;
}
.src-group .count {
  flex: none; font-family: var(--lwy-font-mono); font-size: 12px; font-weight: 400; color: var(--lwy-ochre);
  border: 1px solid var(--lwy-gilt); border-radius: var(--lwy-radius-chip); padding: 0 6px; line-height: 1.6;
}
.fold > summary {
  display: flex; align-items: center; gap: 12px; min-height: var(--lwy-tap-target);
  font-size: 15px; font-weight: 500; color: var(--lwy-graphite);
}
.fold > summary:hover { color: var(--lwy-ink-text); }
.fold > summary:hover > span { text-decoration: underline; text-decoration-color: var(--lwy-gilt); text-underline-offset: 0.2em; }
.fold__open, .fold[open] .fold__closed { display: none; }
.fold[open] .fold__open { display: inline; }
.fold > .note { margin: 0 0 10px; }
.note-group:not(:has([data-note-id])) { display: none; }
.sources { list-style: none; margin-bottom: 14px; }
.sources li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px;
  padding-block: 9px; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.42;
}
.sources .sid {
  justify-self: start; align-self: start; margin-top: 1px;
  font-family: var(--lwy-font-mono); font-size: 12px; font-weight: 400; color: var(--lwy-ochre);
  border: 1px solid var(--lwy-gilt); border-radius: var(--lwy-radius-chip); padding: 0 4px; line-height: 1.5;
  scroll-margin-top: 72px;
}
.sources .sbody { min-width: 0; }
.sources .stitle { color: var(--lwy-ink-text); font-weight: 500; }
.sources a.stitle { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--lwy-gilt); overflow-wrap: anywhere; }
.sources a.stitle:hover { color: var(--lwy-ochre); }
.sources .sloc { display: block; color: var(--lwy-graphite); font-size: 13px; overflow-wrap: anywhere; }
.spub { display: block; color: var(--lwy-graphite); font-size: 13px; margin-top: 1px; }
.spub:empty { display: none; }
.sources li:has(.sid:target) { background: var(--lwy-paper-100); box-shadow: -8px 0 0 var(--lwy-paper-100), 8px 0 0 var(--lwy-paper-100); }
.sources .sid:target { color: var(--lwy-paper-50); background: var(--lwy-ink-text); border-color: var(--lwy-ink-text); }

/* Reasoning and open questions (same disclosure). A section with no items at all is hidden where :has() works. */
#reasoning:not(:has([data-note-id])) { display: none; }
.notes { list-style: none; margin-bottom: 14px; }
.notes li { padding-block: 12px; border-top: 1px solid var(--rule); }
.notes li p { margin: 6px 0 4px; font-size: 15px; }
.notes .spub { font-family: var(--lwy-font-mono); font-size: 12px; }
/* Source IDs in reasoning notes, corrections and updates link to their row (added by player.js when the row exists). */
a.sref {
  font-family: var(--lwy-font-mono); color: var(--lwy-ochre);
  text-decoration: underline; text-decoration-color: var(--lwy-gilt); text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
a.sref:hover { color: var(--lwy-ink-text); }
.notes li.empty, .corrections li.empty, .updates li.empty { color: var(--lwy-graphite); font-size: 14.5px; }

/* Corrections and updates */
.corrections, .updates { list-style: none; border-bottom: 1px solid var(--rule); }
.correction { padding-block: 14px; border-top: 1px solid var(--rule); font-size: 15px; }
.correction p { margin-bottom: 6px; }
.correction__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--lwy-graphite); }
.correction__where { font-weight: 600; }
.correction__cite { font-size: 13.5px; color: var(--lwy-graphite); }
.correction__ep { font-size: 15px; margin-bottom: 2px; }
.correction__ep a { display: inline-flex; align-items: center; min-height: var(--lwy-tap-target); }
.updates li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.updates time { color: var(--lwy-graphite); font-size: 13px; }
.updates li.empty { display: block; }
.corrections li.empty { padding-block: 10px; border-top: 1px solid var(--rule); }

/* Aside */
.aside-panel { border-top: 1.5px solid var(--lwy-ink-text); padding-top: 12px; }
.aside-panel + .aside-panel { margin-top: 28px; }
.aside-panel h2 {
  font-family: var(--lwy-font-mono); font-size: var(--lwy-type-label-size); font-weight: 400;
  letter-spacing: var(--lwy-type-label-tracking); text-transform: uppercase; color: var(--lwy-ochre); margin-bottom: 10px;
}
.glance { margin: 0; }
.glance div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; padding-block: 8px; border-top: 1px solid var(--rule); }
.glance div:first-child { border-top: 0; padding-top: 0; }
.glance dt { color: var(--lwy-graphite); font-size: 14px; }
.glance dd { margin: 0; font-size: 14px; color: var(--lwy-ink-text); overflow-wrap: anywhere; }
.glance__date { display: block; font-family: var(--lwy-font-mono); font-size: 12.5px; margin-top: 3px; }
.glance__date:empty { display: none; }
.aside-panel p { color: var(--lwy-graphite); font-size: 14.5px; line-height: 1.5; }
.aside-panel .more { margin-top: 6px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) and (max-width: 1023px) {
  .ep-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .aside-panel + .aside-panel { margin-top: 0; }
}
@media (min-width: 1024px) { .ep-aside { position: sticky; top: 80px; align-self: start; } .glance div, .facts div { grid-template-columns: 7rem minmax(0, 1fr); } }

/* Previous and next */
.pager { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 16px; display: grid; gap: 4px 24px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; margin-top: 72px; padding-top: 24px; } }
.pager a { display: block; text-decoration: none; padding-block: 8px; }
.pager .dir { display: block; font-family: var(--lwy-font-mono); font-size: 12.5px; color: var(--lwy-ochre); margin-bottom: 4px; }
.pager .ttl { font-family: var(--lwy-font-display); font-weight: 500; font-size: 18px; line-height: 1.25; }
.pager a:hover .ttl { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--lwy-gilt); }
.pager .next { text-align: right; }
@media (max-width: 639px) { .pager .next { text-align: left; } }
@media (min-width: 640px) { .pager .ttl { font-size: 21px; } }

/* ---------- About, corrections, AI use (styling only; the content is unchanged) ---------- */
.about-sec { display: grid; gap: 4px 64px; padding-block: 32px; border-top: 1px solid var(--rule); }
.about-sec:first-child { border-top: 0; padding-top: 0; }
.about-sec h2 { font-size: var(--lwy-type-h2-size); line-height: var(--lwy-type-h2-line); letter-spacing: var(--lwy-type-h2-tracking); margin-bottom: 14px; }
.about-sec > .marker { align-self: start; }
@media (min-width: 640px) { .about-sec h2 { font-size: 32px; } .about-sec { padding-block: 48px; } }
@media (min-width: 1024px) {
  .about-sec { grid-template-columns: 13rem minmax(0, 1fr); }
  .about-sec > .marker { margin-top: 10px; }
}
.steps { list-style: none; margin-top: 20px; border-bottom: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--rule); }
.steps .n { font-family: var(--lwy-font-mono); font-weight: 400; font-size: 13px; color: var(--lwy-ochre); padding-top: 3px; }
.steps h3 { font-size: 19px; line-height: 1.25; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--lwy-graphite); font-size: 15px; }
.principles { list-style: none; display: grid; gap: 20px 40px; margin-top: 20px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principles li { border-top: 1.5px solid var(--lwy-ink-text); padding-top: 12px; }
.principles h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.principles p { color: var(--lwy-graphite); font-size: 15px; }
.labels, .defs { margin: 20px 0 0; border-bottom: 1px solid var(--rule); }
.labels div, .defs div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; padding-block: 12px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) {
  .labels div { grid-template-columns: 13rem minmax(0, 1fr); }
  .defs div { grid-template-columns: 9rem minmax(0, 1fr); }
}
.labels dd, .defs dd { margin: 0; color: var(--lwy-graphite); font-size: 15px; }
.defs dt { font-family: var(--lwy-font-display); font-weight: 600; font-size: 19px; }
.defs + p { margin-top: 20px; }
.section__foot .sep { color: var(--lwy-graphite); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: flex; align-items: center; padding-block: 56px; }
.lost > .wrap { width: 100%; }
.lost__text { color: var(--lwy-mist); font-size: 17px; max-width: 34rem; margin-bottom: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .player__icon { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
