/* ==========================================================================
   Pray and Obey Ministries
   Design tokens and component styles. Hand authored, no framework.
   ========================================================================== */

:root {
  /* Brand palette (from the Pray and Obey brand guide) */
  --navy: #0D2D5C;
  --navy-700: #123870;
  --navy-900: #071B39;
  --gold: #D4A017;
  --gold-soft: #E8C766;
  --flame: #C8102E;
  --flame-700: #A50D26;
  --cream: #F7F2E6;        /* brand cream, retained for the logo lockup only */
  --cream-200: #EFE8D6;
  --white: #FFFFFF;
  --tint: #F2F5FA;         /* light blue surface, derived from navy */
  --tint-200: #E7ECF5;     /* light blue border */

  /* Derived text tones. Gold never carries text on light backgrounds:
     contrast is 2.1:1. It is used for rules, fills, and text on navy only. */
  --ink: #0D2D5C;
  --ink-muted: #3D4A5C;
  --ink-soft: #6B7684;
  --line: #DCE3EE;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --font: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.4rem, 5.2vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.7rem;

  /* Layout */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --section-y: clamp(64px, 8vw, 116px);

  --shadow-sm: 0 2px 10px rgba(13, 45, 92, 0.06);
  --shadow-md: 0 14px 34px rgba(13, 45, 92, 0.10);
  --shadow-lg: 0 26px 64px rgba(13, 45, 92, 0.16);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; line-height: 1.3; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--flame); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
}
.skip-link:focus { left: 16px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Signature: eyebrow with flanking gold rules.
   Echoes the "— MINISTRIES —" lockup in the logo. Used on every section.
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 18px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  width: 26px;
  height: 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  height: 5px;
}

.eyebrow--start::before { width: 18px; }
.eyebrow--start::after { display: none; }

.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light::before,
.eyebrow--light::after { border-color: var(--gold); }

.accent { color: var(--flame); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--flame); color: var(--white); }
.btn--primary:hover { background: var(--flame-700); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--tint); color: var(--navy); }

.btn--block { width: 100%; }

.btn--danger { background: var(--flame); color: var(--white); }
.btn--danger:hover { background: var(--flame-700); color: var(--white); }
.btn--lg { padding: 16px 32px; font-size: 0.88rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--flame);
}
.textlink span { transition: transform .18s ease; display: block; }
.textlink svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }
.textlink:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}

.nav.is-scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand { flex: 0 0 auto; }
.nav__brand img { width: 186px; height: auto; display: block; }

.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 11px 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

[hidden] { display: none !important; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.nav__mobile a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a.btn { border-bottom: 0; margin-top: 14px; color: var(--white); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
main > .section:last-child { padding-bottom: var(--section-y); }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--tint); }
.section--divide { border-top: 1px solid var(--line); }

/* Surfaces invert on tinted sections so cards stay readable either way. */
.section--tint .card,
.section--tint .pillar,
.section--tint .faq__item { background: var(--white); }

/* Surfaces on navy sections: translucent white, so they read as raised
   panels rather than a second flat color. */
.section--navy .card,
.section--navy .pillar,
.section--navy .faq__item {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}
.section--navy .pillar p { color: var(--gold-soft); }

.section--navy .faq__item[open] {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
}
.section--navy .faq__item summary { color: var(--white); }
.section--navy .faq__answer { color: rgba(255, 255, 255, 0.78); }
.section--navy .faq__sign::before,
.section--navy .faq__sign::after { background: var(--white); }

/* Navy buttons disappear on navy. Invert them. */
.section--navy .btn--navy { background: var(--white); color: var(--navy); }
.section--navy .btn--navy:hover { background: var(--tint); color: var(--navy); }

/* Mission photo needs a rim on navy so it does not bleed into the section. */
.section--navy .frame { box-shadow: 0 26px 64px rgba(0, 0, 0, .32); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__head { max-width: 700px; margin-bottom: 46px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--ink-muted); font-size: 1.03rem; }
.section--navy .section__head p { color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(46px, 5.5vw, 84px) 0 clamp(64px, 7vw, 104px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(13,45,92,.07), rgba(13,45,92,0) 68%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.1vw, 3.35rem);
  text-wrap: balance;
}

