/**
 * Sonrise: the Sunrise design (October 2026).
 *
 * Night navy, sunrise gold, Instrument Serif headings over Figtree text.
 * Loads after custom.css, so the components here replace the older ones;
 * app-mode.css loads after this file and keeps the last word inside the app.
 * Colors and fonts come from the tokens in style.css.
 */

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border: 1.5px solid var(--color-navy);
    border-radius: var(--radius-pill);
    background: var(--color-navy);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: #1B2B4F; border-color: #1B2B4F; color: #FFFFFF; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-navy); border-color: var(--color-navy); color: #FFFFFF; }
.btn-primary:hover { background: #1B2B4F; border-color: #1B2B4F; color: #FFFFFF; }

.btn-gold,
.dark-mode .btn-primary,
.sr-dark .btn-primary { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.btn-gold:hover,
.dark-mode .btn-primary:hover,
.sr-dark .btn-primary:hover { background: #F7C463; border-color: #F7C463; color: var(--color-navy); }

.btn-outline { background: transparent; border-color: #C9D2E3; color: var(--color-navy); }
.btn-outline:hover { background: #FFFFFF; border-color: var(--color-navy); color: var(--color-navy); }

.btn-outline-light,
.dark-mode .btn-outline,
.sr-dark .btn-outline { background: transparent; border-color: rgba(245, 241, 232, 0.42); color: var(--color-text-dark); }
.btn-outline-light:hover,
.dark-mode .btn-outline:hover,
.sr-dark .btn-outline:hover { background: rgba(245, 241, 232, 0.1); border-color: rgba(245, 241, 232, 0.75); color: #FFFFFF; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

/* Eyebrow labels above headings */
.section-label,
.sr-eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold-ink);
}
.dark-mode .section-label,
.sr-dark .sr-eyebrow,
.dark-mode .sr-eyebrow { color: var(--color-gold); }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================
   HEADER
   The bar sits in the page flow now (it used to float over each page),
   so nothing below needs extra top padding to clear it.
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-navy);
    color: var(--color-text-dark);
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
    transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* For the bar to stay put, nothing around it may be its own scroll box, and
   overflow-x: hidden (style.css, and the phone fixes in custom.css) makes
   one. clip trims the same sideways overflow without that; browsers that
   don't know clip keep hidden and simply get a bar that scrolls away.
   Website only: the app hides this bar, and its own sticky pieces (bulletin
   tabs, the Bible reader's chapter bar) are laid out for the old behavior. */
html:not(.sonrise-app),
html:not(.sonrise-app) body,
html:not(.sonrise-app) #page { overflow-x: clip !important; }

/* Jump links (#visit, #kids) land below the bar instead of under it. */
html:not(.sonrise-app) { scroll-padding-top: 96px; }

.sr-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px clamp(1rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: 20px;
}

.sr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    min-width: 0;
    color: var(--color-text-dark);
    text-decoration: none;
}
.sr-brand:hover { color: #FFFFFF; }
.sr-brand__mark { width: 44px; height: 44px; border-radius: 50%; display: block; flex: none; }
.sr-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
/* The name as the logo sets it: Montserrat Black, capitals (bulletin cover). */
.sr-brand__name { font-family: var(--font-wordmark); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
/* Sized to run the same width as the name, as the tagline does on the cover. */
.sr-brand__place {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--color-muted-dark);
}

.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation #primary-menu { display: flex; align-items: center; gap: 4px; }
.main-navigation #primary-menu > li { position: relative; }
.main-navigation #primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--color-text-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.main-navigation #primary-menu > li > a:hover,
.main-navigation #primary-menu > li.sr-open > a { background: rgba(245, 241, 232, 0.1); color: #FFFFFF; }
.main-navigation .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.7;
}
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10;
    min-width: 230px;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
/* Keeps the menu open while the pointer crosses the gap below the button. */
.main-navigation .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.sr-open > .sub-menu { display: block; }
.main-navigation .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.main-navigation .sub-menu a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.main-navigation .sr-menu-cta { display: none; }

.sr-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.sr-header__give {
    padding: 10px 6px;
    color: var(--color-text-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.sr-header__give:hover { color: var(--color-gold); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(245, 241, 232, 0.28);
    border-radius: 12px;
    background: transparent;
    color: var(--color-text-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1080px) {
    .sr-header__actions { display: none; }
    .menu-toggle { display: inline-flex; }
    .main-navigation #primary-menu { display: none; }
    .main-navigation.toggled #primary-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 6px clamp(1rem, 3vw, 2.5rem) 24px;
        background: var(--color-navy);
        border-top: 1px solid rgba(245, 241, 232, 0.1);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    }
    .main-navigation.toggled #primary-menu > li > a { padding: 14px 2px; border-radius: 0; font-size: 18px; }
    .main-navigation.toggled #primary-menu > li > a:hover { background: transparent; color: var(--color-gold); }
    .main-navigation.toggled #primary-menu > .menu-item-has-children > a {
        pointer-events: none;
        padding: 20px 2px 4px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--color-gold);
    }
    .main-navigation.toggled .menu-item-has-children > a::after { display: none; }
    .main-navigation.toggled .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .main-navigation.toggled .sub-menu::before { display: none; }
    .main-navigation.toggled .sub-menu a { padding: 10px 2px; font-size: 18px; color: var(--color-text-dark); white-space: normal; }
    .main-navigation.toggled .sub-menu a:hover { background: transparent; color: var(--color-gold); }
    .main-navigation.toggled .sr-menu-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
    .main-navigation.toggled .sr-menu-cta .btn { flex: 1 1 140px; }
}
@media (max-width: 420px) {
    .sr-brand__place { display: none; }
}

/* =========================================
   INNER PAGE TITLE BANNERS
   ========================================= */

.page-header {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: var(--color-navy);
    color: var(--color-text-dark);
    text-align: center;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -300px;
    width: 760px;
    height: 440px;
    margin-left: -380px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(242, 177, 59, 0.32) 0%, rgba(242, 177, 59, 0) 66%);
    pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: inherit; font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.02; margin: 0 0 0.5rem; }
.page-header .subtitle { color: var(--color-gold); letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700; margin: 0 0 0.75rem; }
.page-header p { color: #C9D2E3; }
.page-header a:not(.btn) { color: var(--color-gold); }

/* Pages that cleared the old floating header with extra top padding. */
.sermon-layout { padding-top: 2.5rem; }
.error-404 { padding: 4rem 0; }
@media (max-width: 768px) {
    .sermon-layout { padding-top: 1.5rem; }
    .single-sermon .sermon-layout { padding-top: 1.5rem !important; }
}
/* Phones: custom.css took every bit of padding off, so the sermon page ran
   right to the screen's edges. */
@media (max-width: 480px) {
    .single-sermon .sermon-layout { padding: 1.5rem 16px 2.5rem !important; }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    margin-top: 0;
    padding: 0;
    background: var(--color-navy);
    color: #C9D2E3;
    font-size: 15px;
}
.sr-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) 2.25rem;
}
.sr-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2rem 2.5rem;
}
.sr-footer .sr-brand { margin: 0 0 0.75rem; }
.sr-footer .sr-brand__name { color: var(--color-text-dark); }
.sr-footer__brand p { margin: 0 0 0.35rem; }
.sr-footer__muted { color: var(--color-muted-dark); }
.sr-footer__label {
    margin: 0 0 0.85rem;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer p { margin: 0 0 0.9rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin: 0 0 0.6rem; }
.site-footer a { color: #C9D2E3; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer .btn { color: var(--color-text-dark); text-decoration: none; }
.sr-footer__link { font-weight: 600; color: var(--color-gold) !important; }

.sr-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(245, 241, 232, 0.12);
    font-size: 14px;
}
.sr-footer__bottom p { margin: 0; }
.sr-footer__social { display: flex; gap: 0.5rem; }
.sr-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 241, 232, 0.07);
}
.sr-footer__social a:hover { background: rgba(245, 241, 232, 0.16); text-decoration: none; }

