/* =====================================================================
   Grow Research · Daybreak design system
   ---------------------------------------------------------------------
   One rounded sans (Plus Jakarta Sans), bright light surfaces, and the
   seven Grow strategy colours taken from the Grow site's own source
   (grow-curriculum-frontend · noCreditPlans.js "borderColor"):

     Discipleship  #F0893C  orange      Volunteers  #82D1DD  blue
     Teaching      #E84E4E  red         Families    #F27A9E  pink
     Environments  #E4D353  yellow      Leadership  #434A50  charcoal
     Events        #BED65A  green

   The brand colours are FILLS. Most of them are too light to be text on
   white (yellow is 1.5:1), so every colour also gets a stepped-down
   "-ink" tone measured to >= 4.5:1 on both white and its own soft tint.
   Dark text (--ink) sits on every brand fill except charcoal/red.
   ===================================================================== */

:root {
  /* strategy fills */
  --disc: #F0893C; --teach: #E84E4E; --env: #E4D353; --evt: #BED65A;
  --vol: #82D1DD;  --fam: #F27A9E;   --lead: #434A50;
  /* text-safe tones of each (>= 4.5:1 on white and on the soft tint) */
  --disc-ink: #A94F0C; --teach-ink: #B41818; --env-ink: #635910; --evt-ink: #515E17;
  --vol-ink: #1D616C;  --fam-ink: #AE1140;   --lead-ink: #434A50;
  /* soft washes */
  --disc-soft: #FDEEE3; --teach-soft: #FCE7E7; --env-soft: #FBF7DA; --evt-soft: #F2F8DF;
  --vol-soft: #E5F6F8;  --fam-soft: #FDE9F0;   --lead-soft: #ECEEF0;

  /* neutrals */
  --ink: #1F2328; --ink-2: #454C55; --ink-3: #5F6873; --ink-cap: #5F6873;
  --bg: #F6F7F9; --surface: #FFFFFF; --line: #E4E7EB; --line-2: #D3D8DE;
  --char: #434A50; --char-2: #2F3439; --char-3: #23272B;


  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(31,35,40,.05), 0 8px 24px rgba(31,35,40,.06);
  --shadow-lg: 0 2px 4px rgba(31,35,40,.05), 0 18px 48px rgba(31,35,40,.10);
  --measure: 40rem; --wide: 72rem; --max: 80rem;
  /* the thin colour bar: the six coloured areas only. Leadership charcoal is
     left out because it disappears into the dark footer and banner surfaces. */
  --stripe: linear-gradient(90deg,
     var(--disc) 0 16.667%, var(--teach) 0 33.333%, var(--env) 0 50%,
     var(--evt) 0 66.667%, var(--vol) 0 83.333%, var(--fam) 0 100%);
}

/* theme scopes — any element can re-point the accent */
/* --a-fill / --a-on: the version of the colour that CARRIES TEXT, and the text
   colour on it. Brand red measures 3.7:1 with white and 4.2:1 with ink, so a
   text-bearing red uses Grow's own deeper teaching red (#C83535, 5.2:1 white). */
