.theme-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:8px;border:1px solid var(--gold);border-radius:50%;color:var(--gold)}
.theme-toggle svg{width:22px;height:22px}.theme-toggle:hover{background:#ddbd7618}.theme-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
html[data-theme=light]{color-scheme:light;--cream:#fcfaf6;--gold:#906514;--muted:#526374;--line:#ded5c3}
html[data-theme=dark]{color-scheme:dark}
html[data-theme=light] body{background:#fcfaf6;color:#102538}
html[data-theme=light] header,html[data-theme=light] header nav{background:#fcfaf6;color:#102538}
html[data-theme=light] header nav .nav-give:not(.active){color:#102538}
html[data-theme=light] .service-strip{background:#f2ede3;color:#102538}
html[data-theme=light] .live{background:#fcfaf6;color:#102538}
html[data-theme=light] .live p:not(.eyebrow){color:#526374}
html[data-theme=light] .live .outline,html[data-theme=light] .calendar-toolbar .button{color:#102538;border-color:#a28b5e}
html[data-theme=light] .church-footer{background:#eee7db;color:#526374}
html[data-theme=light] .church-footer .footer-title,html[data-theme=light] .footer-grid>div>a:not(.footer-title){color:#102538}
html[data-theme=light] .footer-bottom{border-color:#d5c8ae}
html[data-theme=light] .team-page #page-main,html[data-theme=light] .calendar-page #page-main,html[data-theme=light] .visit-page #page-main,html[data-theme=light] .community-content{background:#fcfaf6;color:#102538}
html[data-theme=light] .team-page .pastors-feature{color:#102538}
html[data-theme=light] .team-page .leader-card,html[data-theme=light] .team-page .community-callout,html[data-theme=light] .visit-times-grid article,html[data-theme=light] .calendar-special-card{background:#f2ede3;color:#102538;border-color:#d8cbb3}
html[data-theme=light] .team-page .leader-card h3,html[data-theme=light] .visit-times-grid h3,html[data-theme=light] .calendar-special-card h3{color:#102538}
html[data-theme=light] .visit-content p,html[data-theme=light] .calendar-page .calendar-note,html[data-theme=light] .calendar-page .calendar-source,html[data-theme=light] .calendar-special-card p,html[data-theme=light] .calendar-empty{color:#526374}
html[data-theme=light] .calendar-page .calendar-day{background:#fff;color:#102538;border-color:#e7dfd0}
html[data-theme=light] .calendar-page .calendar-day.empty{background:#f2ede3}
html[data-theme=light] .calendar-page .day-number{color:#102538}
html[data-theme=light] .calendar-page .weekday{background:#eee7db;color:#795310}
html[data-theme=light] .calendar-page .calendar-event{background:#eae2d3;color:#102538;border-color:#906514}
html[data-theme=light] .calendar-page .calendar-event:hover{background:#dfd0b2}
html[data-theme=light] .calendar-page .month-controls button{background:#fff;color:#906514;border-color:#d8cbb3}
html[data-theme=light] .mobile-services .agenda-event{color:#102538}
html[data-theme=light] .giving-intro h1,html[data-theme=light] .giving-help summary{color:#102538}
html[data-theme=light] dialog{background:#fcfaf6;color:#102538}
html[data-theme=light] dialog p{color:#526374}
html[data-theme=light] .hero,html[data-theme=light] .community-hero,html[data-theme=light] #giving{--gold:#f4cc67;--cream:#fcfaf6;color:#fcfaf6}
html[data-theme=light] .hero-note{color:#fcfaf6}
html[data-theme=light] .gold{color:#102538}
html[data-theme=light] .leader-initials{color:#f4cc67}
@media(max-width:760px){header{gap:10px}.theme-toggle{flex-basis:36px;width:36px;height:36px;padding:7px}header .brand{margin-right:auto}header .header-logo{width:92px;height:40px}}

/* Separate worship and community with a warm surface and a fine gold rule. */
html[data-theme=light] #ministries{background:#f2ede3;border-top:1px solid #c4a96b;padding-block:56px}
html[data-theme=light] #live{padding-block:56px;border-bottom:0}
html[data-theme=dark] #ministries{border-top:1px solid #c4a96b}
@media(max-width:760px){html[data-theme=light] #live,html[data-theme=light] #ministries{padding-block:36px}}
/* Centered scroll control. */
html{scroll-behavior:smooth}
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:120;width:48px;height:48px;border-radius:50%;background:#071828;color:#f4cc67;border:1px solid #d4ab48;box-shadow:0 6px 22px #0003;display:grid;place-items:center;padding:0;line-height:0;transition:transform .2s ease}
.back-to-top[hidden]{display:none}.back-to-top:hover{transform:translateY(-3px)}.back-to-top svg{display:block;width:24px;height:24px;margin:0}
@media(max-width:760px){.back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.back-to-top{transition:none}header,header .header-logo{transition:none!important}}
/* Keep contact consent controls readable in both themes. */
#prayer-form input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:22px;height:22px;min-width:22px;padding:0;vertical-align:middle;background:#fcfaf6;border:1.5px solid #8c9ba8;border-radius:4px;cursor:pointer;color:#071828;color-scheme:light}
#prayer-form input[type=checkbox]::before{content:"";width:11px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(-45deg);visibility:hidden}
#prayer-form input[type=checkbox]:checked::before{visibility:visible}
#prayer-form input[type=checkbox]:focus-visible{outline:3px solid #b58a32;outline-offset:4px}
#prayer-form input[type=checkbox]:disabled{opacity:.6;cursor:default}
@media(forced-colors:active){#prayer-form input[type=checkbox]{appearance:auto;-webkit-appearance:auto}#prayer-form input[type=checkbox]::before{display:none}}

.form-confirmation{background:#fffdf9;color:#102538;border:1px solid #d3d9dc;border-radius:8px;padding:40px 30px;text-align:center;align-self:start;scroll-margin-top:110px}.form-confirmation[hidden],#prayer-form[hidden]{display:none!important}.form-confirmation>img{display:block;width:min(200px,65%);height:120px;object-fit:contain;margin:0 auto 24px}.form-confirmation h3{font-family:Georgia,serif;font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.2}.form-confirmation p{margin-inline:auto}.confirmation-scripture{padding:24px 0;margin:24px 0;border-block:1px solid #d8cbb3}.confirmation-scripture .eyebrow{color:#906514}.confirmation-scripture blockquote{margin:12px 0;font-family:Georgia,serif;font-size:1.25rem;line-height:1.6}.form-confirmation .scripture-attribution{display:block;margin-top:20px;font-size:.65rem;color:#526374}.form-confirmation .button{white-space:normal}html[data-theme=dark] .form-confirmation{background:#112b39;color:#fcfaf6;border-color:#c4a96b70}html[data-theme=dark] .form-confirmation p,html[data-theme=dark] .form-confirmation .scripture-attribution{color:#c2cbd2}html[data-theme=dark] .confirmation-scripture .eyebrow,html[data-theme=dark] .form-confirmation .text-link{color:#ddbd76}@media(max-width:600px){.form-confirmation{padding:30px 20px}}

html[data-theme=dark] #events.home-gatherings{background:#071c2b;color:#fcfaf6}html[data-theme=dark] .home-gatherings .special-home-event h3{color:#fcfaf6}html[data-theme=dark] .recurring-home-list small,html[data-theme=dark] .recurring-home-list time,html[data-theme=dark] .recurring-home-note,html[data-theme=dark] .home-gatherings .special-home-event p:not(.eyebrow){color:#c2cbd2}html[data-theme=dark] .home-gatherings .eyebrow,html[data-theme=dark] .recurring-home .text-link{color:#ddbd76}

html[data-theme=dark] .recurring-home-list .gathering-date{color:var(--gold)}html[data-theme=dark] .recurring-home-list .gathering-hours{color:#c2cbd2}

/* Cancellation remains visible, with text as well as the red accent. */
html[data-theme] .calendar-page .calendar-event.is-cancelled,html[data-theme] .calendar-page .agenda-event.is-cancelled{border-left:5px solid #ff414d;background:linear-gradient(100deg,#a51f3599,#511c3240);color:#fff2f2}
html[data-theme] .calendar-page .calendar-event.is-cancelled:hover,html[data-theme] .calendar-page .agenda-event.is-cancelled:hover{background:linear-gradient(100deg,#c82540c0,#511c3260)}
html[data-theme=light] .calendar-page .calendar-event.is-cancelled,html[data-theme=light] .calendar-page .agenda-event.is-cancelled{background:linear-gradient(100deg,#ff414d38,#711d3310);color:#781627}
html[data-theme] .calendar-special-card.is-cancelled,html[data-theme] .special-home-event.is-cancelled{border-left:5px solid #ff414d;background:linear-gradient(100deg,#a51f353b,#511c3212);padding:18px;border-radius:8px}
.event-cancellation{display:block;color:#ff6670;font-size:.88rem;font-weight:700;padding:12px 16px;border-left:4px solid #ff414d;background:linear-gradient(100deg,#a51f354d,#511c3220);border-radius:4px}.event-cancellation[hidden],#event-download[hidden],#event-directions[hidden]{display:none!important}
html[data-theme=light] .event-cancellation{color:#9d172c}#event-dialog.is-cancelled{border-color:#ff414d}


#event-dialog.is-cancelled{border-color:#ff414d}

/* Compact footer keeps church identity and practical links together. */
.church-footer,html[data-theme=light] .church-footer{background:#04121e;color:#c2cbd2;padding:28px max(5%,calc((100% - 1600px)/2)) 16px;font-size:.9rem}.church-footer .footer-grid{grid-template-columns:1.15fr 1fr 1.1fr 1fr;gap:28px;align-items:start}.church-footer .footer-title{display:block;width:200px;max-width:100%;line-height:0;margin:0 0 8px}.church-footer .footer-logo{width:100%;margin:0}.church-footer h3{font-size:1rem;margin:4px 0 10px}.church-footer p{font-size:.84rem;line-height:1.5;margin:6px 0;max-width:30ch}.church-footer address{line-height:1.5;margin:0 0 8px}.church-footer .footer-grid>div>a:not(.footer-title),html[data-theme=light] .church-footer .footer-grid>div>a:not(.footer-title){padding:5px 0;color:#fcfaf6;line-height:1.45}.church-footer .footer-grid>div>br{display:none}.church-footer .footer-bottom{margin-top:18px;padding-top:14px;font-size:.76rem;align-items:center;border-color:#ddbd7640;gap:14px}.church-footer a:focus-visible{outline:2px solid #f4cc67;outline-offset:4px}.church-footer a:hover{color:#f4cc67!important}
@media(max-width:950px){.church-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}}@media(max-width:540px){.church-footer{padding:24px 5% 14px}.church-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.church-footer .footer-grid>div:first-child{grid-column:1/-1}.church-footer .footer-grid>div:last-child{grid-column:1/-1}.church-footer .footer-grid>div:last-child>a{display:inline-block;margin-right:18px}.church-footer .footer-title{width:180px}.church-footer .footer-bottom{flex-wrap:wrap;justify-content:flex-start;gap:8px 18px}}
.church-footer h3{color:#f4cc67}.church-footer .footer-grid>div:first-child>p{max-width:none}

/* Balanced footer: brand, visit, map, services and connect. */
.church-footer .footer-grid{grid-template-columns:minmax(230px,1.1fr) minmax(150px,.8fr) minmax(240px,1.15fr) minmax(200px,1fr) minmax(150px,.8fr);gap:28px;align-items:start}.church-footer .footer-title{width:270px;max-width:100%;margin-bottom:8px}.church-footer .footer-brand{min-width:0}.church-footer .footer-map{min-width:0}.church-footer .footer-map iframe{display:block;width:100%;height:172px;border:1px solid #ddbd7650;border-radius:7px;background:#102538}.church-footer .footer-services,.church-footer .footer-connect{justify-self:end;width:max-content;max-width:100%}.church-footer .footer-grid>.footer-connect>a{display:block;margin-right:0}
@media(max-width:1200px){.church-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}.church-footer .footer-grid>.footer-map{grid-column:1/-1;grid-row:2}.church-footer .footer-map iframe{height:190px}.church-footer .footer-services,.church-footer .footer-connect{justify-self:start;width:auto}.church-footer .footer-grid>.footer-connect{grid-column:auto}.church-footer .footer-grid>.footer-brand{grid-column:auto}}
@media(max-width:540px){.church-footer .footer-grid{gap:16px 18px}.church-footer .footer-grid>.footer-brand,.church-footer .footer-grid>.footer-visit,.church-footer .footer-grid>.footer-map{grid-column:1/-1}.church-footer .footer-grid>.footer-map{grid-row:auto}.church-footer .footer-title{width:270px}.church-footer .footer-map iframe{height:180px}.church-footer .footer-services,.church-footer .footer-connect{font-size:.82rem}.church-footer .footer-services p{font-size:.8rem}.church-footer .footer-services{min-width:0}}

.church-footer .footer-logo{margin-left:-18px}.church-footer .footer-grid>div.footer-connect>a{display:block;margin-right:0}@media(max-width:1200px){.church-footer .footer-grid>div.footer-connect{grid-column:auto}}


/* Compact footer with a lower divider and social links. */
.church-footer,html[data-theme=light] .church-footer{position:relative;border-top:0;padding-top:36px;padding-bottom:12px}.church-footer::before{content:'';position:absolute;top:16px;left:0;right:0;height:1px;background:var(--gold)}.church-footer .footer-title{margin-bottom:0}.church-footer p{margin:4px 0}.church-footer h3{margin:2px 0 8px}.church-footer .footer-grid>div>a:not(.footer-title){padding:3px 0}.church-footer .footer-map{padding-top:28px}.church-footer .footer-map iframe{height:150px}.church-footer .footer-bottom{margin-top:10px;padding-top:10px}.church-footer .footer-socials{display:flex;gap:8px;margin-top:10px;padding:0;position:static;background:none;box-shadow:none;transform:none;opacity:1;visibility:visible}.church-footer .footer-socials a{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ddbd7655;border-radius:7px;color:#e9d49c;padding:7px}.church-footer .footer-socials a:hover{background:#ddbd7615}.church-footer .footer-socials svg{width:20px;height:20px}.church-footer .footer-socials a:focus-visible{outline:2px solid #f4cc67;outline-offset:3px}
@media(max-width:1200px){.church-footer .footer-map{padding-top:0}.church-footer .footer-map iframe{height:170px}}
@media(max-width:540px){.church-footer,html[data-theme=light] .church-footer{padding-top:32px}.church-footer .footer-grid{gap:16px 18px}.church-footer .footer-map iframe{height:160px}.church-footer .footer-socials{gap:6px}.church-footer .footer-socials a{width:36px;height:36px}}

/* Fill the footer's useful area while keeping clear category actions. */
.church-footer .footer-grid{align-items:stretch}.church-footer .footer-map{padding-top:0;align-self:stretch}.church-footer .footer-map iframe{height:100%;min-height:180px}.church-footer .footer-visit,.church-footer .footer-services{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.church-footer .footer-visit-link,.church-footer .footer-service-link{margin-top:auto}.church-footer .footer-bottom{margin-top:6px}.church-footer .footer-connect{display:flex;flex-direction:column}.church-footer .footer-socials{margin-top:auto;padding-top:10px}
@media(max-width:1200px){.church-footer .footer-map iframe{height:170px;min-height:0}.church-footer .footer-visit-link,.church-footer .footer-service-link{margin-top:8px}.church-footer .footer-socials{margin-top:8px}}
@media(max-width:540px){.church-footer .footer-map iframe{height:160px}.church-footer .footer-grid{gap:14px 18px}}

/* Smaller screens keep practical footer links without a duplicate map. */
@media(max-width:1366px){
 .church-footer .footer-grid{grid-template-columns:minmax(200px,1.2fr) repeat(3,minmax(0,1fr));grid-template-areas:none;gap:24px;align-items:start}
 .church-footer .footer-grid>div{grid-area:auto;grid-column:auto;grid-row:auto;min-width:0;max-width:100%;width:auto;justify-self:start;align-self:start}
 .church-footer .footer-grid>div.footer-map{display:none}
 .church-footer .footer-title{width:250px;max-width:100%}
 .church-footer .footer-visit-link,.church-footer .footer-service-link{margin-top:8px}
 .church-footer .footer-socials{margin-top:10px;padding-top:0}
 .church-footer .footer-bottom{margin-top:20px}
}
@media(max-width:900px){.church-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}.church-footer .footer-title{width:250px}}
@media(max-width:540px){.church-footer .footer-grid{gap:22px 18px}.church-footer .footer-grid>div.footer-brand,.church-footer .footer-grid>div.footer-visit{grid-column:1/-1}.church-footer .footer-title{width:250px}.church-footer .footer-grid>div.footer-connect>a{display:block;margin-right:0}}


/* Keep footer navigation clear of the floating return control. */
.church-footer .footer-bottom{padding-right:56px;flex-wrap:wrap}

/* Phone footer groups practical information into a compact, readable layout. */
.church-footer .footer-label-short{display:none}
@media(max-width:540px){
 .church-footer::before{top:8px}
 .church-footer,html[data-theme=light] .church-footer{padding:24px 5% 10px}
 .church-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"visit services" "brand connect";gap:10px 18px}
 .church-footer .footer-grid>div.footer-brand{grid-area:brand;justify-self:stretch;width:100%;margin-right:0;text-align:left;padding-top:8px;border-top:1px solid #ddbd7630}
 .church-footer .footer-title{width:126px;margin:0 0 3px}
 .church-footer .footer-logo{margin-left:0}
 .church-footer .footer-brand p{font:400 .76rem/1.45 Arial,sans-serif;margin:1px 0}
 .church-footer .footer-grid>div.footer-visit{grid-area:visit}
 .church-footer .footer-grid>div.footer-services{grid-area:services}
 .church-footer h3{font-size:.95rem;line-height:1.3;margin:0 0 4px}
 .church-footer address,.church-footer .footer-services p{font-size:.82rem;line-height:1.45;margin:0 0 3px;max-width:none}
 .church-footer .footer-grid>div>a:not(.footer-title){font-size:.82rem;line-height:1.4;padding:4px 0}
 .church-footer .footer-visit-link,.church-footer .footer-service-link{margin-top:1px}
 .church-footer .footer-label-full{display:none}
 .church-footer .footer-label-short{display:inline}
 .church-footer .footer-grid>div.footer-connect{grid-area:connect;justify-self:stretch;display:flex;flex-direction:column;align-items:flex-start;padding-top:8px;border-top:1px solid #ddbd7630}
 .church-footer .footer-connect>a{text-align:left}
 .church-footer .footer-socials{justify-content:flex-start;gap:4px;margin-top:4px;padding-top:0}
 .church-footer .footer-socials a{width:36px;height:40px;padding:8px}
 .church-footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:0;margin-top:8px;padding:6px 0 0;font-size:.72rem;line-height:1.35;text-align:center}
 .church-footer .footer-bottom>a{grid-column:1;justify-self:start;padding:3px 0;white-space:nowrap}
 .church-footer .footer-bottom>span{grid-column:2;justify-self:center;display:block;width:auto;white-space:nowrap;text-align:center}
}

/* Story-page text tokens must not wash out the intentionally dark shared footer. */
html[data-theme=light] .story-page .church-footer :is(p,address,.footer-label-short,.footer-label-full){color:#c2cbd2}
html[data-theme=light] .story-page .belief-topics{background:#f5f0e5;color:#112c3c}
html[data-theme=light] .story-page .belief-topics :is(.eyebrow,.text-link){color:#765510}
html[data-theme=light] .team-page :is(.pastors-feature,.leader-card) :is(.eyebrow,.leader-email){color:#795917}
