/* Our Vision (/vision): the presentation page for ministry partners.
   Diagrams are HTML, not SVG, so the text reflows and stays readable at 320px. */

.vz-hero { background: var(--ink); color: var(--scroll); border-bottom: 0; }
.vz-hero .lead { color: var(--muted-on-dark); max-width: 58ch; }
.vz-hero h1 { max-width: 12ch; }
.vz-toc { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; counter-reset: ch; }
.vz-toc li { counter-increment: ch; }
.vz-toc a { display: flex; gap: var(--s-3); align-items: baseline; min-height: 44px; padding: var(--s-3) var(--s-4); background: rgba(247, 243, 236, .06); color: var(--scroll); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .95rem; border-top: 3px solid transparent; }
.vz-toc a::before { content: counter(ch, decimal-leading-zero); color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.vz-toc a:hover { border-top-color: var(--gold); background: rgba(247, 243, 236, .1); }

/* Chapter heads */
.vz-ch { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 var(--s-3); }
.section--ink .vz-ch, .section--cedar .vz-ch { color: var(--gold); }
.vz-h { max-width: 20ch; }
.vz-intro { max-width: 62ch; }
.section--ink .vz-intro, .section--cedar .vz-intro { color: var(--muted-on-dark); }
.vz-src { font-size: .72em; vertical-align: super; line-height: 0; margin-left: .1em; }
.vz-src a { text-decoration: none; padding: 0 .15em; }

/* Stats on light */
.vz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-on-dark); margin-top: var(--s-7); }
.vz-stats > div { padding: var(--s-6) var(--s-5) var(--s-5) 0; border-right: 1px solid var(--line-on-dark); }
.vz-stats > div + div { padding-left: var(--s-5); }
.vz-stats > div:last-child { border-right: 0; }
.vz-stats .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--gold); margin: 0; }
.vz-stats .l { margin: var(--s-3) 0 0; color: var(--muted-on-dark); font-size: .95rem; line-height: 1.45; }

/* Scattered churches: many separate stacks */
.vz-alone { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-7); }
.vz-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
.vz-panel h3 { margin-top: 0; }
.vz-panel--shared { background: var(--cedar); color: var(--scroll); border-color: transparent; }
.vz-panel--shared .muted { color: var(--muted-on-dark); }
.vz-churches { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.vz-church { display: flex; flex-direction: column; gap: 3px; align-items: stretch; }
.vz-church i { display: block; height: 10px; background: var(--linen); }
.vz-church i:nth-child(2) { background: #DDD3C0; }
.vz-church i:nth-child(3) { background: #CFC3AB; }
.vz-church b { margin-top: var(--s-2); text-align: center; font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.vz-roof { width: 0; height: 0; margin: 0 auto 2px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 12px solid var(--stone); }
.vz-panel--shared .vz-roof { border-bottom-color: var(--gold); }
.vz-panel--shared .vz-church b { color: var(--muted-on-dark); }
.vz-shared-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: var(--s-5); }
.vz-shared-bar span { background: var(--gold); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-align: center; padding: .55rem .25rem; }
.vz-feeds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.vz-feeds i { display: block; width: 2px; height: 22px; margin: 0 auto; background: var(--gold); }
@media (max-width: 479px) { .vz-feeds { gap: var(--s-2); } }

/* Budget chart */
.vz-chart { margin-top: var(--s-6); display: grid; gap: var(--s-6); }
.vz-year h3 { font-size: var(--fs-h4); margin: 0 0 var(--s-3); }
.vz-bar { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-3); align-items: center; margin-bottom: var(--s-2); }
.vz-bar dt { font-size: .9rem; color: var(--stone); }
.vz-bar dd { margin: 0; display: flex; align-items: center; gap: var(--s-3); }
.vz-fill { height: 22px; background: var(--accent); width: calc(var(--v) * 22%); min-width: 3px; }
.vz-fill--cpi { background: var(--ink); }
.vz-num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; white-space: nowrap; }

/* Two-up numbers */
.vz-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.vz-pair .card { margin: 0; }
.vz-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); margin: 0 0 var(--s-3); }
.vz-meter { height: 10px; background: var(--linen); margin: var(--s-3) 0; position: relative; }
.vz-meter span { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); }

