:root {
  --ink: #f4ead6;
  --muted: #b7a78a;
  --gold: #d4af6a;
  --gold-2: #f0d48a;
  --brass: #8a6a32;
  --bg: #0a0b0e;
  --bg-2: #12141a;
  --panel: #161922;
  --line: rgba(212, 175, 106, 0.22);
  --danger: #c45c4a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 106, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 110%, rgba(80, 110, 90, 0.16), transparent 50%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff6d8;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(10, 11, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  width: min(1280px, calc(100% - 48px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  min-height: 84px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.btn[hidden],
a[hidden],
[hidden] {
  display: none !important;
}

.btn:hover {
  background: rgba(212, 175, 106, 0.12);
  color: #fff6d8;
}

.btn.solid {
  background: var(--gold);
  color: #16120a;
  border-color: var(--gold);
  font-weight: 650;
}

.btn.solid:hover {
  background: var(--gold-2);
  color: #16120a;
}

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.kicker {
  display: block;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 8px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.04;
  margin: 12px 0 20px;
}

main.section h1,
.form-card h1,
.bible-nav h1,
.desk-bible h1,
.go-layout aside h1,
.watch-layout .viewer-side h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  text-align: center;
}

.desk-bible h1 {
  text-align: left;
}

.lede {
  max-width: 46rem;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 12px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(22, 25, 34, 0.7);
  padding: 22px 24px;
  text-align: center;
}

.bible-nav .toolbar {
  flex-wrap: nowrap;
  margin: 0 0 16px;
}

.bible-nav input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
}

.bible-nav .toolbar .btn {
  flex: 0 0 auto;
}

.bible-nav .hero-actions {
  margin: 0 0 28px;
}

.bible-nav h2 {
  margin: 8px 0 12px;
  font-size: 1.2rem;
}

[data-related-charts] {
  margin-top: 48px;
}

[data-related-charts] h2 {
  margin: 0 0 20px;
}

[data-listen-wrap] {
  margin: 8px 0 16px;
}

[data-listen-wrap] .kicker {
  margin-bottom: 10px;
}

audio {
  width: 100%;
  display: block;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 4px;
}

.stat span,
.stat a {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 48px 0 80px;
}

.hero + .section {
  padding-top: 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
}

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 106, 0.07), transparent 42%),
    var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.thumb {
  height: 128px;
  margin: -22px -22px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 175, 106, 0.16), transparent 48%),
    repeating-linear-gradient(-18deg, transparent, transparent 10px, rgba(244, 234, 214, 0.03) 10px, rgba(244, 234, 214, 0.03) 11px),
    #10131a;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.4rem;
  overflow: hidden;
}

.thumb.has-image {
  height: auto;
  aspect-ratio: 16 / 10;
  background: #f7f1e4;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.thumb.has-image span {
  display: none;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.series-tile {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
}

.series-tile:hover {
  border-color: var(--gold);
}

.series-tile span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-tile h3 {
  margin: 12px 0 10px;
  line-height: 1.2;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin: 4px 0 28px;
}

input[type="search"],
select {
  appearance: none;
  background: #0e1016;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  min-height: 46px;
  font: inherit;
}

input[type="search"] {
  flex: 2 1 260px;
  min-width: 220px;
}

.toolbar select {
  width: auto;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 100%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
}

.chips + .grid,
.toolbar + .video-grid,
.toolbar + .compare-frames,
.toolbar + [data-steps],
.toolbar + [data-pages] {
  margin-top: 8px;
}

[data-library] {
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

.chip[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold-2);
  background: rgba(212, 175, 106, 0.1);
}

.empty {
  border: 1px dashed var(--line);
  padding: 64px 28px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.viewer-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "side stage";
  height: calc(100vh - 84px);
  max-height: calc(100vh - 84px);
  overflow: hidden;
}

.viewer-shell.has-teaching:has(> .stage-player) {
  grid-template-rows: auto minmax(220px, 1fr);
  grid-template-areas:
    "player player"
    "side stage";
}

.viewer-shell.has-teaching:has(> .stage-player) .stage-player {
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.viewer-side { grid-area: side; }
.viewer-stage { grid-area: stage; }
.stage-player { grid-area: player; }

.viewer-side {
  border-right: 1px solid var(--line);
  background: rgba(12, 14, 18, 0.92);
  padding: 32px 28px 48px;
  overflow: auto;
  min-height: 0;
}

.viewer-side h1 {
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  margin: 10px 0 14px;
}

.viewer-side p,
.viewer-side li {
  color: var(--muted);
  line-height: 1.6;
}

.viewer-side h2 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
}

.viewer-side ul {
  margin: 0 0 8px;
  padding-left: 1.15rem;
}

.viewer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 28px;
}

