/* Whitehall — a theme for small community churches
   Colour: steeple blue #142A47, ochre #F0C070, stone #EDF2F7
   Type:   Libre Baskerville (display) / Source Sans 3 (text)
   All sizing is in rem, so the "larger text" switch scales the whole site. */

:root {
    --navy: #142A47;
    --navy-deep: #0E1F36;
    --navy-line: #2C4560;
    --gold: #F0C070;
    --gold-ink: #A8763B;
    --stone: #EDF2F7;
    --stone-line: #DCE6EF;
    --ink: #33475E;
    --ink-soft: #5C7893;
    --white: #FFFFFF;
    --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wrap: 45rem;        /* 720px reading column */
    --wrap-wide: 65rem;   /* 1040px wide break */
    --content: 82rem;     /* widest the content ever gets */
    --gutter: clamp(1.15rem, 4vw, 3.5rem);  /* inset, grows with the screen */
    --ease: cubic-bezier(.22, .7, .2, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.text-lg { font-size: 21px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

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

body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.125rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* Dim/blur everything behind the open mobile menu so the links always read. */
.nav-scrim { display: none; }

/* Full-bleed page; only the content inside is capped. */
.site { position: relative; background: var(--stone); }

/* Anything that should line up with the content column. */
.hero-panels,
.bar-inner,
.utility-bar-inner,
.site-header-inner,
.home-grid,
.site-footer-inner,
.site-credit-inner {
    width: min(100% - var(--gutter) * 2, var(--content));
    margin-inline: auto;
}

/* The masthead is a CHILD of the hero, so it always sits on the photograph. */
.hero > .site-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}
.hero > .site-top .site-header { background: transparent; }
.hero > .site-top .utility-bar { background: transparent; color: #DCE6EF; }
.hero > .site-top .utility-bar a { color: #DCE6EF; }
.hero > .site-top .site-header-inner { padding-top: .5rem; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.22; margin: 0; text-wrap: pretty; }

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

.screen-reader-text {
    position: absolute; 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: -9999px; top: 0; z-index: 100;
    background: var(--gold); color: var(--navy); font-weight: 700; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; padding: 0; }
.wrap-wide { width: min(100% - var(--gutter) * 2, var(--wrap-wide)); }

.eyebrow {
    font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    font-weight: 700; margin: 0;
}
.eyebrow-gold { color: var(--gold-ink); }
.eyebrow-accent { color: var(--gold); }

.section-title {
    font-size: 1.7rem; padding-bottom: .6rem; margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--navy);
}

.empty { font-size: 1.15rem; color: var(--ink-soft); padding: 2rem 0; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-block; white-space: nowrap; font-family: var(--sans); font-size: 1.05rem; font-weight: 700;
    padding: .95rem 1.75rem; border: 0; border-radius: 3px; cursor: pointer;
    text-align: center; min-height: 2.75rem;
    transition: transform .22s var(--ease), box-shadow .22s ease, background-color .22s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 .5rem 1.1rem rgba(20, 42, 71, .25); }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-accent:hover { color: var(--navy); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { color: var(--white); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { color: var(--navy); }
.btn-disabled { border: 1px solid var(--stone-line); color: #9FB2C4; background: transparent; }
.btn-disabled:hover { transform: none; box-shadow: none; }

/* ---- Announcement bar (Ghost injects this above everything) ----------- */
#announcement-bar-root { position: relative; z-index: 20; }
#announcement-bar-root .gh-announcement-bar,
.gh-announcement-bar {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-family: var(--sans) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}
.gh-announcement-bar a { color: var(--navy) !important; text-decoration: underline; }

/* ---- Utility bar ------------------------------------------------------ */
.utility-bar { background: var(--navy-deep); color: #B9CBDD; font-size: .95rem; position: relative; z-index: 6; }
.utility-bar a { color: #B9CBDD; }
.utility-bar-inner {
    padding: .5rem 0;
    display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; align-items: center;
    line-height: 1.4;
}
.utility-times { white-space: nowrap; }
.utility-contact { margin-right: auto; white-space: nowrap; }
.text-size { display: flex; align-items: center; gap: .4rem; margin-left: auto; white-space: nowrap; }
.text-size-label { font-size: .9rem; opacity: .85; }
.text-size-btn {
    font-family: var(--sans); font-weight: 700; color: #B9CBDD; background: transparent;
    border: 1px solid var(--navy-line); padding: .25rem .6rem; cursor: pointer; line-height: 1.2;
    min-width: 2rem;
}
.text-size-btn-lg { font-size: 1.2rem; }
.text-size-btn[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---- Header ----------------------------------------------------------- */
.site-header { background: var(--navy); position: relative; z-index: 6; }
.site-header-inner {
    padding: 1.1rem 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; max-width: 26rem; min-width: 0; }
.site-brand-text { min-width: 0; }
.site-brand:hover { text-decoration: none; }
.site-logo { max-height: 3rem; width: auto; }
.site-mark { height: 3.1rem; width: auto; flex: none; }
.site-tagline { line-height: 1.45; }
.site-title { display: block; font-family: var(--serif); font-size: clamp(1.15rem, .9rem + .7vw, 1.45rem); color: var(--white); line-height: 1.2; }
.site-tagline { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; white-space: nowrap; }

.site-nav .nav-list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    position: relative; color: var(--white); font-size: 1.05rem; font-weight: 600;
    padding: .35rem 0; display: inline-block; transition: color .25s ease;
}
.site-nav a:hover { text-decoration: none; }
.site-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current]::after,
.nav-item-current > a::after { transform: scaleX(1); }

.nav-toggle {
    display: none; background: transparent; border: 0; cursor: pointer; padding: .6rem;
    min-width: 2.75rem; min-height: 2.75rem;
}
.nav-toggle-bars { position: relative; display: block; width: 1.7rem; height: 1.15rem; }
.nav-toggle-bars span {
    position: absolute; left: 0; width: 100%; height: .19rem; background: var(--white); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .16s ease, top .25s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - .19rem); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
    .nav-toggle-bars span { transition: none; }
}

/* ---- Hero -------------------------------------------------------------
   ONE self-contained block. The photograph is an absolutely-positioned
   background layer; the masthead and the panels are ordinary flow children
   on top of it. Nothing here depends on a body class or a sibling element. */

.hero {
    --hero-img: clamp(20rem, 50vw, 48rem);           /* photo band, ~2:1 as in the mock-up */
    --hero-overlap: 4.5rem;                          /* how far the panels dip into it */
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--stone);
}

/* The photograph occupies only the TOP of the hero, so the panels overhang
   onto the page background instead of covering the building. */
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0;
    height: var(--hero-img); z-index: 0; overflow: hidden;
    background: var(--navy);
}
.hero-image {
    width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
    animation: slowPan 26s ease-in-out infinite alternate both;
}
.hero-scrim {
    position: absolute; inset: 0; display: block;
    background:
        linear-gradient(180deg, rgba(20, 42, 71, .70) 0%, rgba(20, 42, 71, .26) 22%, rgba(20, 42, 71, 0) 42%),
        linear-gradient(0deg, rgba(20, 42, 71, .35) 0%, rgba(20, 42, 71, 0) 22%);
}
@keyframes slowPan {
    from { transform: scale(1.06); }
    to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}

/* Masthead: in flow, at the top of the photograph. */
.hero > .site-header { position: relative; z-index: 3; background: transparent; }

/* Holds the panels down to the foot of the photograph. */
.hero-fill { min-height: max(3rem, calc(var(--hero-img) - 5.6rem - var(--hero-overlap))); }

.hero-panels {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.32fr 1fr;
}
.hero-panel { padding: 2.6rem 2.4rem; }
.hero-panel-dark { background: var(--navy); color: #CBDAE8; }
.hero-panel-light { background: var(--white); display: flex; flex-direction: column; }
@keyframes riseIn { from { opacity: 0; transform: translateY(1.4rem); } to { opacity: 1; transform: none; } }

.hero-heading { font-size: clamp(2rem, 1.3rem + 2.1vw, 2.9rem); color: var(--white); margin-top: .7rem; }
.hero-intro { font-size: 1.25rem; line-height: 1.68; margin: 1rem 0 0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.times { margin: 1rem 0 0; }
.times-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .8rem 0; border-bottom: 1px solid var(--stone-line);
    transition: background-color .25s ease, padding-left .25s ease;
}
.times-row:hover { background: #F7FAFD; padding-left: .5rem; }
.times-row dt { font-size: 1.15rem; color: var(--ink); margin: 0; }
.times-row dd { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); margin: 0; }
.times-note { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); border-top: 1px solid var(--stone-line); padding-top: 1rem; margin-top: auto; }
.times-note strong { color: var(--navy); }

/* Larger-text mode: shorten the photograph so the panels stay in view, and
   give the masthead its own row so the church name never wraps. */
html.text-lg .hero { --hero-img: clamp(15rem, 34vw, 30rem); }
html.text-lg .site-header-inner { flex-wrap: wrap; row-gap: .4rem; }
html.text-lg .site-brand { flex: 1 1 100%; max-width: none; }
html.text-lg .site-title { white-space: nowrap; }
html.text-lg .site-nav { flex-basis: 100%; }
html.text-lg .site-nav .nav-list { gap: 1.5rem; flex-wrap: wrap; }

/* ---- Home cards ------------------------------------------------------- */
.home-grid {
    padding: 2.75rem 0 3.25rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.home-card {
    background: var(--white); padding: 1.9rem; display: flex; flex-direction: column; gap: .6rem;
    opacity: 0; transform: translateY(1.2rem);
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.home-card.is-visible { animation: riseIn .8s var(--ease) both; }
.home-card:hover { transform: translateY(-5px); box-shadow: 0 .9rem 1.9rem rgba(20, 42, 71, .16); }
.home-card-dark { background: var(--navy); color: #CBDAE8; }
.home-card-title { font-size: 1.5rem; }
.home-card-title a { color: var(--navy); }
.home-card-excerpt { margin: 0; font-size: 1.05rem; line-height: 1.62; color: #4A5C71; }
.home-card-link { font-weight: 700; margin-top: auto; }

/* ---- Page heads ------------------------------------------------------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--stone-line); padding: 2.75rem 0; }
.page-title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); margin-top: .5rem; }
.page-lede { font-size: 1.25rem; line-height: 1.65; color: var(--ink-soft); margin: .85rem 0 0; max-width: 62ch; }

/* ---- Two-column static pages (About) --------------------------------- */
.split-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.75rem; padding: 2.75rem 0 3.25rem; }
.split-main > p { font-size: 1.2rem; line-height: 1.78; margin: 0 0 1.3rem; }
.rule-heading { font-size: 1.7rem; margin: 1.9rem 0 .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--navy); }
.split-photo { width: 100%; margin-top: 1.5rem; }
.split-aside { display: flex; flex-direction: column; gap: 1.4rem; }

.timeline { margin: .9rem 0 0; display: flex; flex-direction: column; gap: .8rem; }
.timeline-row { display: flex; gap: .8rem; }
.timeline-row dt { font-weight: 700; color: var(--gold); flex: none; }
.timeline-row dd { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.plain-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; font-size: 1.05rem; }

/* ---- Leadership ------------------------------------------------------- */
.leadership { padding: 2.75rem 0 3.25rem; display: flex; flex-direction: column; gap: 1.6rem; }
.leader { background: var(--white); display: grid; grid-template-columns: 13rem 1fr; gap: 1.9rem; padding: 1.75rem; }
.leader-photo { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.leader-name { font-size: 1.9rem; margin: .4rem 0 .8rem; }
.leader-body p { font-size: 1.15rem; line-height: 1.72; margin: 0 0 .6rem; }
.leader-contact { color: var(--ink-soft); }

.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.staff { background: var(--white); padding: 1.5rem; }
.staff img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.staff h3 { font-size: 1.4rem; margin: 1rem 0 0; }
.staff-role { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin: .3rem 0 .5rem; }
.staff p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.council p { font-size: 1.1rem; line-height: 1.72; margin: .7rem 0 0; }

/* ---- Filter chips (news) --------------------------------------------- */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--stone-line); }
.filter-row {
    display: flex; gap: .6rem; padding: 1rem 0; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
    flex: none; white-space: nowrap; font-size: 1rem; font-weight: 600;
    color: var(--ink-soft); border: 1px solid var(--stone-line);
    padding: .6rem 1.1rem; min-height: 2.75rem; display: inline-flex; align-items: center;
    transition: border-color .2s ease, color .2s ease;
}
.chip:hover { text-decoration: none; border-color: var(--navy); color: var(--navy); }
.chip-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-on:hover { color: var(--white); }

/* ---- News ------------------------------------------------------------- */
.news { padding: 2.5rem 0 1rem; }
.spotlight { background: var(--white); display: grid; grid-template-columns: 30rem 1fr; gap: 1.9rem; padding: 1.75rem; margin-bottom: 2.25rem; }
.spotlight-image { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; display: block; }
.spotlight-image-empty { background: repeating-linear-gradient(45deg, #D3DEE8, #D3DEE8 10px, #E1E9F1 10px, #E1E9F1 20px); }
.spotlight-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.1rem); margin: .5rem 0 0; }
.spotlight-title a { color: var(--navy); }
.spotlight-excerpt { font-size: 1.2rem; line-height: 1.72; margin: .85rem 0 1rem; }

/* ---- Events sidebar map ---------------------------------------------- */
.aside-map { display: block; background: var(--white); }
.aside-map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aside-map-label { display: block; font-size: .95rem; color: var(--ink-soft); padding: .8rem 1rem; }
.aside-map:hover { text-decoration: none; }
.weekly-content p { font-size: 1.05rem; line-height: 1.6; margin: .6rem 0 0; }
.weekly-content ul { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; font-size: 1.05rem; }
.weekly-content strong { color: var(--navy); }
.aside-box-dark .weekly-content strong { color: var(--gold); }
.gh-inline-content { margin-top: 1.5rem; }
.author-head { display: flex; gap: 1.5rem; align-items: center; }
.author-avatar { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; }

/* ---- News index ------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 2.5rem; }
.post-card {
    background: var(--white); display: flex; flex-direction: column;
    opacity: 0; transform: translateY(1.2rem);
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.post-card.is-visible { animation: riseIn .8s var(--ease) both; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 .9rem 1.9rem rgba(20, 42, 71, .16); }
.post-card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 1.4rem; }
.post-card-meta { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.post-card-title { font-size: 1.4rem; margin: .4rem 0 0; }
.post-card-title a { color: var(--navy); }
.post-card-excerpt { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); margin: .55rem 0 0; }

/* ---- Pagination ------------------------------------------------------- */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    padding: 1rem 0 3rem; flex-wrap: wrap;
}
.pagination-count { font-size: 1rem; color: var(--ink-soft); }

/* ---- Post & page content --------------------------------------------- */
/* One continuous white sheet for the whole article, so the reading column,
   the wide images and the footer never stripe against the stone page. */
.post, .page-newsletter { background: var(--white); }
.post-head, .page-head .wrap { padding-top: 0; }
.post-head { background: transparent; padding: 3rem 0 0; width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.post-back { font-size: 1rem; font-weight: 700; display: inline-block; margin-bottom: 1.1rem; }
.post-title { font-size: 2.85rem; margin-top: .7rem; }
.post-standfirst { font-family: var(--serif); font-size: 1.35rem; line-height: 1.6; color: var(--navy); margin: 1rem 0 0; }
.post-byline { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; font-size: 1.05rem; color: var(--ink-soft); }
.byline-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }

.post-feature, .page-feature { width: min(100% - var(--gutter) * 2, var(--wrap-wide)); margin: 2rem auto 0; padding: 0; }
.post-feature img, .page-feature img { width: 100%; }
.post-feature figcaption { font-size: .95rem; color: var(--ink-soft); padding-top: .6rem; }

/* Ghost content grid: default column, plus .kg-width-wide / .kg-width-full */
.gh-content {
    background: transparent; padding: 2.5rem 0 3rem;
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wrap-wide) - var(--wrap)) / 2))
        [main-start] min(var(--wrap) - 3rem, 100% - 3rem) [main-end]
        minmax(0, calc((var(--wrap-wide) - var(--wrap)) / 2)) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
}
.gh-content > * { grid-column: main-start / main-end; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }

