/* Sanctuary Studio: editorial paper for reading, obsidian studio for anything 9:16. */
:root {
  --bg-paper: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2F0E8;
  --bg-studio: #0F1714;
  --bg-studio-elevated: #17221E;
  --text-primary: #111614;
  --text-secondary: #4A544F;
  --text-muted: #76817B;
  --text-on-studio: #ECEFEA;
  --text-on-studio-muted: #94A19A;
  --accent-sanctuary: #1B4332;
  --accent-sanctuary-hover: #122E22;
  --accent-sanctuary-soft: #E6EEE9;
  --accent-emerald: #3FA27A;
  --accent-gold: #B68D40;
  --accent-gold-light: #D4B06A;
  --border-hairline: #E4E2DA;
  --border-strong: #CFCCC1;
  --border-studio: rgba(255, 255, 255, 0.10);
  --danger: #9B2C22;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-display: "Instrument Serif", "Newsreader", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* The burned-in subtitles use Poppins (see AssSubtitles), so the 9:16 preview does too. */
  --font-caption: "Poppins", var(--font-sans);

  --shadow-lift: 0 1px 0 rgb(17 22 20 / .04), 0 18px 40px -28px rgb(17 22 20 / .35);
  --header-h: 64px;

  --c-opening: #3B4A44;
  --c-worship: #4E6A5D;
  --c-announcements: #6B6A5C;
  --c-offering: #55666E;
  --c-sermon: var(--accent-gold);
  --c-appeal: #8C6F3E;
  --c-closing: #2C3833;
}

@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("/assets/Poppins-ExtraBold-ef82d925.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/Poppins-SemiBold-8f59aac1.ttf") format("truetype"); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-paper); color: var(--text-primary); font: 400 1rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-sanctuary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-sanctuary-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font: .82em var(--font-mono); background: var(--bg-subtle); padding: 1px 5px; border-radius: var(--radius-xs); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; }
.display em, .brand em { font-style: italic; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker, .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--text-secondary); font: 600 .72rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-emerald); box-shadow: 0 0 0 4px rgb(63 162 122 / .16); }
.kicker.on-dark { color: var(--accent-gold-light); }
.ref-gold { color: var(--accent-gold); font: 500 .82rem/1.4 var(--font-mono); letter-spacing: .02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--accent-sanctuary); border-radius: var(--radius-sm); background: var(--accent-sanctuary); color: #fff; font: 600 .92rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-sanctuary-hover); border-color: var(--accent-sanctuary-hover); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn.xs { padding: 4px 10px; font-size: .76rem; }
.btn.lg { padding: 15px 24px; font-size: 1rem; }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn.ghost:hover { border-color: var(--text-primary); background: var(--bg-surface); }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); font: 400 1rem/1.4 var(--font-sans); }
input:focus, textarea:focus { outline: 2px solid var(--accent-sanctuary); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; font-size: .9rem; }

/* Header */
.hd { position: sticky; top: 0; z-index: 20; background: rgb(250 249 245 / .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border-hairline); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text-primary); font: 600 1.02rem/1 var(--font-sans); letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: var(--text-primary); }
.brand em { font: italic 400 1.28rem/1 var(--font-display); letter-spacing: 0; }
.brand-mark { flex: none; color: var(--accent-sanctuary); }
.nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav a:not(.btn) { color: var(--text-secondary); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text-primary); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.flash { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--border-hairline); border-left: 2px solid var(--accent-sanctuary); border-radius: var(--radius-xs); background: var(--bg-surface); }
.ft { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--border-hairline); font-size: .88rem; color: var(--text-secondary); }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.ft-note { max-width: 560px; margin: 14px 0 0; }
.ft-ops { margin: 0; font-size: .8rem; }
.ft-ops a { color: var(--text-muted); }

