/* Klema church sites. Values come from tokens.css; themes override tokens. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: var(--text-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: var(--space-2) var(--space-3-5); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 940px; }
.container--wide { max-width: 1180px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: var(--text-xl); color: var(--ink-soft); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2-5); }
.link { font-weight: 600; text-decoration: none; color: var(--brand); }
.link:hover { text-decoration: underline; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: var(--btn-radius); font-weight: 600; font-size: var(--text-md); text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; cursor: pointer; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--sm { padding: .6em 1.1em; font-size: var(--text-md); }
.btn--lg { padding: 1em 2em; font-size: var(--text-base); }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-2-5); text-decoration: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.brand__mark svg { width: 22px; height: 22px; }
.brand__logo { height: 40px; width: auto; }
.brand__name { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-lg); }
.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.site-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: var(--text-md); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--ink); background: var(--tint); }
.site-nav a, .site-nav__cta { white-space: nowrap; }
.site-nav__cta { margin-left: var(--space-2-5); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: var(--space-2-5); }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: var(--space-1-5) 0; border-radius: 2px; transition: .2s; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--space-3) var(--space-6) var(--space-5); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav__cta { margin: var(--space-2) 0 0; }
}

/* Language switcher (site/languages.html). It looks the same in every theme, so it
   outranks the themes' menu-link rules (some use !important). */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin-left: var(--space-2); flex: none; }
html .site-header .lang-switch a { font-family: var(--font-body); font-size: var(--text-xs) !important; font-weight: 700 !important; letter-spacing: .06em !important; line-height: 1 !important; text-transform: uppercase; padding: var(--space-1-5) var(--space-2) !important; border-radius: 999px !important; color: var(--muted) !important; background: none !important; text-decoration: none; }
html .site-header .lang-switch a:hover { color: var(--ink) !important; background: var(--tint) !important; }
html .site-header .lang-switch a.is-current { color: var(--on-brand) !important; background: var(--brand) !important; }
@media (max-width: 920px) {
  .site-nav .lang-switch { align-self: flex-start; margin: var(--space-3) 0 0 var(--space-3); }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.block + .block .section:not(.section--tint) { padding-top: var(--section-y-next); }
.section-title { font-size: var(--text-h2); }
.section-intro { color: var(--ink-soft); max-width: 640px; margin: calc(-1 * var(--space-1)) auto var(--space-10); font-size: var(--text-lg); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-7); flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.grid { display: grid; gap: var(--space-7); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Hero image behind the detail pages' heads (sermon, event, ministry) */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* Page heroes (templates/hero/; every theme draws its own three). High impact
   takes nearly the whole screen, Medium about half, Low about a third.
   Themes set --header-h to their header's height. */
:root { --header-h: 73px; }
.phero { position: relative; isolation: isolate; overflow: hidden; }
.phero--high { min-height: max(560px, calc(100svh - var(--header-h))); }
.phero--medium { min-height: max(400px, 52svh); }
.phero--low { min-height: max(260px, 34svh); }
.phero h1 { margin-top: 0; }
.hero__actions { display: flex; gap: var(--space-3-5); flex-wrap: wrap; margin-top: var(--space-7); }

/* Warm · High: words on a warm tint beside the photo in a rounded pebble */
.warm-high { display: flex; align-items: center; padding: var(--space-12) 0 var(--space-20); background: linear-gradient(180deg, var(--paper), var(--tint)); }
.warm-high__glow { position: absolute; z-index: -1; right: -16vw; top: -24vw; width: 64vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent); }
.warm-high__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.warm-high__title { font-size: var(--text-display); line-height: 1.02; max-width: 13ch; text-wrap: balance; margin-bottom: var(--space-5); }
.warm-high__sub { font-size: var(--text-lead); color: var(--ink-soft); max-width: 30em; margin: 0; }
.warm-high__media { position: relative; isolation: isolate; justify-self: end; }
.warm-pebble { position: relative; isolation: isolate; overflow: hidden; height: clamp(360px, calc(100svh - var(--header-h) - 180px), 660px); aspect-ratio: 5 / 6; max-width: 100%; border-radius: 58% 42% 46% 54% / 46% 50% 50% 54%; background: var(--tint); box-shadow: 0 36px 70px -28px color-mix(in srgb, var(--brand) 55%, transparent); animation: warm-morph 16s ease-in-out infinite; }
.warm-pebble img, .warm-pebble__empty, .warm-pebble .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.warm-pebble .hero-video { z-index: 1; }
.warm-pebble .hero-video__toggle { right: 50%; transform: translateX(50%); }
.warm-pebble__empty { display: grid; place-items: center; background: linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--accent) 70%, var(--brand))); color: rgba(255,255,255,.92); font-family: var(--font-heading); font-size: clamp(5rem, 12vw, 9rem); }
@keyframes warm-morph { 50% { border-radius: 46% 54% 56% 44% / 54% 44% 56% 46%; } }
.warm-high__dots { position: absolute; z-index: -1; left: -34px; top: 6%; width: 132px; height: 132px; background-image: radial-gradient(var(--accent) 2px, transparent 2.6px); background-size: 16px 16px; opacity: .75; }
.warm-join { position: absolute; z-index: 2; left: -40px; bottom: 10%; display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: var(--space-2-5) var(--space-6) var(--space-2-5) var(--space-2-5); border-radius: var(--radius-pill); background: var(--surface); box-shadow: 0 2px 4px rgba(20, 20, 30, .06), 0 18px 40px rgba(20, 20, 30, .16); animation: warm-float 6s ease-in-out infinite; }
.warm-join__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.warm-join small { display: block; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.warm-join strong { display: block; font-size: var(--text-base); white-space: nowrap; }
@keyframes warm-float { 50% { translate: 0 -8px; } }
.warm-high__scroll { position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); background: var(--surface); animation: warm-bob 2.6s ease-in-out infinite; }
.warm-high__scroll:hover { color: var(--brand); border-color: var(--brand); }
@keyframes warm-bob { 50% { translate: 0 6px; } }

/* Warm · Medium: a tilted photo card, the words beside it */
.warm-medium { display: flex; align-items: center; padding: var(--space-12) 0; background: linear-gradient(180deg, var(--paper), var(--tint)); }
.warm-medium__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-16); align-items: center; }
.warm-medium__title { font-size: var(--text-h1); line-height: 1.05; text-wrap: balance; margin-bottom: var(--space-4); }
.warm-mark { padding: 0 .06em; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 50%, transparent) 60% 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.warm-medium__sub { font-size: var(--text-lg); color: var(--ink-soft); max-width: 32em; margin: 0; }
.warm-medium__media { position: relative; justify-self: center; width: min(100%, 420px); }
.warm-medium__card { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 8px solid var(--surface); box-shadow: 0 2px 4px rgba(20, 20, 30, .06), 0 24px 48px rgba(20, 20, 30, .16); transform: rotate(-2.5deg); }
.warm-medium__card img, .warm-medium__placeholder, .warm-medium .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.warm-medium .hero-video { z-index: 1; }
.warm-medium__card--back { position: absolute; inset: 0; z-index: 0; transform: rotate(5deg) translate(5%, 4%); background: color-mix(in srgb, var(--accent) 35%, var(--surface)); border-color: transparent; box-shadow: none; }
.warm-medium__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--accent) 70%, var(--brand))); color: rgba(255,255,255,.92); font-family: var(--font-heading); font-size: var(--text-5xl); }

