/* Essentials of Christ Mission: design system.
   Brand colours (--brand, --accent) can be overridden from the environment through /theme.css. */
:root {
  --brand: #15193a;
  --brand-ink: #ffffff;
  --accent: #f4a640;
  --accent-ink: #1a1233;      /* text on top of the accent colour */
  --accent-text: #a8500f;     /* accent used as text on light backgrounds (passes contrast) */
  --night: #0c0f24;
  --night-2: #080a1c;
  --bg: #f7f2e8;
  --bg-app: #f4f3f0;
  --card: #ffffff;
  --ink: #2a2438;
  --muted: #655f78;
  --line: #e6dcc8;
  --line-app: #e4e2dc;
  --ok: #1a7f4b;
  --err: #b42318;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(30, 20, 10, .05), 0 8px 24px rgba(30, 20, 10, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(244, 166, 64, .55);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.area-portal, body.area-admin { background: var(--bg-app); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; color: var(--brand); line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 .75rem; }
h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p { margin: 0 0 .85rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.sr-only, .area-public:not(.is-home) .page h1 { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Top bar (public site and member portal) ---------- */
.topbar { background: var(--night); color: #d9d6e8; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1rem 2rem; }
.topbar a { color: #d9d6e8; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 600; letter-spacing: .16em; font-size: .72rem; text-transform: uppercase; line-height: 1.35; color: #fff !important; }
.brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 1.1rem; height: 1.1rem; stroke: var(--accent); }
.brand-logo { height: 2.5rem; width: auto; border-radius: 4px; }
.topnav { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; flex: 1; justify-content: flex-end; align-items: center; }
.topnav a { font-size: .9rem; font-weight: 500; padding: .45rem 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; border-color: var(--accent); }
.topbar .actions { display: flex; align-items: center; gap: .6rem; }
.topbar .btn { min-height: 2.5rem; }
.topbar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; }
.who { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.who select { max-width: 14rem; }
.userchip { display: inline-flex; align-items: center; gap: .5rem; color: #fff !important; font-size: .9rem; }
.userchip i { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; }

/* ---------- Page banner (inner public pages) ---------- */
.banner { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--night), #2a1c4d 72%, #9a4e2c); color: #fff; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.banner::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 160deg at 50% -20%, transparent 0 6%, rgba(255, 226, 170, .2) 8% 10%, transparent 12% 18%, rgba(255, 226, 170, .14) 20% 21%, transparent 23% 30%, rgba(255, 226, 170, .18) 32% 34%, transparent 36%); }
.banner-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--accent-text); }
.banner .eyebrow { color: #ffd58a; }
.banner-title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin: .4rem 0 0; color: #fff; font-weight: 500; }

/* ---------- Page container ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.area-public .page { padding-top: 2.5rem; }
.area-public .page.public-home { max-width: none; padding: 0; }
.footer { margin-top: 3rem; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.1rem; box-shadow: var(--shadow); }
.area-portal .card, .area-admin .card { border-color: var(--line-app); box-shadow: 0 1px 2px rgba(30, 20, 10, .04); }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card.narrow { max-width: 540px; margin-left: auto; margin-right: auto; padding: 2rem; border-radius: var(--radius-lg); }
.card.danger { border-color: #f4c7c3; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); }
.right { text-align: right; }
.lead { max-width: 46rem; margin: 0 auto 1rem; font-size: 1.15rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 .75rem; }
.tagline-dark { color: var(--accent-text); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; min-height: 2.75rem; padding: .55rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: color-mix(in srgb, var(--brand) 82%, #fff); border-color: color-mix(in srgb, var(--brand) 82%, #fff); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger:hover { background: #8f1c12; border-color: #8f1c12; color: #fff; }
.btn.small { min-height: 2.1rem; padding: .25rem .85rem; font-size: .85rem; }
.btn.accent, .topnav .give-link { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover, .topnav .give-link:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); border-color: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--accent-ink); }
.topnav .give-link { padding: .5rem 1.3rem; border-radius: 999px; font-weight: 700; border-width: 1.5px; border-style: solid; }
.btn.ghost.light { color: #fff; border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .08); }
.btn.ghost.light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn.big { min-height: 3.25rem; padding: .7rem 2rem; font-size: 1.02rem; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; pointer-events: none; }
.btn.is-busy::after { content: ""; width: .9em; height: .9em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
form.inline, form.inline-form { display: inline; }

/* ---------- Forms ---------- */
label { display: block; margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
label input, label select, label textarea { display: block; width: 100%; margin-top: .35rem; }
input, select, textarea { font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; min-height: 2.9rem; padding: .6rem .85rem; border: 1.5px solid #d9ccb2; border-radius: 12px; background: #fcfefd; color: var(--ink); transition: border-color .15s, box-shadow .15s; max-width: 100%; }
textarea { min-height: 6rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #bfae8c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: #f0ece2; color: var(--muted); cursor: not-allowed; }
input[aria-invalid="true"], input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--err); }
input[type=checkbox], input[type=radio] { width: 1.15rem; min-height: 0; height: 1.15rem; display: inline-block; margin: 0 .5rem 0 0; vertical-align: -3px; accent-color: var(--brand); }
label.check { color: var(--ink); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1rem; padding: .75rem 1rem; }
legend { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 .4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.1rem; }
.grid .full { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.25rem; align-items: center; }
.filters input { flex: 1; min-width: 200px; }
.filters select, .filters input { margin: 0; width: auto; }
.filters input { width: auto; }
.area-admin input, .area-admin select, .area-admin textarea, .area-portal input, .area-portal select, .area-portal textarea { background: #fff; border-color: #d4d1c8; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line-app); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line-app); vertical-align: top; font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
th { background: #f1efe9; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:hover td { background: #faf8f3; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.scroll > table { min-width: 560px; }
.report-table td.num, .report-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Tags, flashes, key-values, stats ---------- */
.tag { display: inline-block; padding: .1rem .65rem; border-radius: 99px; background: #ece9e1; font-size: .78rem; font-weight: 600; color: #4a4558; }
.tag.paid, .tag.approved, .tag.confirmed, .tag.done, .tag.sent, .tag.handled { background: #e3f2e8; color: #0f5a33; }
.tag.review, .tag.pending, .tag.draft, .tag.new { background: #fff1cf; color: #7a4b00; }
.tag.failed, .tag.voided, .tag.refunded, .tag.abandoned, .tag.declined, .tag.cancelled { background: #fde4e1; color: #8f1c12; }
.flash { padding: .8rem 1rem; border-radius: 12px; margin: 0 0 1.1rem; background: #eef2ff; border: 1px solid #c9d4fb; color: #22305f; word-break: break-word; }
.flash.ok { background: #e6f5ec; border-color: #b8e2c9; color: #0f5a33; }
.flash.error { background: #fdecea; border-color: #f4c7c3; color: #8f1c12; }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.stat { background: var(--card); border: 1px solid var(--line-app); border-radius: var(--radius); padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.stat strong { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; color: var(--brand); }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Public sections (home, tiles) ---------- */
.band { padding: 3.5rem 1.25rem; text-align: center; }
.band > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.band > .lead { max-width: 46rem; }
.band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--brand); }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.night { background: var(--night); color: #d9d6e8; }
.band.night h2, .band.night h3 { color: #fff; }
.band .row { text-align: left; margin-bottom: 1.25rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.25rem auto; text-align: left; }
.tile { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.tile strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--brand); }
.band.alt .tile { background: var(--bg); box-shadow: none; }
.tile.link { transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile.link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 20, 10, .14); border-color: var(--accent); color: var(--ink); }
.tile .thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Home hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; text-align: center; padding: 0; min-height: min(86vh, 780px); display: grid; place-items: center; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 15, 36, .55), rgba(12, 15, 36, .25) 40%, rgba(12, 15, 36, .85)); }
.hero-body { position: relative; max-width: 860px; padding: 4rem 1.25rem 7rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; margin: .6rem 0 1rem; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero h1 em { color: #ffc46b; font-style: italic; }
.hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #eee8f7; max-width: 38rem; margin: 0 auto 1.75rem; }
.hero .eyebrow { color: #ffd58a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-logo { max-height: 5rem; margin-bottom: 1rem; }
.service-strip { position: relative; z-index: 2; max-width: 1100px; margin: -4.5rem auto 0; padding: 0 1.25rem; }
.service-strip .tiles { margin: 0; gap: 0; background: rgba(12, 15, 36, .92); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(12, 15, 36, .35); }
.service-strip .tile { background: transparent; border: 0; border-right: 1px solid rgba(255, 255, 255, .12); border-radius: 0; box-shadow: none; padding: 1.4rem 1.5rem; color: #cfcbe3; }
.service-strip .tile:last-child { border-right: 0; }
.service-strip .tile strong { color: #fff; font-size: 1.15rem; }
.service-strip .tile span { color: #ffd58a; font-size: .9rem; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1240px; margin: 0 auto; text-align: left; }
.story h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.story .art { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #f7c27a 0%, #c4733a 35%, #3b2347 75%, #14122b 100%); }
.story .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.events-list { max-width: 900px; margin: 0 auto; text-align: left; }
.ev { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ev:hover { color: var(--ink); }
.ev:hover .ev-title { color: var(--accent-text); }
.ev-date { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--brand); min-width: 5.5rem; }
.ev-date small { display: block; font: 600 .72rem var(--sans); letter-spacing: .2em; color: var(--accent-text); text-transform: uppercase; }
.ev-title { font-family: var(--serif); font-size: 1.4rem; color: var(--brand); }
.give-band { background: linear-gradient(180deg, var(--night), #2a1c4d 80%, #9a4e2c); color: #fff; }
.give-band h2 { color: #fff; }
.give-band .lead { color: #e6dff2; }
.public-home .row { text-align: left; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: 1rem 0; }
.photo-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.photo-grid figure:hover img { transform: scale(1.03); }
.photo-grid figcaption { padding: .55rem .8rem; font-size: .85rem; color: var(--muted); text-align: left; }
.photo-grid figure { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--night-2); color: #b9b6cf; padding: 3.5rem 1.25rem 1.5rem; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer h3 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; max-width: 1240px; margin: 0 auto; text-align: left; }
.footer-name { font-family: var(--serif); font-size: 1.8rem; color: #fff; line-height: 1.15; }
.footer-name em { color: var(--accent); font-style: italic; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 .4rem; }
.footer-bottom { max-width: 1240px; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* ---------- Portal tab bar ---------- */
.tabbar { background: #fff; border-bottom: 1px solid var(--line-app); }
.tabbar-in { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; display: flex; gap: .25rem 1.5rem; overflow-x: auto; }
.tabbar a { padding: .9rem 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabbar a:hover { color: var(--brand); }
.tabbar a[aria-current="page"] { color: var(--brand); border-color: var(--accent); }

/* ---------- Admin console shell ---------- */
.shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--night); color: #cfcbe3; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
.side .brand { padding: 0 .4rem; font-size: .66rem; }
.side nav { display: flex; flex-direction: column; gap: 1.1rem; }
.side-group h3 { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #8e8aa8; margin: 0 0 .35rem; padding: 0 .75rem; font-weight: 600; }
.side a.nav-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-radius: 10px; color: #cfcbe3; text-decoration: none; font-size: .92rem; font-weight: 500; border-left: 3px solid transparent; }
.side a.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side a.nav-link[aria-current="page"] { background: rgba(244, 166, 64, .14); color: #fff; border-left-color: var(--accent); }
.side .count { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 .5rem; min-width: 1.4rem; text-align: center; }
.content { min-width: 0; }
.adminbar { background: #fff; border-bottom: 1px solid var(--line-app); position: sticky; top: 0; z-index: 30; }
.adminbar-in { display: flex; align-items: center; gap: .75rem 1rem; padding: .65rem 1.5rem; flex-wrap: wrap; }
.adminbar .who { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.adminbar .userchip { color: var(--brand) !important; }
.adminbar .menu-btn { display: none; margin: 0; border-color: var(--line-app); color: var(--brand); }
.adminbar .who select { min-height: 2.25rem; padding: .25rem .6rem; margin: 0; border-radius: 99px; font-size: .9rem; }
.area-admin .page { max-width: 1280px; padding: 1.75rem 1.5rem 4rem; }
.scrim { display: none; }

/* ---------- Charts ---------- */
.bar { display: inline-block; height: .6rem; background: var(--accent); border-radius: 3px; vertical-align: middle; }
.chart { width: 100%; height: auto; max-width: 720px; display: block; margin: .5rem 0 1rem; }
.chart .c0 { fill: var(--brand); } .chart .c1 { fill: var(--accent); }
.chart text { font: 11px var(--sans); fill: var(--muted); }
.chart .grid-line { stroke: var(--line-app); stroke-width: 1; }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); margin: 0 0 .25rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.legend i.c0 { background: var(--brand); } .legend i.c1 { background: var(--accent); }
.receipt { max-width: 560px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 1.75rem; }
  .service-strip .tile { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .service-strip .tile:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .topbar-in { flex-wrap: wrap; }
  .topbar .topnav, .topbar .actions { display: none; width: 100%; }
  .topnav { flex-wrap: wrap; white-space: normal; }
  .topnav a { font-size: 1rem; }
  .topbar.open .topnav { display: flex; flex-direction: column; align-items: stretch; gap: 0; order: 3; }
  .topbar.open .topnav a { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
  .topbar.open .topnav .give-link { text-align: center; margin: .75rem 0 0; border-bottom: 1.5px solid var(--accent); }
  .topbar.open .actions { display: flex; order: 4; padding-bottom: .5rem; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(18rem, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .35); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(8, 10, 28, .55); z-index: 50; }
  .adminbar .menu-btn { display: inline-flex; }
  .adminbar-in { padding: .6rem 1rem; }
  .area-admin .page { padding: 1.25rem 1rem 3rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: .6rem; }
  .card { padding: 1rem 1.1rem; }
  .card.narrow { padding: 1.4rem 1.2rem; }
  .band { padding: 2.5rem 1rem; }
  .hero-body { padding: 3rem 1rem 6rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .ev-date { font-size: 2.6rem; min-width: 4.5rem; }
  .filters > * { flex: 1 1 100%; width: 100% !important; }
  .page { padding: 1.25rem 1rem 3rem; }
  .brand { letter-spacing: .1em; }
  .adminbar .who .userchip span { display: none; }
  th, td { padding: .6rem .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Print ---------- */
@media print {
  .topbar, .side, .adminbar, .tabbar, .banner, .footer, .noprint, .no-print, .filters, .scrim, .skip { display: none !important; }
  .shell { display: block; }
  body { background: #fff !important; }
  .card, .stat, table { box-shadow: none !important; border-color: #ccc; }
  .card { border: 0; }
  .page { padding: 0; max-width: none; }
  .area-public:not(.is-home) .page h1 { position: static !important; width: auto; height: auto; clip: auto; margin: 0 0 .75rem; overflow: visible; }
}

/* Refinements */
.side a, .userchip, .adminbar a.userchip, .brand { text-decoration: none; }
.topbar-in { gap: 1rem 1.5rem; }
.topnav { flex-wrap: nowrap; gap: .1rem 1.15rem; white-space: nowrap; }
.topnav a { font-size: .86rem; }
.topnav .give-link { padding: .4rem 1.1rem; }
.brand { white-space: normal; max-width: 12rem; }
@media (max-width: 1100px) { .topnav a { font-size: .8rem; } .topnav { gap: .1rem .8rem; } }
.area-admin .page > .scroll, .area-admin .page > form, .area-admin .page > .card { max-width: 100%; }
.content { overflow-x: clip; }
@media (max-width: 900px) {
  .side { box-shadow: none; }
  body.nav-open .side { box-shadow: 10px 0 40px rgba(0, 0, 0, .35); }
  .adminbar-in { flex-wrap: nowrap; gap: .5rem; }
  .adminbar .who { flex-wrap: nowrap; gap: .4rem; min-width: 0; }
  .adminbar .who select { max-width: 7.5rem; }
  .adminbar .who .btn.small { padding: .2rem .6rem; }
}
.btn { white-space: nowrap; }

/* ===== Action Chapel style: navy utility bar, white header, blue headings, photo tiles ===== */
:root {
  --brand: #173f7a; --accent: #e5534b; --accent-ink: #fff; --accent-text: #1f5ea8;
  --cta: #1457d9; --blue: #1f5ea8;
  --night: #0f2d57; --night-2: #14181f;
  --bg: #fff; --bg-app: #f1f4f8; --ink: #3a4250; --muted: #66707f; --line: #e2e6ec; --line-app: #dfe4ea;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px; --radius-lg: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 80, .12);
  --focus: 0 0 0 3px rgba(31, 94, 168, .35);
}
body { font-size: 15px; background: #fff; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
:focus-visible { outline-color: var(--blue); }
.btn { border-radius: 6px; font-weight: 600; min-height: 2.5rem; }
.btn.accent, .btn.cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.accent:hover, .btn.cta:hover { background: #0f45ad; border-color: #0f45ad; color: #fff; }
.btn.ghost.light { border-radius: 999px; }
input, select, textarea { border-color: #cfd6e0; background: #fff; border-radius: 8px; }
input:hover, select:hover, textarea:hover { border-color: #aab5c5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
label { font-size: .72rem; }
.tag.new, .tag.pending, .tag.review, .tag.draft { background: #fff1cf; }

/* Top: utility bar + white header */
.topbar { background: #fff; border-bottom: 0; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 6px rgba(20, 40, 80, .12); color: var(--ink); }
.utility { background: #1a4a85; }
.utility-in { max-width: 1100px; margin: 0 auto; padding: .35rem 1.25rem; display: flex; align-items: center; gap: .3rem 1.1rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .02em; }
.utility a, .utility .linkbtn { color: #fff; text-decoration: none; font-weight: 500; opacity: .95; }
.utility a:hover, .utility .linkbtn:hover { color: #fff; text-decoration: underline; }
.util-spacer { flex: 1; }
.member-btn { background: #e8554e; padding: .3rem .75rem; border-radius: 4px; font-weight: 600 !important; }
.linkbtn { background: none; border: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.mainbar { background: #fff; }
.topbar .topbar-in { max-width: 1100px; padding: .55rem 1.25rem; gap: 1rem 2rem; }
.topbar .brand { color: var(--brand) !important; letter-spacing: .06em; font-size: .72rem; max-width: 14rem; }
.brand-mark { border-color: var(--brand); } .brand-mark svg { stroke: var(--brand); }
.topbar .topnav { justify-content: flex-start; gap: .1rem 1.4rem; }
.topbar .topnav a { color: #1a2433; font-weight: 700; font-size: .72rem; padding: .5rem 0; border-bottom: 2px solid transparent; }
.topbar .topnav a:hover, .topbar .topnav a[aria-current="page"] { color: var(--blue); border-color: var(--blue); }
.topbar .topnav .give-link { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .5rem 0; color: #1a2433; }
.topbar .menu-btn { color: var(--brand); border-color: #cfd6e0; }

/* Inner-page title: plain, centred, blue */
.banner { background: #fff; color: var(--blue); padding: 2.2rem 0 .2rem; text-align: center; }
.banner::before { display: none; }
.banner-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--blue); text-transform: uppercase; font-weight: 400; letter-spacing: .02em; margin: 0; }
.area-public .page { max-width: 1000px; padding-top: 1.5rem; }
.area-public .page.public-home { max-width: none; padding: 0; }
.area-public .card { box-shadow: var(--shadow); border-color: var(--line); }

/* Home */
.banner-hero { max-width: 1100px; margin: 1.25rem auto 0; padding: 0 1.25rem; }
.banner-img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.banner-img.fallback { min-height: 340px; background: linear-gradient(120deg, #1a4a85, #3f86d6 60%, #8cc2ff); color: #fff; text-align: center; padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.banner-img.fallback h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; margin: 0; }
.banner-img.fallback p { font-size: 1.15rem; margin: 0 0 .8rem; color: #eef5ff; }
.intro { padding: 4.5rem 1.25rem; }
.intro-in { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.intro-photo img, .intro-photo .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.ph { background: linear-gradient(135deg, #2b64b0, #7db4ec); }
.ph0 { background: linear-gradient(160deg, #2a5fa8, #5aa0ea); } .ph1 { background: linear-gradient(160deg, #6b4ea0, #b78bd6); }
.ph2 { background: linear-gradient(160deg, #c4733a, #f0b36e); } .ph3 { background: linear-gradient(160deg, #1d6f6b, #67c4b8); }
.intro-text { font-size: .8rem; color: #666; line-height: 1.8; }
.intro-text strong { color: #333; }
.blue-title { text-align: center; color: var(--blue); text-transform: uppercase; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 1rem; }
.services { padding: 1.5rem 0 1rem; }
.svc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.svc { flex: 1 1 180px; min-width: 0; text-align: center; }
.svc img, .svc .ph { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.svc p { font-size: .78rem; text-transform: uppercase; color: #111; margin: .8rem .4rem 1.2rem; line-height: 1.3; }
.cta-band { background: linear-gradient(90deg, #0f5a3a, #3d4a5e 55%, #0f5a3a); color: #fff; padding: 1.3rem 1rem; text-align: center; }
.cta-in h2 { color: #fff; text-transform: uppercase; font-weight: 400; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: 0 0 .7rem; }
.word { padding: 1.5rem 1.25rem 1.5rem; }
.word.alt { background: #f5f7fa; }
.word-row { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.word-card { text-decoration: none; color: #111; text-align: center; }
.word-card:hover { color: var(--blue); }
.word-card .cover { aspect-ratio: 1 / 1; background: linear-gradient(145deg, #e9edf2, #c9d2de); display: grid; place-items: center; padding: 1rem; }
.word-card .cover span { background: #173f7a; color: #fff; padding: 1.4rem 1rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; width: 62%; box-shadow: 6px 8px 14px rgba(0, 0, 0, .3); }
.word-card p { font-weight: 700; text-transform: uppercase; font-size: .85rem; margin: .8rem 0 .1rem; }
.word-card small { color: var(--muted); }
.more { text-align: center; margin: 1rem 0 0; }
.word .tiles { max-width: 900px; }
.word .tile { border-top: 3px solid var(--blue); }
.events-list { max-width: 760px; }
.ev-date { color: var(--blue); } .ev-date small { color: #e5534b; } .ev-title { color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.ev:hover .ev-title { color: var(--blue); }
.tile strong { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1rem; }
.hero-logo { max-height: 5rem; }

/* Locations band and footer */
.loc-band { background: #173f7a; color: #fff; margin-top: 1.5rem; }
.loc-in { max-width: 820px; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.loc-in h2 { color: #fff; text-transform: uppercase; font-weight: 400; font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0; }
.footer { margin-top: 0; background: linear-gradient(180deg, rgba(10, 14, 22, .93), rgba(10, 14, 22, .96)), #1b2230; color: #e8ecf2; padding: 2.5rem 1.25rem; }
.footer-cols { max-width: 820px; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.footer h3 { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; align-items: baseline; margin: 0 0 .7rem; font-size: .8rem; }
.contact-list i { color: #8ea0b8; font-style: normal; width: 1rem; text-align: center; }
.contact-list a { color: #fff; }
.social { display: flex; gap: .7rem; flex-wrap: wrap; }
.social a { width: 2.6rem; height: 2.6rem; border: 1.5px solid #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; text-decoration: none; color: #fff; }
.social a:hover { background: #fff; color: #14181f; text-decoration: none; }
.muted-light { color: #9aa7ba; font-size: .85rem; }
.copyright { background: #0a0c10; color: #cfd6e0; text-align: center; padding: 1rem; font-size: .75rem; }

/* Portal and admin pick up the same blue */
.tabbar a[aria-current="page"] { border-color: var(--blue); color: var(--blue); }
.side a.nav-link[aria-current="page"] { background: rgba(94, 160, 235, .18); border-left-color: #5ea0eb; }
.side .count { background: #e5534b; color: #fff; }
.userchip i { background: var(--blue); color: #fff; }
.stat strong { font-family: var(--sans); font-weight: 700; }
a.stat:hover { border-color: var(--blue); }
.bar { background: var(--accent); }

@media (max-width: 900px) {
  .utility-in { gap: .2rem .9rem; } .utility-in a:nth-of-type(n+4) { display: none; }
  .topbar .topbar-in { flex-wrap: wrap; }
  .topbar .topnav { display: none; width: 100%; }
  .topbar.open .topnav { display: flex; flex-direction: column; align-items: stretch; }
  .topbar.open .topnav a { padding: .8rem 0; font-size: .85rem; border-bottom: 1px solid #e8ecf2; }
  .intro-in { grid-template-columns: 1fr; }
  .intro { padding: 2.5rem 1.25rem; }
  .svc { flex-basis: 45%; }
  .footer-cols { grid-template-columns: 1fr; }
}
.side .brand { color: #fff !important; }
.side .brand-mark { border-color: #fff; } .side .brand-mark svg { stroke: #fff; }

/* ===== Design system v3: deep navy, warm gold, soft cream, slate (from the supplied mockup PDF) ===== */
:root {
  --brand: #0f5a3a; --accent: #e2b33a; --accent-ink: #083826; --accent-text: #8a6a12;
  --cta: #0f5a3a; --blue: #0f5a3a; --slate: #263445;
  --night: #0f5a3a; --night-2: #08301f;
  --bg: #f4f8f5; --bg-app: #f1f6f2; --ink: #263445; --muted: #667282; --line: #dbe7df; --line-app: #d6e3da;
  --shadow: 0 2px 4px rgba(10, 63, 42, .05), 0 10px 26px rgba(10, 63, 42, .08);
  --focus: 0 0 0 3px rgba(226, 179, 58, .5);
  --radius: 14px; --radius-lg: 20px;
}
body, body.area-public { background: var(--bg); }
body.area-portal, body.area-admin { background: var(--bg-app); }
h1, h2, h3 { color: var(--brand); font-weight: 700; }
a:hover { color: var(--accent-text); }
:focus-visible { outline-color: var(--accent); }
.btn { border-radius: 999px; }
.btn.gold, .btn.accent, .btn.cta { background: var(--accent); border-color: var(--accent); color: #083826; }
.btn.gold:hover, .btn.accent:hover, .btn.cta:hover { background: #edc65a; border-color: #edc65a; color: #083826; }
.btn.navy { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.navy:hover { background: #0b4a30; border-color: #0b4a30; color: #fff; }
.btn.white { background: #fff; border-color: #fff; color: var(--brand); }
.btn.white:hover { background: #eef5f0; color: var(--brand); }
.btn.ghost { color: var(--brand); }
input, select, textarea { border-color: #c9dbd0; background: #fcfefd; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.area-portal input, .area-portal select, .area-portal textarea, .area-admin input, .area-admin select, .area-admin textarea { background: #fff; border-color: #c9dbd0; }

/* Header */
.utility { background: var(--brand); }
.member-btn { background: var(--accent); color: #083826 !important; }
.topbar .brand { color: var(--brand) !important; }
.topbar .topnav a { color: var(--slate); }
.topbar .topnav a:hover, .topbar .topnav a[aria-current="page"] { color: var(--brand); border-color: var(--accent); }
.topbar .topnav .give-link { background: var(--accent); color: #083826; border-radius: 999px; padding: .45rem 1.2rem; margin-left: .4rem; border-bottom: 0; }
.topbar .topnav .give-link:hover { background: #edc65a; color: #083826; }
.topbar .topbar-in { max-width: 1180px; } .utility-in { max-width: 1180px; }
.topbar .topnav { justify-content: flex-end; flex: 1; }
.topbar .topnav a { font-size: .8rem; }

/* Inner page title */
.banner { background: var(--bg); padding: 2.4rem 0 .4rem; text-align: left; }
.banner-in { max-width: 1000px; }
.banner-title { color: var(--brand); text-transform: none; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.banner-title::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--accent); margin-bottom: .7rem; }
.eyebrow { color: var(--accent-text); font-size: .7rem; letter-spacing: .16em; font-weight: 700; }
.area-public .card { background: #fff; border-color: var(--line); }

/* Home */
.hero2 { padding: 1.5rem 1.25rem 0; }
.hero2-card { max-width: 1180px; margin: 0 auto; background: var(--brand); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; }
.hero2-text { padding: clamp(1.75rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: .6rem; color: #d6dde6; }
.hero2-text .eyebrow { color: var(--accent); }
.hero2-text h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: .2rem 0; }
.hero2-text p { max-width: 30rem; margin: 0 0 .8rem; }
.hero2-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero2-art { position: relative; background: #7f948f; min-height: 240px; }
.hero2-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-scene { position: absolute; inset: 0; background: radial-gradient(circle at 74% 28%, #f1dcae 0 9%, transparent 9.5%), linear-gradient(160deg, #a9bbb7, #6f8883); }
.ph-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(135deg, transparent 49%, #567068 50%) 0 0 / 60% 100% no-repeat, linear-gradient(225deg, transparent 49%, #44605a 50%) 100% 0 / 70% 100% no-repeat; opacity: .9; }
.steps { padding: 3rem 1.25rem 1rem; }
.steps-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.steps h2, .block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .2rem 0 1.2rem; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; }
.icard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 1.1rem; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
a.icard:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 14px 34px rgba(10, 63, 42, .16); }
.icard h3 { font-size: 1.02rem; margin: .9rem 1.1rem .2rem; }
.icard p { margin: 0 1.1rem .8rem; color: var(--muted); font-size: .88rem; flex: 1; }
.icard .more-link { margin: 0 1.1rem; }
.icard:not(:has(.thumb)) { padding-top: 1.1rem; }
.thumb { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #cfdbd8, #a5b9b4); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(135deg, transparent 49%, #9fb3ae 50%) 0 0 / 55% 100% no-repeat, linear-gradient(225deg, transparent 49%, #b5c6c2 50%) 100% 0 / 70% 100% no-repeat; }
.thumb:has(img)::after { display: none; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.datebadge { position: absolute; z-index: 2; left: .9rem; top: .9rem; z-index: 1; background: #fff; color: var(--brand); border-radius: 10px; padding: .35rem .7rem; font-weight: 700; font-size: 1.4rem; line-height: 1; text-align: center; box-shadow: var(--shadow); }
.datebadge small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--accent-text); text-transform: uppercase; }
.more-link { color: var(--accent-text); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
a:hover > .more-link, .more-link:hover { color: var(--brand); text-decoration: underline; }
.sunday { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.sunday h3 { font-size: 1.15rem; margin: .3rem 0 .8rem; }
.sunday .plain li { margin-bottom: .6rem; font-size: .9rem; }
.block { padding: 2.5rem 1.25rem; }
.block.alt { background: #e6efe9; }
.block-in { max-width: 1180px; margin: 0 auto; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.give2 { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--brand); border-radius: var(--radius-lg); padding: 2rem clamp(1.25rem, 4vw, 3rem); }
.give2 h2 { color: #fff; margin: .2rem 0 .3rem; } .give2 .eyebrow { color: var(--accent); } .give2 .muted { color: #c1ccd8; margin: 0; }
.events-list { max-width: 760px; }
.ev-date { color: var(--brand); } .ev-date small { color: var(--accent-text); } .ev-title { color: var(--brand); }

/* Footer */
.footer { background: var(--brand); margin-top: 3rem; }
.footer h3 { color: var(--accent); }
.social a { border-color: var(--accent); color: var(--accent); }
.social a:hover { background: var(--accent); color: #083826; }
.contact-list i { color: var(--accent); }
.copyright { background: #0e1d2e; }
.footer-cols { max-width: 1180px; }

/* Portal / admin */
.tabbar a[aria-current="page"] { border-color: var(--accent); color: var(--brand); }
.side { background: var(--brand); }
.side a.nav-link[aria-current="page"] { background: rgba(226, 179, 58, .16); border-left-color: var(--accent); }
.side .count { background: var(--accent); color: #083826; }
.userchip i { background: var(--accent); color: #083826; }
a.stat:hover { border-color: var(--accent); }
.stat strong { color: var(--brand); }
.th, th { background: #f1ede2; }
.side .brand-mark { border-color: var(--accent); } .side .brand-mark svg { stroke: var(--accent); }
.brand-mark { border-color: var(--accent); } .brand-mark svg { stroke: var(--brand); }

@media (max-width: 900px) {
  .hero2-card { grid-template-columns: 1fr; }
  .hero2-art { min-height: 220px; order: -1; }
  .steps-in { grid-template-columns: 1fr; }
  .topbar .topnav a { color: var(--slate); }
  .topbar.open .topnav .give-link { text-align: center; margin: .6rem 0 0; }
}

/* ===== Polish pass: app feel ===== */
.ico { display: block; flex: none; }
.page { animation: pagein .35s ease both; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: .1rem 0 .15rem; font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.page-head p { margin: 0; }
.page-head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.page-head-actions .btn { gap: .4rem; }
.section-title { font-size: 1.05rem; margin: 1.6rem 0 .8rem; color: var(--brand); }
h1 { letter-spacing: -.01em; }
.tag.light { background: rgba(255, 255, 255, .16); color: #fff; text-transform: capitalize; }

/* Welcome card (member portal) */
.welcome { background: var(--brand); color: #d6dde6; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(10, 63, 42, .22); }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(226, 179, 58, .16); }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { color: var(--accent); }
.welcome-name { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: #fff; margin: .2rem 0 .1rem; line-height: 1.15; }
.welcome-sub { margin: 0 0 .4rem; color: #c1ccd8; font-size: .92rem; }
.welcome-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.welcome-side { text-align: right; align-self: flex-start; }
.welcome-side .welcome-sub { max-width: 16rem; margin-left: auto; }

/* Action tiles */
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.action { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem .6rem; background: #fff; border: 1px solid var(--line-app); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.action i { width: 3.2rem; height: 3.2rem; border-radius: 16px; background: #eaf3ed; color: var(--brand); display: grid; place-items: center; transition: background .15s, color .15s; }
.action:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--ink); }
.action:hover i { background: var(--brand); color: var(--accent); }
.stat { position: relative; padding-top: 1.2rem; }
.stat-ico { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: #eaf3ed; color: var(--brand); display: grid; place-items: center; margin-bottom: .7rem; font-style: normal; }
.stat strong { font-size: 2rem; }
.details h2 { margin-bottom: .8rem; }

/* Flash messages as toasts-in-flow */
.flash { display: flex; align-items: center; gap: .6rem; border-radius: 14px; font-weight: 500; animation: pagein .3s ease both; }
.flash::before { content: "i"; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: currentColor; color: #fff; display: grid; place-items: center; font: 700 .8rem var(--sans); -webkit-text-fill-color: #fff; }
.flash.ok::before { content: "\2713"; } .flash.error::before { content: "!"; }

/* Empty tables and notes */
td.empty, .empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
table { box-shadow: 0 1px 2px rgba(10, 63, 42, .04); }
tbody tr { transition: background .12s; }
th { position: sticky; top: 0; }

/* Bottom bar for phones */
.bottombar { display: none; }
@media (max-width: 900px) {
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line-app); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -6px 20px rgba(10, 63, 42, .08); }
  .bottombar a, .bottombar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 3.2rem; border: 0; background: none; font: 600 .68rem var(--sans); color: var(--muted); text-decoration: none; cursor: pointer; position: relative; }
  .bottombar a.on { color: var(--brand); }
  .bottombar a.on::before { content: ""; position: absolute; top: -.35rem; width: 2rem; height: 3px; border-radius: 3px; background: var(--accent); }
  body.area-portal, body.area-admin { padding-bottom: 4.6rem; }
  .welcome-side { text-align: left; }
  .welcome-side .welcome-sub { margin-left: 0; }
  .actions-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .action { padding: .9rem .3rem; font-size: .78rem; }
  .action i { width: 2.8rem; height: 2.8rem; }
  .page-head-actions .btn { width: 100%; }
  .topbar .topbar-in { padding: .5rem 1rem; }

  /* Tables become cards */
  table.stackable { background: transparent; border: 0; box-shadow: none; }
  table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { background: #fff; border: 1px solid var(--line-app); border-radius: var(--radius); padding: .5rem .9rem; margin-bottom: .7rem; box-shadow: 0 1px 2px rgba(10, 63, 42, .04); }
  table.stackable td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .4rem 0; text-align: right; border-bottom: 1px dashed #ece7da; }
  table.stackable td:last-child { border-bottom: 0; }
  table.stackable td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; flex: none; padding-top: .15rem; }
  table.stackable td[data-label=""]::before { display: none; }
  table.stackable tbody tr:hover td { background: transparent; }
  .scroll > table { min-width: 0; }
}
@media print { .bottombar { display: none !important; } body { padding-bottom: 0 !important; } }
@media (max-width: 900px) {
  .tabbar { display: none; }
  .adminbar .who form.inline .btn { display: none; }
  .adminbar .who select { max-width: 9rem; }
  .adminbar .who .btn.small.ghost { padding: .2rem .7rem; }
}

/* ===== Chat and live sermon ===== */
.live-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #e5342b; box-shadow: 0 0 0 0 rgba(229, 52, 43, .6); animation: livepulse 1.6s infinite; vertical-align: middle; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 .5rem rgba(229, 52, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 52, 43, 0); } }
.util-live { color: #fff !important; font-weight: 700; }
.badge-count, .bb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .35rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 .7rem/1 var(--sans); font-style: normal; }
.bb-badge { position: absolute; top: .1rem; left: 50%; margin-left: .55rem; }
.live-banner { max-width: 1180px; width: calc(100% - 2.5rem); margin: 1rem auto 0 !important; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: #0f5a3a; color: #fff; padding: .7rem 1rem; border-radius: 14px; margin-bottom: 1rem; text-decoration: none; }
.live-banner span { opacity: .9; }
.live-banner-go { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; background: var(--accent); color: var(--accent-ink) !important; padding: .35rem .8rem; border-radius: 99px; font-weight: 700; opacity: 1 !important; }
.live-btn { display: inline-flex; align-items: center; gap: .5rem; background: #0f5a3a; color: #fff; }

.avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #d7ecdf; color: #0f5a3a; display: inline-grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; }
.avatar.kind-branch { background: #0f5a3a; color: var(--accent); }
.avatar.kind-group { background: #cfe6d9; }
.avatar.big { width: 5rem; height: 5rem; margin-bottom: .6rem; background: #0f5a3a; color: var(--accent); }
.icon-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; flex: none; }
.icon-btn.back { background: transparent; color: var(--brand); transform: scaleX(-1); display: none; }

.page-chat { max-width: 1240px; padding-top: 1rem; padding-bottom: 1rem; }
.chat-wrap { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 14rem); height: calc(100dvh - 14rem); min-height: 28rem; background: #fff; border: 1px solid var(--line-app); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 14px rgba(10, 63, 42, .07); }
.chat-list { border-right: 1px solid var(--line-app); overflow-y: auto; background: #fff; }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; position: sticky; top: 0; background: #fff; z-index: 2; border-bottom: 1px solid var(--line-app); }
.chat-list-head h2 { margin: 0; font-size: 1.2rem; }
.chat-item { display: flex; gap: .75rem; padding: .8rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid #e6efe9; align-items: center; }
.chat-item:hover { background: #f3f9f5; }
.chat-item.on { background: #e3f2e8; }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.chat-item-top, .chat-item-bottom { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.chat-item-top b { color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-top time { font-size: .72rem; white-space: nowrap; }
.chat-preview { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 1rem; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #e4efe8; }
.chat-pane > .chat-head, .live-chat > .chat-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: #fff; border-bottom: 1px solid var(--line-app); }
.chat-head h2 { margin: 0; font-size: 1.05rem; }
.chat-empty { align-items: center; justify-content: center; text-align: center; padding: 2rem; background: var(--bg-app); }
.chat-empty h2 { margin: .2rem 0; }
.chat-new { background: #fff; }
.chat-search { display: flex; gap: .5rem; padding: .8rem 1rem; }
.chat-search input { flex: 1; }
.people { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.person { display: flex; gap: .75rem; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid #e6efe9; padding: .7rem 1rem; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.person:hover { background: #f3f9f5; }
.person small { display: block; }

.chat-box { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.chat-msgs { flex: 1; overflow-y: auto; padding: .8rem .8rem .4rem; display: flex; flex-direction: column; gap: .2rem; overscroll-behavior: contain; }
.chat-msgs .more { align-self: center; border: 0; background: #fff; border-radius: 99px; padding: .35rem .9rem; font: 600 .8rem var(--sans); color: var(--brand); cursor: pointer; margin-bottom: .5rem; }
.daysep { text-align: center; margin: .7rem 0 .4rem; }
.daysep span { background: #fff; border-radius: 8px; padding: .2rem .7rem; font-size: .75rem; color: var(--muted); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.msg { display: flex; margin-top: .45rem; }
.msg.cont { margin-top: .1rem; }
.msg.mine { justify-content: flex-end; }
.bubble { max-width: min(78%, 34rem); padding: .4rem .65rem .3rem; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); overflow-wrap: anywhere; }
.msg.mine .bubble { background: #0f5a3a; color: #fff; border-top-right-radius: 3px; }
.msg.theirs .bubble { border-top-left-radius: 3px; }
.msg.mine .bubble a { color: #f1d9a4; }
.bubble .who { display: block; font-size: .78rem; margin-bottom: .1rem; }
.bubble .txt { white-space: pre-wrap; line-height: 1.4; }
.bubble .time { display: block; text-align: right; font-size: .66rem; opacity: .65; margin-top: .1rem; }
.bubble .del { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; padding: 0 0 0 .4rem; cursor: pointer; opacity: .7; }
.msg.gone .txt { font-style: italic; opacity: .65; }
.jump { position: absolute; right: 1rem; bottom: 4.6rem; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 .8rem var(--sans); padding: .4rem .9rem; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); cursor: pointer; }
.chat-status { background: #fff3cd; color: #6b4e00; font-size: .85rem; padding: .35rem 1rem; text-align: center; }
.composer { display: flex; gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom)); background: #f4f8f5; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 0; height: 2.9rem; margin: 0; resize: none; border-radius: 22px; padding: .6rem 1rem; max-height: 120px; line-height: 1.35; border: 1px solid #c9dbd0; background: #fff; font: inherit; }
.composer .send { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.composer-off { text-align: center; padding: .8rem; margin: 0; background: #f4f8f5; }

/* Live page */
.page-live { max-width: 1240px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.25rem; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0b1624; border-radius: 16px; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; gap: .3rem; justify-items: center; }
.live-info h1 { margin: .3rem 0 .1rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.live-badge { display: inline-flex; align-items: center; gap: .45rem; background: #e5342b; color: #fff; font-weight: 800; font-size: .78rem; padding: .25rem .7rem; border-radius: 99px; letter-spacing: .04em; }
.live-badge .live-dot { background: #fff; }
.live-badge.soon { background: #0f5a3a; }
.live-state { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; }
.live-past { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.live-none { text-align: center; padding: 3rem 1.25rem; }
.live-none .avatar { margin-inline: auto; }
.live-chat { display: flex; flex-direction: column; background: #e4efe8; border: 1px solid var(--line-app); border-radius: 16px; overflow: hidden; height: clamp(26rem, calc(100vh - 17rem), 40rem); position: sticky; top: 1rem; }
.live-chat .chat-box { min-height: 0; }
.chat-signin { padding: 1.5rem 1rem; text-align: center; background: #fff; flex: 1; }

@media (max-width: 900px) {
  .page-chat { padding: 0; }
  .chat-wrap { grid-template-columns: 1fr; border-radius: 0; border-left: 0; border-right: 0; height: calc(100dvh - 9.5rem); }
  .chat-wrap.list-only .chat-pane, .chat-wrap.in-room .chat-list { display: none; }
  .chat-wrap.in-room { height: calc(100dvh - 6.5rem); }
  .icon-btn.back { display: inline-grid; }
  body:has(.chat-wrap.in-room) .bottombar { display: none; }
  .live-grid { grid-template-columns: 1fr; }
  .live-chat { position: static; height: 32rem; }
  .player { border-radius: 0; margin-inline: -1.25rem; }
  .bubble { max-width: 86%; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