.gh-content > p { font-size: 1.2rem; line-height: 1.78; margin: 0 0 1.4rem; }
.gh-content > h2 { font-size: 1.85rem; margin: 2.2rem 0 0; padding-bottom: .6rem; border-bottom: 2px solid var(--navy); }
.gh-content > h2 + p { margin-top: 1.1rem; }
.gh-content > h3 { font-size: 1.5rem; margin: 1.8rem 0 .6rem; }
.gh-content > ul, .gh-content > ol { font-size: 1.2rem; line-height: 1.78; margin: 0 0 1.4rem; padding-left: 1.4rem; }
.gh-content > blockquote {
    font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--navy);
    border-left: 4px solid var(--gold); margin: 0 0 1.4rem; padding: .3rem 0 .3rem 1.4rem;
}
.gh-content > figure { margin: 0 0 1.6rem; }
.gh-content > figure figcaption { font-size: .95rem; color: var(--ink-soft); text-align: center; padding-top: .6rem; }
.gh-content .kg-callout-card {
    background: var(--stone); border-left: 4px solid var(--gold); padding: 1.4rem 1.5rem; margin-bottom: 1.6rem;
}
.gh-content .kg-button-card a { background: var(--gold); color: var(--navy); font-weight: 700; }

.post-foot { padding-top: 0; padding-bottom: 3rem; background: transparent; max-width: none; }
.post-subscribe { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.related { padding-top: 2.5rem; padding-bottom: 3rem; }

/* ---- Newsletter / bulletin page --------------------------------------- */
.newsletter-head { position: relative; }
.newsletter-head-media { height: 19rem; overflow: hidden; }
.newsletter-head-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.newsletter-head-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 42, 71, .3), rgba(20, 42, 71, .86)); }
.newsletter-head-text { position: absolute; left: 0; right: 0; bottom: 2rem; }
.newsletter-head-text.wrap { max-width: var(--wrap); }
.newsletter-title { font-size: 2.9rem; color: var(--white); margin-top: .6rem; }

