/* Layout: a warm Caribbean-evening palette (deep wine, sunlit gold, warm sand); Caslon headings over a clean sans body; a public site of eight views plus Members and Pastoral portals in one shell. */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --sand: #f3eadf;
  --ink: #2b1f19;
  --muted: #6b5a4e;
  --line: #e7dacb;
  --wine: #6e1f2b;
  --wine-deep: #4a141d;
  --gold: #a87422;
  --gold-bright: #d9a441;
  --gold-soft: #f3e2bf;
  --on-wine: #fbf3ea;
  --on-wine-muted: #e5cdbf;
  --btn-bg: #6e1f2b;
  --btn-fg: #ffffff;
  --ok: #2f7a4f;
  --ok-bg: #e5f2ea;
  --warn: #9a5d0c;
  --warn-bg: #fbeed6;
  --info: #3d5a8a;
  --info-bg: #e7edf7;
  --shadow: 0 1px 2px rgba(74, 20, 29, 0.06), 0 8px 24px rgba(74, 20, 29, 0.06);
  --font-display: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1412; --surface: #251b18; --sand: #2d211c; --ink: #f3e9df; --muted: #c4af9e; --line: #3e2f28;
    --wine: #e08b95; --wine-deep: #3a1118; --gold: #e2b365; --gold-bright: #e9bd6c; --gold-soft: #4a391c;
    --on-wine: #fbf3ea; --on-wine-muted: #dcc1b2; --btn-bg: #e08b95; --btn-fg: #2a0d12;
    --ok: #79c99a; --ok-bg: #1d3327; --warn: #eab160; --warn-bg: #3b2a12; --info: #9db7e6; --info-bg: #1f2a3d;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1412; --surface: #251b18; --sand: #2d211c; --ink: #f3e9df; --muted: #c4af9e; --line: #3e2f28;
  --wine: #e08b95; --wine-deep: #3a1118; --gold: #e2b365; --gold-bright: #e9bd6c; --gold-soft: #4a391c;
  --on-wine: #fbf3ea; --on-wine-muted: #dcc1b2; --btn-bg: #e08b95; --btn-fg: #2a0d12;
  --ok: #79c99a; --ok-bg: #1d3327; --warn: #eab160; --warn-bg: #3b2a12; --info: #9db7e6; --info-bg: #1f2a3d;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--wine); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-bright); color: #2b1a0c; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-quiet { background: var(--sand); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Utility bar + header */
.utility { background: var(--wine-deep); color: var(--on-wine-muted); font-size: 0.8rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding-block: 0.45rem; }
.utility a { color: var(--on-wine); text-decoration: none; font-weight: 600; }
.utility nav { display: flex; gap: 1.25rem; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--wine-deep); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 1.2rem; height: 1.2rem; }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; }
.brand-text span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 0.5rem 0.75rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.main-nav a:hover { background: var(--sand); }
.main-nav a[aria-current="page"] { color: var(--wine); background: var(--sand); }
.main-nav .nav-portal { margin-left: 0.5rem; }
.main-nav .nav-portal a { background: var(--btn-bg); color: var(--btn-fg); padding-inline: 1rem; }
.main-nav .nav-portal a:hover, .main-nav .nav-portal a[aria-current="page"] { background: var(--btn-bg); color: var(--btn-fg); opacity: 0.9; }
.menu-btn { display: none; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700; cursor: pointer; }
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav[data-open="false"] { display: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); gap: 0.15rem; }
  .main-nav .nav-portal { margin-left: 0; margin-top: 0.4rem; }
  .brand-text span { display: none; }
}

/* Views */
[data-view] { animation: rise .35s ease both; }
@keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-view] { animation: none; } }

.page-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 3.25rem 2.75rem; display: grid; gap: 0.75rem; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--wine); }
.page-head p.lead { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }

