/* ==========================================================================
   Fellowship of Huntsville Church: public site
   Visual language carried over from the 2024 WordPress design:
   Poppins type, maroon buttons, charcoal / tan / cream / gray bands,
   dark photo banners. Mobile-first; no framework, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Poppins-Italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Bold.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
    --maroon: #680a0b;
    --maroon-dark: #4c0708;
    --charcoal: #383838;
    --charcoal-2: #2b2a30;
    --tan: #dacab4;
    --tan-card: #d9cbb6;
    --cream: #ece6d3;
    --gray: #dadada;
    --stone: #c0bfb2;  /* old About page */
    --text: #333333;
    --white: #ffffff;

    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --header-h: 76px;
    --radius: 10px;
    --gutter: clamp(1.25rem, 4vw, 3.75rem);
    --band-pad: clamp(3.5rem, 8vw, 6.25rem);

    /* One page edge: header, banners and every home section line up on --wide.
       --narrow is for reading lists inside inner pages; --text-w for paragraphs. */
    --narrow: 65rem;  /* 1040px */
    --wide: 75rem;    /* 1200px */
    --text-w: 48rem;

    /* Type scale: every heading and text size on the site comes from these. */
    --fs-sm: 0.9375rem;                                   /* dates, roles, captions (15px) */
    --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);    /* 16 → 18px */
    --fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);      /* card titles */
    --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);      /* section titles */
    --fs-display: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);  /* banner titles, big section titles */
    --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);       /* home page only */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 0.15em; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.75rem; color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--maroon); padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container-narrow, .container-wide, .container-text { margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.container-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.container-text { max-width: calc(var(--text-w) + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { opacity: 0.75; }

/* ---------- Buttons & links ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0.6rem 1.75rem;
    background: var(--maroon); color: var(--white);
    border: 0; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
    cursor: pointer; transition: background-color 0.2s, transform 0.2s;
}
.button:hover, .button:focus-visible { background: var(--maroon-dark); color: var(--white); }
.button--lg { min-height: 56px; padding: 0.75rem 2.25rem; font-size: 1.0625rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* The one text link: "Label →" in maroon. (.more-link is the same thing with a chevron icon.) */
.arrow-link, .more-link {
    display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem;
    font-size: 1rem; font-weight: 600; color: var(--maroon); text-decoration: none;
}
.arrow-link:hover, .more-link:hover { text-decoration: underline; color: var(--maroon-dark); }
.more-link svg { transition: transform 0.2s; }
.more-link:hover svg { transform: translateX(3px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    background: rgba(78, 78, 78, 0.45);
    color: var(--white);
    transition: background-color 0.25s;
}
/* Once the photo banner scrolls away, the bar goes solid so the menu stays readable. */
.site-header.is-solid, .site-header.is-open { background: var(--charcoal); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: var(--header-h); padding: 0.5rem var(--gutter);
    max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto;
}
.site-logo { flex: none; display: block; padding: 0.25rem 0; }
.site-logo img { width: 190px; height: auto; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Phone/tablet menu: a panel under the bar. */
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal); max-height: calc(100svh - var(--header-h)); overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-header.is-open .site-nav { display: block; }
.site-nav__list, .submenu { list-style: none; margin: 0; padding: 0; }
.site-nav__list { padding: 0.5rem 0 1rem; }
.site-nav__link {
    display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%;
    min-height: 48px; padding: 0.5rem var(--gutter);
    background: none; border: 0; color: var(--white);
    font-size: 1rem; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"], .site-nav__link.is-current { color: var(--tan); }
.chevron { transition: transform 0.2s; }
.site-nav__parent[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.submenu { display: none; background: rgba(0, 0, 0, 0.18); padding: 0.25rem 0; }
.site-nav__parent[aria-expanded="true"] + .submenu { display: block; }
.submenu a { display: block; padding: 0.7rem calc(var(--gutter) + 1rem); color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--tan); }

@media (min-width: 70em) {
    .nav-toggle { display: none; }
    .site-nav { display: block; position: static; background: none; max-height: none; overflow: visible; border: 0; }
    .site-nav__list { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1.5rem); padding: 0; }
    .site-nav__item { position: relative; }
    .site-nav__link { width: auto; padding: 0.5rem 0.4rem; font-size: 0.875rem; }
    .submenu {
        position: absolute; top: calc(100% + 0.25rem); left: -0.75rem; min-width: 15rem;
        background: var(--white); border-radius: 4px; padding: 0.5rem 0;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    }
    /* Invisible bridge over the gap above the menu, so moving the mouse down doesn't end the hover. */
    .submenu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0.5rem; }
    .submenu a { color: var(--charcoal-2); font-size: 0.875rem; font-weight: 600; padding: 0.55rem 1.25rem; }
    .submenu a:hover, .submenu a[aria-current="page"] { color: var(--maroon); background: #f5f2ea; }
    /* Hover opens menus on desktop; keyboard/tap uses the button. */
    .site-nav__item.has-children:hover > .submenu { display: block; }
    .site-nav__item.has-children:last-child .submenu, .site-nav__item.has-children:nth-last-child(-n+3) .submenu { left: auto; right: -0.75rem; }
}

/* ---------- Bands (full-width colored sections) ---------- */
.band { padding-block: var(--band-pad); }
.band--tan { background: var(--tan); }
.band--cream { background: var(--cream); }
.band--gray { background: var(--gray); }
.band--stone { background: var(--stone); }
.band--white { background: var(--white); }
.band--charcoal { background: var(--charcoal); color: var(--white); }
.band--charcoal a:not(.button) { color: var(--tan); }
.band__title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.5px; text-align: center; margin-bottom: 1.5rem; }
.band__intro { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }

.display { font-size: var(--fs-display); font-weight: 600; letter-spacing: -1px; line-height: 1.08; color: var(--text); margin: 0; }
.lead { font-size: var(--fs-body); }

.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48em) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--center { align-items: center; }
}

/* ---------- Home: hero ---------- */
.hero {
    position: relative; isolation: isolate; color: var(--white);
    display: flex; align-items: center;
    min-height: clamp(34rem, 100svh, 56.25rem);
    padding-block: calc(var(--header-h) + 3rem) 4rem;
    background: var(--charcoal);
}
.hero__bg, .page-hero__bg, .sermon-feature__bg, .connect__bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
/* A soft wash on the left keeps white text readable on bright photos (old site had none). */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.05) 100%); }
.hero__inner { width: 100%; }
.hero__title {
    font-size: var(--fs-hero); font-weight: 600; line-height: 1.08; letter-spacing: -1px;
    max-width: 16ch; margin-bottom: 1.5rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero__verse { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); font-weight: 500; line-height: 1.5; max-width: 46ch; margin-bottom: 2rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

/* ---------- Home: When We Gather ---------- */
.gather .split { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); align-items: end; }
.gather__grid { display: grid; gap: 2.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.gather__col { padding-top: 0.25rem; }
.gather__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; margin-bottom: 0.9rem; }
.gather__time, .gather__lines { font-size: 1rem; margin: 0 0 0.25rem; }
.gather__lines { list-style: none; padding: 0; margin-bottom: 0.5rem; }
.gather__lines li { line-height: 1.8; }
.gather__col .arrow-link { display: flex; width: fit-content; margin-top: 0.4rem; }