:root, [data-theme="disc"] { --a: var(--disc);  --a-ink: var(--disc-ink);  --a-soft: var(--disc-soft);  --a-fill: var(--disc); --a-on: var(--ink); }
[data-theme="teach"] { --a: var(--teach); --a-ink: var(--teach-ink); --a-soft: var(--teach-soft); --a-fill: #C83535; --a-on: #fff; }
[data-theme="env"]   { --a: var(--env);   --a-ink: var(--env-ink);   --a-soft: var(--env-soft);   --a-fill: var(--env); --a-on: var(--ink); }
[data-theme="evt"]   { --a: var(--evt);   --a-ink: var(--evt-ink);   --a-soft: var(--evt-soft);   --a-fill: var(--evt); --a-on: var(--ink); }
[data-theme="vol"]   { --a: var(--vol);   --a-ink: var(--vol-ink);   --a-soft: var(--vol-soft);   --a-fill: var(--vol); --a-on: var(--ink); }
[data-theme="fam"]   { --a: var(--fam);   --a-ink: var(--fam-ink);   --a-soft: var(--fam-soft);   --a-fill: var(--fam); --a-on: var(--ink); }
[data-theme="lead"]  { --a: var(--lead);  --a-ink: var(--lead-ink);  --a-soft: var(--lead-soft);  --a-fill: var(--lead); --a-on: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--a-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.wrap-max { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.grow-sprite { display: none; }

/* ---------------------------------------------------------------
   Chrome: header, preview banner, footer (injected by site.js)
   --------------------------------------------------------------- */
.gr-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.gr-header .bar { display: flex; align-items: center; gap: 22px; height: 66px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.gr-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--char); text-decoration: none; flex: none; }
.gr-logo .mark { height: 28px; display: inline-flex; }
.gr-logo .mark svg { height: 100%; width: auto; }
.gr-logo .word { font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.gr-logo .word span { color: var(--ink-3); font-weight: 600; }
.gr-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.gr-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.gr-nav a:hover { background: var(--bg); color: var(--ink); }
.gr-nav a[aria-current="page"] { color: var(--ink); background: var(--lead-soft); }
.gr-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: 15px; letter-spacing: -.005em;
  padding: 12px 22px; border-radius: var(--r-pill); transition: transform .15s, box-shadow .15s, background .15s;
}
.gr-cta, .btn-primary { background: var(--disc); color: var(--ink); box-shadow: 0 2px 0 rgba(169,79,12,.35); }
.gr-cta:hover, .btn-primary:hover { background: #F5994F; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(240,137,60,.35); }
.gr-cta { padding: 10px 18px; font-size: 14.5px; margin-left: 6px; }
.btn-dark { background: var(--char); color: #fff; }
.btn-dark:hover { background: var(--char-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

.gr-menu { display: none; }
@media (max-width: 900px) {
  .gr-header .bar { gap: 10px; height: 60px; padding: 0 16px; }
  .gr-logo .word { display: none; }
  .gr-nav { display: none; }
  .gr-cta { margin-left: auto; padding: 9px 15px; font-size: 14px; }
  .gr-menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg); cursor: pointer; margin-left: auto; }
  .gr-cta + .gr-menu { margin-left: 0; }
  .gr-menu svg { width: 20px; height: 20px; }
  .gr-header.open .gr-nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 60px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .gr-header.open .gr-nav a { padding: 12px 14px; font-size: 16px; }
}

/* preview-data popup (native <dialog>, opened once per session by site.js) */
.gr-preview {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 28px; background: #fff; color: var(--ink); overflow: auto;
  box-shadow: 0 40px 90px -20px rgba(15,18,22,.55);
}
.gr-preview::backdrop { background: rgba(20,23,27,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.gr-preview[open] { animation: gpIn .28s cubic-bezier(.2,.8,.25,1); }
.gr-preview[open]::backdrop { animation: gpFade .28s ease; }
@keyframes gpIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes gpFade { from { opacity: 0; } }
.gp-stripe { height: 10px; background: var(--stripe); }
.gp-body { padding: 34px 36px 32px; }
.gr-preview .pill {
  display: inline-flex; align-items: center; gap: 7px; background: var(--env); color: var(--ink);
  font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill);
}
.gr-preview .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: grPulse 1.8s infinite; }
@keyframes grPulse { 50% { opacity: .25; } }
.gr-preview h2 { font-size: clamp(28px, 5vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 12px; }
.gr-preview p { margin: 0 0 26px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.gr-preview p b { color: var(--ink); }
.gp-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.gp-btns .btn { flex: 1 1 auto; }
.gr-preview:focus { outline: none; }
.gp-btns .btn-ghost { box-shadow: inset 0 0 0 1.5px #AEB6BF; }
@media (max-width: 520px) {
  .gp-body { padding: 26px 22px 22px; }
  .gp-btns .btn { width: 100%; padding: 15px 20px; font-size: 16px; }
}
html.gp-lock { overflow: hidden; }

/* "Add my ministry" link that closes a section */
.add-mine { display: flex; justify-content: center; margin-top: 40px; }
.add-mine a {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--ink);
  text-decoration: none; padding: 12px 22px; border-radius: var(--r-pill); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .15s, transform .15s;
}
.add-mine a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--disc); }
.add-mine a:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); transform: translateY(-1px); }
.add-mine a .arr { transition: transform .15s; }
.add-mine a:hover .arr { transform: translateX(3px); }
.add-mine.two { gap: 12px; flex-wrap: wrap; }
.add-mine a.alt { background: transparent; box-shadow: none; color: var(--ink-2); }
.add-mine a.alt::before { display: none; }
.add-mine a.alt:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }

.preview-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  background: var(--env); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.preview-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* footer */
.gr-footer { background: var(--char-3); color: #D4D8DC; margin-top: 0; position: relative; }
.gr-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); }
.gr-footer .in { max-width: var(--max); margin: 0 auto; padding: 64px 24px 36px; }
.gr-footer .cta-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.gr-footer h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.gr-footer .cta-row p { margin: 0; color: #C4C9CE; max-width: 36rem; }
.gr-footer .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.gr-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 32px; font-size: 14.5px; }
.gr-footer .cols div { display: flex; flex-direction: column; gap: 8px; }
.gr-footer .cols b { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.gr-footer a { color: #D4D8DC; text-decoration: none; }
.gr-footer a:hover { color: #fff; text-decoration: underline; }
.gr-footer .fine { margin-top: 36px; font-size: 13px; color: #AEB4BA; max-width: 52rem; }
.gr-footer .gr-logo { color: #fff; }
@media (max-width: 800px) {
  .gr-footer .cta-row { grid-template-columns: 1fr; }
  .gr-footer .cta-btns { justify-content: flex-start; }
}

/* ---------------------------------------------------------------
   Shared primitives
   --------------------------------------------------------------- */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--a-ink);
}
.eyebrow::before, .kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--a); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--a-soft); color: var(--a-ink); font-weight: 700; font-size: 13px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.035em; margin: 10px 0 10px; font-weight: 800; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 38rem; font-size: 18px; }
.muted { color: var(--ink-3); }
.stripe { height: 6px; background: var(--stripe); border-radius: var(--r-pill); }

