/* ==========================================================================
   The Potter's Workshop — public stylesheet
   Palette taken from the live site + the purple/gold logo.
   ========================================================================== */

:root {
    --purple:      #603472;
    --purple-dark: #45244f;
    --purple-soft: #f3eef6;
    --gold:        #dcad47;
    --gold-dark:   #b98d2e;
    --navy:        #002864;
    --ink:         #000f21;
    --body:        #5c5c5c;
    --muted:       #8b8b8b;
    --line:        #e4e0e8;
    --light:       #eff0f2;
    --white:       #ffffff;

    --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Noto Serif', Georgia, 'Times New Roman', serif;

    --shadow-sm: 0 2px 10px rgba(0, 15, 33, .06);
    --shadow-md: 0 10px 30px rgba(0, 15, 33, .10);
    --shadow-lg: 0 20px 50px rgba(0, 15, 33, .14);

    --radius: 10px;
    --container: 1200px;
}

/* ------------------------------------------------------------------ reset -- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--purple); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- buttons -- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 15px 34px;
    border: 2px solid var(--purple);
    border-radius: 4px;
    background: var(--purple);
    color: #fff;
    cursor: pointer;
    transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #fff; transform: translateY(-2px); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: #3a2410; }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #2c1b09; }

.btn--ghost { background: transparent; color: var(--purple); }
.btn--ghost:hover { background: var(--purple); color: #fff; }

.btn--light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--purple); }

.btn--sm { padding: 10px 22px; font-size: .74rem; }

/* Two or more buttons side by side, wrapping cleanly on narrow screens. */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.btn-row--left { justify-content: flex-start; }

/* ----------------------------------------------------------------- topbar -- */
.topbar {
    background: var(--purple-dark);
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    font-family: var(--font-head);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: space-between; min-height: 42px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar__contact span, .topbar__social { display: inline-flex; align-items: center; gap: 8px; }
.topbar__tag { font-style: italic; color: var(--gold); }
/* Scoped away from .social-dot, which sets its own display and hover colours. */
.topbar__social a:not(.social-dot) { color: rgba(255,255,255,.82); display: inline-flex; }
.topbar__social a:not(.social-dot):hover { color: var(--gold); }

/* --------------------------------------------------------------- masthead -- */
.masthead {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 60;
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; color: var(--purple); }
.brand__text em { font-size: .76rem; color: var(--muted); font-style: italic; }

.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
    display: block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 10px 11px;
    border-radius: 4px;
    position: relative;
}
.nav a::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px;
    height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .24s;
}
.nav a:hover { color: var(--purple); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { color: var(--purple); }

/* ----------------------------------------------------------- nav dropdown -- */
.nav .has-sub { position: relative; }

.nav__parent {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-head); font-size: .8rem; font-weight: 500;
    letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
    background: none; border: 0; cursor: pointer;
    padding: 10px 11px; border-radius: 4px; position: relative;
}
.nav__parent::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px;
    height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .24s;
}
.nav__parent:hover { color: var(--purple); }
.nav__parent:hover::after, .nav__parent.is-current::after { transform: scaleX(1); }
.nav__parent.is-current { color: var(--purple); }
.nav__caret { width: 13px; height: 13px; fill: currentColor; transition: transform .22s; }
.has-sub.is-open > .nav__parent .nav__caret { transform: rotate(180deg); }

.nav__sub {
    position: absolute; top: calc(100% - 2px); left: 0;
    min-width: 190px; margin: 0; padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
    z-index: 70;
}
.nav .has-sub:hover > .nav__sub,
.nav .has-sub:focus-within > .nav__sub,
.nav .has-sub.is-open > .nav__sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s ease, transform .22s ease;
}
.nav__sub a {
    display: block; padding: 10px 18px; text-transform: none;
    font-size: .85rem; letter-spacing: 0; border-radius: 0; white-space: nowrap;
}
.nav__sub a::after { display: none; }
.nav__sub a:hover { background: var(--purple-soft); color: var(--purple); padding-left: 22px; }

