/*
 * Planned-giving landing pages (/donate-qcd, /donate-daf).
 *
 * Layout and colours follow Kim's mockup exactly (approved by Michelle,
 * Asana 1220676599739108): #126DAA blue, #0B2E4A ink, #CB4B00 orange
 * buttons. These deliberately differ from the design-system brand tokens;
 * any change to them is a Marketing decision, not a code cleanup.
 * Everything is scoped under .giving-landing so the site header/footer
 * (980head-resp.php / 980footer-modern.php) are untouched.
 */

.giving-landing {
  --gl-blue: #126DAA;
  --gl-blue-hover: #105789;
  --gl-ink: #0B2E4A;
  --gl-muted: #4A6174;
  --gl-tint: #E8F1F8;
  --gl-line: #B9D6ED;
  --gl-ask: #CB4B00;
  --gl-ask-hover: #A63D00;
  --gl-radius: 14px;

  color: var(--gl-ink);
  font-size: 17px;
  line-height: 1.6;
}

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

.giving-landing a { color: var(--gl-blue); }
.giving-landing a:hover { color: var(--gl-blue-hover); }

.giving-landing h1,
.giving-landing h2,
.giving-landing h3 { color: var(--gl-blue); font-weight: 800; line-height: 1.15; }
.giving-landing h1 { margin: 0 0 16px; font-size: clamp(35px, 4.5vw, 52px); }
.giving-landing h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 36px); }
.giving-landing h3 { margin: 12px 0 8px; font-size: 19px; color: var(--gl-ink); font-weight: 700; }
/* twp980-resp-v12.css forces heading weights with !important (h1/h2 500,
   h3 300), which beat the rules above on production and left card titles
   thin. Re-assert the mockup's weights the same way, scoped to our pages. */
.giving-landing h1,
.giving-landing h2 { font-weight: 800 !important; }
.giving-landing h3,
.giving-landing .gl-h3 { font-weight: 700 !important; }
.giving-landing p { margin: 0 0 16px; }

.gl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gl-section { padding: 64px 0; }
.gl-section--tint { background: var(--gl-tint); }
.gl-lead { max-width: 720px; }
.gl-muted { color: var(--gl-muted); }
.gl-small { font-size: 15px; }
.gl-nowrap { white-space: nowrap; }

/* Announcement strip and breadcrumb */
/* The site navbar (.navbar-fixed-top, 56px) is position: fixed, so the page
   has to clear it itself, the same way other pages pad their own wrapper
   (e.g. .stock-page). Scoped to main so the More Ways to Give popup, which
   also uses .giving-landing, is unaffected. scroll-margin keeps #how /
   #notify jump-link targets from landing under the navbar. */
main.giving-landing { padding-top: 56px; }
/* The site wraps every page in .container-fluid (30px !important side
   padding) > .row (-15px margins), leaving a 15px inset on both sides. Pull
   main out by the same 15px so tinted bands (strip, form section) run edge
   to edge; .container-fluid's overflow-x: hidden guards against any spill. */
main.giving-landing { margin-left: -15px; margin-right: -15px; }
main.giving-landing [id] { scroll-margin-top: 72px; }

.gl-strip { background: var(--gl-tint); font-size: 15px; padding: 10px 24px; text-align: center; }
.gl-strip a { font-weight: 700; margin-left: 8px; }
.gl-crumbs { font-size: 14px; color: var(--gl-muted); padding-top: 16px; }
.gl-crumbs a { color: var(--gl-muted); }
.gl-crumbs [aria-current] { color: var(--gl-ink); font-weight: 600; }

/* Buttons. --ask is the mockup's orange; --ghost is the outlined secondary. */
.giving-landing .gl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--gl-blue); background: var(--gl-blue); color: #fff;
}
.giving-landing .gl-btn:hover, .giving-landing .gl-btn:focus-visible { background: var(--gl-blue-hover); border-color: var(--gl-blue-hover); color: #fff; text-decoration: none; }
.giving-landing .gl-btn--ask { background: var(--gl-ask); border-color: var(--gl-ask); }
.giving-landing .gl-btn--ask:hover, .giving-landing .gl-btn--ask:focus-visible { background: var(--gl-ask-hover); border-color: var(--gl-ask-hover); }
.giving-landing .gl-btn--ghost { background: #fff; color: var(--gl-blue); }
.giving-landing .gl-btn--ghost:hover, .giving-landing .gl-btn--ghost:focus-visible { background: var(--gl-tint); color: var(--gl-blue-hover); }
.giving-landing .gl-btn--block { width: 100%; }
.giving-landing .gl-actions .gl-btn--ghost { color: var(--gl-ink); border-color: var(--gl-ink); }
.gl-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.gl-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 32px 0 80px; }
.gl-hero__copy { flex: 1 1 520px; min-width: 0; }
.gl-hero__img { flex: 1 1 420px; min-width: 0; }
.gl-eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gl-blue); }
.gl-tagline { font-weight: 700; font-size: 22px; line-height: 1.3; }
.gl-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; display: block; }
.gl-photo--square { aspect-ratio: 1 / 1; }