/* Warm · Low: a soft band, breadcrumb, title over a hand-drawn line, photo pebble */
.warm-low { display: flex; align-items: center; padding: var(--space-12) 0; background: var(--tint); }
.warm-low::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -70%; width: 56%; height: 200%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent); }
.warm-low__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.warm-low__text { min-width: 0; max-width: 760px; }
.warm-crumb { display: flex; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-3); }
.warm-crumb a { color: inherit; text-decoration: none; }
.warm-crumb a:hover { color: var(--brand); }
.warm-low__title { font-size: var(--text-h1); max-width: 18ch; text-wrap: balance; margin: 0; }
.warm-squiggle { display: block; width: 120px; height: 14px; color: var(--accent); margin: var(--space-3) 0 var(--space-4); }
.warm-low__sub { font-size: var(--text-lg); color: var(--ink-soft); max-width: 36em; margin: 0; }
.warm-low__pebble { flex: none; width: clamp(150px, 18vw, 240px); aspect-ratio: 1; object-fit: cover; border-radius: 58% 42% 46% 54% / 46% 50% 50% 54%; border: 6px solid var(--surface); box-shadow: 0 20px 40px -18px rgba(20, 20, 30, .35); rotate: 5deg; }
.warm-low__pebble.is-empty { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }

@media (max-width: 860px) {
  .phero--high { min-height: max(520px, calc(92svh - var(--header-h))); }
  .phero--medium, .phero--low { min-height: 0; }
  .warm-high { padding: var(--space-10) 0 var(--space-20); }
  .warm-high__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .warm-high__media { justify-self: center; width: min(78%, 320px); }
  .warm-high .btn--lg { padding: .85em 1.5em; font-size: var(--text-md); }
  .warm-pebble { height: auto; width: 100%; aspect-ratio: 1; }
  .warm-join { left: -16px; bottom: 4%; }
  .warm-high__scroll { display: none; }
  .warm-medium { padding: var(--space-10) 0 var(--space-14); }
  .warm-medium__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .warm-medium__text { order: -1; }
  .warm-medium__media { width: min(86%, 380px); }
  .warm-low { padding: var(--space-12) 0; }
  .warm-low__row { flex-direction: column-reverse; align-items: flex-start; gap: var(--space-6); }
  .warm-low__pebble { width: 112px; border-width: 4px; }
}
@media (max-width: 560px) { .warm-low__pebble:not(.is-empty) { display: none; } }
@media (prefers-reduced-motion: reduce) { .warm-pebble, .warm-join, .warm-high__scroll { animation: none; } }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid rgba(0,0,0,.04); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,20,30,.05), 0 18px 40px rgba(20,20,30,.12); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 25%, white)); }
.card__body { padding: var(--space-6) var(--space-6) var(--space-6); flex: 1; }
.card__body p, .card__body .rt-inline { color: var(--ink-soft); margin-bottom: .8em; }
.card__title { font-size: var(--text-xl); margin-bottom: .35em; }
.card__meta { color: var(--muted); font-size: var(--text-md); }

/* Grid block (templates/blocks/grid.html): cells on 12 columns. Each cell's
   width and height in tracks come from the layout as custom properties, with
   their own values for tablets; phones get one cell per row. */
.kgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--space-7); }
.kgrid--start { align-items: start; }
.kgrid--center { align-items: center; }
.kgrid__cell { --cell-span: 4; --cell-rows: 1; --cell-span-t: 6; --cell-rows-t: 1; grid-column: span var(--cell-span) / span var(--cell-span); grid-row: span var(--cell-rows) / span var(--cell-rows); min-width: 0; display: flex; flex-direction: column; }
.kgrid__cell > * { flex: 1 1 auto; }
.kgrid--start .kgrid__cell > *, .kgrid--center .kgrid__cell > * { flex: none; }
.kgrid__empty { grid-column: 1 / -1; margin: 0; }
.kgrid__intro { margin-left: 0; }
.kgrid-panel { background: var(--tint); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-14)); }
@media (max-width: 1024px) { .kgrid__cell { grid-column: span var(--cell-span-t) / span var(--cell-span-t); grid-row: span var(--cell-rows-t) / span var(--cell-rows-t); } }
@media (max-width: 640px) { .kgrid { gap: var(--space-5); } .kgrid__cell { grid-column: 1 / -1; grid-row: auto; } }
/* Sections built from elements (src/elements.rs, templates/elements/): they
   stack with a gap; Columns use the grid above (.kgrid); a Group stacks too. */