/* Home: hero + command bar */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: end; }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; }
.hero h1 em { color: var(--accent-sanctuary); }
.lede { max-width: 640px; margin-bottom: 32px; color: var(--text-secondary); font-size: clamp(1.02rem, 1rem + .25vw, 1.14rem); line-height: 1.65; }
.hero-verse { padding: 0 0 6px 24px; border-left: 1px solid var(--border-hairline); }
.hero-verse blockquote { margin: 0 0 14px; font: 400 1.35rem/1.3 var(--font-display); color: var(--text-primary); }
.hero-verse p { margin: 0; }
.command { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: var(--shadow-lift); transition: border-color .15s; }
.command:focus-within { border-color: var(--accent-sanctuary); }
.command-icon { flex: none; color: #C4302B; }
.command input { min-width: 0; padding: 12px 4px; border: 0; font-size: 1rem; }
.command input:focus { outline: 0; }
.command .btn { flex: none; padding: 13px 20px; background: var(--text-primary); border-color: var(--text-primary); }
.command .btn:hover { background: var(--accent-sanctuary); border-color: var(--accent-sanctuary); }
.hint { margin-top: 12px; font-size: .82rem; color: var(--text-muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-verse { max-width: 520px; } }
@media (max-width: 640px) {
  .command { flex-wrap: wrap; padding: 10px; }
  .command-icon { margin-left: 6px; }
  .command input { flex: 1 1 0; }
  .command .btn { flex: 1 1 100%; }
}

.recent { margin-top: 56px; padding-bottom: 72px; }
.rule-label { display: flex; justify-content: space-between; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-hairline); color: var(--text-muted); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.demo { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; color: var(--text-primary); text-decoration: none; }
.demo:hover { color: var(--text-primary); }
.demo:hover .demo-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.demo-thumb { position: relative; display: block; }
.demo-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.demo-duration { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: var(--radius-xs); background: rgb(15 23 20 / .82); color: #fff; font-size: .7rem; }
.demo-body { display: grid; gap: 4px; }
.demo-channel { color: var(--accent-gold); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.demo-title { font: 400 1.4rem/1.15 var(--font-display); }
.demo-meta { color: var(--text-secondary); font-size: .85rem; }
.demo-meta .mono { font-size: .8rem; }
.demo-open { margin-top: 4px; color: var(--accent-sanctuary); font-size: .82rem; font-weight: 600; }
@media (max-width: 860px) { .demo-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .demo { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; } .demo-title { font-size: 1.18rem; } }

/* Home: obsidian 9:16 showcase */
.studio-band { padding: 88px 0 96px; background: var(--bg-studio); color: var(--text-on-studio); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 8px 56px; align-items: end; margin-bottom: 48px; }
.band-head .kicker { grid-column: 1 / -1; margin-bottom: 4px; }
.band-head h2 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.band-head h2 em { color: var(--accent-gold-light); }
.band-head p { margin: 0; color: var(--text-on-studio-muted); }
@media (max-width: 860px) { .band-head { grid-template-columns: 1fr; } }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.reel { display: grid; gap: 12px; color: var(--text-on-studio); text-decoration: none; }
.reel-footer { display: grid; gap: 12px; color: var(--text-on-studio); text-decoration: none; }
.reel:hover, .reel-footer:hover { color: #fff; }
.reel-screen { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--border-studio); border-radius: var(--radius-md); background: #000; transition: border-color .2s; }
.reel:hover .reel-screen { border-color: rgb(212 176 106 / .55); }
.reel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(.42) saturate(.8); transform: scale(1.2); pointer-events: none; }
.reel-video { position: absolute; left: 0; right: 0; top: 50%; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: translateY(-50%); overflow: hidden; }
.reel-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(15 23 20 / .78), transparent 26%, transparent 66%, rgb(15 23 20 / .9)); }
.reel-screen > :not(img):not(.reel-video) { z-index: 2; }
.reel-bar, .reel-title, .reel-verse, .reel-caption, .reel-transport { pointer-events: none; }
.reel-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-studio); background: rgb(15 23 20 / .72); font-size: .62rem; letter-spacing: .08em; }
.reel-index { color: var(--text-on-studio); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-tc { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-gold-light); }
.reel-rec { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold-light); box-shadow: 0 0 0 3px rgb(212 176 106 / .18); animation: reel-rec 1.6s ease-in-out infinite; }
@keyframes reel-rec { 50% { opacity: .35; } }
.reel-title { position: absolute; top: 48px; left: 14px; right: 14px; font: 400 1.25rem/1.15 var(--font-display); text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
.reel-verse { position: absolute; top: calc(34% - 28px); left: 14px; padding: 3px 8px; border: 1px solid rgb(212 176 106 / .7); border-radius: var(--radius-xs); background: rgb(15 23 20 / .6); color: var(--accent-gold-light); font-size: .62rem; letter-spacing: .06em; }
.reel-play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border: 1px solid rgb(255 255 255 / .5); border-radius: 50%; background: rgb(15 23 20 / .55); color: #fff; cursor: pointer; pointer-events: auto; touch-action: manipulation; transform: translate(-50%, -50%); backdrop-filter: blur(4px); transition: background .2s, border-color .2s, opacity .15s; }
.reel:hover .reel-play { border-color: var(--accent-gold-light); background: var(--accent-gold); color: var(--bg-studio); }
.reel-screen.is-playing .reel-play, .reel-screen.is-loading .reel-play, .reel-screen.is-ready .reel-play { opacity: 0; pointer-events: none; }
.reel-transport { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; gap: 6px; }
.reel-wave { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.reel-wave i { flex: 1; height: var(--h); border-radius: 1px; background: rgb(236 239 234 / .3); }
.reel-wave i.is-played { background: var(--accent-gold-light); }
.reel-progress { position: relative; height: 2px; background: rgb(236 239 234 / .2); }
.reel-progress span { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-gold-light); }
.reel-progress span::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.reel-times { display: flex; justify-content: space-between; color: var(--text-on-studio-muted); font-size: .58rem; letter-spacing: .04em; }
.reel-caption { position: absolute; left: 12px; right: 12px; top: 66%; text-align: center; color: #fff; font: 800 1.15rem/1.15 var(--font-caption); text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 8px rgb(0 0 0 / .8); -webkit-text-stroke: .5px #000; }
.reel-caption .is-current { color: #ffd60a; }
.style-karaoke .reel-caption { color: #00e5ff; }
.style-karaoke .reel-caption .is-sung, .style-karaoke .reel-caption .is-current { color: #ffd60a; }
.style-minimal .reel-caption { left: 50%; right: auto; width: max-content; max-width: 84%; padding: 5px 10px; border-radius: var(--radius-xs); background: rgb(15 23 20 / .6); font: 600 .9rem/1.35 var(--font-caption); text-transform: none; text-shadow: none; -webkit-text-stroke: 0; transform: translateX(-50%); }
.reel-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 2px; border-top: 1px solid var(--border-studio); padding-top: 12px; font-size: .86rem; font-weight: 600; }
.reel-meta .mono { color: var(--text-on-studio-muted); font-weight: 400; font-size: .78rem; }
.reel-church { margin-top: -6px; color: var(--text-on-studio-muted); font-size: .8rem; }
@media (max-width: 860px) {
  .reels { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -24px; padding-right: 24px; scrollbar-width: none; }
  .reel { scroll-snap-align: start; }
}

/* Home: editorial chapters */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 8px 56px; align-items: end; margin: 104px 0 40px; }
.section-head .kicker { grid-column: 1 / -1; margin-bottom: 4px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.section-head h2 em { color: var(--accent-sanctuary); }
.section-head p { margin: 0; color: var(--text-secondary); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; margin-top: 72px; } }
.chapters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--text-primary); }
.chapter { display: grid; grid-template-columns: 120px minmax(0, 1fr) 340px; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--border-hairline); }
.chapter-no { align-self: start; font: 400 3.4rem/1 var(--font-display); color: var(--accent-gold); }
.chapter-text h3 { margin-bottom: 8px; font: 400 1.75rem/1.15 var(--font-display); letter-spacing: -.01em; }
.chapter-text p { max-width: 520px; margin: 0; color: var(--text-secondary); }
.chapter-art { margin: 0; }
.art-timeline { display: flex; gap: 2px; height: 40px; }
.art-timeline span { flex: 0 1 var(--w); min-width: 0; display: flex; align-items: flex-end; padding: 0 0 4px 6px; border-radius: 2px; background: var(--bg-subtle); color: var(--text-muted); font-size: .62rem; overflow: hidden; white-space: nowrap; }
.art-timeline .is-sermon { background: var(--accent-sanctuary); color: var(--accent-gold-light); }
.art-frames { display: flex; gap: 10px; justify-content: flex-end; }
.art-frames i { width: 56px; aspect-ratio: 9 / 16; border-radius: var(--radius-xs); background: var(--bg-studio); box-shadow: inset 0 -14px 0 -10px var(--accent-gold), inset 0 34px 0 -20px var(--bg-studio-elevated); }
.art-frames i:nth-child(2) { transform: translateY(-10px); }
.art-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; list-style: none; border: 1px solid var(--border-hairline); border-radius: var(--radius-xs); }
.art-week li { padding: 22px 0 10px; border-left: 1px solid var(--border-hairline); text-align: center; color: var(--text-secondary); font: 500 .74rem var(--font-mono); background: linear-gradient(var(--accent-sanctuary) 0 0) center 10px / 14px 2px no-repeat; }
.art-week li:first-child { border-left: 0; }
.art-sheet { justify-self: end; display: grid; gap: 7px; width: 112px; aspect-ratio: 210 / 297; padding: 14px 12px; border: 1px solid var(--border-strong); background: var(--bg-surface); box-shadow: 6px 6px 0 var(--bg-subtle); }
.art-sheet b { height: 8px; width: 70%; background: var(--text-primary); }
.art-sheet i { height: 3px; background: var(--border-strong); }
.art-sheet i:nth-of-type(2n) { width: 80%; }
@media (max-width: 960px) { .chapter { grid-template-columns: 72px minmax(0, 1fr); } .chapter-art { grid-column: 2; justify-self: start; width: 100%; max-width: 340px; } .art-frames { justify-content: flex-start; } .art-sheet { justify-self: start; } .chapter-no { font-size: 2.6rem; } }
@media (max-width: 520px) { .chapter { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; } .chapter-art { grid-column: 1; } }
.chapter-art.art-sheet { width: 112px; }