/* =========================================
   HOMEPAGE
   ========================================= */

.sr-home { background: var(--color-bg-light); }
.sr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.sr-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sr-section h2 { margin: 0; }
.sr-lead { margin: 0; max-width: 40em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--color-muted); }
.sr-dark .sr-lead { color: #C9D2E3; }
.sr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-empty { color: var(--color-muted); }

.sr-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.sr-section-head .sr-eyebrow { margin-bottom: 0.6rem; }
.sr-section-head--stack { flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; }
.sr-section-head--stack .sr-eyebrow { margin: 0; }
.sr-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.sr-more:hover { text-decoration: underline; }

.sr-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}
a:hover .sr-play { transform: scale(1.06); }

/* Welcome */
.sr-hero { position: relative; overflow: hidden; background: var(--color-navy); color: var(--color-text-dark); }
.sr-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.sr-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 23, 48, 0.97) 0%, rgba(11, 23, 48, 0.9) 34%, rgba(11, 23, 48, 0.45) 62%, rgba(11, 23, 48, 0.12) 100%);
}
.sr-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2.5rem) clamp(7rem, 12vw, 9.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}
.sr-hero__inner > * { max-width: 640px; }
.sr-hero .sr-eyebrow { margin: 0; color: var(--color-gold); }
.sr-hero__title { margin: 0; color: inherit; font-size: clamp(3rem, 7.2vw, 6rem); line-height: 0.98; }
.sr-hero__title em { font-style: italic; color: var(--color-gold); }
.sr-hero__lead { margin: 0; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #C9D2E3; }
.sr-hero__times { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--color-muted-dark); }
/* On wide screens the photo fills the right two thirds and fades into the
   navy, so faces never sit behind the headline. */