/* Cards and grids */
.gl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gl-card { background: #fff; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); padding: 24px; }
.gl-card--tint { background: var(--gl-tint); border-color: transparent; }
.gl-card--raised { box-shadow: 0 6px 24px rgba(11, 46, 74, 0.08); }
.gl-card p:last-child { margin-bottom: 0; }
.gl-icon { flex: none; color: var(--gl-blue); vertical-align: middle; } /* size comes from the width/height attributes */

/* Key facts that overlap the hero */
.gl-facts { margin-top: -40px; position: relative; }
.gl-fact__value { font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--gl-ink); }
.gl-fact__label { font-size: 15px; }

/* Steps */
.gl-steps-box { background: var(--gl-tint); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.gl-steps-box > * { flex: 1 1 380px; min-width: 0; }
.gl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.gl-steps li { display: flex; gap: 18px; }
.gl-steps__num {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--gl-blue); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.gl-steps strong { display: block; font-size: 17px; }

/* Our details (for the IRA administrator / DAF sponsor) */
.gl-details { margin: 0; display: grid; gap: 14px; }
.gl-details dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gl-muted); }
.gl-details dd { margin: 0; font-weight: 600; }
.gl-details--row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; gap: 20px 32px; }
/* Details on the left, copy button on the right, vertically centred; the
   button drops under the details when there is no room. */
.gl-details-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.gl-details-band .gl-details { flex: 1 1 560px; min-width: 0; }
.gl-details-band .gl-btn { flex: 0 0 auto; }

/* Sponsor tiles (DAF) */
.gl-sponsor { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--gl-ink); }
.gl-sponsor:hover { border-color: var(--gl-blue); color: var(--gl-ink); text-decoration: none; }
.gl-sponsor strong { font-size: 18px; }
.gl-sponsor__cta { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--gl-blue); }
.gl-linklist { columns: 2 260px; margin: 0 0 16px; padding-left: 20px; }
.gl-linklist li { margin-bottom: 8px; break-inside: avoid; }

/* Impact numbers */
.gl-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.gl-split > * { flex: 1 1 420px; min-width: 0; }
.gl-split--top { align-items: flex-start; }
.gl-stat__value { font-weight: 800; font-size: 32px; line-height: 1.2; color: var(--gl-ink); }
.gl-stat__label { font-size: 15px; color: var(--gl-muted); }
.gl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Four stats in a half-width column: a fixed 2x2 grid instead of auto-fit,
   which gave 3 + 1 and let "948,000+" overrun its card. */
.gl-stats .gl-stat__value { font-size: clamp(26px, 2.4vw, 32px); overflow-wrap: anywhere; }
.gl-callout { padding: 20px 24px; background: var(--gl-tint); border-radius: 12px; font-size: 16px; }