.nav-toggle {
    display: none; width: 46px; height: 42px; padding: 10px;
    background: var(--purple); border: 0; border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------- hero -- */
/* Bright treatment: the photograph is washed out behind a heavy white veil so
   the copy can be dark, matching the live site. Slides are stacked in a single
   grid cell rather than positioned absolutely, so the hero is always exactly as
   tall as its tallest slide. */
.hero {
    position: relative;
    display: grid;
    overflow: hidden;
    background: #fff;
    border-bottom: 16px solid var(--purple);
}

.hero__slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    align-items: center;
    min-height: 640px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }

/* Background photo + the veil that brightens it. */
.hero__slide::before,
.hero__slide::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
}
/* The photo sits at low opacity over the hero's white background — that is what
   produces the pale look. It is also desaturated and lifted, because a strongly
   coloured source (the red-curtain shots) still reads as a colour cast at low
   opacity. Tune `opacity` and the grayscale amount to taste. */
.hero__slide::before {
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: .3;
    filter: grayscale(.72) brightness(1.18) contrast(.88);
    animation: heroZoom 18s ease-out infinite alternate;
}
/* Feather the left and right edges out to solid white. */
.hero__slide::after {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 16%,
                                       rgba(255,255,255,0) 84%, #fff 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero__content { position: relative; z-index: 2; padding: 80px 24px; }
.hero__content--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: end;
    gap: 20px;
    padding-bottom: 0;
}
.hero__content--center { text-align: center; max-width: 900px; margin: 0 auto; }

.hero__text { padding-bottom: 80px; }
.hero__content--center .hero__text { padding-bottom: 0; }

.hero__icon { color: var(--purple); margin-bottom: 14px; }
.hero__icon svg { width: 100px; height: 36px; }
.hero__content--center .hero__icon svg { width: 62px; height: 56px; }
.hero__content--center .hero__icon { display: flex; justify-content: center; }

/* The eyebrow sits beside the icon on the split layout, above it when centred. */
.hero__content--split .hero__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.hero__content--split .hero__icon { margin-bottom: 0; }

.hero__eyebrow {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    color: var(--purple);
    margin: 0;
    line-height: 1.2;
}
.hero h1 {
    color: var(--ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: 22px;
}
.hero p {
    color: var(--body);
    font-size: 1.02rem;
    max-width: 660px;
    margin-bottom: 32px;
}
.hero__content--center p { margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__content--center .hero__actions { justify-content: center; }

/* Cut-out portrait, bottom-aligned so it meets the purple bar. */
.hero__figure { align-self: end; justify-self: center; }
.hero__figure img {
    display: block;
    max-height: 620px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 34px rgba(30, 12, 42, .18));
}

.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 56px; height: 56px; border-radius: 50%;
    border: 0; background: var(--purple); color: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: background .2s, transform .2s;
}
.hero__arrow:hover { background: var(--purple-dark); transform: translateY(-50%) scale(1.06); }
.hero__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.hero__arrow--prev { left: 26px; }
.hero__arrow--next { right: 26px; }