/* Home: pricing */
.plans-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--text-primary); border-bottom: 1px solid var(--border-hairline); }
.price { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 40px 40px 0; }
.price + .price { padding: 36px 0 40px 40px; border-left: 1px solid var(--border-hairline); }
.price h3 { margin-bottom: 18px; font: 600 1rem var(--font-sans); }
.price h3 em { display: block; margin-top: 2px; color: var(--text-muted); font: italic 400 1.05rem var(--font-display); }
.price > p:not(.amount) { max-width: 400px; color: var(--text-secondary); }
.price .btn { margin-top: auto; }
.amount { margin: 0 0 14px; font: 400 3.4rem/1 var(--font-display); letter-spacing: -.02em; }
.amount small { color: var(--text-muted); font: 500 .85rem var(--font-sans); letter-spacing: 0; }
@media (max-width: 720px) { .plans-row { grid-template-columns: 1fr; } .price, .price + .price { padding: 32px 0; border-left: 0; } .price + .price { border-top: 1px solid var(--border-hairline); } }

/* Waiting / failure states */
.state { max-width: 640px; padding-top: 72px; }
.state h1 { font: 400 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.1 var(--font-display); }
.progress { padding-left: 1.2em; color: var(--text-secondary); }
.progress li { margin-bottom: 6px; }
.spinner { width: 32px; height: 32px; margin-bottom: 20px; border: 2px solid var(--border-hairline); border-top-color: var(--accent-sanctuary); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { display: inline-block; width: 14px; height: 14px; margin: 0 6px -2px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sermon: studio header + timeline */
.culto-head { padding: 48px 0 40px; background: var(--bg-studio); color: var(--text-on-studio); }
.culto-head a { color: var(--text-on-studio); }
.culto-head-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; }
.culto-frame { position: relative; margin: 0; }
.culto-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border-studio); border-radius: var(--radius-md); }
.culto-frame figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-xs); background: rgb(15 23 20 / .85); color: var(--accent-gold-light); font-size: .72rem; }
.culto-church { margin: 0 0 12px; color: var(--accent-gold); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.culto-info h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); color: #fff; }
.culto-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 16px; }
.culto-facts div { padding: 0 20px; border-left: 1px solid var(--border-studio); }
.culto-facts div:first-child { padding-left: 0; border-left: 0; }
.culto-facts dt { color: var(--text-on-studio-muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.culto-facts dd { margin: 2px 0 0; font-size: .95rem; }
.culto-facts .ref-gold { color: var(--accent-gold-light); font-size: .9rem; }
.culto-source { margin: 0; font-size: .82rem; }
.culto-source a { color: var(--text-on-studio-muted); }
@media (max-width: 820px) { .culto-head-grid { grid-template-columns: 1fr; gap: 24px; } .culto-head { padding-top: 24px; } }
@media (max-width: 520px) { .culto-facts { gap: 14px 28px; } .culto-facts div { padding: 0; border-left: 0; } }

.timeline-card { margin-top: 40px; padding-top: 24px; background: linear-gradient(var(--border-studio), var(--border-studio)) 24px 0 / calc(100% - 48px) 1px no-repeat; }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.timeline-head h2 { margin: 0; color: var(--text-on-studio-muted); font: 600 .74rem var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
.callout { margin: 0; color: var(--text-on-studio); font-size: .92rem; }
.callout strong { color: var(--accent-gold-light); font-weight: 600; }
.callout a { color: var(--text-on-studio-muted); }
.timeline { position: relative; height: 36px; margin: 16px 0 6px; border-radius: var(--radius-xs); background: var(--bg-studio-elevated); overflow: hidden; }
.tl-block { position: absolute; top: 0; bottom: 0; left: var(--from); width: var(--size); background: var(--c); border-right: 1px solid var(--bg-studio); }
.timeline .tl-sermon { background: linear-gradient(180deg, var(--accent-gold-light), var(--accent-gold)); }
.tl-clip { position: absolute; top: 8px; bottom: 8px; left: var(--at); width: 2px; background: var(--bg-studio); opacity: .75; }
.tl-clip:hover { opacity: 1; background: #fff; }
.tl-scale { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--text-on-studio-muted); font-size: .68rem; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--text-on-studio); font-size: .82rem; }
.tl-legend strong { font-weight: 500; }
.tl-legend .mono { color: var(--text-on-studio-muted); font-size: .74rem; }
.tl-legend .dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 1px; background: var(--c); }
.tl-legend .tl-sermon strong { color: var(--accent-gold-light); }
.tl-opening { --c: var(--c-opening); } .tl-worship { --c: var(--c-worship); } .tl-announcements { --c: var(--c-announcements); }
.tl-offering { --c: var(--c-offering); } .tl-sermon { --c: var(--c-sermon); } .tl-appeal { --c: var(--c-appeal); } .tl-closing { --c: var(--c-closing); }

/* Sermon: package tabs */
.tab-group { scroll-margin-top: var(--header-h); }
.tabs { position: sticky; top: var(--header-h); z-index: 10; display: flex; gap: 32px; margin: 0 0 40px; border-bottom: 1px solid var(--border-hairline); background: var(--bg-paper); overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; margin-bottom: -1px; padding: 18px 0 14px; border-bottom: 2px solid transparent; color: var(--text-secondary); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--text-primary); }
.tabs a span { margin-left: 6px; color: var(--text-muted); font: 500 .74rem var(--font-mono); }
.tabs a[aria-selected="true"] { border-bottom-color: var(--accent-sanctuary); color: var(--text-primary); font-weight: 600; }
.tabs a[aria-selected="true"] span { color: var(--accent-sanctuary); }
.panel-lede { max-width: 680px; margin-bottom: 32px; color: var(--text-secondary); }
@media (max-width: 640px) { .tabs { gap: 22px; margin-left: -24px; margin-right: -24px; padding: 0 24px; } }