.kstack { display: flex; flex-direction: column; gap: var(--space-5); }
.kstack > .el { min-width: 0; }
.el > :first-child { margin-top: 0; }
.el > :last-child { margin-bottom: 0; }
.el-heading { margin: 0; }
.el-heading--h4 { font-size: var(--text-xl); }
.el-eyebrow { margin-bottom: var(--space-2); }
.el-text > :first-child { margin-top: 0; }
.el-text > :last-child { margin-bottom: 0; }
.el-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.el-scripture { margin: 0 auto; }
.el-spacer--s { height: var(--space-4); }
.el-spacer--m { height: var(--space-8); }
.el-spacer--l { height: var(--space-14); }
.el-spacer--xl { height: var(--space-24); }
.el-divider { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.el-divider--short { width: var(--space-16); border-top-width: 3px; border-top-color: var(--accent); }
.kgrid__cell > .kgroup { flex: 1 1 auto; }
.kgroup--center { justify-content: center; }
.kgroup--end { justify-content: flex-end; }
.kgroup--panel { background: var(--tint); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.kgroup--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); }
.kgroup .el-buttons .btn { align-self: flex-start; }
.ksection__empty, .el-empty { margin: 0; padding: var(--space-4); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: var(--text-sm); text-align: center; }
.block.s-align-center .ksection__body { text-align: center; }
.block.s-align-right .ksection__body { text-align: right; }
.block.s-align-center .el-buttons { justify-content: center; }
.block.s-align-right .el-buttons { justify-content: flex-end; }
.block.s-align-center .ksection__body .lead { margin-left: auto; margin-right: auto; }
.block.s-tone-light .el-buttons .btn--primary { background: #fff; color: var(--brand-ink); border-color: #fff; }
.block.s-bg-brand.s-tone-dark .el-buttons .btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.block.s-bg-brand.s-tone-dark .el-buttons .btn--outline { border-color: var(--ink); color: var(--ink); }
.block.s-tone-light .el-buttons .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.block.s-tone-light .el-divider { border-top-color: rgba(255,255,255,.35); }
.kcell--text { display: flex; flex-direction: column; gap: var(--space-3); }
.kcell__heading { font-size: var(--text-2xl); margin: 0; }
.kcell__body > :last-child { margin-bottom: 0; }
.kcell__btn { align-self: flex-start; margin-top: var(--space-2); }
.kcell--media { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.kcell__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.kcell--square .kcell__img { aspect-ratio: 1; }
.kcell--portrait .kcell__img { aspect-ratio: 4 / 5; }
.kcell--natural .kcell__img { aspect-ratio: auto; }
.kcell--fill .kcell__img { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; height: 100%; }
.kcell__img.is-empty { background: var(--tint); min-height: 180px; }
.kcell__video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.kcell__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kcell--media figcaption { font-size: var(--text-sm); color: var(--muted); }
.kcell--quote { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: var(--space-4) 0; }
.kcell__mark { width: 36px; height: 36px; color: var(--brand); }
.kcell--quote blockquote { margin: 0; font-family: var(--font-heading); font-size: var(--text-3xl); line-height: 1.3; color: var(--ink); text-wrap: balance; }
.kcell--quote figcaption { font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em; color: var(--brand-ink); }
.kcell__none { margin: 0; }
.kcard { height: 100%; }
.kcard__body { display: flex; flex-direction: column; }
.kcard__eyebrow { margin-bottom: var(--space-2); }
.kcard__text { margin-bottom: var(--space-4); }
.kcard__body > .kcard__btn { align-self: flex-start; margin-top: auto; }
.kcard .is-empty { background: var(--tint); min-height: 160px; }
.kcard__media img { transition: transform .5s ease; }
a.kcard:hover .kcard__media img { transform: scale(1.04); }
.kcard--overlay { position: relative; isolation: isolate; min-height: 340px; justify-content: flex-end; background: var(--dark); color: #fff; }
.kcard--overlay .kcard__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; background: none; }
.kcard--overlay .kcard__media img { width: 100%; height: 100%; object-fit: cover; }
.kcard--overlay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78)); }
.kcard--overlay .kcard__body { flex: none; --ink: #fff; --ink-soft: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .7); color: #fff; }
.kcard--overlay :is(.card__title, .eyebrow) { color: #fff; }
.kcard--portrait .kcard__body { flex: none; padding-bottom: var(--space-4); }
.kcard--portrait .kcard__title { font-size: var(--text-4xl); line-height: 1; }
.kcard__media--portrait { position: relative; margin-top: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.kcard__media--portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcard__media--portrait .kcard__btn { position: absolute; right: var(--space-4); bottom: var(--space-4); }
.kcard--portrait:not(.has-image) .kcard__media--portrait { aspect-ratio: auto; padding: 0 var(--space-6) var(--space-6); }
.kcard--portrait:not(.has-image) .kcard__media--portrait .kcard__btn { position: static; }
.kcard__play { position: absolute; left: var(--space-3); bottom: var(--space-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.kcard__play svg { width: 18px; height: 18px; margin-left: 2px; }
.kcard__date { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-4) var(--space-5); color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); }
.kcard__date strong { font-family: var(--font-heading); font-size: var(--text-5xl); line-height: 1; }
.kcard__date span { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; }
.play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.play svg { width: 20px; height: 20px; margin-left: 2px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split--right .split__media { order: 2; }
.split__media img, .split__placeholder { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.event-detail { align-items: start; grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) { .split, .event-detail { grid-template-columns: 1fr; gap: var(--space-10); } .split--right .split__media { order: 0; } }

/* Prose */
.prose { font-size: var(--text-base); color: var(--ink-soft); }
.prose h2 { font-size: var(--text-4xl); color: var(--ink); margin-top: 1.4em; }
.prose h3 { font-size: var(--text-2xl); color: var(--ink); margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-family: var(--font-heading); font-size: var(--text-xl); color: var(--ink); }
.prose a { color: var(--brand); }
.prose strong { color: var(--ink); }

/* Service times */
.times-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); }
.time-card { background: var(--surface); border-radius: var(--radius); padding: var(--space-7) var(--space-8); min-width: 210px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.time-card__day { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.time-card__time { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 600; color: var(--brand-ink); margin: var(--space-1-5) 0 2px; }
.time-card__label { color: var(--ink-soft); }
.times-address { margin-top: var(--space-8); }

/* CTA */
.cta { padding: var(--space-18) 0; }
.cta--brand { background: var(--brand); color: var(--on-brand); }
.cta--dark { background: var(--dark); color: #fff; }
.cta--light { background: var(--brand-soft); color: var(--ink); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta__title { font-size: var(--text-h3); margin-bottom: .25em; }
.cta p, .cta .rt-inline { margin: 0; opacity: .9; font-size: var(--text-lg); }
.cta .rt-inline p { opacity: 1; }

/* Scripture */
.scripture { text-align: center; margin: 0 auto; }
.scripture__mark { width: 44px; height: 44px; color: var(--accent); margin: 0 auto var(--space-3-5); }
.scripture blockquote { margin: 0 0 var(--space-5); font-family: var(--font-heading); font-size: var(--text-quote); line-height: 1.35; color: var(--ink); text-wrap: balance; }
.scripture figcaption { font-weight: 600; letter-spacing: .04em; color: var(--brand); }

/* Events */
.event-list { display: grid; gap: var(--space-3-5); }
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center; background: var(--surface); border-radius: var(--radius); padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.event-row:hover { transform: translateX(4px); }
.event-row h3 { font-size: var(--text-xl); margin: 0 0 var(--space-1); }
.event-row p { margin: var(--space-1-5) 0 0; color: var(--ink-soft); font-size: var(--text-md); }
.event-row__meta { color: var(--muted); font-size: var(--text-md); }
.event-row__arrow { font-size: var(--text-2xl); color: var(--brand); }
.datebadge { width: 68px; height: 72px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.datebadge__mon { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; }
.datebadge__day { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 600; line-height: 1; }
@media (max-width: 600px) { .event-row { grid-template-columns: auto 1fr; } .event-row__arrow { display: none; } }

/* People */
.person { text-align: center; }
.person__photo { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-4); box-shadow: var(--shadow); }
.person__photo--initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; font-family: var(--font-heading); font-size: var(--text-5xl); font-weight: 600; }
.person__name { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; }
.person__role { color: var(--accent); font-weight: 600; font-size: var(--text-md); margin-bottom: var(--space-2); }
.person__bio { color: var(--ink-soft); font-size: var(--text-md); }
.speaker { margin-top: var(--space-12); padding-top: var(--space-10); border-top: 1px solid var(--line); }
.speaker .person { display: grid; grid-template-columns: 96px 1fr; text-align: left; column-gap: var(--space-5); align-items: center; }
.speaker .person__photo { width: 96px; height: 96px; margin: 0; grid-row: span 3; font-size: var(--text-4xl); }

/* Gallery & video */
.gallery { columns: 3 260px; column-gap: var(--space-4); }
.gallery figure { margin: 0 0 var(--space-4); break-inside: avoid; }
.gallery img { border-radius: var(--radius-md); width: 100%; }
.gallery figcaption { font-size: var(--text-md); color: var(--muted); margin-top: var(--space-1-5); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-bottom: var(--space-7); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--empty { display: grid; place-items: center; color: #aaa; background: #1b1c22; }
.audio { display: flex; align-items: center; gap: var(--space-4); background: var(--tint); border-radius: var(--radius-md); padding: var(--space-3-5) var(--space-4); margin-bottom: var(--space-7); font-weight: 600; }
.audio audio { flex: 1; }

/* Giving */
.giving { padding: var(--space-24) 0; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--brand) 85%, black), var(--brand)); color: var(--on-brand); text-align: center; }
.giving__icon { width: 44px; height: 44px; color: var(--accent); margin: 0 auto var(--space-4); }
.giving .rt-inline { font-size: var(--text-lg); opacity: .9; max-width: 560px; margin: 0 auto var(--space-7); }
.giving--funds .rt-inline { margin-bottom: 0; }
.giving__hint { margin: var(--space-4) auto 0; font-size: var(--text-md); opacity: .8; }

/* Giving: each fund with a button, its QR code and bank details (site/give_parts.html).
   The cards keep the theme's own colours wherever they sit (a dark band, a
   dark panel, a section style), so QR codes scan and IBANs read well. */
:root { --give-ink: var(--ink); --give-ink-soft: var(--ink-soft); --give-muted: var(--muted); --give-line: var(--line); --give-surface: var(--surface); --give-paper: var(--paper); }
.give-funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--space-5); margin-top: var(--space-10); text-align: left; }
.give-funds--one { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
.give-page .give-funds { margin-top: 0; }
.page-head .lead.rt-inline > :last-child { margin-bottom: 0; }
.give-fund { --ink: var(--give-ink); --ink-soft: var(--give-ink-soft); --muted: var(--give-muted); --line: var(--give-line); --surface: var(--give-surface); --paper: var(--give-paper);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-4) var(--space-6); padding: var(--space-6); border-radius: var(--radius); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.give-fund__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.give-fund__main:only-child, .give-fund__main:has(+ .give-bank) { grid-column: 1 / -1; }
.give-fund__name { margin: 0; font-size: var(--text-2xl); color: var(--ink); }
.give-fund__desc, .give-fund__note { margin: 0; color: var(--ink-soft); }
.give-fund__btn { margin-top: var(--space-1); }
.give-fund__btn .icon { width: 18px; height: 18px; }
.give-fund__qr { margin: 0; text-align: center; }
.give-fund__qr .qr { display: block; width: 128px; height: auto; margin-inline: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.give-fund__qr figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.give-bank { grid-column: 1 / -1; display: grid; gap: var(--space-1-5); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--text-md); }
.give-bank > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.give-bank dt { color: var(--muted); }
.give-bank dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.give-bank dd:has(.give-copy) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.give-bank__iban { font-family: var(--font-mono); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.give-copy { padding: 2px var(--space-2-5); border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.give-copy:hover { color: var(--ink); border-color: currentColor; }
.give-copy.is-done { color: var(--brand); border-color: var(--brand); }
.give-tip { max-width: 560px; margin: var(--space-6) auto 0; font-size: var(--text-md); color: inherit; opacity: .9; text-align: center; }
.give-page .give-tip { color: var(--ink-soft); }
/* A QR code is for scanning with another phone than the one showing it. */
@media (max-width: 640px) {
  .give-fund { padding: var(--space-5); }
  .give-fund__qr { display: none; }
  .give-fund__main { grid-column: 1 / -1; }
  .give-bank > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Visit */
.visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-14); align-items: start; }
.visit__address { white-space: pre-line; font-family: var(--font-heading); font-size: var(--text-3xl); margin: var(--space-4) 0 var(--space-6); color: var(--ink); }
.visit__card { background: var(--surface); border-radius: var(--radius); padding: var(--space-7) var(--space-8); box-shadow: var(--shadow); }
.visit__card h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-2-5); }
.visit__card h3:not(:first-child) { margin-top: var(--space-6); }
.visit__card .person { text-align: left; }
.visit__card .person__photo { width: 64px; height: 64px; margin: 0 0 var(--space-2-5); font-size: var(--text-xl); }
.times { list-style: none; margin: 0; padding: 0; }
.times li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1-5) 0; border-bottom: 1px dashed var(--line); }
.times li:last-child { border-bottom: 0; }
.times em { color: var(--muted); font-style: normal; font-size: var(--text-md); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Page heads & detail heroes */
.page-head { padding: var(--space-24) 0 var(--space-14); background: linear-gradient(180deg, var(--tint), var(--paper)); }
.page-head h1 { font-size: var(--text-h1); }
.page-head .lead { max-width: 640px; }
.page-head--center { text-align: center; padding: var(--space-36) 0; }
.page-head--center .lead { margin: 0 auto var(--space-7); }
.detail-hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #120d1f)); padding: var(--space-24) 0 var(--space-18); overflow: hidden; isolation: isolate; }
.detail-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,24,.35), rgba(10,12,24,.75)); }
.detail-hero h1 { font-size: var(--text-title); max-width: 900px; }
.detail-hero .lead { color: rgba(255,255,255,.88); max-width: 680px; }
.detail-hero .eyebrow { color: var(--accent); }
.back { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; display: inline-block; margin-bottom: var(--space-6); }
.detail-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: rgba(255,255,255,.88); }
.detail-meta span + span::before { content: "·"; margin-right: var(--space-6); opacity: .6; }