@media (min-width: 901px) {
    .sr-hero__photo { left: auto; right: 0; width: 64%; object-position: 50% 35%; }
    .sr-hero__shade {
        background: linear-gradient(90deg, #0B1730 0%, #0B1730 36%, rgba(11, 23, 48, 0.72) 46%, rgba(11, 23, 48, 0.18) 68%, rgba(11, 23, 48, 0.04) 100%);
    }
}
/* Narrower than that, the text spans the photo, so it is dimmed top to
   bottom instead (a side fade left tablets with faces behind the headline). */
@media (max-width: 900px) {
    .sr-hero__shade { background: linear-gradient(180deg, rgba(11, 23, 48, 0.72) 0%, rgba(11, 23, 48, 0.9) 58%, #0B1730 100%); }
    .sr-hero__photo { object-position: 60% 30%; }
}

/* This Sunday */
.sr-sunday { padding: 0 clamp(1rem, 3vw, 2.5rem) 1.5rem; }
.sr-sunday__card {
    position: relative;
    max-width: 1200px;
    margin: -4.5rem auto 0;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.1rem, 2.4vw, 1.9rem);
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}
.sr-fact { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.sr-fact__icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-gold-soft);
    color: var(--color-gold-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sr-fact p { margin: 0; }
.sr-fact__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.sr-fact__main { margin-top: 2px !important; font-weight: 700; }
.sr-fact__note { margin-top: 2px !important; font-size: 15px; color: var(--color-muted); }
/* Navy like the text around it, so a gold underline marks it as a link. */
.sr-fact__note a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* A first visit */
.sr-visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sr-visit__copy { display: flex; flex-direction: column; gap: 1.1rem; }
.sr-visit__copy .sr-eyebrow { margin: 0; }
.sr-visit__media { margin: 0; display: flex; justify-content: center; }
.sr-arch {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 28px 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.sr-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-arch::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1.5px solid rgba(242, 177, 59, 0.55);
    border-radius: 999px 999px 20px 20px;
    pointer-events: none;
}
.sr-visit__video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    background: var(--color-navy);
    color: var(--color-text-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}
.sr-visit__video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.sr-visit__caption { position: absolute; left: 22px; right: 22px; bottom: 18px; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.sr-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sr-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--color-muted); }
.sr-steps strong { color: var(--color-text-light); }
.sr-steps__num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 900px) {
    .sr-visit__grid { grid-template-columns: 1fr; }
    .sr-arch { width: min(80%, 380px); }
}

/* Sermons */
.sr-sermons { background: #FFFFFF; }
.sr-feature {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: var(--color-navy);
    color: var(--color-text-dark);
    border-radius: 26px;
    overflow: hidden;
}
.sr-feature__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000000; }
.sr-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-feature__body { padding: clamp(1.4rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; }
.sr-feature__body .sr-eyebrow { margin: 0; color: var(--color-gold); }
.sr-feature__title { margin: 0; color: inherit; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.05; }
.sr-feature__meta { margin: 0; font-size: 15px; color: var(--color-muted-dark); }
.sr-feature__excerpt { margin: 0; color: #C9D2E3; }
@media (max-width: 900px) { .sr-feature { grid-template-columns: 1fr; } }

.sr-shorts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.sr-shorts__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 1rem; }
.sr-shorts__head h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.sr-shorts__head p { margin: 0; flex: 1 1 auto; color: var(--color-muted); }
.sr-shorts .shorts-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.sr-shorts .short-card { flex: 0 0 200px; width: 200px; cursor: pointer; scroll-snap-align: start; background: none; }
.sr-shorts .short-thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--color-navy); }
.sr-shorts .short-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.sr-shorts .short-card:hover .short-thumb img { transform: scale(1.03); }
.sr-shorts .short-card h4 { margin: 8px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--color-text-light); }

/* Next steps */
.sr-next .sr-wrap { display: flex; flex-direction: column; gap: clamp(1.75rem, 3.4vw, 2.75rem); }
.sr-next .sr-section-head { margin-bottom: 0; }
.sr-stage { display: flex; flex-direction: column; gap: 16px; }
.sr-stage__label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.sr-sun { position: relative; display: block; flex: none; width: 44px; height: 28px; overflow: hidden; border-bottom: 2px solid var(--color-text-light); }
.sr-sun::before { content: ""; position: absolute; left: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-gold); }
.sr-sun--rising::before { bottom: -11px; }
.sr-sun--risen::before { bottom: 3px; box-shadow: 0 0 0 4px rgba(242, 177, 59, 0.25); }
.sr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
/* Tablets fit two cards across, which left Serve alone on a second row.
   Visit runs across the top instead, with the two dark cards below. */
@media (min-width: 540px) and (max-width: 900px) {
    .sr-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sr-cards--three > :first-child { grid-column: 1 / -1; }
}
.sr-card {
    min-width: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}
.sr-card p { margin: 0; font-size: 15px; color: var(--color-muted); }
.sr-card__title { margin: 0; font-family: var(--font-heading); font-size: 30px; font-weight: 400; line-height: 1.1; color: var(--color-text-light); }
.sr-card__link { margin-top: auto; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.sr-card__link:hover { text-decoration: underline; }
.sr-card .btn { margin-top: auto; align-self: flex-start; }
.sr-card--dark { background: var(--color-navy); color: var(--color-text-dark); box-shadow: none; }
.sr-card--dark .sr-card__title { color: var(--color-text-dark); }
.sr-card--dark p { color: #C9D2E3; }
.sr-card--dark .sr-card__note { font-size: 14px; color: var(--color-muted-dark); }

.sr-baptism {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 40px;
    padding: clamp(1.5rem, 3.4vw, 2.75rem);
    background: var(--color-navy);
    color: var(--color-text-dark);
    border-radius: 24px;
}
.sr-baptism__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sr-baptism__copy .sr-eyebrow { margin: 0; color: var(--color-gold); }
.sr-baptism h3 { margin: 0; color: inherit; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.06; }
.sr-baptism__copy p { margin: 0; color: #C9D2E3; }
.sr-baptism__copy .sr-baptism__verse { font-family: var(--font-heading); font-style: italic; font-size: 1.4rem; line-height: 1.3; color: var(--color-gold); }
.sr-baptism__verse span { font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--color-muted-dark); }
.sr-baptism__art { position: relative; flex: 0 0 220px; height: 150px; margin: 0 auto; }
.sr-baptism__glow {
    position: absolute;
    left: 50%;
    bottom: 40px;
    width: 300px;
    height: 300px;
    margin: 0 0 -150px -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.45) 0%, rgba(242, 177, 59, 0.12) 40%, rgba(242, 177, 59, 0) 66%);
}
.sr-baptism__sun { position: absolute; left: 50px; bottom: 58px; width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: var(--color-gold); }
.sr-baptism__wave { position: absolute; height: 2px; border-radius: 2px; }
.sr-baptism__wave--1 { left: 0; right: 0; bottom: 56px; background: rgba(245, 241, 232, 0.75); }
.sr-baptism__wave--2 { left: 26px; right: 26px; bottom: 36px; background: rgba(245, 241, 232, 0.45); }
.sr-baptism__wave--3 { left: 56px; right: 56px; bottom: 16px; background: rgba(245, 241, 232, 0.25); }