/* Clip station: monitor on the left, editor on the right */
.clips { display: grid; gap: 32px; }
.clip { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--bg-studio) 0 320px, var(--bg-surface) 320px); overflow: hidden; scroll-margin-top: 140px; }
.phone { position: sticky; top: 132px; align-self: start; padding: 24px 28px 28px; }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--border-studio); border-radius: var(--radius-sm); overflow: hidden; background: #000; color: #fff; }
.phone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.5); transform: scale(1.15); }
.phone-video { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 16 / 9; transform: translateY(-50%); overflow: hidden; background: #000; }
.phone-video img { position: absolute; top: 50%; left: 50%; height: 100%; width: auto; aspect-ratio: 16 / 9; object-fit: cover; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.phone-video iframe, .phone-video video { position: absolute; top: 50%; left: 50%; height: 100%; width: auto; aspect-ratio: 16 / 9; object-fit: cover; transform: translate(-50%, -50%); border: 0; pointer-events: auto; }
.phone-bg, .phone-top, .phone-verse, .phone-caption, .phone-time { pointer-events: none; }
.layout-center_crop .phone-video { top: 0; bottom: 0; aspect-ratio: auto; transform: none; }
.layout-split_verse .phone-screen { background: var(--bg-studio); }
.layout-split_verse .phone-video { top: 15.6%; height: 57.3%; aspect-ratio: auto; transform: none; }
.layout-center_crop .phone-bg, .layout-split_verse .phone-bg, .layout-split_verse .phone-top span { display: none; }
.phone-top { position: absolute; top: 0; left: 0; right: 0; padding: 20px 14px 28px; background: linear-gradient(rgb(0 0 0 / .75), transparent); text-align: center; }
.layout-split_verse .phone-top { padding: 12px 14px 0; background: none; }
.phone-top strong { display: block; font: 800 .92rem/1.2 var(--font-caption); letter-spacing: -.01em; }
.phone-top span { display: inline-block; margin-top: 6px; color: #ffd54a; font: 500 .68rem var(--font-mono); }
.phone-verse { display: none; position: absolute; left: 8%; right: 8%; top: 74.5%; padding-top: 8px; border-top: 2px solid #ffd60a; text-align: center; font-size: .66rem; line-height: 1.35; }
.phone-verse strong { display: block; margin-bottom: 4px; color: #ffd54a; }
.layout-split_verse .phone-verse { display: block; }
.phone-caption { position: absolute; left: 10px; right: 10px; top: 69.8%; margin: 0; font: 800 1.12rem/1.15 var(--font-caption); text-align: center; text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 8px rgb(0 0 0 / .8); -webkit-text-stroke: .5px #000; }
.layout-center_crop .phone-caption { top: 70.8%; }
.layout-split_verse .phone-caption { top: 62%; }
.phone-caption .is-current { color: #ffd60a; display: inline-block; transform: scale(1.18); transition: transform .1s; }
.style-hormozi .phone-caption { font-size: 1.26rem; -webkit-text-stroke: 1px #000; }
.style-karaoke .phone-caption span { color: #00e5ff; }
.style-karaoke .phone-caption .is-sung, .style-karaoke .phone-caption .is-current { color: #ffd60a; transform: none; }
.style-minimal .phone-caption { left: 50%; right: auto; width: max-content; max-width: 84%; padding: 4px 10px; border-radius: var(--radius-xs); background: rgb(15 23 20 / .55); font: 600 .88rem/1.3 var(--font-caption); text-transform: none; text-shadow: none; -webkit-text-stroke: 0; transform: translateX(-50%); }
.style-minimal .phone-caption .is-current { color: #f5d58a; transform: none; }
.phone-play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; padding: 0 0 0 4px; border: 1px solid rgb(255 255 255 / .5); border-radius: 50%; background: rgb(15 23 20 / .55); backdrop-filter: blur(6px); color: #fff; cursor: pointer; pointer-events: auto; touch-action: manipulation; transform: translate(-50%, -50%); transition: background .15s, opacity .15s; }
.phone-play:hover { background: var(--accent-sanctuary); border-color: var(--accent-sanctuary); }
.phone.is-playing .phone-play, .phone.is-loading .phone-play, .phone.is-ready .phone-play { opacity: 0; pointer-events: none; }
.phone-unmute { position: absolute; top: 12px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--accent-gold-light); border-radius: 999px; background: rgb(15 23 20 / .88); color: var(--accent-gold-light); font: 600 .68rem/1 var(--font-sans); letter-spacing: .04em; cursor: pointer; pointer-events: auto; touch-action: manipulation; box-shadow: 0 4px 12px rgb(0 0 0 / .45); }
.phone-unmute:hover { background: var(--accent-gold); color: var(--bg-studio); }
.phone-time { position: absolute; left: 0; right: 0; bottom: 10px; color: rgb(255 255 255 / .75); font-size: .66rem; text-align: center; }

.clip-body { min-width: 0; padding: 28px 32px 28px; }
.clip-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 10px; font-size: .78rem; }
.clip-no { color: var(--accent-gold); font: 400 1.6rem/1 var(--font-display); }
.score { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.score::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.score-high { color: var(--accent-sanctuary); } .score-mid { color: var(--accent-gold); } .score-low { color: var(--text-muted); }
.clip-body h3 { margin-bottom: 12px; font: 400 1.85rem/1.12 var(--font-display); letter-spacing: -.01em; }
.verse { margin-bottom: 16px; color: var(--text-secondary); font: italic 400 1.05rem/1.45 var(--font-display); }
.verse strong { display: block; margin-bottom: 2px; font-style: normal; }
.hook { margin-bottom: 20px; padding: 2px 0 2px 16px; border-left: 2px solid var(--accent-gold); color: var(--text-primary); }
.hook strong { display: block; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
details { margin: 0 0 16px; }
summary { cursor: pointer; color: var(--text-secondary); font-size: .9rem; font-weight: 600; }
summary:hover { color: var(--text-primary); }
details p { margin-top: 8px; color: var(--text-secondary); font-size: .94rem; }
.clip-body > details:not(.clip-editor):not(.social-kit) { padding-bottom: 16px; border-bottom: 1px solid var(--border-hairline); }
.caption-box { display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; }
.caption-box label { font-size: .82rem; font-weight: 600; }
.clip-editor, .social-kit { margin: 0; border-bottom: 1px solid var(--border-hairline); }
.clip-editor > summary, .social-kit > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: var(--text-primary); list-style: none; }
.clip-editor > summary::-webkit-details-marker, .social-kit > summary::-webkit-details-marker { display: none; }
.clip-editor > summary::after, .social-kit > summary::after { content: "+"; color: var(--text-muted); font: 400 1.1rem var(--font-mono); }
.clip-editor[open] > summary::after, .social-kit[open] > summary::after { content: "−"; }
.clip-editor[open], .social-kit[open] { padding-bottom: 20px; }

/* Trim & Style Studio */
.editor-form { display: grid; gap: 24px; margin-top: 4px; }
.editor-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.editor-form legend { margin-bottom: 10px; padding: 0; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.trim { display: grid; gap: 10px; }
.trim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.trim-row > label { width: 44px; color: var(--text-secondary); font-size: .85rem; font-weight: 600; }
.trim-group { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface); overflow: hidden; }
.nudge { min-width: 46px; padding: 0 10px; border: 0; border-right: 1px solid var(--border-hairline); background: var(--bg-paper); color: var(--text-secondary); font: 500 .78rem var(--font-mono); cursor: pointer; }
.trim-value + .nudge { border-left: 1px solid var(--border-hairline); }
.nudge:last-child { border-right: 0; }
.nudge:hover { background: var(--accent-sanctuary-soft); color: var(--accent-sanctuary); }
.nudge:focus-visible { outline: 2px solid var(--accent-sanctuary); outline-offset: -2px; }
.trim-value { display: grid; justify-items: center; min-width: 112px; padding: 6px 12px; }
.trim-at { color: var(--text-primary); font: 600 1.02rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.trim-value input { width: 84px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font: 400 .68rem var(--font-mono); text-align: center; }
.trim-value input:focus { outline: 0; color: var(--text-primary); }
.trim-duration { margin: 0; font-size: .85rem; color: var(--text-secondary); }
.trim-duration strong { margin: 0 6px; color: var(--text-primary); }
.trim-duration .is-invalid { color: var(--danger); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices legend { grid-column: 1 / -1; }
@media (max-width: 760px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px 10px 12px; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); background: var(--bg-surface); cursor: pointer; transition: border-color .15s; }
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--accent-sanctuary); box-shadow: inset 0 0 0 1px var(--accent-sanctuary); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.choice strong { margin-top: 6px; font-size: .86rem; font-weight: 600; }
.choice small { color: var(--text-secondary); font-size: .74rem; line-height: 1.4; }
.choice-sample { position: relative; display: grid; place-items: center; height: 64px; border-radius: var(--radius-sm); background: var(--bg-studio); color: #fff; font: 800 1.05rem var(--font-caption); }
.sample-hormozi b { color: #ffd60a; font-size: 1.15em; -webkit-text-stroke: .5px #000; }
.sample-karaoke { padding-bottom: 12px; color: #00e5ff; } .sample-karaoke b { color: #ffd60a; }
.sample-karaoke::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: linear-gradient(90deg, #ffd60a 58%, rgb(255 255 255 / .2) 58%); }
.sample-minimal { font: 600 .88rem var(--font-caption); } .sample-minimal b { color: #f5d58a; font-weight: 600; }
.choice-frame { position: relative; display: block; width: 36px; height: 64px; margin: 0 auto; border-radius: var(--radius-xs); overflow: hidden; background: var(--bg-studio); box-shadow: 0 0 0 1px var(--border-strong); }
.choice-frame i { position: absolute; left: 0; right: 0; background: var(--accent-sanctuary); }
.choice-frame b { position: absolute; left: 6px; right: 6px; height: 3px; background: #ffd60a; }
.frame-blurred_stage { background: linear-gradient(#2E3C36, #17221E); } .frame-blurred_stage i { top: 36%; height: 28%; background: var(--accent-emerald); } .frame-blurred_stage b { top: 70%; }
.frame-center_crop i { inset: 0; background: linear-gradient(160deg, #2F6B52, var(--accent-sanctuary)); } .frame-center_crop i::after { content: ""; position: absolute; left: 50%; top: 26%; width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / .35); transform: translateX(-50%); } .frame-center_crop b { top: 72%; }
.frame-split_verse i { top: 16%; height: 52%; background: var(--accent-emerald); } .frame-split_verse b { top: 76%; height: 1px; } .frame-split_verse::after { content: ""; position: absolute; left: 8px; right: 8px; top: 82%; height: 6px; background: repeating-linear-gradient(rgb(255 255 255 / .5) 0 1px, transparent 1px 3px); }
.hook-field { display: grid; gap: 6px; }
.hook-field label { font-size: .85rem; font-weight: 600; }
.hook-field input { padding: 10px 12px; font-size: .95rem; }
.editor-form .actions { align-items: center; margin-top: 0; }
.form-error { margin: 0; padding: 10px 14px; border-left: 2px solid var(--danger); background: #FBF1EF; color: var(--danger); font-size: .88rem; }
.form-ok { margin: 0; padding: 10px 14px; border-left: 2px solid var(--accent-sanctuary); background: var(--accent-sanctuary-soft); color: var(--accent-sanctuary); font-size: .88rem; }
.social-kit h4 { margin: 4px 0 10px; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kit-titles { display: grid; margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.kit-titles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-hairline); }
.kit-titles small { grid-column: 1 / -1; color: var(--text-muted); font-size: .72rem; }
.kit-titles span { font-weight: 500; }
.social-kit .caption-box textarea { width: 100%; }

.render { display: block; padding-top: 20px; }
.render form { display: inline; }
.render-done { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.render-done video { width: 120px; aspect-ratio: 9 / 16; height: auto; border-radius: var(--radius-sm); background: #000; }
.render-wait { color: var(--text-secondary); }
.render-error { color: var(--danger); font-size: .9rem; }
@media (max-width: 760px) {
  .clip { grid-template-columns: 1fr; background: var(--bg-surface); }
  .phone { position: static; padding: 20px 0; background: var(--bg-studio); }
  .phone-screen { width: min(260px, 70%); margin: 0 auto; }
  .clip-body { padding: 22px 18px; }
  .clip-body h3 { font-size: 1.55rem; }
}

/* Carousel tab */
.carousel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-hairline); }
.carousel-toolbar .actions { margin: 0; }
.theme-picker { display: inline-flex; align-items: stretch; margin: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.theme-picker legend { float: left; align-self: center; padding: 0 12px; color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.theme-option { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-left: 1px solid var(--border-hairline); background: var(--bg-surface); font-size: .85rem; cursor: pointer; }
.theme-option:has(input:checked) { background: var(--accent-sanctuary-soft); color: var(--accent-sanctuary); font-weight: 600; }
.theme-option input { width: auto; accent-color: var(--accent-sanctuary); }
.slides.carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.carousel-caption textarea { width: 100%; max-width: 760px; }

/* Weekly schedule */
.schedule-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.schedule-head .panel-lede { max-width: 640px; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--text-primary); }
.schedule-day { padding: 18px 20px 22px 0; border-bottom: 1px solid var(--border-hairline); }
.schedule-day h3 { margin-bottom: 12px; font: 400 1.5rem/1.1 var(--font-display); }
.schedule-day:nth-child(n + 6) h3 { color: var(--text-muted); }
.schedule-day ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.slot { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 10px; font-size: .86rem; line-height: 1.4; }
.slot time { grid-row: span 3; color: var(--accent-sanctuary); font: 600 .8rem/1.6 var(--font-mono); }
.slot-channel { color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.slot strong { font-weight: 600; }
.slot strong a { color: var(--text-primary); text-decoration-color: var(--border-strong); }
.slot small { color: var(--text-secondary); }

/* Devotionals: editorial rows */
.devotionals { display: grid; max-width: 920px; border-top: 1px solid var(--text-primary); }
.devotional { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--border-hairline); }
.devotional-day { position: sticky; top: 140px; align-self: start; }
.devotional-day .mono { color: var(--accent-gold); font-size: .78rem; }
.devotional-day p { margin: 4px 0 0; font: italic 400 2rem/1 var(--font-display); }
.devotional-body { max-width: 640px; }
.devotional h3 { margin-bottom: 8px; font: 400 1.85rem/1.15 var(--font-display); letter-spacing: -.01em; }
.devotional .reading { margin-bottom: 18px; }
.devotional-body > p { color: var(--text-secondary); line-height: 1.7; }
.devotional .apply { padding: 14px 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); color: var(--text-primary); }
.devotional .apply strong { display: block; margin-bottom: 2px; color: var(--accent-sanctuary); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.prayer { color: var(--text-primary); font: italic 400 1.15rem/1.5 var(--font-display); }
@media (max-width: 720px) { .devotional { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; } .devotional-day { position: static; display: flex; align-items: baseline; gap: 12px; } .devotional-day p { font-size: 1.5rem; } }

/* Cell guide */
.cell-guide { max-width: 760px; padding: 48px 56px; border: 1px solid var(--border-hairline); background: var(--bg-surface); box-shadow: 8px 8px 0 var(--bg-subtle); }
.cell-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--text-primary); }
.cell-head h3 { margin-bottom: 6px; font-size: 2.4rem; }
.cell-head .ref-gold { margin: 0; }
.cell-guide section { padding: 16px 0; border-bottom: 1px solid var(--border-hairline); }
.cell-guide h4 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cell-guide h4 .mono { color: var(--accent-gold); letter-spacing: 0; }
.cell-guide section p { margin: 0; }
.cell-guide ol { margin: 0; padding-left: 1.2em; }
.cell-guide ol li { margin-bottom: 10px; }
.ref { margin-left: 4px; color: var(--accent-gold); font: 500 .76rem var(--font-mono); }
@media (max-width: 640px) { .cell-guide { padding: 28px 20px; box-shadow: none; } .cell-head h3 { font-size: 1.9rem; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Summary & quotes */
.summary { max-width: 720px; font-size: 1.05rem; line-height: 1.7; }
.quotes-title { margin: 48px 0 18px; font: 400 1.8rem var(--font-display); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; margin: 0; padding: 24px; border-radius: var(--radius-sm); background: var(--bg-studio); color: var(--text-on-studio); }
.quote:nth-child(3n + 2) { background: var(--accent-sanctuary); }
.quote:nth-child(3n) { border: 1px solid var(--border-hairline); background: var(--bg-surface); color: var(--text-primary); }
.quote blockquote { margin: 0; font: 400 1.4rem/1.2 var(--font-display); }
.quote figcaption { color: var(--accent-gold-light); font: 500 .7rem var(--font-mono); }
.quote:nth-child(3n) figcaption { color: var(--accent-gold); }

.upsell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--text-primary); }
.upsell h2 { margin: 0 0 8px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); }
.upsell h2 em { color: var(--accent-sanctuary); }
.upsell p { margin: 0; color: var(--text-secondary); }
.upsell .actions { margin: 0; }
@media (max-width: 760px) { .upsell { grid-template-columns: 1fr; } }

/* Checkout dialog */
.checkout { width: min(480px, calc(100vw - 32px)); padding: 32px; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--text-primary); box-shadow: 0 30px 80px rgb(15 23 20 / .35); }
.checkout::backdrop { background: rgb(15 23 20 / .6); }
.checkout h2 { font: 400 2rem/1.1 var(--font-display); }
.checkout form { display: grid; gap: 12px; }
.plans { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.plan-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--accent-sanctuary); box-shadow: inset 0 0 0 1px var(--accent-sanctuary); }
.plan-option input { width: auto; margin-top: 4px; accent-color: var(--accent-sanctuary); }
.plan-option span { display: grid; gap: 2px; }
.plan-option small { color: var(--text-secondary); }
.checkout label[for] { font-size: .88rem; font-weight: 600; }
.order h1 { font: 400 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.1 var(--font-display); }
.order .pix { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin: 24px 0; }
.pix-qr svg { width: 100%; height: auto; padding: 10px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-hairline); }
@media (max-width: 640px) { .order .pix { grid-template-columns: 1fr; } .pix-qr { max-width: 240px; } }

@media print {
  .hd, .ft, .tabs, .actions, .upsell, .culto-head, .checkout { display: none !important; }
  .cell-guide { border: 0; padding: 0; box-shadow: none; }
}

/* Sermon: weekly package download and the church signature used on every deliverable */
.culto-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.package-download { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-studio); }
.package-download:hover { background: var(--accent-gold-light); border-color: var(--accent-gold-light); color: var(--bg-studio); }
.package-note { flex: 1 1 220px; margin: 0; color: var(--text-on-studio-muted); font-size: .8rem; }
.church-kit { margin-top: 28px; border: 1px solid var(--border-studio); border-radius: var(--radius-md); background: var(--bg-studio-elevated); }
.church-kit summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 14px 18px; cursor: pointer; list-style: none; }
.church-kit summary::-webkit-details-marker { display: none; }
.kit-label { color: var(--text-on-studio-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kit-signature { flex: 1 1 280px; color: var(--text-on-studio); font: italic 400 1.15rem/1.3 var(--font-display); }
.kit-edit { color: var(--accent-gold-light); font-size: .82rem; font-weight: 600; }
.church-kit[open] .kit-edit { visibility: hidden; }
.kit-form { display: grid; gap: 18px; padding: 4px 18px 18px; border-top: 1px solid var(--border-studio); }
.kit-lede { margin: 14px 0 0; color: var(--text-on-studio-muted); font-size: .85rem; }
.kit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kit-fields label { display: grid; gap: 6px; color: var(--text-on-studio-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.kit-fields input { border-color: var(--border-studio); background: var(--bg-studio); color: var(--text-on-studio); font-size: .92rem; }
.kit-fields input:focus { outline-color: var(--accent-gold); }
.kit-themes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.kit-themes legend { float: left; margin-right: 8px; color: var(--text-on-studio-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.kit-theme { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border-studio); border-radius: var(--radius-sm); color: var(--text-on-studio); font-size: .85rem; cursor: pointer; }
.kit-theme:has(input:checked) { border-color: var(--accent-gold-light); color: #fff; }
.kit-theme input { width: auto; accent-color: var(--accent-gold); }
.kit-theme .swatch { width: 14px; height: 14px; border: 1px solid rgb(255 255 255 / .25); border-radius: 2px; }
.kit-theme-sanctuary .swatch { background: linear-gradient(135deg, #1B4332 60%, #B68D40 60%); }
.kit-theme-gold .swatch { background: linear-gradient(135deg, #FAF9F5 60%, #B68D40 60%); }
.kit-theme-obsidian .swatch { background: linear-gradient(135deg, #0F1714 60%, #D4B06A 60%); }
.kit-form .btn { justify-self: start; }
@media (max-width: 820px) { .kit-fields { grid-template-columns: 1fr; } }

/* Sermon: transcript search, any passage becomes a 9:16 clip */
.transcript-toolbar { position: sticky; top: calc(var(--header-h) + 52px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 0; background: var(--bg-paper); }
.transcript-query { flex: 1 1 320px; }
.transcript-scope { display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.transcript-scope label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--bg-surface); font-size: .85rem; cursor: pointer; }
.transcript-scope label + label { border-left: 1px solid var(--border-hairline); }
.transcript-scope label:has(input:checked) { background: var(--accent-sanctuary-soft); color: var(--accent-sanctuary); font-weight: 600; }
.transcript-scope input { width: auto; accent-color: var(--accent-sanctuary); }
.transcript-count { min-width: 9ch; color: var(--accent-sanctuary); font-size: .9rem; font-weight: 600; text-align: right; }
.transcript-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 24px; }
.transcript-keywords > span { margin-right: 4px; color: var(--text-muted); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.keyword { padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--bg-surface); color: var(--text-secondary); font: 500 .82rem var(--font-sans); cursor: pointer; }
.keyword:hover { border-color: var(--accent-sanctuary); color: var(--accent-sanctuary); }
.keyword[aria-pressed="true"] { border-color: var(--accent-sanctuary); background: var(--accent-sanctuary); color: #fff; }
.excerpts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.excerpt { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border-hairline); }
.excerpt-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.excerpt-meta .mono { color: var(--text-primary); font-size: .82rem; text-decoration: none; }
.excerpt-meta .mono:hover { color: var(--accent-sanctuary); text-decoration: underline; }
.chapter-badge { padding: 2px 8px; border-left: 3px solid var(--c, var(--border-strong)); background: var(--bg-subtle); color: var(--text-secondary); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.chapter-badge.tl-sermon { color: var(--accent-sanctuary); }
.excerpt-text { margin: 0; max-width: 68ch; color: var(--text-primary); font-size: .95rem; line-height: 1.6; }
.excerpt-text mark { padding: 0 2px; border-radius: 2px; background: rgb(182 141 64 / .28); color: inherit; }
.excerpt .btn { white-space: nowrap; }
.transcript-empty { padding: 32px 0; color: var(--text-muted); text-align: center; }
@media (max-width: 820px) { .excerpt { grid-template-columns: 1fr; } .excerpt-meta { flex-direction: row; flex-wrap: wrap; align-items: center; } .excerpt .btn { justify-self: start; } .transcript-toolbar { top: var(--header-h); } }