/* Chips & pagination */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2-5); margin-bottom: var(--space-8); }
.chip { padding: var(--space-2) var(--space-4); border-radius: var(--btn-radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: var(--text-md); background: var(--surface); }
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-12); color: var(--muted); }
.pagination a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: var(--space-18) 0 var(--space-7); font-size: var(--text-md); }
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); }
.site-footer h3 { font-family: var(--font-body); color: #fff; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-3-5); }
.site-footer__name { font-family: var(--font-heading); font-size: var(--text-2xl); color: #fff; margin-bottom: var(--space-2-5); }
.site-footer__text { max-width: 340px; }
.site-footer .times li { border-color: #2a2b33; }
.site-footer .address { white-space: pre-line; margin-bottom: var(--space-1-5); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.social { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-3-5); }
.site-footer__bottom { border-top: 1px solid var(--dark-line); margin-top: var(--space-12); padding-top: var(--space-6); color: var(--on-dark-muted); font-size: var(--text-sm); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .section { padding: var(--section-y-phone) 0; } }

/* Live editor affordances (only inside the editor iframe) */
.empty-page { min-height: 60vh; display: grid; place-items: center; text-align: center; color: var(--muted); border: 2px dashed var(--line); margin: var(--space-10); border-radius: var(--radius-lg); }
body.is-editing [data-cms-block] { position: relative; }
body.is-editing [data-cms-block]::after { content: ""; position: absolute; inset: 0; pointer-events: none; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s; z-index: 5; }
body.is-editing [data-cms-block]:hover::after { outline-color: color-mix(in srgb, var(--ui-primary) 55%, transparent); }
body.is-editing [data-cms-block].cms-selected::after { outline: 2px solid var(--ui-primary); }
body.is-editing [data-cms-edit]:not(.btn):not([data-cms-type="upload"]) { border-radius: var(--ui-radius-xs); }
body.is-editing [data-cms-edit] { cursor: text; transition: box-shadow .12s, background .12s; }
body.is-editing [data-cms-edit]:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-primary) 45%, transparent); }
body.is-editing [data-cms-edit]:focus { outline: none; box-shadow: 0 0 0 2px var(--ui-primary); background: color-mix(in srgb, var(--ui-primary) 6%, transparent); }
body.is-editing [data-cms-edit]:not(img):empty::before { content: "Click to add text…"; opacity: .5; font-style: italic; }
body.is-editing div[data-cms-type="upload"]:empty::before { content: "Click to add an image"; display: block; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
body.is-editing img[data-cms-type="upload"], body.is-editing div[data-cms-type="upload"] { cursor: pointer; }
.cms-toolbar { position: absolute; top: 10px; right: 10px; z-index: 30; display: flex; gap: 2px; background: var(--ui-side); color: #fff; border-radius: var(--ui-radius-md); padding: var(--space-1); box-shadow: 0 6px 20px rgba(0,0,0,.25); font: 500 var(--ui-text-xs)/1 var(--ui-font); opacity: 0; transform: translateY(-4px); transition: .12s; pointer-events: none; }
[data-cms-block]:hover > .cms-toolbar, .cms-selected > .cms-toolbar { opacity: 1; transform: none; pointer-events: auto; }
.cms-toolbar__label { padding: var(--space-2) var(--space-2-5); opacity: .75; }
.cms-toolbar button { background: transparent; border: 0; color: #fff; padding: var(--space-1-5) var(--space-2); border-radius: var(--ui-radius-sm); cursor: pointer; font: inherit; }
.cms-toolbar button:hover { background: rgba(255,255,255,.14); }
.cms-insert { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); z-index: 31; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ui-primary); color: var(--ui-on-primary); font-size: var(--ui-text-2xl); line-height: 1; cursor: pointer; box-shadow: 0 4px 14px color-mix(in srgb, var(--ui-primary) 50%, transparent); opacity: 0; transition: opacity .12s; }
[data-cms-block]:hover > .cms-insert { opacity: 1; }
/* Elements inside a section: a smaller toolbar on their left, and the
   section's own outline and toolbar step back while one is hovered. */
[data-cms-block] [data-cms-block] > .cms-toolbar { top: 6px; left: 6px; right: auto; padding: 2px; }
[data-cms-block] [data-cms-block] > .cms-toolbar .cms-toolbar__label { padding: var(--space-1-5) var(--space-2); }
[data-cms-block]:not(.cms-selected):has([data-cms-block]:hover) > .cms-toolbar { opacity: 0; pointer-events: none; }
body.is-editing [data-cms-block]:not(.cms-selected):has([data-cms-block]:hover)::after { outline-color: transparent; }
body.is-editing [data-cms-block] [data-cms-block]:hover::after { outline-style: dashed; }
[data-cms-block] [data-cms-block] > .cms-insert { width: 22px; height: 22px; bottom: -11px; font-size: var(--ui-text-lg); }

/* ---- Section styles (the Style tab of each block) ------------------------
   Built from validated values in src/section_style.rs. Selectors are specific
   (and a few !important) so they beat every theme's defaults. */
.block { position: relative; }
.block[id] { scroll-margin-top: 96px; }
.block.s-bg { background: var(--s-bg, transparent); isolation: isolate; }
.block.s-bg > :not(.cms-toolbar, .cms-insert) { background: transparent !important; }
.block.s-bg-image { background-image: var(--s-img); background-size: cover; background-position: var(--s-pos, center); }
.block.s-bg-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--s-ov-color, #000); opacity: var(--s-ov, .4); border-radius: inherit; pointer-events: none; }
.block.s-bg-fixed { background-attachment: fixed; }
@media (hover: none) { .block.s-bg-fixed { background-attachment: scroll; } }
.block.s-pt > :not(.cms-toolbar, .cms-insert) { padding-top: var(--s-pt) !important; }
.block.s-pb > :not(.cms-toolbar, .cms-insert) { padding-bottom: var(--s-pb) !important; }
.block.s-sp .container { padding-left: var(--s-sp) !important; padding-right: var(--s-sp) !important; }
.block.s-w .container { max-width: var(--s-w) !important; }
.block.s-mh > :not(.cms-toolbar, .cms-insert) { min-height: var(--s-mh); display: flex; flex-direction: column; justify-content: var(--s-va, center); box-sizing: border-box; }
.block.s-mh > :not(.cms-toolbar, .cms-insert) > :not(.cms-toolbar, .cms-insert) { width: 100%; }
.block.s-align-left, .block.s-align-left :is(.section-title, .section-intro, .scripture) { text-align: left; }
.block.s-align-center, .block.s-align-center :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: center; }
.block.s-align-right, .block.s-align-right :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: right; }
.block.s-align-center :is(.section-intro, .metro-lead, .lead, .rt-inline, .section-title) { margin-left: auto; margin-right: auto; }
.block.s-align-right :is(.section-intro, .metro-lead, .lead, .rt-inline) { margin-left: auto; margin-right: 0; }
.block.s-align-center :is(.section-head, .metro-head) { justify-content: center; }
.block.s-align-right :is(.section-head, .metro-head) { justify-content: flex-end; }
.block.s-align-center .section-head, .block.s-align-center .metro-head { flex-direction: column; align-items: center; }

