/* The archive and lessons apps in the site's record-sleeve design. Loaded after the apps' own CSS
   (style.css, components.css, lessons.css) and frame.css, so it only overrides; the apps' behaviour is untouched.
   Colour belongs to the method only: the five part inks appear here on the method chips and nowhere else.
   Everything else is ink on sleeve board: ink rules, grey panels, Archivo for structure,
   Bodoni italic only for Barry's own quoted words. Square corners, no shadows, no gradients. */

/* ================================================================ tokens */
:root {
  --gutter: 80px;
  --content: 1280px;
  --inset: max(var(--gutter), calc((100% - var(--content)) / 2));   /* page gutter, centred at the site's width */
  --barry: var(--font-quote);
  --mono: var(--sans);
  --radius: 0px;
  --shadow: none;
  --mark: color-mix(in srgb, var(--brass) 35%, transparent);          /* the highlighter behind a search match */
  --mark-strong: color-mix(in srgb, var(--brass) 65%, transparent);
}

/* the apps' accent, header and family tokens all become ink and grey (repeated so they beat the dark-mode blocks) */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  --accent: var(--link); --accent-soft: var(--surface-2); --on-accent: var(--on-link);
  --page: var(--bg); --header: var(--text); --header-text: var(--muted);
  --ok: var(--text); --warn: var(--text);
}
:root body.framed :is(.g-teaching, .g-talk, .g-playing, .g-about, .g-all,
  .f-harmony, .f-lines, .f-playing, .f-life, .lane-points, .lane-says, .lane-plays, .lane-others) {
  --g: var(--text); --g-soft: var(--surface-2); --g-on: var(--bg);
  --f: var(--text); --f-soft: var(--surface-2); --f-on: var(--bg);
  --lane: var(--text);
}
@media (max-width: 1180px) { :root { --gutter: 40px; } }
@media (max-width: 900px) { :root { --gutter: 24px; } }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ================================================================ base */
body.framed {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; 
}
.framed :is(button, input, select, textarea) { font-family: inherit; }
.framed :where(body > .mast, .controls, .layout, .ls-bar, .ls-layout) a { color: var(--text); }
body.framed :is(body > .mast, .controls, .layout, .ls-bar, .ls-layout, #update-banner) * { border-radius: 0; }
.framed input[type="checkbox"] { accent-color: var(--text); }
.framed mark { background: var(--mark); color: inherit; border-radius: 0; padding: 0 1px; }
.framed mark.current { background: var(--mark-strong); }
.framed .site-frame .wrap { padding: 0 var(--gutter); }
.framed .site-frame .mast__search:focus-within { outline: 3px solid var(--focus); outline-offset: 0; }

/* keyboard focus: a 3px cobalt line, square */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 0; }
.ls-main:focus-visible { outline: none; }   /* a landing spot for programmatic focus, as before */
#reader-title:focus-visible, .transcript p:focus-visible, .list-head:focus, .answer h2:focus { outline: 3px solid var(--focus); outline-offset: 4px; }
.restore:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.framed .skip { background: var(--text); color: var(--bg); border-radius: 0; font-weight: 700; }