/* reveal motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.25,1); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* reading progress */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 0; z-index: 60; background: var(--a); }

/* ---------------------------------------------------------------
   Narrative pages (stories + findings)
   --------------------------------------------------------------- */
.storybar { display: none; }  /* legacy nav, replaced by .gr-header */
.opening { padding: 72px 0 56px; background: linear-gradient(180deg, var(--a-soft), rgba(255,255,255,0)); position: relative; overflow: hidden; }
.opening::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: var(--a); opacity: .16; pointer-events: none;
}
.opening .measure { position: relative; z-index: 1; }
.story-title { font-size: clamp(42px, 7.2vw, 78px); line-height: 1.0; letter-spacing: -.045em; font-weight: 800; margin: 16px 0 20px; }
.story-title em { font-style: normal; color: var(--a-ink); }
.standfirst { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; color: var(--ink-2); margin: 0 0 26px; font-weight: 500; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.byline > span { background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: var(--r-pill); }
.scroll-cue { display: none; }
[data-sample-flag] { display: none; }
.rank-title .preview-tag, .sz-read .preview-tag { font-size: 10.5px; letter-spacing: .06em; }
.sz-read .preview-tag { margin-left: auto; align-self: flex-start; }
.sample-flag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  background: var(--env); padding: 4px 11px; border-radius: var(--r-pill);
}
.sample-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.prose { padding: 14px 0; }
.prose p { margin: 0 0 1.1em; font-size: 18.5px; line-height: 1.7; color: #2B3036; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 10px 0 16px; }
.prose .kicker { margin-top: 36px; }
.dropcap::first-letter {
  float: left; font-weight: 800; font-size: 4.1em; line-height: .86; margin: .06em .1em 0 0;
  color: var(--a-on); background: var(--a-fill); border-radius: 14px; padding: .08em .14em .06em;
}

.figure-block { padding: 40px 0 28px; }
.bignum { display: block; font-weight: 800; font-size: clamp(96px, 20vw, 190px); line-height: .9; letter-spacing: -.06em; color: var(--ink); }
.bignum::after { content: ""; display: block; width: 88px; height: 12px; border-radius: 6px; background: var(--a); margin-top: 16px; }
.bignum-sub { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; font-weight: 700; margin: 18px 0 8px; letter-spacing: -.015em; }
.bignum-note { color: var(--ink-3); font-size: 14.5px; font-weight: 600; margin: 0; }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px auto; max-width: 52rem; }
.versus > div { background: #fff; border-radius: var(--r-lg); padding: 28px 28px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.versus .hi { background: var(--a-fill); color: var(--a-on); }
.versus .hi::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.22); }
.side-label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.versus .hi .side-label, .versus .hi .side-desc, .versus .hi .side-base { color: var(--a-on); }
.side-num { font-size: clamp(54px, 8vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 12px 0 8px; }
.side-desc { margin: 0; font-weight: 600; color: var(--ink-2); }
.side-base { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.versus .hi .side-base { opacity: .85; }

.statement { margin: 36px 0; padding: 64px 0; background: var(--char-3); color: #fff; position: relative; overflow: hidden; }
.statement::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--a); }
.statement p { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.22; letter-spacing: -.018em; font-weight: 800; margin: 0; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--a-soft); border-radius: var(--r-lg); padding: 30px 34px; margin: 26px auto; max-width: 52rem; }
.c-num { font-size: clamp(56px, 8vw, 86px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--a-ink); }
.c-txt { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.45; }