/* Product map */
.vz-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.vz-col { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c, var(--gold)); border-radius: var(--radius); padding: var(--s-5); }
.vz-col h3 { margin: 0 0 var(--s-2); font-size: 1.3rem; }
.vz-col > p { font-size: .92rem; color: var(--stone); margin: 0 0 var(--s-4); }
.vz-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.vz-col li { border-top: 1px solid var(--line); padding-top: var(--s-3); font-size: .92rem; line-height: 1.4; }
.vz-col li a, .vz-col li b { font-weight: 600; }
.vz-st { display: inline-block; margin-left: .35rem; font-family: var(--font-display); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .15rem .45rem; border-radius: var(--radius-pill); vertical-align: .12em; white-space: nowrap; }
.vz-st--live { background: var(--cedar); color: var(--scroll); }
.vz-st--soon { background: var(--accent-soft); color: var(--accent); }
.vz-st--plan { border: 1px solid var(--stone); color: var(--stone); }
.vz-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: .9rem; color: var(--stone); }

/* Hub: integration, not isolation */
.vz-hub { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-7); }
.vz-side h3 { font-size: var(--fs-h4); color: var(--gold); margin: 0 0 var(--s-3); font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.vz-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.vz-side li { border: 1px solid var(--line-on-dark); padding: .7rem .9rem; font-size: .92rem; border-radius: var(--radius); }
.vz-arrow { color: var(--gold); font-size: 1.6rem; line-height: 1; text-align: center; font-family: var(--font-display); }
.vz-arrow span { display: block; }
.vz-arrow .vz-down { display: none; }
.vz-core { background: var(--scroll); color: var(--ink); border-radius: var(--radius); padding: var(--s-5); text-align: center; position: relative; }
.vz-core::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--law) 0 20%, var(--history) 20% 40%, var(--poetry) 40% 60%, var(--major) 60% 80%, var(--minor) 80%); }
.vz-core img { width: 120px; height: auto; margin: var(--s-3) auto var(--s-3); display: block; }
.vz-core ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.vz-core li { background: var(--linen); padding: .65rem .4rem; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.vz-core p { margin: var(--s-3) 0 0; font-size: .85rem; color: var(--stone); }

/* Flywheel */
.vz-wheel { list-style: none; margin: var(--s-7) auto 0; padding: 0; position: relative; width: min(100%, 760px); aspect-ratio: 1 / .78; counter-reset: step; }
.vz-wheel::before { content: ""; position: absolute; inset: 14% 22%; border: 3px dashed var(--gold); border-radius: 50%; }
.vz-wheel li { position: absolute; width: 41%; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: var(--s-4); counter-increment: step; box-shadow: var(--shadow); }
.vz-wheel li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-family: var(--font-display); font-weight: 800; font-size: .85rem; margin-bottom: var(--s-2); }
.vz-wheel li b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .25rem; }
.vz-wheel li span { font-size: .9rem; color: var(--stone); line-height: 1.45; display: block; }
.vz-wheel li:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.vz-wheel li:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.vz-wheel li:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.vz-wheel li:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
.vz-wheel-c { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 24%; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .06em; }

/* Three arms */
.vz-arms { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--s-3); align-items: stretch; margin-top: var(--s-7); }
.vz-arm { background: rgba(247, 243, 236, .06); border: 1px solid var(--line-on-dark); border-top: 6px solid var(--c); border-radius: var(--radius); padding: var(--s-5); }
.vz-arm .k { font-family: var(--font-display); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-2); }
.vz-arm h3 { margin: 0 0 var(--s-3); }
.vz-arm p { color: var(--muted-on-dark); font-size: .95rem; margin: 0; }
.vz-arm ul { margin: var(--s-3) 0 0; padding-left: 1.1rem; color: var(--muted-on-dark); font-size: .92rem; }
.vz-arms .vz-arrow { align-self: center; }
.vz-powered { display: inline-flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); padding: .6rem 1rem; border: 1px solid var(--line-on-dark); border-radius: var(--radius-pill); font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; color: var(--muted-on-dark); }
.vz-powered a { color: var(--scroll); font-weight: 700; }