.bulletin-intro { padding: 2.75rem 0 0; }
.bulletin-body > p:first-child,
.bulletin-lede {
    font-family: var(--serif); font-size: 1.35rem; line-height: 1.6; color: var(--navy); margin: 0;
}
.bulletin-body > p { font-size: 1.2rem; line-height: 1.78; margin: 1.3rem 0 0; }
.bulletin-body > p strong { color: var(--navy); }
.bulletin-body > h2 { font-size: 1.6rem; margin: 2rem 0 .6rem; }
.bulletin-body > ul { font-size: 1.2rem; line-height: 1.78; margin: 1.1rem 0 0; padding-left: 1.4rem; }

.bulletin-signup { margin: 2.25rem 0 0; }

.bulletin-what { padding: 3rem 0 0; }
.bulletin-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.1rem; }
.bulletin-card { background: var(--stone); padding: 1.6rem; }
.bulletin-card h3 { font-size: 1.3rem; }
.bulletin-card p { font-size: 1.05rem; line-height: 1.62; margin: .5rem 0 0; }

.bulletin-note {
    background: var(--stone); border-left: 4px solid var(--gold); padding: 1.35rem 1.5rem; margin: 2rem 0 0;
}
.bulletin-note h2 { font-size: 1.3rem; }
.bulletin-note p { font-size: 1.1rem; line-height: 1.68; margin: .45rem 0 0; }