/* ---------- Home: mission ---------- */
.mission { padding-block: var(--band-pad); }
.mission__title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; margin: 0; }
.mission .button { margin-top: 1rem; }

/* ---------- Home: latest sermon ---------- */
.sermon-feature {
    position: relative; isolation: isolate; color: var(--white); text-align: center;
    min-height: clamp(24rem, 62svh, 40rem);
    display: grid; place-items: center; padding: 5rem var(--gutter);
    background: var(--charcoal);
}
.sermon-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 14, 40, 0.25); }
.sermon-feature__inner { display: grid; justify-items: center; gap: 1.5rem; width: 100%; max-width: 64rem; }
.sermon-feature__title { font-size: var(--fs-display); font-weight: 600; letter-spacing: -1px; margin: 0; text-shadow: 0 3px 16px rgba(0, 0, 0, 0.4); }
.sermon-feature__name { font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); margin: 0; }
.play-button { color: var(--white); display: inline-block; border-radius: 50%; transition: transform 0.2s; }
.play-button svg { width: clamp(88px, 10vw, 128px); height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); }
.play-button:hover, .play-button:focus-visible { color: var(--white); transform: scale(1.06); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ---------- Post slider (home + ministry pages) ---------- */
/* News & Events slider: heading + counter/arrows, then cards (flyer · date · title · summary).
   The next card peeks in on wide screens; on phones each card is flyer-on-top. */
.news-slider { background: var(--charcoal-2); color: var(--white); padding-block: var(--band-pad); overflow: hidden; }
.news-slider__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.news-slider__title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.5px; margin: 0; }
.news-slider__nav { display: flex; align-items: center; gap: 0.5rem; }
.news-slider__nav[hidden] { display: none; }
.news-slider__count { white-space: nowrap; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; opacity: 0.75; margin-right: 0.5rem; }
.news-slider__track {
    --edge: max(var(--gutter), (100vw - var(--wide)) / 2);
    display: flex; gap: clamp(1rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: var(--edge); scroll-padding-inline: var(--edge);
}
.news-slider__track::-webkit-scrollbar { display: none; }
.news-slider__track:focus-visible { outline-offset: -3px; }
.news-slide {
    flex: 0 0 min(85%, 60rem); scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
    background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); overflow: hidden;
}
.news-slider__track--single .news-slide { flex-basis: 100%; }
.news-slide__flyer { display: grid; place-items: center; padding: 1.25rem 1.25rem 0; }
.news-slide__flyer img { max-height: 20rem; width: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.news-slide__body { padding: 1.25rem 1.25rem 1.5rem; display: grid; align-content: start; gap: 0.6rem; justify-items: start; }
.news-slide__when { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tan); }
.news-slide__title { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.news-slide__title a { color: inherit; text-decoration: none; }
.news-slide__title a:hover { text-decoration: underline; }
.news-slide__summary { margin: 0; opacity: 0.85; font-size: 1rem; line-height: 1.6; }
.news-slide__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.button--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.button--ghost-light:hover, .button--ghost-light:focus-visible { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.news-slider__all { margin: clamp(1.25rem, 3vw, 2rem) auto 0; }
.news-slider__all .arrow-link { color: var(--tan); }
@media (min-width: 48em) {
    .news-slide { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
    .news-slide__flyer { padding: 1.75rem; }
    .news-slide__flyer img { max-height: 24rem; }
    .news-slide__body { padding: 2rem 2rem 2rem 0.5rem; align-content: center; }
}

/* ---------- Ministry cards ---------- */
/* Intro on top (same layout as When We Gather), then the cards. Cards in a row share a height;
   a short last row is centered rather than leaving a hole. */
.ministries-home__intro { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); align-items: end; }
.ministry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.ministry-grid > * { flex: 1 1 100%; }
@media (min-width: 40em) { .ministry-grid > * { flex: 0 1 calc((100% - 1.5rem) / 2); } }
@media (min-width: 64em) { .ministry-grid > * { flex-basis: calc((100% - 3rem) / 3); } }
/* Optional heading + text in the first box (old Home page). */
.ministry-grid__intro { padding: 0.5rem 1.5rem 1.5rem 0; }
.ministry-grid__intro .display { margin-bottom: 1.25rem; }
.ministry-grid__intro p { font-size: 1rem; line-height: 1.7; }
/* Tan card; text starts at the top so titles line up across a row, and the link sits at the bottom. */
.ministry-card { position: relative; isolation: isolate; overflow: hidden; display: flex; background: var(--tan-card); border-radius: var(--radius); }
/* The photo stays hidden until hover, so it can't peek through at the rounded corners. */
.ministry-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 0.4s; }
.ministry-card:hover .ministry-card__bg, .ministry-card:focus-within .ministry-card__bg { opacity: 1; }
.ministry-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tan-card); transition: opacity 0.4s; }
.ministry-card:hover::before, .ministry-card:focus-within::before { opacity: 0.88; }
.ministry-card__body { display: flex; flex-direction: column; padding: 2rem 1.75rem; }
.ministry-card__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.3px; color: var(--text); }
.ministry-card p { font-size: 1rem; line-height: 1.7; color: #1d1d1d; }
.ministry-card .more-link { margin-top: auto; padding-top: 0.75rem; }

/* ---------- Connect With Us ---------- */
.connect { position: relative; isolation: isolate; color: var(--white); padding-block: var(--band-pad); background: var(--charcoal); }
.connect::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(60, 56, 54, 0.62); }
.connect__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .connect__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.map-box { position: relative; background: var(--white); color: var(--text); min-height: 20rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box__placeholder { height: 100%; min-height: 20rem; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; }
.map-box__placeholder svg { color: var(--maroon); }
.map-box__address { font-weight: 600; margin: 0; }
.map-box__address span { font-weight: 400; font-size: 0.9em; }
/* Everything in the info column shares one left edge. */
.connect__info { display: grid; justify-items: start; align-content: center; gap: 0.5rem; }
.connect__title { font-size: var(--fs-display); font-weight: 600; letter-spacing: -1px; line-height: 1.1; margin: 0 0 1rem; }
.connect__sub { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; margin: 2rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.25); width: 100%; }
.connect__list { margin: 0; display: grid; gap: 1.1rem; }
.connect__list dt { font-size: 1.05rem; font-weight: 600; }
.connect__list dd { margin: 0; font-size: 1rem; }
.connect__info a:not(.button) { color: var(--white); }