/* Text tone: re-point the theme's colour tokens inside the section. */
.block.s-tone-light {
  --ink: #ffffff; --ink-soft: rgba(255,255,255,.86); --muted: rgba(255,255,255,.7); --line: rgba(255,255,255,.2);
  --surface: rgba(255,255,255,.08); --paper: rgba(255,255,255,.1); --tint: rgba(255,255,255,.06); --header-bg: transparent;
  color: var(--ink);
}
.block.s-tone-dark {
  --ink: #111216; --ink-soft: rgba(17,18,22,.78); --muted: rgba(17,18,22,.6); --line: rgba(17,18,22,.14);
  --surface: rgba(255,255,255,.72); --paper: rgba(255,255,255,.55); --tint: rgba(17,18,22,.05);
  color: var(--ink);
}
.block.s-color { --ink: var(--s-color); --ink-soft: color-mix(in srgb, var(--s-color) 82%, transparent); --muted: color-mix(in srgb, var(--s-color) 65%, transparent); color: var(--s-color); }
.block.s-hs :is(h1, h2) { font-size: var(--s-hs) !important; }
.block.s-ts :is(p, li, .section-intro, .lead, .metro-lead, .scripture blockquote) { font-size: var(--s-ts) !important; }

/* Extras */
.block.s-radius { border-radius: var(--s-r); overflow: hidden; }
.block.s-radius > :not(.cms-toolbar, .cms-insert) { border-radius: inherit; }
.block.s-inset { margin: var(--space-3) clamp(var(--space-3), 3vw, var(--space-10)); }
.block.s-border-top, .block.s-border-both { border-top: 1px solid var(--s-bc, var(--line)); }
.block.s-border-bottom, .block.s-border-both { border-bottom: 1px solid var(--s-bc, var(--line)); }
.block.s-border-box { border: 1px solid var(--s-bc, var(--line)); }
.block.s-shadow-soft { box-shadow: 0 1px 2px rgba(15,15,25,.06), 0 12px 32px rgba(15,15,25,.08); }
.block.s-shadow-strong { box-shadow: 0 4px 8px rgba(15,15,25,.1), 0 28px 64px rgba(15,15,25,.22); }