.subscribe-boxed { margin: 0 0 3rem; }
.past-issues { padding: 3rem 0 3.5rem; }
.issue-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem;
    padding: 1rem 0; border-bottom: 1px solid var(--stone-line);
    transition: background-color .25s ease, padding-left .25s ease;
}
.issue-row:hover { background: #F7FAFD; padding-left: .5rem; text-decoration: none; }
.issue-title { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.issue-date { font-size: 1rem; color: var(--ink-soft); white-space: nowrap; }

/* ---- Subscribe form --------------------------------------------------- */
.subscribe { background: var(--navy); color: #CBDAE8; padding: 2.1rem; }
.home-card-dark .subscribe, .aside-box-dark .subscribe { background: transparent; padding: 0; }
.subscribe-title { font-size: 1.55rem; color: var(--white); }
.subscribe-copy { font-size: 1.05rem; line-height: 1.6; margin: .5rem 0 1.1rem; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; }
.subscribe-input {
    font-family: var(--sans); font-size: 1.1rem; padding: .95rem; border: 0; flex: 1; min-width: 14rem;
    min-height: 2.75rem; color: var(--navy);
}
.subscribe-note { font-size: .95rem; color: #8FA6BE; margin: .9rem 0 0; }
.subscribe-message { display: none; width: 100%; font-size: 1rem; padding-top: .5rem; }
.subscribe-loading { color: var(--gold); }
.subscribe-success { color: #9FD9B8; }
.subscribe-error { color: #F0A79A; }
form.loading .subscribe-loading { display: block; }
form.success .subscribe-success { display: block; }
form.error .subscribe-error { display: block; }
form.success .subscribe-input, form.success .btn { opacity: .55; }

/* ---- Events ----------------------------------------------------------- */
.events-layout { display: grid; grid-template-columns: 1fr 21rem; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.events-list { display: flex; flex-direction: column; gap: 1.15rem; }
.event-item {
    background: var(--white); display: flex; gap: 1.5rem; padding: 1.5rem 1.6rem; align-items: flex-start;
    opacity: 0; transform: translateY(1rem);
    transition: box-shadow .3s ease;
}
.event-item:hover { box-shadow: 0 .7rem 1.6rem rgba(20, 42, 71, .13); }
.event-item.is-visible { animation: riseIn .7s var(--ease) both; }
.event-date { flex: none; width: 5.4rem; text-align: center; background: var(--navy); color: var(--white); padding: .7rem 0; }
.event-day-name { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.event-day-number { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.event-month { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #CBDAE8; }
.event-title { font-size: 1.5rem; }
.event-title a { color: var(--navy); }
.event-when { font-size: 1.05rem; color: var(--gold-ink); font-weight: 700; margin: .35rem 0 0; }
.event-excerpt { font-size: 1.1rem; line-height: 1.7; margin: .6rem 0 0; }

/* Single event post: the facts up top, prose underneath. */
.event-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    background: var(--stone-line); border: 1px solid var(--stone-line);
    margin: 1.6rem 0 0;
}
.event-facts > div { background: var(--stone); padding: 1.05rem 1.2rem; }
.event-facts dt { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.event-facts dd { margin: .3rem 0 0; font-size: 1.1rem; line-height: 1.45; color: var(--navy); }
.event-facts dd a { color: var(--navy); text-decoration: underline; }
.event-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }

.events-aside { display: flex; flex-direction: column; gap: 1.4rem; }
.aside-box { background: var(--white); padding: 1.6rem; }
.aside-box-dark { background: var(--navy); color: #CBDAE8; }

/* Headings on navy surfaces must not inherit the navy ink. */
.aside-box-dark h1, .aside-box-dark h2, .aside-box-dark h3,
.home-card-dark h1, .home-card-dark h2, .home-card-dark h3,
.hero-panel-dark h1, .hero-panel-dark h2, .hero-panel-dark h3 { color: var(--white); }
.aside-title { font-size: 1.4rem; }
.weekly { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; font-size: 1.05rem; }
.weekly strong { color: var(--navy); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: #CBDAE8; margin-top: auto; }
.site-footer a { color: var(--gold); }
.site-footer-inner {
    padding: 2.4rem 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-title { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin-bottom: .5rem; }
.footer-block p { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.65; }
.footer-block .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.site-credit { background: var(--navy-deep); color: #8FA6BE; font-size: .95rem; }
.site-credit-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.1rem 0;
}

.error-page { padding: 5rem 1.5rem; text-align: center; }
.error-page .btn { margin-top: 1.5rem; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 62rem) {
    .hero-panels, .home-grid, .post-grid, .events-layout,
    .split-layout, .spotlight, .leader,
    .site-footer-inner { grid-template-columns: 1fr; }
    .bulletin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout, .leadership { padding-top: 2rem; }
    .leader-photo { max-width: 13rem; }
    .staff img { aspect-ratio: 3 / 2; }
    .hero-panels { margin-top: -3rem; }
    .events-layout { gap: 2rem; }
}

@media (max-width: 52rem) {
    .utility-contact { display: none; }
}

@media (max-width: 46rem) {
    .staff-grid { grid-template-columns: 1fr; }
    .staff img { max-height: 14rem; }
    .utility-times { white-space: normal; }

    .home-template .site-header .site-header-inner { padding-top: 1.1rem; }
    .nav-toggle { display: block; order: 2; margin-left: auto; }
    .site-header-inner { flex-wrap: wrap; align-items: center; }
    .site-brand { order: 1; flex: 1 1 0; min-width: 0; max-width: none; }
    .site-nav { display: none; order: 3; flex-basis: 100%; width: 100%; }
    .site-nav.is-open {
        display: block; position: relative; z-index: 7;
        background: var(--navy-deep);
        margin-inline: calc(var(--gutter) * -1);
        padding: .2rem var(--gutter) .9rem;
        margin-top: .6rem;
        box-shadow: 0 1.4rem 2.4rem rgba(9, 20, 36, .5);
    }
    .nav-scrim {
        display: block; position: fixed; inset: 0; z-index: 3;
        background: rgba(9, 20, 36, .62);
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
        opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
    }
    body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
    .site-nav .nav-list { flex-direction: column; gap: 0; }
    .site-nav .nav-list li { border-top: 1px solid var(--navy-line); }
    .site-nav .nav-list li:last-child { border-bottom: 1px solid var(--navy-line); }
    .site-nav a { display: block; padding: .95rem 0; font-size: 1.15rem; }
    .site-nav a::after { display: none; }
    .nav-item-current > a { color: var(--gold); }

    /* Larger text: let the church name wrap onto two lines and keep the
       hamburger on the first line, top-aligned beside it. */
    html.text-lg .site-header-inner { align-items: flex-start; row-gap: .5rem; }
    html.text-lg .site-brand { flex: 1 1 0; align-items: flex-start; }
    html.text-lg .site-title { white-space: normal; }
    html.text-lg .site-tagline { white-space: normal; }
    html.text-lg .site-mark { height: 2.5rem; margin-top: .15rem; }
    html.text-lg .nav-toggle { margin-top: 0; padding: .35rem .1rem .35rem .6rem; }

    .event-item { flex-direction: column; gap: .85rem; padding: 1.25rem 1.3rem; }
    .event-date {
        width: auto; align-self: flex-start; display: flex; align-items: baseline; gap: .45rem;
        padding: .4rem .8rem;
    }
    .event-day-number { font-size: 1.35rem; }
    .event-day-name, .event-month { font-size: .78rem; }
    .event-facts { grid-template-columns: 1fr; }
    .event-actions .btn { width: 100%; }
    .bulletin-cards { grid-template-columns: 1fr; }
    .bulletin-intro { padding-top: 2rem; }
    .bulletin-what { padding-top: 2.25rem; }

    .hero { --hero-img: clamp(15rem, 58vw, 22rem); --hero-overlap: 0rem; }
    .hero-fill { min-height: calc(var(--hero-img) - 6rem); }
    .btn { white-space: normal; }
    .hero-panel { padding: 1.8rem 1.4rem; }
    .hero-heading { font-size: 1.95rem; }
    .hero-actions .btn { width: 100%; }
    .page-title, .post-title { font-size: 2.1rem; }
    .newsletter-title { font-size: 2rem; }
    .post-head { padding-top: 2rem; }
    .event-item { gap: 1rem; }
    .site-credit { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image { animation: none; }
    .home-card, .post-card, .event-item { opacity: 1; transform: none; animation: none !important; }
    .btn:hover, .home-card:hover, .post-card:hover { transform: none; }
}

@media print {
    .utility-bar, .site-nav, .nav-toggle, .subscribe, .pagination, .site-credit { display: none !important; }
    body { background: #fff; }
}
