/* ====================================================================
   Give / Donations page — slate redesign component styles
   Ported from design_handoff_give/give.css (Claude Design handoff,
   2026-06-02). Pure CONSUMER of the token system in
   extensions/index_new/styles.css (--accent/--brand/--surface/--text-x/
   --sp-x/--radius-x/--shadow-card, .container/.section/.section-head/
   .eyebrow/.btn). The .gv-x CSS here is hand-authored and arrives via
   <link> after index_new/styles.css (it is NOT compiled by the CSS
   Builder). All page rules use the unique .gv- prefix so they never leak
   into the surrounding member chrome.

   Slate + Coral palette: --accent is charcoal-blue, --brand is coral.
   Coral (--brand) carries the page's "support / generosity" warmth.
   ==================================================================== */

/* ---------- Root + in-app shell offset ----------
   Logged-out: .gv-root is the full-width marketing surface (marketing nav
   + footer baked into the body).
   Logged-in: .gv-root.gv-inapp clears the fixed member-nav chrome —
   60px icon rail + 224px give secondary nav = 284px, plus the 68px top bar.
   Breakpoints mirror home_loggedin/secondary_nav.css (secondary nav hides
   below 1180px to icon-rail-only; both rails hide below 880px). */
.gv-root { min-height: 100%; }

/* ---------- Local page tokens ----------
   --gv-on-fill: text/initials sitting ON a coloured avatar gradient fill —
   stays white in both themes (do NOT use --brand-fg, which flips dark).
   --gv-av3-a: decorative avatar-gradient stop (cover-art); static, no dark
   override, mirroring the practice_history --ph-v* decorative palette. */
.mv-root.gv-root {
  --gv-on-fill: #FFFFFF;
  --gv-av3-a: #6B8AA8;
}

.mv-root.gv-inapp {
  margin-left: 284px;
  padding-top: 68px;
  min-height: calc(100vh - 68px);
}
@media (max-width: 1180px) { .mv-root.gv-inapp { margin-left: 60px; } }
@media (max-width: 880px)  { .mv-root.gv-inapp { margin-left: 0; } }
/* iPad-portrait gutter fix: rail off-canvas via tlp- (768–1180px portrait); the reset above only fires <=880, so re-assert across the full tablet-portrait range (iPad Pro 12.9" = 1024px). Landscape keeps its rail. */
@media only screen and (min-device-width: 768px) and (max-device-width: 1180px) and (orientation: portrait) { .mv-root.gv-inapp { margin-left: 0; } }
/* track the fixed top bar height (top_row: 68px desktop / 64px tablet / 60px phone) */
@media (max-width: 768px) { .mv-root.gv-inapp { padding-top: 64px; } }
@media (max-width: 560px) { .mv-root.gv-inapp { padding-top: 60px; } }

/* ====================================================================
   HERO — appeal on the left, donation card on the right
   ==================================================================== */
.gv-hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: var(--sp-16);
  align-items: center;
  padding: var(--sp-20) 0 var(--sp-16);
}
.gv-hero-copy .eyebrow { display: inline-block; margin-bottom: var(--sp-5); }
.gv-hero-copy h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.gv-hero-copy h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.gv-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 480px;
  margin-top: var(--sp-5);
}
.gv-hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.gv-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.gv-chip .ic { color: var(--brand); display: flex; }
.gv-hero-social {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.gv-av-stack { display: flex; }
.gv-av-stack .av {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--gv-on-fill); font-weight: 600; font-size: 12px;
}
.gv-av-stack .av:first-child { margin-left: 0; }
.gv-av-stack .av.a2 { background: linear-gradient(135deg, var(--accent), var(--brand)); }
.gv-av-stack .av.a3 { background: linear-gradient(135deg, var(--gv-av3-a), var(--brand)); }
.gv-hero-social .txt { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.gv-hero-social .txt strong { color: var(--text-1); font-weight: 600; }

/* ====================================================================
   DONATION CARD
   ==================================================================== */
.gv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-elev);
  position: relative;
}
.gv-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.gv-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.gv-secure-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.gv-field { margin-bottom: var(--sp-5); }
.gv-field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* frequency segmented control */
.gv-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
}
.gv-seg-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.gv-seg-btn:hover { color: var(--text-1); }
.gv-seg-btn.active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.gv-seg-btn .save {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-top: 1px;
}