/* ---------- Inner page banner ----------
   One layout everywhere: title, tagline, button, stacked and centered.
   Height grows gently with the screen (about a third to half of it) and is
   driven by width, not height, so tablets don't get the tallest banner. */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--charcoal);
    display: flex; align-items: center;
    min-height: clamp(20rem, 14rem + 16vw, 30rem);
    padding-block: calc(var(--header-h) + 2.5rem) 3rem;
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.6) 100%); }
.page-hero__inner { width: 100%; display: grid; justify-items: center; gap: 1rem; text-align: center; }
.page-hero__title { font-size: var(--fs-display); font-weight: 600; letter-spacing: -1px; line-height: 1.1; margin: 0; max-width: 20ch; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
.page-hero__tagline { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); line-height: 1.5; max-width: 40ch; margin: 0; opacity: 0.95; }
.page-hero__inner .button { margin-top: 0.75rem; }

/* ---------- Ministry page sections ---------- */
.prose-band .band__title { margin-bottom: 1rem; }
.meeting-info { text-align: center; font-weight: 600; color: var(--tan); margin-bottom: 1.5rem; }
:is(.band--white, .band--cream, .band--tan, .band--stone, .band--gray) .meeting-info { color: var(--maroon); }
.prose { font-size: var(--fs-body); line-height: 1.8; }
.prose h2, .prose h3 { font-weight: 600; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote { margin: 2rem 0 0; padding: 0; font-style: italic; }
.prose blockquote strong { font-style: normal; }

/* Cards share one width and the last row centers, so an odd count never leaves a lonely card at the left. */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.card-grid > * { flex: 1 1 18rem; max-width: 24rem; }
.info-card { background: var(--white); color: var(--text); padding: 1.75rem 1.5rem; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.band--charcoal .info-card a:not(.button) { color: var(--maroon); }
.info-card__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.75rem; }
.info-card__body { font-size: 1rem; line-height: 1.7; }
.info-card__body p { margin-bottom: 0.4rem; }
.arrow-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.arrow-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.25rem; }
.arrow-list li::before { content: "⇨"; position: absolute; left: 0; color: var(--maroon); }