/* --------------------------------------------------------------- pagehead -- */
.pagehead {
    background-size: cover; background-position: center;
    color: #fff; text-align: center; padding: 92px 0 84px;
}
.pagehead h1 { color: #fff; margin-bottom: 10px; }
.pagehead p { color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto 14px; }
.crumbs { font-family: var(--font-head); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.crumbs a { color: var(--gold); }
.crumbs span { margin: 0 8px; }

/* --------------------------------------------------------------- sections -- */
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--light { background: var(--light); }
.section--soft  { background: var(--purple-soft); }
.section--dark  { background: var(--purple-dark); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head--left { text-align: left; margin-left: 0; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: .26em; font-size: .74rem;
    color: var(--gold-dark); margin-bottom: 10px;
}
.section--dark .eyebrow { color: var(--gold); }
.section-head p { margin-bottom: 0; }

.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 16px auto 0; }
.section-head--left .rule { margin-left: 0; }

/* ------------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.grid--split { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }

/* Article list + sidebar (blog.php, post.php). */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: start; }
.sidebar-card { padding: 24px 26px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a { font-family: var(--font-head); font-size: .9rem; }
.sidebar-list small { color: var(--muted); }

/* ------------------------------------------------------------------ cards -- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 10; background: var(--light); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card__meta {
    font-family: var(--font-head); font-size: .74rem; text-transform: uppercase;
    letter-spacing: .09em; color: var(--gold-dark); margin-bottom: 8px;
    display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.card__body h3 { margin-bottom: 10px; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--purple); }
.card__body p { font-size: .95rem; }
.card__foot { margin-top: auto; padding-top: 14px; }

/* ---------------------------------------------------------------- sermons -- */
.sermon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.sermon:hover { box-shadow: var(--shadow-md); }
.sermon__head { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px 16px; }
.sermon__date {
    flex: none; width: 68px; text-align: center; border-radius: 8px; overflow: hidden;
    font-family: var(--font-head); box-shadow: var(--shadow-sm);
}
.sermon__date b { display: block; background: var(--purple); color: #fff; font-size: 1.5rem; padding: 8px 0 4px; font-weight: 600; }
.sermon__date span { display: block; background: var(--gold); color: #3a2410; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 0 6px; }
.sermon__title { margin: 0 0 6px; font-size: 1.15rem; }
.sermon__meta { font-family: var(--font-head); font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sermon__meta strong { color: var(--purple); font-weight: 600; }
.sermon__desc { padding: 0 26px; font-size: .94rem; }
.sermon__player { padding: 6px 26px 22px; }
.sermon__player audio { width: 100%; height: 40px; }
.sermon__foot {
    display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
    padding: 14px 26px; border-top: 1px solid var(--line); background: #fbfafc;
    font-family: var(--font-head); font-size: .78rem;
}
.sermon__foot a { display: inline-flex; align-items: center; gap: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 42px; }
.filters input[type="search"], .filters select {
    font-family: var(--font-body); font-size: .95rem; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--body); min-width: 190px;
}
.filters input[type="search"] { min-width: 280px; }

/* ---------------------------------------------------------------- gallery -- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--light); border: 0; padding: 0; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 34px 18px 16px; text-align: left;
    background: linear-gradient(transparent, rgba(20,10,28,.88));
    color: #fff; font-family: var(--font-head); font-size: .86rem;
    opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }

/* ------------------------------------------------- homepage gallery mosaic -- */
.gallery-showcase__head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px 56px;
    align-items: end; margin-bottom: 40px;
}
.gallery-showcase__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gallery-showcase__aside p { margin-bottom: 14px; }

/* 4 columns x 3 rows: one hero tile, four squares, two wide tiles. */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 158px;
    gap: 16px;
}
.mosaic__item {
    position: relative; margin: 0; overflow: hidden; cursor: zoom-in;
    border-radius: var(--radius); background: var(--light);
    border: 0; padding: 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease, transform .3s ease;
}
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(6),
.mosaic__item:nth-child(7) { grid-column: span 2; }

.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.mosaic__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mosaic__item:hover img { transform: scale(1.1); }

.mosaic__veil {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(rgba(96,52,114,.55), rgba(45,20,55,.75));
    opacity: 0; transition: opacity .35s ease;
}
.mosaic__veil svg { width: 30px; height: 30px; fill: #fff; transform: scale(.6); transition: transform .35s ease; }
.mosaic__item:hover .mosaic__veil,
.mosaic__item:focus-visible .mosaic__veil { opacity: 1; }
.mosaic__item:hover .mosaic__veil svg { transform: scale(1); }

.mosaic__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px; text-align: left;
    background: linear-gradient(transparent, rgba(20,10,28,.85));
    color: #fff; font-family: var(--font-head); font-size: .84rem;
    transform: translateY(100%); transition: transform .35s ease;
}
.mosaic__item:hover figcaption, .mosaic__item:focus-visible figcaption { transform: none; }

/* -------------------------------------------------------------- lightbox -- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(12, 5, 18, .94);
    display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1000px; max-height: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: rgba(255,255,255,.8); font-family: var(--font-head); font-size: .9rem; margin-top: 14px; }
.lightbox__close, .lightbox__nav {
    background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
    display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--purple); }
.lightbox__close { position: absolute; top: 22px; right: 22px; font-size: 1.6rem; }

/* ================================================================ motion == */

/* Scroll reveals. Elements marked [data-reveal] start offset and fade into
   place the first time they enter the viewport. [data-reveal-group] staggers
   its own children automatically. */
[data-reveal],
[data-reveal-group] > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s cubic-bezier(.22,.61,.36,1),
                transform .75s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"]  { transform: scale(.93); }

[data-reveal].is-visible,
[data-reveal-group] > .is-visible {
    opacity: 1;
    transform: none;
}

/* Slow Ken Burns drift on photographic section backgrounds. */
.has-kenburns { position: relative; overflow: hidden; isolation: isolate; }
.has-kenburns::before {
    content: ""; position: absolute; inset: -4%;
    background-image: var(--kb-bg);
    background-size: cover; background-position: center;
    animation: kenburns 26s ease-in-out infinite alternate;
    z-index: -2;
}
@keyframes kenburns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

/* Two soft colour orbs drifting behind a section. Purely decorative. */
.has-orbs { position: relative; overflow: hidden; isolation: isolate; }
.has-orbs::before,
.has-orbs::after {
    content: ""; position: absolute; border-radius: 50%; z-index: -1;
    filter: blur(60px); opacity: .5; pointer-events: none;
}
.has-orbs::before {
    width: 420px; height: 420px; top: -140px; left: -120px;
    background: radial-gradient(circle, rgba(96,52,114,.30), transparent 68%);
    animation: drift 22s ease-in-out infinite alternate;
}
.has-orbs::after {
    width: 380px; height: 380px; bottom: -150px; right: -110px;
    background: radial-gradient(circle, rgba(220,173,71,.34), transparent 68%);
    animation: drift 18s ease-in-out infinite alternate-reverse;
}
.section--dark.has-orbs::before { background: radial-gradient(circle, rgba(220,173,71,.28), transparent 68%); }
.section--dark.has-orbs::after  { background: radial-gradient(circle, rgba(131,178,199,.26), transparent 68%); }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 44px, 0) scale(1.18); }
}

