/* St. Joseph Guild North America — site styles.
   Tokens live in /styles/tokens.css; never hard-code colours. */

@import url("./tokens.css");

html, body {
  margin: 0;
  padding: 0;
  background: var(--neutral-50);
  color: var(--fg-1);
  font-family: var(--font-body-serif);
  -webkit-font-smoothing: antialiased;
  /* Prevent horizontal scroll on narrow viewports — body must never
     be wider than the viewport. Pair with overflow-x:clip on html. */
  overflow-x: hidden;
}
html { overflow-x: hidden; }
* { box-sizing: border-box; }
img { max-width: 100%; display: block; height: auto; }

/* ============ Accessibility primitives ============ */
/* Visually hidden — used by the skip link and offscreen labels. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: hidden until focused, then pinned to top-left. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  background: var(--sjg-blue);
  color: var(--neutral-0);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  /* No transition — when a keyboard user Tabs onto the skip link, it
     should appear instantly. Acceptance tests verify the post-focus
     rect synchronously, and assistive-tech users shouldn't wait for
     a fade-in. */
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 3px solid var(--sjg-gold);
  outline-offset: 2px;
}

/* Universal focus ring — every interactive element gets a clear,
   high-contrast focus indicator on keyboard navigation. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sjg-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On dark/rite surfaces, the gold reads better than the blue. */