section.band { padding-block: 4.5rem; }
section.band.alt { background: var(--sand); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.25rem; max-width: 44rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.row-head .section-head { margin-bottom: 0; }

/* Hero */
.hero { background: var(--wine-deep); color: var(--on-wine); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48rem 26rem at 92% 110%, rgba(217, 164, 65, 0.38), transparent 62%),
    radial-gradient(30rem 20rem at 0% 0%, rgba(160, 50, 60, 0.35), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 4.75rem 4.25rem; }
.hero-copy { display: grid; gap: 1.3rem; min-width: 0; }
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.05; }
.hero h1 small { display: block; font-size: 0.36em; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; color: var(--on-wine-muted); margin-bottom: 0.9rem; }
.hero h1 .jp { font-size: 0.42em; color: var(--gold-bright); vertical-align: 0.4em; white-space: nowrap; }
.hero .lead { font-size: 1.15rem; color: var(--on-wine-muted); max-width: 36rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero-card { background: rgba(255, 248, 238, 0.07); border: 1px solid rgba(243, 226, 191, 0.25); border-radius: 18px; padding: 1.75rem; display: grid; gap: 1.25rem; backdrop-filter: blur(2px); }
.hero-card h2 { font-size: 1.25rem; color: var(--on-wine); }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.65rem; border-top: 1px solid rgba(243, 226, 191, 0.18); }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); padding-top: 0.2rem; }
.facts dd { margin: 0; color: var(--on-wine); font-size: 0.95rem; }
.tally { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; padding-top: 1.4rem; margin-top: 0.4rem; border-top: 1px solid rgba(243, 226, 191, 0.2); }
.tally div { display: grid; }
.tally b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.tally span { font-size: 0.82rem; color: var(--on-wine-muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 3.25rem; } .facts div { grid-template-columns: 6.5rem minmax(0,1fr); } }

/* Welcome */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; align-items: center; }
.welcome blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 1.95rem); line-height: 1.4; color: var(--wine); padding-left: 1.4rem; border-left: 3px solid var(--gold-bright); }
.prose { display: grid; gap: 1.1rem; max-width: 40rem; font-size: 1.05rem; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; gap: 2rem; } }

/* Portrait */
.portrait { margin: 0; display: grid; gap: 0.75rem; }
.portrait .frame { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.portrait .frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); pointer-events: none; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1117; object-fit: cover; }
.portrait figcaption { font-size: 0.85rem; color: var(--muted); }
.portrait figcaption b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--ink); }
.about-side { display: grid; gap: 1.5rem; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
@media (max-width: 900px) { .about-side { position: static; } }
.prose.bio h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--wine); margin-top: 1.4rem; }
.prose.bio h2:first-child { margin-top: 0; }
.welcome-photo { display: grid; gap: 1.75rem; min-width: 0; }
.welcome-photo .frame { max-width: 26rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; display: grid; gap: 0.7rem; align-content: start; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 1.35rem; }
.card .where { font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; }
.card p { color: var(--muted); }
.icon-circle { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--wine); }
.icon-circle svg { width: 1.3rem; height: 1.3rem; }

.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .focus-grid { grid-template-columns: 1fr; } }
.focus-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; display: grid; gap: 0.35rem; align-content: start; }
.focus-grid h3 { font-size: 1.12rem; color: var(--wine); }
.focus-grid p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* Convictions */
.convictions { background: var(--wine-deep); color: var(--on-wine); }
.convictions .eyebrow { color: var(--gold-bright); }
.convictions .section-head p { color: var(--on-wine-muted); }
.creed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .creed { grid-template-columns: 1fr; } }
.creed li { border-top: 2px solid var(--gold-bright); padding-top: 1.25rem; display: grid; gap: 0.3rem; }
.creed .a { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.creed .rel { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-wine-muted); }
.creed .b { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--gold-bright); }

/* Journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.journey li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.6rem; position: relative; }
.journey li::before { content: ""; position: absolute; left: 0.69rem; top: 1.35rem; bottom: 0; width: 2px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey .dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold-bright); margin-top: 0.15rem; }
.journey h3 { font-size: 1.2rem; }
.journey p { color: var(--muted); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); display: grid; gap: 0.9rem; }
.panel h3 { font-size: 1.2rem; color: var(--wine); }
.panel dl { margin: 0; display: grid; }
.panel dl div { display: grid; gap: 0.1rem; padding-block: 0.7rem; border-top: 1px solid var(--line); }
.panel dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel dd { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: 0.86rem; font-weight: 600; }

/* Events list */
.event-list { display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; display: grid; }
.event .date b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--wine); font-variant-numeric: tabular-nums; }
.event .date span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.event h3 { font-size: 1.15rem; }
.event .meta { font-size: 0.86rem; color: var(--muted); }
.event .desc { font-size: 0.93rem; color: var(--muted); margin-top: 0.25rem; overflow-wrap: anywhere; }
.event .side { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 620px) { .event { grid-template-columns: 4rem minmax(0, 1fr); } .event .side { grid-column: 1 / -1; justify-content: flex-start; } }

