/* General pages only. Home, /links/ and Discipulado keep their own designs.
 * The hero is section 1. Counting rendered sections keeps optional bands and
 * repeaters alternating even when an editor hides a verse, album or FAQ.
 */
body.tsc-dark:not(.home) .tsc-general-page > .band:nth-child(even of section) {
    --tsc-text: #222222; --tsc-muted: #61615c; --tsc-card: #ffffff;
    --tsc-soft: #F3EBDD; --tsc-line: #ddd6ca; --tsc-link: #3d4c08;
    --ink-900: #1B1A18; --ink-700: #454540; --ink-600: #61615c;
    --surface-white: #ffffff; --surface-ivory: #FAF6ED; --surface-cream: #F3EBDD;
    --surface-sky: #F3EBDD; --surface-mint: #F3EBDD;
    background: var(--hv-ivory); color: var(--tsc-text);
}
body.tsc-dark:not(.home) .tsc-general-page > .band:nth-child(odd of section) {
    --tsc-text: #ffffff; --tsc-muted: #c4c4be; --tsc-card: #262522;
    --tsc-soft: #302f2a; --tsc-line: #54534c; --tsc-link: var(--tsc-accent);
    --ink-900: #ffffff; --ink-700: #deded7; --ink-600: #c4c4be;
    --surface-white: #262522; --surface-ivory: #302f2a; --surface-cream: #302f2a;
    --surface-sky: #302f2a; --surface-mint: #302f2a;
    background: var(--hv-dark); color: var(--tsc-text);
}
/* Resolve every old color token in the current band, including inline styles. */
body.tsc-dark:not(.home) .tsc-general-page > section {
    --stream-700: var(--tsc-link); --stream-500: var(--tsc-link);
    --plum-700: var(--tsc-link); --plum-500: var(--tsc-link);
    --gold-700: var(--tsc-link); --gold-500: var(--tsc-link); --gold-400: var(--tsc-accent);
    --border-light: var(--tsc-line); --terracotta: var(--tsc-link);
}
body.tsc-dark:not(.home):has(.tsc-general-page > .band:nth-last-child(1 of section):nth-child(even of section)) { --tsc-footer-edge: #FAF6ED; }
body.tsc-dark:not(.home):has(.tsc-general-page > .band:nth-last-child(1 of section):nth-child(odd of section)) { --tsc-footer-edge: #1B1A18; }

/* Keep the approved display face on headings; allow text and grid items to wrap. */
body.tsc-dark:not(.home) .tsc-general-page :is(h1, h2, h3, h4) { text-wrap: balance; }
body.tsc-dark:not(.home) .tsc-general-page :is(.container, .artes-grid > *, .leader-grid > *, .story-cards > *, .icon-cards > *, .pillar-item > *, .moment > *, .podcast-grid > *, .podcast-links a > span, .gracia-post > *, .obra > *, .doc-person > *, .team-member > div) { min-width: 0; }
body.tsc-dark:not(.home) .tsc-general-page :is(p, li, address, a, summary, strong) { overflow-wrap: anywhere; }
body.tsc-dark:not(.home) .tsc-general-page :is(.lead-text, .list-title, .vision-lead h3, .pillar-value, .team-group-title) { color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-general-page :is(.lead-text, .story-block p, .obra-body p, .gracia-post-text p, .doc-person-text p) { text-wrap: pretty; }
body.tsc-dark:not(.home) .tsc-general-page :is(.artes-frame, .obra-photo, .reto-poster) { border-radius: 24px; border-color: var(--tsc-line); background: var(--tsc-card); box-shadow: none; }
body.tsc-dark:not(.home) .tsc-general-page .artes-caption-badge { max-width: calc(100% - 48px); }
body.tsc-dark:not(.home) .tsc-general-page :is(.story-card, .step-body, .chapter-card, .pastor-card, .team-group, .episode-card) { box-shadow: none; }
body.tsc-dark:not(.home) .tsc-general-page :is(.welcome-note, .audio-card, .doc-intro, .team-group, .episode-card) {
    background: var(--tsc-card); color: var(--tsc-text); border: 1px solid var(--tsc-line); border-radius: 24px; box-shadow: none;
}
body.tsc-dark:not(.home) .tsc-general-page :is(.calendar-status-pill, .obra-status, .obra-placeholder, .podcast-host, .give-box) {
    background: var(--tsc-soft); color: var(--ink-900); border-color: var(--tsc-line); box-shadow: none;
}
body.tsc-dark:not(.home) .tsc-general-page :is(.obra-placeholder-icon, .team-icon) { background: var(--tsc-accent); color: #111111; box-shadow: none; }
body.tsc-dark:not(.home) .tsc-general-page .team-group { --team: var(--tsc-link); --team-bg: var(--tsc-soft); }
body.tsc-dark:not(.home) .tsc-general-page .team-icon { flex: none; }
body.tsc-dark:not(.home) .tsc-general-page .pillar-value { line-height: 1.3; }
body.tsc-dark:not(.home) .tsc-general-page .pillar-icon { flex: none; }

/* CTA panels are dark photo-card companions on both light and dark bands. */
body.tsc-dark:not(.home) .tsc-general-page .cta-panel {
    --tsc-text: #ffffff; --tsc-muted: #c4c4be; --tsc-card: #262522; --tsc-soft: #302f2a;
    --tsc-line: #54534c; --tsc-link: var(--tsc-accent);
    --ink-900: #ffffff; --ink-700: #deded7; --ink-600: #c4c4be;
    --stream-700: var(--tsc-accent); --gold-700: var(--tsc-accent);
    background: var(--hv-black);
}
body.tsc-dark:not(.home) .tsc-general-page .cta-panel .section-kicker { color: #c4c4be; }
body.tsc-dark:not(.home) .tsc-general-page .btn { white-space: normal; line-height: 1.35; text-align: center; }
body.tsc-dark:not(.home) .tsc-general-page .btn > svg { flex: none; }
body.tsc-dark:not(.home) .tsc-general-page .btn-stream { border-color: var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-general-page :is(.moment-link, .btn, .reto-tab):active { transform: translateY(1px); }
body.tsc-dark:not(.home) .tsc-general-page :is(a, button, summary):focus-visible { outline: 3px solid var(--tsc-link); outline-offset: 4px; }
body.tsc-dark:not(.home) .tsc-general-page .video-play { text-align: center; line-height: 1.4; }
body.tsc-dark:not(.home) .tsc-general-page .video-play svg { flex: none; }

/* A quote can land on a light band after optional content: inherit its palette. */
body.tsc-dark:not(.home) .tsc-general-page .versiculo-card {
    --ink-900: inherit; --tsc-muted: inherit;
    background: var(--tsc-card); border-color: var(--tsc-line);
}
body.tsc-dark:not(.home) .tsc-general-page .versiculo-card blockquote { color: var(--tsc-text); }
body.tsc-dark:not(.home) .tsc-general-page .versiculo-cite { color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-general-page > .band:nth-child(even of section) .versiculo-bg-soft { opacity: 0.07; }
body.tsc-dark:not(.home) .tsc-general-page a.bible-link {
    color: var(--tsc-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
body.tsc-dark:not(.home) .tsc-general-page a.bible-link:hover { text-decoration-thickness: 2px; }

/* Pastores: portrait cards and the long two-column biographies. */
body.tsc-dark:not(.home) .tsc-pastores :is(.leader-intro, .leader-note) { color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-pastores .pastor-photo { overflow: hidden; }
body.tsc-dark:not(.home) .tsc-pastores .pastor-photo img { width: 100%; object-fit: cover; }
body.tsc-dark:not(.home) .tsc-pastores .story-card h4 { font-size: 1rem; }
body.tsc-dark:not(.home) .tsc-pastores .pastor-ig:hover { background: var(--tsc-soft); }

/* Misión and Qué esperar: remove the old purple/blue and keep schedule legible. */
body.tsc-dark:not(.home) .tsc-mision .vision-lead p { color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-esperar .welcome-note svg { color: var(--tsc-link) !important; flex: none; }
body.tsc-dark:not(.home) .tsc-esperar .servicio-card { border-top-color: var(--tsc-accent); }
body.tsc-dark:not(.home) .tsc-esperar .servicio-card h3 { color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-esperar .schedule-text { color: var(--tsc-muted); }

/* Historia: preserve the long timeline, albums and all lightbox controls. */
body.tsc-dark:not(.home) .tsc-historia .chapter-card h3 { line-height: 1.3; }
body.tsc-dark:not(.home) .tsc-historia .chapter-card .chapter-year { color: #111111; }
body.tsc-dark:not(.home) .tsc-historia .chapter-card .chapter-tag { color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-historia .album-title { color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-historia .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tsc-dark:not(.home) .tsc-historia .moment-link { white-space: normal; }

/* Tributo: gold throughout the memorial content; the shared menu stays branded. */
body.tsc-dark:not(.home) .tsc-tributo { --tsc-accent: #f5b942; }
body.tsc-dark:not(.home) .tsc-tributo > .band:nth-child(even of section) { --tsc-link: #8a5607; }
body.tsc-dark:not(.home) .tsc-tributo .companion-life { background: #f5b942 !important; color: #1B1A18 !important; }
body.tsc-dark:not(.home) .tsc-tributo :is(.bio-name p, .companion-roles, .memorial-dates strong) { color: var(--tsc-link) !important; }
body.tsc-dark:not(.home) .tsc-tributo .memorial-photo-btn { border-color: var(--tsc-accent); box-shadow: none; }
body.tsc-dark:not(.home) .tsc-tributo :is(.btn-stream, .btn-outline)::after { background-color: #f5b942; }
body.tsc-dark:not(.home) .tsc-tributo .memory-card-text { min-width: 0; }

/* Ofrendas: copy target and action remain separate, with generous touch areas.
 * Church Center owns its iframe; intentionally no styles targeting that document.
 */
body.tsc-dark:not(.home) .tsc-ofrendas .give-copy button { min-height: 44px; background: var(--tsc-accent); color: #111111; border: 0; }
body.tsc-dark:not(.home) .tsc-ofrendas .give-copy button:hover { background: #ffffff; color: #111111; }
body.tsc-dark:not(.home) .tsc-ofrendas .give-copy code { min-width: 0; }
body.tsc-dark:not(.home) .tsc-ofrendas .give-box-label { color: var(--tsc-link) !important; }
body.tsc-dark:not(.home) .tsc-ofrendas .give-secure { color: var(--tsc-accent); }

/* Obras and Fundación: real media, neutral status chips and unfiltered logos. */
body.tsc-dark:not(.home) .tsc-obras .obra-placeholder { border-color: var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-gracia .sponsors-logos li { max-width: 100%; }
body.tsc-dark:not(.home) .tsc-gracia .sponsors-logos img { filter: none; opacity: 1; }
body.tsc-dark:not(.home) .tsc-gracia .sponsors-logos a { display: inline-flex; padding: 12px; background: #ffffff; border-radius: 16px; color: #222222; }

/* Confesión / Catecismo: open and closed accordions, answers and references. */
body.tsc-dark:not(.home) .tsc-confesion .doc-chapter[open] { border-color: var(--tsc-accent); }
body.tsc-dark:not(.home) .tsc-confesion .doc-chapter summary:hover { background: var(--tsc-soft); }
body.tsc-dark:not(.home) .tsc-general-page :is(.doc-refs, .qa-mark) { color: var(--tsc-link) !important; }
body.tsc-dark:not(.home) .tsc-catecismo .qa-item { scroll-margin-top: calc(var(--nav-safe) + 24px); }
body.tsc-dark:not(.home) .tsc-catecismo .audio-card { max-width: 100%; }

/* Podcast: only presentation; YouTube still loads through the existing click hook. */
body.tsc-dark:not(.home) .tsc-podcast .podcast-card-title span { color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-podcast .podcast-card p a { color: var(--tsc-link); text-decoration: underline; }
body.tsc-dark:not(.home) .tsc-podcast .episode-card .video-frame { border-radius: 0; }
body.tsc-dark:not(.home) .tsc-podcast .podcast-host { margin-top: 24px; }
body.tsc-dark:not(.home) .tsc-podcast .podcast-links a { border-color: var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-lideres .team-photo { border-radius: 16px; }

/* Reto: schedules, devotional cards, routines and meal plan share the band palette. */
body.tsc-dark:not(.home) .tsc-reto :is(.reto-notice, .reto-scripture, .reto-date-btn, .reto-panel, .reto-rank, .reto-phase, .reto-routine, .reto-meal, .reto-water, .reto-tips, .reto-grounding, .reto-banner) {
    background: var(--tsc-card); color: var(--tsc-text); border-color: var(--tsc-line); border-radius: 24px; box-shadow: none;
}
body.tsc-dark:not(.home) .tsc-reto :is(.reto-days li, .reto-ground-list li, .reto-meal header, .reto-triplet span) { background: var(--tsc-soft); border-color: var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-reto :is(.reto-notice-badge, .reto-rank-icon, .reto-date-icon) { background: var(--tsc-accent); color: #111111; }
body.tsc-dark:not(.home) .tsc-reto .reto-chip { background: var(--tsc-soft); color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-reto .reto-rank-days { font-family: 'Rammetto One', sans-serif; color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-reto .reto-tab { background: var(--tsc-card); color: var(--ink-900); border-color: var(--tsc-line); min-height: 48px; }
body.tsc-dark:not(.home) .tsc-reto .reto-tab[aria-pressed="true"] { background: var(--tsc-accent); border-color: var(--tsc-accent); color: #111111; }
body.tsc-dark:not(.home) .tsc-reto .reto-checks svg { color: var(--tsc-link); }
/* The chat has its own light bubbles within a dark section. */
body.tsc-dark:not(.home) .tsc-reto .reto-phone { --ink-900: #222222; --ink-600: #61615c; background: var(--hv-black); box-shadow: none; }
body.tsc-dark:not(.home) .tsc-reto .reto-phone-top { background: #302f2a; color: #ffffff; }
body.tsc-dark:not(.home) .tsc-reto .reto-phone-av { background: var(--tsc-accent); color: #111111; }

/* Inherited starter templates: style their existing markup, preserving all copy. */
body.tsc-dark:is(.page-template-default, .error404) main.es-main {
    --es-ink: #1B1A18; --es-ink-soft: #61615c; --es-bg: #FAF6ED;
    --es-accent: #3d4c08; --es-accent-ink: #ffffff; --es-line: #ddd6ca;
    --es-font-body: 'Onest', sans-serif; --es-font-head: 'Rammetto One', sans-serif;
    padding-top: var(--nav-safe); background: var(--hv-ivory); min-height: 65vh;
}
body.tsc-dark:is(.page-template-default, .error404) .es-hero--inner {
    margin: 0 10px; padding: 80px 24px; border-radius: 28px;
    background: var(--hv-dark); color: #ffffff; text-align: center;
}
body.tsc-dark:is(.page-template-default, .error404) :is(.es-hero__title, .es-hero__lede) { color: #ffffff; }
body.tsc-dark:is(.page-template-default, .error404) .es-hero__title { font-size: clamp(2rem, 5.8vw, 4.5rem); max-width: 22ch; margin-inline: auto; }
body.tsc-dark:is(.page-template-default, .error404) .es-eyebrow { color: #C8FF2E; }
body.tsc-dark:is(.page-template-default, .error404) :is(.es-container, .es-prose) { width: min(100% - 40px, 1180px); margin-inline: auto; overflow-wrap: anywhere; }
body.tsc-dark.page-template-default .es-prose { max-width: 760px; padding-block: 64px 80px; }
body.tsc-dark.page-template-default .es-prose :is(img, video, iframe) { max-width: 100%; border-radius: 16px; }
body.tsc-dark.page-template-default .es-prose a { color: #3d4c08; text-decoration: underline; text-underline-offset: 3px; }
body.tsc-dark.page-template-default .es-prose :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
body.tsc-dark:is(.page-template-default, .error404) .es-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; min-height: 48px;
    border-radius: 999px; background: #C8FF2E; color: #111111; font-weight: 800;
}
body.tsc-dark:is(.page-template-default, .error404) .es-btn::after { content: ''; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #111111 url('../img/dark-arrow.svg') center / 14px no-repeat; }
body.tsc-dark:is(.page-template-default, .error404) :is(a, button):focus-visible { outline: 3px solid #C8FF2E; outline-offset: 4px; }
body.tsc-dark.page-template-default .es-prose a:focus-visible { outline-color: #3d4c08; }
body.tsc-dark:is(.page-template-default, .error404) { --tsc-footer-edge: #FAF6ED; }
body.tsc-dark.error404 { --tsc-footer-edge: #ffffff; }
body.tsc-dark.error404 main.es-main { padding-bottom: 64px; background: #ffffff; }

@media (min-width: 640px) {
    body.tsc-dark:not(.home) .tsc-historia .album-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body.tsc-dark:not(.home) .tsc-general-page .section-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
    body.tsc-dark:not(.home) .tsc-general-page :is(.story-cards, .icon-cards, .team-groups, .episode-grid) { grid-template-columns: minmax(0, 1fr); }
    body.tsc-dark:not(.home) .tsc-general-page .story-card { padding: 24px 20px; }
    body.tsc-dark:not(.home) .tsc-general-page :is(.audio-card, .memory-card) { flex-wrap: wrap; padding: 20px; }
    body.tsc-dark:not(.home) .tsc-general-page .memory-card-face { width: 44px; height: 44px; }
    body.tsc-dark:not(.home) .tsc-general-page .memory-card-poster { width: 56px; height: 56px; }
    body.tsc-dark:not(.home) .tsc-general-page .memory-card-text { flex-basis: calc(100% - 64px); }
    body.tsc-dark:not(.home) .tsc-general-page .audio-card-body { flex-basis: 100%; }
    body.tsc-dark:not(.home) .tsc-general-page :is(.moment, .album) { padding: 16px 12px; }
    body.tsc-dark:not(.home) .tsc-historia .moment { flex-direction: column; }
    body.tsc-dark:not(.home) .tsc-historia .chapter-card { padding: 24px 16px; }
    body.tsc-dark:not(.home) .tsc-historia .chapter-card h3 { font-size: 1.2rem; }
    body.tsc-dark:not(.home) .tsc-historia .chapter-marker { width: 32px; height: 32px; }
    body.tsc-dark:not(.home) .tsc-historia .chapters::before { left: 15px; }
    body.tsc-dark:not(.home) .tsc-historia .chapter { gap: 8px; }
    body.tsc-dark:not(.home) .tsc-general-page .doc-chapter summary { padding: 16px; gap: 12px; }
    body.tsc-dark:not(.home) .tsc-general-page .doc-chapter-title { min-width: 0; }
    body.tsc-dark:not(.home) .tsc-reto :is(.reto-panel, .reto-routine, .reto-tips, .reto-grounding, .reto-scripture, .reto-notice) { padding: 24px 20px; }
    body.tsc-dark:not(.home) .tsc-reto .reto-timeline .step-icon { width: 54px; height: 54px; }
    body.tsc-dark:not(.home) .tsc-reto .reto-timeline::before { left: 26px; }
    body.tsc-dark:not(.home) .tsc-reto :is(.reto-slot-meta, .reto-day-head, .reto-meal header) { flex-wrap: wrap; }
    body.tsc-dark:not(.home) .tsc-reto :is(.reto-iv-name, .reto-iv-time) { display: block; width: 100%; text-align: left; }
    body.tsc-dark:not(.home) .tsc-reto .reto-triplet { grid-template-columns: minmax(0, 1fr); }
    body.tsc-dark:is(.page-template-default, .error404) .es-hero--inner { padding: 64px 8px; border-radius: 22px; }
    body.tsc-dark.page-template-default .es-prose :is(.alignwide, .alignfull) { width: 100%; margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.tsc-dark:not(.home) .tsc-general-page :is(a, button):is(:hover, :active) { transform: none; }
    body.tsc-dark:not(.home) .tsc-general-page :is(.pastor-card, .pastor-photo img, .album-item img, .obra-photo img) { transform: none !important; }
}
/* dark.css supplies the shared print reset; do not recolor bands when printing. */
@media print {
    body.tsc-dark:not(.home) .tsc-general-page > .band { background: transparent; color: #000000; }
    body.tsc-dark:is(.page-template-default, .error404) main.es-main { padding: 0; }
}

/* Estatutos de la Misión (2026-11-17): cover, index by part and long chapters to read.
 * Lists carry their own labels (A., 1., i., –), so they show no bullets; levels indent. */
body.tsc-dark:not(.home) .tsc-estatutos .statute-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-lang { display: inline-flex; align-items: center; gap: 8px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-cover { max-width: 860px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-org { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 6px; font-family: 'Rammetto One', sans-serif; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.3; text-transform: uppercase; color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-org svg { flex: none; color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-place { margin: 0 0 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; text-align: left; }
@media (min-width: 700px) { body.tsc-dark:not(.home) .tsc-estatutos .statute-signers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--tsc-soft); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers svg { flex: none; margin-top: 3px; color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers span { display: grid; gap: 2px; min-width: 0; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers strong { color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-signers em { font-size: 0.9rem; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-edition { margin: 0 0 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-edition a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tsc-line); color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--tsc-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-edition a:hover { background: var(--tsc-accent); border-color: var(--tsc-accent); color: #111111; text-decoration: none; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-edition svg { flex: none; }

body.tsc-dark:not(.home) .tsc-estatutos .statute-numeral { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--tsc-accent); color: #111111; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; }
body.tsc-dark:not(.home) .tsc-estatutos .section-kicker .statute-numeral { margin-right: 4px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc { display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 760px) { body.tsc-dark:not(.home) .tsc-estatutos .statute-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.tsc-dark:not(.home) .tsc-estatutos .statute-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-part { padding: 20px; border-radius: 20px; border: 1px solid var(--tsc-line); background: var(--tsc-card); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-title { display: block; margin-bottom: 8px; font-family: 'Rammetto One', sans-serif; font-size: 1rem; line-height: 1.35; text-transform: uppercase; color: var(--ink-900); text-decoration: none; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-title:hover { color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-chapters { display: grid; gap: 4px; margin: 0; padding-left: 22px; font-size: 0.86rem; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-chapters.is-intro { padding-left: 0; list-style: none; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-chapters.is-intro a { font-family: 'Rammetto One', sans-serif; font-size: 1rem; text-transform: uppercase; color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-chapters a { display: inline; padding: 3px 0; color: var(--ink-700); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.03em; line-height: 1.45; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-toc-chapters a:hover { color: var(--tsc-link); text-decoration: underline; }

body.tsc-dark:not(.home) .tsc-estatutos .statute-part .section-title { font-size: clamp(1.6rem, 4vw, 2.6rem); }
body.tsc-dark:not(.home) .tsc-estatutos .doc-chapter { scroll-margin-top: calc(var(--nav-safe, 90px) + 16px); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-part { scroll-margin-top: var(--nav-safe, 90px); }
body.tsc-dark:not(.home) .tsc-estatutos .doc-chapter-title { text-transform: uppercase; letter-spacing: 0.01em; }
body.tsc-dark:not(.home) .tsc-estatutos .doc-chapter[open] { border-color: var(--tsc-accent); }
body.tsc-dark:not(.home) .tsc-estatutos .doc-chapter summary:hover { background: var(--tsc-soft); }

/* The chapter text. */
body.tsc-dark:not(.home) .tsc-estatutos .statute-body { padding: 4px 34px 30px 78px; font-size: 1.02rem; line-height: 1.75; color: var(--ink-700); max-width: 860px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body p { margin: 0 0 14px; color: var(--ink-700); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body strong { color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body :is(h3, h4) { margin: 30px 0 12px; color: var(--ink-900); line-height: 1.3; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body h3 { font-family: 'Rammetto One', sans-serif; font-size: 1.05rem; font-weight: 400; text-transform: uppercase; padding-top: 18px; border-top: 1px solid var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body h4 { font-size: 1rem; font-weight: 800; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body > :first-child { margin-top: 0; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body ul { margin: 0 0 14px; padding: 0; list-style: none; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body ul ul { margin: 6px 0 4px; padding-left: 26px; border-left: 2px solid var(--tsc-line); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body li { margin: 0 0 8px; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body li > p { margin: 6px 0; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body li > strong:first-child { margin-right: 4px; color: var(--tsc-link); }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body .md-verse { margin: 14px 0 18px; padding: 16px 20px; font-size: 0.98rem; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body .md-verse p { margin: 0; color: #1B1A18; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body .md-verse strong { color: #1B1A18; }
body.tsc-dark:not(.home) .tsc-estatutos .statute-body a.bible-link { color: inherit; text-decoration: underline; text-decoration-color: var(--tsc-accent); }
@media (max-width: 700px) {
    body.tsc-dark:not(.home) .tsc-estatutos .statute-body { padding: 0 16px 22px; font-size: 1rem; }
    body.tsc-dark:not(.home) .tsc-estatutos .statute-body ul ul { padding-left: 14px; }
}
@media print {
    body.tsc-dark:not(.home) .tsc-estatutos details.statute-chapter > .statute-body { display: block; }
    body.tsc-dark:not(.home) .tsc-estatutos :is(.statute-toc, .statute-hero-actions) { display: none; }
}

/* Contact form on Qué Esperar (inc/contact.php, 1.22.0): a white card on the band (dark on this
 * page); the card sets its own dark text colors so labels never take the band's white. */
body.tsc-dark:not(.home) .tsc-form {
    max-width: 760px; margin: 0 auto; padding: 32px; display: grid; gap: 18px;
    --ink-900: #1B1A18; --tsc-muted: #61615c; --tsc-line: #e6e0d4;
    background: #ffffff; color: #1B1A18; border: 1px solid var(--tsc-line); border-radius: 22px;
}
body.tsc-dark:not(.home) .tsc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
body.tsc-dark:not(.home) .tsc-field { margin: 0; display: grid; gap: 8px; min-width: 0; }
body.tsc-dark:not(.home) .tsc-field label { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
body.tsc-dark:not(.home) .tsc-field label span { color: #6a7d12; }
body.tsc-dark:not(.home) .tsc-field :is(input, textarea) {
    width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 1rem; color: #1B1A18;
    background: #FAF6ED; border: 1.5px solid #d9d2c3; border-radius: 14px;
}
body.tsc-dark:not(.home) .tsc-field textarea { min-height: 140px; resize: vertical; }
body.tsc-dark:not(.home) .tsc-field :is(input, textarea):focus { border-color: #1B1A18; background: #ffffff; }
body.tsc-dark:not(.home) .tsc-field :is(input, textarea):focus-visible { outline: 3px solid #6a7d12; outline-offset: 2px; }
body.tsc-dark:not(.home) .tsc-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
body.tsc-dark:not(.home) .tsc-form-fine { margin: 0; flex: 1 1 260px; font-size: 0.88rem; color: var(--tsc-muted); }
body.tsc-dark:not(.home) .tsc-form-fine a { color: var(--ink-900); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.tsc-dark:not(.home) .tsc-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.tsc-dark:not(.home) .tsc-form-notice {
    margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
    border-radius: 14px; font-weight: 600; line-height: 1.5;
}
body.tsc-dark:not(.home) .tsc-form-notice svg { flex: none; margin-top: 2px; }
body.tsc-dark:not(.home) .tsc-form-notice--ok { background: #1B1A18; color: #ffffff; }
body.tsc-dark:not(.home) .tsc-form-notice--ok svg { color: var(--hv-lime); }
body.tsc-dark:not(.home) .tsc-form-notice--err { background: #fdecea; color: #8a1c12; border: 1px solid #f3b8b1; }
body.tsc-dark:not(.home) .tsc-form-notice:focus { outline: none; }
@media (max-width: 640px) {
    body.tsc-dark:not(.home) .tsc-form { padding: 22px 18px; }
    body.tsc-dark:not(.home) .tsc-form-row { grid-template-columns: 1fr; }
    body.tsc-dark:not(.home) .tsc-form-foot .btn { width: 100%; justify-content: center; }
}

/* YouTube playlist with an episode list (Nuestros Pastores, "La vida de los pastores Sandoval") */
.yt-playlist .video-frame { margin-top: 22px; }
.yt-episodes-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tsc-muted); }
.yt-episodes-label svg { color: var(--tsc-accent); flex: none; }
.yt-episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yt-ep {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 14px 8px 8px; text-align: left;
    border: 1px solid var(--tsc-line); border-radius: 16px; background: var(--tsc-card); color: var(--tsc-text);
    font: inherit; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.yt-ep:hover { border-color: rgba(200, 255, 46, 0.55); background: var(--tsc-soft); }
.yt-ep:focus-visible { outline: 3px solid var(--tsc-accent); outline-offset: 2px; }
.yt-ep.is-current { border-color: var(--tsc-accent); background: rgba(200, 255, 46, 0.08); }
.yt-ep-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--hv-black); }
.yt-ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-ep-icon {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--tsc-accent); color: #111111; padding-left: 2px;
}
.yt-ep-text { display: grid; gap: 3px; min-width: 0; }
.yt-ep-num { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tsc-accent); }
.yt-ep-now { display: none; }
.yt-playlist.is-playing .yt-ep.is-current .yt-ep-now { display: inline; }
.yt-playlist.is-playing .yt-ep.is-current .yt-ep-icon { display: none; }
.yt-ep-title { font-weight: 700; line-height: 1.3; }
@media (max-width: 480px) {
    .yt-ep { gap: 12px; padding-right: 10px; }
    .yt-ep-thumb { width: 104px; }
    .yt-ep-title { font-size: 0.95rem; }
}