/* The gold rule under a section heading draws itself in. */
.rule { transform-origin: left; }
[data-reveal] .rule, [data-reveal-group] > * .rule { transform: scaleX(0); transition: transform .8s .25s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-visible .rule, [data-reveal-group] > .is-visible .rule { transform: scaleX(1); }

/* Anyone who has asked their system to reduce motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal], [data-reveal-group] > *, [data-reveal] .rule {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------- scripture -- */
.scripture {
    background: linear-gradient(rgba(69,36,79,.9), rgba(69,36,79,.9)) center/cover;
    color: #fff; text-align: center; padding: 76px 0;
}
/* When the scripture band carries a Ken Burns photo, the tint becomes an
   overlay on top of it rather than a background of its own. */
.scripture.has-kenburns { background: var(--purple-dark); }
.scripture.has-kenburns::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(rgba(69,36,79,.9), rgba(69,36,79,.9));
}
.scripture blockquote { margin: 0 auto; max-width: 860px; font-size: 1.25rem; font-style: italic; line-height: 1.9; }
.scripture cite { display: block; margin-top: 18px; font-family: var(--font-head); font-style: normal; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }

/* ------------------------------------------------------------------ about -- */
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-figure__badge {
    position: absolute; right: -14px; bottom: -14px;
    background: var(--gold); color: #3a2410; padding: 20px 26px; border-radius: var(--radius);
    font-family: var(--font-head); text-align: center; box-shadow: var(--shadow-md);
}
.about-figure__badge b { display: block; font-size: 1.9rem; line-height: 1; }
.about-figure__badge span { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }

