:root {
  color-scheme: light;
  --paper: #fff;
  --white: #fff;
  --ink: #23374d;
  --ink-soft: #526172;
  --moss: #45617c;
  --moss-deep: #233b53;
  --sage: #eef2f5;
  --sand: #eef2f5;
  --clay: #816124;
  --line: #d6dee5;
  --field: #fff;
  --field-border: #83909c;
  --hero: #233b53;
  --hero-text: #fff;
  --hero-muted: #d4dfe9;
  --gold: #e2c68e;
  --error: #a32c28;
  --success: #286242;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --content: 1120px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141d26;
  --white: #1b2733;
  --ink: #e6edf3;
  --ink-soft: #b3c1ce;
  --moss: #b3cee5;
  --moss-deep: #b3cee5;
  --sage: #1b2733;
  --sand: #1b2733;
  --clay: #e2c68e;
  --line: #3c4c5b;
  --field: #141d26;
  --field-border: #657b8e;
  --hero: #1b2f42;
  --error: #ffaaa4;
  --success: #9edbb4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--clay); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--clay); outline-offset: 5px; }
::selection { background: #d6b97b; color: #172a3d; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { font-weight: 650; letter-spacing: -0.045em; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 2.8vw, 2.6rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.16; margin-bottom: 1.5rem; }
h3 { font-weight: 600; }
p { margin-bottom: 1.15rem; }
.skip-link { position: absolute; z-index: 50; top: -100px; left: 1rem; padding: 0.7rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header { width: min(var(--content), calc(100% - 4rem)); min-height: 110px; margin: auto; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; flex: 0 1 245px; min-width: 0; width: 245px; text-decoration: none; }
.brand-logo { display: block; width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-left: auto; }
.main-nav a { display: inline-block; padding: 0.4rem 0; border-bottom: 1px solid transparent; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; color: var(--ink); }
.main-nav a, .sermon-nav-link, .portal-link { font-size: 0.88rem; text-decoration: none; }
.sermon-nav-link { margin-left: auto; }
.portal-link { color: var(--ink-soft); white-space: nowrap; }
.theme-toggle { margin-left: 0.5rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font: 0.8rem var(--sans); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle:hover { background: var(--sage); }
.hero { background: var(--hero); color: var(--hero-text); }
.hero-inner { width: min(var(--content), calc(100% - 4rem)); margin: auto; padding: 5rem 0; display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 6rem; }
.hero h1 { margin: 0 0 2rem; font-size: clamp(3.7rem, 6.4vw, 5.8rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.045em; }
.hero-intro { max-width: 470px; margin-bottom: 1.8rem; color: var(--hero-muted); font-size: 1.05rem; line-height: 1.75; }
.hero-visit { padding: 0 0 0.4rem; }
.line-art { display: block; fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.line-art .art-accent { stroke: var(--clay); }
.welcome-art { width: 230px; margin: 0 0 1.5rem; stroke: var(--hero-muted); }
.welcome-art .art-accent { stroke: var(--gold); }
.growth-art { width: 170px; margin-top: 1.7rem; }
.conversation-art { width: 155px; margin-top: 1.5rem; }
.hero-address { padding-top: 1.3rem; border-top: 1px solid #ffffff40; margin-bottom: 1.6rem; font-size: 1.3rem; line-height: 1.5; }
.next-service-banner { margin-bottom: 1.7rem; }
.next-service-label { color: var(--hero-muted); font-size: 0.8rem; }
.next-service-list { margin-top: 0.6rem; }
.next-service-item { display: flex; align-items: center; gap: 0.75rem; }
.next-service-icon { flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; }
.next-service-text { min-width: 0; }
.next-service-item + .next-service-item { margin-top: 0.9rem; }
.next-service-name, .next-service-date { display: block; }
.next-service-name { font-weight: 600; font-size: 0.94rem; }
.next-service-date { color: var(--hero-muted); font-size: 0.82rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 48px; padding: 0.75rem 1.1rem; border: 1px solid transparent; border-radius: 3px; font: 600 0.88rem/1.5 var(--sans); text-decoration: none; cursor: pointer; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--clay); color: var(--paper); }
.button-light { background: #fff; color: #233b53; }
.button-light:hover { background: var(--gold); color: #233b53; }
.text-link { text-decoration: none; display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; font-weight: 600; }
.link-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-skip-ink: auto; }
.link-icon { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facebook-icon { fill: currentColor; stroke: none; }
.text-link-light { color: var(--hero-text); }
.text-link-light:hover { color: var(--gold); }
.section-pad { padding: 5rem max(2rem, calc((100% - var(--content)) / 2)); }
.sunday-overview, .about-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; }
.sunday-copy, .about-copy { max-width: 650px; color: var(--ink-soft); }
.sunday-copy > p:first-child, .about-copy > p:first-child { color: var(--ink); font-size: 1.12rem; }
.visit-note { padding-top: 0.7rem; font-size: 0.9rem; }

.calendar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calendar-heading h3 { margin: 0; font-size: 1.1rem; }
.elvanto-frame { min-height: 80px; }
.elvanto-calendar-events-ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); }
.elvanto-calendar-events-ul > li { min-width: 0; }
.elvanto-calendar-events-ul > li > .elvanto-service-card { min-height: 100px; padding: 1.2rem 1rem 1.2rem 0; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 0.8rem; align-content: center; border-bottom: 1px solid var(--line); color: var(--ink); }
.elvanto-calendar-events-pic { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.elvanto-calendar-events-title { font-size: 1rem; font-weight: 600; }
.elvanto-calendar-events-date { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.83rem; }
.elvanto-modal { position: fixed; z-index: 30; inset: 0; }
.elvanto-modal-bg { position: absolute; inset: 0; background: #101c2bbd; }
.elvanto-modal-wrap { position: relative; width: min(900px, calc(100% - 2rem)); height: min(720px, calc(100% - 2rem)); margin: 1rem auto; overflow: auto; background: var(--white); }
.elvanto-modal-header { padding: 1rem; background: var(--ink); color: var(--paper); }
.elvanto-modal-wrap iframe { width: 100%; height: calc(100% - 58px); border: 0; }
.about { border-top: 1px solid var(--line); }
.logo-story-content { margin-top: 2rem; color: var(--ink-soft); }
.beliefs { border-top: 1px solid var(--line); }
.beliefs > h2 { margin-bottom: 2rem; }
.church-detail { border-bottom: 1px solid var(--line); }
.church-detail:first-child { border-top: 1px solid var(--line); }
.church-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-weight: 500; }
.church-detail > summary::-webkit-details-marker, .belief summary::-webkit-details-marker { display: none; }
.church-detail > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--moss); }
.church-detail[open] > summary::after { content: "−"; }
.detail-body { max-width: 800px; padding-bottom: 1.5rem; color: var(--ink-soft); }
.values-grid { margin: 1.5rem 0 0; }
.logo-gospel { display: flex; align-items: start; gap: 1.5rem; margin-top: 0.5rem; }
.logo-symbol { flex-shrink: 0; color: var(--moss); }
.logo-part { display: flex; align-items: center; gap: 1rem; }
.logo-part > .logo-symbol { flex-shrink: 0; }
.detail-body ul { padding-left: 1.3rem; }
.detail-body li { margin-bottom: 0.4rem; }
.belief-list { border-top: 1px solid var(--line); }
.belief { border-bottom: 1px solid var(--line); }
.belief summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 65px; padding: 0.8rem 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 0.95rem; }
.plus { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.plus::before, .plus::after { content: ""; position: absolute; top: 9px; left: 3px; width: 14px; height: 1px; background: var(--moss); }
.plus::after { transform: rotate(90deg); }
.belief[open] .plus::after { transform: none; }
.belief-body { padding: 0.4rem 1rem 1rem 0; font-size: 0.94rem; }
.scripture { color: var(--moss); font-size: 0.85rem; }
.sermons { background: var(--sage); }
.services-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.services-heading h2 { margin: 0; }
.sermon-feed-message { padding: 1.5rem 0; color: var(--ink-soft); }
.sermon-grid { border-top: 1px solid var(--line); }
.sermon-card { display: grid; grid-template-columns: 150px 1.1fr 1fr auto; align-items: baseline; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.sermon-date { color: var(--ink-soft); font-size: 0.8rem; }
.sermon-card h3 { margin: 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 400; line-height: 1.4; }
.sermon-card p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }
.sermon-card .text-link { font-size: 0.8rem; }
.child-safety { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; border-bottom: 1px solid var(--line); }
.safety-art { width: 100px; margin-top: 1.5rem; }
.safety-copy { color: var(--ink-soft); }
.safety-copy > p:first-child { color: var(--ink); font-size: 1.12rem; }
.policy-source { margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.8rem; }
.commitment-statement ol { padding-left: 1.4rem; }
.commitment-statement li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.policy-page { min-height: 65vh; }
.policy-page h1 { max-width: 800px; margin: 2rem 0 1.5rem; font: 400 clamp(2.5rem, 5vw, 4rem)/1.12 var(--serif); letter-spacing: -0.025em; }
.policy-copy { max-width: 760px; margin-top: 1.5rem; color: var(--ink-soft); }
.contact-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.contact-intro p { color: var(--ink-soft); max-width: 550px; }
.contact-options { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.contact-option { border-top: 1px solid var(--line); }
.contact-option > summary { font-size: 1.15rem; }
.church-form { position: relative; padding: 0 0 1.5rem; }
.church-form label { display: block; margin: 0.9rem 0 0.35rem; font-size: 0.85rem; font-weight: 600; }
.church-form input:not([type="checkbox"]), .church-form textarea { width: 100%; min-height: 46px; padding: 0.7rem 0.8rem; border: 1px solid var(--field-border); border-radius: 3px; background: var(--field); color: var(--ink); font: inherit; }
.church-form textarea { min-height: 130px; resize: vertical; }
.church-form input:focus, .church-form textarea:focus { outline: 2px solid var(--moss); outline-offset: 2px; }
.church-form .field-note { color: var(--ink-soft); font-size: 0.78rem; font-weight: 400; }
.check-row { display: flex !important; align-items: center; gap: 0.7rem; margin: 1.1rem 0 !important; font-weight: 400 !important; }
.check-row input { width: 18px; height: 18px; accent-color: var(--moss); }
.form-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1rem; }
.form-submit:disabled { cursor: not-allowed; opacity: 0.55; }
.form-status { min-height: 1.5em; margin: 0.75rem 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }
.form-fallback, .prayer-privacy { color: var(--ink-soft); font-size: 0.85rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-slot { min-height: 65px; margin-top: 1rem; }
.turnstile-slot:empty { min-height: 0; margin-top: 0; }
.site-footer { padding: 2.5rem max(2rem, calc((100% - var(--content)) / 2)) 1.25rem; background: #172b3e; color: #fff; }
.footer-top { display: grid; grid-template-columns: 245px 1fr 1fr; align-items: center; gap: 3rem; padding-bottom: 2rem; }
.brand-footer { padding: 0; }
.footer-top > p { max-width: 280px; margin: 0; color: #d4dfe9; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.footer-links a, .footer-bottom a { color: #fff; font-size: 0.8rem; }
.footer-members { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid #ffffff33; color: #d4dfe9; font-size: 0.83rem; }
.footer-members .portal-link { padding: 0.55rem 0.9rem; color: #fff; border: 1px solid #ffffff66; border-radius: 3px; text-decoration: none; }
.footer-members .portal-link:hover { color: var(--gold); border-color: var(--gold); }
.footer-affiliations { display: flex; flex-wrap: wrap; align-items: start; gap: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid #ffffff33; }
.affiliation { display: grid; gap: 0.65rem; width: 250px; color: #d4dfe9; font-size: 0.75rem; text-decoration: none; }
.affiliation:hover { color: var(--gold); }
.affiliation-logo { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 0.75rem 1rem; background: #fff; border-radius: 3px; }
.acnc-affiliation .affiliation-logo { min-height: 124px; }
.acnc-affiliation .affiliation-logo img { max-height: 100px; }
.qb-affiliation .affiliation-logo { min-height: 124px; }
.affiliation-logo img { display: block; height: auto; max-height: 68px; width: auto; max-width: 100%; }
.footer-abn { display: block; margin-top: 0.25rem; }
.footer-bottom { flex-wrap: wrap; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #ffffff33; color: #d4dfe9; font-size: 0.75rem; }
.eyebrow { color: var(--ink-soft); font-size: 0.85rem; }
@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; gap: 1rem; padding: 1.2rem 0; }
  .brand { flex-basis: 210px; }
  .main-nav { gap: 1rem; }
  .hero-inner { gap: 3rem; }
  .sunday-overview, .about-intro, .contact-intro, .child-safety { gap: 3rem; }
  .sermon-card { grid-template-columns: 120px 1fr auto; gap: 1rem; }
  .sermon-card p { grid-column: 2; }
  .sermon-card .text-link { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .footer-top { grid-template-columns: 210px 1fr; gap: 2rem; }
  .footer-links { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 1rem; }
  .site-header { width: calc(100% - 2.5rem); gap: 0.75rem; }
  .brand { flex-basis: 190px; }
  .main-nav { order: 4; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.7rem; }
  .portal-link { margin-left: auto; font-size: 0.8rem; }
  .theme-toggle { padding: 0.5rem; margin-left: auto; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-inner { width: calc(100% - 2.5rem); padding: 3.5rem 0 2.5rem; grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-visit { padding-top: 0; }
  .welcome-art { width: 180px; margin-bottom: 1.2rem; }
  .about-heading, .contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .logo-gospel { gap: 1rem; }
  .logo-gospel > .logo-symbol { width: 60px; height: 60px; }
  .growth-art, .conversation-art { flex-shrink: 0; width: 85px; margin: 0 0 1rem; }
  .hero-address { font-size: 1.12rem; }
  .next-service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .next-service-item + .next-service-item { margin-top: 0; }
  .section-pad { padding: 3.5rem 1.25rem; }
  .sunday-overview, .about-intro, .contact-intro, .child-safety { grid-template-columns: 1fr; gap: 0.3rem; }
  .safety-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .safety-art { flex-shrink: 0; width: 70px; margin: 0 0 1rem; }
  .footer-affiliations { gap: 1.5rem; }
  .affiliation { width: min(250px, 100%); }
  .elvanto-calendar-events-ul { grid-template-columns: 1fr; }
  .services-heading { display: block; }
  .services-heading > .text-link { margin-top: 0.6rem; }
  .sermon-card { grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 1.25rem 0; }
  .sermon-date { grid-column: 1 / -1; }
  .sermon-card h3, .sermon-card p { grid-column: 1 / -1; }
  .sermon-card .text-link { grid-column: 1 / -1; grid-row: auto; margin-top: 0.6rem; }
  .contact-intro { margin-bottom: 1rem; }
  .contact-options { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-links { grid-column: auto; }
  .footer-bottom { font-size: 0.7rem; }
}
@media (max-width: 380px) {
  .brand { flex-basis: 165px; }
  .site-header { gap: 0.5rem; }
  .portal-link { font-size: 0.75rem; }
  .form-field-pair { grid-template-columns: 1fr; gap: 0; }
  .next-service-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