/* Events */
.sr-events { background: #FFFFFF; }
.sr-event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.sr-event { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--color-bg-light); border-radius: 22px; }
.sr-event__media { aspect-ratio: 16 / 9; background: var(--color-navy); }
.sr-event__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sr-event__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.sr-event__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 700; color: var(--color-gold-ink); }
.sr-event__title { margin: 0; font-size: 30px; line-height: 1.1; }
.sr-event__text { margin: 0; font-size: 15px; color: var(--color-muted); }
/* A lone event sits side by side rather than stretching across the page. */
@media (min-width: 901px) {
    .sr-event-grid--single .sr-event { flex-direction: row; align-items: stretch; }
    .sr-event-grid--single .sr-event__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 320px; }
    .sr-event-grid--single .sr-event__body { flex: 1 1 auto; justify-content: center; padding: 28px 32px; }
}
/* Three events on a tablet fit two across, which left the last one alone
   on a row. The next event runs across the top instead, the others below. */
@media (min-width: 700px) and (max-width: 1079px) {
    .sr-event-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sr-event-grid--three .sr-event:first-child { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
    .sr-event-grid--three .sr-event:first-child .sr-event__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 260px; }
    .sr-event-grid--three .sr-event:first-child .sr-event__body { flex: 1 1 auto; justify-content: center; padding: 24px 26px; }
}
@media (min-width: 1080px) {
    .sr-event-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* AWANA */
.sr-awana__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sr-awana__copy { display: flex; flex-direction: column; gap: 1.1rem; }
.sr-awana__copy .sr-eyebrow { margin: 0; }
.sr-awana__media { display: flex; justify-content: center; }
.sr-awana .sr-arch { width: min(100%, 360px); aspect-ratio: 830 / 955; }
.sr-awana .awana-clubs-accordion { margin-top: 2.5rem; }
@media (max-width: 900px) {
    .sr-awana__grid { grid-template-columns: 1fr; }
    .sr-awana__media { order: -1; }
    .sr-awana .sr-arch { width: min(70%, 320px); }
}

/* Building for the Kingdom */
.sr-building { position: relative; overflow: hidden; background: var(--color-navy); color: var(--color-text-dark); }
.sr-building::before {
    content: "";
    position: absolute;
    right: -220px;
    top: -260px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 177, 59, 0.22) 0%, rgba(242, 177, 59, 0) 62%);
    pointer-events: none;
}
.sr-building__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sr-building__copy { display: flex; flex-direction: column; gap: 1.1rem; }
.sr-building__copy .sr-eyebrow { margin: 0; color: var(--color-gold); }
.sr-building h2 { color: inherit; }
.sr-building__progress {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: rgba(245, 241, 232, 0.06);
    border: 1px solid rgba(245, 241, 232, 0.1);
    border-radius: 22px;
}
.sr-building__raised { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: #C9D2E3; }
.sr-building__raised span { font-family: var(--font-heading); font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--color-gold); font-variant-numeric: tabular-nums; }
.sr-progress { height: 12px; border-radius: 999px; background: rgba(245, 241, 232, 0.12); overflow: hidden; }
.sr-progress span { display: block; height: 100%; border-radius: 999px; background: var(--color-gold); }
.sr-building__parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 4px; }
.sr-building__parts div { padding: 14px 16px; background: rgba(245, 241, 232, 0.06); border-radius: 16px; }
.sr-building__parts p { margin: 0; }
.sr-building__parts p:first-child { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted-dark); }
.sr-building__parts p:last-child { margin-top: 4px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .sr-building__grid { grid-template-columns: 1fr; } }

/* The app */
.sr-app { background: #FFFFFF; padding: clamp(3rem, 6vw, 5rem) 0; }
.sr-app__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.sr-app__icon { flex: none; width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 50px rgba(11, 23, 48, 0.28); }
.sr-app__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sr-app__copy .sr-eyebrow { margin: 0; }
.sr-app__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-app__badges img { height: 50px; width: auto; display: block; }

/* =========================================
   APP HOME (the app's first screen)
   ========================================= */

.sa-home { background: var(--color-bg-light); padding-bottom: 24px; }
/* A slim bar, so the first screen is the latest message, not a greeting. */
.sa-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--color-navy); color: var(--color-text-dark); }
.sa-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-wordmark); font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.sa-brand img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.sa-weather {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(245, 241, 232, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dark);
}
.sa-weather[hidden] { display: none; }
.sa-weather__icon { display: inline-flex; color: var(--color-gold); }
.sa-weather__sep { opacity: 0.45; }
.sa-weather .wx-aqi-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }

