:root {
    --eden-950: #102a22;
    --eden-900: #173d30;
    --eden-800: #20513f;
    --eden-700: #287053;
    --eden-100: #e8f2ed;
    --eden-50: #f5f9f7;
    --gold-500: #c99a2e;
    --gold-100: #f7edcf;
    --ink: #17231f;
    --muted: #5d6b65;
    --line: #dce5e0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { min-width: 0; color: var(--ink); background: #fff; font-family: "Montserrat", sans-serif; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
iframe { display: block; }
h1, h2, h3 { letter-spacing: -.025em; }
p { line-height: 1.75; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-fade-in { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.scroll-fade-in.visible { opacity: 1; transform: translateY(0); }
.hero-content { animation: fadeInUp .7s ease-out; }

.site-nav { background: rgba(16, 42, 34, .97); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-nav { min-height: 4rem; padding-inline: clamp(.5rem, 2vw, 1.5rem); }
.site-nav .menu a { min-height: 2.75rem; border-radius: .45rem; }
.site-nav .menu a:hover { background: rgba(255,255,255,.08); }
.site-nav .menu a.active { background: var(--gold-500); color: #17231f; }
.brand-mark { background: var(--gold-500); color: var(--eden-950); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brand-name-short { display: none; }

.page-hero {
    min-height: 20rem;
    background:
        linear-gradient(90deg, rgba(10,31,24,.9), rgba(10,31,24,.68)),
        image-set(
            url("../images/hero/sunrise-hero.avif") type("image/avif"),
            url("../images/hero/sunrise-hero.jpg") type("image/jpeg")
        ) center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent);
}
.page-hero .hero-content { z-index: 1; }
.page-hero > * { position: relative; z-index: 1; }
.page-kicker { color: #e8c86f; letter-spacing: .18em; text-transform: uppercase; font-size: .875rem; font-weight: 700; }

/* Original interior-page heroes keep their copy while adopting the compact brand treatment. */
main > .hero:not(.home-hero) {
    min-height: 20rem !important;
    background-image:
        linear-gradient(90deg, rgba(10,31,24,.88), rgba(10,31,24,.66)),
        image-set(
            url("../images/hero/sunrise-hero.avif") type("image/avif"),
            url("../images/hero/sunrise-hero.jpg") type("image/jpeg")
        ) !important;
    background-position: center !important;
    background-size: cover !important;
}
main > .hero:not(.home-hero) .hero-overlay { background: rgba(10,31,24,.22); }
main > .hero:not(.home-hero) .hero-content { height: auto; padding-block: 4rem; }
main > .hero:not(.home-hero) h1 { font-family: "Merriweather", serif; font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.1; }

.home-hero {
    min-height: 43rem;
    background:
        linear-gradient(90deg, rgba(16,42,34,.98) 0%, rgba(16,42,34,.9) 52%, rgba(16,42,34,.42) 100%),
        image-set(
            url("../images/hero/sunrise-hero.avif") type("image/avif"),
            url("../images/hero/sunrise-hero.jpg") type("image/jpeg")
        ) center/cover;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.home-hero .hero-overlay {
    background: linear-gradient(90deg, rgba(10,31,24,.95) 0%, rgba(10,31,24,.88) 48%, rgba(10,31,24,.52) 76%, rgba(10,31,24,.32) 100%);
}
.home-hero .animate-bounce { animation: none; }
.home-hero-content { justify-content: flex-start; text-align: left; }
.home-hero-copy { padding-block: 7rem; }
.home-hero-copy h1,
.home-hero-summary { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.home-motto { background: rgba(201,154,46,.95); color: var(--eden-950); }
.display-heading { font-family: "Merriweather", serif; font-weight: 700; letter-spacing: -.04em; }
.eyebrow { color: #e8c86f; letter-spacing: .16em; text-transform: uppercase; font-size: .875rem; font-weight: 700; }

.section-shell { max-width: 75rem; margin-inline: auto; padding-inline: 1.25rem; }
.section-label { color: var(--eden-700); letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; font-weight: 700; }
.surface-soft { background: var(--eden-50); }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.journey-card {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(16,42,34,.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.journey-card:hover { transform: translateY(-2px); border-color: #abc8ba; box-shadow: 0 12px 28px rgba(16,42,34,.1); }
.journey-card strong { color: var(--eden-800); font-size: 1rem; }
.journey-card span { color: var(--muted); font-size: .875rem; line-height: 1.55; }

.mission-card, .card-premium, .content-card {
    border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 28px rgba(16,42,34,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mission-card:hover, .card-premium:hover, .content-card:hover {
    transform: translateY(-3px); border-color: #b9cec3; box-shadow: 0 18px 40px rgba(16,42,34,.11);
}
main .shadow-xl { box-shadow: 0 10px 32px rgba(16,42,34,.09); }
main .rounded-xl, main .rounded-2xl { border-radius: 1rem; }
main section > .container { max-width: 75rem; }
main .container { width: 100%; }
main .card-body { min-width: 0; }
main a, main p, footer a, footer p { overflow-wrap: anywhere; }
main .overflow-x-auto { overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
main table { min-width: 44rem; }
main .bg-gradient-to-r.from-orange-600,
main .bg-gradient-to-r.from-blue-600,
main .bg-gradient-to-r.from-green-600 { background-image: none; background-color: var(--eden-800); }
main .mission-card > div:first-child { background-color: var(--eden-700); }
main .mission-card h3 { color: var(--eden-900); }
.ministry-symbol { background: var(--eden-100); color: var(--eden-700); }
.badge-ministry { background: var(--gold-100); color: #70500c; border: 0; }
.ministry-status-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 1.75rem;
    height: auto;
    padding: .25rem .75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-premium, .btn-brand { background: var(--eden-700); border-color: var(--eden-700); color: #fff; }
.btn-premium:hover, .btn-brand:hover { background: var(--eden-800); border-color: var(--eden-800); }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--eden-950); }
.btn-gold:hover { background: #dab04d; border-color: #dab04d; }
/* Override framework defaults so every primary and secondary action uses the ACM palette. */
.btn.btn-primary:not(.btn-outline) {
    background: var(--eden-700);
    border-color: var(--eden-700);
    color: #fff;
}
.btn.btn-primary:not(.btn-outline):hover {
    background: var(--eden-800);
    border-color: var(--eden-800);
}
.btn.btn-outline.btn-primary {
    background: transparent;
    border-color: var(--eden-700);
    color: var(--eden-700);
}
.btn.btn-outline.btn-primary:hover {
    background: var(--eden-700);
    border-color: var(--eden-700);
    color: #fff;
}
.btn.btn-secondary:not(.btn-outline) {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--eden-950);
}
.btn.btn-outline.btn-secondary {
    background: transparent;
    border-color: var(--gold-500);
    color: #70500c;
}
.btn.btn-outline.btn-secondary:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--eden-950);
}

.stats-band { background: var(--eden-950); color: white; }
.stat-number { color: #e8c86f; font-family: "Merriweather", serif; }

.tabs .tab { color: var(--muted); font-weight: 600; }
.tabs .tab:checked { color: var(--eden-800); border-color: var(--eden-700); }
.tab-content { border-color: var(--line) !important; }
.section-nav-layout { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.section-nav-link {
    order: 0;
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    background: var(--eden-50);
    color: var(--eden-800);
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.section-nav-link:first-child { border-radius: .75rem 0 0 .75rem; }
.section-nav-link:last-of-type { border-radius: 0 .75rem .75rem 0; }
.section-nav-link:hover,
.section-nav-link:focus-visible { background: var(--eden-100); color: var(--eden-950); }
.content-section {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    scroll-margin-top: 1rem;
}
.content-section ~ .content-section { margin-top: 2.5rem; }
.event-section-upcoming { order: 1; }
.event-section-past { order: 2; }
.card { border-color: var(--line); }
.input, .textarea, .select { border-color: #cbd8d1; background: #fff; }
.input:focus, .textarea:focus, .select:focus { outline-color: var(--eden-700); }
main .btn { font-size: 1rem; line-height: 1.35; }
main .badge,
main .text-xs,
main [class~="text-[13px]"] { font-size: .875rem; line-height: 1.45; }
main .label-text { font-size: 1rem; line-height: 1.5; }
main .label-text-alt { font-size: .875rem; line-height: 1.5; }
footer + div { font-size: .875rem; }

/* Consistent, comfortable interaction areas for mouse and touch users. */
main .btn,
main button:not(.step),
#chatbot button,
.site-nav label.btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    height: auto;
}
.site-nav > a { min-height: 2.75rem; }
main .input,
main .select,
main .file-input { min-height: 2.75rem; height: auto; }
main a[href^="tel:"],
main a[href^="mailto:"],
footer.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: .35rem;
}
main .form-control > .label.cursor-pointer { min-height: 2.75rem; }

/* Keep form labels, guidance, validation messages, and consent copy inside their cards. */
main .form-control { min-width: 0; }
main .form-control > .label {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: .75rem;
    white-space: normal;
}
main .form-control .label-text,
main .form-control .label-text-alt {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
main .form-control > .label.cursor-pointer .label-text { flex: 1 1 auto; }
main .form-control > .label.cursor-pointer .checkbox { flex: 0 0 auto; }

.scroll-indicator { position: fixed; inset: 0 auto auto 0; z-index: 1000; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--gold-500); }
.site-notification-region {
    position: fixed;
    top: max(5rem, calc(4.25rem + env(safe-area-inset-top)));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 90;
    display: grid;
    width: min(26rem, calc(100vw - 2rem));
    gap: .75rem;
    pointer-events: none;
}
.site-notification {
    pointer-events: auto;
    box-shadow: 0 16px 38px rgba(16,42,34,.24);
    animation: notificationIn .25s ease-out;
}
.site-notification.is-leaving { opacity: 0; transform: translateY(-.5rem); transition: opacity .2s ease, transform .2s ease; }
.site-notification-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: -.5rem;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}
.site-notification-close:hover { background: rgba(0,0,0,.1); }
@keyframes notificationIn {
    from { opacity: 0; transform: translateY(-.75rem); }
    to { opacity: 1; transform: translateY(0); }
}
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 6.5rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .65rem .9rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: var(--eden-900);
    color: #fff;
    box-shadow: 0 10px 28px rgba(16,42,34,.24);
    font-size: .8rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(.75rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.back-to-top:hover { background: var(--eden-700); }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 1rem; height: 1rem; flex: none; }
.chat-message { max-width: 85%; border-radius: 1rem; padding: .65rem .85rem; font-size: .875rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chat-message-bot { background: white; color: #1f2937; }
.chat-message-user { margin-left: auto; background: var(--eden-700); color: white; }

/* Phones */
@media (max-width: 639px) {
    .site-nav { min-height: 3.75rem; padding-inline: .25rem; }
    .site-nav .brand-mark { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; }
    .site-nav a { min-width: 0; }
    .site-nav a > span:last-child { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .drawer-side nav { width: min(20rem, 88vw); }

    .home-hero { min-height: 32rem !important; background-position: 68% center !important; }
    .home-hero .hero-overlay { background: linear-gradient(90deg, rgba(10,31,24,.94) 0%, rgba(10,31,24,.84) 68%, rgba(10,31,24,.58) 100%); }
    .home-hero-copy { padding: 3.5rem 1.25rem; text-align: left; }
    .home-hero-copy p { margin-inline: 0; }
    .home-hero-copy h1 { max-width: 20rem; font-size: clamp(2.15rem, 10vw, 2.75rem); line-height: 1.08; }
    .home-hero-summary { max-width: 20rem; font-size: .95rem; line-height: 1.65; }
    .home-motto { border-radius: .75rem; font-size: .875rem; line-height: 1.35; }

    main > .hero:not(.home-hero), .page-hero { min-height: 14rem !important; }
    main > .hero:not(.home-hero) .hero-content { padding: 3.25rem 1rem; }
    main > .hero:not(.home-hero) .hero-content > div { margin: 0; }
    main > .hero:not(.home-hero) h1, .page-hero h1 { margin-bottom: .75rem; font-size: 2.1rem !important; line-height: 1.12; }
    main > .hero:not(.home-hero) p { margin: 0 auto; font-size: .95rem; }

    main section { scroll-margin-top: 4rem; }
    main section[class*="py-16"], main section[class*="py-20"], main section[class*="py-24"] { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    main .container, .section-shell { padding-inline: 1rem; }
    main h2 { line-height: 1.18; }
    main .text-3xl { font-size: 1.65rem; }
    main .text-4xl, main .text-5xl { font-size: 2rem; }
    .journey-grid { grid-template-columns: 1fr; }
    .journey-card { min-height: 0; padding: 1rem 1.1rem; }

    .tab-content, .content-section { padding: 1rem !important; }
    .section-nav-link { flex: 1 1 45%; padding-inline: .6rem; font-size: .875rem; }
    .section-nav-link:first-child,
    .section-nav-link:last-of-type { border-radius: .5rem; }
    .tabs { width: 100%; justify-content: flex-start !important; overflow: visible; flex-wrap: wrap; }
    .tabs .tab { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; height: auto; white-space: normal; text-align: center; font-size: .82rem; line-height: 1.25; padding: .65rem .75rem; }
    .tabs > .tab-content { flex: 0 0 100%; width: 100%; min-width: 0; }
    .tabs.tabs-lifted { padding-top: .5rem; }

    main .card-body { padding: 1.25rem; }
    main .grid { column-gap: 1rem; row-gap: 1.25rem; }
    main .btn-lg { min-height: 2.75rem; height: auto; padding: .7rem 1rem; font-size: .95rem; }
    main .steps { font-size: .72rem; }

    main .h-96 { height: 20rem; }
    main iframe + div.absolute { max-width: calc(100% - 2rem); padding: .75rem; }
    .contact-map { height: auto !important; overflow: visible; background: #fff; }
    .contact-map iframe { height: 18rem; border-radius: .5rem .5rem 0 0; }
    .contact-map .contact-map-details {
        position: static !important;
        max-width: none;
        padding: 1rem;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 .5rem .5rem;
        box-shadow: none;
    }
    #photo-modal .modal-box { width: calc(100vw - 1rem); max-width: none; padding: .5rem; }
    #photo-modal [class*="bottom-16"] { bottom: 4.5rem; width: calc(100% - 2rem); }

    #chatbot { right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); }
    #chatbot-panel { position: fixed; inset: auto .5rem calc(4.75rem + env(safe-area-inset-bottom)) .5rem; width: auto; max-width: none; }
    #chat-messages { height: min(21rem, 48vh); }
    #chat-form { padding: .75rem; }
    /* Keep one clear floating action on phones; touch scrolling makes this control redundant. */
    .back-to-top { display: none; }

    footer.footer { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 1.25rem; }
    footer.footer .footer-brand { place-items: center; text-align: center; }
    .footer-logo { width: 4rem; height: 4rem; }
    .footer-mobile-groups { width: 100%; justify-self: stretch; border-top: 1px solid rgba(255,255,255,.2); }
    .footer-disclosure { width: 100%; border-bottom: 1px solid rgba(255,255,255,.2); }
    .footer-disclosure summary {
        min-height: 3rem;
        padding: .85rem .25rem;
        color: #fff;
        font-weight: 700;
        cursor: pointer;
    }
    footer.footer .footer-disclosure nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: .15rem .25rem .75rem;
    }
    footer + div {
        padding-right: 5rem;
        padding-bottom: max(1.5rem, calc(.75rem + env(safe-area-inset-bottom)));
        padding-left: 1rem;
        font-size: .875rem;
    }
}

/* Event grids use one media frame regardless of the source image dimensions. */
.event-list-card { display: flex; height: 39rem; flex-direction: column; overflow: hidden; }
.event-card-media {
    display: flex;
    flex: 0 0 17rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 17rem;
    min-height: 17rem;
    max-height: 17rem;
    overflow: hidden;
}
.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.event-section-upcoming .event-card-media img {
    object-position: center top;
}
.event-card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.event-dialog-image {
    display: block;
    width: 100%;
    max-height: 20rem;
    object-fit: contain;
    background: #f1f5f9;
}
.event-dialog-panel {
    display: flex;
    flex-direction: column;
    width: min(44rem, calc(100vw - 2rem));
    max-width: 44rem;
    max-height: min(46rem, calc(100vh - 4rem));
    padding: 0;
    overflow: hidden;
}
.event-dialog-header {
    flex: none;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.event-dialog-header h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}
.event-dialog-scroll {
    min-height: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.event-detail-media {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #f1f5f9;
}
.event-detail-image {
    display: block;
    width: 100%;
    max-height: min(48rem, 80vh);
    object-fit: contain;
}

/* Leadership cards stay aligned while full biographies remain available. */
.leadership-card {
    height: 29rem;
    overflow: hidden;
}
.leadership-card-body {
    display: flex;
    min-height: 0;
    padding: 1.5rem;
}
.leadership-card-photo {
    flex: 0 0 17rem;
    height: 17rem;
    margin-bottom: 1rem;
}
.leadership-card-photo .leadership-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Preserve heads and crop any excess portrait height from the bottom. */
    object-position: center top !important;
}
.leadership-bio-panel .leadership-portrait,
.portal-detail-image.leadership-portrait {
    object-fit: contain;
    object-position: center top !important;
}
.leadership-card-name {
    min-height: 1.75rem;
}
.leadership-card-position {
    display: -webkit-box;
    min-height: 3rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.leadership-card .btn {
    flex-shrink: 0;
    margin-bottom: .5rem;
}
.leadership-bio-panel {
    display: flex;
    width: min(40rem, calc(100vw - 2rem));
    max-width: 40rem;
    max-height: min(42rem, calc(100vh - 4rem));
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.leadership-bio-header {
    display: flex;
    flex: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.leadership-bio-header p,
.leadership-bio-header h3 {
    margin: 0;
}
.leadership-bio-scroll {
    min-height: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 639px) {
    .event-list-card { height: 36rem; }
    .event-card-media { flex-basis: 14rem; height: 14rem; min-height: 14rem; max-height: 14rem; }
    .event-dialog-panel { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
    .event-dialog-header, .event-dialog-scroll { padding: 1rem; }
    .event-dialog-image { max-height: 15rem; }
    .leadership-card { height: 27rem; }
    .leadership-card-photo { flex-basis: 15rem; height: 15rem; }
    .leadership-bio-panel { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
    .leadership-bio-header, .leadership-bio-scroll { padding: 1rem; }
}

@media (max-width: 359px) {
    .brand-name-full { display: none; }
    .brand-name-short { display: inline; }
}

/* Tablets */
@media (min-width: 640px) and (max-width: 1023px) {
    .site-nav { padding-inline: 1rem; }
    .home-hero { min-height: 40rem; background-position: 60% center; }
    .home-hero-copy { padding-block: 6rem; }
    .home-hero-copy h1 { max-width: 42rem; font-size: 3.6rem; }
    main > .hero:not(.home-hero), .page-hero { min-height: 17rem !important; }
    main > .hero:not(.home-hero) .hero-content { padding-block: 3.5rem; }
    main .container, .section-shell { padding-inline: 1.5rem; }
    .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tabs { overflow: visible; flex-wrap: wrap; justify-content: flex-start !important; }
    .tabs .tab { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; height: auto; white-space: normal; text-align: center; }
    .tabs > .tab-content { flex: 0 0 100%; width: 100%; min-width: 0; }
    main .card-body { padding: 1.5rem; }
    footer.footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-inline: 2rem; }
}

/* Touch devices should not hide gallery actions behind hover. */
@media (hover: none) {
    #photo-grid .group [class*="group-hover:opacity-100"] { opacity: 1; }
    .mission-card:hover, .card-premium:hover, .content-card:hover { transform: none; }
}

/* Laptop and desktop layouts remain comfortably bounded. */
@media (min-width: 1024px) {
    .home-hero-copy { max-width: 75rem; }
    main .container, .section-shell { padding-inline: 2rem; }
    footer.footer { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: max(2.5rem, calc((100vw - 75rem) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .scroll-fade-in { opacity: 1; transform: none; }
}

/* Typography for trusted content authored with the admin rich-text editor. */
.rich-text-content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.rich-text-content > :first-child { margin-top: 0; }
.rich-text-content > :last-child { margin-bottom: 0; }
.rich-text-content p { margin: 0 0 1rem; }
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    margin: 1.35rem 0 .65rem;
    color: #1e293b;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
}
.rich-text-content h2 { font-size: 1.4rem; }
.rich-text-content h3 { font-size: 1.2rem; }
.rich-text-content h4 { font-size: 1.05rem; }
.rich-text-content strong { font-weight: 700; }
.rich-text-content em { font-style: italic; }
.rich-text-content ol,
.rich-text-content ul {
    margin: .75rem 0 1rem;
    padding-left: 1.75rem;
}
.rich-text-content ol { list-style: decimal outside; }
.rich-text-content ul { list-style: disc outside; }
.rich-text-content li { margin: .35rem 0; padding-left: .2rem; }
.rich-text-content li::marker { color: #287053; font-weight: 700; }
.rich-text-content a { color: #166534; font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.rich-text-content a:hover { color: #0f5132; }

/* Brief ministry copy is shown in full; cards stretch evenly within each row. */
.ministry-card { height: 100%; min-height: 34rem; }
.ministry-card > .ministry-card-media {
    display: flex;
    flex: 0 0 13rem;
    width: 100%;
    height: 13rem;
    min-height: 13rem;
    max-height: 13rem;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}
.ministry-card-summary {
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.ministry-dialog-panel {
    width: min(46rem, calc(100vw - 2rem));
    max-width: 46rem;
    max-height: min(52rem, calc(100dvh - 2rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ministry-dialog-image {
    display: block;
    width: 100%;
    height: min(18rem, 34vh);
    object-fit: cover;
    object-position: center;
}
.ministry-dialog-close {
    position: sticky;
    top: 0;
    z-index: 2;
    float: right;
    background: rgba(255, 255, 255, .94);
}

@media (max-width: 639px) {
    .ministry-card { min-height: 32rem; }
    .ministry-dialog-panel { padding: 1.25rem; }
}