.pullquote { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.3; letter-spacing: -.02em; font-weight: 700; margin: 36px auto; padding: 8px 24px 8px 30px; border-left: 8px solid var(--a); max-width: var(--measure); }
.pullquote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.matrix-block { padding: 28px 0; }
.matrix-block .wrap, .rank, .evidence { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px; max-width: 60rem; margin: 0 auto; }
.rank-title, .ev-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; display: flex; justify-content: space-between; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.rank-title .preview-tag { flex: none; }
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(8px, 1fr)); gap: 3px; }
.dot { aspect-ratio: 1; border-radius: 50%; background: var(--line-2); transition: background .4s calc(var(--i) * .15ms), transform .4s; }
.dot.on { background: var(--a); }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.matrix-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.matrix-caption { color: var(--ink-2); margin: 0; font-weight: 500; }

.rank-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-row .nm { font-weight: 700; line-height: 1.3; grid-row: 1; }
.rank-row .vl { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; grid-row: 1; letter-spacing: -.01em; }
.rank-row .bg { grid-column: 1 / -1; grid-row: 2; height: 12px; width: 0; background: var(--a); border-radius: 6px; transition: width 1s cubic-bezier(.2,.8,.25,1); box-shadow: 0 0 0 0 transparent; }
.rank-row::after { content: ""; grid-column: 1 / -1; grid-row: 2; height: 12px; border-radius: 6px; background: var(--bg); z-index: -1; }
.rank-row { isolation: isolate; }
.revealed .rank-row .bg, .rank-row.show .bg { width: var(--w); }
.rank-row.muted .bg { background: var(--line-2); }
.rank-row.muted .nm, .rank-row.muted .vl { color: var(--ink-2); }
.rank-note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; font-weight: 600; }

.method { padding: 48px 0; margin-top: 40px; border-top: 1px solid var(--line); }
.method h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.method p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

.next { padding: 20px 0 80px; }
.next-label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.next-link { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow); border-top: 8px solid var(--a); transition: transform .2s, box-shadow .2s; }
.next-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.next-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.next-arrow { margin-left: 10px; color: var(--a-ink); }
.next-sub { margin: 10px 0 0; color: var(--ink-2); }

