/* Help Christianity — "cathedral at dusk"
   Signature: every image sits in an arched church window. */
:root {
  --nave: #13254a;      /* deep lapis */
  --lapis: #2c55a3;
  --gilt: #c99a3d;      /* gold leaf */
  --gilt-deep: #9c7426;
  --ruby: #8e1f3b;      /* ruby glass */
  --plaster: #f1f2f5;   /* limewash, cool */
  --stone: #e3e5ea;
  --ink: #1c2233;
  --muted: #5d6478;
  --white: #fff;
  --ok: #2f6b4f;
  --display: 'Marcellus', 'Trajan Pro', Georgia, serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --arch: 999px 999px 6px 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--nave); }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--nave); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--body); padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gilt); color: #1d1405; }
.btn-gold:hover { background: #d8ab4e; color: #1d1405; }
.btn-blue { background: var(--nave); color: var(--white); }
.btn-blue:hover { background: var(--lapis); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--nave); background: transparent; }
.btn-line:hover { background: var(--nave); color: var(--white); border-color: var(--nave); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--lapis); text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: var(--nave); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(201,154,61,.35); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { flex: none; }
.brand b { font: 400 1.35rem/1 var(--display); display: block; }
.brand small { display: block; font-size: .78rem; color: #c9b88f; font-style: italic; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: #dfe5f2; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gilt); }
.nav-links .btn { border-bottom: 0; padding: .7em 1.3em; color: #1d1405; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 8px; padding: 8px 12px; font: inherit; }
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--nave); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { margin-top: 12px; }
}

.flash { padding: 14px 0; font-weight: 500; }
.flash-success { background: #e4f1ea; color: var(--ok); }
.flash-error { background: #f7e3e7; color: var(--ruby); }

/* ---------- The arch: signature image frame ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--nave); position: relative; aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.wide { aspect-ratio: 16 / 10; border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px; }
.arch-frame { padding: 10px; background: linear-gradient(160deg, #e2bd6c, var(--gilt-deep)); border-radius: var(--arch); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 75% 30%, #24407a 0%, var(--nave) 60%); color: var(--white); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.3rem); max-width: 13ch; }
.hero p { color: #d3dbec; font-size: 1.22rem; max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-window { justify-self: center; width: min(400px, 100%); position: relative; }
.hero-window .arch-frame { box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 120px rgba(255,220,140,.18); }
.hero-window .arch { aspect-ratio: 3 / 4.1; }
.hero-window figcaption { position: absolute; left: -36px; bottom: 34px; background: var(--white); color: var(--ink); padding: 14px 18px; border-radius: 10px; max-width: 250px; font-size: .95rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.hero-window figcaption cite { display: block; font-style: normal; color: var(--gilt-deep); font-size: .82rem; margin-top: 4px; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero-window { width: min(300px, 80%); }
  .hero-window figcaption { left: auto; right: -10px; bottom: -14px; }
}

/* Verse band */
.verse-band { background: var(--white); border-bottom: 1px solid var(--stone); }
.verse-band .wrap { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; flex-wrap: wrap; }
.verse-band q { font: 400 1.25rem/1.45 var(--display); color: var(--nave); quotes: '\201C' '\201D'; flex: 1 1 520px; }
.verse-band span { color: var(--gilt-deep); font-weight: 600; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 58ch; color: var(--muted); }
.on-blue { background: var(--nave); color: #dfe5f2; }
.on-blue h2, .on-blue h3 { color: var(--white); }
.on-white { background: var(--white); }

/* Church work: four pillars as tall windows */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pillar { text-decoration: none; color: inherit; display: block; }
.pillar .arch { margin-bottom: 16px; transition: transform .25s; }
.pillar:hover .arch { transform: translateY(-4px); }
.pillar h3 { margin-bottom: .3em; }
.pillar p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr 1fr; gap: 16px; } .pillar p { display: none; } }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project { background: var(--white); border-radius: 18px 18px 10px 10px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--stone); }
.project .arch { border-radius: 0; aspect-ratio: 16/10; clip-path: ellipse(75% 100% at 50% 100%); }
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 a { color: inherit; text-decoration: none; }
.project-body h3 a:hover { color: var(--lapis); }
.place { color: var(--gilt-deep); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.progress { height: 10px; background: var(--stone); border-radius: 99px; overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gilt-deep), var(--gilt)); border-radius: 99px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.progress-meta b { color: var(--ink); }
.project .btn { margin-top: auto; align-self: flex-start; }
.project-body > p { flex: 1; }
@media (max-width: 960px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* Ministries list */
.ministries { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; }
.ministry { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; color: inherit; align-items: center; }
.ministry .arch { aspect-ratio: 3/4; width: 64px; }
.ministry h3 { font-size: 1.18rem; margin: 0 0 2px; }
.ministry p { margin: 0; font-size: .95rem; color: #b9c3da; }
.ministry:hover h3 { color: var(--gilt); }
.on-white .ministry, .plain .ministry { border-bottom-color: var(--stone); }
.on-white .ministry p, .plain .ministry p { color: var(--muted); }
.on-white .ministry:hover h3, .plain .ministry:hover h3 { color: var(--lapis); }
@media (max-width: 760px) { .ministries { grid-template-columns: 1fr; } }

/* Give block */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.give-ladder { list-style: none; padding: 0; margin: 24px 0 0; }
.give-ladder li { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--stone); align-items: baseline; }
.give-ladder b { font: 400 1.5rem/1 var(--display); color: var(--gilt-deep); }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; gap: 32px; } }