.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; color: var(--muted); display: grid; gap: 0.4rem; justify-items: center; background: var(--surface); }
.empty b { color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }

/* Portal promo */
.portal-card { border-radius: 18px; padding: 2rem; display: grid; gap: 0.9rem; align-content: start; }
.portal-card.members { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.portal-card.pastoral { background: var(--wine-deep); color: var(--on-wine); }
.portal-card.pastoral p { color: var(--on-wine-muted); }
.portal-card.pastoral .eyebrow { color: var(--gold-bright); }
.portal-card h3 { font-size: 1.6rem; }
.portal-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.portal-card .btn { justify-self: start; margin-top: 0.4rem; }

/* Portal shell */
.portal-top { background: var(--wine-deep); color: var(--on-wine); }
.portal-top .wrap { padding-block: 2.5rem 2.25rem; display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.portal-top .eyebrow { color: var(--gold-bright); }
.portal-top h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.portal-top p { color: var(--on-wine-muted); }
.who { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 248, 238, 0.08); border: 1px solid rgba(243, 226, 191, 0.25); border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.35rem; }
.who img { width: 2.2rem; height: 2.2rem; border-radius: 50%; }
.who span { font-weight: 600; font-size: 0.9rem; }
.who small { display: block; color: var(--on-wine-muted); font-size: 0.74rem; font-weight: 500; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 0.85rem 1rem; font-weight: 700; font-size: 0.92rem; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--gold-bright); }
.tabs .count { display: inline-block; min-width: 1.4rem; padding: 0 0.4rem; margin-left: 0.35rem; border-radius: 999px; background: var(--sand); font-size: 0.74rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2.5rem 2rem; display: grid; gap: 0.75rem; justify-items: start; max-width: 40rem; box-shadow: var(--shadow); }
.notice h2 { font-size: 1.6rem; color: var(--wine); }
.notice p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; display: grid; gap: 0.2rem; }
.stat span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat.attn b { color: var(--wine); }

.two-pane { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .two-pane { grid-template-columns: 1fr; } }

form.stack { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.86rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem 0.8rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-bright); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; font-weight: 600; }

.list { display: grid; gap: 0.85rem; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.25rem; display: grid; gap: 0.5rem; min-width: 0; }
.item.pinned { border-color: var(--gold-bright); box-shadow: inset 4px 0 0 var(--gold-bright); }
.item-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: start; flex-wrap: wrap; }
.item h3 { font-size: 1.15rem; }
.item .body { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.item .meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.4rem 0.9rem; flex-wrap: wrap; align-items: center; }
.item .actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--ink); }
.person img { width: 1.4rem; height: 1.4rem; border-radius: 50%; }

.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.pill.new { background: var(--warn-bg); color: var(--warn); }
.pill.praying { background: var(--info-bg); color: var(--info); }
.pill.contacted { background: var(--gold-soft); color: var(--gold); }
.pill.closed { background: var(--sand); color: var(--muted); }
.pill.kind { background: var(--sand); color: var(--ink); }
.pill.kind::before { display: none; }

.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }

.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px); text-align: center; }