.sa-section { padding: 22px 16px 0; }
.sa-h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.1; }
.sa-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sa-head .sa-h2 { margin: 0; }
.sa-more { font-size: 14px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.sa-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); }

/* "This Sunday's bulletin is ready" (Friday until the stream is scheduled) */
.sa-ready-wrap { padding-top: 16px; }
.sa-ready {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--color-gold-soft);
    color: var(--color-navy);
    text-decoration: none;
    transition: transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.sa-ready.is-pressed { transform: scale(0.98); }
.sa-ready__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--color-gold); color: var(--color-navy); display: flex; align-items: center; justify-content: center; }
.sa-ready__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sa-ready__text strong { font-size: 15px; }
.sa-ready__text span { font-size: 13px; color: var(--color-muted); }
.sa-ready > svg { flex: none; color: var(--color-gold-ink); }
.sa-ready-wrap + .sa-latest { padding-top: 12px; }

/* Latest message */
.sa-latest { padding-top: 18px; }
.sa-latest__card { overflow: hidden; background: var(--color-navy); color: var(--color-text-dark); border-radius: 22px; box-shadow: 0 14px 34px rgba(11, 23, 48, 0.22); }
.sa-latest__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000000; }
.sa-latest__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.sa-latest__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.sa-latest__title { margin: 0; font-family: var(--font-heading); font-size: 26px; line-height: 1.1; }
.sa-latest__meta { margin: 0; font-size: 13px; color: var(--color-muted-dark); }
.sa-latest__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sa-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(245, 241, 232, 0.4);
    border-radius: 999px;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.sa-pill--gold { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); font-weight: 700; }
.sa-latest__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--color-gold); text-decoration: none; }

/* Explore */
.sa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sa-tile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 12px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-light);
    text-decoration: none;
    transition: transform 0.12s ease, background-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.sa-tile:active,
.sa-tile.is-pressed { transform: scale(0.97); background: #EEF1F6; }
.sa-tile__badge { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--color-navy); color: var(--color-gold); display: flex; align-items: center; justify-content: center; }
.sa-tile__text { display: flex; flex-direction: column; min-width: 0; }
.sa-tile__title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.sa-tile__sub { font-size: 12.5px; line-height: 1.3; color: var(--color-muted); }

/* Find your place: the gold card at the head of Explore. The small sun in
   its corner rises once when the card comes into view (page-app-home.php). */
.sa-place {
    position: relative;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    background: linear-gradient(140deg, #F8C55A 0%, #F2B13B 52%, #E9A12A 100%);
    color: var(--color-navy);
    box-shadow: 0 12px 26px rgba(233, 162, 43, 0.32);
}
.sa-place__title { margin: 0; padding-right: 76px; font-family: var(--font-heading); font-size: 28px; font-weight: 400; line-height: 1.05; color: var(--color-navy); }
.sa-place__sub { margin: 4px 0 0; padding-right: 76px; font-size: 13.5px; font-weight: 600; color: rgba(11, 23, 48, 0.78); }
.sa-place__art { position: absolute; top: 18px; right: 18px; width: 58px; height: 30px; overflow: hidden; border-bottom: 2px solid rgba(11, 23, 48, 0.4); }
.sa-place__sun {
    position: absolute;
    left: 6px;
    bottom: -23px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    /* A soft fill rather than a glow: a glow is clipped by the horizon box
       and shows as a pale rectangle. */
    background: radial-gradient(circle at 50% 45%, #FFFDF6 0%, #FFF3D6 55%, #FFE7B0 100%);
    transform: translateY(30px);
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.sa-place.is-risen .sa-place__sun { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .sa-place__sun { transition: none; } }
.sa-place__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.sa-place__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 6px;
    border-radius: 999px;
    background: var(--color-navy);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.sa-place__link svg { flex: none; color: var(--color-gold); }
.sa-place__link:active,
.sa-place__link.is-pressed { transform: scale(0.96); }
@media (max-width: 380px) { .sa-place__link svg { display: none; } }

/* Coming up */
.sa-events { padding-left: 0; padding-right: 0; }
.sa-events .sa-head { padding: 0 16px; }
.sa-strip { display: flex; gap: 12px; overflow-x: auto; padding: 12px 16px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sa-strip::-webkit-scrollbar { display: none; }
.sa-event {
    flex: 0 0 276px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-light);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.12s ease;
}
.sa-event.is-pressed { transform: scale(0.98); }
.sa-event__media { display: block; aspect-ratio: 16 / 9; background: var(--color-navy); }
.sa-event__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sa-event__body { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 13px; }
.sa-event__date { font-size: 12px; font-weight: 700; color: var(--color-gold-ink); }
.sa-event__title { font-size: 15px; font-weight: 700; }

/* Quick actions as round buttons (app home). The quick-actions part prints
   its own base styles; these two-class selectors take over from them. */
.qa-block--round .qa-title {
    margin: 0 0 14px !important;
    text-align: left !important;
    font-family: var(--font-heading) !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    color: var(--color-text-light) !important;
}
.qa-block--round .qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.qa-block--round .qa-action { padding: 0; gap: 8px; background: none !important; border: 0; box-shadow: none; color: var(--color-text-light); font: inherit; }
.qa-block--round .qa-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-navy);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease;
}
.qa-block--round .qa-action:active .qa-icon,
.qa-block--round .qa-action.is-pressed .qa-icon { transform: scale(0.94); }
.qa-block--round .qa-label { font-size: 12.5px; font-weight: 600; color: var(--color-text-light); }

/* Closing */
.sa-closing { padding-top: 26px; }
.sa-sundays { margin: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--color-navy); color: var(--color-text-dark); font-size: 14px; }
.sa-sundays svg { flex: none; color: var(--color-gold); }
.sa-footnote { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--color-muted); }

