/* ============================================================
   Design system — loaded after site.css.
   Every rule here is driven by a class the admin sets on <body>
   (st-<option>-<value>) or by a per-section class the editor sets.
   Nothing in here is edited to re-skin a site.
   ============================================================ */

:root {
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lift: 0 10px 30px rgba(0,0,0,.10);
  --section-pad: clamp(2.5rem, 6vw, 4.5rem);
  --h1: clamp(2rem, 6vw, 3.1rem);
  --h2: clamp(1.5rem, 4vw, 2.2rem);
  --h3: 1.25rem;
  --body-size: 1.0625rem;
  --lead: 1.65;
  --title-space: 0;
  --title-transform: none;
  --title-style: normal;
}

body { font-size: var(--body-size); line-height: var(--lead); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h1, h2, h3, h4 {
  letter-spacing: var(--title-space);
  text-transform: var(--title-transform);
  font-style: var(--title-style);
}
.pad { padding-block: var(--section-pad); }

/* ── Type scale ────────────────────────────────────────────── */
.st-type-scale-compact {
  --h1: clamp(1.7rem, 4.4vw, 2.4rem); --h2: clamp(1.3rem, 3vw, 1.7rem);
  --h3: 1.1rem; --body-size: 1rem; --lead: 1.6;
}
.st-type-scale-grand {
  --h1: clamp(2.4rem, 8vw, 4.4rem); --h2: clamp(1.8rem, 5vw, 2.9rem);
  --h3: 1.4rem; --body-size: 1.125rem; --lead: 1.7;
}

/* ── Rhythm ────────────────────────────────────────────────── */
.st-rhythm-tight { --section-pad: clamp(1.5rem, 4vw, 2.75rem); }
.st-rhythm-airy  { --section-pad: clamp(3.5rem, 9vw, 7rem); }

/* ── Corners ───────────────────────────────────────────────── */
.st-corners-sharp { --radius: 0px; }
.st-corners-soft  { --radius: 10px; }
.st-corners-round { --radius: 20px; }

/* ── Depth ─────────────────────────────────────────────────── */
.st-depth-flat   { --shadow: none; --shadow-lift: none; }
.st-depth-soft   { --shadow: 0 1px 2px rgba(0,0,0,.05); --shadow-lift: 0 10px 30px rgba(0,0,0,.10); }
.st-depth-lifted { --shadow: 0 4px 14px rgba(0,0,0,.10); --shadow-lift: 0 18px 44px rgba(0,0,0,.22); }
.card { box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lift); }
.st-depth-flat .card:hover { transform: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.st-btn-outline .btn {
  background: transparent; color: var(--c-primary); border-width: 2px;
}
.st-btn-outline .btn:hover { background: var(--c-primary); color: var(--c-onprim); opacity: 1; }
.st-btn-pill .btn { border-radius: 999px; padding-inline: 1.7rem; }
.st-btn-link .btn {
  background: none; border: 0; border-bottom: 2px solid currentColor;
  border-radius: 0; padding: .2rem 0; color: var(--c-primary);
}
.st-btn-link .btn:hover { border-bottom-color: transparent; }
.st-btn-outline .hero:not(.hero-plain) .btn,
.st-btn-link .hero:not(.hero-plain) .btn { color: #fff; border-color: currentColor; background: none; }

/* ── Cards ─────────────────────────────────────────────────── */
.st-card-flat .card { border-color: transparent; background: none; }
.st-card-flat .card-body { padding-inline: 0; }
.st-card-elevated .card { border-color: transparent; box-shadow: var(--shadow-lift); }

.st-card-overlay .card { position: relative; border: 0; background: var(--c-surface); }
.st-card-overlay .card-media img { aspect-ratio: 3 / 4; }
.st-card-overlay .card:has(.card-media) .card-body {
  position: absolute; inset: auto 0 0 0; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding-top: 3.5rem;
}
.st-card-overlay .card:has(.card-media) .card-body .muted,
.st-card-overlay .card:has(.card-media) .card-body .date { color: rgba(255,255,255,.82); }

/* ── Image shape ───────────────────────────────────────────── */
.st-img-square  .card-media img, .st-img-square  .split-media img,
.st-img-square  .grid-gallery a { border-radius: 0; }
.st-img-rounded .card-media img, .st-img-rounded .split-media img { border-radius: 0; }
.st-img-rounded .card { border-radius: var(--radius); }
.st-img-arch .split-media img, .st-img-arch .grid-gallery a, .st-img-arch .card-media img {
  border-radius: 50% 50% var(--radius) var(--radius) / 32% 32% 0 0;
}
.st-img-arch .single-cover img { border-radius: 0 0 var(--radius) var(--radius); }
.st-img-circle .card-media img { aspect-ratio: 1; border-radius: 50%; width: 72%; margin: 1rem auto 0; }
.st-img-circle .split-media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* ── Header variants ───────────────────────────────────────── */
.st-head-over .site-head {
  position: absolute; inset: 0 0 auto 0; background: transparent;
  border-bottom-color: transparent; backdrop-filter: none;
}
.st-head-over .site-head, .st-head-over .site-head a { color: #fff; }
.st-head-over .nav-search input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.st-head-over .nav-search input::placeholder { color: rgba(255,255,255,.7); }
.st-head-over main > .hero:first-child { padding-top: 68px; }
.st-head-over .site-head.scrolled {
  position: fixed; background: var(--c-header); border-bottom-color: var(--c-border);
  backdrop-filter: blur(10px); animation: drop .25s ease;
}
.st-head-over .site-head.scrolled, .st-head-over .site-head.scrolled a { color: var(--c-text); }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

@media (min-width: 900px) {
  .st-head-centered .head-row { flex-wrap: wrap; justify-content: center; row-gap: .25rem; }
  .st-head-centered .brand { margin: 0; flex-basis: 100%; justify-content: center; padding-top: .6rem; }
  .st-head-centered .nav { justify-content: center; width: 100%; }
  .st-head-centered .nav-list { margin-inline: auto; }
}

/* ── Heading treatments ────────────────────────────────────── */
.st-titles-caps   { --title-space: .12em; --title-transform: uppercase; }
.st-titles-caps h1, .st-titles-caps h2 { font-size: calc(var(--h1) * .8); }
.st-titles-caps h2 { font-size: calc(var(--h2) * .82); }
.st-titles-italic { --title-style: italic; }

/* ── Per-section options set in the block editor ───────────── */
.sec--bg-tint    { background: color-mix(in srgb, var(--c-accent) 8%, var(--c-bg)); }
.sec--bg-surface { background: var(--c-surface); }
.sec--bg-dark    { background: #0d0d0d; color: #f2efe9; }
.sec--bg-dark .muted, .sec--bg-dark .date { color: #a39c90; }
.sec--bg-dark h1, .sec--bg-dark h2, .sec--bg-dark h3 { color: #fff; }
.sec--bg-accent  { background: var(--c-primary); color: var(--c-onprim); }
.sec--bg-accent h2, .sec--bg-accent h3, .sec--bg-accent .muted { color: inherit; }
.sec--bg-accent .btn { background: var(--c-onprim); color: var(--c-primary); border-color: var(--c-onprim); }

.sec--pad-none { padding-block: 0; }
.sec--pad-sm   { padding-block: calc(var(--section-pad) * .45); }
.sec--pad-lg   { padding-block: calc(var(--section-pad) * 1.6); }

.sec--align-center { text-align: center; }
.sec--align-center .prose { margin-inline: auto; }
.sec--align-center .section-head { justify-content: center; }
.sec--align-center .schedule th, .sec--align-center .schedule td { text-align: center; }

.sec--w-narrow .wrap { width: min(100% - 2rem, 720px); }
.sec--w-wide   .wrap { width: min(100% - 2rem, 1400px); }
.sec--w-full   .wrap { width: 100%; }
.sec--w-full .grid-gallery { gap: 2px; }

/* Cards per-block column count */
.cards-2 .grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.cards-4 .grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cards-list .grid-cards { grid-template-columns: 1fr; }
.cards-list .card-link { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 1.25rem; }
.cards-list .card-media img { aspect-ratio: 1; height: 100%; }
@media (max-width: 600px) {
  .cards-list .card-link { grid-template-columns: 1fr; }
  .cards-list .card-media img { aspect-ratio: 16 / 10; }
}

/* Gallery variants */
.gal-mosaic .grid-gallery { grid-auto-rows: 12rem; grid-auto-flow: dense; }
.gal-mosaic .grid-gallery a:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gal-mosaic .grid-gallery img { height: 100%; aspect-ratio: auto; }
.gal-carousel .grid-gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; padding-bottom: .5rem;
}
.gal-carousel .grid-gallery a { flex: 0 0 min(78%, 340px); scroll-snap-align: center; }

/* Text block in two columns */
.text-2col .prose { max-width: none; columns: 2; column-gap: 3rem; }
@media (max-width: 700px) { .text-2col .prose { columns: 1; } }

/* Hero overlay strength + text position */
.hero--dim-none::before { display: none; }
.hero { position: relative; }
.hero:not(.hero-plain)::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.hero--dim-strong:not(.hero-plain)::before { background: rgba(0,0,0,.62); }
.hero--dim-soft:not(.hero-plain)::before { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.hero-inner { position: relative; z-index: 1; }
.hero--center { text-align: center; }
.hero--center .hero-text { margin-inline: auto; }
.hero--center .hero-inner { display: grid; justify-items: center; }
.hero--middle { align-items: center; }

/* ── Reveal on scroll ──────────────────────────────────────── */
.st-motion-subtle [data-reveal], .st-motion-full [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.75,.3,1);
}
.st-motion-full [data-reveal] { transform: translateY(34px) scale(.985); }
[data-reveal].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Extra blocks ──────────────────────────────────────────── */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.stat-n { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; color: var(--c-primary); }
.stat-l { color: var(--c-muted); font-size: .92rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-border); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-accent); border: 2px solid var(--c-bg);
}
.timeline .when { font-family: var(--font-head); color: var(--c-primary); font-size: 1.05rem; }

.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  cursor: pointer; padding: 1rem .25rem; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 .25rem 1.1rem; color: var(--c-muted); }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { max-width: 52ch; margin-inline: auto; }

.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); text-align: center; }
.people figure { margin: 0; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: .75rem; }
.people .role { color: var(--c-muted); font-size: .9rem; }