/* Entrance animations (only when site.js runs and motion is welcome). */
.anim-ready .block.s-anim { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.anim-ready .block.s-anim:not(.is-in) { opacity: 0; }
.anim-ready .block.s-anim-fade-up:not(.is-in) { transform: translateY(36px); }
.anim-ready .block.s-anim-zoom:not(.is-in) { transform: scale(.94); }
.anim-ready .block.s-anim-slide:not(.is-in) { transform: translateX(-48px); }
@media (prefers-reduced-motion: reduce) { .anim-ready .block.s-anim { opacity: 1 !important; transform: none !important; transition: none; } }
.block.s-tone-light :is(.link, a.event-row__arrow) { color: var(--ink); }
.block.s-tone-dark .link { color: var(--ink); }
.block.s-tone-light .time-card__time { color: var(--ink); }

/* A section set to a narrow width stacks its columns like it would on a phone. */
.block.s-narrow :is(.split, .visit, .event-detail, .metro-times__panel, .metro-giving__grid,
  .modern-cards__head, .modern-feature) { grid-template-columns: 1fr !important; gap: var(--space-8) !important; }

/* Gap, columns and side-by-side/stacked layout (desktop values apply everywhere
   unless a tablet or mobile value overrides them). */
.block.s-gap :is(.grid, .kgrid, .ksection__body, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row, .split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { gap: var(--s-gap) !important; }
.block.s-gap .gallery { column-gap: var(--s-gap) !important; }
.block.s-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) { display: grid !important; grid-template-columns: repeat(var(--s-cols), minmax(0, 1fr)) !important; }
.block.s-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) > * { min-width: 0; }
.block.s-cols .gallery { columns: var(--s-cols) !important; }
.block:is(.s-layout-side, .s-layout-side-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; direction: ltr; }
.block:is(.s-layout-side, .s-layout-side-swap) .split--right .split__media { order: 2 !important; }
.block.s-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { direction: rtl; }
.block.s-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { direction: ltr; }
.block:is(.s-layout-stack, .s-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: minmax(0, 1fr) !important; direction: ltr; }
.block:is(.s-layout-stack, .s-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { order: 0 !important; }
.block.s-layout-stack-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > :first-child { order: 2 !important; }

/* Tablet (≤ 1024px) and mobile (≤ 760px) overrides from the Style tab's device
   switcher. Mobile falls back to tablet, tablet to desktop. */
@media (max-width: 1024px) {
  .block.s-t-pt > :not(.cms-toolbar, .cms-insert) { padding-top: var(--s-t-pt) !important; }
  .block.s-t-pb > :not(.cms-toolbar, .cms-insert) { padding-bottom: var(--s-t-pb) !important; }
  .block.s-t-sp .container { padding-left: var(--s-t-sp) !important; padding-right: var(--s-t-sp) !important; }
  .block.s-t-w .container { max-width: var(--s-t-w) !important; }
  .block.s-t-mh > :not(.cms-toolbar, .cms-insert) { min-height: var(--s-t-mh); display: flex; flex-direction: column; justify-content: var(--s-t-va, center); box-sizing: border-box; }
  .block.s-t-mh > :not(.cms-toolbar, .cms-insert) > :not(.cms-toolbar, .cms-insert) { width: 100%; }
  .block.s-t-va > :not(.cms-toolbar, .cms-insert) { justify-content: var(--s-t-va) !important; }
  .block.s-t-align-left, .block.s-t-align-left :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: left; }
  .block.s-t-align-left :is(.section-intro, .metro-lead, .lead, .rt-inline, .section-title) { margin-left: 0; margin-right: auto; }
  .block.s-t-align-left :is(.section-head, .metro-head) { justify-content: flex-start; }
  .block.s-t-align-center, .block.s-t-align-center :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: center; }
  .block.s-t-align-center :is(.section-intro, .metro-lead, .lead, .rt-inline, .section-title) { margin-left: auto; margin-right: auto; }
  .block.s-t-align-center :is(.section-head, .metro-head) { justify-content: center; }
  .block.s-t-align-right, .block.s-t-align-right :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: right; }
  .block.s-t-align-right :is(.section-intro, .metro-lead, .lead, .rt-inline) { margin-left: auto; margin-right: 0; }
  .block.s-t-align-right :is(.section-head, .metro-head) { justify-content: flex-end; }
  .block.s-t-hs :is(h1, h2) { font-size: var(--s-t-hs) !important; }
  .block.s-t-ts :is(p, li, .section-intro, .lead, .metro-lead, .scripture blockquote) { font-size: var(--s-t-ts) !important; }
  .block.s-t-gap :is(.grid, .kgrid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row, .split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { gap: var(--s-t-gap) !important; }
  .block.s-t-gap .gallery { column-gap: var(--s-t-gap) !important; }
  .block.s-t-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) { display: grid !important; grid-template-columns: repeat(var(--s-t-cols), minmax(0, 1fr)) !important; }
  .block.s-t-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) > * { min-width: 0; }
  .block.s-t-cols .gallery { columns: var(--s-t-cols) !important; }
  .block:is(.s-t-layout-side, .s-t-layout-side-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; direction: ltr; }
  .block:is(.s-t-layout-side, .s-t-layout-side-swap) .split--right .split__media { order: 2 !important; }
  .block.s-t-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { direction: rtl; }
  .block.s-t-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { direction: ltr; }
  .block:is(.s-t-layout-stack, .s-t-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: minmax(0, 1fr) !important; direction: ltr; }
  .block:is(.s-t-layout-stack, .s-t-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { order: 0 !important; }
  .block.s-t-layout-stack-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > :first-child { order: 2 !important; }
}
@media (max-width: 760px) {
  .block.s-m-pt > :not(.cms-toolbar, .cms-insert) { padding-top: var(--s-m-pt) !important; }
  .block.s-m-pb > :not(.cms-toolbar, .cms-insert) { padding-bottom: var(--s-m-pb) !important; }
  .block.s-m-sp .container { padding-left: var(--s-m-sp) !important; padding-right: var(--s-m-sp) !important; }
  .block.s-m-w .container { max-width: var(--s-m-w) !important; }
  .block.s-m-mh > :not(.cms-toolbar, .cms-insert) { min-height: var(--s-m-mh); display: flex; flex-direction: column; justify-content: var(--s-m-va, center); box-sizing: border-box; }
  .block.s-m-mh > :not(.cms-toolbar, .cms-insert) > :not(.cms-toolbar, .cms-insert) { width: 100%; }
  .block.s-m-va > :not(.cms-toolbar, .cms-insert) { justify-content: var(--s-m-va) !important; }
  .block.s-m-align-left, .block.s-m-align-left :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: left; }
  .block.s-m-align-left :is(.section-intro, .metro-lead, .lead, .rt-inline, .section-title) { margin-left: 0; margin-right: auto; }
  .block.s-m-align-left :is(.section-head, .metro-head) { justify-content: flex-start; }
  .block.s-m-align-center, .block.s-m-align-center :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: center; }
  .block.s-m-align-center :is(.section-intro, .metro-lead, .lead, .rt-inline, .section-title) { margin-left: auto; margin-right: auto; }
  .block.s-m-align-center :is(.section-head, .metro-head) { justify-content: center; }
  .block.s-m-align-right, .block.s-m-align-right :is(.section-title, .section-intro, .scripture, .metro-lead) { text-align: right; }
  .block.s-m-align-right :is(.section-intro, .metro-lead, .lead, .rt-inline) { margin-left: auto; margin-right: 0; }
  .block.s-m-align-right :is(.section-head, .metro-head) { justify-content: flex-end; }
  .block.s-m-hs :is(h1, h2) { font-size: var(--s-m-hs) !important; }
  .block.s-m-ts :is(p, li, .section-intro, .lead, .metro-lead, .scripture blockquote) { font-size: var(--s-m-ts) !important; }
  .block.s-m-gap :is(.grid, .kgrid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row, .split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { gap: var(--s-m-gap) !important; }
  .block.s-m-gap .gallery { column-gap: var(--s-m-gap) !important; }
  .block.s-m-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) { display: grid !important; grid-template-columns: repeat(var(--s-m-cols), minmax(0, 1fr)) !important; }
  .block.s-m-cols :is(.grid, .modern-cards, .metro-cards__grid, .metro-sermons__more, .bold-sermons, .bold-times__grid, .event-list, .bold-events, .modern-rows, .metro-events__list, .times-grid, .sanctuary-times__row) > * { min-width: 0; }
  .block.s-m-cols .gallery { columns: var(--s-m-cols) !important; }
  .block:is(.s-m-layout-side, .s-m-layout-side-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; direction: ltr; }
  .block:is(.s-m-layout-side, .s-m-layout-side-swap) .split--right .split__media { order: 2 !important; }
  .block.s-m-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { direction: rtl; }
  .block.s-m-layout-side-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { direction: ltr; }
  .block:is(.s-m-layout-stack, .s-m-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) { grid-template-columns: minmax(0, 1fr) !important; direction: ltr; }
  .block:is(.s-m-layout-stack, .s-m-layout-stack-swap) :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > * { order: 0 !important; }
  .block.s-m-layout-stack-swap :is(.split, .visit, .formblock, .event-detail, .modern-feature, .metro-times__panel, .metro-giving__grid) > :first-child { order: 2 !important; }
}