/* =========================================
   NEXT STEPS PAGES (Baptism, Belong at Sonrise)
   ========================================= */

.sr-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sr-split__copy { display: flex; flex-direction: column; gap: 1rem; }
.sr-split__copy .sr-eyebrow { margin: 0; }
.sr-split__copy h2 { margin: 0; }
.sr-split__copy p { margin: 0; }
.sr-verse { font-family: var(--font-heading); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--color-gold-ink); }
.sr-verse span { font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--color-muted); }
@media (max-width: 900px) { .sr-split { grid-template-columns: 1fr; } }

.sr-form,
.sr-thanks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}
.sr-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sr-form__field { display: flex; flex-direction: column; gap: 6px; }
.sr-form label { font-size: 15px; font-weight: 600; color: var(--color-text-light); }
.sr-form label span { font-weight: 400; color: var(--color-muted); }
.sr-form input,
.sr-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #C9D2E3;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--color-text-light);
    font: inherit;
    font-size: 16px;
}
.sr-form input:focus,
.sr-form textarea:focus { border-color: var(--color-navy); outline: none; box-shadow: 0 0 0 3px rgba(242, 177, 59, 0.45); }
.sr-form textarea { resize: vertical; }
.sr-form__hint { margin: -4px 0 0; font-size: 14px; color: var(--color-muted); }
.sr-form__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-weight: 600; }
.sr-form .btn { align-self: flex-start; }
.sr-thanks h2 { margin: 0; }
.sr-thanks p { margin: 0; color: var(--color-muted); }
.sr-thanks .btn { align-self: flex-start; }

/* =========================================
   SERMON LIST (series filter)
   ========================================= */