/* Money */
.vz-flow { margin-top: var(--s-7); display: grid; gap: var(--s-5); }
.vz-step { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4); align-items: start; }
.vz-step .n { width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; }
.vz-step h3 { margin: .35rem 0 var(--s-2); }
.vz-step p { margin: 0; color: var(--stone); }
.vz-split { display: flex; height: 64px; margin-top: var(--s-4); gap: 3px; }
.vz-split > div { flex: var(--p) 1 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: .95rem; padding: 0 .4rem; text-align: center; line-height: 1.1; }
.vz-split .give { background: var(--gold); color: var(--ink); }
.vz-split .save { background: var(--cedar); color: var(--scroll); }
.vz-split .team { background: var(--accent); color: var(--accent-fg); }
.vz-split-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.vz-split-key p { margin: 0; font-size: .92rem; color: var(--stone); }
.vz-split-key b { display: block; color: var(--ink); font-family: var(--font-display); }
.vz-be { height: 64px; margin-top: var(--s-4); background: repeating-linear-gradient(135deg, var(--linen) 0 10px, #E2D9C7 10px 20px); display: flex; align-items: center; padding: 0 var(--s-4); font-family: var(--font-display); font-weight: 700; }

/* Roadmap */
.vz-road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); position: relative; }
.vz-stage { border-top: 6px solid var(--c); background: #fff; border-radius: var(--radius); padding: var(--s-5); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vz-stage h3 { margin: 0 0 var(--s-3); }
.vz-stage ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s-2); font-size: .95rem; }

/* Partner CTA */
.vz-ask { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-6); }
.vz-ask h3 { color: var(--gold); font-size: var(--fs-h4); margin: 0 0 var(--s-3); }
.vz-ask ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s-2); color: var(--muted-on-dark); }
.vz-cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); align-items: center; }

/* Sources */
.vz-sources { font-size: .88rem; color: var(--stone); max-width: 80ch; padding-left: 1.4rem; }
.vz-sources li { margin-bottom: var(--s-2); }
.vz-sources li:target { background: var(--accent-soft); }

@media (max-width: 1023px) {
  .vz-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-stats > div:nth-child(2) { border-right: 0; }
  .vz-stats > div:nth-child(3) { padding-left: 0; }
  .vz-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); }
  .vz-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-hub { grid-template-columns: 1fr; }
  .vz-arrow .vz-right { display: none; }
  .vz-arrow .vz-down { display: block; }
  .vz-arms { grid-template-columns: 1fr; }
  .vz-pair { grid-template-columns: 1fr; }
  .vz-road { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .vz-alone, .vz-ask { grid-template-columns: 1fr; }
  .vz-map { grid-template-columns: 1fr; }
  .vz-bar { grid-template-columns: 1fr; gap: var(--s-1); }
  .vz-fill { width: calc(var(--v) * 18%); }
  .vz-wheel { aspect-ratio: auto; display: grid; gap: var(--s-3); }
  .vz-wheel::before, .vz-wheel-c { display: none; }
  .vz-wheel li { position: static; width: auto; transform: none !important; }
  .vz-split-key { grid-template-columns: 1fr; }
  .vz-split { height: auto; }
  .vz-split > div { min-height: 56px; font-size: .8rem; }
}
@media (max-width: 479px) {
  .vz-toc { grid-template-columns: 1fr; }
  .vz-stats { grid-template-columns: 1fr; }
  .vz-stats > div, .vz-stats > div + div { padding-left: 0; border-right: 0; border-top: 1px solid var(--line-on-dark); }
  .vz-churches { gap: var(--s-2); }
  .vz-church b { font-size: .6rem; letter-spacing: .04em; }
  .vz-core ul { grid-template-columns: 1fr; }
}

/* Contrast: Gold fails on Cedar and Gold Deep fails on Linen at this size */
.section--linen .vz-ch { color: var(--ink); }
.section--cedar .vz-ch, .vz-panel--shared .vz-ch, .section--cedar .vz-side h3 { color: var(--accent-on-dark); }