/* ------------------------------------------------------------------ steps -- */
.steps { list-style: none; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 28px; text-align: center; position: relative;
}
.steps li::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--purple-soft); color: var(--purple);
    font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: .94rem; }

/* ------------------------------------------------------- weekly schedule -- */
.schedule {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.schedule__day {
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
    border-radius: var(--radius); padding: 26px 24px 22px; text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.schedule__day:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.schedule__day h3 {
    font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--purple); margin-bottom: 16px;
}
.schedule__day p { margin: 0 0 14px; }
.schedule__day p:last-child { margin-bottom: 0; }
.schedule__day strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .96rem; }
.schedule__day em { font-style: normal; font-family: var(--font-head); font-size: .84rem; color: var(--gold-dark); }

/* --------------------------------------------------------------- ministry -- */
.ministry-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ministry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.ministry-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--purple-soft); }
.ministry-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.ministry-card:hover .ministry-card__media img { transform: scale(1.07); }

/* Icon badge straddling the photo and the body. */
.ministry-card__icon {
    position: absolute; left: 26px; bottom: -26px;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--purple);
    box-shadow: 0 4px 16px rgba(0, 15, 33, .16);
    border: 3px solid #fff;
}
.ministry-card__icon .ico { width: 26px; height: 26px; }

.ministry-card__body { padding: 42px 28px 30px; flex: 1; }
.ministry-card h3 { margin-bottom: 10px; }
.ministry-card p { margin: 0; font-size: .95rem; }

/* ---------------------------------------------------------------- leaders -- */
/* Four across, each portrait capped so it stays modest, and a short final row
   centres itself rather than hugging the left edge. */
.leader-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 30px 26px; margin: 0; padding: 0; list-style: none;
}
/* Fixed basis so exactly four sit on a row; the portrait inside is what is
   capped, which keeps the images modest without letting a fifth squeeze in. */
.leader-grid > .leader { flex: 0 0 calc(25% - 19.5px); }

.leader { text-align: center; }
.leader__photo {
    aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
    background: var(--purple-soft); margin: 0 auto 14px;
    max-width: 190px;
}
.leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader h3 { margin-bottom: 2px; font-size: .98rem; }
.leader span { font-family: var(--font-head); font-size: .72rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .09em; }