.hero__body {
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero__body p {
  font-size: 0.98rem;
  line-height: 1.68;
  margin-bottom: 0.85rem;
}
.hero__body p:last-child { margin-bottom: 0; }

/* First paragraph carries the identity statement, so it leads. */
.hero__lead {
  font-size: 1.12rem !important;
  line-height: 1.55 !important;
  color: var(--ink);
  font-weight: 500;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  max-width: 42ch;
}

/* Image card with floating labels */
.hero__media { position: relative; }
@media (min-width: 901px) {
  .hero__media { position: sticky; top: 96px; }
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.2;
  background:
    linear-gradient(150deg, rgba(13,45,92,.92), rgba(13,45,92,.62)),
    var(--tint-200);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__photo .photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.hero__photo .photo-fallback img { width: 96px; height: auto; opacity: .9; }

/* --------------------------------------------------------------------------
   Mission (image left, copy right)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }

.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}
.frame .photo-fallback img { width: 104px; height: auto; opacity: .9; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.pillar {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.pillar h3 {
  font-size: 0.96rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.pillar p { font-size: var(--fs-small); color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Focus areas
   -------------------------------------------------------------------------- */

.focus__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: 44px;
}
.focus__intro p { font-size: 1.02rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.card h3 { margin-bottom: 8px; font-size: 1.02rem; }
.card p { font-size: var(--fs-small); color: var(--ink-muted); }

.card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.card--wide .card__icon { margin-bottom: 0; }
.card--wide h3 { margin-bottom: 4px; }
.card--wide .textlink { color: var(--navy); white-space: nowrap; }
.card--wide .textlink:hover { color: var(--flame); }

/* --------------------------------------------------------------------------
   Process (navy band)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  border-top: 3px solid var(--line-dark);
  padding-top: 22px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 46px; height: 3px;
  background: var(--gold);
}
.step__num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: var(--fs-small); color: rgba(255,255,255,.76); }

/* --------------------------------------------------------------------------
   Criteria
   -------------------------------------------------------------------------- */

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.checklist svg {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  stroke: var(--flame);
  fill: none;
  stroke-width: 2.2;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.criteria-grid .note-box { margin-top: 0; }
.criteria-grid > .checklist { gap: 18px; padding-top: 4px; }
#criteria .verse-ref { margin-bottom: 18px; }
#what-we-fund .verse-ref { margin-bottom: 22px; }
.criteria-grid > .checklist li { font-size: 1rem; }

.note-box {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 30px;
}
.note-box h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.note-box .checklist li { color: rgba(255,255,255,.8); font-size: var(--fs-small); }
.note-box .checklist svg { stroke: var(--gold); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 820px; margin: 0 auto; }

.faq__item {
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--gold); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__sign {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  position: relative;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
}
.faq__sign::before { width: 11px; height: 2px; }
.faq__sign::after { width: 2px; height: 11px; transition: transform .2s ease; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); }

.faq__answer { padding: 0 24px 22px; font-size: 0.95rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 58%, #1B4A8A 100%);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5vw, 62px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(212,160,23,.30), rgba(212,160,23,0) 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  padding: clamp(52px, 6vw, 84px) 0 clamp(60px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: -120px; top: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212,160,23,.22), rgba(212,160,23,0) 70%);
}
.page-head h1 { color: var(--white); max-width: 16ch; position: relative; z-index: 1; }
.page-head p { color: rgba(255,255,255,.8); max-width: 56ch; position: relative; z-index: 1; }

.form-shell {
  max-width: 860px;
  margin: -48px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 3;
}

.fieldset { border: 0; padding: 0; margin: 0 0 38px; }
.fieldset:last-of-type { margin-bottom: 26px; }

.fieldset legend {
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flame);
  padding: 0 0 16px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 22px;
  width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  align-items: end;
}
.field-row--single { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
}
.field .req { color: var(--flame); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .16s ease, background-color .16s ease;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--navy);
  outline: 2px solid rgba(13,45,92,.16);
  outline-offset: 0;
}

.checkgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkgrid--3 { grid-template-columns: repeat(3, 1fr); }
.checkgrid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.checkgrid label:hover { border-color: var(--gold); }
.checkgrid input { accent-color: var(--flame); margin-top: 3px; flex: 0 0 auto; }
.checkgrid label:has(input:checked) {
  border-color: var(--navy);
  background: var(--white);
  color: var(--navy);
}

/* Section subheads inside a fieldset */
.subhead {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 34px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fieldset__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 62ch;
}

/* Grant budget table */
.budget {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0 8px;
}
.budget__head,
.budget__row,
.budget__foot {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.budget__head span {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 14px;
}
.budget__row input {
  border: 0;
  border-radius: 0;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  padding: 12px 14px;
  width: 100%;
}
.budget__row input:focus {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  background: var(--tint);
}
.budget__foot span,
.budget__foot strong {
  background: var(--tint);
  padding: 13px 14px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
}
.budget__foot strong { text-align: left; }

/* Document upload */
.upload { position: relative; }

/* The native control is hidden but still focusable, so keyboard and screen
   reader users get the real input. */
.upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload__face {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tint);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.upload:hover .upload__face,
.upload input:focus + .upload__face {
  border-color: var(--navy);
  background: var(--white);
}
.upload input:focus + .upload__face {
  outline: 2px solid rgba(13, 45, 92, .16);
}

.upload__cue {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.upload__state {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.45;
}
.upload__state.has-files { color: var(--navy); font-weight: 600; }

/* Attached documents in the portal */
.filelist { display: grid; gap: 8px; margin: 0; }
.filelist li { margin: 0; }
.filelist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
  transition: border-color .16s ease, background-color .16s ease;
}
.filelist a:hover { border-color: var(--navy); background: var(--white); }
.filelist span { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }

/* Certification */
.certify {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-muted);
  cursor: pointer;
  margin-bottom: 22px;
}
.certify input { accent-color: var(--flame); margin-top: 4px; flex: 0 0 auto; }
.certify:has(input:checked) { border-color: var(--navy); background: var(--white); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.flash-wrap { max-width: 860px; margin: 22px auto 0; padding: 0 var(--gutter); }
.flash {
  border-radius: 10px;
  padding: 13px 18px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.flash--error { background: #FBE7EA; border: 1px solid var(--flame); color: var(--flame-700); }
.flash--success { background: #E9F3E9; border: 1px solid #3F7A44; color: #2E5C33; }

/* --------------------------------------------------------------------------
   Simple centered page (thank you, 404)
   -------------------------------------------------------------------------- */

.centered {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section-y) var(--gutter);
}
.centered__inner { max-width: 560px; }
.centered__mark { width: auto; height: 82px; margin: 0 auto 26px; }
.centered .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
}

@media (max-width: 1100px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile { display: flex; }
  .nav__mobile[hidden] { display: none; }
}

@media (max-width: 900px) {
  .checkgrid--3 { grid-template-columns: 1fr 1fr; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: 8px; }

  .split { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .focus__intro { grid-template-columns: 1fr; align-items: start; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .checkgrid--3 { grid-template-columns: 1fr; }
  .checkgrid,
  .checkgrid--3 { grid-template-columns: 1fr; }
  .budget__head { display: none; }
  .budget__row,
  .budget__foot { grid-template-columns: 1fr; }
  .budget__row { padding-bottom: 1px; }
  .hero__ctas .btn { width: 100%; }
  .frame,
  .hero__photo { aspect-ratio: 4 / 4; }
}


/* ==========================================================================
   Team portal
   ========================================================================== */

/* Status colors. Green and amber are functional signals only and sit outside
   the brand palette on purpose: approved must not read as the same navy as
   everything else. */
:root {
  --ok: #2F7A46;
  --ok-soft: #E7F3EA;
  --warn: #9A6B12;
  --warn-soft: #FBF2DF;
}

.page-head--portal { padding-bottom: clamp(40px, 5vw, 64px); }

.portal__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.portal__bar h1 { margin-bottom: 4px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.portal__bar p { font-size: var(--fs-small); color: rgba(255,255,255,.7); }

.portal__user { display: flex; align-items: center; gap: 14px; }
.portal__user span { font-size: var(--fs-small); color: rgba(255,255,255,.75); font-weight: 600; }

.backlink {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.backlink:hover { color: var(--white); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--white);
}
.filter span {
  font-size: 0.72rem;
  background: var(--tint);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter.is-active span { background: rgba(255,255,255,.16); color: var(--white); }

/* Table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 18px;
}
.table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
  vertical-align: top;
}
.table tbody tr { cursor: pointer; transition: background-color .14s ease; }
.table tbody tr:hover { background: var(--tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.table__link { font-weight: 700; color: var(--navy); }
.table__sub { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 3px; }

/* Status pills */
.pill {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill--lg { padding: 7px 18px; font-size: 0.82rem; }
.pill--new { background: var(--tint); color: var(--navy); border: 1px solid var(--line); }
.pill--reviewed { background: var(--warn-soft); color: var(--warn); border: 1px solid #E8D5A8; }
.pill--approved { background: var(--ok-soft); color: var(--ok); border: 1px solid #BDDCC6; }
.pill--denied { background: #FBE7EA; color: var(--flame-700); border: 1px solid #EFC3CB; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
}
.empty h2 { font-size: 1.3rem; margin-bottom: 8px; }
.empty p { font-size: var(--fs-small); color: var(--ink-soft); }

/* Detail layout */
.detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.detail__side { position: sticky; top: 92px; display: grid; gap: 16px; }

.status-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 10px;
}
.status-card--quiet { background: var(--white); }
.status-card__meta { font-size: 0.76rem; color: var(--ink-soft); margin: 0; }
.status-card textarea {
  width: 100%;
  min-height: 110px;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  resize: vertical;
}
.status-card textarea:focus { border-color: var(--navy); outline: 2px solid rgba(13,45,92,.16); }

.status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
}
.status-option input { accent-color: var(--navy); }
.status-option:has(input:checked) { border-color: var(--navy); color: var(--navy); background: var(--tint); }
.status-option--approved:has(input:checked) { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.status-option--denied:has(input:checked) { border-color: var(--flame); color: var(--flame-700); background: #FBE7EA; }
.status-option--reviewed:has(input:checked) { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }

.factlist { display: grid; gap: 9px; }
.factlist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.factlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.factlist span { color: var(--ink-soft); }
.factlist strong { color: var(--navy); text-align: right; }

.detail__main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 38px);
}
.detail__heading {
  font-size: 0.76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--flame);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  margin: 38px 0 20px;
}
.detail__heading:first-child { margin-top: 0; }

.detail__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.detail__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail__label--mt { margin-top: 6px; }
.detail__value { font-size: 0.92rem; color: var(--ink); word-break: break-word; }

.detail__block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail__block .detail__label { margin-bottom: 7px; }
.detail__block p { font-size: 0.92rem; color: var(--ink-muted); white-space: pre-wrap; }

.budget-lines {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  color: var(--ink);
  margin: 0;
}

/* Sign in */
.auth { min-height: 74vh; display: grid; place-items: center; padding: 60px var(--gutter); }
.auth__card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.auth__mark { width: auto; height: 70px; margin: 0 auto 20px; }
.auth__card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.auth__intro { font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: 26px; }
.auth__form { display: grid; gap: 16px; text-align: left; margin-bottom: 18px; }
.auth__form input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.94rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
}
.auth__form input:focus { background: var(--white); border-color: var(--navy); outline: 2px solid rgba(13,45,92,.16); }
.auth__note { font-size: 0.76rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .detail__row { grid-template-columns: 1fr; gap: 4px; }
}


/* ==========================================================================
   Scripture reference
   ========================================================================== */

.verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Small gold rule, the same device used on section eyebrows. */
.verse-ref__mark {
  width: 22px;
  height: 5px;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  flex: 0 0 auto;
}

.verse-ref__cite { color: var(--navy); }
.verse-ref__ver { color: var(--ink-soft); font-weight: 600; letter-spacing: .08em; }

.section--navy .verse-ref__cite { color: var(--white); }
.section--navy .verse-ref__ver { color: rgba(255, 255, 255, .58); }

.section__head--center + .verse-ref { display: flex; justify-content: center; }

@media (max-width: 640px) {
  .verse-ref { font-size: 0.72rem; gap: 8px; }
}


/* ==========================================================================
   Our Impact: key themes, word cloud, impact statement
   ========================================================================== */

.themes {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  margin-bottom: 46px;
}

/* Numbered themes */
.themes__list {
  display: grid;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.theme__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 1px;
}

.theme h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.theme p {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  font-style: italic;
}

/* Word cloud. Rendered as text, not an image, so it stays sharp at any size
   and reflows on narrow screens. */
.themes__aside {
  align-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}

.cloud {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 874 / 550;
  margin: 0;
}

/* The seal anchors the top right, matching the client's arrangement. */
.cloud__badge {
  position: absolute;
  top: 0;
  right: 1%;
  width: 38%;
  height: auto;
  z-index: 1;
}

.cloud__words {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each word is placed by percentage, so the whole cloud scales with its
   container instead of being a fixed image. */
.cloud__word {
  position: absolute;
  top: var(--top);
  left: var(--left);
  font-size: var(--size);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cloud__word--navy { color: var(--navy); }
.cloud__word--muted { color: #9AA2B0; }

/* Impact statement panel */
.statement {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px);
  position: relative;
  overflow: hidden;
}
.statement::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212,160,23,.22), rgba(212,160,23,0) 70%);
  pointer-events: none;
}

.statement__body {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.6;
  color: var(--white);
  font-weight: 500;
  max-width: 70ch;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.statement__quote {
  margin: 0 0 22px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  max-width: 66ch;
  position: relative;
  z-index: 1;
}
.statement__quote blockquote {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--gold-soft);
}
.statement__quote figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.statement__quote figcaption span { color: rgba(255,255,255,.6); font-weight: 600; }

.statement__guided {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.78);
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.statement__notice {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255,255,255,.4);
  max-width: 74ch;
  position: relative;
  z-index: 1;
  margin: 0;
}

@media (max-width: 900px) {
  .themes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cloud {
    aspect-ratio: auto;
    container-type: normal;
  }
  .cloud__badge {
    position: static;
    display: block;
    width: 136px;
    margin: 0 auto 20px;
  }
  .cloud__words {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 14px;
  }
  /* Scale from the unitless weight so the size hierarchy survives the
     switch from the positioned layout to a simple flow. */
  .cloud__word {
    position: static;
    font-size: calc(var(--n) * 0.157rem + 0.27rem);
  }
}

/* ==========================================================================
   Colophon: copyright and staff portal link
   ========================================================================== */

.colophon {
  background: var(--navy);
  padding: 18px 0;
}

.colophon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.colophon p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .72);
}

.colophon__portal {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.colophon__portal:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

@media (max-width: 520px) {
  .colophon__inner { justify-content: center; text-align: center; }
}


/* ==========================================================================
   Portal: PDF action and delete panel
   ========================================================================== */

.table__actions { text-align: right; white-space: nowrap; }
.table__actions a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  background: var(--white);
}
.table__actions a:hover { border-color: var(--navy); background: var(--tint); }

/* Deletion is permanent, so it is folded away rather than sitting next to
   the everyday controls. */
.danger {
  border: 1px solid #EFC3CB;
  border-radius: var(--radius);
  background: #FDF6F7;
  padding: 4px 18px;
}
.danger[open] { padding-bottom: 20px; }

.danger summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--flame-700);
  list-style: none;
}
.danger summary::-webkit-details-marker { display: none; }
.danger summary::before { content: "\26A0  "; }

.danger p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.danger label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--flame-700);
  margin-bottom: 6px;
}

.danger input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: .08em;
  background: var(--white);
  border: 1px solid #EFC3CB;
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 12px;
  color: var(--ink);
}
.danger input:focus {
  border-color: var(--flame);
  outline: 2px solid rgba(200, 16, 46, .16);
}