/* amount grid */
.gv-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gv-amt {
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  transition: all .14s;
  letter-spacing: -0.01em;
}
.gv-amt:hover { border-color: var(--brand); }
.gv-amt.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.gv-amt.other {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}
/* custom amount input row */
.gv-custom {
  display: flex; align-items: center;
  margin-top: 8px;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 16px;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.gv-custom .cur {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-3);
  margin-right: 4px;
}
.gv-custom input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  padding: 13px 0;
  width: 100%;
}
.gv-custom input::placeholder { color: var(--text-muted); }
.gv-custom .per { font-size: 14px; color: var(--text-3); font-family: var(--font-sans); font-weight: 500; }

/* impact line */
.gv-impact {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: var(--sp-5);
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.gv-impact .ic {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}
.gv-impact strong { color: var(--text-1); font-weight: 600; }

/* primary action */
.gv-card .gv-continue {
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-5);
  padding: 16px 22px;
  font-size: 15px;
  text-decoration: none;
}
.gv-card .gv-continue[disabled] { opacity: 0.65; cursor: default; }

/* summary line above CTA */
.gv-summary {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.gv-summary .lbl { font-size: 13px; color: var(--text-3); }
.gv-summary .amt {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
}
.gv-summary .amt .per {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}

/* payment methods row */
.gv-pay {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.gv-pay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--surface);
}
.gv-pay-chip .ic { display: flex; color: var(--success); }

/* sign-in gate (logged-out) */
.gv-gate {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.gv-gate-note {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}
.gv-gate-note .ic { color: var(--accent); flex-shrink: 0; margin-top: 1px; display: flex; }
.gv-gate-note strong { color: var(--text-1); font-weight: 600; }
.gv-gate-create {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: var(--sp-4);
}
.gv-gate-create a { color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: none; }
.gv-gate-create a:hover { text-decoration: underline; }

/* LLC honesty microcopy */
.gv-fineprint {
  margin-top: var(--sp-4);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Active-donor "thank you" state (preserves real behavior) ---------- */
.gv-thanks { text-align: center; }
.gv-thanks .badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
}
.gv-thanks h3 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.gv-thanks .sub { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: var(--sp-5); }
.gv-thanks .sub strong { color: var(--text-1); font-weight: 600; }
.gv-thanks .more-q { font-size: 13px; color: var(--text-3); }
.gv-thanks .more-link {
  -webkit-appearance: none;
  appearance: none; border: 0; background: transparent;
  color: var(--brand); font-weight: 600; font-size: 13px;
  cursor: pointer; margin-top: 2px; font-family: var(--font-sans);
}
.gv-thanks .more-link:hover { text-decoration: underline; }
.gv-onetime {
  text-align: left;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

/* ====================================================================
   BE ONE OF 100 — supporter goal
   ==================================================================== */
.gv-goal {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.gv-goal-visual {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-5);
}
.gv-ring { position: relative; width: 240px; height: 240px; }
.gv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gv-ring .track { stroke: var(--border-strong); opacity: 0.5; }
.gv-ring .bar { stroke: var(--brand); transition: stroke-dashoffset 1s ease; }
.gv-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gv-ring-center .num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.gv-ring-center .of {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.gv-goal-avs { display: flex; align-items: center; }
.gv-goal-avs .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-section);
  margin-left: -9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--gv-on-fill); font-weight: 600; font-size: 11px;
}
.gv-goal-avs .av:first-child { margin-left: 0; }
.gv-goal-avs .more {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-section);
  margin-left: -9px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-2);
}