/* square buttons with an ink border; pressed or hovered they fill with ink */
.framed :is(.theme, .close, .more, .goto, .lane-more, .jump, .to-answer, .find button, .mine button, .pl-tools button,
  .end-actions > button, .backup button, .restore, .ls-filter button, .ls-none button, .prevnext button) {
  border: 1.5px solid var(--accent-line); border-radius: 0; background: none; color: var(--text);
  font-weight: 600; box-shadow: none;
}
.framed :is(.theme, .close, .more, .goto, .lane-more, .jump, .to-answer, .find button, .mine button, .pl-tools button,
  .end-actions > button, .backup button, .restore, .ls-filter button, .ls-none button):hover {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.framed :is(.mine, .pl-tools) [aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.framed select {
  border: 1.5px solid var(--accent-line); border-radius: 0; background-color: var(--bg); color: var(--text);
  font-size: 14px; font-weight: 600; padding: 5px 6px;
}
.framed kbd {
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--text);
  border: 1.5px solid var(--accent-line); border-radius: 0; padding: 0 6px;
}
.framed .kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.framed .check input { accent-color: var(--text); }

/* times: Archivo, tabular, ink, underlined (never monospace, never a coloured badge) */
.framed :is(.snip .t, .ch-t, .cue, .ap-play, .cite-yt, .moment) {
  font-family: var(--sans); font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.framed :is(.ap-play, .cite-yt, .moment) {
  padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; white-space: nowrap; cursor: pointer;
}
.framed :is(.ap-play, .cite-yt, .moment, .cue):hover { background: none; color: var(--text); text-decoration-thickness: 4px; }

/* ================================================================ page header (was the navy band) */
body.framed > .mast {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 32px;
  height: auto; margin: 0; padding: 56px var(--inset) 32px;
  background: none; border: 0; box-shadow: none; position: static;
}
body.framed > .mast h1 {
  margin: 0; color: var(--text);
  font-size: 88px; font-weight: 500; font-family: var(--font-heading); line-height: .92; letter-spacing: -.015em;
}
body.framed > .mast .lede { margin: 22px 0 0; max-width: 34em; color: var(--text); font-size: 22px; line-height: 1.45; }
body.framed > .mast .credits { margin: 16px 0 0; gap: 4px 22px; color: var(--muted); font-size: 15px; }
body.framed > .mast .credits dd { color: var(--text); font-weight: 700; }
.framed .theme {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  font-size: 16px; line-height: 1;
}
body.framed > .mast .theme { margin-top: 6px; }

/* ================================================================ archive: search and filters */
.framed .controls {
  gap: 14px; padding: 16px var(--inset) 16px;
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: none;
}
.framed .search {
  gap: 14px; padding: 0 0 4px;
  background: none; border: 0; border-bottom: 2px solid var(--accent-line); border-radius: 0; box-shadow: none;
}
.framed .search:focus-within { background: none; border-color: var(--text); box-shadow: none; outline: 3px solid var(--focus); outline-offset: 4px; }
.framed .search-label { color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; }
.framed .search input { padding: 6px 0 4px; font-size: 22px; }
.framed .search input::placeholder { color: var(--muted); }
.framed .bar { gap: 12px 24px; }

/* the sections as one segmented control, the browse indexes as another */
.framed .tabs { gap: 0; padding: 5px; margin: -5px; align-items: center; }
.framed .tab {
  position: relative;   /* keeps the hidden screen-reader words inside the scrolling strip on phones */
  margin-right: -2px; padding: 7px 12px;
  border: 1.5px solid var(--accent-line); border-radius: 0; background: none; color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.framed .tab:hover { background: var(--surface-2); color: var(--text); }
.framed .tab:focus-visible { z-index: 1; }   /* the focus line sits above the neighbouring tab's border */
.framed .tab[aria-pressed="true"], .framed .tab[data-group][aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.framed .tab[data-group]::before { display: none; }
.framed .tab .count { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.framed .tab[aria-pressed="true"] .count, .framed .tab[data-group][aria-pressed="true"] .count { color: inherit; opacity: .85; }
.framed .tab.has-hits .count { color: var(--text); font-weight: 700; }
.framed .tab-browse, .framed .tab-browse[aria-pressed="true"] { border-color: var(--text); }
.framed .tabs-sep { margin: 0 10px 0 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.framed .opts { gap: 18px; color: var(--text); font-size: 14px; font-weight: 600; }
.framed .sort select { margin-left: 8px; }

/* ================================================================ archive: two columns */
.framed .layout { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); padding: 0 var(--inset); }
.framed .list { padding-right: 32px; background: none; border-right: 1px solid var(--border); }
.framed .reader { background: var(--bg); }

/* the head of the list: what this section is, then filter buttons */
.framed .section-head { padding: 24px 0 18px; background: none; border-bottom: 0; }
.framed .blurb { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.framed .chips { gap: 6px; margin-top: 12px; }
.framed .chips-label { min-width: 3.3em; margin-right: 4px; color: var(--text); font-size: 14px; font-weight: 700; }
.framed .list .chip {
  min-width: 0; padding: 3px 9px;
  border: 1.5px solid var(--accent-line); border-radius: 0; background: none; color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left;
}
.framed .list .chip span { margin-left: 5px; color: var(--muted); font-weight: 400; }
.framed .list .chip:hover { background: var(--surface-2); border-color: var(--text); }
.framed .list .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.framed .list .chip[aria-pressed="true"] span { color: inherit; opacity: .85; }
.framed .pills, .framed .elsewhere { padding: 12px 0; background: none; border-bottom: 1px solid var(--border); }
.framed .empty .elsewhere { padding: 12px 0 0; border: 0; }
.framed .elsewhere { color: var(--muted); font-size: 14px; }
.framed .pill { padding: 3px 4px 3px 10px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 400; }
.framed .pill button:hover { background: var(--text); color: var(--bg); }
.framed .goto { padding: 3px 9px; font-size: 14px; }
.framed .goto span { color: inherit; font-weight: 700; }
.framed .goto.wide { border-style: dashed; }
.framed .empty { padding: 28px 0; color: var(--muted); }

.framed .list-head {
  align-items: baseline; padding: 14px 0 10px;
  background: none; border-bottom: 3px solid var(--text); color: var(--muted); font-size: 14px;
}
.framed .list-head strong { color: var(--text); font-weight: 700; }
.framed .continue {
  width: 100%; margin: 18px 0 6px; padding: 14px 16px;
  background: var(--surface-2); border: 0; border-radius: 0; box-shadow: none;
}
.framed .continue .kicker { color: var(--muted); }
.framed .continue b { font-size: 16px; font-weight: 700; }
.framed .continue .c-meta { color: var(--muted); font-size: 14px; }
.framed .continue:hover { box-shadow: inset 0 0 0 2px var(--text); }

/* result rows read like the classes page: bold title, grey meta line, a rule between rows, no thumbnails */
.framed .rows { display: block; padding: 0; }
.framed .row {
  position: relative; grid-template-columns: minmax(0, 1fr); gap: 0;
  padding: 16px 0 18px;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
/* hover and the open row: a grey panel that reaches a little past the column, the open one with an ink edge */
.framed .row:hover { background: var(--surface-2); box-shadow: -12px 0 0 var(--surface-2), 12px 0 0 var(--surface-2); }
.framed .row[aria-current="true"] {
  background: var(--surface-2);
  box-shadow: -12px 0 0 var(--surface-2), 12px 0 0 var(--surface-2), -16px 0 0 var(--text);
}
.framed .row.in-series { padding-left: 0; }
.framed .thumb {   /* the thumbnail goes; its duration stays, top right, on the kicker line */
  position: absolute; top: 16px; right: 0; width: auto; aspect-ratio: auto;
  background: none; border-radius: 0; overflow: visible; line-height: 1.5;
}
.framed .thumb img { display: none; }
.framed .dur {
  position: static; padding: 0; background: none; border-radius: 0;
  color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.framed .badge {
  display: inline-block; margin: 0; padding: 0; background: none; border-radius: 0;
  color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0;
}
.framed .row .badge { display: block; margin-bottom: 3px; }
.framed .row:hover .badge, .framed .row[aria-current="true"] .badge { background: none; }
.framed .row-top { gap: 10px; }
.framed .row-title { color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.3; }
.framed .row:hover .row-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.framed .row.is-read .row-title { color: var(--muted); font-weight: 500; }
.framed .star { color: var(--muted); font-size: 18px; border-radius: 0; }
.framed .star:hover { background: none; color: var(--text); }
.framed .star[aria-pressed="true"] { color: var(--text); }
.framed .row-meta { margin-top: 4px; gap: 2px 12px; color: var(--muted); font-size: 14px; }
.framed .row-meta .tag, .framed .row.in-series .row-meta .tag { color: var(--muted); font-weight: 400; }
.framed .row-meta .none { color: var(--muted); }
.framed .readtag { color: var(--text); font-weight: 600; }
.framed .row-sum { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.framed .row-why { font-style: normal; }
.framed .hits { margin-top: 8px; padding: 0; background: none; border-radius: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.framed .snip { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.framed .snip:hover { color: var(--text); }
.framed .snip .t { margin-right: 8px; font-size: 13.5px; }
.framed .more { width: 100%; margin: 20px 0 32px; padding: 10px; font-size: 15px; font-weight: 700; }

/* browse indexes (events, tunes, people, series) */
.framed .browse { padding-bottom: 32px; }
.framed .bx-head { padding: 24px 0 18px; border-bottom: 3px solid var(--text); }
.framed .bx-title { margin: 0 0 8px; font-size: 36px; font-weight: 500; font-family: var(--font-heading); line-height: 1; }
.framed .bx-tools { gap: 12px 20px; margin-top: 14px; font-size: 14px; }
.framed .bx-filter-label { color: var(--text); font-size: 14px; font-weight: 700; }
.framed .bx-filter input {
  width: min(320px, 100%); padding: 6px 0; font-size: 17px;
  background: none; border: 0; border-bottom: 3px solid var(--text); border-radius: 0;
}
.framed .bx-filter input::placeholder { color: var(--muted); }
.framed .bx-h { margin: 32px 0 0; padding-bottom: 8px; border-bottom: 3px solid var(--text); color: var(--text); font-size: 15px; font-weight: 700; }
.framed .bx-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.framed .bx-item:hover { background: var(--surface-2); box-shadow: -12px 0 0 var(--surface-2), 12px 0 0 var(--surface-2); }
.framed .bx-item:hover .bx-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.framed .bx-name { font-size: 16px; font-weight: 700; }
.framed .bx-meta { color: var(--muted); font-size: 14px; }
.framed .bx-count { color: var(--text); font-size: 14px; font-weight: 700; }

/* ================================================================ "What Barry says": the heart of the archive */
.framed .answer {
  margin: 20px 0 28px; padding: 18px 0 0;
  background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
}
.framed .answer.compact { margin: 20px 0 28px; padding: 16px 0 0; }
.framed .reader > .answer { max-width: 860px; margin: 32px 0 80px 48px; padding: 22px 0 0; }
.framed .answer h2 { font-size: 40px; font-weight: 500; font-family: var(--font-heading); line-height: .98; letter-spacing: -.01em; }
.framed .reader > .answer h2 { font-size: 60px; line-height: .95; }
.framed .answer h2 span { color: var(--muted); font-weight: 500; }
.framed .ans-lede { max-width: 40em; margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.framed .lane { margin-top: 40px; padding-top: 0; border-top: 0; }
.framed .lane h3, .framed .lane summary, .framed .lane summary h3 {
  flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0;
  font-size: 30px; font-weight: 500; font-family: var(--font-heading); line-height: 1.05;
}
.framed .lane summary { margin: 0; }
.framed .lane summary::after { align-self: center; color: var(--text); font-size: 18px;  }
.framed .lane-dot { display: none; }
.framed .lane-n { color: var(--muted); font-size: 15px; font-weight: 400;  }
.framed .ap-list, .framed .as-list { gap: 0; margin-top: 12px; border-top: 3px solid var(--text); }
.framed .reader > .answer .as-list { grid-template-columns: minmax(0, 1fr); }
.framed .lane-more { margin: 16px 8px 0 0; padding: 6px 12px; font-size: 14px; }

/* points from the lessons: our words, plain Archivo */
.framed .ap { padding: 16px 0 18px; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.framed .ap p, .framed .reader > .answer .ap p { max-width: 42em; font-size: 17px; line-height: 1.55; }
.framed :is(.ap-kind, .pt-kind) {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0;
  background: none; color: var(--text); border-radius: 0;
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.framed :is(.ap-kind, .pt-kind)::before { content: ""; width: 10px; height: 10px; background: var(--text); }
.framed :is(.ap-kind.k-story, .k-story .pt-kind)::before { background: none; box-shadow: inset 0 0 0 2px var(--text); }
.framed .ap-src { gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.framed .ap-video, .framed .ap-more { color: var(--muted); }
.framed .ap-lesson {
  color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.framed .ap-lesson:hover { text-decoration-color: var(--text); text-decoration-thickness: 2px; }

/* Barry explains it / plays it / others: rows with a rule */
.framed .as, .framed .pl { padding: 16px 0 18px; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.framed .as-top { flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.framed .as-title { color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.3; }
.framed .as-title:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.framed .as-meta { margin-top: 3px; color: var(--muted); font-size: 14px; }
/* Barry's own words: Bodoni italic, in quotation marks, the moment above them */
.framed .as .snip {
  position: relative; display: block; width: 100%; margin-top: 14px; padding: 0;
  background: none; color: var(--text);
  font-family: var(--barry); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.36; letter-spacing: -.005em;
}
.framed .as .snip:has(> .t) { padding-top: 26px; }
.framed .as .snip::before { content: "\201C"; }
.framed .as .snip::after { content: "\201D"; }
.framed .as .snip .t { position: absolute; top: 0; left: 0; margin: 0; font-size: 14px; }
.framed .as .snip:hover .t { text-decoration-thickness: 4px; }
.framed .moments { gap: 8px 18px; margin-top: 10px; }
.framed .moment span { display: inline-block; margin-left: 4px; color: var(--muted); font-weight: 400; text-decoration: none; }
.framed .moment:hover span { color: var(--text); }
.framed .jump { margin: 16px 0 0; padding: 6px 12px; font-size: 14px; }
.framed .to-answer { margin: 0 12px 0 0; padding: 1px 8px; font-size: 14px; font-weight: 700; }

/* ================================================================ the reader */
.framed .liner, .framed .intro {
  max-width: 820px; margin: 32px 0 0 48px; padding: 20px 0 96px;
  background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
}
.framed .liner-top { gap: 12px; }
.framed .liner .kicker .badge { font-size: 14px; }
.framed .close { padding: 5px 12px; font-size: 14px; font-weight: 700; }
.framed .liner h2, .framed .intro h2 {
  margin: 12px 0 12px; font-size: 44px; font-weight: 500; font-family: var(--font-heading); line-height: 1; letter-spacing: -.01em;
}
.framed .meta { gap: 2px 14px; color: var(--muted); font-size: 14px; }
.framed .why { margin-top: 12px; color: var(--muted); font-size: 15px; }
.framed .why .ctx-k { margin-right: 10px; }
.framed .context { gap: 8px; margin-top: 14px; }
.framed .ctx-row { gap: 4px 14px; color: var(--muted); font-size: 14px; }
.framed .ctx-k { min-width: 8em; color: var(--text); font-size: 14px; font-weight: 700; }
.framed .ctx-chip {
  padding: 0; border: 0; border-radius: 0; background: none; color: var(--text);
  font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.framed .ctx-chip:hover { color: var(--text); border-color: transparent; text-decoration-color: var(--text); text-decoration-thickness: 2px; }
.framed .mine { gap: 8px; margin-top: 18px; }
.framed .mine button, .framed .pl-tools button, .framed .end-actions > button, .framed .backup button, .framed .restore {
  padding: 5px 12px; font-size: 14px;
}
.framed .copied { color: var(--muted); font-size: 14px; }
.framed .player { margin: 20px 0 12px; border-radius: 0; }
.framed .play {
  padding: 12px 20px; border: 0; border-radius: 0; box-shadow: none;
  background: var(--brass-gradient); color: var(--black); font-size: 15px; font-weight: 700;
}
.framed .play:hover { filter: brightness(1.1); }
.framed .player-error, .framed .resume-note { border-radius: 0; background: var(--surface-2); color: var(--text); font-size: 14px; }
.framed .resume-note button { color: var(--text); font-weight: 600; }
.framed .actions { gap: 6px 18px; color: var(--muted); font-size: 14px; }
.framed .actions a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.framed .pl-tools { gap: 8px 18px; margin-top: 12px; color: var(--text); font-size: 14px; }
.framed .pl-tools select { margin-left: 6px; font-size: 14px; padding: 3px 4px; }
.framed .yt-chapters summary, .framed .desc summary, .framed .summary > summary { color: var(--text); font-size: 15px; font-weight: 700; }
.framed .yt-chapters button, .framed .chapters button { border-radius: 0; color: var(--text); }
.framed .yt-chapters button:hover, .framed .chapters button:hover { background: var(--surface-2); }
.framed .yt-chapters button.now { background: var(--surface-2); font-weight: 700; }
.framed .ch-t { font-size: 13.5px; }
.framed .summary {
  margin-top: 22px; padding: 12px 0 8px;
  background: none; border: 0; border-top: 3px solid var(--text); border-radius: 0;
}
.framed .sum-h { color: var(--text); font-size: 14px; font-weight: 700; }
.framed .sum-note { color: var(--muted); }
.framed .desc { border-top: 1px solid var(--border); }
.framed .desc div { color: var(--muted); }
.framed .find { background: var(--bg); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.framed .find button { width: 32px; height: 28px; padding: 0; }
.framed .transcript p { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; border-radius: 0; font-size: 17.5px; line-height: 1.7; }
.framed .cue { padding: 5px 0 0; font-size: 14px; }
.framed .transcript p.now { background: var(--surface-2); box-shadow: -10px 0 0 var(--surface-2), 10px 0 0 var(--surface-2); }
.framed .transcript p.now .cue { color: var(--text); font-weight: 700; }
.framed .transcript p.flash { animation-name: bh-flash; }
@keyframes bh-flash { 0%, 40% { background: var(--surface-2); } 100% { background: transparent; } }
:root body.framed .cited {
  margin-top: 4px; padding: 0; border-radius: 0; background: none; color: var(--muted);
  font-size: 13.5px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
:root body.framed .cited:hover { background: none; color: var(--text); text-decoration-color: var(--text); }
.framed .nocaps { border: 2px dashed var(--border-strong); border-radius: 0; color: var(--muted); }
.framed .end-actions { gap: 18px; margin-top: 32px; padding-top: 20px; border-top: 3px solid var(--text); }
.framed .prevnext button { padding: 10px 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.framed .prevnext button:hover { background: var(--surface-2); }
.framed .nb-title { color: var(--text); font-size: 16px; font-weight: 700; }
.framed .player.live .pl-float.docked { border-radius: 0; box-shadow: none; outline: 1.5px solid var(--accent-line); }
.framed .pl-float.docked .pl-dockbar { background: var(--mahogany); color: var(--parchment); }
.framed #update-banner { background: var(--text); color: var(--bg); font-weight: 600; }
.framed #update-banner button { border-radius: 0; background: var(--bg); color: var(--text); font-weight: 700; }

/* the start view: how to use it, where to begin, your study trail */
.framed .intro p { font-size: 17px; line-height: 1.6; }
.framed .intro h3 { margin: 28px 0 0; padding-bottom: 8px; border-bottom: 3px solid var(--text); font-size: 15px; font-weight: 700; }
.framed .picks-kicker { margin-top: 32px; }
.framed .picks { border: 0; border-radius: 0; background: none; }
.framed .picks li { border-bottom: 1px solid var(--border); }
.framed .picks li + li { border-top: 0; }
.framed .picks button { padding: 11px 0; }
.framed .picks button:hover { background: none; }
.framed .picks button:hover .t1 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.framed .picks .t1 { font-size: 16px; font-weight: 700; }
.framed .picks .t2 { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.framed .backup { margin-top: 40px; padding: 16px 0 0; background: none; border: 0; border-top: 3px solid var(--text); border-radius: 0; }
.framed .backup h3 { margin: 0; padding: 0; border: 0; }
.framed .fine { color: var(--muted); }
.framed .intro code { background: var(--surface-2); border-radius: 0; }

/* ================================================================ lessons page */
.framed .ls-bar {
  gap: 12px 28px; padding: 16px var(--inset);
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: none;
}
.framed .ls-bar .search { flex: 1 1 320px; max-width: 760px; }
.framed .ls-only { gap: 10px; color: var(--text); font-size: 15px; font-weight: 600; }
.framed .ls-only input { width: 18px; height: 18px; }
.framed .ls-layout {
  grid-template-columns: 240px minmax(0, 1fr); gap: 56px;
  max-width: none; margin: 0; padding: 48px var(--inset) 112px;
}
.framed .ls-topics { top: 100px; max-height: calc(100vh - 116px); padding: 0 0 16px 20px; margin-left: -20px; font-size: 15px; }

/* the topic list, like the classes page's index of places */
.framed .ls-all, .framed .ls-topic {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  padding: 7px 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  color: var(--text); font-size: 15px; line-height: 1.35;
}
.framed .ls-all { margin: 0; padding-top: 0; border-top: 0; font-weight: 700; }
.framed .ls-all:hover, .framed .ls-topic:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.framed .ls-all.on, .framed .ls-topic.on { background: none; color: var(--text); font-weight: 700; }
.framed .ls-topic.on::before, .framed .ls-all.on::before {
  content: ""; position: absolute; left: -18px; top: 12px; width: 10px; height: 10px; background: var(--text);
}
.framed .ls-all.on::before { top: 5px; }
.framed .ls-topic.none { color: var(--muted); }
.framed .ls-fam { margin: 0; padding: 0; border: 0; }
.framed .ls-fam-h {
  margin: 28px 0 0; padding-bottom: 8px; border-bottom: 3px solid var(--text);
  color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none;
}
.framed .ls-fam-h + .ls-topic { border-top: 0; }
.framed .n { color: var(--muted); font-size: 14px; font-weight: 400; }
.framed .ls-topic.on .n, .framed .ls-all.on .n { color: var(--text); opacity: 1; }

/* the overview */
.framed .ls-hello, .framed .ls-empty { margin: 0 0 64px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.framed .ls-hello h2, .framed .ls-empty h2 { margin: 0 0 16px; font-size: 36px; font-weight: 500; font-family: var(--font-heading); line-height: 1; }
.framed .ls-hello p { max-width: 40em; color: var(--text); font-size: 18px; line-height: 1.6; }
.framed .ls-hello .eg {
  padding: 0; background: none; border-radius: 0; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.framed .ls-family { margin-bottom: 72px; }
.framed .ls-family h2 {
  margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule);
  color: var(--text); font-size: 48px; font-weight: 500; font-family: var(--font-heading); line-height: .95; letter-spacing: -.01em;
}
.framed .ls-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 36px; }
.framed .ls-card {
  gap: 8px; padding: 20px 0 22px;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; color: var(--text);
}
.framed .ls-card:hover { background: none; }
.framed .ls-card:hover .ls-card-h { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.framed .ls-card-h { color: var(--text); font-size: 23px; font-weight: 500; font-family: var(--font-heading); line-height: 1.1; }
.framed .ls-card-p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.framed .ls-card-n { margin-top: 0; padding-top: 4px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* a topic */
.framed .ls-head { margin: 0 0 36px; padding: 0 0 24px; background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.framed .ls-head h2 { color: var(--text); font-size: 64px; font-weight: 500; font-family: var(--font-heading); line-height: .92; letter-spacing: -.012em; }
.framed .ls-head p { max-width: 40em; margin: 16px 0 0; font-size: 18px; line-height: 1.55; }
.framed .ls-head .ls-kicker { margin: 0 0 10px !important; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.framed .ls-head .ls-meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.framed .ls-meta .ok, .framed .ls-meta .warn { color: var(--text); font-weight: 600; }
.framed .ls-filter, .framed .ls-none { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.framed .ls-filter button, .framed .ls-none button { margin-left: 6px; padding: 3px 10px; }

/* a lesson: an ink rule, a condensed title, numbered points */
.framed .lesson {
  margin: 0 0 64px; padding: 18px 0 0; scroll-margin-top: 100px;
  background: none; border: 0; border-top: 3px solid var(--text); border-radius: 0; box-shadow: none;
}
.framed .lesson.target { border-top-width: 6px; box-shadow: none; }
.framed :is(.ls-head, .ls-filter) + .lesson { padding-top: 0; border-top: 0; }   /* the head's rule already opens it */
.framed .lesson-topic {
  display: inline-block; margin: 0 0 8px; padding: 0; background: none; border-radius: 0;
  color: var(--muted); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.framed .lesson-topic:hover { color: var(--text); text-decoration-color: var(--text); }
.framed .lesson h3 { font-size: 32px; font-weight: 500; font-family: var(--font-heading); line-height: 1.05; }
.framed .lesson h3 a { color: var(--text); }
.framed .lesson h3 a:hover { color: var(--text); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.framed .lesson-sum { max-width: 42em; margin-top: 10px; color: var(--muted); font-size: 17px; }
.framed .lesson-ideas { margin: 14px 0 6px; }
.framed .lesson-ideas .chip { border: 0; border-radius: 0; }
.framed .lesson-ideas .chip:hover { outline: 1.5px solid var(--accent-line); outline-offset: 1px; }
.framed .pts { margin-top: 18px; }
.framed .pt { padding: 20px 0 22px 56px; border-top: 1px solid var(--border); }
.framed .pt::before {
  top: 17px; left: 0; display: block; width: auto; height: auto;
  background: none; border-radius: 0; color: var(--text);
  font-size: 34px; font-weight: 500; font-family: var(--font-heading); line-height: 1; font-variant-numeric: tabular-nums;
}
.framed .pt p { max-width: 40em; font-size: 17.5px; line-height: 1.6; }
.framed .k-exercise { background: none; border-radius: 0; }
.framed .pt.target-pt { background: var(--surface-2); border-radius: 0; }

/* sources: the time to watch, the transcript, and Barry's words on request */
.framed .cites { gap: 12px; margin-top: 12px; }
.framed .cite { padding: 0; background: none; border: 0; border-radius: 0; font-size: 14px; }
.framed .cite-links { gap: 4px 14px; }
.framed .cite-tr {
  padding: 0; background: none; border-radius: 0; color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--border-strong);
}
.framed .cite-tr:hover { text-decoration-color: var(--text); }
.framed .cite-video { color: var(--muted); }
.framed .cite-words summary { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.framed .cite-words summary:hover { color: var(--text); }
.framed .cite-words blockquote {
  max-width: 38em; margin: 10px 0 4px; padding: 2px 0 2px 18px;
  background: none; border: 0; border-left: 3px solid var(--text); border-radius: 0; color: var(--text);
  font-family: var(--barry); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.4;
}
.framed .cite-words blockquote::before { content: "\201C"; }
.framed .cite-words blockquote::after { content: "\201D"; }

/* ================================================================ narrower screens */
@media (max-width: 1180px) {
  body.framed > .mast h1 { font-size: 72px; }
  .framed .layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
  .framed .list { padding-right: 24px; }
  .framed .liner, .framed .intro { margin-left: 32px; }
  .framed .reader > .answer { margin-left: 32px; }
  .framed .reader > .answer h2 { font-size: 48px; }
  .framed .ls-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  body.framed > .mast { padding-top: 32px; padding-bottom: 24px; }
  body.framed > .mast h1 { font-size: 64px; }
  .framed .controls { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .framed .layout { grid-template-columns: minmax(0, 1fr); }
  .framed .list { padding-right: 0; border-right: 0; }
  .framed .liner { margin: 0; padding: 18px var(--gutter) 80px; border-top: 0; }
  .framed .transcript p { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 17px; }
  .framed .ls-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .framed .ls-topics {
    position: static; display: flex; gap: 6px; max-height: none; overflow-x: auto;
    margin: 0 -4px; padding: 4px 4px 10px;
  }
  .framed .ls-all, .framed .ls-topic {
    display: inline-flex; flex: none; gap: 6px; margin: 0; padding: 5px 10px; white-space: nowrap;
    border: 1.5px solid var(--accent-line); font-weight: 600;
  }
  .framed .ls-all.on, .framed .ls-topic.on { background: var(--text); color: var(--bg); }
  .framed .ls-all.on .n, .framed .ls-topic.on .n { color: inherit; }
  .framed .ls-all.on::before, .framed .ls-topic.on::before { display: none; }
  .framed .ls-topic.none { border-color: var(--border-strong); }
}
@media (max-width: 600px) {
  body.framed > .mast { padding-top: 28px; padding-bottom: 20px; }
  body.framed > .mast h1 { font-size: 54px; }
  .framed .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .framed .search input { font-size: 19px; }
  .framed .tab { padding: 6px 10px; font-size: 14px; }
  .framed .answer h2 { font-size: 36px; }
  .framed .lane h3, .framed .lane summary, .framed .lane summary h3 { font-size: 26px; }
  .framed .as .snip { font-size: 19px; }
  .framed .liner h2 { font-size: 34px; }
  .framed .ls-hello h2 { font-size: 30px; }
  .framed .ls-family h2 { font-size: 38px; }
  .framed .ls-head h2 { font-size: 46px; }
  .framed .lesson h3 { font-size: 27px; }
  .framed .pt { padding-left: 38px; }
  .framed .pt::before { font-size: 27px; top: 19px; }
}

/* "On this site": the site's own pages for a search, above Barry's words */
.answer .lane-pages .pg-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.answer .lane-pages .pg { padding: 10px 0; border-top: 1px solid var(--border); }
.answer .lane-pages .pg a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--text); text-decoration: none; }
.answer .lane-pages .pg-k { font-size: 14px; font-weight: 700; color: var(--muted); min-width: 7.5em; }
.answer .lane-pages .pg-t { font-weight: 500; font-family: var(--font-heading); font-size: 19px; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.answer .lane-pages .pg a:hover .pg-t { text-decoration-color: var(--text); }
.answer .lane-pages .pg-s { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (min-width: 601px) { .answer .lane-pages .pg-s { padding-left: calc(7.5em + 12px); } }

/* ---------- polish: the stats as big numbers, and lighter outlines on the filters ---------- */
body.framed > .mast .credits { gap: 10px 36px; }
body.framed > .mast .credits div { flex-direction: column; gap: 2px; }
body.framed > .mast .credits dd { font-size: 32px; font-weight: 500; font-family: var(--font-heading); line-height: 1; }
body.framed > .mast .credits dt { font-size: 14px; }
.framed .tab, .framed .list .chip { border-width: 1.5px; }
