:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1f2624;
  --muted: #5d6a66;
  --line: #e2dccd;
  --teal: #0e3b40;
  --teal-2: #164f55;
  --mint: #3f9e86;
  --mint-light: #7fd6bb;
  --red: #a8141c;
  --quote: #efe8d8;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a1b;
    --card: #192324;
    --ink: #e7e3d9;
    --muted: #9eaba7;
    --line: #2b3a3b;
    --mint: #7fd6bb;
    --quote: #1d2a2b;
    --red: #e0727a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 var(--serif);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--mint); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.protect img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* header */
.top {
  background: var(--teal);
  color: #e9f2ef;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  font-family: var(--sans);
}
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.mark { width: 10px; height: 22px; background: var(--red); display: inline-block; clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%); }
.author { font-size: 14px; opacity: .75; }

.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; color: var(--mint-light); margin: 0 0 8px; }

/* hero */
.hero, .lec-hero {
  background: radial-gradient(1200px 400px at 80% 0%, #1f6a68 0%, transparent 60%), linear-gradient(180deg, var(--teal) 0%, #0a2e32 100%);
  color: #eef5f2;
}
.hero { padding: 48px 0 76px; }
.hero h1 { font-family: var(--sans); font-size: clamp(40px, 8vw, 76px); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; line-height: 1.05; }
.hero h1::after { content: ""; display: block; width: 120px; height: 3px; background: var(--mint-light); margin-top: 20px; }
.hero .sub { font-size: 20px; max-width: 640px; margin: 0 0 18px; opacity: .92; }
.hero .by { font-family: var(--sans); margin: 0; opacity: .75; }

.lec-hero { padding: 44px 0 40px; }
.lec-hero h1 { font-family: var(--sans); font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 0 0 12px; max-width: 860px; }
.lec-hero .sub { margin: 0 0 22px; max-width: 760px; opacity: .88; }

.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 18px; border-radius: 6px; background: var(--mint-light); color: #0a2e32; border: 1px solid var(--mint-light); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--mint); border-color: var(--mint); }
.lec-hero .btn.ghost, .v-head .btn.ghost { color: var(--mint); }

/* cards */
.cards { list-style: none; padding: 0; margin: -36px 0 56px; display: grid; gap: 24px; }
.card { display: grid; grid-template-columns: minmax(0, 420px) 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(10, 40, 42, .08); }
.card .thumb { background: #0a2e32; display: flex; align-items: center; }
.card .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.card-body { padding: 24px 28px; }
.card-body .kicker { color: var(--mint); }
.card h2 { font-family: var(--sans); font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0 0 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }
}

/* lecture */
.lec-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 64px; }
.toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.toc summary { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); cursor: pointer; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; }
.toc li a:hover, .toc li a.on { color: var(--mint); }

.lecture { max-width: 760px; }
.lecture p { margin: 0 0 1.05em; }
.lecture h2 { font-family: var(--sans); font-size: 15px; letter-spacing: .14em; color: var(--red); margin: 2.6em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.lecture h3 { font-family: var(--sans); font-size: 21px; letter-spacing: .03em; line-height: 1.3; margin: .3em 0 .7em; scroll-margin-top: 16px; }
.lecture h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.slide-ref { display: inline-block; margin: 1.4em 0 .4em; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); background: color-mix(in srgb, var(--mint) 12%, transparent); border-radius: 4px; padding: 6px 9px; text-decoration: none; }
.slide-ref::before { content: "▸ "; }
.slide-ref:hover { background: color-mix(in srgb, var(--mint) 22%, transparent); }
.lecture blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--quote); border-left: 3px solid var(--mint); border-radius: 0 6px 6px 0; }
.lecture blockquote p:last-child { margin-bottom: 0; }
.lecture ul, .lecture ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.lecture li { margin-bottom: .35em; }
.lecture table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.lecture th, .lecture td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.lecture th { background: var(--quote); font-family: var(--sans); }
.pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-family: var(--sans); font-weight: 700; }
.pager a { text-decoration: none; }
.pager .next { margin-left: auto; }
@media (max-width: 900px) {
  .lec-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
  .toc details:not([open]) summary { margin-bottom: 0; }
  body { font-size: 17px; }
}