.rite-ribbon a:focus-visible,
section.rite a:focus-visible,
.rite-notice a:focus-visible,
.portal-callout a:focus-visible,
.stage--candidate a:focus-visible {
  outline-color: var(--sjg-gold);
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Header ============ */
.rite-ribbon {
  background: var(--sjg-blue);
  color: var(--fg-on-rite);
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 0;
}
.rite-ribbon .shell { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rite-ribbon .right { opacity: 0.82; }

.site-header {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.site-header .mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-header .mark img { height: 56px; width: auto; }
.site-header .wordmark { line-height: 1; }
.site-header .wordmark .l1 {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}
.site-header .wordmark .l2 {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue);
  margin-top: 3px;
}
.site-header nav { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }
.site-header nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-1);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.site-header nav a:hover { color: var(--sjg-blue); }
.site-header nav a.active { color: var(--sjg-blue); border-bottom-color: var(--sjg-blue); }

/* ============ Hamburger / mobile nav ============ */
/* Mobile-first: hamburger is visible by default, hidden on wider screens
   via the min-width query at the bottom of this file. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--sjg-blue);
  font-size: 24px;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.nav-toggle:hover { background: var(--sjg-blue-wash); border-color: var(--sjg-blue); }
.nav-toggle .ph { line-height: 1; }
.nav-toggle .ph-x { display: none; }
.nav-toggle[aria-expanded="true"] .ph-list { display: none; }
.nav-toggle[aria-expanded="true"] .ph-x { display: inline; }

/* Backdrop behind the mobile nav panel. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,24,18,0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  text-decoration: none;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.btn--primary { background: var(--sjg-blue); color: white; }
.btn--primary:hover { background: var(--sjg-blue-deep); }
.btn--secondary { background: white; color: var(--sjg-blue); border-color: var(--sjg-blue); }
.btn--secondary:hover { background: var(--sjg-blue-wash); }
.btn--ghost { background: transparent; color: var(--sjg-blue); }
.btn--ghost:hover { background: var(--sjg-blue-wash); }
.btn--rite {
  background: var(--sjg-blue);
  color: white;
  padding: 14px 22px;
  font-size: 15px;
  box-shadow: var(--shadow-rite);
}
.btn--rite:hover { background: var(--sjg-blue-deep); }

/* ============ Eyebrow / rule ============ */
.eyebrow {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}
.eyebrow--gold { color: var(--sjg-gold-deep); }
.eyebrow--on-rite { color: var(--sjg-cream-light); }
.eyebrow--green { color: var(--sjg-green-deep); }

.rule { height: 1px; background: var(--sjg-gold); opacity: 0.6; width: 56px; margin: 18px 0; }
.rule--center { margin-left: auto; margin-right: auto; }

/* ============ Sections ============ */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.rite { background: var(--sjg-blue); color: var(--fg-on-rite); }
section.cream { background: var(--sjg-cream-wash); }
section.parchment { background: var(--neutral-100); }

h1, h2, h3, h4 { margin: 0; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  text-wrap: balance;
}
.sec-title--center { text-align: center; }
.sec-lede {
  font-family: var(--font-body-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}
.hero .badge-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #E7ECF7 0%, #FFFFFF 70%);
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .badge-wrap img { max-width: 76%; height: auto; }
.hero .badge-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/monogram-jmj.png");
  background-repeat: repeat;
  background-size: 100px auto;
  opacity: 0.04;
  border-radius: 24px;
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--fg-1);
  text-wrap: balance;
  margin-top: 12px;
}
.hero p {
  font-family: var(--font-body-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 52ch;
}
.hero .cta-row { display: flex; gap: 12px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.hero .attribution {
  font-family: var(--font-body-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 28px;
}

/* ============ Page hero (interior pages) ============ */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-top: 10px;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero p {
  font-family: var(--font-body-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-top: 18px;
  max-width: 64ch;
}

/* ============ Pillars ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 28px 26px;
}
.pillar .num {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-gold-deep);
}
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-top: 10px; }
.pillar p { font-size: 15px; color: var(--fg-2); margin-top: 8px; }

/* ============ Formation stages ============ */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage {
  border-radius: 16px;
  padding: 28px 24px 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stage .scapular {
  position: absolute;
  right: -30px;
  top: 18px;
  width: 110px;
  height: 220px;
  border-radius: 8px;
  transform: rotate(18deg);
  opacity: 0.95;
}
.stage--aspirant { background: var(--sjg-green-wash); border: 1px solid #C7D9CB; }
.stage--aspirant .scapular { background: var(--sjg-green); }
.stage--aspirant .eyebrow { color: var(--sjg-green-deep); }
.stage--candidate { background: var(--sjg-blue); color: var(--fg-on-rite); }
.stage--candidate .scapular { background: var(--sjg-blue-deep); border: 1px solid rgba(255,255,255,.18); }
/* Specificity-bumped to beat the later `.stage p` / `.stage .ref` base rules. */
.stage.stage--candidate .eyebrow { color: var(--sjg-cream-light); }
.stage.stage--candidate h3 { color: white; }
.stage.stage--candidate p { color: var(--sjg-blue-wash); }
.stage.stage--candidate p em,
.stage.stage--candidate p strong { color: inherit; }
.stage.stage--candidate .ref { color: var(--sjg-cream-light); opacity: 0.85; }
.stage--full { background: var(--sjg-cream); }
.stage--full .scapular { background: var(--sjg-blue); }
.stage--full .eyebrow { color: var(--sjg-gold-deep); }
.stage h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  margin-top: 12px;
  text-wrap: balance;
  max-width: 11ch;
}
.stage p {
  font-family: var(--font-body-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-2);
  margin-top: 10px;
  max-width: 28ch;
}
.stage .ref {
  margin-top: auto;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============ Prayer card (devotional) ============ */
.prayer-card {
  background: var(--sjg-cream-wash);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 48px 40px 44px;
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.prayer-card::before {
  content: "";
  position: absolute; left: 40px; right: 40px; top: 0;
  height: 1px; background: var(--sjg-gold); opacity: 0.7;
}
.prayer-card .eyebrow { color: var(--sjg-gold-deep); }
.prayer-card .prayer {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.45;
  color: var(--fg-1);
  margin: 18px auto 14px;
  max-width: 36ch;
  text-wrap: balance;
}
.prayer-card .amen {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--sjg-blue);
}

/* Prayer index grid (prayers page) */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.prayer-tile {
  background: var(--sjg-cream-wash);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 28px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.prayer-tile:hover { border-color: var(--sjg-gold); }
.prayer-tile::before {
  content: "";
  position: absolute; left: 26px; right: 26px; top: 0;
  height: 1px; background: var(--sjg-gold); opacity: 0.7;
}
.prayer-tile h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin-top: 12px;
  text-wrap: balance;
}
.prayer-tile p {
  font-family: var(--font-body-devotional);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-top: 10px;
}
.prayer-tile .ref {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}

/* ============ Events ============ */
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.event {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.event .date { text-align: center; border-right: 1px solid var(--border-soft); padding-right: 16px; }
.event .date .m {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}
.event .date .d {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--fg-1);
  margin-top: 2px;
}
.event h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-1); }
.event .meta { font-family: var(--font-ui); font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.event .pin {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.pin--feast { background: var(--sjg-cream-wash); color: var(--sjg-gold-deep); }
.pin--mtg   { background: var(--sjg-blue-wash); color: var(--sjg-blue); }
.pin--rite  { background: var(--sjg-blue); color: white; }

/* ============ Rite notice ============ */
.rite-notice {
  position: relative;
  background: var(--sjg-blue);
  color: white;
  border-radius: 16px;
  padding: 40px 44px;
  overflow: hidden;
}
.rite-notice::before {
  content: "";
  position: absolute; left: 44px; right: 44px; top: 0;
  height: 1px; background: var(--sjg-gold);
}
.rite-notice .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: end;
}
.rite-notice h2 { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.1; color: inherit; }
.rite-notice .sig .who { color: inherit; }
.rite-notice p {
  font-family: var(--font-body-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sjg-blue-wash);
  margin-top: 10px;
}
.rite-notice .sig { border-left: 1px solid rgba(255,255,255,.25); padding-left: 24px; }
.rite-notice .sig .who { font-family: var(--font-display); font-style: italic; font-size: 22px; }
.rite-notice .sig .role {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--sjg-cream-light);
}

/* ============ Leadership ============ */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.leader {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-align: center;
}
.leader .avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--sjg-blue-wash);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--sjg-blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  border: 1px solid var(--sjg-blue);
}
.leader .name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--fg-1); }
.leader .office {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-blue);
  margin-top: 6px;
}
.leader .chapter { font-family: var(--font-body-serif); font-style: italic; font-size: 12px; color: var(--fg-3); margin-top: 4px; }