.viewer-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    linear-gradient(#10131a, #10131a) padding-box,
    repeating-conic-gradient(from 0deg, #0d0f14 0% 25%, #151821 0% 50%) 0 0 / 28px 28px;
  overflow: hidden;
}

.stage-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
}

.stage-head .stage-player {
  flex: 0 0 auto;
  width: min(720px, 100%, calc(38vh * 16 / 9));
  margin: 0 auto;
  padding: 12px 14px 14px;
  background: transparent;
  border-bottom: 0;
}

.stage-head .stage-player-bar {
  width: 100%;
  margin: 0 0 8px;
}

.stage-head .stage-player-inner {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.stage-head .stage-toolbar {
  flex: 1 1 0;
  min-width: 168px;
  border-bottom: 0;
}

.stage-head:has(.stage-player:not([hidden])) .stage-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  background: transparent;
  border-bottom: 0;
}

.stage-head:has(.stage-player:not([hidden])) .stage-player-bar [data-player-toggle] {
  display: none;
}

.stage-toolbar {
  position: sticky;
  top: var(--header-stick, 72px);
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zoom-controls {
  display: flex;
  gap: 8px;
}

.stage-player {
  padding: 18px 28px 20px;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
}

.stage-player-bar {
  width: min(1100px, 100%);
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--gold-2);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-player-inner {
  position: relative;
  width: min(960px, 100%, calc(38vh * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stage-player iframe,
.stage-player video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  background: #000;
  object-fit: contain;
}

.stage-player video::cue,
.desk-player video::cue {
  font-family: var(--sans);
  font-size: 1.08em;
  line-height: 1.35;
  color: #fff;
  background: rgba(10, 11, 14, 0.72);
}

.stage-player video::-webkit-media-text-track-display,
.desk-player video::-webkit-media-text-track-display {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center;
}

.caption-overlay {
  position: static;
  z-index: 1;
  margin: 10px 4px 0;
  text-align: center;
  pointer-events: none;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  line-height: 1.4;
  color: var(--gold-2);
}

.caption-overlay:not([hidden]) {
  display: block;
}

.caption-overlay span {
  display: inline-block;
  max-width: 100%;
  padding: 0.2em 0.15em;
}

.watch-layout.viewer-shell,
.watch-layout.viewer-shell.has-teaching {
  height: auto;
  max-height: none;
  overflow: visible;
  grid-template-rows: auto auto;
}

.watch-layout.viewer-shell.has-teaching {
  grid-template-areas:
    "player player"
    "side side";
}

.watch-layout .viewer-stage {
  display: none;
}

.watch-layout .viewer-side {
  border-right: 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding-top: 28px;
  text-align: center;
}

.watch-layout .viewer-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.watch-layout .viewer-side ul {
  display: inline-block;
  text-align: left;
}

.frame-wrap {
  padding: 0;
  transform-origin: top left;
}

.frame-wrap iframe,
.chart-fit iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #f7f1e4;
  transform-origin: top left;
}

.chart-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  position: relative;
  background: #f7f1e4;
}

.chart-fit {
  transform-origin: top left;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--muted);
}

.prose h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.15rem;
  text-align: center;
}

.prose h2 {
  color: var(--ink);
  font-size: 1.55rem;
  margin: 2.15em 0 0.7em;
}

.prose p {
  margin: 0 0 1.15em;
}

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

