:root {
    --green: #1f7a3a;
    --green-dark: #145228;
    --green-bright: #3cb54a;
    --green-soft: #e7f4e8;
    --brand: var(--green);
    --brand-dark: var(--green-dark);
    --brand-soft: var(--green-soft);
    --charcoal: #145228;
    --charcoal-deep: #102016;
    --cream: #f7f3ea;
    --ink: #161616;
    --muted: #5c5c5c;
    --footer: #0b0b0b;
    --sunday: #1a1410;
    --header-h: 72px;
    --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --heading-size: clamp(1.75rem, 3.2vw, 2.35rem);
    --subhead-size: 1.25rem;
    --body-size: 1rem;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 106.25%;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    font-family: var(--font);
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}
body { font-size: 1rem; }
.site {
    width: 100%;
    min-width: 0;
}
body:has(.nav-toggle:checked) {
    overflow: hidden;
}
img, video {
    max-width: 100%;
    height: auto;
}
iframe { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a, button, label, input, select, textarea { touch-action: manipulation; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: none;
}
h2 { font-size: var(--subhead-size); margin: 1.35rem 0 0.45rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
p, li { font-size: 1rem; line-height: 1.7; }
.welcome h2,
.vision h2,
.section-heading h2,
.sunday-band h2,
.site-footer h2,
.page-banner h1 {
    font-size: var(--heading-size);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: none;
    margin: 0 0 1rem;
}

.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.container.narrow { width: min(760px, calc(100% - 2.5rem)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    width: 100%;
    min-height: var(--header-h);
    padding: max(0.55rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-line {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #333;
}
.brand-sub {
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: #141414;
}
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.top-nav {
    display: none;
}
.top-nav a {
    color: #333;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.top-nav a.tab-new,
.menu-nav a.tab-new,
.menu-btn.tab-new {
    background: #ffe566;
    color: #1a1400 !important;
    border-radius: 6px;
    padding: 0.28rem 0.5rem;
    animation: tabPulse 0.9s ease-in-out infinite;
}
.menu-btn.tab-new { border-radius: 999px; }
@keyframes tabPulse {
    0%, 100% { background: #ffe566; box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.85); }
    50% { background: #fff6c2; box-shadow: 0 0 0 7px rgba(255, 214, 0, 0); }
}
.top-nav a:hover {
    color: var(--brand);
    text-decoration: none;
}
.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-left: auto;
    min-height: 44px;
    min-width: 44px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.menu-btn-label::before { content: "Menu"; }
.nav-toggle:checked ~ .site-header .menu-btn-label::before { content: "Close"; }
.menu-icon {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-icon span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:checked ~ .site-header .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle:checked ~ .site-header .menu-icon span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked ~ .site-header .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--charcoal-deep);
    color: #fff;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 0.5rem) max(1.5rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
}
.nav-toggle:checked ~ .menu-overlay {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.menu-nav a {
    color: #fff;
    font-size: clamp(1.15rem, 5vw, 1.6rem);
    font-weight: 800;
    text-decoration: none;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.menu-nav a:hover {
    color: var(--green-bright);
    text-decoration: none;
}
.menu-close {
    display: inline-block;
    margin-top: 1.5rem;
    color: #cfe8d0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.hero {
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    background-color: var(--charcoal-deep);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
}
.hero-loading { min-height: 60vh; }
.hero-photo,
.hero-slides,
.hero-slides span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--charcoal-deep);
}
.hero-slides span {
    opacity: 0;
    transition: opacity 0.45s ease;
}
.hero-slides span.is-active { opacity: 1; }
.hero-arrow {
    position: absolute;
    top: 46%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 32, 22, 0.55);
    color: #fff;
    font: 700 1.7rem/1 var(--font);
    cursor: pointer;
}
.hero-arrow:hover { background: var(--green); }
.hero-arrow-prev { left: max(0.75rem, env(safe-area-inset-left)); }
.hero-arrow-next { right: max(0.75rem, env(safe-area-inset-right)); }
.hero-slides .s1 { background-image: url("/images/hero-side.jpg"); }
.hero-slides .s2 { background-image: url("/images/hero-comm.jpg"); animation-delay: 5s; }
.hero-slides .s3 { background-image: url("/images/hero-angle.jpg"); animation-delay: 10s; }
.hero-slides .s4 { background-image: url("/images/hero-pastor.jpg"); animation-delay: 15s; }
.hero-slides .s5 { background-image: url("/images/hero-front.jpg"); animation-delay: 20s; }
@keyframes heroFade {
    0% { opacity: 0; }
    6% { opacity: 1; }
    20% { opacity: 1; }
    26% { opacity: 0; }
    100% { opacity: 0; }
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8,16,10,0.72) 8%, rgba(8,16,10,0.28) 70%);
}
.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(1.5rem, 6vw, 5rem);
    padding-left: max(clamp(1.5rem, 6vw, 5rem), env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(clamp(1.5rem, 6vw, 5rem), env(safe-area-inset-bottom));
    max-width: 760px;
}
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #c9ecc9;
    font-weight: 600;
}
.hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.75rem);
    font-weight: 600;
    margin: 0.2rem 0 0.6rem;
}
.hero-sub { font-size: 1.2rem; opacity: 0.92; }
.hero-body { max-width: 38rem; }

.btn, .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}
.btn { padding: 0.85rem 1.4rem; border-radius: 4px; min-height: 44px; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-green, .btn-hero { background: var(--green-bright); color: #102010; }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-ghost { background: transparent; color: inherit; }
.btn-danger { background: #8b1e1e; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cta-pills {
    display: none;
}
.pill {
    min-width: min(280px, 100%);
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92rem;
}
.pill:hover { text-decoration: none; transform: translateY(-1px); }
.pill-dark { background: #111; color: #fff; }
.pill-light { background: #f4f4f4; color: var(--green-dark); }
.pill-green { background: var(--green-bright); color: #102010; }

.announcements { padding: 4.5rem 0 3rem; background: #fff; }
.section-heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.section-heading h2 { margin: 0; }
.heading-rule { flex: 1; height: 1px; background: #ddd; }
.section-heading.light h2 { color: var(--ink); }

.carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 0.75rem;
}
.carousel-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.carousel-nav {
    width: 44px;
    border: 0;
    background: var(--cream);
    font-size: 2rem;
    cursor: pointer;
}
.announce-card {
    min-height: 0;
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    background: linear-gradient(135deg, #2e6b3a, #17391f);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.announce-card:not(.has-image) {
    min-height: 240px;
    padding: 1.5rem;
}
.announce-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #102016;
    display: block;
}
.announce-card.has-image .announce-copy { padding: 1.15rem 1.25rem 1.35rem; }
.announce-card:hover { text-decoration: none; transform: translateY(-2px); }
.announce-copy h3 { margin: 0 0 0.35rem; font-size: var(--subhead-size); color: #fff; }
.announce-copy p { margin: 0; color: #e8f5e8; }
.home-refresh {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.45rem 0.9rem;
    min-height: 40px;
    border-radius: 999px;
    font-size: 0.82rem;
}
.site-header .home-refresh + .menu-btn { margin-left: 0.55rem; }

.sunday-band {
    background: var(--sunday);
    color: #fff;
    text-align: center;
    padding: 4.5rem 1.25rem 5rem;
}
.sunday-band .eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
    color: #d8c7b0;
}
.sunday-band h2 { color: #fff; }
.sunday-lang { margin: 0; opacity: 0.9; }
.service-bars { width: min(720px, 100%); margin: 2.2rem auto 0; display: grid; gap: 0.85rem; }
.service-bar {
    background: var(--green);
    color: #fff;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.service-bar strong { font-size: 1.05rem; }

.vision { padding: 4.5rem 0; background: var(--green-soft); }
.vision h2 { color: var(--ink); }
.vision-text { margin: 0; }
.vision-highlight {
    font-weight: 800;
    color: var(--brand-dark);
    background: linear-gradient(transparent 62%, rgba(60, 181, 74, 0.35) 62%);
    padding: 0 0.15em;
}
.home-ministries { padding: 4.5rem 0 3.5rem; background: #fff; }
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--green);
    margin: 0 0 1.2rem;
}
#ministries, #events, #sunday, #new-here { scroll-margin-top: calc(var(--header-h) + 0.75rem); }
.home-events { padding: 4.5rem 0; background: #f3f3f3; color: var(--ink); }
.home-events .section-kicker { color: var(--brand); }
.new-here-block { padding-top: 0; }
.new-here-block h2 { margin-top: 0; }
.home-events .muted { color: var(--muted); }
.home-events a { color: var(--brand-dark); }
.event-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.event-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.2rem;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}
.page-content .event-card {
    background: var(--cream);
    border-color: #eadfce;
    color: var(--ink);
}
.event-when { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--green-bright); margin: 0 0 0.4rem; }
.page-content .event-when { color: var(--green); }

.welcome { padding: 4.5rem 0; background: var(--cream); }
.welcome h2,
.home-events h2,
.home-ministries h2,
.page-content h2 { color: inherit; }
.home-events .section-heading h2,
.home-ministries .section-heading h2 { margin: 0; }

.welcome,
.vision,
.announcements,
.sunday-band,
.home-events,
.home-ministries,
.site-footer { text-align: center; }
.welcome .section-heading,
.vision .section-heading,
.announcements .section-heading,
.home-events .section-heading,
.home-ministries .section-heading { justify-content: center; }
.announcements .heading-rule,
.home-events .heading-rule,
.home-ministries .heading-rule { display: none; }
.welcome .plain-list,
.vision .plain-list,
.home-events .plain-list,
.home-ministries .plain-list {
    list-style-position: inside;
    padding-left: 0;
}
.home-events .container,
.home-ministries .container { max-width: 900px; }
.home-ministries .container.has-ministry-grid { max-width: 1100px; }
.event-strip { justify-content: center; }
.event-card,
.announce-copy { text-align: center; }
.text-link { font-weight: 700; }

.page-banner {
    background:
        linear-gradient(120deg, rgba(16, 32, 22, 0.72), rgba(31, 122, 58, 0.42)),
        url("/images/hero-front.jpg") center/cover no-repeat;
    color: #fff;
    padding: 4.5rem 0 3rem;
}
.page-banner .hero-kicker { color: rgba(255, 255, 255, 0.85); }
.page-banner h1 { color: #fff; }
.page-content { padding: 3rem 0 4.5rem; }
.truths-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}
.truths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.1rem;
}
.truth-card {
    position: relative;
    background: #fff;
    border: 1px solid #e3ece4;
    border-top: 4px solid var(--green);
    border-radius: 8px;
    padding: 1.4rem 1.35rem 1.2rem;
    box-shadow: 0 8px 24px rgba(16, 32, 22, 0.06);
}
.truth-number {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.truth-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.12rem;
    color: var(--green-dark);
}
.truth-card .copy p { margin: 0 0 0.6rem; font-size: 0.96rem; }
.beliefs-block {
    padding-top: 0;
    margin-top: -1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e6ebe6;
}
.beliefs-block h2 { margin: 0.25rem 0 0.65rem; font-size: 1.35rem; }
.new-here-block { padding-top: 2.5rem; }
.lead { font-size: var(--body-size); }
.plain-list, .program-list { padding-left: 1.1rem; }
.program-list li { margin: 0.7rem 0; }
.program-list strong { display: inline-block; min-width: 7.5rem; }
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}
.ministry-card {
    background: #fff;
    padding: 1.4rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}
.ministry-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.ministry-card-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    display: block;
}
.ministry-card-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green-soft), #cfe8d3);
    color: var(--green-dark);
    font-size: 2.6rem;
    font-weight: 800;
}
.ministry-admin-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.ministry-admin-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 0.8rem;
    border-radius: 8px;
}
.ministry-admin-thumb {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.ministry-admin-body { display: grid; gap: 0.45rem; min-width: 0; }
.ministry-admin-title { font-weight: 700; }
.ministry-admin-upload { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ministry-admin-upload input[type="file"] { max-width: 100%; font-size: 0.88rem; }
.ministry-admin-upload .btn { min-height: 36px; padding: 0.4rem 0.8rem; font-size: 0.86rem; }
.ministry-card-schedule {
    margin: 0 0 0.65rem;
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.95rem;
}
.ministry-card .copy { margin: 0; font-size: 0.95rem; }
.ministry-card .copy p { margin: 0.45rem 0; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.map-wrap { margin-top: 1rem; border-radius: 8px; overflow: hidden; min-height: 260px; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; }

.stack-form { display: grid; gap: 0.9rem; }
.stack-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.stack-form input, .stack-form textarea, .stack-form select {
    font: inherit;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: end;
    margin: 1.2rem 0 1.6rem;
}
.inline-form label { display: grid; gap: 0.3rem; font-weight: 600; }

.site-footer {
    background: var(--footer);
    color: #fff;
    padding: 3.5rem 0 max(4.5rem, calc(env(safe-area-inset-bottom) + 4rem));
    position: relative;
    text-align: left;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr 1.1fr;
    gap: 2rem 2.5rem;
    align-items: start;
}
.footer-top > div { min-width: 0; }
.footer-brand-line {
    font-weight: 900;
    letter-spacing: 0.12em;
    font-size: 0.95rem !important;
}
.footer-brand-sub {
    margin: 0.2rem 0 0.6rem !important;
    font-weight: 400;
    letter-spacing: 0.22em;
    font-size: 0.68rem !important;
    opacity: 0.8;
}
.footer-tagline { opacity: 0.72; }
.footer-links-block h3,
.footer-contact-block h3 {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green-bright);
}
.footer-contact-list,
.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.footer-contact-list li,
.footer-quick-links li { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.footer-contact-list a { color: var(--green-bright); font-weight: 600; overflow-wrap: anywhere; }
.footer-address { margin-top: 0.85rem !important; opacity: 0.8; }
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    color: var(--green-bright);
    font-weight: 700;
    font-size: 0.92rem;
}
.footer-quick-links a { color: #ddd; font-weight: 500; }
.footer-quick-links a:hover { color: #fff; }
.footer-times { gap: 0.9rem; }
.footer-times li {
    display: grid;
    gap: 0.1rem;
    justify-items: start;
}
.footer-times li span { opacity: 0.8; }
.footer-times strong { color: #fff; font-weight: 700; }
.muted-footer { opacity: 0.65; margin-top: 0.75rem !important; font-size: 0.86rem !important; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.copyright { opacity: 0.6; margin: 0 !important; font-size: 0.86rem !important; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.legal-links a { color: #bbb; font-size: 0.86rem; }
.legal-links a:hover { color: #fff; }
svg.map-pin {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    max-height: 14px;
    flex: 0 0 14px;
    display: block;
}
.back-top {
    position: absolute;
    right: max(1.2rem, env(safe-area-inset-right));
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.admin-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: #102016;
    padding: max(2rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
.login-card {
    width: min(420px, 100%);
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
}
.admin-shell { min-height: 100vh; background: #f5f7f5; }
.admin-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    align-items: center;
    justify-content: space-between;
    padding: max(0.85rem, env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) 0.85rem max(1.2rem, env(safe-area-inset-left));
    background: var(--charcoal-deep);
    color: #fff;
}
.admin-brand { color: #fff; font-weight: 800; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; max-width: 100%; }
.admin-nav a { color: #d7edd9; min-height: 44px; display: inline-flex; align-items: center; }
.admin-main { width: min(1040px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.admin-section { margin-top: 1.6rem; }
.admin-section h2 { margin-bottom: 0.25rem; }
.admin-card-wide { display: block; margin-top: 1.2rem; max-width: 280px; }
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.admin-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 10px;
    color: inherit;
    box-shadow: 0 8px 24px rgba(16,32,22,0.06);
}
.admin-card:hover { text-decoration: none; outline: 2px solid var(--green-bright); }
.admin-list { list-style: none; padding: 0; }
.admin-list li { background: #fff; margin: 0.45rem 0; padding: 0.85rem 1rem; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid #eee; }
.view-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
.hero-preview {
    min-height: 220px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--charcoal-deep);
    margin-bottom: 1rem;
}
.inbox-list { list-style: none; padding: 0; }
.inbox-list li { background: #fff; padding: 1rem; margin: 0.6rem 0; border-radius: 8px; }
.muted { color: var(--muted); }
.error { color: #9b1c1c; }
.success { color: var(--green-dark); font-weight: 700; }

.archive-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.65rem; }
.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--cream);
    color: inherit;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
}
.archive-list a.archive-image {
    flex-direction: column;
    align-items: stretch;
}
.archive-list a.archive-image img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
}
.archive-list .archive-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.archive-list a:hover { text-decoration: none; outline: 2px solid var(--green-bright); }
.archive-list .archive-row span {
    color: var(--green);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.home-readings { padding-top: 3rem; }
.home-readings .carousel-track {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}
.home-readings .announce-card {
    background: var(--cream);
    color: inherit;
    border: 1px solid #eadfce;
    min-height: 0;
}
.home-readings .announce-card.has-image {
    flex-direction: row;
    align-items: stretch;
}
.home-readings .announce-card.has-image img {
    width: 108px;
    max-width: 108px;
    min-height: 80px;
    max-height: 108px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8e4dc;
}
.home-readings .announce-card.has-image .announce-copy {
    padding: 0.75rem 0.9rem;
    flex: 1;
    justify-content: center;
}
.home-readings .announce-card:not(.has-image) {
    min-height: 0;
    padding: 0.85rem 1rem;
}
.home-readings .announce-copy h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: var(--green-dark);
}
.home-readings .announce-copy p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}
.magazine-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.magazine-card {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 12px;
    overflow: hidden;
}
.magazine-summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    list-style: none;
}
.magazine-summary::-webkit-details-marker { display: none; }
.magazine-summary strong { display: block; font-size: 1.15rem; }
.magazine-summary time {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
}
.magazine-chevron {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}
.magazine-chevron::before { content: "+"; }
.magazine-card details[open] .magazine-chevron::before { content: "–"; }
.magazine-panel { display: none; }
.magazine-card details[open] .magazine-panel { display: block; }
.magazine-figure {
    margin: 0;
    background: #f3eee4;
    display: flex;
    justify-content: center;
}
.magazine-figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}
.magazine-card .copy { padding: 1.15rem 1.25rem 0.4rem; }
.magazine-card .copy p { white-space: pre-wrap; margin: 0 0 1rem; }
.magazine-card .copy h2 { font-family: inherit; color: inherit; text-align: inherit; }
.magazine-formatted-copy ul.plain-list { text-align: inherit; list-style-position: inside; padding-left: 0; }
.magazine-formatted-copy h2 { font-family: inherit; color: inherit; text-align: inherit; }
.magazine-formatted-copy p { text-align: inherit; }
.magazine-card .copy ul { text-align: inherit; list-style-position: inside; padding-left: 0; }
.format-fieldset {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 1rem;
}
.format-fieldset legend { padding: 0 0.35rem; font-weight: 700; }
.format-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem; }
.format-toolbar button {
    min-width: 42px;
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.format-toolbar button:hover { border-color: var(--green); background: var(--green-soft); }
.field-help { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.88rem; }
.format-options {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.5fr) minmax(150px, 0.7fr);
    gap: 0.9rem;
}
.format-options label { align-content: start; }
.format-options input[type="color"] { min-height: 46px; padding: 0.25rem; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.editor-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.magazine-preview {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--green);
    border-radius: 10px;
    background: var(--cream);
}
.preview-label {
    margin: 0 0 0.7rem;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.magazine-preview-card { overflow: hidden; border-radius: 8px; background: #fff; }
.magazine-preview-card > h2 { padding: 1rem 1.2rem 0; text-align: left; }
.magazine-preview-card > img { display: block; max-width: 100%; margin: 0 auto; }
.magazine-preview-card > div { padding: 1rem 1.2rem; }
.magazine-preview-card > div h2 { color: inherit; font-family: inherit; text-align: inherit; }
.magazine-preview-card > div ul { list-style-position: inside; padding-left: 0; }
.magazine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 1.1rem 1.15rem;
}
.like-btn, .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    border: 1px solid #eadfce;
    border-radius: 999px;
    background: #fff;
    color: var(--green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.like-btn.is-liked {
    background: #ffe566;
    border-color: #ffe566;
    color: #1a1400;
}
.like-count {
    min-width: 1.2rem;
    text-align: center;
}
.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.admin-photo {
    width: auto;
    max-width: min(420px, 100%);
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 0.4rem 0 1rem;
    display: block;
    background: #f3eee4;
}
.photo-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.photo-admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 0.8rem;
    display: grid;
    gap: 0.8rem;
}
.photo-admin-card img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: #102016;
    border-radius: 8px;
}

.home-intro {
    padding: 3.25rem 0 1.5rem;
    background: #fff;
    text-align: left;
}
.home-intro .container { max-width: 920px; }
.home-intro-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 600;
    color: #333;
}
.home-intro-lead {
    margin: 0;
    max-width: 40rem;
    color: #4c4c4c;
    font-weight: 300;
    line-height: 1.65;
}
.home-campus { padding: 0 0 3.75rem; text-align: left; }
.campus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 1rem;
}
.campus-card {
    background: #f5f5f5;
    padding: 1.75rem 1.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.campus-card-featured {
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}
.campus-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
}
.campus-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #333;
}
.campus-card p { margin: 0; color: #4c4c4c; line-height: 1.65; }
.campus-times {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.35rem;
    display: grid;
    gap: 0.55rem;
}
.campus-times li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.campus-times strong { font-weight: 700; color: #141414; }
.campus-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: rgba(2, 1, 1, 0.05);
    color: #5c5c5c;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 4px;
    text-decoration: none;
}
.campus-cta:hover {
    background: var(--green-soft);
    color: var(--brand-dark);
    text-decoration: none;
}
.campus-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.campus-cta { gap: 0.45rem; }
.campus-cta-map { background: var(--green-soft); color: var(--green-dark); }

@media (max-width: 1000px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .container { width: min(1120px, calc(100% - 1.5rem)); }
    .container.narrow { width: min(760px, calc(100% - 1.5rem)); }
    .carousel, .carousel-track, .contact-layout, .admin-split,
    .ministry-grid, .event-strip, .campus-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
    .footer-contact-list, .footer-quick-links { justify-items: center; }
    .footer-times li { justify-items: center; }
    .footer-link { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
    .service-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .cta-pills .pill { min-width: 100%; min-height: 48px; }
    .page-banner { padding: 3rem 0 2.2rem; }
    .page-content { padding: 2.2rem 0 3.2rem; }
    .announcements, .welcome { padding: 3rem 0 2.2rem; }
    .home-events, .home-ministries { padding: 3rem 0; }
    .sunday-band { padding: 3.2rem 1rem 3.6rem; }
    .program-list strong { display: block; min-width: 0; margin-bottom: 0.15rem; }
    .legal-links { flex-wrap: wrap; gap: 0.8rem 1.2rem; }
    .admin-main { overflow-x: auto; }
    .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero::before {
        background: linear-gradient(180deg, rgba(8,16,10,0.2) 10%, rgba(8,16,10,0.82) 72%);
    }
    .hero {
        min-height: 32rem;
        min-height: min(calc(100svh - var(--header-h)), 42rem);
    }
    .hero-overlay {
        max-width: none;
        padding: 1.35rem 1.1rem 1.8rem;
    }
    .hero h1 { font-size: clamp(1.85rem, 9vw, 3.2rem); }
    .hero-sub { font-size: 1.05rem; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { width: 100%; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .inline-form .btn { width: 100%; }
    .format-options { grid-template-columns: 1fr; }
    .editor-actions { flex-direction: column; }
    .editor-actions .btn { width: 100%; }
    .map-wrap iframe { height: 220px; }
}

@media (max-width: 480px) {
    :root { --header-h: 64px; }
    .brand-logo { height: 48px; }
    .container, .container.narrow { width: calc(100% - 1.25rem); }
    .cta-pills { padding: 1rem 0.75rem; gap: 0.65rem; }
    .announce-card:not(.has-image) { min-height: 200px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (min-width: 1100px) {
    :root { --header-h: 88px; }
    .site-header { padding: 0.75rem 1.5rem; }
    .brand-logo { height: 72px; }
    .menu-btn,
    .menu-overlay { display: none !important; }
    .top-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.35rem 0.65rem;
        flex: 1;
        min-width: 0;
    }
    .top-nav a {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }
}
@media (min-width: 1400px) {
    .top-nav { gap: 0.45rem 1rem; }
    .top-nav a { font-size: 0.78rem; letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slides span { transition: none; }
    .menu-overlay { transition: none; }
    .tab-new { animation: none; }
}