/* ============ Chapters ============ */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chapter {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  text-decoration: none;
  color: inherit;
}
.chapter:hover { border-color: var(--sjg-blue); background: var(--sjg-blue-wash); }
.chapter .country {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-gold-deep);
}
.chapter .city { font-family: var(--font-display); font-size: 22px; color: var(--fg-1); }
.chapter .parish { font-family: var(--font-body-serif); font-size: 13.5px; color: var(--fg-2); }
.chapter .stats { font-family: var(--font-ui); font-size: 12px; color: var(--fg-3); margin-top: 4px; }

/* ============ Search input ============ */
.search-wrap { position: relative; flex: 0 0 320px; }
.search-wrap .ph {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-500);
}
.search-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: white;
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-2) var(--ease);
}
.search-input:focus { border-color: var(--sjg-blue); }

/* ============ Library / Archive list (presentations, readings, music) ============ */
.archive-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border-strong);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.filter-chip:hover { border-color: var(--sjg-blue); color: var(--sjg-blue); }
.filter-chip.is-active { background: var(--sjg-blue); border-color: var(--sjg-blue); color: white; }

.archive-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
}
.archive-row {
  display: grid;
  grid-template-columns: 96px 1fr 200px 120px 44px;
  gap: 20px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-2) var(--ease);
}
.archive-row:hover { background: var(--sjg-cream-wash); }
.archive-row .when {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}
.archive-row .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--fg-1);
  line-height: 1.2;
  text-wrap: balance;
}
.archive-row .by {
  font-family: var(--font-body-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 4px;
}
.archive-row .tag {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-gold-deep);
}
.archive-row .meta-r {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--fg-3);
  text-align: right;
}
.archive-row .chev {
  color: var(--neutral-400);
  font-size: 20px;
  text-align: right;
}
.archive-row:hover .chev { color: var(--sjg-blue); }

