/* ==========================================================================
   FBWWM — site styles
   Palette drawn from the 40th-anniversary brochure: deep mission blue,
   bronze-olive, warm gold, royal-blue headings on warm white.
   ========================================================================== */

:root {
  --navy: #0c4a67;
  --navy-900: #072f43;
  --navy-700: #0a3d56;
  --olive: #6b5a23;
  --olive-700: #52451a;
  --gold: #c9a449;
  --gold-600: #b08a2e;
  --gold-100: #f4ecd4;
  --royal: #2a4f9c;
  --ink: #1c2631;
  --muted: #5a6572;
  --cream: #f8f5ee;
  --line: #e6e0d2;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(7, 47, 67, .06), 0 8px 24px rgba(7, 47, 67, .08);
  --shadow-lg: 0 20px 50px rgba(7, 47, 67, .18);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-accent: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--stick, 78px) + 1rem); }
/* In-page links (#staff, #register…) land just below the sticky header + sub-nav, with the
   section's own top padding skipped so the heading sits right under the bar. --stick is
   measured by site.js (header height, plus the sub-nav on pages that have one). */
.section[id] { scroll-margin-top: -5.25rem; }
.section-sm[id] { scroll-margin-top: -3.25rem; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65;
  color: var(--ink); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
/* Anything marked hidden stays hidden, even when a class sets display (cards, grids, flex rows). */
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .9rem;
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 46rem; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  background: var(--navy); color: var(--white);
}
.btn:hover { background: var(--navy-900); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #d8b45a; color: var(--navy-900); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy-900); }
.btn-sm { padding: .7rem 1.15rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.arrow::after { content: "→"; transition: transform .15s; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }
.link-arrow { font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--royal); }
.link-arrow::after { content: " →"; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; color: var(--olive); flex: none; }
.brand-text strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); line-height: 1; }
.brand-text small { display: block; font-family: var(--font-head); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-top: 3px; line-height: 1.25; }
.brand-img { height: 54px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: .55rem .75rem; border-radius: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--navy); background: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border: 0; border-radius: 10px;
    background: var(--cream); cursor: pointer;
  }
  .nav-toggle span:not(.sr) { width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav {
    position: absolute; inset: 78px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 1rem; }
  .nav-give { margin-top: .5rem; }
}

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 0% 0%, #10597b 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.hero::before { /* faint globe meridians */
  content: ""; position: absolute; width: 900px; height: 900px; left: -380px; top: -260px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 58px, rgba(255,255,255,.05) 58px 60px);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5.5rem 0 7rem; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero-art { position: relative; justify-self: end; width: min(470px, 100%); }