.leader-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.leader-card { flex: 0 1 18rem; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); overflow: hidden; }
.leader-card__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.leader-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.leader-card__name { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.25rem; }
.leader-card__role { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; opacity: 0.8; margin-bottom: 0.75rem; }
.leader-card__body p { font-size: 1rem; margin-bottom: 0.25rem; overflow-wrap: anywhere; }

/* Recordings: a grid of cards with a play button; one player bar for the whole page */
.recording-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; }
.rec-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.9rem 0.75rem 0.9rem 0.9rem; background: var(--white); border: 1px solid #e6dfcf; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: box-shadow 0.2s, border-color 0.2s; }
.rec-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.rec-card.is-current { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.rec-card__play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--maroon); color: var(--white); transition: background-color 0.2s, transform 0.2s; }
.rec-card__play:hover { background: var(--maroon-dark); transform: scale(1.05); }
.rec-card__play svg { grid-area: 1 / 1; }
.rec-card__icon-play { margin-left: 2px; }
.rec-card__icon-pause, .rec-card.is-playing .rec-card__icon-play { display: none; }
.rec-card.is-playing .rec-card__icon-pause { display: block; }
.rec-card__title { font-size: 1rem; font-weight: 600; line-height: 1.3; margin: 0; }
.rec-card__teacher, .rec-card__label, .rec-card__post { font-size: var(--fs-sm); line-height: 1.35; margin: 0.1rem 0 0; color: #5f5a52; overflow-wrap: anywhere; }
.rec-card__teacher { color: var(--maroon); font-weight: 500; }
.rec-card__post a { color: inherit; text-decoration: none; }
.rec-card__post a:hover { color: var(--maroon); text-decoration: underline; }
.rec-card__download { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #6b665e; }
.rec-card__download:hover { background: var(--cream); color: var(--maroon); }
.recordings-more { margin-top: 1.75rem; }

/* Sunday School archive: search + filters, count, grid, Show more */
.archive-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.5rem; }
.archive-filters__search { grid-column: 1 / -1; }
.archive-filters--one-select .archive-filters__select { grid-column: 1 / -1; }
@media (min-width: 40em) { .archive-filters { grid-template-columns: minmax(0, 1fr) auto auto; } .archive-filters__search { grid-column: auto; } .archive-filters--one-select { grid-template-columns: minmax(0, 1fr) auto; } .archive-filters--one-select .archive-filters__select { grid-column: auto; } }
.archive-filters input, .archive-filters select { width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid #d6cdb8; border-radius: var(--radius); }
.archive-filters input:focus, .archive-filters select:focus { outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon); }
.archive-filters__search { position: relative; }
.archive-filters__search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: #8a8378; pointer-events: none; }
.archive-filters__search input { padding: 0 1rem 0 2.6rem; }
.archive-filters select { padding: 0 2.4rem 0 1rem; appearance: none; cursor: pointer;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.9rem center; }
@media (min-width: 40em) { .archive-filters select { min-width: 10rem; } }
.archive__count { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; font-size: var(--fs-sm); color: #5f5a52; margin-bottom: 1rem; }
.archive__count a { color: var(--maroon); font-weight: 600; }
.archive__results.is-loading { opacity: 0.55; transition: opacity 0.15s 0.1s; }
.archive__more { margin-top: 2rem; }

/* Player bar (created by site.js on first play) */
.player { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: var(--charcoal-2); color: var(--white); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25); padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); }
.player__inner { max-width: var(--wide); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "toggle info close" "seek seek seek" "tools tools tools"; align-items: center; gap: 0.35rem 0.75rem; }
.player button, .player a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.5rem; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.player button:hover, .player a:hover { background: rgba(255, 255, 255, 0.12); }
.player__toggle { grid-area: toggle; width: 48px; height: 48px !important; background: var(--white) !important; color: var(--charcoal-2) !important; }
.player__toggle .i-pause, .player.is-playing .player__toggle .i-play { display: none; }
.player.is-playing .player__toggle .i-pause { display: block; }
.player__info { grid-area: info; min-width: 0; }
.player__title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { font-size: 0.8125rem; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__seek { grid-area: seek; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.player__seek input { width: 100%; accent-color: var(--tan); }
.player__tools { grid-area: tools; display: flex; justify-content: center; gap: 0.25rem; }
.player__close { grid-area: close; }
@media (min-width: 48em) {
    .player__inner { grid-template-columns: auto minmax(10rem, 16rem) minmax(0, 1fr) auto auto; grid-template-areas: "toggle info seek tools close"; gap: 1.25rem; }
    .player__tools { gap: 0.15rem; }
}
body.has-player { padding-bottom: 10rem; }
@media (min-width: 48em) { body.has-player { padding-bottom: 5rem; } }
.class-group + .class-group { margin-top: 3rem; }
.class-card__thumb { display: block; margin: -0.5rem -0.25rem 1rem; }
.class-card__thumb img { width: 100%; height: 14rem; object-fit: cover; object-position: center top; border-radius: 4px; }
.class-card__meta { font-size: 0.95rem; font-weight: 600; color: var(--maroon); margin-bottom: 0.75rem; }
.class-card .info-card__title a { color: inherit; text-decoration: none; }
.class-card .info-card__title a:hover { color: var(--maroon); }
.post__recordings { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.post__recordings-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--maroon); margin-bottom: 0.75rem; }

.display-sm { font-size: var(--fs-h2); font-weight: 600; text-align: center; letter-spacing: -0.5px; margin-bottom: 2.5rem; }
.mt { margin-top: 1rem; }
.button-row--start { justify-content: flex-start; }

/* ---------- About: value cards ---------- */
.value-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
/* Cards fill the row: three across, a lone card spans the width, two share it (as on the old About page). */
.value-grid > * { flex: 1 1 17rem; }
.value-card { position: relative; background: #f9f8f7; border: 1px solid var(--maroon); border-radius: 2px; padding: 3rem 1.75rem 2rem; margin-top: 1.75rem; text-align: center; }
.value-card__icon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; display: grid; place-items: center; background: var(--maroon); color: var(--white); border-radius: 4px; }
.value-card__title { font-size: var(--fs-h3); font-weight: 500; margin-bottom: 1rem; }
.value-card__title::after { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--maroon); margin: 0.9rem auto 0; }
.value-card__text { font-size: 0.95rem; line-height: 1.75; color: #555; }

/* ---------- About: timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; text-align: left; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1rem; width: 2px; background: var(--maroon); }
.timeline__item { position: relative; padding: 0 0 1.5rem 3rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(1rem - 8px); top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gray); border: 2px solid var(--maroon); }
.timeline__year { display: block; font-weight: 700; color: var(--maroon); font-size: 1.35rem; }
.timeline__text { background: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 1.1rem; font-weight: 600; line-height: 1.45; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); margin: 0.35rem 0 0; }
@media (min-width: 48em) {
    .timeline::before { left: 50%; transform: translateX(-1px); }
    .timeline__item { width: 50%; padding: 0 2.5rem 1.25rem 0; text-align: right; }
    .timeline__item::before { left: auto; right: -8px; }
    .timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 1.25rem 2.5rem; text-align: left; }
    .timeline__item:nth-child(even)::before { right: auto; left: -8px; }
}

/* ---------- What We Believe ---------- */
.belief-row { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 52em) { .belief-row { grid-template-columns: 1fr 1fr; } }
.belief__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 1rem; }
.belief p { font-size: var(--fs-body); line-height: 1.8; }
.scripture-ref { display: block; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 600; opacity: 0.85; }