/* Donation form */
.donate-card { background: var(--white); border-radius: 20px; padding: 30px; border: 1px solid var(--stone); box-shadow: 0 24px 60px rgba(19,37,74,.12); }
.freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--plaster); border-radius: 999px; padding: 5px; margin-bottom: 20px; }
.freq input { position: absolute; opacity: 0; }
.freq label { text-align: center; padding: 11px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.freq input:checked + label { background: var(--nave); color: var(--white); }
.freq input:focus-visible + label { outline: 3px solid var(--gilt); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts input { position: absolute; opacity: 0; }
.amounts label { border: 2px solid var(--stone); border-radius: 12px; padding: 14px 6px; text-align: center; font: 400 1.4rem/1 var(--display); color: var(--nave); cursor: pointer; }
.amounts input:checked + label { border-color: var(--gilt); background: #fbf5e8; }
.amounts input:focus-visible + label { outline: 3px solid var(--gilt); }
.amounts label small { display: block; font: 500 .72rem/1 var(--body); color: var(--muted); margin-top: 4px; }
.impact-line { min-height: 1.6em; color: var(--gilt-deep); font-weight: 600; margin: 0 0 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #cfd3dc; border-radius: 10px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(44,85,163,.18); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 14px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--nave); }
.secure { display: flex; gap: 8px; justify-content: center; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }
.hp { position: absolute; left: -5000px; }
.other-amount { display: none; }
.other-amount.show { display: block; }

/* Story cards */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.story-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.story-card .arch { aspect-ratio: 16 / 10; border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px; margin-bottom: 14px; }
.story-card .cat { color: var(--gilt-deep); font-weight: 600; font-size: .88rem; }
.story-card h3 { font-size: 1.28rem; margin: 4px 0 6px; }
.story-card p { color: var(--muted); font-size: .97rem; margin: 0 0 8px; }
.story-card .meta { font-size: .85rem; color: var(--muted); margin-top: auto; display: flex; gap: 14px; }
.story-card:hover h3 { color: var(--lapis); }
@media (max-width: 960px) { .stories-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stories-grid { grid-template-columns: 1fr; } }

/* Feature story (latest) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; text-decoration: none; color: inherit; }
.feature .arch { aspect-ratio: 16/11; border-radius: 50% 50% 8px 8px / 32% 32% 8px 8px; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.feature:hover h2 { color: var(--lapis); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 20px; } }

/* Tabs & filters */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; border: 1px solid var(--stone); background: var(--white); }
.tabs a[aria-current="true"] { background: var(--nave); color: var(--white); border-color: var(--nave); }
.searchbar { display: flex; gap: 8px; max-width: 420px; }
.layout-side { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.side-box { background: var(--white); border: 1px solid var(--stone); border-radius: 16px; padding: 22px; margin-bottom: 22px; }
.side-box h3 { font-size: 1.15rem; }
.side-box ol { margin: 0; padding-left: 1.2em; }
.side-box li { margin-bottom: 8px; }
@media (max-width: 960px) { .layout-side { grid-template-columns: 1fr; } }
.pager { display: flex; gap: 8px; margin-top: 40px; justify-content: center; }
.pager a, .pager span { padding: 8px 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--stone); text-decoration: none; }
.pager span { background: var(--nave); color: var(--white); border-color: var(--nave); }

/* Article */
.article-head { background: var(--nave); color: #dfe5f2; padding: 56px 0 0; }
.article-head h1 { color: var(--white); max-width: 22ch; }
.article-head .cat { color: var(--gilt); font-weight: 600; }
.article-head .byline { color: #b9c3da; font-size: .95rem; margin-bottom: 30px; }
.article-hero { max-width: 900px; margin: 0 auto -120px; position: relative; }
.article-hero .arch { aspect-ratio: 16/9; border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px; }
.article-body { padding-top: 160px; }
.prose { font-size: 1.15rem; line-height: 1.78; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gilt); font: 400 1.3rem/1.5 var(--display); color: var(--nave); }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.scripture { margin: 2em 0; padding: 26px 28px; background: var(--white); border-radius: 14px; border: 1px solid var(--stone); position: relative; }
.scripture::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; background: var(--gilt); border-radius: 0 4px 4px 0; }
.scripture p { font: 400 1.35rem/1.5 var(--display); color: var(--nave); margin: 0 0 6px; }
.scripture cite { font-style: normal; color: var(--gilt-deep); font-weight: 600; }
.reactions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 36px 0; padding: 22px 0; border-block: 1px solid var(--stone); }
.amen { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--gilt); background: var(--white); color: var(--nave); padding: .7em 1.3em; border-radius: 999px; font: 600 1rem var(--body); cursor: pointer; }
.amen[aria-pressed="true"] { background: var(--gilt); color: #1d1405; }
.amen svg { width: 20px; height: 20px; }
.share { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { font: 600 .9rem var(--body); padding: .6em 1em; border-radius: 999px; border: 1px solid var(--stone); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--lapis); color: var(--lapis); }
.give-inline { background: var(--nave); color: #dfe5f2; border-radius: 20px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 40px 0; }
.give-inline h3 { color: var(--white); margin-bottom: .25em; }
.give-inline p { margin: 0; }
@media (max-width: 640px) { .give-inline { grid-template-columns: 1fr; } }

/* Page header (non-hero pages) */
.page-head { background: var(--nave); color: #d3dbec; padding: 64px 0 56px; }
.page-head h1 { color: var(--white); }
.page-head p { color: #c3cde3; font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* Program page */
.program-layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.program-layout .sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .program-layout { grid-template-columns: 1fr; } .program-layout .sticky { position: static; max-width: 320px; } }

/* Prayer wall */
.prayers { columns: 3 280px; column-gap: 22px; }
.prayer { break-inside: avoid; background: var(--white); border: 1px solid var(--stone); border-radius: 14px; padding: 20px 22px; margin-bottom: 22px; }
.prayer p { margin: 0 0 12px; }
.prayer footer { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); gap: 10px; }
.prayed { border: 1px solid var(--gilt); background: transparent; color: var(--gilt-deep); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--body); cursor: pointer; }
.prayed[disabled] { background: #fbf5e8; cursor: default; }

/* Doorkeepers band */
.doorkeepers { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.doorkeepers .door { width: 220px; }
@media (max-width: 760px) { .doorkeepers { grid-template-columns: 1fr; } .doorkeepers .door { width: 160px; } }

/* Impact numbers */
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.impact div b { display: block; font: 400 2.6rem/1 var(--display); color: var(--gilt); margin-bottom: 6px; }
.impact div span { color: #c3cde3; }

/* Auth & forms */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: min(460px, 100%); background: var(--white); border-radius: 20px; padding: 36px; border: 1px solid var(--stone); box-shadow: 0 24px 60px rgba(19,37,74,.1); }
.auth-card h1 { font-size: 2rem; }
.auth-card .alt { text-align: center; margin-top: 18px; color: var(--muted); }
.error { background: #f7e3e7; color: var(--ruby); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }

/* Account */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--stone); font-size: .97rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stone); vertical-align: top; }
.table th { background: #f6f7fa; font-weight: 600; color: var(--muted); font-size: .88rem; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat { background: var(--white); border: 1px solid var(--stone); border-radius: 14px; padding: 20px 22px; }
.stat b { display: block; font: 400 2rem/1.1 var(--display); color: var(--nave); }
.stat span { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--stone); color: var(--ink); }
.badge.gold { background: #f5e8c8; color: var(--gilt-deep); }
.badge.green { background: #e4f1ea; color: var(--ok); }
.badge.red { background: #f7e3e7; color: var(--ruby); }
.notice { background: #fbf5e8; border: 1px solid #ecd9ae; color: #6b5220; padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } .newsletter form { flex-direction: column; } }

/* Footer */
.site-footer { background: #0d1a36; color: #aab4cc; padding: 64px 0 30px; font-size: .95rem; }
.site-footer a { color: #dfe5f2; text-decoration: none; }
.site-footer a:hover { color: var(--gilt); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: var(--white); font-size: 1.05rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .87rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Admin */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.admin-nav { background: #0d1a36; padding: 24px 14px; }
.admin-nav a { display: block; color: #c3cde3; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--white); }
.admin-main { padding: 34px 40px 80px; max-width: 1200px; }
.admin-main h1 { font-size: 2rem; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--stone); border-radius: 14px; padding: 22px; margin-bottom: 24px; }
.inline-form { display: inline; }
textarea.tall { min-height: 380px; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } .admin-nav { display: flex; flex-wrap: wrap; } .admin-main { padding: 24px 18px; } .grid2, .grid3 { grid-template-columns: 1fr; } }

/* Receipt print */
.receipt-page { max-width: 640px; margin: 40px auto; background: var(--white); padding: 40px; border-radius: 14px; }
@media print { .noprint { display: none !important; } body { background: #fff; } .receipt-page { margin: 0; } }
@media (max-width: 520px) { .site-header .brand small { display: none; } .brand b { font-size: 1.2rem; } }
.freq3 { grid-template-columns: repeat(3, 1fr); }
.pay-tabs { display: flex; gap: 8px; margin: 22px 0 14px; border-bottom: 1px solid var(--stone); }
.pay-tabs[hidden] { display: none; }
.pay-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 600 1rem var(--body); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.pay-tabs button[aria-selected="true"] { color: var(--nave); border-bottom-color: var(--gilt); }
.pay-panel { margin-top: 14px; }
.payment-element { min-height: 120px; }
.pay-error { background: #f7e3e7; color: var(--ruby); padding: 12px 14px; border-radius: 10px; margin: 14px 0 0; font-weight: 500; }
/* Thank-you blessing */
.blessing { background: radial-gradient(900px 600px at 30% 40%, #24407a 0%, var(--nave) 65%); color: #dfe5f2; padding: 64px 0 80px; overflow: hidden; }
.blessing-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 56px; align-items: center; }
.blessing-figure { margin: 0; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)) drop-shadow(0 0 80px rgba(255,220,140,.25)); }
.jesus { width: 100%; height: auto; display: block; }
.blessing-hello { font: 400 clamp(2rem, 4vw, 3rem)/1.1 var(--display); color: #fff; margin-bottom: 18px; }
.blessing-quote { margin: 0 0 18px; padding: 0 0 0 22px; border-left: 3px solid var(--gilt); }
.blessing-quote p { font: 400 clamp(1.5rem, 3vw, 2.15rem)/1.35 var(--display); color: #fff6dc; margin: 0 0 10px; }
.blessing-quote cite { font-style: normal; color: var(--gilt); font-weight: 600; }
.blessing-note { font-size: 1.2rem; color: #d3dbec; max-width: 46ch; }
.blessing-detail { color: #b9c3da; max-width: 56ch; }
.blessing-detail b { color: #fff; }
.blessing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 820px) { .blessing-grid { grid-template-columns: 1fr; gap: 28px; } .blessing-figure { width: min(300px, 80%); margin: 0 auto; } }
@media (prefers-reduced-motion: no-preference) {
  .blessing-figure { animation: appear 1.8s cubic-bezier(.2,.7,.2,1) both; }
  .jesus-rays { transform-origin: 200px 150px; animation: rays 2.6s ease-out .4s both; }
  .jesus-light { animation: glow 3s ease-in-out 1.6s infinite alternate; }
  .blessing-hello { animation: rise .9s ease-out 1.2s both; }
  .blessing-quote { animation: rise 1s ease-out 1.7s both; }
  .blessing-note, .blessing-detail, .blessing-actions { animation: rise 1s ease-out 2.3s both; }
}
@keyframes appear { from { opacity: 0; transform: translateY(40px) scale(.96); filter: brightness(1.8) blur(6px); } to { opacity: 1; transform: none; } }
@keyframes rays { from { opacity: 0; transform: scale(.6); } to { opacity: .55; transform: scale(1); } }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Admin analytics */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpis-in { margin: 6px 0 18px; }
.kpis .stat > span:first-child { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.kpis .stat b small { font-size: 1rem; color: var(--muted); }
.d { font-size: .82rem; font-weight: 700; margin-right: 4px; }
.d.up { color: var(--ok); } .d.down { color: var(--ruby); } .d.new { color: var(--ok); }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2fb36b; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 4px rgba(47,179,107,.18); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel h2 { font-size: 1.35rem; } .panel h3 { font-size: 1.05rem; margin-top: 4px; }
.chart, .map { width: 100%; height: auto; display: block; }
.chart rect:hover, .map path:hover { opacity: .75; }
.legend { display: flex; gap: 4px; align-items: center; margin-top: 8px; }
.legend i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.toplist { list-style: none; padding: 0; margin: 0; }
.toplist li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: .93rem; overflow: hidden; }
.toplist li .bar { position: absolute; left: 0; top: 0; bottom: 0; background: #e8edf8; border-radius: 6px; z-index: 0; }
.toplist li .k, .toplist li b { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist.plain li { border-bottom: 1px solid var(--stone); border-radius: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; background: #eef0f4; padding: 1px 5px; border-radius: 4px; }
.stat b span { font-size: inherit; color: inherit; }