/* step charts, split bars, role table (story pages) */
.steps { display: flex; align-items: flex-end; gap: 12px; height: 300px; margin: 16px 0 0; }
.step { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.step-bar { background: var(--a); border-radius: 12px 12px 4px 4px; min-height: 4px; transition: height 1s cubic-bezier(.2,.8,.25,1); }
.step.flat .step-bar { background: var(--line-2); }
.step-val { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.step-lab { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); min-height: 44px; font-weight: 600; }
.step-lab b { display: block; color: var(--ink); font-size: 13px; }
.step-lab small { font-size: 11px; }
.split { margin: 28px 0; display: flex; flex-direction: column; gap: 24px; }
.split-row .sl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; font-weight: 600; }
.split-row .sl b { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 800; }
.split-bar { display: flex; height: 48px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.split-bar span { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; transition: width .8s cubic-bezier(.2,.8,.25,1); }
.split-bar .ft { background: var(--a) !important; color: var(--ink) !important; }
.split-bar .pt { background: var(--a-soft) !important; color: var(--a-ink) !important; }
.split-bar .unpaid { background: var(--lead-soft) !important; color: var(--ink-2) !important; }
.split-key { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.split-key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.roles { margin: 28px 0; }
.role-row { display: grid; grid-template-columns: 1fr 140px 100px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.role-row:last-child { border-bottom: 1px solid var(--line); }
.role-nm { font-weight: 700; }
.role-nm small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.gbar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; }
.gbar .m { background: var(--vol) !important; }
.gbar .f { background: var(--fam) !important; }
.role-pay { text-align: right; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.role-pay.none { font-size: 13px; color: var(--ink-3); font-weight: 600; }
@media (max-width: 640px) {
  .versus { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .matrix-block .wrap, .rank, .evidence { padding: 20px; border-radius: var(--r); }
  .steps { height: 220px; gap: 6px; }
  .step-val { font-size: 12.5px; }
  .step-lab { font-size: 10.5px; }
  .step-lab b { font-size: 11px; }
  .role-row { grid-template-columns: 1fr 80px 78px; gap: 10px; }
  .role-pay { font-size: 16px; }
  .prose p { font-size: 17.5px; }
}

/* sizer: one figure explorable across church sizes (story.js buildSizers) */
.sizer { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 30px 22px; max-width: 60rem; margin: 28px auto; }
.sz-read { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; min-height: 76px; }
.sz-num { font-size: clamp(56px, 8vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.sz-txt { font-size: 19px; font-weight: 700; line-height: 1.35; max-width: 28rem; }
.sz-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 240px; align-items: end; }
.sz-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border: 0; background: none; cursor: pointer; padding: 0; gap: 6px; }
.sz-v { font-weight: 800; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.sz-bar { display: block; height: var(--h); min-height: 6px; background: var(--a-soft); border-radius: 14px 14px 6px 6px; transition: background .2s, height .8s cubic-bezier(.2,.8,.25,1); box-shadow: inset 0 0 0 2px var(--a); }
.sz-col:hover .sz-bar { background: var(--a); opacity: .7; }
.sz-col[aria-pressed="true"] .sz-bar { background: var(--a-fill); box-shadow: none; }
.sz-l { font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.25; min-height: 2.5em; }
.sz-unit { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-align: center; letter-spacing: .03em; }
@media (max-width: 560px) { .sizer { padding: 20px 16px; } .sz-cols { gap: 5px; height: 200px; } .sz-v { font-size: 12.5px; } .sz-l { font-size: 11px; } .sz-txt { font-size: 16.5px; } }

/* mid-article survey nudge (injected by site.js into narrative pages) */
.gr-nudge { max-width: 52rem; margin: 40px auto; padding: 0 24px; }
.gr-nudge .in { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--char-3); color: #fff; border-radius: var(--r-lg); padding: 24px 28px; position: relative; overflow: hidden; }
.gr-nudge .in::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripe); }
.gr-nudge b { display: block; font-size: 20px; letter-spacing: -.02em; }
.gr-nudge span { color: #C9CED3; font-size: 15px; }

/* ---------------------------------------------------------------
   Chart primitives shared by home, explorer, and stories (grdata.js)
   --------------------------------------------------------------- */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 58px; gap: 12px; align-items: center; font-size: 14.5px; }
.bar-row .lb { font-weight: 600; color: var(--ink); line-height: 1.3; }
.bar-row .tr { height: 26px; background: var(--bg); border-radius: 9px; overflow: hidden; position: relative; }
.bar-row .fl { position: absolute; inset: 0 auto 0 0; background: var(--c, var(--a)); border-radius: 9px; transition: width .7s cubic-bezier(.2,.8,.25,1); }
.bar-row .vl { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.cmp .fl { opacity: .95; }
.bar-row .ghost { position: absolute; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--ink); opacity: .75; transition: left .7s cubic-bezier(.2,.8,.25,1); }
.bar-row button.lb { background: none; border: 0; text-align: left; padding: 0; cursor: pointer; }
@media (max-width: 560px) {
  .bars { gap: 14px; }
  .bar-row { grid-template-columns: 1fr 52px; row-gap: 5px; }
  .bar-row .lb { grid-column: 1 / -1; }
  .bar-row .tr { height: 22px; }
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 260px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; background: var(--line-2); transition: background .3s calc(var(--k) * 12ms); }
.waffle i.on { background: var(--a); }

.seg { display: inline-flex; background: var(--bg); border-radius: var(--r-pill); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31,35,40,.12); }

.field-select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23454C55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 38px 10px 14px; font-weight: 600; font-size: 15px; max-width: 100%; cursor: pointer; }
.field-select:hover { border-color: var(--ink-3); }