.card-updated {
  margin-top: 16px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.video-badge {
  display: inline-block;
  margin: 14px 18px 0;
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-badge + .video-badge {
  margin-left: 8px;
}

.video-badge.linked {
  border-color: var(--gold);
  color: var(--gold-2);
}

.video-badge.needed {
  color: var(--muted);
}

.video-match {
  margin: 0 18px 10px;
  color: var(--gold-2);
  font-size: 0.82rem;
}

.path-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.path-steps a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.path-steps a:hover {
  border-color: var(--gold);
}

.path-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  border-radius: 50%;
  font-size: 0.85rem;
}

.path-steps strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.path-steps em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.verse-book {
  margin: 40px 0 10px;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verse-group {
  margin-bottom: 36px;
}

.verse-group h3 {
  margin: 0 0 16px;
}

.bible-layout {
  display: grid;
  grid-template-columns: minmax(240px, 36rem);
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.bible-layout.is-reading {
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.bible-nav {
  text-align: center;
}

.bible-nav .toolbar {
  justify-content: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.bible-nav .hero-actions {
  justify-content: center;
}

[data-book-lists] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 56px;
  text-align: left;
  margin-top: 8px;
}

.bible-testament h2 {
  text-align: left;
}

.bible-layout.is-reading .bible-nav {
  text-align: left;
}

.bible-layout.is-reading .bible-nav h1 {
  text-align: left;
}

.bible-layout.is-reading .bible-nav .toolbar,
.bible-layout.is-reading .bible-nav .hero-actions {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}

.bible-layout.is-reading [data-book-lists] {
  grid-template-columns: 1fr;
  gap: 8px;
}

.bible-read {
  min-width: 0;
}

.bible-toolbar,
.bible-chapters,
.bible-text,
[data-taught-chapter],
[data-related-charts] {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.bible-text.is-parallel {
  max-width: 54rem;
}

.bible-books {
  list-style: none;
  padding: 0;
  columns: 1;
  margin: 0 0 28px;
}

.bible-books a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: var(--muted);
}

.bible-books a[aria-current="page"],
.bible-books a:hover {
  color: var(--gold-2);
}

.bible-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bible-toolbar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
}

.bible-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.bible-chapters a {
  min-width: 40px;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.bible-chapters a[aria-current="page"],
.bible-chapters a:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.bible-text {
  max-width: 42rem;
}

.bible-verse {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.75;
  margin: 0 0 0.55em;
  color: var(--ink);
}

.bible-verse sup {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.7rem;
  margin-right: 6px;
}

.bible-verse.is-mark {
  background: rgba(212, 175, 106, 0.12);
  padding: 4px 8px;
  margin-left: -8px;
  border-left: 2px solid var(--gold);
}

.series-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 24px;
}

.mobile-only {
  display: none;
}

.desk-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 36px;
}

.desk-tech {
  margin-top: 48px;
}

.note-heading {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.note-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 16px 18px;
  margin: 0 0 16px;
}

.note-card textarea {
  min-height: 110px;
  font-family: inherit;
  font-size: 1rem;
}

.lib-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-cell .card {
  flex: 1;
}

.cv-notes h2 {
  margin-top: 0;
}
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: start;
}

.preview-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.preview-panel iframe {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  background: #fff;
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
textarea {
  width: 100%;
  appearance: none;
  background: #0e1016;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.video-card h3 {
  margin: 12px 18px 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.video-card time {
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea {
  width: 100%;
  appearance: none;
  background: #0e1016;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
}

.form-card select,
.item-layout select {
  width: 100%;
}

textarea {
  min-height: 220px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 36px 40px;
}

.form-card .hero-actions {
  margin-top: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  margin: 12px 0 18px;
}

.flash.error {
  border-color: var(--danger);
  color: #f0c2ba;
}

.site-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search input {
  width: min(280px, 38vw);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
}

.continue-card {
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 46rem;
}

.continue-card span {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

[data-chapters] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

[data-chapters] .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

[data-transcript-wrap] {
  margin: 12px 0 24px;
  color: var(--muted);
}

.transcript-line {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 8px 0;
  align-items: baseline;
}

.transcript-line button {
  background: transparent;
  border: 0;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.transcript-line:hover,
.transcript-line button:hover {
  color: var(--gold-2);
}

.scripture-link {
  color: var(--gold-2);
}

.taught-mark {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  cursor: pointer;
}

.taught-pop {
  margin: 8px 0 18px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.92rem;
}

.taught-pop a {
  display: block;
  margin: 4px 0;
}

.bible-text.is-parallel .bible-verse-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0.65em;
}

.bible-verse-web {
  color: #d8d0c0;
}

.desk-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "chart bible";
  height: calc(100vh - 84px);
  max-height: calc(100vh - 84px);
  overflow: hidden;
}

.desk-player:not([hidden]) {
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 10px;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
}
.desk-player .stage-player-bar {
  width: 100%;
  margin: 0 0 10px;
  flex: 0 0 auto;
}
.desk-player .stage-player-inner {
  flex: 0 0 auto;
  height: 32vh;
  width: min(100%, calc(32vh * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.desk-player .stage-player-inner iframe,
.desk-player .stage-player-inner video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}

.desk-player [data-listen-wrap] {
  flex: 0 0 auto;
}
.desk-player audio {
  width: 100%;
  max-height: 36px;
  background: #000;
}
.desk-chart > .stage-toolbar {
  position: relative;
  top: 0;
  z-index: 5;
}
.desk-chart {
  grid-area: chart;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f1e4;
}
.desk-bible {
  grid-area: bible;
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 28px 28px 48px;
}
.desk-bible .kicker {
  margin-bottom: 6px;
}
.desk-bible p {
  margin: 0 0 1em;
  color: var(--muted);
  line-height: 1.6;
}
.desk-bible .hero-actions {
  margin: 8px 0 28px;
  justify-content: flex-start;
}
.desk-bible h2 {
  margin: 0 0 12px;
}
.desk-bible ul {
  margin: 0 0 22px;
  padding-left: 1.2rem;
}

.compare-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: calc(100vh - 220px);
  min-height: 420px;
}

.compare-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f1e4;
  display: flex;
  flex-direction: column;
}

.path-step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.path-step h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.path-step .lede {
  margin-bottom: 0.55em;
}

.path-step .hero-actions {
  margin-top: 0;
}

.path-step.is-done { opacity: 0.7; }
.path-step b { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); }

.packet-page {
  border: 1px solid var(--line);
  padding: 36px;
  margin: 0 0 36px;
  background: var(--panel);
}

.packet-page h2 {
  margin: 8px 0 10px;
}

.packet-page p {
  margin: 0 0 0.85em;
  color: var(--muted);
  line-height: 1.6;
}

.packet-page .lede {
  margin-bottom: 1em;
}

.packet-page img {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 8px;
}

.go-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.go-layout aside {
  width: 100%;
  max-width: 40rem;
}

.go-layout aside p,
.go-layout aside .lede {
  margin: 0 auto 1.05em;
}

.go-layout .hero-actions {
  margin: 8px 0 28px;
  justify-content: center;
}

.go-layout .stage-player {
  width: min(720px, 100%);
  padding: 0;
}

.go-layout .stage-player-inner {
  width: 100%;
  margin: 0 auto;
}

.go-layout aside ul {
  display: inline-block;
  text-align: left;
  margin: 0;
}

@media print {
  .site-header,
  .site-search,
  .no-print,
  .hero-actions .btn:not(.print-keep) {
    display: none !important;
  }
  .packet-page {
    break-after: page;
    border: 0;
    background: #fff;
    color: #111;
  }
}

.search-list {
  padding-left: 1.2rem;
  line-height: 1.7;
}

.search-list li {
  margin: 0 0 1.15em;
}

.search-list .lede {
  margin: 0.35em 0 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 24px;
}

.chip-check {
  color: var(--muted);
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .wrap,
  .site-header .wrap {
    width: min(1180px, calc(100% - 36px));
  }

  .grid,
  .stats,
  .series-grid,
  .video-grid,
  .path-steps,
  .item-layout,
  .bible-layout,
  .bible-layout.is-reading,
  .desk-shell,
  .compare-frames,
  .go-layout,
  .bible-text.is-parallel .bible-verse-row {
    grid-template-columns: 1fr;
  }

  [data-book-lists] {
    grid-template-columns: 1fr 1fr;
  }

  .grid,
  .video-grid,
  .series-grid,
  .path-steps,
  .stats {
    gap: 18px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .section {
    padding: 36px 0 64px;
  }

  .viewer-shell,
  .viewer-shell.has-teaching {
    grid-template-columns: 1fr;
    grid-template-areas: "player" "stage" "side";
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0 6px;
    min-height: 0;
    gap: 12px 16px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-bottom: 10px;
  }

  .site-search {
    margin-left: 0;
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .toolbar select,
  .toolbar input[type="search"] {
    flex: 1 1 100%;
    min-width: 0;
  }

  .viewer-shell,
  .viewer-shell.has-teaching,
  .desk-shell {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-areas: "chart" "bible";
    grid-template-rows: auto auto;
  }

  .viewer-stage {
    height: 58vh;
    min-height: 280px;
  }

  .desk-chart {
    height: auto;
  }

  .desk-chart .chart-pane {
    min-height: 52vh;
  }

  .compare-frames {
    height: auto;
    min-height: 0;
  }

  .compare-frame {
    height: 55vh;
  }

  .frame-wrap {
    padding: 0;
  }

  .stage-player {
    padding: 14px 14px 16px;
  }

  .stage-player iframe,
  .stage-player video {
    min-height: 0;
    max-height: none;
  }

  .stage-toolbar {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .stage-head {
    flex-direction: column;
    justify-content: flex-start;
  }

  .stage-head .stage-player {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .stage-head:has(.stage-player:not([hidden])) .stage-toolbar {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 11, 14, 0.86);
  }

  .viewer-side {
    padding: 24px 20px 40px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .desk-player,
  .desk-bible {
    padding: 16px 16px 28px;
  }

  .desk-bible {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .bible-nav .toolbar {
    flex-wrap: wrap;
  }

  .mobile-only {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .preview-panel {
    position: static;
  }

  .viewer-actions .btn {
    width: 100%;
  }

  .watch-layout .viewer-actions .btn {
    width: auto;
  }

  .path-step {
    grid-template-columns: 36px 1fr;
  }

  .path-step .row-actions,
  .path-step > :last-child {
    grid-column: 2;
  }
}

.doc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.doc-editor {
  min-height: 220px;
  background: #f7f1e4;
  color: #1b1712;
  border: 1px solid var(--line);
  padding: 16px 18px;
  line-height: 1.55;
}

.doc-editor:focus {
  outline: 2px solid var(--gold);
}

.doc-editor h2,
.doc-editor h3 {
  font-family: var(--serif);
  color: #1b1712;
  margin: 0.7em 0 0.3em;
}

.docs-upload {
  border: 1px solid var(--line);
  padding: 4px 20px 20px;
  margin: 8px 0 28px;
  max-width: 760px;
}

.doc-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-cell .card {
  flex: 1;
}

.more-options {
  margin-top: 18px;
  color: var(--muted);
}

.more-options summary {
  cursor: pointer;
}

.home-hero {
  padding: 56px 0 8px;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin: 0 auto 10px;
  max-width: 900px;
}

.home-counts {
  margin: 0 0 22px;
  color: var(--muted);
  letter-spacing: 0.06em;
  min-height: 1.4em;
}

.home-hero .hero-actions {
  justify-content: center;
}

.home-latest-section {
  padding-top: 32px;
  padding-bottom: 24px;
}

.home-latest {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 106, 0.07), transparent 50%),
    var(--panel);
  box-shadow: var(--shadow);
}

.home-latest-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--line);
}

.home-latest-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 1.6rem;
  padding-left: 5px;
}

.home-latest-video:hover .home-play {
  background: var(--gold);
  color: #16120a;
}

.home-latest-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin: 4px 0 6px;
}

.home-latest-date {
  margin: 0 0 18px;
  color: var(--muted);
}

.home-latest-chart {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  background: rgba(10, 11, 14, 0.4);
}

.home-latest-chart:hover {
  border-color: var(--gold);
}

.home-latest-chart img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #f7f1e4;
  flex: none;
}

.home-latest-chart small {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.home-latest-chart strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .home-hero {
    padding: 32px 0 4px;
  }

  .home-latest {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }
}

.nav-toggle {
  display: none;
  padding: 8px 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner:has(> .nav-toggle) > nav {
    display: none;
  }

  .header-inner.nav-open > nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .header-inner.nav-open > nav > a {
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .header-inner.nav-open .site-search {
    margin-top: 12px;
  }
}

.doc-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.doc-link {
  flex: 1;
  display: block;
  padding: 20px 4px;
  color: inherit;
  text-decoration: none;
}

.doc-link h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--ink);
}

.doc-link:hover h3 {
  color: var(--gold-2);
}

.doc-link p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}