/* ---------- Staff ---------- */
.people-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
@media (max-width: 40em) { .people-grid { gap: 1rem; } .person__body { padding: 0.75rem 0.5rem 1rem; } .person__name { font-size: 0.98rem; } }
.person { flex: 0 1 min(15.5rem, calc(50% - 0.9rem)); background: var(--white); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border-radius: var(--radius); overflow: hidden; }
.person__photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; display: block; background: var(--gray); }
.person__body { padding: 1rem 1rem 1.25rem; }
.person__name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.15rem; }
.person__role { font-size: var(--fs-sm); line-height: 1.4; opacity: 0.8; margin-bottom: 0.5rem; }
.person__email { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.person__bio { text-align: left; font-size: var(--fs-sm); line-height: 1.65; margin-top: 0.5rem; }
.person__bio summary { cursor: pointer; text-align: center; color: var(--maroon); font-weight: 600; font-size: var(--fs-sm); padding: 0.5rem; list-style: none; }
.person__bio summary::-webkit-details-marker { display: none; }
.person__bio summary::after { content: " +"; }
.person__bio[open] summary::after { content: " −"; }
.person__bio p { margin-bottom: 0.6rem; }
.person--small { flex-basis: min(9.5rem, calc(33.33% - 0.9rem)); }
.person--small .person__name { font-size: 1rem; }
.people-grid--small { gap: 1.25rem; }
.name-list { list-style: none; padding: 0; margin: 0; columns: 2 10rem; column-gap: 2rem; text-align: center; font-size: 1.05rem; line-height: 2.2; }
@media (min-width: 48em) { .name-list { columns: 3; } }

/* ---------- Contact ---------- */
.contact-top .connect { padding-top: calc(var(--header-h) + var(--band-pad) * 0.75); }
.contact-top .connect__title { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.75rem); }
.benefits__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 1rem; }
.arrow-list--light li::before { color: var(--tan); }

