/* Shared rhythm: calm editorial typography, aligned page introductions. */
:root{--reading-width:65ch;--heading-space:clamp(1rem,2vw,1.6rem)}
.intro{align-items:start}.intro>div{min-width:0}.intro h1,.pastoral-copy h1,.giving-copy h1{text-align:left;text-wrap:balance;max-width:22ch}
h1{font-size:clamp(2.3rem,4.2vw,4.25rem);line-height:1.12}h2{font-size:clamp(1.9rem,3vw,2.75rem);line-height:1.18}h3{font-size:clamp(1.08rem,1.4vw,1.25rem);line-height:1.4}
.intro p:not(.eyebrow),.community-intro p,.pastoral-intro,.giving-copy>p{max-width:var(--reading-width)}
.intro h1,.section-header h2{margin-bottom:var(--heading-space)}.section-header p{max-width:var(--reading-width)}
.department-copy{display:flex;flex-direction:column;align-items:start}.department-copy p{flex:1}.department-copy>a{margin-top:12px}.department-copy h2{font-size:clamp(1.75rem,2.4vw,2.2rem)}
.giving-contact{align-self:center;border-left:1px solid #ffffff35;padding:30px;color:#f5f0e7}.giving-contact h2{font-size:2rem}.giving-contact p{max-width:40ch}.giving-contact .button{margin:8px 0 0}.giving-copy .giving-note{color:#d2dbe4}.giving-links{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.visit-invitation{max-width:850px;margin:auto}.visit-invitation h2{max-width:23ch;margin-inline:auto}.service-rows time{white-space:nowrap}
.welcome-dialog{box-sizing:border-box;border:1px solid #bc9b61;border-radius:14px;background:#0a1727;color:#f8f2e8;box-shadow:0 24px 80px #0005;width:min(520px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:38px;margin:auto;overflow:auto;overscroll-behavior:contain;text-align:left}
.welcome-dialog::backdrop{background:#09132266;backdrop-filter:blur(2px)}
.welcome-close{position:sticky;top:0;float:right;margin:-22px -22px 0 12px;border:0;border-radius:50%;background:#152b40;color:#fff;font-size:1.75rem;line-height:1;width:44px;height:44px;display:grid;place-items:center}
.welcome-dialog .eyebrow{color:#e1bc74;font-size:.72rem;max-width:calc(100% - 28px);margin-bottom:20px}.welcome-dialog blockquote{margin:0 0 22px;padding:0 0 0 18px;border-left:2px solid #b89553;font-family:Georgia,serif;color:#dfceb0;font-size:1.1rem;line-height:1.65}.welcome-dialog cite{display:block;font-family:'DM Sans',Arial,sans-serif;font-size:.78rem;font-style:normal;margin-top:8px;color:#b9c6d3}.welcome-dialog h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:2.2rem;line-height:1.15;margin:0 0 15px;max-width:19ch}.welcome-dialog>p:not(.eyebrow){font-size:1rem;line-height:1.65;color:#d5dee7;margin-bottom:22px}.welcome-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.welcome-prayer{color:#f0ce8d;text-decoration:underline;text-underline-offset:4px;font-size:.92rem;padding:10px 0}.welcome-later{display:block;background:none;border:0;color:#bac7d4;padding:12px 0 0;margin-top:8px;min-height:44px;font-size:.9rem}.welcome-dialog :focus-visible{outline:3px solid #f0ce8d;outline-offset:4px}
@media(max-width:700px){.intro{gap:24px}.intro h1,.pastoral-copy h1,.giving-copy h1{max-width:100%;font-size:clamp(2.15rem,8.5vw,3rem)}.giving-contact{border-left:0;border-top:1px solid #ffffff35;padding:28px 0 0}.service-rows time{font-size:.875rem}.welcome-dialog{padding:25px 22px;max-height:calc(100dvh - 32px);width:calc(100vw - 28px)}.welcome-close{margin:-12px -10px 0 8px}.welcome-dialog .eyebrow{font-size:.65rem;letter-spacing:.12em;margin-bottom:16px}.welcome-dialog blockquote{font-size:1rem;margin-bottom:18px;padding-left:13px}.welcome-dialog h2{font-size:1.9rem}.welcome-dialog>p:not(.eyebrow){font-size:.94rem;line-height:1.55;margin-bottom:18px}.welcome-actions{gap:6px 16px}.welcome-actions .button{min-height:46px}}
@media(max-height:600px){.welcome-dialog{padding:22px}.welcome-dialog blockquote{font-size:.94rem;margin-bottom:12px}.welcome-dialog h2{font-size:1.65rem;margin-bottom:10px}.welcome-dialog .eyebrow{margin-bottom:12px}.welcome-dialog>p:not(.eyebrow){margin-bottom:12px}}
@media(prefers-reduced-motion:no-preference){.welcome-dialog[open]{animation:welcome-arrive .2s ease-out}@keyframes welcome-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}}
@media print{.welcome-dialog{display:none!important}}

@media(max-width:700px){.welcome-dialog{max-height:82vh;max-height:82dvh}}

/* Calendar emphasis keeps offerings neutral at the end of navigation. */
.site-header nav>.nav-calendar{font-weight:700;border-bottom:2px solid var(--gold);color:var(--navy);padding-inline:4px}
.site-header nav>.nav-giving{font-weight:500;background:transparent;color:inherit}
.site-header nav>.nav-calendar.active{color:var(--orange)}
.calendar-intro h1{font-size:clamp(3rem,5.3vw,4.8rem);line-height:1.08;max-width:20ch;color:var(--navy);margin-bottom:22px}
.calendar-intro h1::after{content:'';display:block;width:76px;height:3px;background:var(--gold);margin-top:22px}
.calendar-intro .eyebrow{color:#947032}
/* Fourth highlight: the Gospel invitation blends into the established navy. */
.evangelism-slide{position:relative;isolation:isolate;background:var(--navy-deep);color:#faf6ed;min-height:640px;overflow:hidden;display:flex;align-items:center}
.evangelism-photo{position:absolute;z-index:-2;right:-2%;top:0;width:66%;height:100%;object-fit:cover;object-position:50% 48%;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#0009 18%,#000 40%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#0009 18%,#000 40%,#000 86%,transparent 100%)}
.evangelism-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a172755 0%,#0a172700 16%,#0a172700 67%,#0a1727cc 92%,#0a1727 100%),linear-gradient(90deg,#0a1727 0%,#0a1727 25%,#0a1727e8 38%,#0a172755 57%,#0a172700 80%)}
.evangelism-copy{padding:64px clamp(24px,5vw,84px) 110px;width:60%;max-width:830px;box-sizing:border-box}
.evangelism-copy .eyebrow{color:var(--gold)}
.evangelism-copy h2{color:#faf6ed;font-family:Arial,sans-serif;font-weight:700;font-size:clamp(2.4rem,4.3vw,4.3rem);line-height:1.08;max-width:15ch;margin:20px 0 26px}
.evangelism-copy blockquote{margin:0 0 30px;border-left:2px solid var(--gold);padding-left:22px}
.evangelism-copy .evangelism-verse-text{font-family:Georgia,serif;font-style:italic;font-size:clamp(1.25rem,1.8vw,1.65rem);line-height:1.6;color:#faf6ed;margin:0 0 14px}
.evangelism-reference{font-size:.9rem;color:var(--gold);font-style:normal}
@media(max-width:700px){.evangelism-slide{min-height:760px;align-items:flex-end}.evangelism-photo{width:112%;right:-6%;height:58%;top:0;object-position:50% 40%;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 82%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 82%,transparent 100%)}.evangelism-shade{background:linear-gradient(180deg,#0a172733 0%,#0a172700 14%,#0a172766 34%,#0a1727e8 48%,#0a1727 58%,#0a1727 100%)}.evangelism-copy{width:100%;max-width:none;padding:310px 24px 110px}.evangelism-copy h2{font-size:clamp(2rem,8.5vw,3rem);max-width:19ch;margin-block:15px 22px}.evangelism-copy .evangelism-verse-text{font-size:1.2rem}.evangelism-copy blockquote{padding-left:16px;margin-bottom:22px}}
/* Recovered originals retain their proportions; replacements use the same editor slots. */
.church-intro{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.15fr);gap:clamp(28px,5vw,72px);align-items:center;background:transparent;border:0;padding:0}
.church-photo,.giving-photo{margin:0;min-width:0;overflow:hidden;border-radius:8px;background:var(--navy-deep)}
.church-photo img,.giving-photo img{display:block;width:100%;height:auto;max-width:100%}
.church-photo{max-width:420px}
.giving-feature{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);gap:clamp(24px,4vw,56px);align-items:start;margin:36px 0 16px}
.giving-feature .giving-layout{display:block;margin:0;padding:clamp(24px,3vw,44px)}
.giving-feature .giving-contact{border-left:0;border-top:1px solid #ffffff35;padding:28px 0 0;margin-top:28px}
.giving-feature .giving-copy h1{font-size:clamp(2.2rem,4vw,3.4rem)}
.department-visual:has(img:not([hidden])){background-image:none}
@media(max-width:700px){.church-intro,.giving-feature{grid-template-columns:minmax(0,1fr);gap:28px}.church-photo{width:100%;max-width:360px;margin-inline:auto}.giving-feature .giving-layout{grid-row:1}.giving-photo{grid-row:2;max-width:400px;margin-inline:auto}.giving-feature .giving-copy h1{font-size:2.3rem}}
@media(max-width:700px){.calendar-intro h1{font-size:clamp(2.5rem,10vw,3.5rem)}.calendar-intro h1::after{width:58px;margin-top:17px}.site-header nav>.nav-calendar{align-self:flex-start;padding-inline:0}}

/* Aggregate visitor dashboard; responsive and accessible without chart libraries. */
.site-visits{padding-bottom:4rem}.visits-filter{display:flex;flex-wrap:wrap;align-items:end;gap:1rem;padding:1.5rem 0}.visits-filter label{display:grid;gap:.4rem;min-width:10rem}.visits-filter input{max-width:100%;padding:.7rem;border:1px solid #c5c1b6;border-radius:6px;background:#fff;color:#0a1727;font:inherit}.visits-presets{display:flex;flex-wrap:wrap;gap:.5rem}.visits-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem}.visits-kpis article{background:#0a1727;color:#fff;padding:1.4rem;border-radius:10px;display:grid;gap:.6rem}.visits-kpis strong{font:700 clamp(2rem,4vw,3rem)/1.1 'DM Sans',sans-serif;color:#e9c578}.visits-kpis small{color:#d8e0e9;font-size:.875rem}.visits-panel{padding:1.5rem;border:1px solid #d5cbbb;border-radius:10px;margin:1rem 0;background:#fffdf8;min-width:0}.visits-panel h2,.visits-note h2{font-size:1.6rem;margin:0 0 1rem}.visits-chart{margin:1.5rem 0}.visits-chart svg{display:block;width:100%;height:auto;max-height:240px;fill:#b85516;border-bottom:1px solid #c9bfac}.visits-chart figcaption{display:flex;justify-content:space-between;font-size:.875rem;margin-top:.5rem}.visits-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:1.5rem}.visits-ranking{list-style:none;margin:0;padding:0}.visits-ranking li{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;border-bottom:1px solid #ded7cc}.visits-note{border-left:3px solid #ae853b;padding:1rem 1.5rem;margin:1.5rem 0}.visits-note p{max-width:78ch}.site-visits details summary{cursor:pointer;font-weight:600;padding:.7rem 0}.site-visits .section-header{gap:1rem;flex-wrap:wrap}.site-visits .section-header h2{margin:0}
@media(max-width:900px){.visits-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.visits-columns{grid-template-columns:1fr}}
@media(max-width:480px){.visits-filter label{min-width:0;width:calc(50% - .5rem)}.visits-filter input{min-width:0;width:100%}.visits-kpis{gap:.65rem}.visits-kpis article{padding:1rem}.visits-panel{padding:1rem}.visits-note{padding:1rem}.visits-kpis article>span{font-size:.9rem}}