.gv-goal-copy .eyebrow { display: inline-block; margin-bottom: var(--sp-4); }
.gv-goal-copy h2 {
  font-size: 48px;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.gv-goal-copy h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
.gv-goal-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: var(--sp-4);
}
.gv-goal-bar {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: var(--sp-6) 0 var(--sp-3);
  max-width: 540px;
}
.gv-goal-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: inherit;
}
.gv-goal-barmeta {
  display: flex; justify-content: space-between;
  max-width: 540px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: var(--sp-6);
}
.gv-goal-barmeta strong { color: var(--text-1); font-weight: 600; }
.gv-goal-copy .btn { text-decoration: none; }

/* ====================================================================
   WHERE YOUR GIFT GOES — impact cards
   ==================================================================== */
.gv-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}
.gv-impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
}
.gv-impact-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.gv-impact-card:nth-child(2) .ic { background: var(--accent-soft); color: var(--accent); }
.gv-impact-card:nth-child(3) .ic { background: var(--success-soft); color: var(--success); }
.gv-impact-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.012em;
}
.gv-impact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ====================================================================
   MISSION MOMENT — verse + photo
   ==================================================================== */
.gv-mission {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--sp-16);
  align-items: center;
}
.gv-mission .eyebrow { display: inline-block; margin-bottom: var(--sp-4); }
.gv-mission h2 {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.gv-mission-body { display: flex; flex-direction: column; gap: var(--sp-4); }
.gv-mission-body p { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.gv-verse {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.gv-verse blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-1);
}
.gv-verse blockquote em { color: var(--brand); }
.gv-verse cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}
.gv-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--brand-soft), var(--accent-soft));
}
.gv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ====================================================================
   FAQ — accordion
   ==================================================================== */
.gv-faq { max-width: 820px; margin: 0 auto; }
.gv-faq-item { border-bottom: 1px solid var(--border); }
.gv-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  background: transparent;
  border: 0;
  padding: var(--sp-5) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
}
.gv-faq-q .chev {
  flex-shrink: 0;
  color: var(--text-3);
  display: flex;
  transition: transform .2s;
}
.gv-faq-item.open .gv-faq-q .chev { transform: rotate(180deg); color: var(--brand); }
.gv-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease, padding .28s ease;
}
.gv-faq-item.open .gv-faq-a { max-height: 600px; padding-bottom: var(--sp-5); }
.gv-faq-a p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
}

/* ====================================================================
   In-app density tweaks (logged-in)
   ==================================================================== */
.mv-root.gv-inapp .container { max-width: 1080px; }
.mv-root.gv-inapp .gv-hero { padding-top: var(--sp-12); }
.mv-root.gv-inapp .gv-hero-copy h1 { font-size: 52px; }
.mv-root.gv-inapp .gv-goal-copy h2 { font-size: 42px; }
.mv-root.gv-inapp .gv-ring { width: 210px; height: 210px; }
.mv-root.gv-inapp .gv-ring-center .num { font-size: 56px; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 980px) {
  .gv-hero, .gv-goal, .gv-mission { grid-template-columns: 1fr; gap: var(--sp-10); }
  .gv-impact-grid { grid-template-columns: 1fr; }
  .gv-goal-visual { order: -1; }
}
@media (max-width: 768px) {
  .gv-hero-copy h1, .mv-root.gv-inapp .gv-hero-copy h1 { font-size: 40px; }
  .gv-goal-copy h2, .mv-root.gv-inapp .gv-goal-copy h2 { font-size: 32px; }
  .gv-mission h2 { font-size: 32px; }
  .gv-lede { font-size: 17px; }
}
@media (max-width: 560px) {
  .gv-hero-copy h1, .mv-root.gv-inapp .gv-hero-copy h1 { font-size: 32px; }
  .gv-card { padding: var(--sp-5); }
  .gv-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gv-ring, .mv-root.gv-inapp .gv-ring { width: 190px; height: 190px; }
  .gv-ring-center .num, .mv-root.gv-inapp .gv-ring-center .num { font-size: 48px; }
}

/* Phone portrait: hide the hero eyebrow/pill above the main H1 (section eyebrows stay). */
@media (max-width: 560px) { .mv-root .gv-hero .eyebrow { display: none !important; } }