/* viewer */
.viewer { padding: 28px 0 56px; }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.v-head .kicker { color: var(--mint); }
.v-head h1 { font-family: var(--sans); font-size: clamp(20px, 3vw, 28px); line-height: 1.2; margin: 0; }
.stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.frame { position: relative; background: #0a2e32; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); }
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.nav { height: 48px; width: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.nav:disabled { opacity: .3; cursor: default; }
.v-bar { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 14px 0 20px; font-family: var(--sans); color: var(--muted); }
.fs { font: 700 13px var(--sans); background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: none; cursor: pointer; position: relative; }
.thumbs button.on { border-color: var(--mint); }
.thumbs img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; pointer-events: none; }
.thumbs span { position: absolute; left: 4px; bottom: 4px; font: 700 11px var(--sans); background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 5px; border-radius: 3px; }
.frame:fullscreen { border-radius: 0; background: #000; aspect-ratio: auto; }
@media (max-width: 640px) {
  .stage { grid-template-columns: 1fr; }
  .stage .nav { display: none; }
  .frame { touch-action: pan-y; }
}

.foot { text-align: center; font: 14px var(--sans); color: var(--muted); padding: 28px 16px 40px; border-top: 1px solid var(--line); }

.org-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; font-family: var(--sans); line-height: 1.4; }
.org-link .emblem { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.org-link .emblem img { width: 70px; height: 70px; display: block; }
.org-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.org-text strong { font-weight: 700; }
.org-link:hover strong { text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.org-top { min-width: 0; }
.org-top .org-link { flex-direction: column; text-align: center; gap: 16px; color: #fff; font-size: 15px; padding: 28px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.04); }
.org-top .org-link:hover { background: rgba(255,255,255,.08); }
.org-top .emblem { width: 92px; height: 92px; background: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.org-top .emblem img { width: 86px; height: 86px; }
.org-top .org-text { gap: 6px; }
.org-top .org-text span { opacity: .78; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .org-top .org-link { flex-direction: row; text-align: left; padding: 16px; font-size: 14px; }
  .org-top .emblem { width: 72px; height: 72px; }
  .org-top .emblem img { width: 66px; height: 66px; }
}
.foot p { margin: 0; }
.foot .org { display: flex; justify-content: center; margin-top: 18px; }
.foot .org-link { text-align: left; max-width: 560px; color: var(--muted); font-size: 14px; }
.foot .org-link strong { color: var(--ink); }
.foot .emblem { width: 56px; height: 56px; }
.foot .emblem img { width: 52px; height: 52px; }

.org-text small { font-size: 12px; line-height: 1.4; opacity: .7; margin-top: 2px; }
.org-top .org-text small { opacity: .62; }

.card.soon { background: transparent; box-shadow: none; border-style: dashed; }
.soon-thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; width: 100%; background: linear-gradient(160deg, var(--teal-2), #0a2e32); }
.soon-thumb span { font: 700 15px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.badge { display: inline-block; font-size: 11px; letter-spacing: .1em; padding: 2px 7px; border-radius: 4px; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); vertical-align: 1px; }
.card .soon-note { font: 14px var(--sans); color: var(--muted); margin: 0; }

.media { margin: 1em 0 1.6em; }
.media .yt { position: relative; aspect-ratio: 16/9; background: #0a2e32; border-radius: 8px; overflow: hidden; }
.media .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media audio { width: 100%; }
.media figcaption { font: 14px/1.4 var(--sans); color: var(--ink); margin-top: 8px; }
.media figcaption span { color: var(--muted); }
.slide-media { max-width: 820px; margin: 18px auto 0; }
.slide-media .media { margin: 0; }

.share-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 700 15px var(--sans); color: var(--mint-light); text-decoration: none; border: 1px solid rgba(127,214,187,.45); border-radius: 6px; padding: 8px 14px; }
.share-link svg { width: 18px; height: 18px; fill: currentColor; }
.share-link:hover { background: rgba(127,214,187,.1); }
.share-page { background: radial-gradient(1200px 600px at 75% 0%, #1f6a68 0%, transparent 60%), linear-gradient(180deg, #0e3b40 0%, #0a2e32 100%); background-color: #0a2e32; color: #fff; min-height: 100vh; }
.share { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 10px; }
.share .kicker { color: #7fd6bb; margin: 0; }
.share h1 { font: 700 clamp(28px, 5vw, 56px)/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; color: #fff; }
.share .qr { width: min(48vh, 78vw); height: auto; display: block; background: #fff; padding: 2vh; border-radius: 16px; box-sizing: content-box; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.share-url { font: 700 clamp(30px, 6.4vw, 92px)/1.1 var(--sans); margin: 14px 0 0; letter-spacing: .01em; word-break: break-all; color: #fff; }
.share-hint { font: clamp(15px, 1.6vw, 22px) var(--sans); color: rgba(255,255,255,.72); margin: 0; }
.share-back { margin-top: 14px; font: 14px var(--sans); color: #7fd6bb; }

.slide-ref, .slide-anchor { scroll-margin-top: 24px; }
.slide-anchor { display: block; height: 0; }
.slide-ref:target { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }

/* main navigation */
.top { flex-wrap: wrap; }
.main-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 28px; }
.main-nav a { color: #cfe3dd; text-decoration: none; font: 700 14px var(--sans); letter-spacing: .04em; padding: 6px 12px; border-radius: 6px; }
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.on { background: rgba(127,214,187,.16); color: #fff; box-shadow: inset 0 -2px 0 var(--mint-light); }
@media (max-width: 700px) {
  .main-nav { order: 3; width: 100%; margin: 6px 0 0; justify-content: space-between; }
  .main-nav a { flex: 1; text-align: center; padding: 8px 4px; }
  .author { display: none; }
}

/* library pages */
.lec-hero.small { padding: 34px 0 30px; }
.lib { padding-top: 28px; padding-bottom: 56px; max-width: 980px; }
.lib-group { margin-bottom: 40px; }
.lib-group > h2 { font: 700 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; }
.g-note { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin-bottom: 14px; scroll-margin-top: 16px; }
.t-card:target { box-shadow: 0 0 0 2px var(--mint); }
.t-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.t-head h3 { font: 700 21px/1.3 var(--sans); margin: 0; }
.date { font: 700 13px var(--sans); color: var(--mint); white-space: nowrap; }
.t-note { margin: 8px 0 0; font-size: 17px; }
.t-sec { margin-top: 14px; }
.t-sec h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.t-sec ul, .lib-block ul { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.5; }
.t-sec li, .lib-block li { margin-bottom: 4px; }
.s-pub { color: var(--muted); }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font: 14px var(--sans); }
.meta-l { color: var(--muted); }
.tag { display: inline-block; font: 700 12px var(--sans); text-decoration: none; padding: 4px 9px; border-radius: 4px; background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--mint); }
.tag.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.tag:hover { filter: brightness(1.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: 700 13px var(--sans); border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.s-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.s-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; scroll-margin-top: 40px; }
.s-item.hl { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.s-author { font-weight: 700; }
.s-note { font-size: 15px; color: var(--muted); margin-top: 3px; }
.s-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; justify-content: flex-end; max-width: 300px; }
.read { font: 700 13px var(--sans); color: var(--mint); text-decoration: none; padding: 4px 0; }
.empty { color: var(--muted); }
@media (max-width: 700px) { .s-item { grid-template-columns: 1fr; } .s-tags { justify-content: flex-start; max-width: none; } }
.lib-block { margin-top: 3em; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.lib-block h2 { font: 700 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; border: 0; padding: 0; }
.lib-block h3 { font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.lib-more { font: 14px var(--sans); margin: 14px 0 0; }
[hidden] { display: none !important; }

/* section buttons */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-buttons .share-link { margin-top: 0; }
.share-link.on { background: var(--mint-light); color: #0a2e32; border-color: var(--mint-light); }
.toc li.grp a { color: var(--ink); font-weight: 700; margin-top: 8px; }
.toc li.sub a { padding-left: 26px; }
.toc .cnt { color: var(--muted); font-weight: 400; font-size: 12px; }
.lib.lecture h2 { scroll-margin-top: 16px; }
.lib .t-card { scroll-margin-top: 16px; }
.lib .s-list { margin-bottom: 8px; }
.s-sub { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 20px 0 4px; }
.lecture .g-note { font-size: 16px; }
.lecture h3.s-sub { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; }
.lecture ul.s-list { padding-left: 0; list-style: none; }
.lecture .s-list li { margin-bottom: 0; }
.lecture .t-card h3 { margin: 0; font-size: 21px; }
.lecture .t-sec h4 { margin: 0 0 6px; }

/* didache comparison */
.t-cta { margin: 12px 0 0; }
.tr-bar { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.tr-bar-in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-top: 10px; padding-bottom: 10px; font: 14px var(--sans); }
.tr-lbl { color: var(--muted); font-weight: 700; margin-right: 6px; }
.tr-toggles { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.tr-toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.tr-toggle input { accent-color: var(--teal); width: 16px; height: 16px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tr-chips a { min-width: 28px; text-align: center; padding: 3px 6px; border-radius: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.tr-chips a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.tr-main { padding-top: 24px; padding-bottom: 48px; }
.tr-ch { scroll-margin-top: 110px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.tr-ch h2 { font: 700 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.tr-grid { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 28px; }
.tr-col { min-width: 0; font-size: 17px; line-height: 1.6; }
.tr-col p { margin: 0 0 .7em; }
.tr-col[lang="grc"] { font-family: "Noto Serif", "Gentium Plus", "Palatino Linotype", "Times New Roman", serif; font-size: 16px; }
.tr-name { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.v { font: 700 11px var(--sans); color: var(--muted); margin-right: 2px; }
.tr-links { font: 13px var(--sans); color: var(--muted); margin: 6px 0 10px; }
.tr-src { margin-top: 32px; font-size: 16px; }
.tr-src h2 { font: 700 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tr-src h3 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 20px; }
.tr-src li { margin-bottom: 6px; }
@media (max-width: 800px) { .tr-grid { grid-template-columns: 1fr !important; gap: 14px; } .tr-ch { scroll-margin-top: 150px; } .tr-bar { position: static; } }
.tr-main.narrow { max-width: 820px; }
.tr-col.single { font-size: 18px; }
.tr-cmp { margin-left: auto; font: 700 14px var(--sans); color: var(--mint); text-decoration: none; }
.t-cta .btn.ghost { color: var(--mint); }
.tr-note { font-size: 14px; opacity: .85; margin-top: 4px; }
.tr-note a { color: var(--mint); }
.t-note { font-size: 14px; color: var(--muted, #6b6b6b); margin: 0 0 6px; }
.t-note a { color: inherit; }
/* translations list */
.t-head + .t-sec { margin-top: 16px; }
.tl-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tl-row { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); font: 500 16px/1.35 var(--sans); }
.tl-row:first-child { border-top: 0; }
a.tl-row:hover { background: color-mix(in srgb, var(--mint) 10%, transparent); }
.tl-name { flex: 1; min-width: 0; }
.tl-year { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-tag { font: 600 12px var(--sans); letter-spacing: .04em; color: var(--mint); white-space: nowrap; min-width: 92px; text-align: right; }
.tl-tag.ext { color: var(--muted); font-weight: 500; }
.t-sec .t-note { font: 13px/1.45 var(--sans); color: var(--muted); margin: 0 0 8px; }
.t-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.t-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 6px; font: 600 14px var(--sans); text-decoration: none; background: var(--mint); color: #0f2b2b; border: 1px solid var(--mint); }
.t-btn.ghost { background: transparent; color: var(--mint); }
.t-btn:hover { filter: brightness(.95); }
@media (max-width: 520px) { .tl-tag { min-width: 0; } .tl-row { flex-wrap: wrap; } }
/* compact column toggles (checkboxes) */
.tr-bar-in { gap: 8px 20px; }
.tr-toggles { gap: 4px 11px; }
.tr-toggle { gap: 5px; white-space: nowrap; font-size: 13.5px; }
.tr-toggle input { width: 15px; height: 15px; }
.tr-more { margin-top: 6px; font: 600 13px var(--sans); }
.tr-more a { color: var(--mint); text-decoration: none; }
.tr-more a:hover { text-decoration: underline; }
.tl-note { display: block; margin-top: 2px; font: 400 13px/1.35 var(--sans); color: var(--muted); }
.tr-title { font-style: italic; color: var(--muted); }
.tr-gap { font: italic 14px/1.5 var(--sans); color: var(--muted); }
.tr-loading { color: var(--muted); font-family: var(--sans); }
.ch-sel { font: 14px var(--sans); padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
.ep-nav { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ep-nav a { font: 500 13.5px var(--sans); padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ep-nav a:hover { border-color: var(--mint); }
.ep-nav a.on { background: var(--mint); border-color: var(--mint); color: var(--card); }
.lat { font: 600 11px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; vertical-align: 2px; }
.part-note { margin: 28px 0 0; padding: 14px 18px; border-left: 3px solid var(--mint); background: color-mix(in srgb, var(--mint) 8%, transparent); font: 15px/1.5 var(--sans); color: var(--ink); }
.slide-embed { position: absolute; z-index: 2; background: #000; }
.slide-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.media.cap-only figcaption { margin-top: 0; }
.part-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); font: 600 11.5px/1.5 var(--sans); letter-spacing: .02em; text-transform: none; vertical-align: 1px; }
.part-tag.on-dark { background: rgba(255,255,255,.12); color: #f3c9cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn.ghost.on-dark:hover { border-color: #fff; }
.quiz-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 10px; background: var(--card); }
.quiz-box > div { flex: 1 1 320px; min-width: 0; }
.quiz-box h3 { margin: 0 0 6px; font: 700 18px var(--sans); }
.quiz-box p { margin: 0; font: 15px/1.5 var(--sans); color: var(--muted); }
