:root {
  --cornflower: #6495ed;
  --cornflower-dark: #3e72ca;
  --cornflower-soft: #eaf1ff;
  --blue-deep: #173b70;
  --blue-night: #0d2c52;
  --blue-ink: #09213e;
  --gold: #d7b15b;
  --gold-soft: #f4e8c7;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --stone: #e7e2d9;
  --ink: #182436;
  --muted: #647188;
  --line: #dce4ef;
  --success: #247a52;
  --warning: #8a5a05;
  --danger: #a63333;
  --shadow: 0 18px 45px rgba(20, 47, 83, 0.13);
  --shadow-soft: 0 10px 28px rgba(20, 47, 83, 0.09);
  --radius: 18px;
  --radius-small: 12px;
  --shell: min(1320px, calc(100% - 40px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
html.menu-open, body.menu-open,
body.chat-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
address { font-style: normal; }
svg.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

h1, h2, h3, h4 { margin: 0 0 0.65em; color: var(--blue-ink); font-family: var(--serif); font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(2.9rem, 6vw, 5.9rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 3.3vw, 3.45rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.15em; }
small { line-height: 1.35; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10000; left: 16px; top: 12px; transform: translateY(-160%); padding: 11px 16px; border-radius: 8px; background: var(--gold); color: var(--blue-ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.content-shell, .footer-shell, .header-shell { width: var(--shell); margin-inline: auto; }

.eyebrow { margin: 0 0 12px; color: var(--cornflower-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow.light { color: #d6e5ff; }
.eyebrow.dark { color: var(--cornflower-dark); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; line-height: 1.15; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--cornflower-dark); color: #fff; box-shadow: 0 8px 22px rgba(62, 114, 202, .27); }
.button.primary:hover { background: var(--blue-deep); }
.button.pale { background: #fff; color: var(--blue-deep); }
.button.outline-light { border-color: rgba(255,255,255,.75); background: rgba(7, 27, 52, .25); color: #fff; backdrop-filter: blur(10px); }
.button.compact { min-height: 40px; padding: 9px 14px; font-size: .9rem; }
.button.full { width: 100%; }
.button .icon, a .icon { width: 1.05rem; height: 1.05rem; }
.text-link { color: var(--cornflower-dark); font-weight: 800; text-decoration: none; }

/* Header and navigation */
.site-header { position: absolute; z-index: 1000; top: 0; left: 0; right: 0; padding-top: 16px; pointer-events: none; }
.site-header.is-scrolled { position: fixed; padding-top: 8px; animation: headerDrop .28s ease both; }
@keyframes headerDrop { from { transform: translateY(-105%); } to { transform: translateY(0); } }
.header-shell { position: relative; display: flex; align-items: center; min-height: 78px; padding: 0 18px 0 132px; border: 1px solid rgba(255,255,255,.55); border-radius: 0 0 15px 15px; background: rgba(255,255,255,.93); box-shadow: 0 12px 38px rgba(12,42,80,.18); backdrop-filter: blur(18px); pointer-events: auto; }
.site-header.is-scrolled .header-shell { border-radius: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; color: var(--blue-deep); text-decoration: none; }
.brand > img { position: absolute; z-index: 3; top: -14px; left: 15px; width: 105px; height: 123px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(4, 25, 51, .28)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.025em; }
.brand-copy small { margin-top: 7px; color: var(--blue-deep); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 3px; width: 100%; }
.primary-nav > a, .nav-group > button { display: inline-flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #1d2937; font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.primary-nav > a:hover, .nav-group > button:hover, .primary-nav > a.active, .nav-group.active > button { color: var(--cornflower-dark); background: var(--cornflower-soft); }
.nav-group { position: relative; }
.nav-group > button span { font-size: .8em; transition: transform .2s ease; }
.nav-group:hover > button span, .nav-group:focus-within > button span, .nav-group.open > button span { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% - 4px); left: 50%; width: 245px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.dropdown::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 18px; }
.dropdown > a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 650; text-decoration: none; }
.dropdown > a:first-child { border-radius: 12px 12px 0 0; box-shadow: 0 -4px 18px rgba(12,42,80,.08); }
.dropdown > a:last-child { border-bottom: 0; border-radius: 0 0 12px 12px; box-shadow: 0 14px 28px rgba(12,42,80,.16); }
.dropdown > a:hover, .dropdown > a.active { color: var(--cornflower-dark); background: var(--cornflower-soft); padding-left: 19px; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-donate { margin-left: 8px; padding-inline: 15px !important; background: var(--blue-deep) !important; color: #fff !important; }
.nav-donate:hover { background: var(--cornflower-dark) !important; }
.menu-toggle { display: none; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 9px; background: var(--blue-deep); color: #fff; font-weight: 800; touch-action: manipulation; }
.menu-close, .menu-backdrop { display: none; }

/* Hero areas */
.home-hero { position: relative; min-height: 690px; display: flex; align-items: center; overflow: hidden; background-image: var(--home-hero); background-position: center 48%; background-size: cover; color: #fff; }
.home-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .82) 0%,
            rgba(0, 0, 0, .66) 34%,
            rgba(0, 0, 0, .36) 70%,
            rgba(0, 0, 0, .16) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .24),
            rgba(0, 0, 0, .06) 55%,
            rgba(0, 0, 0, .10) 100%
        );
}
.home-hero-content { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 96px; }
.home-hero-content h1 { max-width: 720px; color: #fff; font-size: clamp(3.4rem, 6.4vw, 6.2rem); text-shadow: 0 4px 24px rgba(0,0,0,.33); }
.hero-copy { max-width: 610px; color: rgba(255,255,255,.94); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-rule { display: flex; align-items: center; gap: 13px; width: 310px; margin: 18px 0; color: var(--gold); }
.hero-rule span { height: 1px; flex: 1; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(0,0,0,.24); color: #fff; font-size: .82rem; backdrop-filter: blur(8px); }
.open-pill span { width: 9px; height: 9px; border-radius: 50%; background: #75d9a7; box-shadow: 0 0 0 5px rgba(117,217,167,.16); }
.photo-credit { position: absolute; z-index: 2; right: 18px; bottom: 12px; margin: 0; color: rgba(255,255,255,.72); font-size: .68rem; }

.page-hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; background-image: var(--page-hero); background-position: center; background-size: cover; color: #fff; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,28,56,.89), rgba(5,28,56,.56) 50%, rgba(5,28,56,.18)), linear-gradient(0deg, rgba(3,20,40,.57), transparent 68%); }
.page-hero-content { position: relative; z-index: 1; padding-top: 145px; padding-bottom: 64px; }
.page-hero h1 { max-width: 870px; color: #fff; }
.page-hero-content > p:last-child { max-width: 750px; margin-bottom: 0; color: rgba(255,255,255,.91); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 22px; color: rgba(255,255,255,.75); font-size: .78rem; }
.breadcrumbs a { color: #fff; font-weight: 700; text-decoration: none; }

/* Homepage identity and cards */
.identity-strip-wrap { position: relative; z-index: 5; margin-top: -48px; }
.identity-strip { display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 20px; border: 1px solid rgba(213,224,239,.9); border-radius: 17px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.identity-strip article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 4px 18px; border-right: 1px solid var(--line); }
.identity-strip article:last-child { border-right: 0; }
.identity-strip .icon { width: 36px; height: 36px; color: var(--cornflower-dark); }
.identity-strip h2 { margin: 0 0 3px; color: var(--blue-deep); font-family: var(--sans); font-size: .98rem; font-weight: 800; letter-spacing: 0; }
.identity-strip p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }

.home-actions-section { padding: 70px 0 32px; background: linear-gradient(#fff, #f8faff); }
.home-action-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.home-action-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); transition: transform .22s ease, box-shadow .22s ease; }
.home-action-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.home-action-card > img { width: 100%; height: 128px; object-fit: cover; }
.home-action-card > div:last-child { padding: 18px 15px 17px; }
.home-action-card .card-icon { display: inline-flex; color: var(--cornflower-dark); }
.home-action-card h2 { margin: 7px 0 8px; font-size: 1.18rem; }
.home-action-card p { min-height: 66px; margin-bottom: 12px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.home-action-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--cornflower-dark); font-size: .79rem; font-weight: 800; text-decoration: none; }
.image-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: var(--cornflower-dark); color: #fff; font-size: .67rem; font-weight: 800; }

.home-notices-section { padding: 0 0 55px; background: #f8faff; }
.home-notices-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 16px; }
.featured-notices, .home-appeal-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-soft); }
.featured-notices header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.featured-notices header h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.25rem; }
.featured-notices header h2 .icon { color: var(--cornflower-dark); }
.featured-notices header a { display: inline-flex; align-items: center; gap: 5px; color: var(--cornflower-dark); font-size: .76rem; font-weight: 800; text-decoration: none; }
.notice-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.notice-row article { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 18px; border-right: 1px solid var(--line); }
.notice-row article:last-child { border-right: 0; }
.notice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cornflower-soft); color: var(--cornflower-dark); }
.notice-row article:nth-child(2) .notice-icon { background: var(--gold-soft); color: var(--warning); }
.notice-row h3 { margin: 0 0 3px; font-family: var(--sans); font-size: .84rem; font-weight: 800; line-height: 1.25; }
.notice-row small { color: var(--muted); font-size: .66rem; }
.notice-row p { margin: 6px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.home-appeal-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; overflow: hidden; padding: 20px; background: linear-gradient(120deg, #eef4ff, #fff); }
.home-appeal-card h2 { margin-bottom: 6px; font-size: 1.5rem; }
.home-appeal-card p { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.appeal-home-progress { grid-column: 1 / -1; position: relative; z-index: 2; padding-right: 95px; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #d7e2f5; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cornflower-dark), var(--cornflower)); }
.appeal-home-progress > div:nth-child(2) { display: flex; justify-content: space-between; margin-top: 8px; color: var(--blue-deep); font-size: .76rem; }
.appeal-home-progress > p { margin-top: 2px; }
.appeal-home-pending { grid-column: 1 / -1; position: relative; z-index: 2; padding: 12px 95px 12px 14px; border-left: 4px solid var(--cornflower); border-radius: 8px; background: rgba(255,255,255,.7); }
.appeal-home-pending strong { color: var(--blue-deep); font-size: .88rem; }
.appeal-home-pending p { margin-top: 4px; }
.appeal-church-line { position: absolute; right: 20px; bottom: 12px; width: 85px !important; height: 85px !important; color: rgba(62,114,202,.16); }

.home-life-section { padding: 84px 0; }
.mini-links { display: grid; gap: 10px; margin-top: 26px; }
.mini-links a { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.mini-links a:hover { border-color: var(--cornflower); background: var(--cornflower-soft); }
.mini-links .icon { width: 30px; height: 30px; color: var(--cornflower-dark); }
.mini-links strong, .mini-links small { display: block; }
.mini-links small { color: var(--muted); }

/* Generic content */
.content-section { padding: 82px 0; }
.content-section.tinted { background: var(--mist); }
.section-heading { max-width: 810px; margin-bottom: 38px; }
.section-heading.narrow { max-width: 900px; }
.section-heading p, .split-copy > p { color: var(--muted); font-size: 1.02rem; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .96fr); align-items: center; gap: clamp(40px, 6vw, 85px); }
.split-section.reverse .split-copy { order: 2; }
.split-section.reverse .split-image { order: 1; }
.split-image { margin: 0; }
.split-image img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-image figcaption { margin-top: 8px; color: var(--muted); font-size: .68rem; text-align: right; }
.info-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.info-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: var(--shadow-soft); }
.info-card .info-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 17px; border-radius: 12px; background: var(--cornflower-soft); color: var(--cornflower-dark); }
.info-card h3 { margin-bottom: 9px; font-size: 1.32rem; }
.info-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.info-card a { display: flex; align-items: center; gap: 5px; margin-top: 15px; color: var(--cornflower-dark); font-weight: 800; text-decoration: none; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; max-width: 980px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: var(--ink); }
.feature-list li .icon { color: var(--cornflower-dark); }
.feature-list.compact { grid-template-columns: 1fr; gap: 11px; }
.scripture-quote { position: relative; max-width: 1040px; margin: 0 auto; padding: 55px 70px; border-radius: var(--radius); background: var(--blue-deep); color: #fff; text-align: center; box-shadow: var(--shadow); }
.scripture-quote > span { display: block; height: 38px; color: var(--gold); font-family: var(--serif); font-size: 5rem; line-height: 1; }
.scripture-quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.3; }
.scripture-quote cite { display: block; margin-top: 19px; color: #cfe0ff; font-style: normal; font-weight: 800; }

/* Services */
.service-page-section { background: var(--mist); }
.service-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card-large { position: relative; overflow: hidden; min-height: 350px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.service-card-large::after { content: ""; position: absolute; right: -45px; bottom: -55px; width: 165px; height: 165px; border-radius: 50%; background: var(--cornflower-soft); }
.service-number { position: absolute; top: 20px; right: 22px; color: #dce6f6; font-family: var(--serif); font-size: 3.7rem; font-weight: 700; line-height: 1; }
.service-card-large .info-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px; border-radius: 13px; background: var(--cornflower-dark); color: #fff; }
.service-card-large h3 { max-width: 75%; font-size: 1.65rem; }
.service-when { display: flex; gap: 8px; flex-direction: column; color: var(--blue-deep); }
.service-when span { color: var(--cornflower-dark); font-size: 1.3rem; font-weight: 800; }
.service-card-large > p:not(.service-when) { color: var(--muted); }
.service-card-large small { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 750; }

/* People */
.people-grid { display: grid; gap: 24px; }
.person-card { display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.person-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--cornflower-soft); color: var(--cornflower-dark); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .icon { width: 75px; height: 75px; }
.person-card h2 { font-size: 2.1rem; }
.person-card p { color: var(--muted); }
.person-card a { display: inline-flex; align-items: center; gap: 7px; margin-right: 15px; color: var(--cornflower-dark); font-weight: 750; text-decoration: none; }

/* Prayer */
.prayer-space { background: linear-gradient(135deg, var(--blue-night), var(--blue-deep)); }
.prayer-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 25px; }
.daily-prayer-card, .prayer-aside { border-radius: var(--radius); }
.daily-prayer-card { padding: clamp(32px, 5vw, 65px); background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.daily-prayer-card h2 { color: #fff; }
.prayer-scripture { color: var(--gold-soft); font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.prayer-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.55; }
.prayer-aside { padding: 38px; background: #fff; }
.prayer-aside p { color: var(--muted); }
.small-note { margin-top: 16px; font-size: .78rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 6vw, 85px); align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro p { color: var(--muted); }
.public-form { display: grid; gap: 19px; padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.public-form label > span, .public-form legend { display: block; margin-bottom: 7px; color: var(--blue-ink); font-size: .86rem; font-weight: 800; }
.public-form label small { color: var(--muted); font-weight: 500; }
.public-form input, .public-form textarea, .public-form select { width: 100%; border: 1px solid #cfd9e7; border-radius: 9px; background: #fff; color: var(--ink); padding: 12px 13px; }
.public-form textarea { resize: vertical; min-height: 135px; }
.public-form input:focus, .public-form textarea:focus, .public-form select:focus { border-color: var(--cornflower); outline: 3px solid rgba(100,149,237,.18); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.public-form fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--mist); }
.choice input { width: 18px !important; height: 18px; margin-top: 3px; }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 2px; }
.choice.consent { background: #fff; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-status { min-height: 1.4em; margin: 0; color: var(--muted); font-size: .85rem; }
.form-status.success { color: var(--success); font-weight: 800; }
.form-status.error { color: var(--danger); font-weight: 800; }
.urgent-box { margin-top: 25px; padding: 18px; border-left: 4px solid var(--gold); border-radius: 8px; background: #fff8e8; }
.urgent-box p { margin: 4px 0 0; color: #604a1d; font-size: .86rem; }

/* Sermons */
.search-box { display: flex; align-items: center; gap: 16px; max-width: 820px; margin: 0 auto 36px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }
.search-box label { display: flex; align-items: center; gap: 8px; color: var(--cornflower-dark); font-weight: 800; white-space: nowrap; }
.search-box input { width: 100%; padding: 10px 12px; border: 0; outline: 0; }
.sermon-list { display: grid; gap: 16px; max-width: 960px; margin: auto; }
.sermon-card { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: var(--shadow-soft); }
.sermon-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 90px; border-radius: 13px; background: var(--cornflower-soft); color: var(--blue-deep); }
.sermon-date span { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.sermon-date small { margin-top: 5px; font-weight: 800; text-transform: uppercase; }
.sermon-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.sermon-card p { color: var(--muted); }
details summary { color: var(--cornflower-dark); font-weight: 800; cursor: pointer; }
details[open] summary { margin-bottom: 12px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; }

/* Visit and map */
.visit-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 35px; align-items: stretch; }
.map-frame { min-height: 500px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 500px; border: 0; }
.visit-details { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.visit-details address { margin: 0 0 26px; color: var(--blue-deep); font-size: 1.1rem; font-weight: 800; }
.visit-facts { display: grid; gap: 14px; margin-bottom: 28px; }
.visit-facts p { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0; }
.visit-facts .icon { width: 29px; height: 29px; color: var(--cornflower-dark); }
.visit-facts strong, .visit-facts small { display: block; }
.visit-facts small { color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-item { overflow: hidden; margin: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: #fff; }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; }
.gallery-item button:hover img { transform: scale(1.03); }
.gallery-item figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 15px 17px; }
.gallery-item figcaption small { color: var(--muted); text-align: right; }
.gallery-dialog { max-width: min(1100px, 92vw); padding: 0; border: 0; border-radius: 14px; background: #050b13; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.gallery-dialog::backdrop { background: rgba(3,11,22,.85); backdrop-filter: blur(5px); }
.gallery-dialog img { max-height: 86vh; margin: auto; object-fit: contain; }
.gallery-dialog button { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue-ink); }

/* What’s on, events, news */
.whatson-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.whatson-links > a { display: grid; grid-template-columns: 50px 1fr 20px; gap: 14px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; text-decoration: none; box-shadow: var(--shadow-soft); }
.whatson-links > a > .icon:first-child { width: 42px; height: 42px; color: var(--cornflower-dark); }
.whatson-links strong, .whatson-links small { display: block; }
.whatson-links strong { font-family: var(--serif); font-size: 1.25rem; }
.whatson-links small { color: var(--muted); }
.events-section { background: var(--mist); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: var(--shadow-soft); }
.event-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 19px; border-radius: 50%; background: var(--cornflower-soft); color: var(--cornflower-dark); }
.event-card p { color: var(--muted); }
.event-card small { display: flex; align-items: center; gap: 6px; color: var(--blue-deep); font-weight: 750; }
.news-list { display: grid; gap: 16px; }
.news-article { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-small); background: #fff; box-shadow: var(--shadow-soft); }
.news-meta { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 90px; border-radius: 12px; background: var(--blue-deep); color: #fff; }
.news-meta span { font-family: var(--serif); font-size: 2.15rem; font-weight: 700; line-height: 1; }
.news-meta small { margin-top: 6px; color: #d4e3ff; font-weight: 800; text-transform: uppercase; }
.news-article h3 { font-size: 1.65rem; }
.news-article p { color: var(--muted); }

/* Giving and appeal */
.giving-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.giving-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.giving-card.featured { background: linear-gradient(135deg, var(--cornflower-soft), #fff); }
.giving-card > span { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 20px; border-radius: 14px; background: var(--cornflower-dark); color: #fff; }
.giving-card p, .giving-card li { color: var(--muted); }
.appeal-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: clamp(35px, 6vw, 70px); border-radius: 24px; background: linear-gradient(125deg, var(--blue-night), var(--cornflower-dark)); color: #fff; box-shadow: var(--shadow); }
.appeal-panel h2 { color: #fff; }
.appeal-panel p { color: #d8e7ff; }
.appeal-progress { position: relative; padding: 35px; border-radius: 16px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.appeal-progress h3 { margin-bottom: 10px; color: #fff; font-size: 1.65rem; }
.appeal-figures { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.appeal-figures strong { font-family: var(--serif); font-size: 2.5rem; }
.appeal-figures span { color: #d8e7ff; }
.appeal-progress > .icon { position: absolute; right: 20px; bottom: 15px; width: 75px; height: 75px; color: rgba(255,255,255,.09); }

/* Contact */
.contact-methods { display: grid; gap: 12px; margin: 28px 0; }
.contact-methods > * { display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: center; margin: 0; color: inherit; text-decoration: none; }
.contact-methods > * > .icon { width: 28px; height: 28px; color: var(--cornflower-dark); }
.contact-methods small, .contact-methods strong { display: block; }
.contact-methods small { color: var(--muted); }

/* Footer */
.site-footer { color: #fff; background: linear-gradient(120deg, var(--blue-deep), #244f92); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr 1.05fr 1.3fr; gap: 28px; padding-top: 48px; padding-bottom: 40px; }
.footer-grid section, .footer-grid blockquote { padding-right: 20px; border-right: 1px solid rgba(255,255,255,.2); }
.footer-grid blockquote { border-right: 0; margin: 0; }
.footer-grid h2 { margin-bottom: 14px; color: #fff; font-family: var(--sans); font-size: .92rem; font-weight: 800; }
.footer-grid h2 .icon { margin-right: 7px; }
.footer-grid a { display: flex; align-items: center; gap: 7px; margin: 7px 0; color: #fff; font-size: .78rem; text-decoration: none; }
.footer-grid a:hover { color: #dce9ff; text-decoration: underline; }
.footer-grid p, .footer-grid address { color: #d9e5f7; font-size: .76rem; }
.footer-grid strong { color: #fff; }
.footer-grid blockquote > span { color: var(--gold); font-family: var(--serif); font-size: 3.5rem; line-height: .5; }
.footer-grid blockquote p { color: #fff; font-family: var(--serif); font-size: .96rem; font-style: italic; }
.footer-grid blockquote cite { color: var(--gold-soft); font-size: .72rem; font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #d6e3f5; font-size: .7rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: #fff; text-decoration: none; }

/* Chat */
.chat-launch { position: fixed; z-index: 1100; right: 22px; bottom: 22px; display: grid; grid-template-columns: 35px auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; min-width: 185px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: var(--blue-deep); color: #fff; box-shadow: 0 15px 40px rgba(3,21,43,.34); }
.chat-launch .icon { grid-row: 1 / 3; width: 31px; height: 31px; color: #dce9ff; }
.chat-launch span { font-weight: 850; line-height: 1.1; text-align: left; }
.chat-launch small { color: #c7d8f3; font-size: .67rem; text-align: left; }
.chat-panel { position: fixed; z-index: 1200; right: 22px; bottom: 22px; display: grid; grid-template-rows: auto minmax(170px, 1fr) auto auto auto auto; width: min(410px, calc(100vw - 30px)); max-height: min(700px, calc(100vh - 40px)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(3,21,43,.42); }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px; background: var(--blue-deep); color: #fff; }
.chat-identity { display: flex; align-items: center; gap: 11px; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.13); color: var(--gold); }
.chat-identity small, .chat-identity strong, .chat-identity em { display: block; line-height: 1.2; }
.chat-identity small { color: #bed3f1; font-size: .63rem; text-transform: uppercase; letter-spacing: .12em; }
.chat-identity strong { font-family: var(--serif); font-size: 1.2rem; }
.chat-identity em { color: #dce8f7; font-size: .65rem; font-style: normal; }
.chat-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.chat-messages { overflow-y: auto; padding: 16px; background: #f5f8fc; }
.chat-message { max-width: 88%; margin-bottom: 12px; padding: 11px 13px; border-radius: 13px; box-shadow: 0 3px 10px rgba(24,51,84,.07); }
.chat-message p { margin: 0; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; }
.chat-message.assistant { border-bottom-left-radius: 3px; background: #fff; }
.chat-message.user { margin-left: auto; border-bottom-right-radius: 3px; background: var(--cornflower-dark); color: #fff; }
.chat-message.error { border: 1px solid #efd0d0; background: #fff0f0; color: var(--danger); }
.chat-message-actions { display: flex; gap: 7px; margin-top: 9px; }
.chat-message-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--cornflower-dark); font-size: .7rem; font-weight: 800; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px; border-top: 1px solid var(--line); background: #fff; }
.chat-form label { position: absolute; left: -10000px; }
.chat-form textarea { min-height: 44px; max-height: 120px; resize: none; padding: 10px 11px; border: 1px solid #cfd9e7; border-radius: 9px; }
.chat-form button { display: grid; place-items: center; width: 45px; border: 0; border-radius: 9px; background: var(--cornflower-dark); color: #fff; }
.chat-form button span { display: none; }
.chat-reader-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.chat-reader-controls label { display: flex; align-items: center; gap: 6px; }
.chat-reader-controls button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--danger); font-size: .66rem; }
.chat-privacy { margin: 0; padding: 8px 12px 11px; color: var(--muted); background: #fff; font-size: .62rem; line-height: 1.35; }
.chat-typing { display: flex; gap: 4px; align-items: center; width: 53px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cornflower); animation: typing 1.1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }
.mobile-actions { display: none; }

/* Cookie */
.cookie-banner { position: fixed; z-index: 1500; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 25px; max-width: 1050px; margin: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 20px 70px rgba(3,21,43,.3); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-actions button { padding: 8px 12px; border: 1px solid var(--cornflower-dark); border-radius: 8px; background: #fff; color: var(--cornflower-dark); font-size: .76rem; font-weight: 800; }
.cookie-actions button.primary { background: var(--cornflower-dark); color: #fff; }

/* Notices */
.flash-stack { position: fixed; z-index: 1400; top: 105px; right: 20px; display: grid; gap: 8px; width: min(400px, calc(100vw - 40px)); }
.flash { padding: 12px 15px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 750; }
.flash.success { border-left: 4px solid var(--success); }
.flash.error { border-left: 4px solid var(--danger); }

/* Admin */
.admin-body { background: #edf2f8; }
.admin-shell { width: min(1450px, calc(100% - 34px)); margin: 0 auto; padding: 30px 0 70px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 17px 20px; border-radius: 14px; background: var(--blue-deep); color: #fff; box-shadow: var(--shadow); }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand img { width: 48px; height: 48px; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand small { color: #c9dbf5; }
.admin-topbar a { color: #fff; font-weight: 750; text-decoration: none; }
.admin-grid { display: grid; grid-template-columns: 235px 1fr; gap: 22px; }
.admin-nav { position: sticky; top: 15px; align-self: start; display: grid; gap: 4px; padding: 13px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-nav a { padding: 9px 11px; border-radius: 8px; color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { color: var(--cornflower-dark); background: var(--cornflower-soft); }
.admin-panel { min-width: 0; padding: 26px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.admin-panel h1 { font-size: 2.5rem; }
.admin-panel h2 { font-size: 1.65rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.admin-stat { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--mist); }
.admin-stat strong { display: block; color: var(--blue-deep); font-family: var(--serif); font-size: 2.25rem; }
.admin-form { display: grid; gap: 14px; max-width: 900px; }
.admin-form label span { display: block; margin-bottom: 5px; font-size: .8rem; font-weight: 800; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 10px 11px; border: 1px solid #cfd9e7; border-radius: 8px; }
.admin-form textarea { min-height: 110px; resize: vertical; }
.admin-form .field-row { gap: 12px; }
.admin-table-wrap { overflow-x: auto; margin-top: 22px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions button, .admin-actions a { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--cornflower-dark); font-size: .72rem; font-weight: 800; text-decoration: none; }
.admin-actions .danger { color: var(--danger); }
.admin-login-wrap { display: grid; min-height: 100vh; place-items: center; padding: 25px; background: linear-gradient(135deg, var(--blue-night), var(--cornflower-dark)); }
.admin-login-card { width: min(480px, 100%); padding: 35px; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.admin-login-card img { width: 100px; margin: -80px auto 15px; }
.admin-login-card h1 { font-size: 2.4rem; text-align: center; }
.admin-login-card p { color: var(--muted); text-align: center; }
.admin-login-card .admin-form { margin-top: 25px; }
.status-pill { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--cornflower-soft); color: var(--cornflower-dark); font-size: .68rem; font-weight: 800; }
.status-pill.pending { background: #fff4d5; color: #83580b; }
.status-pill.prayed { background: #e4f6eb; color: var(--success); }
.status-pill.archived { background: #eceff3; color: #536174; }
.admin-note { padding: 13px 15px; border-left: 4px solid var(--cornflower); background: var(--cornflower-soft); color: var(--blue-deep); }

@media (max-width: 1220px) {
  .header-shell { padding-left: 116px; }
  .brand { min-width: 218px; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy small { font-size: .54rem; }
  .primary-nav > a, .nav-group > button { padding-inline: 7px; font-size: .77rem; }
  .home-action-grid { grid-template-columns: repeat(3, 1fr); }
  .home-action-card > img { height: 180px; }
  .home-action-card p { min-height: auto; }
  .identity-strip { grid-template-columns: repeat(3, 1fr); }
  .identity-strip article:nth-child(3) { border-right: 0; }
  .identity-strip article:nth-child(n+4) { margin-top: 13px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid section:nth-child(3) { border-right: 0; }
  .footer-grid blockquote { grid-column: span 2; }
}

@media (max-width: 1020px) {
  :root { --shell: min(100% - 30px, 900px); }
  .site-header { padding-top: 9px; }
  .header-shell { min-height: 72px; padding: 0 12px 0 98px; border-radius: 12px; }
  .brand > img { left: 9px; top: -8px; width: 82px; height: 98px; }
  .brand { min-width: 0; margin-right: auto; }
  .menu-toggle { position: relative; z-index: 1003; display: inline-flex; }
  .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; display: block; width: min(390px, 88vw); height: 100vh; height: 100dvh; padding: calc(86px + env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; box-shadow: -15px 0 45px rgba(3,21,43,.22); transform: translate3d(110%,0,0); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .primary-nav.open, body.menu-open .primary-nav { transform: translate3d(0,0,0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .primary-nav::before { content: "Explore St Mary’s"; position: absolute; top: 25px; left: 20px; color: var(--blue-deep); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
  .menu-close { position: absolute; z-index: 2; top: 18px; right: 16px; display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 9px; background: var(--cornflower-soft); color: var(--blue-deep); font-weight: 800; touch-action: manipulation; }
  .menu-close .icon { width: 20px; height: 20px; }
  .menu-backdrop { position: fixed; inset: 0; z-index: 1001; display: block; border: 0; background: rgba(3,21,43,.46); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
  body.menu-open .menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .primary-nav > a, .nav-group > button { width: 100%; justify-content: space-between; min-height: 47px; margin-bottom: 3px; padding: 0 12px; font-size: .9rem; }
  .nav-group { width: 100%; }
  .dropdown { position: static; top: auto; right: auto; bottom: auto; left: auto; width: 100%; max-width: 100%; margin: 0; max-height: 0; padding: 0 0 0 13px; overflow: hidden; opacity: 1; visibility: visible; transform: none !important; transition: max-height .25s ease; box-sizing: border-box; }
  .nav-group .dropdown,
  .nav-group:hover .dropdown,
  .nav-group:focus-within .dropdown,
  .nav-group.open .dropdown { left: auto; width: 100%; max-width: 100%; opacity: 1; visibility: visible; transform: none !important; pointer-events: auto; }
  .nav-group.open .dropdown { max-height: 600px; }
  .dropdown::before { display: none; }
  .dropdown > a, .dropdown > a:first-child, .dropdown > a:last-child { padding: 9px 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav-donate { margin: 12px 0 0 !important; justify-content: center !important; }
  .home-hero { min-height: 680px; }
  .identity-strip { grid-template-columns: repeat(2, 1fr); }
  .identity-strip article, .identity-strip article:nth-child(3) { border-right: 1px solid var(--line); margin-top: 0; }
  .identity-strip article:nth-child(even) { border-right: 0; }
  .identity-strip article:last-child { grid-column: span 2; border-right: 0; margin-top: 12px; }
  .home-notices-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse .split-copy, .split-section.reverse .split-image { order: initial; }
  .info-card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout, .visit-grid, .prayer-layout, .giving-grid, .appeal-panel { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .whatson-links { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid section:nth-child(2n) { border-right: 0; }
  .footer-grid section:nth-child(3) { border-right: 1px solid rgba(255,255,255,.2); }
  .footer-grid blockquote { grid-column: span 2; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav a { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 24px); }
  body { padding-bottom: 64px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .site-header { padding-top: 5px; }
  .header-shell { width: calc(100% - 12px); min-height: 66px; padding-left: 74px; padding-right: 8px; border-radius: 10px; }
  .brand > img { left: 5px; top: -2px; width: 66px; height: 78px; }
  .brand-copy strong { font-size: 1.18rem; }
  .brand-copy small { display: none; }
  .menu-toggle span { display: none; }
  .menu-toggle { padding: 10px; }
  .home-hero { min-height: 680px; background-position: 62% center; }
  .home-hero-shade { background: linear-gradient(90deg, rgba(38,55,78,.68), rgba(55,76,101,.40)), linear-gradient(0deg, rgba(255,209,120,.12), rgba(255,255,255,.03)); }
  .home-hero-content { padding-top: 125px; padding-bottom: 95px; }
  .home-hero-content h1 { font-size: clamp(3rem, 15vw, 4.55rem); }
  .hero-copy { font-size: 1rem; }
  .hero-rule { width: 230px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(320px, 100%); }
  .photo-credit { display: none; }
  .page-hero { min-height: 440px; }
  .page-hero-content { padding-top: 125px; padding-bottom: 45px; }
  .identity-strip-wrap { margin-top: -35px; }
  .identity-strip { grid-template-columns: 1fr; padding: 12px 16px; }
  .identity-strip article, .identity-strip article:nth-child(3), .identity-strip article:nth-child(even), .identity-strip article:last-child { grid-column: auto; margin: 0; padding: 12px 2px; border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-strip article:last-child { border-bottom: 0; }
  .home-actions-section { padding-top: 48px; }
  .home-action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-action-card > img { height: 115px; }
  .home-action-card > div:last-child { padding: 13px 11px; }
  .home-action-card h2 { font-size: 1rem; }
  .home-action-card p { font-size: .75rem; }
  .home-action-card a { font-size: .72rem; }
  .notice-row { grid-template-columns: 1fr; }
  .notice-row article { border-right: 0; border-bottom: 1px solid var(--line); }
  .notice-row article:last-child { border-bottom: 0; }
  .featured-notices header { align-items: flex-start; }
  .featured-notices header a { text-align: right; }
  .home-appeal-card { grid-template-columns: 1fr; }
  .appeal-home-progress { grid-column: auto; padding-right: 70px; }
  .appeal-home-pending { grid-column: auto; padding-right: 70px; }
  .content-section { padding: 58px 0; }
  .info-card-grid, .service-card-grid, .event-grid, .feature-list, .gallery-grid { grid-template-columns: 1fr; }
  .split-section { gap: 32px; }
  .scripture-quote { padding: 38px 24px; }
  .person-card { grid-template-columns: 1fr; text-align: center; }
  .person-photo { width: 145px; margin: auto; }
  .person-card a { justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .public-form { padding: 20px 15px; }
  .sermon-card, .news-article { grid-template-columns: 65px 1fr; gap: 15px; padding: 18px 14px; }
  .sermon-date, .news-meta { width: 65px; height: 65px; }
  .sermon-date span, .news-meta span { font-size: 1.65rem; }
  .search-box { display: block; }
  .search-box label { margin-bottom: 7px; }
  .map-frame, .map-frame iframe { min-height: 390px; }
  .gallery-item figcaption { display: block; }
  .gallery-item figcaption small { display: block; margin-top: 5px; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid section, .footer-grid section:nth-child(3), .footer-grid blockquote { grid-column: auto; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .footer-grid blockquote { border-bottom: 0; }
  .footer-bottom { display: block; }
  .footer-bottom nav { margin-top: 10px; }
  .chat-launch { right: 12px; bottom: 74px; display: grid; min-width: 154px; padding: 9px 12px; border-radius: 14px; }
  .chat-launch .icon { width: 26px; height: 26px; }
  .chat-launch span { font-size: .8rem; }
  .chat-launch small { font-size: .58rem; }
  body.chat-open .chat-launch { display: none; }
  .mobile-actions { position: fixed; z-index: 1050; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 62px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #d5dfed; background: rgba(255,255,255,.96); box-shadow: 0 -7px 25px rgba(3,21,43,.13); backdrop-filter: blur(14px); }
  .mobile-actions > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--blue-deep); font-size: .64rem; font-weight: 800; text-decoration: none; }
  .mobile-actions .icon { width: 22px; height: 22px; color: var(--cornflower-dark); }
  .chat-panel { inset: auto 0 calc(62px + env(safe-area-inset-bottom)) 0; width: 100%; max-height: calc(100dvh - 62px - env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .cookie-banner { left: 10px; right: 10px; bottom: 72px; display: block; }
  .cookie-actions { margin-top: 12px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-panel { padding: 18px 13px; }
}

@media (max-width: 440px) {
  .home-action-grid { grid-template-columns: 1fr; }
  .home-action-card { display: grid; grid-template-columns: 120px 1fr; }
  .home-action-card > img { height: 100%; min-height: 150px; }
  .image-badge { font-size: .58rem; }
  .home-action-card p { margin-bottom: 8px; }
  .brand-copy strong { font-size: 1.05rem; }
  .admin-stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .chat-launch, .chat-panel, .mobile-actions, .cookie-banner, .hero-actions, .nav-donate { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  .page-hero, .home-hero { min-height: 0; padding: 40px 0; background: #fff !important; color: #000; }
  .page-hero-overlay, .home-hero-shade { display: none; }
  .page-hero h1, .home-hero h1 { color: #000; }
  .content-section { padding: 30px 0; }
}

/* Mobile viewport hardening: prevent content from exceeding narrow iPhone screens. */
html, body { max-width: 100%; overflow-x: clip; }
.content-shell, .footer-shell, .header-shell,
.form-layout > *, .field-row > *, .contact-methods > *,
.split-section > *, .visit-grid > *, .prayer-layout > *,
.giving-grid > *, .appeal-panel > *, .footer-grid > *,
.info-card-grid > *, .service-card-grid > *, .event-grid > *,
.gallery-grid > *, .whatson-links > *, .home-notices-grid > * { min-width: 0; }
.contact-methods span, .contact-methods strong, .contact-methods a,
.form-intro, .public-form, .public-form label, .public-form input,
.public-form select, .public-form textarea, .text-link { min-width: 0; max-width: 100%; }
.contact-methods strong, .contact-methods a, .text-link,
.public-form label > span { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 720px) {
  .contact-layout { width: calc(100% - 24px); max-width: 100%; overflow: hidden; }
  .contact-methods > * { grid-template-columns: 30px minmax(0,1fr); }
  .public-form { width: 100%; max-width: 100%; }
  .field-row { width: 100%; max-width: 100%; }
}


.content-module-video { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:inherit; background:#101820; }
.content-video-placeholder { display:grid; min-height:320px; place-content:center; gap:.35rem; padding:2rem; text-align:center; border:2px dashed rgba(31,74,125,.35); border-radius:16px; background:#eef4fb; color:#1f4a7d; cursor:pointer; }
.content-video-placeholder strong { font-size:1.25rem; }
.content-video-placeholder span { font-size:.9rem; opacity:.8; }

/* Editable hero media: uploaded video can occupy the same hero position as the image. */
.page-hero-video, .home-hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero-overlay, .home-hero-shade { z-index:1; }
.page-hero-content, .home-hero-content, .home-hero .photo-credit { position:relative; z-index:2; }
@media (max-width: 760px) {
  .page-hero-video, .home-hero-video { display:none; }
}

/* WYSIWYG media swap: videos occupy the same visual slot as the images they replace. */
.home-action-card > video.home-action-media,
.split-image > video.content-module-video,
.person-photo > video.person-media-video,
.gallery-item > video.gallery-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Parish newsletter */
.newsletter-featured{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:34px;border:1px solid var(--line,#d7e0eb);border-radius:24px;background:#fff;box-shadow:0 14px 34px rgba(20,54,95,.08);margin-bottom:42px}.newsletter-featured h2{margin-top:4px}.newsletter-mark{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:#edf4ff;color:#173b70}.newsletter-mark svg{width:44px;height:44px}.newsletter-meta{font-weight:800;color:#51657b}.newsletter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.newsletter-card{min-width:0;background:#fff;border:1px solid var(--line,#d7e0eb);border-radius:20px;padding:24px}.newsletter-card h3{margin:.35rem 0}.newsletter-card>a{font-weight:800;color:#173b70}.newsletter-card p{overflow-wrap:anywhere}@media(max-width:850px){.newsletter-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.newsletter-featured{grid-template-columns:1fr;padding:24px}.newsletter-mark{display:none}.newsletter-grid{grid-template-columns:1fr}}