/* Visibility per device (exact ranges). In the editor hidden sections stay
   visible, faded, so they can still be edited. */
@media (min-width: 1025px) { .block.s-hide-d { display: none; } .is-editing .block.s-hide-d { display: block; opacity: .45; outline: 2px dashed rgba(120,120,140,.5); outline-offset: -2px; } }
@media (min-width: 761px) and (max-width: 1024px) { .block.s-hide-t { display: none; } .is-editing .block.s-hide-t { display: block; opacity: .45; outline: 2px dashed rgba(120,120,140,.5); outline-offset: -2px; } }
@media (max-width: 760px) { .block.s-hide-m { display: none; } .is-editing .block.s-hide-m { display: block; opacity: .45; outline: 2px dashed rgba(120,120,140,.5); outline-offset: -2px; } }
.block.s-narrow :is(.bold-sermons, .metro-sermons__more) { grid-template-columns: 1fr 1fr !important; }
.block.s-narrow .bold-sermon--wide { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 320px; }
.is-editing .block.s-radius { overflow: visible; }

/* ---- Events: toolbar, month calendar, add to calendar ---- */
.events-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.events-bar .chips { margin: 0; }
.events-bar__feed { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-md); flex-wrap: wrap; }
.event-repeat { color: var(--muted); font-size: .92em; }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: .55em 1em; font-size: var(--text-sm); }
.add-cal { display: flex; align-items: center; gap: var(--space-3-5); flex-wrap: wrap; margin: var(--space-1-5) 0 var(--space-5); }
.cal { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.cal__nav { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3-5) var(--space-4); border-bottom: 1px solid var(--line); }
.cal__nav strong { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: var(--heading-weight); }
.cal__step { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.cal__step:hover { background: var(--tint); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__wd { padding: var(--space-2-5) var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.cal__day { min-height: 112px; padding: var(--space-1-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day.is-out { background: var(--tint); }
.cal__day.is-out .cal__num { opacity: .45; }
.cal__long { display: none; }
.cal__num { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal__day.is-today .cal__num { background: var(--brand); color: var(--on-brand); }
.cal__event { display: block; font-size: var(--text-xs); line-height: 1.3; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__event:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.cal__time { font-weight: 700; color: var(--brand); }
@media (max-width: 760px) {
  .cal__grid { grid-template-columns: 1fr; }
  .cal__wd, .cal__day.is-out:not(.has-events), .cal__day:not(.has-events) { display: none; }
  .cal__day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; padding: var(--space-2-5) var(--space-3-5); gap: var(--space-2); }
  .cal__day .cal__num { display: none; }
  .cal__long { display: block !important; font-weight: 700; font-size: var(--text-md); }
  .cal__event { white-space: normal; font-size: var(--text-md); flex: 1 1 100%; }
}

/* Forms */
.formblock { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--space-14); align-items: start; }
.formblock--solo { grid-template-columns: 1fr; max-width: 760px; }
.formblock__box, .signup .sform-wrap { background: var(--surface); border-radius: var(--radius); padding: var(--space-7) var(--space-8); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); }
.sform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3-5); }
.sform__q { grid-column: 1 / -1; display: grid; gap: var(--space-1-5); margin: 0; padding: 0; border: 0; min-width: 0; }
.sform__q--half { grid-column: span 1; }
.sform__q[hidden] { display: none; }
.sform__label { font-weight: 600; font-size: var(--text-md); padding: 0; }
.sform__req { color: var(--brand); margin-left: 3px; }
.sform__help { color: var(--muted); font-size: var(--text-sm); }
.sform input:not([type=checkbox]):not([type=radio]):not([type=file]), .sform textarea, .sform select { font: inherit; font-size: var(--text-base); color: inherit; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3-5); width: 100%; box-sizing: border-box; }
.sform select { appearance: auto; }
.sform textarea { resize: vertical; min-height: 120px; }
.sform input[type=file] { font: inherit; font-size: var(--text-md); }
.sform input:focus, .sform textarea:focus, .sform select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.sform__choices { display: grid; gap: var(--space-2); }
.sform__choice { display: flex; gap: var(--space-2-5); align-items: flex-start; font-size: var(--text-md); line-height: 1.45; cursor: pointer; }
.sform__choice input { margin-top: var(--space-1); width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.sform__section { grid-column: 1 / -1; padding-top: var(--space-1-5); }
.sform__section h3 { margin: 0 0 var(--space-1); font-size: var(--text-xl); }
.sform__section p { margin: 0; color: var(--ink-soft); }
.sform__err { color: #b42318; font-size: var(--text-sm); font-weight: 500; }
.sform__err:empty { display: none; }
.sform__q.has-error input:not([type=checkbox]):not([type=radio]), .sform__q.has-error textarea, .sform__q.has-error select { border-color: #d92d20; }
.sform__top-err { background: #fdecea; color: #8a1c12; padding: var(--space-3) var(--space-3-5); border-radius: var(--radius-md); margin: 0 0 var(--space-4); }
.sform__note { display: flex; gap: var(--space-2-5); align-items: flex-start; color: var(--muted); font-size: var(--text-md); margin: var(--space-5) 0 0; }
.sform__note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.sform .btn { margin-top: var(--space-5); }
.sform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sform__msg { display: none; margin: 0 0 var(--space-4); padding: var(--space-3-5) var(--space-4); border-radius: var(--radius-md); scroll-margin-top: 140px; white-space: pre-line; }
.sform__msg:target, .sform__msg.is-shown { display: block; }
.sform__msg--ok { background: color-mix(in srgb, var(--brand) 10%, transparent); padding: var(--space-6); font-size: var(--text-base); }
.sform__msg--err { background: #fdecea; color: #8a1c12; }
.sform-wrap:has(.sform__msg--ok:target) .sform { display: none; }
.sform__closed { margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--tint); color: var(--ink-soft); }
.signup { margin-top: var(--space-10); scroll-margin-top: 100px; }
.signup h2 { margin-bottom: var(--space-1-5); }
.signup__meta { color: var(--ink-soft); margin: 0 0 var(--space-4); }
@media (max-width: 860px) {
  .formblock { grid-template-columns: 1fr; gap: var(--space-6); }
  .formblock__box, .signup .sform-wrap { padding: var(--space-6) var(--space-5); }
  .sform__grid { grid-template-columns: 1fr; }
  .sform__q--half { grid-column: 1 / -1; }
}

/* Hero background video (hero/_video.html, site.js). It fades in over
   the background image once it actually plays. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-video.is-playing { opacity: 1; }
.hero-video__toggle { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 12, 24, .5); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.hero-video__toggle[hidden] { display: none; }
.hero-video__toggle:hover { background: rgba(10, 12, 24, .72); }
.hero-video__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-video__toggle svg { fill: currentColor; }
.hero-video__toggle .i-play, .hero-video__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero-video__toggle[aria-pressed="true"] .i-play { display: inline; }
/* Themes that show the image in a frame beside the text. */
.sanctuary-arch .hero-video { z-index: 1; border-radius: var(--arch); }
.bold-high .hero-video__toggle { bottom: 76px; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Downloads block */
.downloads { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.downloads__intro { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.download { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-4); border: 1px solid var(--line, color-mix(in srgb, currentColor 14%, transparent)); border-radius: var(--radius, 12px); background: var(--surface); }
.download__icon { flex: none; width: 48px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-sm); font-size: var(--text-2xs); font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--brand); }
.download__icon--document { background: #3b6fd6; }
.download__icon--image { background: #2e9a6a; }
.download__icon--video { background: #b4485d; }
.download__icon--audio { background: #8a5ad1; }
.download__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.download__title { font-weight: 600; overflow-wrap: anywhere; }
.download__desc { opacity: .85; }
.download__meta { font-size: var(--text-sm); opacity: .7; }
.download__btn { flex: none; display: inline-flex; align-items: center; gap: var(--space-1-5); }
@media (max-width: 560px) { .download { flex-wrap: wrap; } .download__btn { width: 100%; justify-content: center; } }

/* Rich text vocabulary (editor/src/index.js, src/richtext.rs). Colours use the
   theme's variables, so text follows the Design and dark sections. */
.t-sm { font-size: .875em; }
.t-lg { font-size: 1.25em; line-height: 1.45; }
.t-xl { font-size: clamp(1.35em, 1.05em + 1.2vw, 1.75em); line-height: 1.3; }
.c-brand { color: var(--brand); }
.c-accent { color: var(--accent); }
.c-ink { color: var(--ink); }
.c-muted { color: var(--muted); }
.c-white { color: #fff; }
.prose mark, .rt-inline mark { padding: 0 .18em; border-radius: .2em; color: inherit; }
.h-yellow { background: #fff1a8; color: #1c1d21 !important; }
.h-brand { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.h-accent { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
a.rt-button { display: inline-block; padding: .7em 1.4em; margin: .3em 0; border-radius: var(--btn-radius); background: var(--brand); color: var(--on-brand) !important; font-weight: 600; text-decoration: none; line-height: 1.2; }
a.rt-button:hover { background: var(--brand-ink); }
.prose hr, .rt-inline hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose::after { content: ""; display: table; clear: both; }
.rt-img { margin: 1.6em 0; }
.rt-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.rt-img figcaption { margin-top: .5em; font-size: var(--text-sm); color: var(--muted); text-align: center; }
.rt-img--center { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
.rt-img--left { float: left; width: min(45%, 320px); margin: .3em 1.5em 1em 0; }
.rt-img--right { float: right; width: min(45%, 320px); margin: .3em 0 1em 1.5em; }
.rt-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.rt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rt-embed--spotify { aspect-ratio: auto; height: 352px; background: transparent; }
.rt-embed--compact { height: 152px; }
/* The wrapper owns the box (width, outer spacing); paragraphs inside only
   space themselves. .kte-inline is the editor surface in the live preview. */
:where(.rt-inline) { margin: 0 0 1em; }
.rt-inline > :first-child, .rt-inline > .kte-inline > :first-child { margin-top: 0; }
.rt-inline > :last-child, .rt-inline > .kte-inline > :last-child { margin-bottom: 0; }
.rt-inline p { margin: 0 0 .7em; max-width: none; }
.kte-inline { min-height: 1.2em; }
.detail-sections { padding-bottom: var(--space-2); }
@media (max-width: 560px) { .rt-img--left, .rt-img--right { float: none; width: 100%; margin: 1.2em 0; } }