.doc-meta {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-upload summary {
  list-style: none;
  margin: 16px 0;
}

.docs-upload summary::-webkit-details-marker {
  display: none;
}

.docs-upload[open] summary {
  margin-bottom: 4px;
}

details.docs-upload {
  border: 0;
  padding: 0;
}

details.docs-upload[open] {
  border: 1px solid var(--line);
  padding: 4px 20px 20px;
}

.read-shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  position: relative;
  z-index: 1;
}

.read-paper {
  background: #f7f1e4;
  color: #1b1712;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px 48px 48px;
}

.read-paper .kicker {
  color: #8a6a32;
}

.read-paper h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 6px 0 12px;
  text-align: left;
  color: #1b1712;
}

.read-desc {
  margin: 0 0 6px;
  color: #5d5346;
  font-size: 1.05rem;
  line-height: 1.55;
}

.read-meta {
  margin: 0 0 18px;
  color: #8a6a32;
  font-size: 0.85rem;
}

.read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 2px solid #8a6a32;
  margin-bottom: 24px;
}

.read-paper .btn {
  color: #6b4f1f;
  border-color: #8a6a32;
  padding: 9px 16px;
}

.read-paper .btn.solid {
  background: #8a6a32;
  color: #f7f1e4;
}

.read-body {
  font-size: 1.08rem;
  line-height: 1.7;
}