/* Featured / first-card variant for archives */
.archive-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.archive-featured::after {
  content: "";
  position: absolute; left: 36px; right: 36px; top: 0;
  height: 1px; background: var(--sjg-gold); opacity: 0.7;
}
.archive-featured h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  margin-top: 12px;
  max-width: 18ch;
  text-wrap: balance;
}
.archive-featured .summary {
  font-family: var(--font-body-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-top: 12px;
  max-width: 52ch;
}
.archive-featured .by {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--fg-2);
  margin-top: 16px;
}
.archive-featured .by .role {
  display: block;
  font-family: var(--font-caps);
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue);
  margin-top: 4px;
}
.archive-featured .side {
  background: var(--sjg-blue-wash);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.archive-featured .side::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/monogram-jmj.png");
  background-repeat: repeat;
  background-size: 90px auto;
  opacity: 0.05;
}
.archive-featured .side .stat {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--sjg-blue);
  text-wrap: balance;
}
.archive-featured .side .stat .label {
  display: block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue-soft);
  margin-bottom: 6px;
}

/* ============ Music list ============ */
.music-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-soft); }
.track {
  display: grid;
  grid-template-columns: 44px 1fr 180px 80px 44px;
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.track .play {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--sjg-blue-wash);
  color: var(--sjg-blue);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease);
}
.track .play:hover { background: var(--sjg-blue); color: white; }
.track .name { font-family: var(--font-display); font-size: 19px; color: var(--fg-1); }
.track .occasion {
  font-family: var(--font-body-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 2px;
}
.track .lang {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sjg-gold-deep);
}
.track .len { font-family: var(--font-ui); font-size: 13px; color: var(--fg-3); text-align: right; }

/* ============ Reading cards ============ */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.reading {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-2) var(--ease);
}
.reading:hover { border-color: var(--sjg-blue); }
.reading .scripture {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-gold-deep);
}
.reading h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 10px;
  text-wrap: balance;
}
.reading .verse {
  font-family: var(--font-body-devotional);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-top: 12px;
}
.reading .by {
  font-family: var(--font-body-serif);
  font-size: 13px;
  color: var(--fg-3);
  margin-top: auto;
  padding-top: 14px;
}

/* ============ Membership / join ============ */
.member-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.path-card {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}
.path-card.cream-card { background: var(--sjg-cream-wash); }
.path-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin-top: 10px;
  text-wrap: balance;
}
.path-card p {
  font-family: var(--font-body-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-top: 12px;
}
.path-card ol, .path-card ul {
  font-family: var(--font-body-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-1);
  margin-top: 12px;
  padding-left: 22px;
}
.path-card ol li, .path-card ul li { margin-bottom: 6px; }
.path-card .ref {
  margin-top: 20px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue);
}

/* ============ Portal callout ============ */
.portal-callout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--sjg-blue);
  color: white;
  border-radius: 16px;
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
}
.portal-callout::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/monogram-jmj.png");
  background-repeat: repeat;
  background-size: 120px auto;
  opacity: 0.04;
}
.portal-callout > * { position: relative; }
.portal-callout h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  text-wrap: balance;
  color: inherit; /* parent .portal-callout sets `color: white`; default h2 rule would otherwise force --fg-1 */
}
.portal-callout p {
  font-family: var(--font-body-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sjg-blue-wash);
  margin-top: 10px;
  max-width: 48ch;
}

/* ============ Aspirant registration embed ============ */
/* Google Forms iframes are fixed-size and cannot auto-resize across origins,
   so width is fluid and height is tuned per breakpoint — narrower viewports
   reflow the form taller. */