.hero-photo {
  aspect-ratio: 1 / 1.08; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; overflow: hidden;
  border: 8px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -26px; bottom: 22px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lg); padding: 6px;
}
.hero-badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--white); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 6rem; gap: 2.5rem; }
  .hero-art { justify-self: center; width: min(300px, 78%); }
  .hero-badge { width: 104px; height: 104px; left: -10px; }
}

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; color: var(--white); padding: 4.5rem 0 5.5rem; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
}
.page-hero.olive { background: linear-gradient(135deg, var(--olive) 0%, var(--olive-700) 100%); }
.page-hero h1 { color: var(--white); margin-bottom: .6rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .hero-curve { height: 60px; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.02);
}
.crumbs { font-size: .9rem; margin-bottom: .8rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-sm { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.9); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-olive { background: var(--olive); color: rgba(255,255,255,.92); }
.section-olive h2, .section-olive h3 { color: var(--white); }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: .5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- service cards (Our job is…) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 2rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--gold); }
.service-card:nth-child(2)::before { background: var(--navy); }
.service-card:nth-child(3)::before { background: var(--olive); }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--gold-100); color: var(--olive);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.4rem; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- biblical pattern ---------- */
.pattern { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: pat; position: relative; }
.pattern::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: rgba(255,255,255,.2); }
.pattern-step { text-align: center; padding: 0 1rem; position: relative; }
.pattern-num {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center;
  background: var(--navy-900); border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; position: relative;
}
.pattern-step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.pattern-step p { font-size: 1rem; margin: 0 0 .4rem; color: rgba(255,255,255,.82); }
.pattern-step cite { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--gold); letter-spacing: .05em; }
@media (max-width: 860px) {
  .pattern { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .pattern::before { display: none; }
}
@media (max-width: 520px) { .pattern { grid-template-columns: 1fr; } }

/* ---------- verse band ---------- */
.verse-band { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 420px; background: var(--olive); color: var(--white); }
.verse-band-img { background-size: cover; background-position: center; min-height: 280px; }
.verse-band-text { padding: 4rem clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.verse {
  font-family: var(--font-accent); font-weight: 500; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; letter-spacing: .02em; margin: 0 0 1rem; color: var(--white);
}
.verse-ref { font-family: var(--font-head); font-weight: 700; color: var(--gold); letter-spacing: .1em; }
@media (max-width: 860px) { .verse-band { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: .5rem; color: var(--muted); font-size: 1rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }

/* ---------- photo frame ---------- */
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.tall { aspect-ratio: 4/4.6; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%236b5a23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ---------- missionaries ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 2rem; }
.chip {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-input {
  flex: 1 1 240px; max-width: 320px; margin-left: auto; padding: .7rem 1rem .7rem 2.6rem; border-radius: 999px; border: 1.5px solid var(--line);
  font: inherit; font-size: 1rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6572' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") .9rem center/18px no-repeat;
}
@media (max-width: 640px) { .search-input { margin-left: 0; max-width: none; } }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.m-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.m-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.m-photo { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); position: relative; overflow: hidden; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-initials {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  font-size: 2.6rem; color: rgba(255,255,255,.9); letter-spacing: .06em;
}
.m-initials::before {
  content: ""; position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; left: -25%; top: 40%;
  border: 2px solid rgba(201,164,73,.35); box-shadow: 0 0 0 30px rgba(255,255,255,.03);
}
.m-surname { font-size: 1.7rem; letter-spacing: .02em; font-weight: 800; }
.m-surname::after { content: ""; position: absolute; width: 38px; height: 3px; background: var(--gold); left: 50%; top: calc(50% + 1.4rem); transform: translateX(-50%); border-radius: 2px; }
.profile-photo .m-surname { font-size: 2.6rem; }
.profile-photo .m-surname::after { top: calc(50% + 2rem); }
.m-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.m-body h3 { font-size: 1.1rem; margin: 0; }
.m-field { display: flex; align-items: center; gap: .4rem; color: var(--olive); font-weight: 700; font-size: .95rem; }
.m-field svg { width: 16px; height: 16px; flex: none; }
.tag {
  align-self: flex-start; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; background: var(--gold-100); color: var(--olive-700);
}
.tag-retired { background: #eceef1; color: var(--muted); }
.tag-home_office { background: #e3eef4; color: var(--navy); }
.m-group-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 3rem 0 1.2rem; font-weight: 700; }
.note-box { background: var(--gold-100); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

.profile { display: grid; grid-template-columns: 380px 1fr; gap: 3.5rem; align-items: start; }
.profile-aside { position: sticky; top: 100px; }
.profile-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; background: var(--navy); position: relative; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .m-initials { font-size: 4rem; }
.info-card { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.info-card dl { margin: 0; display: grid; gap: .9rem; }
.info-card dt { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-card dd { margin: .15rem 0 0; font-weight: 600; word-break: break-word; }
.give-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2.5rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.give-card h3 { color: var(--white); margin-bottom: .3rem; }
.give-card p { margin: 0; color: rgba(255,255,255,.8); }
.prayer-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 2rem; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; gap: 2rem; } .profile-aside { position: static; } }

/* ---------- staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.staff-card { text-align: center; }
.staff-photo {
  width: 170px; height: 170px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-700) 100%); box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--gold-100);
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo .m-initials { font-size: 2.4rem; }
.staff-photo .m-initials::before { display: none; }
.staff-card h3 { margin-bottom: .15rem; }
.staff-title { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .6rem; }
.staff-card p { font-size: 1rem; color: var(--muted); }

/* ---------- beliefs / accordion ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--gold-600); transition: transform .2s;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion .acc-body { padding: 0 0 1.4rem; color: var(--muted); }
.accordion .acc-body p:last-child { margin: 0; }
.ref { font-weight: 700; color: var(--olive); white-space: nowrap; }

.faith-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.faith-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.2rem 3.4rem; position: relative;
}
.faith-list li::before {
  content: ""; position: absolute; left: 1.2rem; top: 1.45rem; width: 1.2rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a449'%3E%3Cpath d='M10.5 2h3v7h7v3h-7v10h-3V12h-7V9h7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.reject-box { background: var(--navy); color: rgba(255,255,255,.9); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 1.5rem; }
.reject-box strong { color: var(--gold); }

.distinct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; counter-reset: dist; }
.distinct-grid.seven { grid-template-columns: repeat(4, 1fr); }
.distinct-grid.seven .distinct:last-child { grid-column: span 2; }
@media (max-width: 1000px) { .distinct-grid.seven { grid-template-columns: 1fr 1fr; } .distinct-grid.seven .distinct:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .distinct-grid.seven { grid-template-columns: 1fr; } }
.distinct { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); counter-increment: dist; }
.distinct::before { content: counter(dist, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.1rem; margin-bottom: .4rem; }
.distinct h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.distinct p { font-size: 1rem; color: var(--muted); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--gold-100); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.timeline strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.timeline p { margin: .2rem 0 0; color: var(--muted); }

.subnav { position: sticky; top: var(--hdr, 78px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 1rem .9rem; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--navy); }

/* ---------- process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start; }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
}
.steps h3 { font-size: 1.1rem; margin: .7rem 0 .25rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.packet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.packet-item { background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); }
.packet-item strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.packet-item span { font-size: .95rem; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
/* Forms in a narrow column (e.g. beside the contact details) stack their fields, so two-part
   inputs like phone (country + number) always have room. */
.form-card form { container-type: inline-size; }
@container (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--navy-900); }
.field .req { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 10px; border: 1.5px solid #d6d0c2; background: #fdfcf9; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12,74,103,.12); background: var(--white); }
.field small { display: block; margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.radio-row label { display: flex; gap: .45rem; align-items: center; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink); margin: 0; }
.radio-row input { width: auto; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cf-turnstile { margin-top: 1.2rem; }
.alert { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 600; }
.alert-success { background: #e6f4ea; color: #1e5b33; border: 1px solid #b9dfc4; }
.alert-error { background: #fdecea; color: #8a1c14; border: 1px solid #f3c2bd; }

/* ---------- AIM ---------- */
.event-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr;
}
.event-date { background: var(--gold); color: var(--navy-900); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.event-date .mon { font-family: var(--font-head); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: 1rem; }
.event-date .days { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1.05; }
.event-date .yr { font-weight: 700; }
.event-body { padding: 1.8rem 2rem; }
.event-body dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0 0 1.4rem; }
.event-body dt { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.event-body dd { margin: 0; font-weight: 600; }
@media (max-width: 640px) { .event-card { grid-template-columns: 1fr; } .event-date { flex-direction: row; gap: .8rem; padding: 1rem; } .event-date .days { font-size: 1.8rem; } }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.topic { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--navy-900); display: flex; gap: .6rem; align-items: center; }
.topic::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- resources ---------- */
.tabs { display: inline-flex; background: var(--cream); padding: .35rem; border-radius: 999px; gap: .25rem; margin-bottom: 2rem; }
.tabs a { padding: .65rem 1.3rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.res {
  display: grid; grid-template-columns: 54px 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; align-items: start; transition: border-color .15s, box-shadow .15s;
}
.res:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.res-icon { width: 54px; height: 66px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; position: relative; font-family: var(--font-head); font-weight: 800; font-size: .7rem; letter-spacing: .06em; }
.res-icon::after { content: ""; position: absolute; top: 0; right: 0; border: 9px solid transparent; border-top-color: var(--white); border-right-color: var(--white); }
.res h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.res .len { font-size: .8rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.res p { font-size: .98rem; color: var(--muted); margin: .4rem 0 .7rem; }
.res .muted { font-size: .9rem; color: var(--muted); }

/* ---------- store strip ---------- */
.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
.product { text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-img { aspect-ratio: 1; background: var(--cream); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.product-body { padding: 1rem 1.1rem 1.2rem; }
.product h3 { font-size: 1rem; margin: 0 0 .3rem; }
.product .price { color: var(--olive); font-weight: 700; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-100); color: var(--olive); display: grid; place-items: center; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--royal); }
.people { display: grid; gap: .8rem; padding: 1.4rem; border-radius: var(--radius); background: var(--cream); }
.people div strong { display: block; font-family: var(--font-head); }
.people div span { color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(201,164,73,.12); }
.cta-band h2 { color: var(--white); margin-bottom: .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 40rem; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: rgba(255,255,255,.78); padding: 4.5rem 0 1.5rem; margin-top: 60px; font-size: 1rem; }
.footer-curve { position: absolute; left: 0; bottom: 100%; width: 100%; height: 60px; color: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--white); line-height: 1.25; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: var(--gold); }
.footer-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.4rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.error-page { text-align: center; padding: 7rem 0; }
.error-page .big { font-family: var(--font-head); font-weight: 800; font-size: 7rem; color: var(--gold-100); line-height: 1; }

/* ==========================================================================
   Bookstore
   ========================================================================== */
.header-inner { justify-content: flex-start; }
.site-nav { margin-left: auto; }
.cart-link {
  order: 2; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  color: var(--navy); background: var(--cream); flex: none;
}
.cart-link svg { width: 22px; height: 22px; }
.cart-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--navy-900); font: 800 .72rem/20px var(--font-head); text-align: center;
}
@media (max-width: 1040px) {
  .cart-link { margin-left: auto; }
  .nav-toggle { order: 3; }
}

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.6rem 1.3rem; }
.p-card { display: flex; flex-direction: column; }
.p-cover {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--cream);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.p-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-badge {
  position: absolute; top: .6rem; left: .6rem; background: var(--white); color: var(--navy); font: 700 .68rem var(--font-head);
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 999px; box-shadow: var(--shadow);
}
.p-body { padding: .9rem .1rem 0; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 .25rem; }
.p-body h3 a { color: var(--navy-900); text-decoration: none; }
.p-body h3 a:hover { color: var(--royal); }
.p-author { font-size: .92rem; color: var(--muted); margin: 0 0 .4rem; }
.p-author.big { font-size: 1.1rem; margin-bottom: .8rem; }
.p-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.p-foot form { margin: 0; }
.p-price { font: 800 1.1rem var(--font-head); color: var(--olive); }
.p-out { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Book-cover placeholder (until real cover photos are uploaded) */
.book-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.2rem 1rem 1.4rem 1.4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--white);
}
.book-ph::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: rgba(0,0,0,.18); box-shadow: 3px 0 0 rgba(255,255,255,.06); }
.book-ph::after { content: ""; position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); opacity: .7; }
.book-ph span { font: 700 1.02rem/1.25 var(--font-head); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; border-top: 3px solid var(--gold); padding-top: .7rem; }
.book-ph-1 { background: linear-gradient(135deg, var(--olive) 0%, var(--olive-700) 100%); }
.book-ph-2 { background: linear-gradient(135deg, #2a4f9c 0%, #1c3570 100%); }
.book-ph-3 { background: linear-gradient(135deg, #7a2e2e 0%, #561e1e 100%); }
.book-ph.large span { font-size: 1.6rem; }
.book-ph.tiny { padding: 0; }
.book-ph.tiny::after, .book-ph.tiny span { display: none; }

.store-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.store-info div { background: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.3rem; font-size: 1rem; }
.store-info strong { display: block; font-family: var(--font-head); color: var(--navy-900); margin-bottom: .2rem; }
.store-info span { color: var(--muted); }
@media (max-width: 800px) { .store-info { grid-template-columns: 1fr; } }

.crumbs.dark { color: var(--muted); }
.crumbs.dark a { color: var(--royal); }
.product-layout { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 3.5rem; align-items: start; margin-top: 1rem; }
.product-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .4rem 0 .3rem; }
.product-price { font: 800 2rem var(--font-head); color: var(--olive); margin: 0 0 1rem; }
.buy-row { display: flex; gap: .8rem; align-items: center; margin: 1.5rem 0 .5rem; flex-wrap: wrap; }
.qty input { width: 84px; font: inherit; font-size: 1.1rem; padding: .8rem .7rem; border: 1.5px solid #d6d0c2; border-radius: 999px; text-align: center; }
.small-note { font-size: .95rem; color: var(--muted); }
.product-desc { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; gap: 2rem; } .product-cover { max-width: 320px; } }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 90px 90px 36px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-thumb { position: relative; display: block; width: 64px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--cream); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info a { color: var(--navy-900); text-decoration: none; line-height: 1.3; display: block; }
.muted-sm { display: block; font-size: .9rem; color: var(--muted); }
.cart-qty input { width: 72px; font: inherit; padding: .5rem; border: 1.5px solid #d6d0c2; border-radius: 8px; text-align: center; }
.cart-amt { font-weight: 700; text-align: right; }
.cart-remove { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cart-remove:hover { background: #fdecea; color: #b3261e; }
.cart-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 1.6rem; position: sticky; top: 100px; }
.cart-summary h2 { font-size: 1.2rem; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1.4rem; }
.cart-summary dd { margin: 0; text-align: right; font-weight: 600; }
.cart-summary .total { font: 800 1.2rem var(--font-head); color: var(--navy-900); border-top: 1px solid var(--line); padding-top: .7rem; }
.free-form .field { margin-bottom: .8rem; }
.empty-cart { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.alert-info { background: #e3eef4; color: var(--navy-900); border: 1px solid #c6dbe6; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 52px 1fr 70px 30px; }
  .cart-thumb { width: 52px; }
  .cart-amt { grid-column: 2; text-align: left; font-size: .95rem; }
  .cart-qty { grid-column: 3; grid-row: 1; }
  .cart-remove { grid-column: 4; grid-row: 1; }
}

.thanks-head { text-align: center; margin-bottom: 2rem; }
.thanks-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e6f4ea; color: #1e5b33; font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.thanks-icon.pending { background: var(--gold-100); color: var(--olive); }
.dl-list { list-style: none; padding: 0; margin: 1rem 0; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.order-table { width: 100%; border-collapse: collapse; }
.order-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.order-table td:last-child { text-align: right; font-weight: 600; }
.order-table tr.sub td { color: var(--muted); }
.order-table tr.total td { font: 800 1.15rem var(--font-head); color: var(--navy-900); border-bottom: 0; padding-top: .9rem; }
@media (max-width: 1040px) {
  .nav-toggle { margin-left: auto; }
  .header-inner:has(.cart-link) .nav-toggle { margin-left: .5rem; }
}
@media (max-width: 560px) {
  .p-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem .9rem; }
  .book-ph { padding: .8rem .7rem 1rem 1rem; }
  .book-ph span { font-size: .85rem; }
  .p-foot { flex-direction: column; align-items: stretch; gap: .4rem; }
  .p-foot .btn { width: 100%; }
}

/* ---------- phone + address inputs ---------- */
.phone-group { display: flex; align-items: stretch; border: 1.5px solid #d6d0c2; border-radius: 10px; background: #fdfcf9; transition: border-color .15s, box-shadow .15s; }
.phone-group:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12,74,103,.12); background: var(--white); }
.phone-cc { position: relative; flex: none; display: flex; align-items: center; gap: .35rem; padding: 0 .6rem 0 .85rem; border-right: 1px solid #e4dfd3; font-size: .95rem; font-weight: 600; color: var(--navy-900); white-space: nowrap; }
.phone-cc-caret { color: var(--muted); }
.field .phone-group select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 1rem; }
.field .phone-group input.phone-num { flex: 1; min-width: 0; border: 0; border-radius: 0 10px 10px 0; background: transparent; box-shadow: none; padding-left: .75rem; }
.addr-set { border: 0; padding: 0; margin: .4rem 0 0; min-width: 0; }
.addr-set legend { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy-900); padding: 0; margin-bottom: .6rem; }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.addr .full { grid-column: 1 / -1; }
.addr [hidden] { display: none !important; }
@media (max-width: 640px) { .addr { grid-template-columns: 1fr; } }

/* Form guard: Turnstile widget + messages */
.cf-turnstile { margin: 1rem 0 .4rem; min-height: 65px; }
.fg-msg { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: #fff4e5; color: #7a4a00; font-size: .92rem; }
.fg-msg[hidden] { display: none; }
.dial-us { display: block; margin-top: .15rem; font-size: .85rem; font-weight: 400; color: var(--muted); }

/* ---------- Missionary application ---------- */
.btn-ghost { background: transparent; border-color: #cfc8b8; color: var(--navy); }
.btn-ghost:hover { background: var(--cream); color: var(--navy-900); }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.doc-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.doc-list li { margin: 0 0 .7rem; }
.doc-list a { font-weight: 700; }
.doc-list span { display: block; font-size: .92rem; color: var(--muted); }
.apply-bar { background: var(--navy); color: rgba(255,255,255,.92); }
.apply-bar .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; padding: .8rem 0; }
.apply-bar .muted-sm { display: inline; color: rgba(255,255,255,.7); margin-left: .4rem; }
.apply-bar a { color: #fff; font-weight: 600; }
.apply-bar-links { display: flex; gap: 1.2rem; align-items: center; }
.pill-status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .85rem; font-weight: 700; }
.pill-status.s-approved { background: #2f7a4a; }
.app-sections { margin: 1.8rem 0; overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app-table th, .app-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.app-table thead th { background: var(--cream); font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-table tbody th { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); }
.app-table tbody th small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
.app-chip { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.app-chip.c-done { background: #e5f4ea; color: #1d6b3a; }
.app-chip.c-done::before { content: "✓"; }
.app-chip.c-partial { background: #fff4e5; color: #7a4a00; border-color: #f0d9b0; }
.app-chip.c-empty { background: #f1efe9; color: var(--muted); }
a.app-chip:hover { border-color: var(--navy); }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.panel-card h2 { font-size: 1.4rem; }
.submit-card { border-top: 5px solid var(--gold); }
.todo-list { margin: .4rem 0 0; padding-left: 1.2rem; }
.todo-list li { margin-bottom: .3rem; }
.app-timeline { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; max-width: 560px; }
.app-timeline li { position: relative; padding: .6rem 1rem .6rem 2.6rem; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.app-timeline li::before { content: ""; position: absolute; left: 1rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; border-radius: 50%; border: 2px solid #c9c2b2; }
.app-timeline li.done { color: var(--ink); }
.app-timeline li.done::before { background: #2f7a4a; border-color: #2f7a4a; }
.app-timeline li.now { color: var(--navy-900); font-weight: 700; border-color: var(--gold); }
.app-timeline li.now::before { background: var(--gold); border-color: var(--gold); }
.app-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.app-layout > * { min-width: 0; }
@media (max-width: 860px) { .app-layout { grid-template-columns: 1fr; gap: 1rem; } }
.app-steps { position: sticky; top: calc(var(--hdr, 78px) + 1rem); }
@media (max-width: 860px) { .app-steps { position: static; } .app-steps ol { display: flex; overflow-x: auto; position: relative; gap: .3rem; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; } .app-steps li a { white-space: nowrap; } }
.app-steps ol { list-style: none; margin: 0; padding: 0; }
.app-steps li a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.app-steps li.on a { background: var(--cream); color: var(--navy-900); box-shadow: inset 3px 0 0 var(--gold); }
.app-steps .dot { width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid #c9c2b2; flex: none; }
.app-steps .st-done .dot { background: #2f7a4a; border-color: #2f7a4a; }
.app-steps .st-partial .dot { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); border-color: var(--gold); }
.app-who { font-size: .92rem; color: var(--muted); margin: 0 0 .8rem; }
.app-h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.app-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.app-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.app-fields:disabled { opacity: .85; }
.q { margin: 0 0 1.6rem; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend, .q > label, .q fieldset > label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy-900); margin-bottom: .45rem; padding: 0; }
.q .q-help { display: block; margin: -.2rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.q.q-short input { max-width: 260px; }
.q-grid2, .q-grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.q-grid3 { grid-template-columns: 1fr 1fr 1fr; }
.q-grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .q-grid2, .q-grid3 { grid-template-columns: 1fr; } }
.q-grid2 label, .q-grid3 label, .q-child label, .q-explain > label, .q-other > label, .q-precept > label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }
.q-explain, .q-other { margin-top: .9rem; }
.q-agree { display: flex !important; gap: .7rem; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 400 !important; font-size: 1.02rem !important; color: var(--ink) !important; line-height: 1.5; }
.q-agree input { width: 1.2rem !important; height: 1.2rem; margin-top: .2rem; flex: none; }
.q-child { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; margin-bottom: .6rem; }
.q-ref { border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 1rem 1.1rem !important; margin: 0 0 1rem !important; }
.q-ref legend { padding: 0 .4rem !important; font-size: .9rem; }
.q-precept { margin: 0 0 1.4rem; }
.q-precept blockquote { margin: 0 0 .6rem; padding: .7rem 1rem; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; font-size: .98rem; color: var(--navy-900); }
.q-alt { padding: 1rem 1.1rem; border: 1.5px dashed #d6d0c2; border-radius: var(--radius); }
.q-file { margin: .5rem 0; font-size: .95rem; }
.q-remove { display: inline-flex !important; gap: .3rem; align-items: center; font-family: var(--font-body) !important; font-weight: 400 !important; font-size: .9rem !important; color: #9b2c2c !important; margin-left: .6rem; }
.q-remove input { width: auto !important; }
.q-upload { display: block !important; margin-top: .6rem; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: .92rem !important; color: var(--navy) !important; }
.q-upload input[type=file] { display: block; margin-top: .3rem; padding: .5rem !important; background: var(--cream) !important; border-style: dashed !important; font-size: .9rem; }
.q-photo { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.q-photo-prev { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.q-onfile { margin: 0 0 .5rem; font-size: .95rem; }
.q-note { padding: 1rem 1.2rem; background: var(--cream); border-radius: var(--radius); }
.q-note p { margin: .4rem 0 0; }
.sign-box { margin-top: 1rem; padding: 1.4rem; border: 2px solid var(--gold); border-radius: var(--radius); background: #fffcf3; }
.sign-box h2 { font-size: 1.3rem; }
.signed-line { font-size: 1.05rem; margin: 0; }
.app-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.app-actions > div { display: flex; gap: .7rem; flex-wrap: wrap; }
.pill-status, .apply-bar-links a { white-space: nowrap; }
@media (max-width: 600px) {
  .apply-bar .wrap { padding: .6rem 0; gap: .4rem 1rem; }
  .apply-bar .muted-sm { display: block; margin: .1rem 0 0; }
  .apply-bar-links { gap: .9rem; font-size: .95rem; }
  .app-table th, .app-table td { padding: .6rem .45rem; }
  .app-table tbody th { font-size: .92rem; }
  .app-table tbody th small { font-size: .78rem; }
  .app-chip { padding: .3rem .55rem; font-size: .8rem; }
  .app-chip span { display: none; }
  .app-form { padding: 1rem; }
}
.confirm-email .inline-form { display: inline; margin-left: .4rem; }
.q-count { display: block; text-align: right; margin-top: .25rem; font-size: .82rem; color: var(--muted); }
.q-count.near { color: #8a5a00; font-weight: 600; }
.q-count.full { color: #b3261e; font-weight: 700; }
.q-subaddr { border: 0; padding: 0; margin: .2rem 0 0; min-width: 0; }
.q-subaddr > legend { font-family: var(--font-body); font-weight: 600; font-size: .88rem; color: var(--muted); margin-bottom: .3rem; padding: 0; }
.q-subaddr .addr { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.q-subaddr .addr .full { grid-column: 1 / -1; }
.q-subaddr .addr .field label { font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .q-subaddr .addr { grid-template-columns: 1fr; } }
.q-photo-current { display: flex; flex-direction: column; gap: .3rem; width: max-content; }
.q-photo-prev { width: 128px; height: 160px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.crop-ui { margin: .4rem 0 1rem; }
.crop-tip { font-size: .95rem; margin: 0 0 .6rem; }
.crop-stage { position: relative; display: inline-block; max-width: min(100%, 420px); overflow: hidden; border-radius: 8px; background: #222; line-height: 0; touch-action: none; }
.crop-img { display: block; max-width: 100%; max-height: 460px; user-select: none; -webkit-user-drag: none; }
.crop-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 3px solid #fff; outline-offset: 0; cursor: move; touch-action: none; }
.crop-frame::after { content: ""; position: absolute; inset: 0; border: 2px dashed var(--gold); pointer-events: none; }
.crop-frame:focus-visible { outline-color: var(--gold); }
.crop-controls { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: .8rem; }
.crop-controls label { display: flex !important; align-items: center; gap: .6rem; font-weight: 600 !important; }
.crop-controls input[type=range] { width: 180px; padding: 0 !important; border: 0 !important; background: none !important; }
.crop-preview-box { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.crop-preview { width: 96px; height: 120px; border: 2px solid var(--line); border-radius: 4px; background: #fff; }
.crop-buttons { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.4rem; }
.spouse-next { border: 2px solid var(--gold); background: #fffcf3; }

/* Initial information form */
.intake-wrap { max-width: 860px; }
.intake-group { margin: 1.2rem 0; }
.intake-group h2 { margin-bottom: .6rem; }
.intake-h { font-size: 1.3rem; margin: 2rem 0 0; }
.intake-form .app-actions { margin-top: 1rem; }
.app-form.intake-form { background: none; border: 0; box-shadow: none; padding: 0; }
.intake-form .app-actions { border-top: 0; padding-top: 0; }
