@font-face {
  font-family: 'ABC Monument Grotesk';
  src: url('../../fonts/ABCMonumentGrotesk-Bold.woff2') format('woff2'),
       url('../../fonts/ABCMonumentGrotesk-Bold.woff') format('woff'),
       url('../../fonts/ABCMonumentGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sabon LT Std';
  src: url('../../fonts/SabonLTStd-Roman.woff2') format('woff2'),
       url('../../fonts/SabonLTStd-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../../fonts/LibreBaskerville[wght].woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../../fonts/LibreBaskerville-Italic[wght].woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F0EBE4;
  --bg-footer: #768100;
  --text: #000000;
  --text-secondary: rgba(0, 0, 0, 0.54);
  --text-muted: rgba(0, 0, 0, 0.54);
  --text-on-image: #FFFFFF;
  --text-on-footer: #000000;
  --overlay: rgba(0, 0, 0, 0.15);
  --overlay-strong: rgba(0, 0, 0, 0.15);
  --border: rgba(255, 255, 255, 0.92);
  --serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
  --serif-display: 'Sabon LT Std', 'Georgia', 'Times New Roman', serif;
  --sans: 'ABC Monument Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 1360px;
  --nav-height: 64px;
  --course-card-gradient: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 33%,
    rgba(0, 0, 0, 0.3) 75%,
    rgba(0, 0, 0, 0.82) 100%
  );
  --course-card-gradient-mobile: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 33%,
    rgba(0, 0, 0, 0.45) 56%,
    rgba(0, 0, 0, 0.45) 75%,
    rgba(0, 0, 0, 0.82) 100%
  );
  --nav-top: 24px;
  --nav-mobile-top: 16px;
  --radius: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

html.reader-document { scroll-behavior: auto; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.25;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===================== ERGO READER ===================== */
.reader-catalog-page { max-width: 1480px; margin: 0 auto; padding: 170px 48px 110px; }
.reader-catalog-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--border); }
.reader-catalog-hero > p { grid-column: 1 / -1; margin: 0 0 -44px; color: var(--accent); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.reader-catalog-hero h1 { margin: 0; font-family: var(--serif-display); font-size: clamp(3.6rem, 7vw, 7.4rem); font-weight: 400; line-height: .92; letter-spacing: -.035em; }
.reader-catalog-hero > div { align-self: end; max-width: 520px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.reader-catalog-hero > div p { margin: 0; }
.reader-catalog-hero > div p + p { margin-top: 18px; }
.reader-catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reader-catalog-card { min-height: 430px; padding: 38px 42px 32px; border-bottom: 1px solid var(--border); color: var(--text); display: flex; flex-direction: column; transition: background .2s; }
.reader-catalog-card:nth-child(odd) { border-right: 1px solid var(--border); }
.reader-catalog-card:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.reader-catalog-card-meta, .reader-catalog-card-foot { display: flex; justify-content: space-between; gap: 20px; color: var(--text-muted); font-family: var(--sans); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.reader-catalog-card h2 { max-width: 680px; margin: 54px 0 16px; font-family: var(--serif-display); font-size: clamp(2.25rem, 4vw, 4.3rem); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.reader-catalog-author { margin: 0; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.reader-catalog-translator { margin: 10px 0 0; color: var(--text-muted); font-size: .88rem; font-style: italic; }
.reader-catalog-deck { max-width: 580px; margin: 34px 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.reader-catalog-card-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.reader-experiments { margin-top: 110px; border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }
.reader-experiments-head { padding: 46px 42px 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-bottom: 1px solid var(--border); }
.reader-experiments-head > div > p { margin: 0 0 12px; color: var(--accent); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.reader-experiments-head h2 { margin: 0; font-family: var(--serif-display); font-size: clamp(3rem, 5vw, 5.4rem); font-weight: 400; line-height: .95; }
.reader-experiments-head > p { align-self: end; max-width: 570px; margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.reader-experiments-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reader-experiment-card { min-height: 410px; padding: 36px 42px 32px; color: var(--text); display: flex; flex-direction: column; transition: background .2s; }
.reader-experiment-card + .reader-experiment-card { border-left: 1px solid var(--border); }
.reader-experiment-card:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.reader-experiment-card-meta, .reader-experiment-card-foot { display: flex; justify-content: space-between; gap: 20px; color: var(--text-muted); font-family: var(--sans); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.reader-experiment-card h3 { max-width: 590px; margin: 46px 0 13px; font-family: var(--serif-display); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; line-height: .98; }
.reader-experiment-author { margin: 0; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.reader-experiment-scope { margin: 24px 0 0; color: var(--accent); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.reader-experiment-deck { max-width: 570px; margin: 14px 0 30px; color: var(--text-muted); font-size: .96rem; line-height: 1.6; }
.reader-experiment-card-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }

.reader-page {
  --reader-bg: #efe9df;
  --reader-text: #191815;
  --reader-muted: rgba(25, 24, 21, 0.56);
  --reader-rule: rgba(25, 24, 21, 0.18);
  --reader-panel: #f8f4ed;
  --reader-accent: #768100;
  --reader-font-size: 1.14rem;
  background: var(--reader-bg);
  color: var(--reader-text);
  transition: background-color .25s ease, color .25s ease;
}

.reader-page[data-reader-theme="soft"] {
  --reader-bg: #e3e7df;
  --reader-text: #18201b;
  --reader-muted: rgba(24, 32, 27, .56);
  --reader-rule: rgba(24, 32, 27, .18);
  --reader-panel: #f0f3ee;
  --reader-accent: #566500;
}

.reader-page[data-reader-theme="night"] {
  --reader-bg: #171815;
  --reader-text: #e7e2d8;
  --reader-muted: rgba(231, 226, 216, .56);
  --reader-rule: rgba(231, 226, 216, .18);
  --reader-panel: #22231f;
  --reader-accent: #bac45a;
}

.reader-page main { padding: 0; }
.reader-page a { text-decoration: none; }
.reader-page button:focus-visible,
.reader-page a:focus-visible { outline: 2px solid var(--reader-accent); outline-offset: 4px; }

.reader-header {
  position: fixed;
  z-index: 1200;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px) 1fr;
  align-items: center;
  color: var(--reader-text);
  border-bottom: 1px solid var(--reader-rule);
  background: color-mix(in srgb, var(--reader-bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reader-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.reader-brand img { width: 74px; height: auto; filter: none; }
.reader-brand > a { color: inherit; }
.reader-brand-catalog:hover { color: var(--reader-accent); }
.reader-page[data-reader-theme="night"] .reader-brand img { filter: invert(1); }
.reader-brand-divider { width: 1px; height: 22px; background: var(--reader-rule); }

.reader-header-chapter {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: var(--reader-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.reader-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.reader-header-link { padding: 11px 16px; border: 1px solid var(--reader-rule); border-radius: 99px; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.reader-header-link:hover { background: color-mix(in srgb, var(--reader-accent) 7%, transparent); }
.reader-icon-button,
.reader-contents-button {
  min-height: 40px;
  border: 1px solid var(--reader-rule);
  border-radius: 99px;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
}
.reader-icon-button { width: 44px; text-transform: none; font-family: var(--serif); font-size: .88rem; }
.reader-contents-button { display: flex; align-items: center; gap: 12px; padding: 0 17px; }
.reader-contents-button i,
.reader-contents-button i::before { display: block; width: 13px; height: 1px; background: currentColor; content: ''; }
.reader-contents-button i::before { transform: translateY(4px); }

.reader-cover {
  min-height: 100svh;
  padding: clamp(132px, 17vh, 190px) 32px 64px;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 780px) minmax(220px, 1fr);
  align-content: center;
}

.reader-cover > * { grid-column: 2; }
.reader-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
  color: var(--reader-muted);
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.reader-kicker span { width: 28px; height: 1px; background: var(--reader-muted); }

.reader-cover h1 {
  max-width: 820px;
  font-family: var(--serif-display);
  font-size: clamp(3.5rem, 7vw, 7.1rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.045em;
}

.reader-byline { margin-top: 34px; font-family: var(--sans); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.reader-byline i { padding: 0 .45em; color: var(--reader-accent); font-style: normal; }
.reader-translator { margin-top: 14px; font-size: 1.04rem; line-height: 1.35; }
.reader-translator span { margin-right: .45em; color: var(--reader-muted); font-size: .78rem; font-style: italic; }
.reader-translator small { color: var(--reader-muted); font-family: var(--sans); font-size: .62rem; letter-spacing: .015em; }
.reader-deck { max-width: 610px; margin-top: 42px; color: var(--reader-muted); font-size: 1.25rem; line-height: 1.55; }
.reader-estimate { margin-top: 32px; color: var(--reader-muted); font-size: .78rem; }
.reader-book-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--reader-rule); border-left: 1px solid var(--reader-rule); }
.reader-book-action,
.reader-citation-menu > summary { min-height: 82px; padding: 16px 18px; border-right: 1px solid var(--reader-rule); border-bottom: 1px solid var(--reader-rule); display: flex; flex-direction: column; justify-content: center; gap: 6px; color: var(--reader-text); cursor: pointer; list-style: none; }
.reader-citation-menu > summary::-webkit-details-marker { display: none; }
.reader-book-action strong,
.reader-citation-menu > summary strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; }
.reader-book-action small,
.reader-citation-menu > summary small { color: var(--reader-muted); font-size: .68rem; line-height: 1.35; }
.reader-book-action:hover,
.reader-citation-menu > summary:hover { background: color-mix(in srgb, var(--reader-accent) 7%, transparent); }
.reader-citation-menu { position: relative; }
.reader-citation-menu[open] > summary strong span { transform: rotate(45deg); }
.reader-citation-menu > div { position: absolute; z-index: 4; top: calc(100% + 8px); right: 0; width: min(310px, 80vw); padding: 8px; border: 1px solid var(--reader-rule); border-radius: 10px; background: var(--reader-panel); box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }
.reader-citation-menu > div a { padding: 12px; display: flex; flex-direction: column; gap: 3px; border-radius: 6px; }
.reader-citation-menu > div a:hover { background: color-mix(in srgb, var(--reader-accent) 9%, transparent); }
.reader-citation-menu > div strong { font-family: var(--sans); font-size: .72rem; }
.reader-citation-menu > div span { color: var(--reader-muted); font-size: .7rem; line-height: 1.35; }

.reader-guide {
  width: min(100% - 64px, 900px);
  margin: 0 auto 56px;
  padding: 26px 30px;
  border: 1px solid var(--reader-rule);
  border-radius: 14px;
  background: color-mix(in srgb, var(--reader-panel) 62%, transparent);
}
.reader-guide summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; cursor: pointer; font-family: var(--sans); list-style: none; }
.reader-guide summary::-webkit-details-marker { display: none; }
.reader-guide summary .reader-guide-title { color: var(--reader-text); font-family: var(--serif-display); font-size: 1.45rem; }
.reader-guide-summary-meta { display: flex; align-items: center; gap: 18px; }
.reader-guide summary small { color: var(--reader-muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.reader-guide-toggle { display: flex; align-items: center; gap: 8px; color: var(--reader-text); font-size: .67rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.reader-guide-toggle b { position: relative; width: 18px; height: 18px; border: 1px solid var(--reader-rule); border-radius: 50%; }
.reader-guide-toggle b::before,
.reader-guide-toggle b::after { position: absolute; top: 50%; left: 50%; width: 8px; height: 1px; background: currentColor; content: ''; transform: translate(-50%, -50%); }
.reader-guide-toggle b::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .18s ease; }
.reader-guide-close-label { display: none; }
.reader-guide details[open] .reader-guide-open-label { display: none; }
.reader-guide details[open] .reader-guide-close-label { display: inline; }
.reader-guide details[open] .reader-guide-toggle b::after { transform: translate(-50%, -50%) rotate(0); }
.reader-guide-body { padding-top: 24px; }
.reader-guide-body > p { max-width: 720px; margin: 0 0 26px; color: var(--reader-muted); font-size: .96rem; line-height: 1.65; }
.reader-guide ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.reader-guide li { padding: 16px 0; border-top: 1px solid var(--reader-rule); }
.reader-guide li a { color: var(--reader-text); font-family: var(--sans); font-size: .82rem; font-weight: 700; line-height: 1.35; }
.reader-guide li p { margin: 7px 0 0; color: var(--reader-muted); font-size: .82rem; line-height: 1.5; }

.reader-terminology { width: min(100% - 64px, 1180px); margin: 0 auto 24px; border: 1px solid var(--reader-rule); border-radius: 14px; background: color-mix(in srgb, var(--reader-accent) 4%, var(--reader-panel)); }
.reader-terminology summary { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.reader-terminology summary::-webkit-details-marker { display: none; }
.reader-terminology summary > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.reader-terminology summary small { color: var(--reader-accent); font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-terminology summary strong { color: var(--reader-text); font-family: var(--serif-display); font-size: 1.35rem; font-weight: 400; }
.reader-terminology-toggle { display: flex; align-items: center; gap: 9px; color: var(--reader-text); font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.reader-terminology-toggle b { position: relative; width: 18px; height: 18px; border: 1px solid var(--reader-rule); border-radius: 50%; }
.reader-terminology-toggle b::before, .reader-terminology-toggle b::after { position: absolute; top: 50%; left: 50%; width: 8px; height: 1px; background: currentColor; content: ''; transform: translate(-50%, -50%); }
.reader-terminology-toggle b::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .18s ease; }
.reader-terminology details[open] .reader-terminology-toggle b::after { transform: translate(-50%, -50%) rotate(0); }
.reader-terminology-body { padding: 4px 26px 28px; }
.reader-terminology-body > p { max-width: 760px; margin: 0 0 22px; color: var(--reader-muted); font-size: .8rem; line-height: 1.55; }
.reader-terminology ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.reader-terminology li { padding: 18px 0; border-top: 1px solid var(--reader-rule); }
.reader-terminology-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.reader-terminology-term { display: flex; align-items: baseline; gap: 9px; color: var(--reader-text); font-size: .9rem; }
.reader-terminology-term i { font-family: var(--serif); }
.reader-terminology-term span { color: var(--reader-accent); }
.reader-terminology-term strong { font-family: var(--sans); font-size: .76rem; }
.reader-terminology-references { display: flex; align-items: center; gap: 7px; color: var(--reader-muted); font-family: var(--sans); font-size: .56rem; white-space: nowrap; }
.reader-terminology-references a { color: var(--reader-accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.reader-terminology li p { margin: 8px 0 0; color: var(--reader-muted); font-size: .76rem; line-height: 1.5; }
.reader-terminology li small { margin-top: 9px; display: block; color: var(--reader-muted); font-size: .65rem; line-height: 1.45; }

.reader-passages-promo {
  width: min(100% - 64px, 900px);
  margin: 0 auto 28px;
  padding: 32px 30px 24px;
  border: 1px solid var(--reader-rule);
  border-radius: 14px;
  background: color-mix(in srgb, var(--reader-accent) 5%, var(--reader-panel));
}
.reader-passages-promo > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px 42px; align-items: end; }
.reader-passages-promo > div > p:first-child { grid-column: 1 / -1; margin: 0; color: var(--reader-accent); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-passages-promo h2 { margin: 0; font-family: var(--serif-display); font-size: 2rem; font-weight: 400; line-height: 1; }
.reader-passages-promo > div > p:last-child { margin: 0; color: var(--reader-muted); font-size: .82rem; line-height: 1.5; }
.reader-passages-promo ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; padding: 0; border-top: 1px solid var(--reader-rule); list-style: none; }
.reader-passages-promo li + li { border-left: 1px solid var(--reader-rule); }
.reader-passages-promo li a { min-height: 102px; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.reader-passages-promo li a:hover { background: color-mix(in srgb, var(--reader-accent) 7%, transparent); }
.reader-passages-promo li span { color: var(--reader-muted); font-family: var(--sans); font-size: .57rem; letter-spacing: .05em; text-transform: uppercase; }
.reader-passages-promo li strong { font-family: var(--sans); font-size: .78rem; line-height: 1.35; }
.reader-passages-promo-all { margin-top: 20px; display: inline-block; color: var(--reader-accent); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }

.reader-passages-index { max-width: 1320px; margin: 0 auto; padding: 142px 42px 110px !important; }
.reader-passages-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px 80px; padding-bottom: 72px; border-bottom: 1px solid var(--reader-rule); }
.reader-passages-back { grid-column: 1 / -1; width: fit-content; color: var(--reader-muted); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.reader-passages-back:hover { color: var(--reader-accent); }
.reader-passages-eyebrow { grid-column: 1 / -1; margin: 18px 0 -6px; color: var(--reader-accent); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-passages-hero h1 { margin: 0; font-family: var(--serif-display); font-size: clamp(4rem, 7vw, 7rem); font-weight: 400; line-height: .88; letter-spacing: -.04em; }
.reader-passages-intro { align-self: end; max-width: 520px; color: var(--reader-muted); font-size: 1rem; line-height: 1.65; }
.reader-passages-intro > p { margin: 0; }
.reader-passages-edition { margin-top: 26px !important; font-family: var(--sans); font-size: .67rem; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; }
.reader-passages-list { margin: 0; padding: 0; list-style: none; }
.reader-passages-list > li { border-bottom: 1px solid var(--reader-rule); }
.reader-passages-list > li > a { min-height: 240px; padding: 34px 20px 36px 4px; display: grid; grid-template-columns: 58px minmax(0, 760px) 1fr; gap: 28px; align-items: start; }
.reader-passages-list > li > a:hover { background: color-mix(in srgb, var(--reader-accent) 5%, transparent); }
.reader-passages-number { padding-top: 7px; color: var(--reader-accent); font-family: var(--sans); font-size: .65rem; font-weight: 700; }
.reader-passages-list div > p:first-child { margin: 0 0 20px; color: var(--reader-muted); font-family: var(--sans); font-size: .62rem; letter-spacing: .055em; text-transform: uppercase; }
.reader-passages-list h2 { margin: 0; font-family: var(--serif-display); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 400; line-height: .95; letter-spacing: -.025em; }
.reader-passages-list div > p:last-child { max-width: 680px; margin: 28px 0 0; color: var(--reader-muted); font-size: .9rem; line-height: 1.6; }
.reader-passages-arrow { justify-self: end; align-self: center; color: var(--reader-accent); font-size: 1.4rem; }

.reader-passage-main { padding-top: 72px !important; }
.reader-passage-hero { width: min(100% - 64px, 980px); margin: 0 auto; padding: 104px 0 70px; border-bottom: 1px solid var(--reader-rule); }
.reader-passage-hero .reader-passages-eyebrow { margin: 42px 0 22px; }
.reader-passage-hero h1 { max-width: 900px; margin: 0; font-family: var(--serif-display); font-size: clamp(4rem, 8vw, 7.6rem); font-weight: 400; line-height: .88; letter-spacing: -.04em; }
.reader-passage-book { margin: 34px 0 0; color: var(--reader-muted); font-size: .9rem; }
.reader-passage-framing { width: min(100% - 64px, 980px); margin: 0 auto; padding: 44px 0; display: grid; grid-template-columns: .36fr 1fr; gap: 50px; border-bottom: 1px solid var(--reader-rule); }
.reader-passage-framing > p { margin: 4px 0 0; color: var(--reader-accent); font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.reader-passage-framing > div > p { max-width: 680px; margin: 0; font-size: 1.08rem; line-height: 1.65; }
.reader-passage-framing small { margin-top: 22px; display: block; color: var(--reader-muted); font-family: var(--sans); font-size: .62rem; line-height: 1.5; }
.reader-essential-text { padding-top: 100px; }
.reader-essential-text > p:first-of-type::first-letter { float: left; margin: .02em .09em 0 0; color: var(--reader-accent); font-family: var(--serif-display); font-size: 4.25em; line-height: .76; }
.reader-passage-footer { width: min(100% - 64px, 980px); margin: 0 auto 100px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--reader-rule); border-left: 1px solid var(--reader-rule); }
.reader-passage-footer a { min-height: 112px; padding: 24px; border-right: 1px solid var(--reader-rule); border-bottom: 1px solid var(--reader-rule); display: flex; flex-direction: column; justify-content: space-between; }
.reader-passage-footer a:hover { background: color-mix(in srgb, var(--reader-accent) 6%, transparent); }
.reader-passage-footer span { color: var(--reader-muted); font-size: .72rem; }
.reader-passage-footer strong { font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.reader-text { width: min(100% - 40px, 760px); margin: 0 auto; padding: 60px 0 180px; }
.reader-chapter { padding-top: 140px; }
.reader-chapter + .reader-chapter { margin-top: 88px; border-top: 1px solid var(--reader-rule); }
.reader-text h2 {
  margin-bottom: 64px;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-transform: none;
  text-wrap: balance;
  scroll-margin-top: 96px;
}
.reader-text h2::before {
  display: block;
  margin-bottom: 22px;
  color: var(--reader-accent);
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  content: 'Chapter';
}
.reader-text p {
  margin: 0 0 1.35em;
  font-size: var(--reader-font-size);
  line-height: 1.84;
  letter-spacing: -.008em;
  text-wrap: pretty;
  scroll-margin-top: 104px;
}
.reader-text .reader-chapter > p:first-of-type:not(.reader-numbered-section):not(.reader-epigraph)::first-letter {
  float: left;
  margin: .02em .09em 0 0;
  color: var(--reader-accent);
  font-family: var(--serif-display);
  font-size: 4.25em;
  line-height: .76;
}
.reader-section-number {
  min-width: 1.7em;
  display: inline-block;
  color: var(--reader-accent);
  font-family: var(--sans);
  font-size: .64em;
  font-weight: 700;
  letter-spacing: .025em;
  vertical-align: .12em;
}
.reader-reference,
.reader-line-number {
  color: var(--reader-muted);
  font-family: var(--sans);
  font-size: .53em;
  font-style: normal;
  letter-spacing: .025em;
  white-space: nowrap;
  vertical-align: super;
}
.reader-reference { margin: 0 .5em 0 .12em; }
.reader-line-number { margin: 0 .13em; opacity: .72; }
.reader-footnote-ref { font-size: .58em; vertical-align: super; }
.reader-footnote-ref a { color: var(--reader-accent); border-bottom: 1px solid currentColor; font-family: var(--sans); font-weight: 700; text-decoration: none; }
.reader-footnote-ref:target, .reader-footnote:target { background: color-mix(in srgb, var(--reader-accent) 13%, transparent); }
.reader-footnotes { margin: 88px 0 0; padding: 26px 0 0 1.5rem; border-top: 1px solid var(--reader-rule); color: var(--reader-muted); font-size: .72rem; line-height: 1.55; }
.reader-footnotes::before { margin: 0 0 18px -1.5rem; display: block; color: var(--reader-text); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; content: 'Notes'; }
.reader-footnote { padding: 5px 0; scroll-margin-top: 92px; }
.reader-footnote-back { margin-right: .35em; color: var(--reader-accent); font-family: var(--sans); font-weight: 700; }
.reader-text .reader-epigraph { margin: -20px 0 44px; color: var(--reader-muted); font-style: italic; }
.reader-text .reader-epigraph span { display: block; margin-top: 6px; font-size: .82em; }
.reader-text .reader-chapter > .reader-epigraph:first-of-type::first-letter { float: none; margin: 0; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; }
.reader-text i { font-family: var(--serif); font-style: italic; }
.reader-note { margin: 38px 0 42px; padding: 26px 28px 8px; border-left: 3px solid var(--reader-accent); background: color-mix(in srgb, var(--reader-panel) 64%, transparent); }
.reader-note-label { display: block; margin-bottom: 12px; color: var(--reader-accent); font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.reader-note p { color: var(--reader-muted); font-size: calc(var(--reader-font-size) * .86); line-height: 1.68; }
.reader-text h3 { margin: 90px 0 0; text-align: center; font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; }
.reader-text.reader-text-bilingual { width: min(100% - 64px, 1180px); }
.reader-bilingual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 50px; margin-top: 30px; }
.reader-bilingual-column-head { margin-bottom: 18px; color: var(--reader-accent); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reader-bilingual-pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; padding: 34px 0 42px; border-top: 1px solid var(--reader-rule); }
.reader-bilingual-pair p { margin: 0; font-size: clamp(1.04rem, 1.35vw, 1.28rem); line-height: 1.72; }
.reader-bilingual-pair p::before { content: none; }
.reader-bilingual-pair [lang="de"], .reader-bilingual-pair [lang="grc"] { color: var(--reader-muted); }
.reader-bilingual-pair [lang="en"] { color: var(--reader-text); }
.reader-bilingual-pair .reader-section-number { margin-left: 0; }
.reader-modern-pilot-link { width: min(680px, 100%); margin: 34px auto 0; padding: 19px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--reader-rule); text-align: left; }
.reader-modern-pilot-link span { color: var(--reader-accent); font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.reader-modern-pilot-link strong { font-family: var(--sans); font-size: .72rem; }
.reader-modern-pilot-link i { color: var(--reader-accent); font-style: normal; }
.reader-document, .reader-comparison-page { overflow-x: clip; }
.reader-comparison-cover { padding-bottom: 90px; }
.reader-comparison-notice { width: min(720px, 100%); margin: 36px auto 0; padding: 18px 22px; display: flex; gap: 14px; border-left: 3px solid var(--reader-accent); background: var(--reader-panel); text-align: left; }
.reader-comparison-notice strong { flex: 0 0 auto; font-family: var(--sans); font-size: .66rem; text-transform: uppercase; }
.reader-comparison-notice span { color: var(--reader-muted); font-size: .72rem; line-height: 1.45; }
.reader-comparison-classic-link { margin-top: 24px; display: inline-block; color: var(--reader-accent); font-family: var(--sans); font-size: .66rem; font-weight: 700; }
.reader-comparison-cover .reader-deck strong { display: block; margin-bottom: 8px; color: var(--reader-text); font-family: var(--sans); font-size: .72rem; letter-spacing: .025em; }
.reader-access-principle { width: min(calc(100% - 64px), 1180px); margin: 0 auto 48px; padding: 32px 36px; display: grid; grid-template-columns: minmax(220px, .7fr) 1.6fr; gap: 54px; border: 1px solid var(--reader-rule); background: var(--reader-panel); }
.reader-access-principle small { color: var(--reader-accent); font-family: var(--sans); font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-access-principle h2 { margin: 9px 0 0; font-family: var(--serif-display); font-size: 1.8rem; font-weight: 400; line-height: 1.05; }
.reader-access-principle ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; }
.reader-access-principle li { display: flex; flex-direction: column; gap: 8px; }
.reader-access-principle strong { font-family: var(--sans); font-size: .62rem; letter-spacing: .035em; text-transform: uppercase; }
.reader-access-principle span { color: var(--reader-muted); font-size: .7rem; line-height: 1.5; }
.reader-view-controls { position: sticky; z-index: 35; top: 72px; width: min(calc(100% - 64px), 1180px); margin: 0 auto 26px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--reader-rule); border-radius: 999px; background: color-mix(in srgb, var(--reader-bg) 94%, transparent); backdrop-filter: blur(12px); }
.reader-view-controls > span { margin: 0 12px; color: var(--reader-muted); font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reader-view-controls button { min-height: 38px; padding: 0 18px; border-radius: 999px; color: var(--reader-muted); font-family: var(--sans); font-size: .62rem; font-weight: 700; }
.reader-view-controls button.active { background: var(--reader-text); color: var(--reader-bg); }
.reader-text-comparison { width: min(calc(100% - 64px), 1180px); }
.reader-comparison-head, .reader-comparison-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; }
.reader-comparison-head { padding: 0 0 14px; color: var(--reader-accent); font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-comparison-row { padding: 34px 0 42px; border-top: 1px solid var(--reader-rule); scroll-margin-top: 150px; }
.reader-comparison-row p { margin: 0; font-size: var(--reader-font-size); line-height: 1.72; }
.reader-comparison-row p::first-letter { float: none !important; margin: 0 !important; color: inherit !important; font: inherit !important; }
.reader-comparison-row p + p { margin-top: 1.25em; }
.reader-comparison-classic { color: var(--reader-muted); }
.reader-comparison-row h3 { margin: 0 0 22px; font-family: var(--sans); font-size: .7rem; line-height: 1.35; letter-spacing: .055em; text-transform: uppercase; }
.reader-comparison-modern h3 { color: var(--reader-accent); }
.reader-comparison-modern { color: var(--reader-text); }
.reader-comparison-note { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--reader-accent); background: var(--reader-panel); }
.reader-comparison-note strong { display: block; margin-bottom: 8px; color: var(--reader-accent); font-family: var(--sans); font-size: .55rem; letter-spacing: .07em; text-transform: uppercase; }
.reader-comparison-note p { color: var(--reader-muted); font-size: calc(var(--reader-font-size) * .76); }
.reader-comparison-page[data-reader-view="classic"] .reader-comparison-head span:last-child, .reader-comparison-page[data-reader-view="classic"] .reader-comparison-modern { display: none; }
.reader-comparison-page[data-reader-view="modern"] .reader-comparison-head span:first-child, .reader-comparison-page[data-reader-view="modern"] .reader-comparison-classic { display: none; }
.reader-comparison-page[data-reader-view="classic"] .reader-comparison-head, .reader-comparison-page[data-reader-view="classic"] .reader-comparison-row, .reader-comparison-page[data-reader-view="modern"] .reader-comparison-head, .reader-comparison-page[data-reader-view="modern"] .reader-comparison-row { grid-template-columns: minmax(0, 760px); justify-content: center; }
.reader-review-notice { width: min(100% - 64px, 1180px); margin: 0 auto 34px; padding: 18px 22px; border: 1px solid var(--reader-rule); background: var(--reader-panel); color: var(--reader-text); }
.reader-review-notice div { display: flex; flex-direction: column; gap: 3px; }
.reader-review-notice strong { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.reader-review-notice span { color: var(--reader-muted); font-size: .74rem; }
.reader-translation-note { position: relative; display: inline-block; margin-left: .3em; font-family: var(--sans); vertical-align: super; }
.reader-translation-note-marker { width: 1.55rem; height: 1.55rem; border: 1px solid var(--reader-accent); border-radius: 50%; color: var(--reader-accent); font-size: .54rem; font-weight: 800; line-height: 1; }
.reader-translation-note-popover { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 10px); width: min(330px, 76vw); padding: 15px 17px; border: 1px solid var(--reader-rule); border-radius: 8px; background: var(--reader-panel); box-shadow: 0 12px 34px rgba(0,0,0,.16); color: var(--reader-muted); font-family: var(--serif); font-size: .72rem; font-weight: 400; line-height: 1.55; text-align: left; transform: translateX(-50%); vertical-align: baseline; visibility: hidden; opacity: 0; transition: opacity .16s ease, visibility .16s ease; }
.reader-translation-note-popover strong { display: block; margin-bottom: 6px; color: var(--reader-text); font-family: var(--sans); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.reader-translation-note:hover .reader-translation-note-popover, .reader-translation-note:focus-within .reader-translation-note-popover, .reader-translation-note.open .reader-translation-note-popover { visibility: visible; opacity: 1; }
.reader-language-gloss { position: relative; display: inline; }
.reader-language-gloss > button { padding: 0; border: 0; border-bottom: 1px dotted var(--reader-accent); background: none; color: inherit; font: inherit; line-height: inherit; text-align: inherit; cursor: help; }
.reader-language-gloss > button:focus-visible { border-radius: 2px; outline: 2px solid var(--reader-accent); outline-offset: 2px; }
.reader-language-gloss-popover { position: absolute; z-index: 22; left: 50%; bottom: calc(100% + 10px); width: min(340px, 78vw); padding: 15px 17px; display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--reader-rule); border-radius: 8px; background: var(--reader-panel); box-shadow: 0 12px 34px rgba(0,0,0,.16); color: var(--reader-text); font-family: var(--serif); font-size: .72rem; font-weight: 400; line-height: 1.45; text-align: left; transform: translateX(-50%); visibility: hidden; opacity: 0; transition: opacity .16s ease, visibility .16s ease; }
.reader-language-gloss-popover > span { color: var(--reader-accent); font-family: var(--sans); font-size: .55rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.reader-language-gloss-popover i { color: var(--reader-muted); font-size: .74rem; }
.reader-language-gloss-popover strong { font-size: .78rem; font-weight: 400; }
.reader-language-gloss-popover small { margin-top: 3px; color: var(--reader-muted); font-family: var(--sans); font-size: .55rem; line-height: 1.4; }
.reader-language-gloss:hover .reader-language-gloss-popover, .reader-language-gloss:focus-within .reader-language-gloss-popover, .reader-language-gloss.open .reader-language-gloss-popover { visibility: visible; opacity: 1; }

.reader-drawer {
  position: fixed;
  z-index: 1400;
  inset: 0 0 0 auto;
  width: min(460px, 92vw);
  padding: 28px 32px 36px;
  overflow-y: auto;
  background: var(--reader-panel);
  color: var(--reader-text);
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
}
.reader-drawer.open { transform: translateX(0); }
.reader-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 54px; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; }
.reader-drawer-head button { color: var(--reader-muted); font-family: var(--serif); font-size: .8rem; text-transform: none; }
.reader-drawer nav { display: flex; flex-direction: column; }
.reader-drawer nav a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--reader-rule); font-size: .92rem; line-height: 1.35; }
.reader-drawer nav a span { padding-top: .22em; color: var(--reader-muted); font-family: var(--sans); font-size: .58rem; }
.reader-drawer nav a.active { color: var(--reader-accent); }
.reader-drawer-feature { margin-top: 20px; padding: 13px 0; display: block; border-bottom: 1px solid var(--reader-rule); color: var(--reader-accent); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.reader-source-note { margin-top: 42px; color: var(--reader-muted); font-size: .72rem; line-height: 1.55; }

.reader-settings {
  position: fixed;
  z-index: 1400;
  top: 82px;
  right: 32px;
  width: 310px;
  padding: 22px;
  border: 1px solid var(--reader-rule);
  border-radius: 12px;
  background: var(--reader-panel);
  color: var(--reader-text);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.reader-settings.open { opacity: 1; transform: none; pointer-events: auto; }
.reader-setting-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--reader-muted); font-size: .78rem; }
.reader-setting-row + .reader-setting-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--reader-rule); }
.reader-setting-row > div { display: flex; gap: 6px; }
.reader-setting-row button { min-width: 39px; height: 34px; border: 1px solid var(--reader-rule); border-radius: 7px; font-size: .75rem; }
.reader-setting-row button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reader-themes button { min-width: 30px; width: 30px; border-radius: 50%; }
.reader-themes button:nth-child(1) { background: #efe9df; }
.reader-themes button:nth-child(2) { background: #e3e7df; }
.reader-themes button:nth-child(3) { background: #171815; }
.reader-themes button.active { box-shadow: 0 0 0 2px var(--reader-panel), 0 0 0 4px var(--reader-accent); }

.reader-scrim { position: fixed; z-index: 1300; inset: 0; background: rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: opacity .25s; }
.reader-scrim.open { opacity: 1; pointer-events: auto; }
.reader-panel-open { overflow: hidden; }

.reader-book-footer { padding: 72px 32px 40px; background: var(--reader-accent); color: #fff; text-align: center; }
.reader-page[data-reader-theme="night"] .reader-book-footer { color: #171815; }
.reader-book-footer > p { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.reader-book-footer > div { margin-top: 140px; display: flex; justify-content: space-between; font-size: .66rem; opacity: .78; }
.reader-edition-details { max-width: 820px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid currentColor; text-align: left; font-family: var(--sans); font-size: .72rem; line-height: 1.55; }
.reader-edition-details summary { cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reader-edition-details p { margin: 14px 0 0; opacity: .82; }
.reader-edition-details a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 800px) {
  .reader-catalog-page { padding: 118px 20px 72px; }
  .reader-catalog-hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 54px; }
  .reader-catalog-hero > p { margin-bottom: -10px; }
  .reader-catalog-hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .reader-catalog-list { grid-template-columns: 1fr; }
  .reader-catalog-card { min-height: 390px; padding: 30px 4px 26px; border-right: 0 !important; }
  .reader-catalog-card h2 { margin-top: 44px; font-size: clamp(2.5rem, 12vw, 4rem); }
  .reader-experiments { margin: 72px -4px 0; }
  .reader-experiments-head { padding: 32px 24px; grid-template-columns: 1fr; gap: 24px; }
  .reader-experiments-head h2 { font-size: 3.4rem; }
  .reader-experiments-list { grid-template-columns: 1fr; }
  .reader-experiment-card { min-height: 380px; padding: 30px 24px 26px; }
  .reader-experiment-card + .reader-experiment-card { border-top: 1px solid var(--border); border-left: 0; }
  .reader-experiment-card h3 { margin-top: 40px; font-size: 2.8rem; }
  .reader-header { height: 62px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .reader-brand-divider, .reader-header-chapter, .reader-contents-button span { display: none; }
  .reader-brand img { width: 68px; }
  .reader-header-link { padding: 10px 12px; font-size: .6rem; }
  .reader-header-actions { gap: 6px; }
  .reader-icon-button, .reader-contents-button { min-height: 38px; width: 42px; justify-content: center; padding: 0; }
  .reader-cover { min-height: 100svh; padding: 122px 20px 48px; display: block; }
  .reader-kicker { margin-bottom: 32px; }
  .reader-cover h1 { font-size: clamp(3.3rem, 16vw, 5.2rem); line-height: .9; }
  .reader-byline { margin-top: 26px; }
  .reader-translator { margin-top: 12px; font-size: .98rem; }
  .reader-deck { margin-top: 36px; font-size: 1.06rem; }
  .reader-estimate { padding-left: 4px; }
  .reader-book-actions { grid-template-columns: 1fr; margin-top: 28px; }
  .reader-book-action, .reader-citation-menu > summary { min-height: 68px; padding: 13px 15px; }
  .reader-citation-menu > div { position: static; width: auto; margin: 8px 0 0; border-radius: 0; box-shadow: none; }
  .reader-passages-promo { width: calc(100% - 40px); margin-bottom: 20px; padding: 22px 20px 18px; }
  .reader-passages-promo > div { grid-template-columns: 1fr; gap: 15px; }
  .reader-passages-promo h2 { font-size: 1.7rem; }
  .reader-passages-promo ol { grid-template-columns: 1fr; }
  .reader-passages-promo li + li { border-left: 0; border-top: 1px solid var(--reader-rule); }
  .reader-passages-promo li a { min-height: 76px; padding: 14px 4px; }
  .reader-passages-index { padding: 108px 20px 72px !important; }
  .reader-passages-hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .reader-passages-eyebrow { margin-top: 10px; }
  .reader-passages-hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .reader-passages-intro { font-size: .95rem; }
  .reader-passages-list > li > a { min-height: 0; padding: 28px 0 30px; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .reader-passages-arrow { display: none; }
  .reader-passages-list h2 { font-size: 2.55rem; }
  .reader-passages-list div > p:last-child { margin-top: 20px; font-size: .84rem; }
  .reader-passage-main { padding-top: 62px !important; }
  .reader-passage-hero { width: calc(100% - 40px); padding: 72px 0 48px; }
  .reader-passage-hero .reader-passages-eyebrow { margin: 34px 0 18px; }
  .reader-passage-hero h1 { font-size: clamp(3.6rem, 17vw, 5.4rem); }
  .reader-passage-framing { width: calc(100% - 40px); padding: 30px 0; grid-template-columns: 1fr; gap: 14px; }
  .reader-passage-framing > div > p { font-size: .98rem; }
  .reader-essential-text { padding-top: 64px; }
  .reader-passage-footer { width: calc(100% - 40px); margin-bottom: 72px; grid-template-columns: 1fr; }
  .reader-passage-footer a { min-height: 94px; }
  .reader-guide { width: calc(100% - 40px); margin-bottom: 28px; padding: 20px; }
  .reader-guide summary { align-items: center; gap: 12px; }
  .reader-guide summary .reader-guide-title { font-size: 1.3rem; }
  .reader-guide-summary-meta { gap: 10px; }
  .reader-guide-summary-meta > small { display: none; }
  .reader-guide-toggle { font-size: .62rem; }
  .reader-guide-body { padding-top: 20px; }
  .reader-guide ol { grid-template-columns: 1fr; }
  .reader-terminology { width: calc(100% - 40px); margin-bottom: 18px; }
  .reader-terminology summary { padding: 18px 20px; }
  .reader-terminology summary strong { font-size: 1.2rem; }
  .reader-terminology-toggle span { display: none; }
  .reader-terminology-body { padding: 2px 20px 20px; }
  .reader-terminology ol { grid-template-columns: 1fr; }
  .reader-terminology-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .reader-text { width: min(100% - 40px, 690px); padding-top: 20px; }
  .reader-chapter { padding-top: 104px; }
  .reader-chapter + .reader-chapter { margin-top: 54px; }
  .reader-text h2 { margin-bottom: 42px; font-size: 1.72rem; }
  .reader-text p { line-height: 1.75; }
  .reader-footnotes { margin-top: 60px; font-size: .68rem; }
  .reader-text.reader-text-bilingual { width: min(100% - 40px, 690px); }
  .reader-review-notice { width: calc(100% - 40px); margin-bottom: 20px; padding: 16px; align-items: flex-start; }
  .reader-review-notice span { max-width: 230px; }
  .reader-bilingual { display: block; margin-top: 8px; }
  .reader-bilingual-column-head { display: none; }
  .reader-bilingual-pair { display: block; padding: 30px 0 38px; }
  .reader-bilingual-pair p { font-size: var(--reader-font-size); line-height: 1.72; }
  .reader-bilingual-pair p + p { margin-top: 34px; }
  .reader-bilingual-pair p::before { display: block; margin-bottom: 10px; color: var(--reader-accent); font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; content: attr(data-language); }
  .reader-modern-pilot-link { grid-template-columns: 1fr auto; }
  .reader-modern-pilot-link span { grid-column: 1 / -1; }
  .reader-comparison-cover { padding-bottom: 64px; }
  .reader-comparison-notice { flex-direction: column; }
  .reader-access-principle { width: calc(100% - 40px); margin-bottom: 28px; padding: 25px 24px; display: block; }
  .reader-access-principle h2 { font-size: 1.55rem; }
  .reader-access-principle ol { margin-top: 26px; grid-template-columns: 1fr; gap: 22px; }
  .reader-view-controls { top: 69px; width: calc(100% - 40px); margin-bottom: 0; }
  .reader-view-controls > span, .reader-view-compare { display: none; }
  .reader-view-controls button { flex: 1; }
  .reader-text-comparison { width: min(100% - 40px, 690px); }
  .reader-comparison-head { display: none; }
  .reader-comparison-row, .reader-comparison-page[data-reader-view="classic"] .reader-comparison-row, .reader-comparison-page[data-reader-view="modern"] .reader-comparison-row { display: block; padding: 28px 0 34px; }
  .reader-comparison-classic::before, .reader-comparison-modern::before { margin-bottom: 12px; display: block; color: var(--reader-accent); font-family: var(--sans); font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; content: attr(data-edition-label); }
  .reader-translation-note-popover { position: fixed; left: 20px; right: 20px; bottom: 24px; width: auto; transform: none; font-size: .82rem; }
  .reader-language-gloss-popover { position: fixed; left: 20px; right: 20px; bottom: 24px; width: auto; transform: none; font-size: .84rem; }
  .reader-note { margin-left: -8px; margin-right: -8px; padding: 22px 20px 5px; }
  .reader-settings { top: 70px; right: 12px; width: calc(100% - 24px); }
  .reader-drawer { padding: 22px 24px 32px; }
  .reader-book-footer { padding: 100px 20px 32px; }
  .reader-book-footer > div { margin-top: 110px; flex-direction: column; gap: 8px; }
  .reader-edition-details { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reader-drawer, .reader-settings, .reader-scrim, .reader-page { transition: none; }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

main {
  flex: 1;
  padding-top: calc(var(--nav-top) + var(--nav-height));
  padding-bottom: 144px;
}

main > section:last-of-type {
  margin-bottom: 0;
}

/* ===================== NAVIGATION ===================== */
.nav {
  width: min(800px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  height: var(--nav-height);
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  width: auto;
}

.nav-links a {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.6;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px 16px 48px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ===================== HERO ===================== */
.hero {
  padding: 144px 0 144px;
  display: flex;
  justify-content: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 834px;
  padding: 0;
}

.hero-quote {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  max-width: 834px;
  text-align: left;
  text-indent: -0.45em;
  margin-bottom: 24px;
}

.hero-attribution {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  margin-bottom: 32px;
  transform: translateY(-6px);
}

.hero-attribution-name {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hero-description {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  max-width: 834px;
  text-align: left;
  margin-bottom: 48px;
}

.hero-cta {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  height: 44px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 16px 22px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.33);
  border: none;
  color: var(--text);
  border-radius: 22px;
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* ===================== SECTION HEADINGS ===================== */
.section-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}

.section-heading {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===================== IMAGE OVERLAY CARDS ===================== */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.03);
}

/* Thumbnails are now graded to final brightness in the Website Thumbnail Picker
   (baked into the WebP), so the site shows them as-is — no display-time filter.
   The old blanket filter: brightness(1.1) here made the picker non-WYSIWYG. */

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.25) 15%,
    rgba(0, 0, 0, 0.10) 30%,
    rgba(0, 0, 0, 0.10) 60%,
    rgba(0, 0, 0, 0.25) 75%,
    rgba(0, 0, 0, 0.40) 100%
  );
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  transition: opacity 0.3s;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-on-image);
  text-align: center;
  /* pretty (NOT balance) is a deliberate choice by the site's designer: avoid a
     one-word orphan on the last line, but let the first line run full width.
     Don't switch this to balance. */
  text-wrap: pretty;
}

.card-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin-top: 0;
  text-align: left;
  text-indent: 48px;
}

.courses-grid .card-overlay {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: var(--course-card-gradient);
  opacity: 1;
  padding: 24px 16px;
}

.courses-grid .card:hover .card-overlay {
  opacity: 1;
}

.courses-grid .card-title {
  font-family: var(--serif);
  font-size: 1.76rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.courses-grid .card-desc {
  max-width: 100%;
  font-size: 0.88rem;
  text-indent: 0;
}

.course-card-title {
  width: 100%;
}

.course-card-title-main,
.course-card-title-subtitle {
  display: block;
}

.course-card-title-subtitle {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  transform: translateY(1px);
}

.card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-transform: uppercase;
}

.card-meta {
  flex: 0 0 60%;
  text-align: left;
}

.card-top {
  align-self: stretch;
}

.card-meta-course,
.card-meta-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-episode {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: -12px;
}

.card-note {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.card-badge {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.card-lecturer {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 0;
}

.notify-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text-on-image);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 156px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  transition: background 0.2s;
  margin-top: 16px;
  align-self: center;
}

.notify-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.card-coming-soon {
  cursor: default;
  pointer-events: auto;
}

.card-coming-soon:hover {
  transform: none;
}

.card-coming-soon:hover img {
  transform: none;
}

.card-coming-soon:hover .card-overlay,
.courses-grid .card-coming-soon:hover .card-overlay {
  opacity: 1;
}

.card-coming-soon img {
  filter: grayscale(0.06);
}

.card-coming-soon .card-overlay {
  background: var(--course-card-gradient);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto;
}

.card-coming-soon .notify-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  margin-top: 0;
  font-size: 0.88rem;
}

.course-card-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.card-coming-soon .course-card-actions .notify-btn {
  position: static;
  transform: none;
  margin-top: 0;
}

.course-preview-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: auto;
  cursor: pointer;
}

.course-videos-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(33px) brightness(0.88);
  -webkit-backdrop-filter: blur(33px) brightness(0.88);
  pointer-events: none;
}

.card-coming-soon .card-badge {
  font-size: 0.88rem;
  text-transform: none;
  transform: translateX(1px);
}

.card-coming-soon .card-desc {
  pointer-events: none;
}

.coming-soon-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  width: 100%;
}

/* ===================== COURSES GRID ===================== */
.courses-section {
  padding: 0;
  margin-bottom: 144px;
}

.courses-section .section-title {
  font-family: var(--serif);
}

.course-guide-link {
  margin: -28px 0 48px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.course-guide-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.courses-page.courses-section {
  padding-top: 144px;
}

.new-to-philosophy-page.courses-section,
.start-page.courses-section {
  padding-top: 180px;
}

.intro-page-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.intro-page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
}

/* The shared .intro-page-header caps at 680px and floats centered; the start
   intro follows the homepage hero instead: left-aligned and anchored to the
   container's left edge, sharing a margin with the card grids below. */
.start-page .intro-page-header {
  max-width: 834px;
  text-align: left;
}

.start-intro {
  margin: 0 auto;
  max-width: 834px;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.start-intro p {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.start-section-header {
  max-width: 680px;
  margin: 72px auto 32px;
  text-align: center;
}

.start-section-header .section-title {
  margin-bottom: 8px;
}

.start-section-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted, #666);
}

.start-excerpts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.start-excerpt-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.start-excerpt-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #fff;
}

/* Mirrors the video-page title treatment (.video-detail-title /
   .video-detail-speaker), scaled down to card size. */
.start-excerpt-title {
  margin: 14px 2px 0;
  font-family: var(--serif-display);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .start-excerpts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== WATCH (excerpt pages) =====================
   Excerpt pages reuse the lecture page's design system (.video-detail,
   .video-detail-title, .video-actions, sidebar course card); the only
   excerpt-specific piece is the plain Stream iframe inside .video-player. */
.watch-excerpt-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.watch-excerpt-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.watch-page .video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.start-elsewhere {
  margin: 64px auto 0;
  max-width: 680px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.25;
}

.start-elsewhere a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}


.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.courses-grid .card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid #fff;
}

/* ===================== VIDEOS ===================== */
.videos-section {
  padding: 0;
  margin-bottom: 144px;
}

.videos-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.videos-grid-2col .card {
  aspect-ratio: 620 / 348.75;
  min-height: 0;
}

.videos-grid-2col .card {
  border-radius: 0;
  border: none;
}

.videos-grid-2col .card-overlay {
  padding: 24px;
}

.videos-grid-2col .card-title {
}

.videos-grid-2col .card-overlay::after,
.videos-grid-3col .card-overlay::after,
.all-videos-grid .card-overlay::after,
.course-videos-grid .card-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.28) 58%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.videos-grid-2col .card-overlay > *,
.videos-grid-3col .card-overlay > *,
.all-videos-grid .card-overlay > *,
.course-videos-grid .card-overlay > * {
  position: relative;
  z-index: 1;
}


.videos-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.videos-grid-3col .card {
  aspect-ratio: 405.333 / 228;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.videos-grid-3col .card-overlay {
  padding: 16px;
}

.videos-grid-3col .card-title {
  font-size: 1rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.videos-grid-3col .card-desc,
.videos-grid-3col .card-speaker {
  font-size: 0.625rem;
}

/* ===================== ALL VIDEOS PAGE ===================== */
.all-videos-section {
  padding: 144px 0 0;
}

.all-videos-section > .container {
  padding: 0 48px;
}

.all-videos-header {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.all-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.all-videos-grid .card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.all-videos-grid .card-title {
  font-size: 1rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.all-videos-grid .card-overlay {
  padding: 16px;
}

.all-videos-grid .card-speaker {
  font-size: 0.625rem;
}

.all-videos-section .filter-bar {
  display: none;
}

.all-videos-section .filter-panel {
  display: none;
}

/* ===================== FILTERS ===================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.filter-toggle:hover {
  border-color: var(--text);
}

.filter-count {
  background: var(--text);
  color: var(--bg);
  font-size: 0.625rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.filter-count.visible {
  display: flex;
}

.filter-panel {
  display: none;
  background: #F7F7F5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.filter-panel.open {
  display: block;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-chip.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-option {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.2s;
}

.sort-option.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-clear {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-apply {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 4px;
}

/* ===================== VIDEO DETAIL ===================== */
.video-detail {
  padding: 0;
  margin-top: calc(-1 * (var(--nav-top) + var(--nav-height)));
  padding-top: 0;
}

.video-detail > .container {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 144px;
}

.video-main-group {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.video-player {
  width: 100%;
  aspect-ratio: 256 / 135;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  background: #000;
}

/* Poster thumbnail + play button overlay the Stream iframe until playback starts */
.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.video-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-poster-play:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}
.video-poster-play:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 8px;
  border-radius: 50%;
}
.video-start-badge {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: calc(50% + 54px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.video-start-badge[hidden] {
  display: none;
}

/* ── Next video overlay (shown on video end) ── */
.next-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.next-video-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.next-video-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: #fff;
}

.next-video-link {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s;
}

.next-video-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

/* ── Chapters panel (Figma frosted glass) ── */
.chapters-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 101;
  width: 370px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  border: 1px solid white;
  border-radius: 30px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  flex-direction: column;
}
.chapters-panel.open {
  display: flex;
}
.chapters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  flex-shrink: 0;
}
.chapters-panel-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.13;
  color: var(--text);
}
.chapters-panel-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 320px;
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  border: 1px solid white;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease;
}
.chapters-panel-close:hover {
  background: rgba(255, 255, 255, 0.5);
}
.chapters-panel-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.chapters-panel-list::-webkit-scrollbar {
  width: 6px;
}
.chapters-panel-list::-webkit-scrollbar-track {
  background: transparent;
}
.chapters-panel-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.chapters-panel-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.35);
}
.chapters-panel-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.12s ease;
}
.chapters-panel-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.chapters-panel-item:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: -2px;
  background: rgba(0, 0, 0, 0.04);
}
.chapters-panel-item .ch-time {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  width: 82px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.chapters-panel-item .ch-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  flex: 1;
}

/* ── Panel tabs (Chapters / Annotations) ── */
.panel-tabs {
  display: flex;
  gap: 0;
}
.panel-tab {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.13;
  color: var(--text);
  opacity: 0.4;
  padding: 4px 14px;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.panel-tab:hover { opacity: 0.7; }
.panel-tab.active {
  opacity: 1;
}
.panel-pane {
  display: none;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.panel-pane::-webkit-scrollbar { width: 6px; }
.panel-pane::-webkit-scrollbar-track { background: transparent; }
.panel-pane::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
.panel-pane::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }
.panel-pane.active { display: block; }

/* ── Annotations inside panel ── */
.annotations-panel-list {
  padding: 0 16px 16px;
}
.annotations-placeholder {
  padding: 32px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
  font-size: 14px;
}
.annotation-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  animation: annotation-in 0.3s ease both;
  transition: background 0.12s ease;
}
.annotation-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.annotation-item:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.04);
}
.annotation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.annotation-term {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  flex: 1;
}
.annotation-term-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.annotation-term-link:hover {
  opacity: 0.65;
}
.annotation-time {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.annotation-def {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.85;
}
@keyframes annotation-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.annotation-badge {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.45;
  padding: 2px 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.annotation-reading .annotation-def {
  font-style: normal;
  opacity: 0.7;
}

.ui-idle .nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}


.video-content-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 48px;
  gap: 48px;
}

.video-content-main {
  flex: 1;
  max-width: 727px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-meta { margin-bottom: 0; }

.video-detail-title {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0;
}

.video-detail-speaker {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: -15px;
  margin-bottom: 0;
  text-align: left;
}

.video-detail-note {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: -10px;
  margin-bottom: 0;
}

.video-detail-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  max-width: none;
}

.video-detail-desc p {
  margin: 0;
}

/* A blank line in the description is a paragraph break — give it a visible gap
   (e.g. a "Primary Source:" block set off from the summary). Only between
   paragraphs, so a single-paragraph description keeps no trailing space. */
.video-detail-desc p + p {
  margin-top: 1em;
}

.video-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 18px;
}

.video-action-link {
  min-width: 0;
  height: 33px;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 17px;
  text-decoration: none;
}

.video-action-link:hover {
  opacity: 0.8;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.video-tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--bg-footer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-content-sidebar {
  width: 343px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.sidebar-course-card {
  aspect-ratio: 400 / 500;
  width: 100%;
}

.sidebar-course-card .card-overlay {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  background: var(--course-card-gradient);
  opacity: 1;
}

.sidebar-course-card .card-title {
  font-family: var(--serif);
  font-size: 1.584rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.sidebar-course-card .course-card-title-subtitle {
  font-size: 1.125rem;
}

.sidebar-course-card .card-desc {
  max-width: 100%;
  font-size: 0.88rem;
  text-indent: 0;
}

/* Tabs */
.tabs-container {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.tab-content {
  display: none;
  padding: 24px 0;
}

.tab-content.active { display: block; }

.chapter-list { display: flex; flex-direction: column; }

.chapter-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.chapter-item:hover { opacity: 0.6; }

.chapter-time {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 110px;
}

.chapter-title {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.annotation-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.annotation-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.annotation-term {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.annotation-def {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.85;
}

/* Related */
.related-videos {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-label {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
}

.floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 16px 22px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.33);
  border: 1px solid white;
  border-radius: 22px;
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.floating-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}
.floating-btn-label {
  transition: opacity 0.18s ease;
}
.floating-btn-label.is-fading {
  opacity: 0;
}
.floating-btn.active {
  opacity: 0;
  pointer-events: none;
}

/* ===================== COURSE DETAIL ===================== */
body:has(.course-detail) {
  background: #000;
}

.course-detail {
  padding: 0;
  background: #000;
  color: #fff;
  margin-top: calc(-1 * (var(--nav-top) + var(--nav-height)));
  overflow-x: hidden;
}

.course-detail > .container {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.course-detail-header {
  width: 100%;
  margin: 0;
  padding: calc(var(--nav-top) + var(--nav-height) + 224px) 48px 48px;
  display: grid;
  grid-template-columns: minmax(0, 834px) 328px;
  column-gap: 48px;
  row-gap: 32px;
  justify-content: center;
  align-items: start;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.course-detail-title,
.course-detail-desc {
  max-width: 834px;
  width: 100%;
}

.nav-dark .container {
  background: rgba(0, 0, 0, 0.33);
}

.nav-dark .nav-links a {
  color: #fff;
}

.nav-dark .nav-hamburger span {
  background: #fff;
}

@media (min-width: 769px) {
  body:has(.video-detail) .nav .container {
    background: rgba(0, 0, 0, 0.33);
  }
  body:has(.video-detail) .nav .nav-links a {
    color: #fff;
  }
  body:has(.video-detail) .nav .nav-logo img {
    filter: brightness(0) invert(1);
  }
}

.course-detail-title {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  margin-bottom: 0;
  color: #fff;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.course-detail-title-inner,
.course-detail-title-main,
.course-detail-title-subtitle {
  display: block;
  width: 100%;
}

.course-detail-title-subtitle {
  margin-top: 0.08em;
  font-size: 0.667em;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.course-detail-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3125;
  color: #fff;
  grid-column: 1;
  grid-row: 2;
}

.course-detail-desc p {
  text-indent: 48px;
  margin-bottom: 0;
}

.course-resume-cta {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 56px auto 28px;
  padding: 0 48px;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.course-resume-cta[hidden] {
  display: none;
}

.course-resume-label,
.course-resume-line {
  display: block;
}

.course-resume-label {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.66);
}

.course-resume-line {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.18;
  color: #fff;
}

.course-resume-cta:hover .course-resume-line,
.course-resume-cta:focus-visible .course-resume-line {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.course-resume-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.course-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 48px;
  margin-top: 72px;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.course-resume-cta:not([hidden]) + .course-videos-grid {
  margin-top: 0;
}

.course-videos-grid .card {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
}

.course-videos-grid .card-overlay {
  padding: 24px;
}

.course-videos-grid .card-title {
}

.course-detail-desc p.course-detail-youtube {
  margin-top: 0;
}

/* Course header actions: the lecture-page pill buttons, tinted for the dark
   header (translucent dark pill, light text — same family as .nav-dark). */
.course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.course-detail-actions .video-action-link {
  display: inline-flex;
  align-items: center;
  background: #C9C4BB;
  color: #1A1A1A;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 100%;
}


.course-detail-youtube a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-chapters-page {
  min-height: 100vh;
  padding: calc(var(--nav-top) + var(--nav-height) + 88px) 0 112px;
  background: var(--bg);
  color: var(--text);
}

.course-chapters-page > .container {
  max-width: 1120px;
}

.course-chapters-header {
  margin-bottom: 54px;
}


.course-chapters-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.course-chapters-back:hover,
.course-chapters-back:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The course title IS the back link (no COURSE eyebrow) — inherits the
   display styling, reveals intent on hover. */
.course-chapters-header h1 a {
  color: inherit;
  text-decoration: none;
}
.course-chapters-header h1 a:hover .course-chapters-title-main,
.course-chapters-header h1 a:focus-visible .course-chapters-title-main {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.course-chapters-header h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0;
}

.course-chapters-title-main,
.course-chapters-title-subtitle {
  display: block;
}

.course-chapters-title-subtitle {
  margin-top: 0.08em;
  font-size: 0.667em;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.course-chapters-header p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Help-text intro replacing the bare CHAPTERS label: same voice as the
   Topic Index intro line. */
.course-chapters-header p.course-chapters-intro {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.45;
}

.course-chapters-intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "See also" cross-link under the chapters label — deliberately a different
   register (serif, sentence case) so it reads as a pointer to a separate
   feature, not a mode of this page. */
.course-chapters-header p.chapters-crosslink {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
}
.course-chapters-header p.chapters-crosslink a { text-decoration: none; }
.course-chapters-header p.chapters-crosslink .crosslink-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.course-chapters-header p.chapters-crosslink .loc-glyph { font-size: .75em; opacity: .8; }
.course-chapters-header p.chapters-crosslink a:hover { color: var(--text); }

.course-chapters-section {
  margin-top: 34px;
}

.course-chapters-section:first-of-type {
  margin-top: 0;
}

/* Book table-of-contents heading: small muted eyebrow ("LECTURE 4"), then
   the lecture title beneath it in the serif, dark, a size up from the
   chapter rows. Stacked lines also make long titles wrap cleanly, aligned
   to their own left edge. */
.course-chapters-section h2 {
  display: block;
  margin: 0 0 12px;
  line-height: 1.25;
}

.course-chapters-lecture-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.course-chapters-lecture-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

a.course-chapters-lecture-title:hover,
a.course-chapters-lecture-title:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.course-chapters-lecture-label {
  color: rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

.course-chapters-lecture-title-legacy-unused {
  color: var(--text-secondary);
}

.course-chapters-list {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.course-chapters-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(24px, 1fr) max-content;
  column-gap: 10px;
  align-items: end;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.course-chapters-title {
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-chapters-title a {
  color: inherit;
  text-decoration: none;
}

.course-chapters-title a:hover,
.course-chapters-title a:focus-visible {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.course-chapters-rule {
  min-width: 24px;
  height: 1px;
  margin-bottom: 0.34em;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0) 0%);
  background-position: bottom;
  background-size: 5px 1px;
  background-repeat: repeat-x;
}

.course-chapters-time {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.course-chapters-time a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.course-chapters-time a:hover,
.course-chapters-time a:focus-visible {
  color: var(--text-secondary);
}

.course-speaker {
  display: contents;
}

.course-speaker + .course-videos-grid {
  margin-top: 72px;
}

.course-speaker-photo-frame {
  display: block;
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  float: none;
  margin: 0 0 18px;
  overflow: hidden;
}

.course-speaker-photo-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}

.course-speaker-photo-row .course-speaker-photo-frame {
  margin: 0;
}

/* Second headshot placed inline in the bio, above the second speaker's text. */
.course-speaker-bio .course-speaker-photo-frame-inline {
  margin: 8px 0 14px;
}

.course-speaker-photo-row-multiple .course-speaker-photo-frame {
  width: 108px;
  height: 108px;
}

.course-speaker-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--speaker-headshot-position, 50% 50%);
  transform: scale(var(--speaker-headshot-scale, 1));
  transform-origin: var(--speaker-headshot-position, 50% 50%);
}

.course-speaker-info {
  grid-column: 2;
  grid-row: 2;
  max-width: 328px;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  box-sizing: border-box;
}

.course-speaker-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  color: #fff;
  display: none;
  margin-bottom: 0;
}

.course-speaker-bio {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.333;
  color: #fff;
}

.course-speaker-bio p {
  margin-bottom: 16px;
}

.course-speaker-bio p:last-child {
  margin-bottom: 0;
}

.course-speaker-bio a {
  color: inherit;
  font-style: italic;
  text-decoration: none;
}

/* ===================== ABOUT PAGE ===================== */
.about-section {
  padding: 180px 0 0;
}

.about-section > .container {
  display: flex;
  flex-direction: column;
  gap: 144px;
  align-items: center;
  padding: 0 48px;
}

.about-intro {
  max-width: 834px;
  width: 100%;
}

.about-intro p {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.about-intro p:last-child { margin-bottom: 0; }

.about-intro a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teach-section {
  padding: 180px 0 144px;
}

.teach-section > .container {
  max-width: calc(834px + 96px);
  margin: 0 auto;
  padding: 0 48px;
}

.teach-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.teach-body p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.teach-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teach-subhead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin: 144px 0 20px;
}

.teach-email {
  color: var(--text);
}

.team-section {
  display: flex;
  flex-direction: column;
  gap: 96px;
  align-items: center;
  width: 100%;
}

.team-header {
  max-width: 834px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.team-description {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  max-width: 834px;
  width: 100%;
}

.team-member-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
  background: #d5d0c9;
}

.team-member-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.13;
  margin-bottom: 12px;
}

.team-member-role {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.team-member-bio {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
}

.team-member-bio p {
  margin-bottom: 12px;
}

.team-member-bio p:last-child {
  margin-bottom: 0;
}

.site-credit {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-top: -64px;
  margin-bottom: -20px;
  text-align: center;
}

.site-credit a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-jobs-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin: -64px 0 -48px;
}

.about-jobs-link a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* ===================== JOBS PAGE ===================== */
.jobs-section {
  padding: 180px 0 144px;
}

.jobs-section > .container {
  max-width: calc(834px + 96px);
  padding: 0 48px;
}

.jobs-header {
  margin-bottom: 96px;
}

.jobs-kicker {
  display: none;
}

.jobs-header h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.job-posting + .job-posting {
  border-top: 1px solid rgba(0, 0, 0, 0.24);
  margin-top: 120px;
  padding-top: 120px;
}

.job-hero {
  margin-bottom: 72px;
}

.job-hero h2 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.job-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.job-sections {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.job-section {
  display: block;
}

.job-section h3 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.job-copy,
.job-list {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.job-copy p + p {
  margin-top: 24px;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-list li {
  padding-left: 22px;
  position: relative;
}

.job-list li::before {
  content: "•";
  left: 0;
  position: absolute;
}

.job-apply-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  margin-top: 28px;
  padding-bottom: 5px;
}

.job-apply-link-pending {
  color: var(--text-muted);
  border-bottom: 0;
}

/* ===================== GLOSSARY ===================== */
.glossary-section {
  padding: 124px 0 0;
}

.glossary-section > .container,
.glossary-entry-section > .container {
  max-width: 1000px;
}

.glossary-hero {
  max-width: 720px;
  margin-bottom: 44px;
}

.glossary-title,
.glossary-entry-title {
  font-family: var(--serif-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.glossary-title {
  font-size: 4rem;
  margin-bottom: 18px;
}

.glossary-intro {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.glossary-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.glossary-letter-nav a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.glossary-letter-nav a:hover {
  background: var(--text);
  color: var(--bg);
}

.glossary-groups {
  display: grid;
  gap: 64px;
}

.glossary-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
}

.glossary-letter {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-height) + 24px);
  align-self: start;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
}

.glossary-card:hover {
  border-color: rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.42);
}

.glossary-card-kicker,
.glossary-entry-kicker,
.glossary-back,
.glossary-uses-title,
.glossary-use-meta,
.glossary-use-speaker {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glossary-card-kicker {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.glossary-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
}

.glossary-card-summary {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.glossary-entry-section {
  padding: 180px 0 0;
}

.glossary-back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.glossary-back:hover {
  color: var(--text);
}

.glossary-entry-header {
  max-width: 834px;
  margin-bottom: 72px;
}

.glossary-entry-kicker {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.glossary-entry-title {
  font-size: 3rem;
  margin-bottom: 32px;
}

.glossary-entry-definition p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.glossary-entry-definition p:last-child { margin-bottom: 0; }

.glossary-uses {
  display: grid;
  gap: 18px;
  max-width: 834px;
}

.glossary-uses-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}

.glossary-use {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.glossary-use-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.glossary-use-meta a,
.glossary-use-title a,
.glossary-use-speaker a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.glossary-use-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.glossary-use-speaker {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.glossary-use-context {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.glossary-use-clips {
  display: grid;
  gap: 16px;
}

.glossary-use-clip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.glossary-use-time {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===================== CONCEPTS ===================== */
.concepts-section,
.concept-detail-section {
  padding: 124px 0 0;
}

.concepts-section > .container,
.concept-detail-section > .container {
  max-width: 1000px;
}

.concepts-hero,
.concept-detail-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.concepts-title,
.concept-detail-title {
  font-family: var(--serif-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.concepts-title {
  font-size: 4rem;
  margin-bottom: 18px;
}

.concepts-intro,
.concept-definition p {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.concept-definition p + p {
  margin-top: 1.1em;
}

.concepts-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.concepts-tools label {
  display: grid;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.concepts-tools input,
.concepts-tools select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 12px;
}

.concepts-count {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
}

.concept-card:hover {
  border-color: rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.42);
}

.concept-card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.concept-card-definition {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.concept-card-meta,
.concept-card-footer,
.concept-back,
.concept-appearance-meta,
.concept-moment-time {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.concept-card-meta {
  margin-top: auto;
  font-size: 0.625rem;
  color: var(--text-muted);
}

.concept-card-footer {
  font-size: 0.625rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.concept-back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.concept-back:hover {
  color: var(--text);
}

.concept-detail-title {
  font-size: 3rem;
  margin-bottom: 28px;
}

.concept-body-section {
  max-width: 834px;
  margin-bottom: 56px;
}

.concept-body-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.concept-body-section p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.concept-appearances {
  display: grid;
  gap: 22px;
}

.concept-appearance,
.concept-moment {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.concept-appearance h3,
.concept-moment h3 {
  font-family: var(--serif-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.concept-appearance h3 a,
.concept-body-section a,
.concept-related-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.concept-appearance-meta {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.concept-moments {
  display: grid;
  gap: 18px;
}

.concept-moment {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
}

.concept-moment-time {
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.concept-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-family: var(--serif);
  font-size: 1.125rem;
}

/* ===================== TRANSCRIPT PAGE ===================== */
.transcript-section {
  padding: 144px 0 80px;
}

.transcript-section > .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.transcript-header {
  margin-bottom: 48px;
}

.transcript-back {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}

.transcript-back:hover {
  color: var(--text);
}

.transcript-title {
  font-family: var(--serif-display);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.transcript-speaker {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.transcript-body h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 48px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.transcript-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.transcript-body p {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.transcript-body .audience-question {
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid var(--border);
  margin: 28px 0;
  color: var(--text);
}

.transcript-body .qa-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

/* ===================== TEXT PAGES ===================== */
.text-page {
  padding: 144px 0 0;
  max-width: 620px;
  margin: 0 auto;
}

.text-page .page-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.text-page .page-date {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.text-page h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.13;
  margin-top: 48px;
  margin-bottom: 24px;
}

.text-page h2:first-of-type {
  margin-top: 48px;
}

.text-page h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  margin-top: 24px;
  margin-bottom: 12px;
}

.text-page p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.text-page p:last-child {
  margin-bottom: 0;
}

.text-page ul {
  margin-bottom: 0;
  padding-left: 0;
}

.text-page ul li {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 0;
}

.text-page-image {
  width: 406px;
  max-width: 100%;
  height: 507px;
  margin: 48px auto;
  background: #d5d0c9;
  object-fit: cover;
}

.text-page a {
  color: var(--text);
  text-decoration: underline;
}

/* ===================== CONTACT ===================== */
.contact-section {
  padding: 256px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.contact-inner {
  text-align: center;
  max-width: 460px;
}

.contact-inner .page-title {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.contact-inner p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.newsletter-form button {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.8; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-footer);
  padding: 192px 48px 48px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 96px;
}

.footer-links-group {
  flex: 1 0 0;
  display: flex;
  gap: 96px;
  align-items: flex-end;
}

.footer-main-links {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-main-links a {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-on-footer);
  transition: opacity 0.2s;
}

.footer-main-links a:hover { opacity: 0.7; }

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  /* First row of the secondary column, breathing room before the text links */
  width: 100%;
  margin: 0 0 6px;
}
.footer-social a {
  color: inherit;
  opacity: 0.75;
  display: inline-flex;
  transition: opacity 0.15s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  opacity: 1;
}

.footer-secondary-links {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-secondary-links a {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.13;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-on-footer);
  transition: opacity 0.2s;
}

.footer-secondary-links a:hover { opacity: 0.7; }

.footer-brand {
  flex-shrink: 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-logo {
  display: block;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-copy {
  font-family: var(--serif);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-on-footer);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) and (min-width: 769px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 1024px) {
  .video-content-sidebar {
    width: 288px;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 16px; }

  .card-title {
    font-size: 1rem;
    line-height: 1.13;
    letter-spacing: 0;
  }

  .card-meta {
    flex: 0 0 clamp(112px, 36%, 150px);
    max-width: clamp(112px, 36%, 150px);
  }

  .card-meta-course,
  .card-meta-speaker {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    line-height: 1.35;
  }

  .card-overlay .card-meta-speaker {
    display: none;
  }

  main {
    padding-top: calc(var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px));
  }

  .nav {
    top: calc(var(--nav-mobile-top) + env(safe-area-inset-top, 0px));
    width: auto;
    max-width: none;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .nav .container {
    width: 100%;
    height: 64px;
    padding: 16px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 32px; }

  .hero {
    padding: 40px 0 96px;
  }

  .hero .container {
    max-width: none;
    padding: 0 24px;
  }

  .hero-quote {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.25;
  }

  .hero-cta {
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }

  main {
    padding-bottom: 96px;
  }

  .courses-section,
  .videos-section {
    margin-bottom: 96px;
  }

  .courses-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .courses-grid .card {
    flex: 0 0 calc(100vw - 70px);
    height: 415px;
    scroll-snap-align: center;
  }

  .courses-grid .card:first-child {
    scroll-snap-align: start;
  }

  .courses-grid .card-title {
    font-size: 1.39rem;
    letter-spacing: -0.02em;
    transform: translateX(-1px);
  }

  .courses-grid .course-card-title-subtitle {
    font-size: 1.16rem;
    line-height: 1.05;
    transform: none;
  }

  .courses-grid .card-overlay {
    background: var(--course-card-gradient-mobile);
  }

  .courses-page .section-title {
    display: none;
  }

  /* /start keeps its section headings — it shares .courses-page for the card
     styling, but its headings are structural, not decorative. */
  .start-page .section-title {
    display: block;
  }

  .intro-page-header {
    margin: 0 auto 40px;
    text-align: center;
  }

  .courses-page.courses-section {
    padding-top: 0;
    margin-top: 24px;
  }

  .new-to-philosophy-page.courses-section,
  .start-page.courses-section {
    padding-top: 60px;
    margin-top: 0;
  }

  .courses-page .courses-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: visible;
    grid-template-columns: unset;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    scroll-snap-type: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .courses-page .courses-grid .card {
    flex: unset;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 500;
    scroll-snap-align: unset;
  }

  .videos-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .videos-grid-2col .card {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .videos-grid-2col .card-overlay {
    padding: 16px;
  }

  .videos-grid-2col .card-title {
  }

  .videos-grid-3col {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 70px);
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .videos-grid-3col .card {
    aspect-ratio: 332 / 186.75;
    min-height: 0;
    scroll-snap-align: center;
  }

  .videos-grid-3col .card:first-child {
    scroll-snap-align: start;
  }

  .course-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-top: 96px;
  }

  .course-videos-grid .card {
    aspect-ratio: 16 / 9;
  }

  .course-detail {
    margin-top: calc(-1 * (var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px)));
  }

  .course-detail > .container {
    gap: 0;
  }

  .course-detail-header {
    display: contents;
  }

  .course-detail-title {
    background-size: cover;
    background-position: center;
    aspect-ratio: 400 / 500;
    max-height: 500px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: left;
    padding: 16px;
    font-size: 2rem;
    max-width: none;
    color: #fff;
  }

  .course-detail-title-compact {
    aspect-ratio: 400 / 420;
    max-height: 420px;
  }

  .course-detail-title-subtitle {
    margin-top: 0.04em;
    font-size: 0.667em;
    line-height: 1.05;
  }

  .course-detail-title-inner {
    transform: translateY(-99px);
  }

  .course-detail-desc {
    max-width: none;
    padding: 16px;
    margin-top: -83px;
  }

  .course-resume-cta {
    margin-top: 48px;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .course-resume-label {
    font-size: 0.875rem;
  }

  .course-resume-line {
    font-size: 1.0625rem;
  }

  .course-detail .course-videos-grid {
    margin-top: 96px;
  }

  .course-detail .course-resume-cta:not([hidden]) + .course-videos-grid {
    margin-top: 0;
  }

  .course-chapters-page {
    padding: calc(var(--nav-mobile-top) + var(--nav-height) + 56px + env(safe-area-inset-top, 0px)) 0 72px;
  }

  .course-chapters-page > .container {
    padding: 0 16px;
  }

  .course-chapters-header {
    margin-bottom: 36px;
  }

  .course-chapters-back {
    margin-bottom: 18px;
  }

  .course-chapters-header h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .course-chapters-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 12px;
    align-items: start;
    padding: 10px 0;
  }

  .course-chapters-title {
    font-size: 0.875rem;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .course-chapters-rule {
    display: none;
  }

  .course-chapters-section {
    margin-top: 30px;
  }

  .course-chapters-section h2 {
    margin-bottom: 9px;
  }

  .course-chapters-lecture-title {
    font-size: 1.05rem;
  }

  .course-chapters-time {
    text-align: right;
    font-size: 0.625rem;
  }

  .course-speaker {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    width: 100%;
    margin-top: 72px;
    margin-bottom: 0;
    padding: 0 16px;
  }

  .course-speaker-photo-frame {
    display: block;
    float: none;
    width: 60%;
    max-width: 179px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    grid-column: auto;
    grid-row: auto;
    margin: 0 0 18px;
  }

  .course-speaker-info {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    padding: 24px;
  }

  .course-speaker + .course-videos-grid {
    margin-top: 72px;
  }

  .about-section {
    padding: 60px 0 0;
  }

  .about-section > .container {
    gap: 67px;
    padding: 0 16px;
  }

  .about-intro p {
    font-size: 1.5rem;
  }

  .team-section {
    gap: 54px;
  }


  .team-description {
    font-size: 1.5rem;
  }

  .site-credit {
    margin-top: 0;
  }

  .about-jobs-link {
    margin: 0;
  }

  .teach-section {
    padding: 60px 0 96px;
  }

  .teach-section > .container {
    padding: 0 16px;
  }

  .teach-subhead {
    margin-top: 96px;
  }

  .teach-body p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .jobs-section {
    padding: 60px 0 96px;
  }

  .jobs-section > .container {
    padding: 0 16px;
  }

  .jobs-header {
    margin-bottom: 64px;
  }

  .job-hero {
    margin-bottom: 56px;
  }

  .job-hero h2 {
    font-size: 1.0625rem;
  }

  .jobs-header h1 {
    font-size: 2rem;
  }

  .job-section h3 {
    font-size: 1.0625rem;
  }

  .job-sections {
    gap: 56px;
  }

  .job-copy,
  .job-list {
    font-size: 1.0625rem;
  }

  .transcript-section {
    padding: 80px 0 60px;
  }

  .transcript-title {
    font-size: 1.75rem;
  }

  .transcript-body p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .text-page {
    padding: 60px 0 0;
  }

  .glossary-section,
  .glossary-entry-section {
    padding: 60px 0 0;
  }

  .glossary-section > .container,
  .glossary-entry-section > .container {
    padding: 0 16px;
  }

  .glossary-hero {
    margin-bottom: 32px;
  }

  .glossary-title {
    font-size: 2.5rem;
  }

  .glossary-entry-title {
    font-size: 2.25rem;
  }

  .glossary-intro {
    font-size: 1.125rem;
  }

  .glossary-entry-definition p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .glossary-letter-nav {
    margin-bottom: 44px;
  }

  .glossary-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glossary-letter {
    position: static;
    font-size: 2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .glossary-list {
    grid-template-columns: 1fr;
  }

  .glossary-card {
    min-height: 0;
    padding: 18px;
  }

  .glossary-entry-header {
    margin-bottom: 52px;
  }

  .glossary-use-title {
    font-size: 1.5rem;
  }

  .glossary-use-clip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .concepts-section,
  .concept-detail-section {
    padding: 60px 0 0;
  }

  .concepts-section > .container,
  .concept-detail-section > .container {
    padding: 0 16px;
  }

  .concepts-title {
    font-size: 2.5rem;
  }

  .concept-detail-title {
    font-size: 2.25rem;
  }

  .concepts-intro,
  .concept-definition p {
    font-size: 1.125rem;
  }

  .concepts-tools {
    grid-template-columns: 1fr;
  }

  .concepts-grid {
    grid-template-columns: 1fr;
  }

  .concept-card {
    min-height: 0;
    padding: 18px;
  }

  .concept-body-section p {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .concept-appearance h3,
  .concept-moment h3 {
    font-size: 1.5rem;
  }

  .concept-moment {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    padding-top: 120px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-detail {
    margin-top: 0;
    padding-top: 42px;
  }

  .video-detail > .container {
    gap: 48px;
  }

  .video-main-group {
    gap: 24px;
  }

  .video-content-layout {
    flex-direction: column;
    padding: 0 16px;
  }

  .video-content-sidebar {
    width: 100%;
  }

  .sidebar-course-card .card-title {
    font-size: 1.39rem;
    letter-spacing: -0.02em;
  }

  .sidebar-course-card .course-card-title-subtitle {
    line-height: 1.05;
  }

  .sidebar-course-card .card-overlay {
    background: var(--course-card-gradient-mobile);
  }

  .video-detail-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .video-detail-note { text-align: center; }

  .video-detail-speaker { text-align: center; }

  .video-detail-desc {
    text-indent: 0;
  }

  .video-actions {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .video-action-link {
    font-size: 0.85rem;
    padding: 9px 18px;
  }

  .related-videos {
    padding: 0 16px;
  }

  .next-video-overlay {
    bottom: 40px;
    padding: 0 20px;
  }

  .next-video-label {
    font-size: 0.8rem;
  }

  .next-video-link {
    font-size: 1rem;
  }

  .all-videos-section {
    padding: 60px 0 0;
  }

  .all-videos-section > .container {
    padding: 0 16px;
  }

  .all-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .all-videos-header {
    font-size: 1rem;
    text-align: left;
  }

  .all-videos-grid .card {
    aspect-ratio: 16 / 9;
  }

  .ui-idle .nav {
    transform: translateY(-20px);
  }

  .floating-btn {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
  }

  .chapters-panel {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    top: calc(var(--nav-mobile-top) + var(--nav-height) + 16px + env(safe-area-inset-top, 0px));
    max-height: none;
    border-radius: 24px;
  }

  .footer {
    padding: 64px 16px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .footer-links-group {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .footer-main-links,
  .footer-secondary-links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-main-links a {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ===================== SKIP TO MAIN ===================== */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-to-main:focus {
  top: 8px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ===================== 404 ERROR PAGE ===================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding: 96px 0;
}

.error-page-code {
  font-family: var(--serif-display);
  font-size: 8rem;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page-message {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Instant poster underlay behind the Stream iframe (see video-detail.html) */
.player-tap-catcher {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  cursor: pointer;
}
.player-tap-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: player-tap-spin 0.8s linear infinite;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}
@keyframes player-tap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .player-tap-spinner { animation: none; }
}

.video-poster-underlay,
.video-poster-underlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* contain, like the Stream player letterboxes its poster — identical
     geometry while the player boots (player background is black) */
  object-fit: contain;
  pointer-events: none;
}

/* Share popover on video pages */
.video-share { position: relative; display: inline-block; }
.share-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}
.share-time-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  cursor: pointer;
}
.share-networks { display: flex; flex-wrap: wrap; gap: 8px; }
.share-networks-primary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.share-networks button {
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 6px 11px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.share-networks button:hover { background: rgba(0, 0, 0, 0.06); }