.aspirant-embed {
  max-width: 740px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.aspirant-embed iframe {
  display: block;
  width: 100%;
  height: 1360px;
  border: 0;
}
@media (max-width: 600px) {
  .aspirant-embed iframe { height: 1640px; }
}
@media (max-width: 400px) {
  .aspirant-embed iframe { height: 1820px; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--sjg-cream-wash);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 28px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h5 {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sjg-blue);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { font-family: var(--font-body-serif); font-size: 14px; color: var(--fg-1); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { display: flex; gap: 12px; align-items: center; }
.site-footer .brand img { height: 56px; width: auto; }
.site-footer .brand .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--fg-1);
  line-height: 1.1;
}
.site-footer .brand .tag {
  font-family: var(--font-body-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 4px;
  max-width: 28ch;
}
.site-footer .colophon {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-body-serif);
  font-size: 12.5px;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ Helpers ============ */
.between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.muted { color: var(--fg-3); }
em.shona { font-family: var(--font-display); font-style: italic; color: var(--fg-2); }

/* ============ Desktop nav default (hide hamburger ≥961px) ============ */
@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  /* The .nav-portal duplicate inside <nav> is mobile-only; the desktop
     bar has its own .btn--secondary "Member portal" link to the right. */
  .site-header nav .nav-portal { display: none; }
}

/* ============ Responsive — mobile (≤960px) ============ */
@media (max-width: 960px) {
  .shell { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; padding: 56px 0; }
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .hero p { font-size: 17px; }
  .pillars, .stages, .events, .leaders, .chapters, .member-paths { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .archive-row { grid-template-columns: 80px 1fr 32px; gap: 14px; padding: 18px 4px; min-height: 64px; }
  .archive-row .tag, .archive-row .meta-r { display: none; }
  .archive-featured { grid-template-columns: 1fr; padding: 24px; }
  .archive-featured h2 { font-size: 28px; }
  .track { grid-template-columns: 44px 1fr 70px; padding: 14px 4px; min-height: 64px; }
  .track .lang { display: none; }
  .portal-callout { grid-template-columns: 1fr; padding: 28px; }
  .rite-notice { padding: 28px; }
  .rite-notice .grid { grid-template-columns: 1fr; gap: 20px; }
  .rite-notice .sig { border-left: none; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; padding-top: 16px; }
  .rite-ribbon .right { display: none; }
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }

  /* Header: stack mark + hamburger on one row. Hide member-portal button
     on tiny screens — it is also accessible inside the open nav panel. */
  .site-header .bar { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
  .site-header .mark img { height: 44px; }
  .site-header .wordmark .l1 { font-size: 17px; }
  .site-header .wordmark .l2 { font-size: 11px; }
  .site-header .bar > .btn { display: none; }

  /* Mobile nav panel — off-canvas right-side drawer.
     The <nav> element itself is the panel; toggled by aria-expanded
     on the button which adds .is-open to the nav. */
  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    margin: 0;
    background: var(--neutral-0);
    border-left: 1px solid var(--border-soft);
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 80px 8px 24px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease-out);
    overflow-y: auto;
  }
  .site-header nav.is-open {
    transform: translateX(0);
  }
  .site-header nav a {
    font-family: var(--font-ui);
    font-size: 17px;
    font-weight: 500;
    color: var(--fg-1);
    padding: 14px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .site-header nav a.active {
    color: var(--sjg-blue);
    border-bottom: 1px solid var(--border-soft);
    background: var(--sjg-blue-wash);
  }
  /* Inline a member-portal link inside the open nav panel for parity
     with the desktop bar's "Member portal" button. */
  .site-header nav .nav-portal {
    margin-top: 16px;
    background: var(--sjg-blue);
    color: var(--neutral-0);
    border-radius: 8px;
    border-bottom: none;
    justify-content: center;
    font-weight: 600;
  }
  .site-header nav .nav-portal.active { background: var(--sjg-blue); color: var(--neutral-0); }

  /* When the nav is open we lock body scroll. */
  body.nav-open {
    overflow: hidden;
  }

  /* Touch target sizing for everything tappable. WCAG 2.5.5 / Apple HIG. */
  .btn { min-height: 44px; padding: 12px 18px; }
  .btn--rite { padding: 14px 22px; }
  .filter-chip { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; }
  .track .play { width: 44px; height: 44px; }
  .archive-row, .chapter, .prayer-tile, .reading, .pillar { /* keep tap area generous */ }

  /* Body text on mobile — keep ≥16px to avoid iOS zoom on focus and
     to preserve readability. Bump the small captions slightly. */
  .sec-lede { font-size: 17px; }
  .event .meta { font-size: 14px; }
  .pillar p { font-size: 16px; }
  .reading .verse { font-size: 16px; }
  .archive-featured .summary { font-size: 16px; }
  .prayer-tile p { font-size: 16px; }
  .leader .chapter { font-size: 13px; }
  /* Inputs ≥16px stops iOS from zooming on focus. */
  .search-input { font-size: 16px; min-height: 44px; }
  .search-wrap { flex: 1 1 100%; }

  /* Section paddings on hero pages so headings don't crowd the edges. */
  .page-hero { padding: 40px 0 24px; }
  .page-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .page-hero p { font-size: 17px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