.read-body h2,
.read-body h3 {
  color: #1b1712;
  margin: 1.5em 0 0.4em;
}

.read-body a,
.read-verses a {
  color: #7a5a22;
}

.read-body blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid #8a6a32;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.read-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.read-body th,
.read-body td {
  border-bottom: 1px solid #d7c7a4;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.read-body th {
  color: #8a6a32;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-body .note {
  color: #5d5346;
  font-size: 0.95rem;
}

.read-pdf {
  width: 100%;
  height: 80vh;
  border: 1px solid #d7c7a4;
  background: #fff;
}

.read-image {
  width: 100%;
  height: auto;
  display: block;
}

.read-verses {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #d7c7a4;
}

.read-verses h2 {
  color: #1b1712;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  .read-paper {
    padding: 24px 18px 32px;
  }

  .read-shell {
    width: calc(100% - 16px);
    padding-top: 14px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cv-back,
  .read-actions {
    display: none !important;
  }

  body::before {
    display: none;
  }

  .read-shell {
    width: 100%;
    padding: 0;
  }

  .read-paper {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

.chart-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "chart head"
    "chart video"
    "chart info";
  height: calc(100vh - 84px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.cv-head { grid-area: head; }
.cv-chart { grid-area: chart; }
.cv-video { grid-area: video; }
.cv-info { grid-area: info; }

.cv-head,
.cv-video,
.cv-info {
  border-left: 1px solid var(--line);
  background: rgba(12, 14, 18, 0.94);
  padding: 0 24px;
}

.cv-head {
  padding-top: 20px;
  padding-bottom: 16px;
}

.cv-head h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1.1;
  margin: 6px 0 6px;
  text-align: left;
}

.cv-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.cv-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cv-actions .btn {
  padding: 9px 16px;
}

.more-menu {
  position: relative;
}

.more-menu summary {
  list-style: none;
}

.more-menu summary::-webkit-details-marker {
  display: none;
}

.more-menu summary::after {
  content: "▾";
  font-size: 0.8em;
}

.more-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #11141b;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.more-list a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.more-list a:hover {
  background: rgba(212, 175, 106, 0.12);
  color: var(--gold-2);
}

.cv-chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #f7f1e4;
}