/* ---------- Footer ----------
   Logo · Visit · Resources on one row (stacked and centered on phones), copyright underneath. */
.site-footer { background: var(--charcoal); color: var(--white); font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--tan); }
.site-footer__inner {
    display: grid; gap: 2.25rem; justify-items: center; text-align: center;
    max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
}
.site-footer__logo img { width: 240px; }
.site-footer__heading { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tan); margin-bottom: 0.75rem; }
.site-footer__contact p { margin: 0; line-height: 1.9; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.site-footer__links a { display: inline-block; padding: 0.3rem 0; }
.site-footer__copy { margin: 0; padding: 1.25rem var(--gutter) 1.5rem; text-align: center; font-size: var(--fs-sm); opacity: 0.75; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 52em) {
    .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; justify-items: start; text-align: left; gap: 3rem; }
    .site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
    .site-footer__links--one { grid-template-columns: 1fr; }
}
/* The footer is built in the page builder (Footer): its sections take the old footer's spacing,
   and a three-column row keeps the logo-wide first column. */
.site-footer > .b-section { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.site-footer .b-row { gap: 2.25rem; justify-items: center; text-align: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52em) {
    .site-footer .b-row { justify-items: start; text-align: left; gap: 3rem; }
    .site-footer .b-row--1-1-1 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer .b-row--1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .b-row--1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .site-footer .b-row--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .site-footer .b-row--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.site-header__button { margin-left: 1rem; min-height: 40px; padding: 0.45rem 1.25rem; font-size: 0.95rem; }
@media (max-width: 69.99em) { .site-header__button { margin: 1rem 0 0; } }

/* ---------- Sermons ---------- */
.filter-bar { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.filter-bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filter-bar__label { font-weight: 600; font-size: 0.9rem; margin-right: 0.25rem; }
.filter-bar a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: var(--white); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; border: 1px solid #d6cdb8; }
.filter-bar a:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-bar a[aria-current="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.sermon-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.sermon-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; }
.sermon-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sermon-card:hover .sermon-card__thumb img { transform: scale(1.04); }
.sermon-card__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); }
.sermon-card__body { padding: 1rem 1.25rem 1.25rem; }
.sermon-card__date { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 0.35rem; }
.sermon-card__title { font-size: 1.15rem; line-height: 1.35; font-weight: 600; margin-bottom: 0.25rem; }
.sermon-card__title a { color: var(--text); text-decoration: none; }
.sermon-card__title a::after { content: ""; position: absolute; inset: 0; }
.sermon-card:hover .sermon-card__title a, .sermon-card__title a:focus-visible { color: var(--maroon); }
.sermon-card__meta { font-size: var(--fs-sm); opacity: 0.8; margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
.pager__status { font-size: 0.95rem; }
.sermon-page__player { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2.5rem; }
.video-facade { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade__play { position: relative; }
.video-facade .video-frame, .sermon-page .video-frame { width: 100%; }
.sermon-page__date { font-weight: 600; color: var(--maroon); margin-bottom: 0.25rem; }
.sermon-page__title { font-size: var(--fs-h2); font-weight: 600; }
.sermon-page__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 1.25rem 0; }
.sermon-page__meta dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.sermon-page__meta dd { margin: 0; font-weight: 600; }
.sermon-page__description { margin-top: 1.5rem; }
.sermon-page__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e5e5e5; font-size: 0.95rem; }
.sermon-page__nav a:last-child { text-align: right; }
@media (max-width: 40em) { .sermon-page__nav { grid-template-columns: 1fr; text-align: center; } .sermon-page__nav a:last-child { text-align: center; } }

/* ---------- Recordings ---------- */
.hint-line { font-size: 0.9rem; margin-top: 1rem; opacity: 0.85; }

/* ---------- Simple pages (errors, placeholders) ---------- */
.simple-page { padding: calc(var(--header-h) + var(--band-pad)) 0 var(--band-pad); background: var(--cream); min-height: 60svh; }

/* ---------- Posts & News ---------- */
.page-hero--blur .page-hero__bg { filter: blur(16px) brightness(0.8); transform: scale(1.12); }
.preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #ffbf47; color: #1f1f1f; text-align: center; font-weight: 600; padding: 0.75rem 1rem; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2); }
.post__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .post__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } .post__grid--text { grid-template-columns: minmax(0, 48rem); justify-content: center; } }
.post__flyer { margin: 0; }
.post__flyer img { border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); margin-inline: auto; }
.post__title { font-size: var(--fs-h2); font-weight: 600; }
.post__when { display: flex; align-items: center; gap: 0.6rem; margin: -0.25rem 0 1.25rem; font-weight: 600; color: var(--maroon); }
.post__when svg { flex: none; }
.news-card__when { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 0.35rem; }
.post__notice { background: var(--cream); padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.95rem; }
.post__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--cream); color: var(--maroon); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.tag:hover { background: var(--tan); }
.post__gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); margin-top: 3rem; }
.post__gallery figure { margin: 0; }
.post__gallery img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; }
.news-card__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.news-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__body p { font-size: 1rem; line-height: 1.7; }
.news-card__body .more-link { margin-top: auto; padding-top: 0.5rem; }
.news-card__title { font-size: var(--fs-h3); font-weight: 600; }
.news-card__title a { color: var(--text); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.news-card:hover .news-card__title a, .news-card__title a:focus-visible { color: var(--maroon); text-decoration: underline; }
.archive__year { font-size: var(--fs-h3); font-weight: 600; color: var(--maroon); margin: 2rem 0 0.5rem; }
.archive__list { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: 2.5rem; }
.archive__list li { padding: 0.4rem 0; break-inside: avoid; border-bottom: 1px solid #eee; }

/* ---------- Builder sections ----------
   Pages built in the admin's page builder: section → rows → columns → blocks.
   Sections reuse .band / .hero / .page-hero; these rules add rows, spacing presets and blocks. */
.b-pad--none { padding-block: 0; }
.b-pad--small { padding-block: clamp(2rem, 4vw, 2.5rem); }
.b-pad--medium { padding-block: var(--band-pad); }
.b-pad--large { padding-block: calc(var(--band-pad) * 1.4); }
.b-h--banner, .b-h--screen { display: flex; align-items: center; }
.b-h--banner { min-height: clamp(20rem, 14rem + 16vw, 30rem); }
.b-h--screen { min-height: clamp(34rem, 100svh, 56.25rem); }
.b-h--banner > *, .b-h--screen > * { width: 100%; }
.b-full { width: 100%; }
.b-align--left { text-align: left; }
.b-align--center { text-align: center; }
.b-align--right { text-align: right; }

.b-photo { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--charcoal); }
.b-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.5); }
.b-photo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band--maroon { background: var(--maroon); color: var(--white); }
.band--maroon a:not(.button), .b-photo a:not(.button) { color: var(--white); }

