/* Shared helpers loaded by every page (after each page's inline <style>, so these rules can override it):
   layout safety, keyboard focus and reduced-motion support. */

/* Pre-reveal elements are translated off-screen; stop them creating sideways scroll on phones */
html, body { overflow-x: clip; }

/* Visible keyboard focus for controls that otherwise show none */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--p400, #8b5cf6);
  outline-offset: 3px;
}

/* Keep in-page anchors from hiding under the fixed navigation bar */
[id] { scroll-margin-top: 90px; }

/* Respect the visitor's "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Main navigation: Poppins SemiBold on every page */
nav .nav-links a,
nav .nav-give,
.mob-nav a {
  font-family: "Poppins", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
}
nav .nav-links a { font-size: 14px; letter-spacing: 0.06em; }
nav .nav-links a.nav-give { font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0.08em; }

/* Poppins 14px needs more room: use the menu button up to 1100px on every page */
@media (max-width: 1100px) {
  nav .nav-links { display: none; }
  nav .ham { display: flex; }
}

/* Forms that are not connected to a delivery service yet (see tests: no fake success messages) */
.form-paused-note { margin: 0 0 16px; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: #2d0d5e; background: #f4effc; border-left: 3px solid #7b4bbf; border-radius: 0 6px 6px 0; text-align: left; }
.form-paused-note a { color: #5c2d91; text-decoration: underline; }
form[data-submissions="paused"] :disabled, .is-paused :disabled { opacity: .55; cursor: not-allowed; }
.is-paused .amount-btn, .is-paused .freq-btn { pointer-events: none; opacity: .55; }
/* Giving: unverified bank details are withheld until the church confirms them */
.bank-notice { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.65; color: #2d0d5e; background: #f4effc; border-left: 3px solid #7b4bbf; border-radius: 0 6px 6px 0; text-align: left; }
.bank-notice a { color: #5c2d91; text-decoration: underline; }

/* ── FOOTER (single shared design; markup lives in partials/footer.html) ── */
.zh-footer{position:relative;overflow:hidden;color:#fff;font-family:"Poppins","Plus Jakarta Sans",system-ui,sans-serif;
  background:radial-gradient(60% 90% at 100% 100%,rgba(109,40,217,.22),transparent 60%),radial-gradient(45% 70% at 0% 0%,rgba(124,58,237,.18),transparent 60%),linear-gradient(180deg,#1b0630 0%,#140323 100%);
  border-top:1px solid rgba(167,139,250,.28)}
.zh-footer-main{position:relative;z-index:1;max-width:1320px;margin:0 auto;display:grid;grid-template-columns:1.9fr 1fr 1fr 1fr;padding:clamp(32px,4.2vw,60px) clamp(20px,5vw,64px) clamp(36px,4.6vw,60px)}
.zh-brand{padding-right:clamp(20px,4vw,56px)}
.zh-logo{display:inline-block;white-space:nowrap;font-family:"Playfair Display",Georgia,serif;font-size:clamp(30px,3.1vw,42px);font-weight:600;line-height:1.1;color:#fff;letter-spacing:0}
.zh-logo span{color:#a78bfa}
.zh-logo-rule{display:block;width:64px;height:2px;margin:16px 0 20px;background:linear-gradient(90deg,#a78bfa,transparent)}
.zh-tagline{max-width:420px;font-size:clamp(15px,1.25vw,17px);line-height:1.75;color:rgba(255,255,255,.82);margin:0 0 26px}
.zh-contact{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.zh-contact li{display:flex;align-items:center;gap:14px;font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.85)}
.zh-contact a{color:inherit}
.zh-contact a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.zh-ico{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#c4b5fd;background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.28)}
.zh-col{padding:4px 0 4px clamp(20px,3.4vw,52px);border-left:1px solid rgba(255,255,255,.1)}
.zh-col h2{font-family:"Poppins",sans-serif;font-size:13px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:#a78bfa;margin:0 0 18px}
.zh-col ul{list-style:none;margin:0;padding:0}
.zh-col li a{display:flex;align-items:center;min-height:42px;font-size:15px;font-weight:400;color:rgba(255,255,255,.86);transition:color .18s ease}
.zh-col li a:hover{color:#fff}
.zh-footer-bottom{position:relative;z-index:1;border-top:1px solid transparent;border-image:linear-gradient(90deg,rgba(167,139,250,.55),rgba(167,139,250,.12) 40%,rgba(167,139,250,.12) 60%,rgba(167,139,250,.55)) 1;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;max-width:1320px;margin:0 auto;padding:22px clamp(20px,5vw,64px) 26px}
.zh-footer-bottom p{margin:0;font-size:14px;line-height:1.6;color:rgba(255,255,255,.78)}
.zh-heart{color:#a78bfa;vertical-align:-3px;margin-left:4px}
.zh-social{display:flex;gap:14px}
.zh-social a{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:#fff;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);transition:background-color .2s,border-color .2s,transform .2s}
.zh-social a:hover{background:#6d28d9;border-color:#a78bfa;transform:translateY(-2px)}
.zh-footer a:focus-visible{outline:2px solid #d5a6ff;outline-offset:3px;border-radius:4px}
@media (max-width:1100px){
  .zh-footer-main{grid-template-columns:1fr 1fr;row-gap:36px}
  .zh-brand{grid-column:1 / -1;padding-right:0}
  .zh-col{border-left:0;padding-left:0}
  .zh-col + .zh-col{border-left:1px solid rgba(255,255,255,.1);padding-left:clamp(20px,4vw,40px)}
}
@media (max-width:759px){
  .zh-footer-main{grid-template-columns:1fr}
  .zh-col,.zh-col + .zh-col{border-left:0;padding-left:0;border-top:1px solid rgba(255,255,255,.1);padding-top:24px}
  .zh-footer-bottom{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.zh-social a{transition:none}.zh-social a:hover{transform:none}}

/* Forms: honeypot (hidden from people), consent, status messages */
.zh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.zh-consent{margin:6px 0 16px}
.zh-consent label{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.55;cursor:pointer;text-transform:none;letter-spacing:0;font-weight:400}
.zh-consent input[type="checkbox"]{flex:0 0 auto;width:20px!important;height:20px;margin-top:2px;padding:0!important;accent-color:#6d28d9}
.zh-form-status{margin:14px 0 0;font-size:14.5px;line-height:1.6;min-height:1.4em}
.zh-form-status[data-state="success"]{padding:12px 14px;border-left:3px solid #16a34a;background:rgba(22,163,74,.1)}
.zh-form-status[data-state="error"]{padding:12px 14px;border-left:3px solid #dc2626;background:rgba(220,38,38,.08)}
.zh-form-status a{text-decoration:underline}
.zh-live-note{font-size:13px;line-height:1.6;margin-top:12px;opacity:.85}
[aria-invalid="true"]{border-color:#dc2626!important;outline-color:#dc2626}
.zh-prayer{max-width:880px;margin:0 auto;padding:0 clamp(16px,4vw,48px) 72px}
.zh-prayer-panel{margin:0 auto}
.dept-panel .zh-consent label,.dept-panel .zh-form-status{color:#fff}
.dept-panel .zh-form-status[data-state="success"]{background:rgba(22,163,74,.25)}
.dept-panel .zh-form-status[data-state="error"]{background:rgba(220,38,38,.25)}
.zh-prayer-panel{border-left:0!important}