/* --------------------------------------------------------- homepage map -- */
.home-map {
    margin-top: 34px;
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.home-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.home-map__foot {
    display: flex; flex-wrap: wrap; gap: 12px 18px;
    align-items: center; justify-content: space-between;
    padding: 14px 20px; background: #fbfafc; border-top: 1px solid var(--line);
    font-family: var(--font-head); font-size: .86rem; color: var(--ink);
}

/* ------------------------------------------------------------ portal CTAs -- */
.portal-cta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
/* A lone card would sit in half the width with an empty gap beside it. */
.portal-cta--single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.portal-card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--purple);
    border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.portal-card--gold { border-top-color: var(--gold); }
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portal-card__icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: var(--purple-soft); color: var(--purple); margin-bottom: 16px;
}
.portal-card--gold .portal-card__icon { background: #fdf4e2; color: var(--gold-dark); }
.portal-card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.portal-card h3 { margin-bottom: 8px; }
.portal-card p { font-size: .95rem; }
.portal-card .btn { margin-top: auto; }
.portal-card .ext { font-size: .78rem; color: var(--muted); font-family: var(--font-head); margin: 10px 0 0; }

/* ------------------------------------------------------------------ habits -- */
.habits { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.habit {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-left: 3px solid var(--gold); border-radius: 8px; padding: 26px 28px;
}
.habit b {
    display: block; font-family: var(--font-head); font-size: .74rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.habit h3 { font-size: 1.05rem; margin-bottom: 10px; }
.habit p { margin: 0; font-size: .92rem; font-style: italic; color: rgba(255,255,255,.72); }

/* -------------------------------------------------------------- newsletter -- */
.newsletter { background: var(--gold); color: #3a2410; padding: 56px 0; }
.newsletter__inner { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.newsletter h2 { color: #2c1b09; margin-bottom: 4px; font-size: 1.6rem; }
.newsletter p { margin: 0; color: #5a3d16; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input {
    font-family: var(--font-body); font-size: .96rem; padding: 15px 18px; min-width: 280px;
    border: 0; border-radius: 4px; background: #fff; color: var(--body);
}
.newsletter .btn { background: #3a2410; border-color: #3a2410; color: #fff; }
.newsletter .btn:hover { background: #23150a; border-color: #23150a; }

/* ------------------------------------------------------------------ forms -- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    font-family: var(--font-body); font-size: .98rem; padding: 13px 15px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--body);
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(96,52,114,.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field small { color: var(--muted); font-size: .8rem; font-family: var(--font-head); }

/* ------------------------------------------------------------------ alerts -- */
.alert {
    border-radius: 8px; padding: 15px 20px; margin: 24px 0;
    font-family: var(--font-head); font-size: .92rem; border-left: 4px solid;
}
.alert--success { background: #eaf7ee; border-color: #2e7d43; color: #1d5a2f; }
.alert--error   { background: #fdecea; border-color: #d93025; color: #8b1a10; }
.alert--info    { background: var(--purple-soft); border-color: var(--purple); color: var(--purple-dark); }

/* ------------------------------------------------------------------ panel -- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; }
.panel--accent { border-top: 4px solid var(--gold); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico-box {
    flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--purple-soft); color: var(--purple);
}
.info-list .ico-box .ico { width: 20px; height: 20px; }
.info-list h3 { font-size: .95rem; margin-bottom: 2px; }
.info-list p { margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------- calendar -- */
.cal { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal th {
    background: var(--purple); color: #fff; font-family: var(--font-head); font-weight: 600;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 14px 8px;
}
.cal td { border: 1px solid var(--line); vertical-align: top; height: 118px; width: 14.28%; padding: 8px; }
.cal td.is-other { background: #fafafb; color: #c4c4c4; }
.cal td.is-today { background: #fffaf0; box-shadow: inset 0 0 0 2px var(--gold); }
.cal .daynum { font-family: var(--font-head); font-size: .84rem; font-weight: 600; color: var(--ink); }
.cal td.is-other .daynum { color: #c4c4c4; }
.cal .ev {
    display: block; margin-top: 5px; padding: 4px 7px; border-radius: 4px;
    background: var(--purple-soft); color: var(--purple-dark);
    font-family: var(--font-head); font-size: .69rem; line-height: 1.35;
}
.cal .ev b { display: block; font-weight: 600; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cal-nav h2 { margin: 0; }

/* ------------------------------------------------------------------- misc -- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
    font-family: var(--font-head); font-size: .86rem; min-width: 42px; height: 42px;
    display: grid; place-items: center; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.pagination a:hover { border-color: var(--purple); color: var(--purple); }
.pagination .is-current { background: var(--purple); border-color: var(--purple); color: #fff; }

.empty { text-align: center; padding: 70px 24px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; fill: var(--line); margin-bottom: 14px; }

.tag {
    display: inline-block; font-family: var(--font-head); font-size: .72rem;
    padding: 4px 11px; border-radius: 999px; background: var(--purple-soft);
    color: var(--purple); margin: 0 5px 5px 0;
}

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote {
    margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold);
    font-style: italic; color: var(--ink);
}

/* ------------------------------------------------------- pre-footer guard -- */
/*
 * Convention: a page should end on a light section, so the dark footer reads as
 * a deliberate edge rather than one dark block colliding with another.
 *
 * Pages are ordered to do that already. This is the safety net: if a dark band
 * ever ends up last, it gets a white strip beneath it instead of butting
 * straight into the footer. Costs nothing on a correctly ordered page.
 */
main > .scripture:last-child,
main > .section--dark:last-child,
main > .hero:last-child {
    border-bottom: 56px solid #fff;
}

/* --------------------------------------------------------------- back to top -- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--purple); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(30, 12, 42, .3);
    opacity: 0; transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold); color: #3a2410; }
.to-top svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 639.98px) {
    .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .to-top { transition: opacity .2s ease; transform: none; }
}

/* ------------------------------------------------------------------ footer -- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); font-size: .94rem; padding-top: 72px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; padding-bottom: 60px; }
.footer h3 {
    color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em;
    margin-bottom: 22px; padding-bottom: 12px; position: relative;
}
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.brand--footer { margin-bottom: 18px; }
.brand--footer img { width: 64px; height: 64px; background: rgba(255,255,255,.9); border-radius: 8px; padding: 4px; }

.footer__links, .footer__times, .footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { color: rgba(255,255,255,.66); font-size: .92rem; }
.footer__links a:hover { color: var(--gold); padding-left: 4px; }

.footer__times li { margin-bottom: 16px; line-height: 1.5; }
.footer__times strong { display: block; color: #fff; font-family: var(--font-head); font-size: .88rem; }
.footer__times span { display: block; font-size: .9rem; }
.footer__times em { color: var(--gold); font-style: normal; font-size: .84rem; font-family: var(--font-head); }

.footer__contact li { display: flex; gap: 12px; margin-bottom: 18px; line-height: 1.6; }
.footer__contact .ico { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.footer__bar-inner { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.footer__bar p { margin: 0; font-size: .86rem; }
.footer__bar a:not(.social-dot) { color: rgba(255,255,255,.66); }
.footer__bar a:not(.social-dot):hover { color: var(--gold); }

.footer__meta { display: flex; align-items: center; gap: 16px; }

/* Circular social button. */
.social-dot {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .8);
    transition: background .22s, border-color .22s, color .22s, transform .22s;
}
.social-dot svg { width: 17px; height: 17px; fill: currentColor; }
.social-dot:hover {
    background: var(--gold); border-color: var(--gold);
    color: #3a2410; transform: translateY(-2px);
}
/* Compact variant for the slim top bar. */
.social-dot--sm { width: 26px; height: 26px; }
.social-dot--sm svg { width: 13px; height: 13px; }
.social-dot--sm:hover { transform: none; }

/* ------------------------------------------------------------ responsive -- */
/* Ten nav items plus the brand need ~1150px on one line. Below that, tighten
   the nav so it never wraps to a second row. */
@media (max-width: 1199.98px) {
    .nav a { padding: 10px 7px; font-size: .72rem; }
    .nav a::after { left: 7px; right: 7px; }
    .brand img { width: 48px; height: 48px; }
    .brand__text strong { font-size: .95rem; }
    .brand__text em { font-size: .7rem; }
}

@media (max-width: 1080px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Fractional bound: on fractional-DPI screens the CSS viewport can be e.g.
   1023.2px, which an integer `max-width: 1023px` misses. */
@media (max-width: 1023.98px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav.is-open { max-height: 70vh; overflow-y: auto; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
    .nav a { padding: 13px 24px; font-size: .84rem; border-radius: 0; }
    .nav a::after { display: none; }
    .brand img { width: 52px; height: 52px; }
    .brand__text strong { font-size: 1.05rem; }

    /* Dropdown becomes an inline accordion inside the slide-down menu. */
    .nav__parent {
        width: 100%; justify-content: space-between;
        padding: 13px 24px; font-size: .84rem; border-radius: 0;
    }
    .nav__parent::after { display: none; }
    .nav__sub {
        position: static; min-width: 0; padding: 0;
        border: 0; border-radius: 0; box-shadow: none;
        background: var(--purple-soft);
        opacity: 1; visibility: visible; transform: none;
        max-height: 0; overflow: hidden;
        transition: max-height .28s ease;
    }
    .nav .has-sub:hover > .nav__sub,
    .nav .has-sub:focus-within > .nav__sub { max-height: 0; }
    .nav .has-sub.is-open > .nav__sub { max-height: 220px; }
    .nav__sub a { padding: 12px 24px 12px 38px; }
    .nav__sub a:hover { padding-left: 38px; }
    .nav a.is-current { background: var(--purple-soft); }
    .masthead__inner { position: relative; }

    .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
    .grid--5 { grid-template-columns: repeat(3, 1fr); }
    .leader-grid > .leader { flex-basis: calc(33.333% - 18px); }
    .grid--split, .with-sidebar { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 64px 0; }

    /* Drop the portrait and centre every slide once there is no room beside it. */
    .hero__slide { min-height: 520px; }
    .hero__figure { display: none; }
    .hero__content--split {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 80px;
    }
    .hero__content--split .hero__head { flex-direction: column; gap: 10px; }
    .hero__content--split .hero__text { padding-bottom: 0; }
    .hero__content--split p { margin-left: auto; margin-right: auto; }
    .hero__content--split .hero__actions { justify-content: center; }
    .hero__arrow { width: 46px; height: 46px; }
    .hero__arrow--prev { left: 12px; }
    .hero__arrow--next { right: 12px; }

    /* Sideways reveals would stick out past a narrow viewport while they are
       mid-transition and create a horizontal scrollbar, so drop to vertical. */
    [data-reveal="left"], [data-reveal="right"] { transform: translateY(26px); }

    .gallery-showcase__head { grid-template-columns: 1fr; align-items: start; }
    .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; }
    .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .mosaic__item:nth-child(6),
    .mosaic__item:nth-child(7) { grid-column: span 3; }
}

@media (max-width: 639.98px) {
    .topbar__contact span:first-child { display: none; }
    .hero__slide { min-height: 460px; }
    .hero__content { padding: 60px 20px; }
    .hero__content--split { padding-bottom: 60px; }
    /* Keep the arrows clear of the copy on narrow screens. */
    .hero__arrow { width: 40px; height: 40px; }
    .hero__arrow--prev { left: 6px; }
    .hero__arrow--next { right: 6px; }
    .hero__content { padding-left: 52px; padding-right: 52px; }
    .grid--2, .grid--3, .grid--4, .steps, .form-grid { grid-template-columns: 1fr; }
    .grid--5 { grid-template-columns: repeat(2, 1fr); }
    .portal-cta { grid-template-columns: 1fr; }
    .leader-grid > .leader { flex-basis: calc(50% - 13px); }
    .home-map iframe { height: 240px; }
    .footer__grid { grid-template-columns: 1fr; gap: 34px; }
    .panel { padding: 26px 22px; }
    .sermon__head { padding: 20px 20px 14px; }
    .sermon__desc, .sermon__player { padding-left: 20px; padding-right: 20px; }
    .sermon__foot { padding: 12px 20px; }
    .filters input[type="search"], .filters select { min-width: 100%; }
    .newsletter input { min-width: 100%; }
    .newsletter form { width: 100%; }
    .cal td { height: auto; min-height: 64px; font-size: .8rem; }
    .about-figure__badge { right: 10px; bottom: -10px; padding: 14px 18px; }

    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 12px; }
    .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .mosaic__item:nth-child(6),
    .mosaic__item:nth-child(7) { grid-column: span 2; }
    /* Touch devices have no hover, so keep the caption permanently visible. */
    .mosaic__item figcaption { transform: none; padding-top: 20px; font-size: .78rem; }
}