.sermon-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 2rem; }
.sermon-filters select {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 380px;
    padding: 0.6rem 2.6rem 0.6rem 1.1rem;
    border: 1px solid rgba(245, 241, 232, 0.22);
    border-radius: 999px;
    background: rgba(245, 241, 232, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2B13B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1.1rem center;
    color: var(--color-text-dark);
    font: inherit;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.sermon-filters select option { color: var(--color-text-light); background: #FFFFFF; }
.dark-mode .page-header .sr-eyebrow { margin: 0 0 0.5rem; color: var(--color-gold); }

/* =========================================
   PLAN YOUR VISIT (one short page for first-time guests)
   Welcome and form side by side, the quick facts under the welcome. On
   phones the form comes straight after the welcome, facts after that.
   ========================================= */

.sr-pv { padding-top: clamp(2.25rem, 5vw, 4.5rem); }
.sr-pv-intro {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "copy form" "facts form";
    grid-template-rows: auto 1fr;
    gap: 2rem clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.sr-pv-intro__copy { grid-area: copy; display: flex; flex-direction: column; gap: 0.9rem; }
.sr-pv-intro__copy h2,
.sr-pv-intro__copy p { margin: 0; }
.sr-pv-intro__form { grid-area: form; }
.sr-pv-intro__facts { grid-area: facts; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 28px; }
@media (max-width: 900px) {
    .sr-pv-intro { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "facts"; grid-template-rows: auto; }
}
.sr-form__title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sr-form select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1.5px solid #C9D2E3;
    border-radius: 12px;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B1730' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--color-text-light);
    font: inherit;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.sr-form select:focus { border-color: var(--color-navy); outline: none; box-shadow: 0 0 0 3px rgba(242, 177, 59, 0.45); }

.sr-pv-sunday { background: #FFFFFF; }
.sr-pv-sunday__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sr-pv-sunday__steps { display: flex; flex-direction: column; gap: 1rem; }
.sr-pv-sunday__steps .sr-eyebrow { margin: 0; }
.sr-pv-kids { gap: 12px; background: var(--color-bg-light); box-shadow: none; }
.sr-pv-kids .sr-eyebrow { margin: 0; }
.sr-pv-kids strong { color: var(--color-text-light); }
.sr-pv-online { margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; color: var(--color-muted); }
@media (max-width: 900px) { .sr-pv-sunday__grid { grid-template-columns: 1fr; } }

/* =========================================
   BULLETIN (the living bulletin, page-bulletin.php)
   Phone first; on wide screens the column stays a readable width.
   ========================================= */

.bl-main { background: var(--color-bg-light); padding-bottom: 32px; }
.bl-weeks { display: flex; justify-content: center; gap: 22px; margin-top: 0.6rem; }
.bl-weeks a { font-size: 14px; font-weight: 700; color: var(--color-gold); text-decoration: none; }
.bl-jump {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 16px 0;
    scrollbar-width: none;
}
.bl-jump::-webkit-scrollbar { display: none; }
.bl-jump a {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.bl-section { max-width: 760px; margin: 0 auto; padding: 22px 16px 0; scroll-margin-top: 90px; }
.sonrise-app .bl-section { scroll-margin-top: 12px; }
.bl-stack { display: flex; flex-direction: column; gap: 12px; }
.bl-card { display: block; padding: 16px; background: #FFFFFF; border-radius: 18px; box-shadow: var(--shadow-sm); color: var(--color-text-light); text-decoration: none; }
.bl-card p { margin: 0; }
.bl-card__label { margin: 0 0 10px !important; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold-ink); }

/* The message */
.bl-message { overflow: hidden; background: var(--color-navy); color: var(--color-text-dark); border-radius: 22px; box-shadow: 0 14px 34px rgba(11, 23, 48, 0.22); }
.bl-message__art { display: block; width: 100%; height: auto; }
.bl-message__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.bl-message__speaker { margin: 0; font-family: var(--font-heading); font-size: 24px; line-height: 1.15; }
.bl-message__summary { margin: 0; font-size: 15px; line-height: 1.55; color: #C9D2E3; }
.bl-message__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Sermon notes */
.bl-notes__list { margin: 0 0 18px; padding-left: 1.35rem; }
.bl-note { margin: 0 0 12px; font-size: 16.5px; line-height: 2; }
.bl-note::marker { font-weight: 700; color: var(--color-gold-ink); }
.bl-blank {
    width: 6ch;
    min-width: 6ch;
    max-width: 100%;
    margin: 0 2px;
    padding: 0 6px;
    border: 0;
    border-bottom: 2px solid var(--color-gold);
    border-radius: 6px 6px 0 0;
    background: var(--color-gold-soft);
    color: var(--color-navy);
    font: inherit;
    font-weight: 700;
    line-height: 1.6;
}
.bl-blank:focus { outline: none; background: #FFE5AE; }
.bl-notes__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--color-text-light); }
.bl-notes__more,
.bl-notes__row input {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-bg-light);
    color: var(--color-text-light);
    font: inherit;
    font-size: 16px;
    -webkit-appearance: none;
}
.bl-notes__more:focus,
.bl-notes__row input:focus { outline: none; border-color: var(--color-navy); background: #FFFFFF; }
.bl-notes__saved { margin: 8px 0 0 !important; font-size: 12.5px; color: var(--color-muted); }
.bl-notes__email { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.bl-notes__row { display: flex; gap: 8px; }
.bl-notes__row input { flex: 1; min-width: 0; }
.bl-notes__status { min-height: 1em; margin: 8px 0 0 !important; font-size: 13.5px; color: var(--color-muted); }
.bl-notes__status.ok { color: #2E7D32; }
.bl-notes__status.err { color: #B3261E; }

/* Announcements */
.bl-news p { font-size: 15.5px; line-height: 1.6; color: var(--color-text-light); }
.bl-news__title { margin: 0 0 6px !important; font-family: var(--font-heading); font-size: 22px !important; line-height: 1.15 !important; }
.bl-flyer { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bl-flyer img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow-sm); }
.bl-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.bl-link svg { flex: none; color: var(--color-muted); }

/* Lists: events and the weekly schedule */
.bl-list { padding: 4px 16px; }
.bl-list__note { padding: 12px 0; border-bottom: 1px solid var(--color-line); font-size: 14.5px; font-weight: 600; color: var(--color-gold-ink); }
.bl-list__row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-line); font-size: 15.5px; color: var(--color-text-light); text-decoration: none; }
.bl-list > :last-child { border-bottom: 0; }
.bl-list__row strong { flex: 0 0 34%; max-width: 150px; font-weight: 700; }
.bl-list__row span { flex: 1; min-width: 0; }
.bl-list__row--link svg { flex: none; align-self: center; color: var(--color-muted); }

/* Giving */
.bl-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 16px; }
.bl-figures p { display: flex; flex-direction: column; gap: 2px; }
.bl-figures span { font-size: 13px; color: var(--color-muted); }
.bl-figures strong { font-size: 18px; color: var(--color-navy); }
.bl-weekly { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--color-line); font-size: 13px; color: var(--color-muted); }
.bl-building { color: var(--color-text-light); }
.bl-building__sum { font-size: 15px; }
.bl-building__sum strong { font-size: 20px; color: var(--color-navy); }
.bl-bar { display: block; height: 10px; margin: 10px 0; border-radius: 999px; background: var(--color-line); overflow: hidden; }
.bl-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F8C55A, #E9A12A); }
.bl-building__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--color-primary); }

/* Contact */
.bl-contact { display: flex; flex-direction: column; gap: 12px; }
.bl-contact a,
.bl-contact p { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--color-text-light); text-decoration: none; }
.bl-contact svg { flex: none; color: var(--color-gold-ink); }

/* The printed bulletin: swipe through, tap to read full screen */
.bl-pages { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bl-pages::-webkit-scrollbar { display: none; }
.bl-page { flex: 0 0 min(62%, 240px); padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in; }
.bl-page img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-sm); background: #FFFFFF; }
.bl-hint { margin: 4px 0 0; font-size: 13px; color: var(--color-muted); }

.bl-zoom { position: fixed; inset: 0; z-index: 100002; display: flex; flex-direction: column; background: #050A16; }
.bl-zoom[hidden] { display: none; }
.bl-zoom__frame { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; -webkit-overflow-scrolling: touch; }
.bl-zoom__frame img { display: block; width: auto; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.bl-zoom__frame.is-zoomed { display: block; }
.bl-zoom__frame.is-zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.bl-zoom__close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.bl-zoom__nav { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 14px); color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.bl-zoom__nav button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: none; color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.bl-zoom--single .bl-zoom__nav button { visibility: hidden; }

/* Fields on navy: the global focus colour is navy now, which vanishes here. */
.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus,
.sr-dark input:focus,
.sr-dark textarea:focus,
.sr-dark select:focus { border-color: var(--color-gold) !important; box-shadow: 0 0 0 3px rgba(242, 177, 59, 0.22); }

/* =========================================
   DISCUSSION QUESTIONS (sermon page)
   Read from the study guide PDF (inc/study-guide.php). The questions stay
   open with a box under each; the guide's other parts open on a tap.
   ========================================= */

.sg {
    margin: 28px 0 8px;
    padding: clamp(20px, 4vw, 32px);
    border-radius: var(--radius-card);
    background: rgba(245, 241, 232, 0.05);
    border: 1px solid rgba(245, 241, 232, 0.12);
    color: var(--color-text-dark);
    scroll-margin-top: 96px;
}
.sg-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold); }
.sg-title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.05; color: #FFFFFF; }
.sg-passage { margin: 8px 0 0; font-size: 15px; color: var(--color-muted-dark); }
.sg-ref { color: inherit; text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sg-ref:hover { color: #FFFFFF; }

.sg-more { border-top: 1px solid rgba(245, 241, 232, 0.12); }
.sg-passage + .sg-more,
.sg-title + .sg-more { margin-top: 18px; }
.sg-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #FFFFFF;
}
.sg-more summary::-webkit-details-marker { display: none; }
.sg-more summary::after { content: "+"; font-size: 22px; font-weight: 500; line-height: 1; color: var(--color-gold); }
.sg-more[open] summary::after { content: "\2212"; }
.sg-more__body { padding: 0 0 12px; }
.sg-more__body ol { margin: 0; padding-left: 1.3rem; }
.sg-more__body li,
.sg-more__body p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: #D9DFEA; }
.sg-more__body strong { color: #FFFFFF; }

.sg-questions { list-style: none; counter-reset: sgq; margin: 18px 0 0; padding: 0; }
.sg-q { counter-increment: sgq; position: relative; padding: 18px 0 18px 44px; border-top: 1px solid rgba(245, 241, 232, 0.12); }
.sg-q::before {
    content: counter(sgq);
    position: absolute;
    left: 0;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 800;
}
.sg-q__text { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: #F5F1E8; }
/* 16px text keeps iPhones from zooming in when a box is tapped. */
.sg-answer {
    display: block;
    width: 100%;
    min-height: 3.4em;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 241, 232, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font: 16px/1.5 var(--font-body);
    resize: none;
    overflow: hidden;
}
.sg-answer::placeholder { color: rgba(245, 241, 232, 0.45); }
.sg-answer:focus { outline: none; background: rgba(255, 255, 255, 0.09); }
.sg-saved { margin: 0 0 4px; padding-left: 44px; font-size: 13px; color: var(--color-muted-dark); }
.sg-saved + .sg-more { margin-top: 14px; }

.sg-email { margin-top: 16px; padding-top: 18px; border-top: 1px solid rgba(245, 241, 232, 0.12); }
.sg-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #FFFFFF; }
.sg-row { display: flex; gap: 8px; }
.sg-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(245, 241, 232, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font: 16px var(--font-body);
}
.sg-row input::placeholder { color: rgba(245, 241, 232, 0.45); }
.sg-status { min-height: 1em; margin: 8px 0 0; font-size: 13.5px; color: var(--color-muted-dark); }
.sg-status.ok { color: #8FD49B; }
.sg-status.err { color: #FF9F94; }
.sg-pdf { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--color-muted-dark); text-decoration: none; }
.sg-pdf:hover { color: #FFFFFF; text-decoration: underline; }

/* Phones: the number moves into the question so text and box get the width. */
@media (max-width: 480px) {
    .sg-q { padding-left: 0; }
    .sg-q::before { display: none; }
    .sg-q__text::before { content: counter(sgq) "."; margin-right: 6px; font-weight: 800; color: var(--color-gold); }
    .sg-saved { padding-left: 0; }
}

/* =========================================
   BAPTISM: BAPTIZED BEFORE?
   ========================================= */

.bb { padding-top: 0; }
.bb .sr-section-head { margin-bottom: 24px; }
.bb-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bb .sr-card__title { font-size: 27px; }
.bb-lds { grid-column: 1 / -1; padding: clamp(22px, 4vw, 34px); }
.bb-lds p { max-width: 46em; font-size: 16px; line-height: 1.6; }
.bb-lds .btn { margin-top: 6px; }
@media (max-width: 640px) {
    .bb-cases { grid-template-columns: 1fr; }
}