.cv-chart-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-stick, 72px);
  z-index: 18;
  flex: 0 0 auto;
}

.cv-chart-bar .kicker {
  margin: 0;
}

.cv-chart-bar .zoom-controls {
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.cv-chart-bar .zoom-controls .btn {
  padding: 6px 12px;
  min-width: 38px;
}

.cv-video {
  padding-bottom: 14px;
}

.cv-video-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
}

.cv-video-head .kicker {
  margin: 0;
}

.cv-video-head .btn {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.cv-video:not(:has([data-player-toggle]:not([hidden]))) {
  display: none;
}

.stage-player.cv-player {
  padding: 0;
  background: transparent;
  border: 0;
}

.cv-player .stage-player-inner {
  width: 100%;
}

.cv-info {
  overflow: auto;
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
}

.cv-info p,
.cv-info li {
  color: var(--muted);
  line-height: 1.6;
}

.cv-info h2 {
  font-size: 1.1rem;
  margin: 22px 0 10px;
}

.cv-info ul {
  margin: 0 0 8px;
  padding-left: 1.15rem;
}

@media (max-width: 920px) {
  .chart-view {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "head"
      "chart"
      "video"
      "info";
    height: auto;
    overflow: visible;
  }

  .cv-head,
  .cv-video,
  .cv-info {
    border-left: 0;
    padding: 0 18px;
  }

  .cv-head {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .cv-actions .btn {
    flex: 1 1 auto;
  }

  .more-menu {
    flex: 1 1 auto;
  }

  .more-menu summary {
    width: 100%;
  }

  .cv-chart .chart-pane {
    flex: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .cv-info {
    overflow: visible;
    padding-bottom: 40px;
  }
}

.chart-page {
  position: relative;
  z-index: 1;
}

.cv-stage {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px);
  min-height: 520px;
  background: #f7f1e4;
}

.cv-stage .chart-pane {
  flex: 1 1 auto;
}

.cv-chart-bar .cv-back {
  margin: 0;
  color: var(--gold-2);
}

.cv-chart-bar .kicker {
  margin: 0;
}

.cv-chart-bar .zoom-controls {
  margin-left: auto;
}

.cv-teach {
  flex: 0 0 auto;
  padding: 8px 16px 14px;
  background: #0b0d12;
  border-bottom: 1px solid var(--line);
}

.cv-teach .stage-player-inner iframe,
.cv-teach .stage-player-inner video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.study-card {
  background: #f4ead6;
  color: #1b1712;
  padding: 42px 24px 72px;
}

.study-card-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.study-card h1,
.study-card h2 {
  color: #1b1712;
  text-align: left;
}

.study-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 8px;
}

.study-card h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.study-card .kicker {
  color: #8a6a32;
}

.study-lead {
  margin: 0 0 8px;
  color: #3d3428;
  font-size: 1.05rem;
  line-height: 1.55;
}

.study-card .card-updated,
.study-card .study-note p,
.study-card li {
  color: #3d3428;
}

.study-card a {
  color: #6a4e16;
}

.study-card .verse-chip,
.study-card .btn {
  color: #1b1712;
}

.study-card .btn.solid {
  color: #16120a;
}

.study-card .series-nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
}

.study-card .cv-actions {
  margin-top: 28px;
}

.study-note p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.study-steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: step;
}

.study-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 12px;
  line-height: 1.5;
}

.study-steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1712;
  color: #f4ead6;
  font-size: 0.85rem;
}

.desk-notes .study-steps li::before {
  background: var(--gold);
  color: #16120a;
}

.desk-notes h2 {
  font-size: 1.15rem;
  margin: 8px 0 10px;
}

.verse-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.verse-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(212, 175, 106, 0.08);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.verse-chip.is-on,
.verse-chip:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 106, 0.2);
}

.study-card .verse-chip {
  background: #fffdf8;
  border-color: #c4b08a;
  color: #1b1712;
}

.study-card .verse-chip:hover {
  background: #fff;
  color: #1b1712;
}

.desk-bible .series-nav {
  margin-top: 4px;
}

@media (max-width: 920px) {
  .cv-stage {
    height: auto;
    min-height: 0;
  }

  .cv-stage .chart-pane {
    min-height: 62vh;
  }

  .cv-chart-bar {
    flex-wrap: wrap;
  }

  .cv-chart-bar .zoom-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .study-card {
    padding: 28px 16px 48px;
  }
}
