/* Shared theme: light remains the default; dark uses navy surfaces. */
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--bg:#101c2b;--bg-raised:#192b3e;--bg-sunken:#0c1623;--fg:#eef4fa;--fg-muted:#b5c5d5;--line:#344c65;--line-strong:#6485a5;--bg-invert:#0b1420;--fg-invert:#fff;--line-invert:#344c65;--muted-invert:#b5c5d5;--accent:#a6ccf2;--accent-fg:#10253b;--accent-weak:#253e58;--ink:#eef4fa;--navy:#101c2b;--cream:#101c2b;--white:#192b3e;--muted:#b5c5d5;--green:#b5d9d0;--lit-green:#d9b2ce;--focus:3px solid #a6ccf2}
.church-theme-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:10px 15px;border:1px solid #b7cada;border-radius:24px;background:#edf3f8;color:#2f557f;font:600 13px/1.4 var(--font-ui),sans-serif;cursor:pointer}
.church-theme-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.church-theme-button:hover{background:#dce9f4}
.church-theme-button:focus-visible{outline:3px solid #7f264a;outline-offset:3px}
.theme-sun{display:none}
html[data-theme="dark"] .theme-sun{display:block}
html[data-theme="dark"] .theme-moon{display:none}
.direct-header-inner{gap:16px}
.direct-header .direct-nav{margin-left:auto}
.site-footer .direct-nav a{color:#e2edf8}
.site-footer .direct-nav a:is(:hover,:focus-visible),.site-footer .direct-nav a[aria-current="page"]{background:#e2edf8;color:#244363}
html[data-theme="dark"] body{background:var(--bg);color:var(--fg)}
html[data-theme="dark"] .direct-header{background:#122135;border-color:var(--line)}
html[data-theme="dark"] .direct-brand,html[data-theme="dark"] .direct-nav a{color:#d8e9fa}
html[data-theme="dark"] .direct-nav a:is(:hover,:focus-visible),html[data-theme="dark"] .direct-nav a[aria-current="page"]{background:#a6ccf2;color:#10253b}
html[data-theme="dark"] .church-theme-button{color:#e4effa;background:#223b54;border-color:#527394}
html[data-theme="dark"] .church-theme-button:hover{background:#304d6a}
html[data-theme="dark"] .church-theme-button:focus-visible{outline-color:#a6ccf2}
html[data-theme="dark"] :is(#services,.home-feature,.home-explore,#connect,#about,#contact,#events,#magazines,#resources,#verses){background:var(--bg);color:var(--fg)}
html[data-theme="dark"] :is(.section-head,.section-top) :is(.label,.eyebrow),html[data-theme="dark"] :is(.home-feature,.home-explore) .label{color:#deb4ce}
html[data-theme="dark"] .service{background:var(--bg-raised);border-color:var(--line)!important;border-top-color:var(--card-color)!important;--card-color:#a6ccf2}
html[data-theme="dark"] .service:nth-child(2){--card-color:#e5b1d0}
html[data-theme="dark"] .service:nth-child(3){--card-color:#9cd2d8}
html[data-theme="dark"] .service__time{background:#263d53;color:var(--card-color)}
html[data-theme="dark"] :is(.service__name,.home-explore h3,.home-feature h2,.home-explore h2){color:var(--fg)}
html[data-theme="dark"] .service__note{color:var(--fg-muted)}
html[data-theme="dark"] :is(.home-explore,.pathways) .pathway{background:var(--bg-raised);border-color:var(--line);border-top-color:var(--path-color,#a6ccf2);border-radius:22px}
html[data-theme="dark"] .home-explore .pathway{--path-color:#e5b1d0}
html[data-theme="dark"] .home-explore .pathway:nth-child(2){--path-color:#9cd2d8}
html[data-theme="dark"] .home-explore .pathway:nth-child(3){--path-color:#a6ccf2}
html[data-theme="dark"] .home-explore .pathway:is(:hover,:focus-visible){background:#21364c;border-color:var(--path-color)}
html[data-theme="dark"] .home-explore .pathway:is(:hover,:focus-visible) h3,html[data-theme="dark"] .home-explore .pathway__go{color:var(--path-color)}
html[data-theme="dark"] :is(.pathway p,.home-feature .featured-event p){color:var(--fg-muted)}
html[data-theme="dark"] .pathway__go{color:#a6ccf2}
html[data-theme="dark"] :is(#events,.home-feature) .featured-event{background:#1d3045;color:var(--fg);border-color:#52677e}
html[data-theme="dark"] :is(#events,.home-feature) .featured-event :is(h3,p){color:var(--fg)}
html[data-theme="dark"] :is(#events,.home-feature) :is(.featured-event-date,.featured-event .eyebrow){color:#f0b9b2}
html[data-theme="dark"] #events .calendar,html[data-theme="dark"] #magazines .mag-card{background:var(--bg-raised)}
html[data-theme="dark"] #events .calendar-controls button{background:#243e59;color:#eef4fa}
html[data-theme="dark"] #events .day{color:var(--fg)}
html[data-theme="dark"] #events .day.selected{background:#a6ccf2;color:#10253b}
html[data-theme="dark"] #events .day:hover{background:#304b66}
html[data-theme="dark"] #events .day.selected:hover{background:#c0dcf7;color:#10253b}
html[data-theme="dark"] #events .date-tile{background:#253e58}
html[data-theme="dark"] #magazines .mag-art{background:#0c1623}
html[data-theme="dark"] .prayer-panel{background:linear-gradient(125deg,#213e5e,#182c44 65%,#432b43);border:1px solid #435a74;border-radius:26px}
html[data-theme="dark"] #about .welcome-dropcap::first-letter{float:left;font-family:Georgia,'Times New Roman',serif;font-size:4.8em;line-height:.82;padding:.08em .12em 0 0;color:#e5b1d0;font-weight:400}
html[data-theme="dark"] .feeling[aria-pressed="true"]{background:#a6ccf2;color:#10253b;border-color:#a6ccf2}
html[data-theme="dark"] .connection-card{border-radius:14px}
html[data-theme="dark"] .connection-card :is(input,textarea,select){background:#0e1b2a;color:var(--fg);border-color:#6485a5}
html[data-theme="dark"] .connection-card :is(input,textarea)::placeholder{color:#a6b9cd;opacity:1}
html[data-theme="dark"] .connection-card .field-invalid{background:#462c38;border-color:#ff9eaa}
html[data-theme="dark"] .required-mark{color:#ffb3bf}
html[data-theme="dark"] .btn-outline{color:#d7e9fa;border-color:#91b4d6;background:transparent}
html[data-theme="dark"] .btn-outline:is(:hover,:focus-visible){background:#a6ccf2;color:#10253b;border-color:#a6ccf2}
@media(max-width:760px){.direct-header .direct-nav{order:3;margin-left:0}.direct-brand{flex:1;min-width:0}.church-theme-button{font-size:12px;padding:9px 11px}}
@media print{.church-theme-button{display:none}}

/* Restored four-column church footer. */
.site-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr 1fr;gap:32px}
.site-footer__grid>div{min-width:0}
.site-footer__grid h3{color:#e5eef7;font:700 12px/1.6 var(--font-ui);letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}
.site-footer__grid>div:first-child h3{font-size:15px;letter-spacing:.02em;text-transform:none;max-width:280px}
.site-footer__grid p{color:#d0deeb}.footer-address{margin-top:16px}
.site-footer__grid ul{list-style:none;padding:0;display:grid;gap:8px}
.site-footer__grid ul a{font-size:12px;color:#e4edf5}
#resources .resource-card:nth-child(6){--resource-colour:#365f70}
@media(max-width:850px){.site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 22px}}
@media(max-width:480px){.site-footer__grid{grid-template-columns:1fr}.site-footer__grid ul{display:flex;flex-wrap:wrap;gap:8px}.site-footer__grid>div:first-child h3{max-width:none}.site-footer__meta{line-height:1.8}}