.b-row { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); }
.b-row + .b-row { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.b-valign--center { align-items: center; }
.b-valign--bottom { align-items: end; }
@media (min-width: 48em) {
    .b-row--1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-row--1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
    .b-row--1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
    .b-row--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .b-row--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
@media (max-width: 47.99em) {
    .b-row--phone-reverse > .b-col:last-child { order: -1; }
    .b-col:empty { display: none; }
    .b-hide-phone { display: none !important; }
}
@media (min-width: 48em) { .b-hide-desktop { display: none !important; } }
.b-col { min-width: 0; }
.b-col > * + * { margin-top: 1rem; }
.b-col > :last-child, .b-col > .b-widget:last-child > :last-child { margin-bottom: 0; }
/* Buttons sit a little further from text than a text link does (as on the old homepage). */
.b-align--left .b-col > .b-text + .b-buttons:has(.button) { margin-top: 2rem; }

.b-heading--section { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.b-heading--card { font-size: var(--fs-h3); font-weight: 600; }
/* Centred section titles (Our History, Church Elders…) keep the old pages' space below them. */
.b-align--center .b-heading--section { margin-bottom: 1.5rem; }
.b-col > .b-heading--section + .people-grid, .b-col > .b-heading--section + .name-list { margin-top: 2.5rem; }
.b-text ul, .b-text ol { padding-left: 1.25rem; }
.b-text > :last-child { margin-bottom: 0; }
.b-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.b-align--center .b-buttons, .b-buttons.b-align--center { justify-content: center; }
.b-align--right .b-buttons, .b-buttons.b-align--right { justify-content: flex-end; }
.b-buttons.b-align--left { justify-content: flex-start; }
.button--outline { background: transparent; color: var(--maroon); box-shadow: inset 0 0 0 2px var(--maroon); }
.button--outline:hover, .button--outline:focus-visible { background: var(--maroon); color: var(--white); }
.button--light { background: var(--white); color: var(--maroon); }
.button--light:hover, .button--light:focus-visible { background: var(--cream); color: var(--maroon-dark); }
.b-image { margin: 0; }
.b-image img { width: 100%; }
.b-image--rounded img { border-radius: var(--radius); }
.b-image figcaption { font-size: var(--fs-sm); opacity: 0.8; margin-top: 0.5rem; }
.b-spacer--small { height: 1rem; }
.b-spacer--medium { height: 2.5rem; }
.b-spacer--large { height: 5rem; }
.b-spacer { display: flex; align-items: center; }
.b-spacer hr { width: 100%; border: 0; border-top: 1px solid currentColor; opacity: 0.2; margin: 0; }

/* Admin preview only (data-b-* attributes are never on public pages) */
.is-hidden[data-b-section], .b-widget.is-hidden { opacity: 0.35; }
.b-warning { padding: 1rem; border: 2px dashed var(--maroon); border-radius: var(--radius); color: var(--maroon); background: rgba(255, 255, 255, 0.8); font-size: var(--fs-sm); }
.value-card__title a { color: inherit; text-decoration: none; }
.value-card__title a:hover { color: var(--maroon); text-decoration: underline; }
.b-col .video-facade { border-radius: var(--radius); overflow: hidden; }

/* Photo slideshow block (shares the carousel controls with the News & Events slider) */
.slideshow { position: relative; }
.slideshow__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slideshow__track::-webkit-scrollbar { display: none; }
.slideshow__track:focus-visible { outline-offset: 3px; }
.slideshow__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slideshow__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slideshow--classic .slideshow__img { aspect-ratio: 3 / 2; }
.slideshow--square .slideshow__img { aspect-ratio: 1; }
.slideshow__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; color: var(--white); font-size: var(--fs-sm); font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); text-align: left; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.carousel-controls[hidden] { display: none; }
.carousel-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; opacity: 0.75; transition: opacity 0.2s, background-color 0.2s; }
.carousel-arrow:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: currentColor; opacity: 0.3; cursor: pointer; position: relative; }
.carousel-dot::after { content: ""; position: absolute; inset: -12px; }
.carousel-dot[aria-current="true"] { opacity: 0.9; transform: scale(1.2); }
/* Belief statements keep the wider gap of the old What We Believe page. */
.b-row--1-1:has(.belief) { gap: 2.5rem 4rem; }
.is-empty[data-b-section] { opacity: 0.5; }
.b-empty-note { margin: 0.75rem auto 0; padding: 0.5rem 0.75rem; max-width: 36rem; font-size: var(--fs-sm); text-align: center; border: 1px dashed currentColor; border-radius: var(--radius); }

/* ---------- Post sign-up: box by the details, a button in the banner, a bar on phones ---------- */
.button svg { flex: none; margin-left: 0.5rem; }
.signup-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0 0 1.75rem; padding: 1.1rem 1.25rem; background: var(--cream); border-radius: var(--radius); }
.signup-box__note { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.signup-box--closed { background: #f1f0ec; color: #5f5a52; }
.signup-bar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14); }
.signup-bar[hidden], body.has-player .signup-bar { display: none; }
.signup-bar__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.signup-bar__title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signup-bar__note { font-size: 0.8rem; color: #5f5a52; }
.signup-bar__button { flex: none; min-height: 44px; padding-inline: 1.1rem; }
body.has-signup-bar { padding-bottom: 5rem; }
@media (min-width: 48em) {
    .signup-bar { display: none !important; }
    body.has-signup-bar { padding-bottom: 0; }
}