/* Bookings */
.book-types { margin-bottom: 2rem; }
.book-type { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; display: grid; gap: 0.5rem; align-content: start; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.book-type:hover { transform: translateY(-1px); }
.book-type h3 { font-size: 1.25rem; }
.book-type p { color: var(--muted); font-size: 0.93rem; }
.book-type[aria-pressed="true"] { border-color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-bright), var(--shadow); }
.book-type[aria-pressed="true"] .icon-circle { background: var(--btn-bg); color: var(--btn-fg); }
@media (prefers-reduced-motion: reduce) { .book-type { transition: none; } .book-type:hover { transform: none; } }
.info-box { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.pill.b-pending { background: var(--warn-bg); color: var(--warn); }
.pill.b-confirmed { background: var(--ok-bg); color: var(--ok); }
.pill.b-declined { background: var(--sand); color: var(--muted); }
.confirmed-when { font-weight: 700; color: var(--ok); font-size: 0.92rem; }
.actions input.dt { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.82rem; }
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filter-row .filters { margin-bottom: 0; }
.filter-row select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 700; }

/* Footer */
footer.site { background: var(--wine-deep); color: var(--on-wine-muted); margin-top: 0; }
footer.site .wrap { padding-block: 3.5rem 2rem; display: grid; gap: 2.5rem; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
footer.site h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.8rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
footer.site a { color: var(--on-wine); text-decoration: none; font-size: 0.92rem; }
footer.site a:hover { text-decoration: underline; }
footer.site .foot-brand b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--on-wine); margin-bottom: 0.6rem; }
footer.site .legal { border-top: 1px solid rgba(243, 226, 191, 0.18); padding-top: 1.5rem; font-size: 0.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Base reset for standalone hosting ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.main-nav a { white-space: nowrap; }

/* ---------- Site additions ---------- */
.skip { position: absolute; left: 16px; top: -100px; background: var(--btn-bg); color: var(--btn-fg); padding: 0.6rem 1rem; border-radius: 999px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.92rem; font-weight: 600; }
.form-msg.error { background: var(--warn-bg); color: var(--warn); }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.confirm-box { background: var(--ok-bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: grid; gap: 0.6rem; }
.confirm-box h3 { color: var(--ok); font-size: 1.3rem; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.role-select { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 700; }
.note-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.note-row input { flex: 1 1 14rem; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.loading { color: var(--muted); padding: 1rem 0; }
.auth-card { max-width: 30rem; }
.who a { color: var(--on-wine); font-size: 0.8rem; }
.portal-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.setup-banner { background: var(--warn-bg); color: var(--warn); font-size: 0.85rem; font-weight: 600; text-align: center; padding-block: 0.5rem; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Staff (pastoral) area ---------- */
body.staff { background: var(--bg); }
.staff-header { background: var(--wine-deep); color: var(--on-wine); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body.staff::before { background: var(--wine-deep); }
.staff-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.staff-header .brand { color: var(--on-wine); }
.staff-header .brand-text span { color: var(--on-wine-muted); display: block; }
.lock-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-bright); border: 1px solid rgba(233, 189, 108, 0.45); border-radius: 999px; padding: 0.3rem 0.8rem; white-space: nowrap; }
.lock-pill svg { width: 0.95rem; height: 0.95rem; }
.staff-footer { border-top: 1px solid var(--line); }
.staff-footer .wrap { display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.staff-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .staff-auth { grid-template-columns: 1fr; gap: 2rem; } }
.staff-intro { display: grid; gap: 1rem; }
.staff-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--wine); }
.staff-intro .lead { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.sec-list { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.9rem; }
.sec-list li { display: grid; gap: 0.1rem; padding-left: 1.6rem; position: relative; }
.sec-list li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold-bright); }
.sec-list b { font-weight: 700; }
.sec-list span { color: var(--muted); font-size: 0.93rem; }
.auth-card .tabs { margin-bottom: 0.5rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--wine); font-weight: 600; font-size: 0.88rem; cursor: pointer; justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.code-input { font-size: 1.5rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.qr-wrap { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; justify-self: start; }
.qr-wrap img { display: block; width: 180px; height: 180px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--sand); padding: 0.1rem 0.4rem; border-radius: 6px; overflow-wrap: anywhere; color: var(--ink); }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: 0.93rem; }
.idle-warn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); background: var(--warn-bg); color: var(--warn); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; display: flex; gap: 0.75rem; align-items: center; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-weight: 600; font-size: 0.9rem; flex-wrap: wrap; }
.staff-header .brand-mark { border: 1px solid rgba(233, 189, 108, 0.5); }