/* Gift notice form */
.gl-form-card { background: #fff; border-radius: 16px; padding: 32px; }
.gl-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gl-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.gl-form input[type="text"],
.gl-form input[type="email"],
.gl-form input[type="tel"],
.gl-form select,
.gl-form textarea {
  min-height: 46px; border: 1px solid var(--gl-muted); border-radius: 8px; padding: 10px 12px;
  font: inherit; font-weight: 400; color: var(--gl-ink); background: #fff; width: 100%;
}
.gl-form input:focus, .gl-form select:focus, .gl-form textarea:focus { outline: 3px solid rgba(18, 109, 170, 0.35); border-color: var(--gl-blue); }
.gl-form .gl-full { grid-column: 1 / -1; }
.gl-form .gl-check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.gl-form .gl-check input { width: 20px; height: 20px; }
.gl-field-error { color: #B42318; font-size: 14px; font-weight: 600; }
.gl-form [aria-invalid="true"] { border-color: #B42318; }
.gl-alert { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; background: #FEF3F2; color: #7A271A; font-size: 15px; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.gl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gl-thanks { text-align: center; padding: 32px 12px; }

/* Good to know + FAQ */
.gl-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.gl-checklist li { display: flex; gap: 12px; }
.gl-checklist svg { flex: 0 0 22px; margin-top: 3px; color: var(--gl-blue); }
.gl-faq { display: flex; flex-direction: column; gap: 12px; }
.gl-faq details { border: 1px solid var(--gl-line); border-radius: 12px; background: #fff; }
.gl-faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 17px;
}
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--gl-blue); }
.gl-faq details[open] summary::after { content: '\2212'; }
.gl-faq details p { margin: 0; padding: 0 20px 20px; font-size: 16px; }

/* Contact card */
.gl-contact { background: var(--gl-tint); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.gl-contact__who { display: flex; gap: 24px; align-items: center; flex: 1 1 420px; min-width: 0; }
.gl-contact__who img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.gl-contact__who h2 { margin: 0; font-size: 26px; color: var(--gl-ink); }
.gl-contact__links { display: flex; flex-direction: column; gap: 10px; }
.gl-contact__links a:not(.gl-btn) { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; color: var(--gl-ink); text-decoration: none; }
.gl-contact__links svg { color: var(--gl-blue); }

/* Other ways to give */
.gl-ways { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gl-ways a { text-decoration: none; color: var(--gl-ink); display: block; }
.gl-ways a:hover { border-color: var(--gl-blue); color: var(--gl-ink); }
.gl-ways strong { font-size: 17px; }
.gl-ways span { display: block; font-size: 15px; color: var(--gl-muted); margin-top: 4px; }
.giving-landing .gl-disclaimer { margin-top: 32px; font-size: 14px; color: var(--gl-muted); max-width: 860px; }

/* More Ways to Give panel (/other_ways_to_give and the #myModal popup) */
.gl-ways-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gl-ways-widget { flex: 0 1 380px; min-width: 0; background: var(--gl-tint); border-radius: 18px; padding: 28px; }
.gl-ways-widget__frame { min-height: 520px; }

/* Popup sizing: the mockup panel is ~1120px wide, wider than Bootstrap's modal-lg. */
.gl-ways-modal .modal-dialog { width: auto; max-width: 1120px; margin: 30px auto; padding: 0 12px; }
.gl-ways-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; position: relative; }
.gl-ways-modal .modal-body { padding: 32px; }
.gl-ways-modal__close.close {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; opacity: 1; font-size: 30px; line-height: 1; color: #0B2E4A;
}
.gl-ways-modal .gl-ways-head h2 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 6px; color: #126DAA; font-weight: 800; }
.gl-ways-main { flex: 1 1 520px; min-width: 0; }
.gl-ways-head { border-bottom: 1px solid var(--gl-line); padding-bottom: 20px; margin-bottom: 24px; }
.gl-ways-head h1 { font-size: clamp(30px, 3.5vw, 38px); margin-bottom: 6px; }
.gl-ways-head p { margin: 0; }
.giving-landing .gl-h3 { margin: 0 0 6px; font-size: 18px; color: var(--gl-ink); font-weight: 700; }
.gl-ways-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gl-ways-cards .gl-card { scroll-margin-top: 120px; }
.gl-card--feature { border: 2px solid var(--gl-blue); background: var(--gl-tint); }
.gl-card--feature:target { box-shadow: 0 0 0 4px rgba(18, 109, 170, 0.25); }
.gl-full-row { grid-column: 1 / -1; }
.gl-ways-planned { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.gl-ways-planned p { margin: 0; }
.gl-ways-ein { margin: 24px 0; background: var(--gl-tint); border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.gl-ways-ein strong { font-size: 22px; }
.gl-ways-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; font-size: 16px; }

@media (max-width: 640px) {
  .gl-steps-box, .gl-contact { padding: 28px 20px; }
  .gl-form-card { padding: 24px 18px; }
  .gl-hero { padding-bottom: 64px; }
  .gl-ways-modal .modal-body { padding: 56px 16px 20px; }
  .gl-ways-widget { padding: 20px 14px; }
}
