/*
Theme Name: Giving Center
Theme URI: https://www.givingcenter.org/
Description: Giving Center child theme for Neve. Carries the whole Giving Center design system: navy/red/cream palette, Alegreya + Source Sans 3 type, banner heroes, four-step strips, FAQ accordions, CTA bands, and the shared header and footer.
Author: Giving Center
Template: neve
Version: 1.0.0
Text Domain: giving-center
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --gc-cream: #FBF8F3;
  --gc-sand: #F5F1E8;
  --gc-sand-deep: #F1EEE5;
  --gc-line: #E2DDD3;
  --gc-line-warm: #D8D2C6;
  --gc-navy: #10294A;
  --gc-navy-deep: #091830;
  --gc-navy-card: #17375F;
  --gc-navy-card-line: #26507F;
  --gc-blue: #14477F;
  --gc-red: #CE2027;
  --gc-red-deep: #A5161C;
  --gc-body: #44514A;
  --gc-muted: #5D6975;
  --gc-muted-deep: #68727C;
  --gc-on-navy: #D6E2EE;
  --gc-on-navy-soft: #BCCEE1;
  --gc-on-blue-soft: #C9DBEF;
  --gc-serif: Alegreya, Georgia, 'Times New Roman', serif;
  --gc-sans: 'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --gc-wrap: 1220px;
  --gc-gutter: 24px;
}

/* ==========================================================================
   2. Base — resets Neve's defaults back to the approved design
   ========================================================================== */
body,
.nv-single-page-wrap,
.neve-main {
  background: var(--gc-cream);
}

body {
  font-family: var(--gc-sans);
  color: var(--gc-body);
  -webkit-font-smoothing: antialiased;
}

.gc-page h1,
.gc-page h2,
.gc-page h3,
.gc-page h4 {
  margin: 0;
  font-family: var(--gc-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--gc-navy);
}

.gc-page p {
  margin: 0;
  text-wrap: pretty;
}

.gc-page p + p {
  margin-top: 16px;
}

.gc-page a {
  color: var(--gc-blue);
  text-decoration: none;
}

.gc-page a:hover,
.gc-page a:focus {
  color: var(--gc-red);
}

.gc-page img {
  max-width: 100%;
  height: auto;
}

/* Neve container overrides — sections handle their own width */
.gc-page .container,
.gc-page .nv-content-wrap {
  max-width: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Base typography for unclassed blocks.
   Written with :where() so its specificity is zero — every class rule below
   (.gc-prose, .gc-sub, .gc-stat__num, .gc-step__num, .gc-badge, .gc-banner h1)
   still wins. This is what stops Neve's Customizer typography reaching the
   page content.
   -------------------------------------------------------------------------- */
:where(.gc-page) {
  font-size: 17px;
  line-height: 1.62;
}

:where(.gc-page .gc-section, .gc-page .gc-cta-outer, .gc-page .gc-banner-cover) :where(h1) {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
}

:where(.gc-page .gc-section, .gc-page .gc-cta-outer) :where(h2) {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
}

:where(.gc-page .gc-section, .gc-page .gc-cta-outer) :where(h3) {
  font-size: 22px;
  line-height: 1.25;
}

:where(.gc-page .gc-section, .gc-page .gc-cta-outer) :where(h4) {
  font-size: 18px;
  line-height: 1.3;
}

:where(.gc-page .gc-section, .gc-page .gc-cta-outer) :where(p, li) {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--gc-body);
}

:where(.gc-page .gc-section) :where(h2 + p, h1 + p) {
  font-size: 18px;
}

:where(.gc-page .gc-section--navy) :where(p, li) {
  color: var(--gc-on-navy-soft);
}

:where(.gc-page .gc-cta) :where(p) {
  color: var(--gc-on-blue-soft);
}

/* --------------------------------------------------------------------------
   WordPress 6.x+ injects layout caps for constrained containers:
   :where(.is-layout-constrained) > * gets max-width: <theme content size> and
   auto side margins. That is what was squeezing the FAQ accordions into a
   ~455px centered column while their siblings sat at full section width.
   One class of specificity here beats WordPress's zero-specificity rule, and
   loses to every .gc-* rule further down, which is exactly what we want.
   -------------------------------------------------------------------------- */
.gc-page :where(.is-layout-constrained) > *,
.gc-page :where(.is-layout-flow) > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Vertical rhythm for headings that follow content — the inline margins from
   the original design were lost when sections became heading blocks. */
.gc-page .gc-section h2:not(:first-child) {
  margin-top: 54px;
}

.gc-page .gc-section h3:not(:first-child) {
  margin-top: 34px;
}

.gc-page .gc-section h2 + .gc-tiles,
.gc-page .gc-section h2 + .gc-logo-grid {
  margin-top: 26px;
}

.gc-page .gc-section .gc-tiles + h2,
.gc-page .gc-section .gc-logo-grid + h2,
.gc-page .gc-section .wp-block-columns + h2 {
  margin-top: 60px;
}

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

.gc-section {
  padding: 76px max(var(--gc-gutter), calc((100% - var(--gc-wrap)) / 2));
}

.gc-section--tight {
  padding: 68px max(var(--gc-gutter), calc((100% - var(--gc-wrap)) / 2)) 20px;
}

.gc-page .gc-section:not(.gc-section--navy):not(.gc-section--sand) + .gc-section:not(.gc-section--navy):not(.gc-section--sand) {
  padding-top: 0;
}

.gc-section--navy {
  background: var(--gc-navy);
  color: var(--gc-on-navy);
}

.gc-section--navy h2,
.gc-section--navy h3 {
  color: #FFFFFF;
}

.gc-lede {
  max-width: 38em;
}

.gc-h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
}

.gc-sub {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gc-on-navy-soft);
}

.gc-prose {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--gc-body);
}

.gc-prose--open {
  font-size: 18px;
  line-height: 1.62;
}

/* ==========================================================================
   3. Buttons and pills
   ========================================================================== */
.gc-btn {
  display: inline-block;
  background: var(--gc-red);
  color: #FFFFFF;
  font-family: var(--gc-sans);
  font-size: 17.5px;
  font-weight: 700;
  padding: 17px 34px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--gc-red-deep);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gc-btn:hover,
.gc-btn:focus {
  color: #FFFFFF;
  transform: translateY(-1px);
}

.gc-btn--sm {
  font-size: 16px;
  padding: 12px 22px;
  box-shadow: 0 2px 0 var(--gc-red-deep);
}

.gc-btn--block {
  width: 100%;
  padding: 17px 20px;
  text-align: center;
}

.gc-link-strong {
  font-weight: 700;
}

.gc-link-underline {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 3px;
}

.gc-link-underline:hover {
  color: #FFFFFF;
  border-bottom-color: var(--gc-red);
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.gc-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc-red);
}

.gc-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

/* ==========================================================================
   4. Banner hero
   ========================================================================== */
.gc-banner {
  position: relative;
  background: var(--gc-navy);
}

.gc-banner__img {
  display: block;
  width: 100%;
  height: clamp(370px, 36vw, 470px);
  object-fit: cover;
  object-position: 70% 50%;
}

.gc-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 45, 0.86) 0%, rgba(9, 24, 45, 0.66) 38%, rgba(9, 24, 45, 0.08) 66%, rgba(9, 24, 45, 0) 100%);
}

.gc-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.gc-banner__well {
  max-width: 20em;
}

.gc-banner h1 {
  margin-top: 20px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
  color: #FFFFFF;
}

.gc-banner__sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--gc-on-navy);
}

/* ==========================================================================
   5. Two-column intro, stats, form card
   ========================================================================== */
.gc-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 54px;
  align-items: start;
}

.gc-split h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
}

.gc-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--gc-line);
}

.gc-stat__num {
  font-family: var(--gc-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gc-blue);
}

.gc-stat__label {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gc-muted);
}

.gc-card {
  background: #FFFFFF;
  border: 1px solid var(--gc-line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 14px 34px rgba(16, 41, 74, 0.09);
  scroll-margin-top: 118px;
}

.gc-card h2 {
  font-size: 25px;
  line-height: 1.2;
}

.gc-card__note {
  margin-top: 9px;
  font-size: 15.5px;
  color: var(--gc-muted);
}

.gc-form-slot {
  margin-top: 22px;
}

/* Fluent Forms inside the donation card */
.gc-form-slot .fluentform .ff-el-group {
  margin-bottom: 14px;
}

.gc-form-slot .fluentform .ff-el-input--label label {
  font-family: var(--gc-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gc-navy);
}

.gc-form-slot .fluentform input[type="text"],
.gc-form-slot .fluentform input[type="email"],
.gc-form-slot .fluentform input[type="tel"],
.gc-form-slot .fluentform input[type="number"],
.gc-form-slot .fluentform select,
.gc-form-slot .fluentform textarea {
  font-family: var(--gc-sans);
  font-size: 16px;
  color: var(--gc-navy);
  padding: 13px 14px;
  border: 1px solid var(--gc-line-warm);
  border-radius: 11px;
  background: #FDFCF9;
  width: 100%;
  min-width: 0;
  box-shadow: none;
  height: auto;
}

.gc-form-slot .fluentform input:focus,
.gc-form-slot .fluentform select:focus,
.gc-form-slot .fluentform textarea:focus {
  border-color: var(--gc-blue);
  outline: 2px solid rgba(20, 71, 127, 0.18);
  outline-offset: 1px;
}

/* Fluent Forms sets the button colour inline from its own settings, so these
   need !important to win. */
.gc-form-slot .fluentform .ff-btn-submit,
.gc-form-slot .fluentform button.ff-btn,
.gc-form-slot .fluentform .ff_btn_style {
  width: 100%;
  background: var(--gc-red) !important;
  background-color: var(--gc-red) !important;
  color: #FFFFFF !important;
  font-family: var(--gc-sans) !important;
  font-size: 17.5px !important;
  font-weight: 700 !important;
  padding: 17px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 var(--gc-red-deep) !important;
  transition: transform 0.15s ease;
}

.gc-form-slot .fluentform .ff-btn-submit:hover,
.gc-form-slot .fluentform button.ff-btn:hover {
  background: var(--gc-red) !important;
  transform: translateY(-1px);
}

/* File upload control */
.gc-form-slot .fluentform .ff-el-input--content input[type="file"] {
  font-family: var(--gc-sans);
  font-size: 15px;
  color: var(--gc-muted);
}

.gc-form-slot .fluentform input[type="file"]::file-selector-button {
  font-family: var(--gc-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gc-blue);
  background: var(--gc-sand);
  border: 1px solid var(--gc-line-warm);
  border-radius: 999px;
  padding: 10px 18px;
  margin-right: 12px;
  cursor: pointer;
}

.gc-form-slot .fluentform input[type="file"]::file-selector-button:hover {
  background: var(--gc-sand-deep);
}

.gc-form-slot .fluentform .ff_upload_btn,
.gc-form-slot .fluentform .ff-el-file-upload button {
  font-family: var(--gc-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--gc-blue) !important;
  background: var(--gc-sand) !important;
  border: 1px solid var(--gc-line-warm) !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
}

/* Radio rows: tighter, and aligned with the field labels */
.gc-form-slot .fluentform .ff-el-form-check {
  font-size: 16px;
}

.gc-form-slot .fluentform .ff-el-form-check label {
  color: var(--gc-navy);
}

.gc-form-slot .fluentform .ff-btn-submit:hover {
  background: var(--gc-red);
  transform: translateY(-1px);
}

/* Help text under fields */
.gc-form-slot .fluentform .ff-el-help-message,
.gc-form-slot .fluentform .ff-el-input--content small {
  display: block;
  margin-top: 5px;
  font-family: var(--gc-sans);
  font-size: 13.5px;
  line-height: 1.45;
  font-style: normal;
  color: var(--gc-muted);
}

/* Fluent Forms confirmation message, inside the donation card */
.gc-form-slot .ff-message-success,
.gc-form-slot .ff_submit_success,
.gc-page .ff-message-success {
  background: var(--gc-sand);
  border: 1px solid var(--gc-line-warm);
  border-left: 4px solid #2F7D4F;
  border-radius: 14px;
  padding: 22px 24px;
  font-family: var(--gc-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gc-body);
}

.gc-form-slot .ff-message-success p,
.gc-page .ff-message-success p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.gc-form-slot .ff-message-success p + p,
.gc-page .ff-message-success p + p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--gc-muted);
}

/* Validation errors, so they read as help rather than alarm */
.gc-form-slot .error.text-danger,
.gc-form-slot .ff-el-is-error .text-danger {
  font-family: var(--gc-sans);
  font-size: 14px;
  color: #A5161C;
}

.gc-form-slot .ff-el-is-error input,
.gc-form-slot .ff-el-is-error select,
.gc-form-slot .ff-el-is-error textarea {
  border-color: #A5161C;
}

/* Inline radio rows */
.gc-form-slot .ff-el-form-check-inline {
  margin-right: 18px;
}

.gc-form-slot .ff-el-group .ff-el-form-check {
  margin-bottom: 6px;
}

/* --- Fluent Forms multi-step, inside the donation card --- */
.gc-form-slot .fluentform .ff-step-header {
  margin-bottom: 20px;
}

.gc-form-slot .fluentform .ff-el-progress {
  height: 6px;
  background: var(--gc-line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.gc-form-slot .fluentform .ff-el-progress-bar {
  background: var(--gc-red) !important;
  height: 6px;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.gc-form-slot .fluentform .ff-el-progress-status,
.gc-form-slot .fluentform .ff-step-titles li {
  font-family: var(--gc-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

.gc-form-slot .fluentform .ff-step-titles li.ff_active {
  color: var(--gc-blue);
}

/* Step navigation: Next as the red pill, Back as a quiet link */
.gc-form-slot .fluentform .ff-btn-next,
.gc-form-slot .fluentform .step-nav button.ff-btn-next {
  width: 100%;
  background: var(--gc-red) !important;
  color: #FFFFFF !important;
  font-family: var(--gc-sans) !important;
  font-size: 17.5px !important;
  font-weight: 700 !important;
  padding: 17px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 var(--gc-red-deep) !important;
}

.gc-form-slot .fluentform .ff-btn-prev,
.gc-form-slot .fluentform .step-nav button.ff-btn-prev {
  width: auto;
  background: transparent !important;
  color: var(--gc-blue) !important;
  font-family: var(--gc-sans) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  padding: 10px 4px !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.gc-form-slot .fluentform .step-nav {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
}

.gc-form-foot {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--gc-muted);
  text-align: center;
}

/* ==========================================================================
   6. Four-step strip
   ========================================================================== */
.gc-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.gc-step {
  background: var(--gc-navy-card);
  border: 1px solid var(--gc-navy-card-line);
  border-radius: 18px;
  padding: 28px;
}

.gc-step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gc-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gc-serif);
  font-size: 21px;
  font-weight: 700;
}

.gc-step h3 {
  margin-top: 18px;
  font-size: 22px;
  color: #FFFFFF;
}

.gc-step p {
  margin-top: 9px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--gc-on-navy-soft);
}

@media (max-width: 781px) {
  .gc-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 22px 24px;
  }

  .gc-step__num {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 19px;
  }

  .gc-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 20px;
    line-height: 1.25;
  }

  .gc-step h3 + p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
  }
}

/* ==========================================================================
   7. FAQ accordions — core Details block, styled
   ========================================================================== */
/* The FAQ group is BOTH .gc-section (which owns the page gutter padding) and
   .gc-faqs. So the 900px reading measure goes on its inner container; putting
   it on the padded element itself yields a negative content width. */
.gc-page .gc-faqs {
  display: block;
  width: auto;
  max-width: none;
}

.gc-page .gc-faqs > .wp-block-group__inner-container,
.gc-page .gc-faqs > .gc-section-inner {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Standalone FAQ blocks that are not also a section still need the measure. */
.gc-page .gc-faqs:not(.gc-section) {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gc-page .gc-faqs .gc-learn,
.gc-page .gc-faqs .gc-panel,
.gc-page .gc-faqs > .wp-block-group__inner-container > h2 + * {
  margin-top: 34px;
}

/* Accordion rows are a tight stack, not separate panels: 12px between them, and
   the grid's own gap does the spacing whenever they sit in .gc-faqs__list. */
.gc-page .gc-faqs .wp-block-details,
.gc-page .gc-faqs details {
  margin-top: 12px;
}

.gc-page .gc-faqs .wp-block-details:first-of-type,
.gc-page .gc-faqs details:first-of-type {
  margin-top: 0;
}

.gc-page .gc-faqs__list details,
.gc-page .gc-faqs__list .wp-block-details {
  margin-top: 0;
}

.gc-page .gc-faqs > .wp-block-group__inner-container > * {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.gc-page .gc-faqs summary,
.gc-faqs__list summary {
  display: flex !important;
}

.gc-faqs__list,
.gc-page .gc-section .gc-faqs__list {
  margin-top: 34px;
  display: grid;
  gap: 12px;
  width: 100%;
}

.gc-faqs details,
.gc-faqs .wp-block-details,
.gc-faqs__list details,
.gc-faqs__list .wp-block-details {
  background: #FFFFFF;
  border: 1px solid var(--gc-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0;
}

.gc-faqs summary,
.gc-faqs__list summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--gc-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--gc-navy);
  list-style: none;
  cursor: pointer;
}

.gc-faqs summary::-webkit-details-marker,
.gc-faqs summary::marker,
.gc-faqs__list summary::-webkit-details-marker,
.gc-faqs__list summary::marker {
  display: none;
  content: "";
}

.gc-faqs summary::after,
.gc-faqs__list summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gc-red);
  font-family: var(--gc-sans);
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.gc-faqs details[open] summary::after,
.gc-faqs__list details[open] summary::after {
  transform: rotate(45deg);
}

.gc-faqs details p,
.gc-faqs__list details p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gc-body);
}

.gc-faqs__more,
.gc-page .gc-section .gc-faqs__list + p,
.gc-page .gc-faqs__list + p {
  margin-top: 22px;
  font-size: 16.5px;
  color: var(--gc-muted);
}

/* ==========================================================================
   8. Learn more / network site card
   ========================================================================== */
.gc-learn {
  margin-top: 40px;
  border: 1px solid var(--gc-line-warm);
  border-left: 4px solid var(--gc-blue);
  border-radius: 14px;
  padding: 26px 28px;
  background: var(--gc-sand);
}

.gc-learn h3 {
  margin-top: 8px;
  font-size: 22px;
}

.gc-learn p {
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--gc-body);
}

.gc-learn p.gc-learn__note {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gc-muted);
}

/* ==========================================================================
   9. Blue CTA band
   ========================================================================== */
.gc-cta-outer {
  padding: 0 max(var(--gc-gutter), calc((100% - var(--gc-wrap)) / 2)) 84px;
}

.gc-cta {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  background: var(--gc-blue);
  border-radius: 22px;
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 30px;
  align-items: center;
}

.gc-cta h2 {
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.15;
  color: #FFFFFF;
}

.gc-cta p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--gc-on-blue-soft);
}

.gc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   10. Utility bar and header
   ========================================================================== */
.gc-utility {
  background: #0E3159;
  color: #C9DAEE;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.gc-utility__inner {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  padding: 9px var(--gc-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  justify-content: space-between;
}

.gc-utility__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.gc-utility__pipe {
  opacity: 0.5;
}

.gc-utility__phone,
.gc-page .gc-utility__phone {
  color: #FBF8F3;
  font-weight: 600;
  font-size: 14.5px;
}

.gc-utility__phone:hover,
.gc-page .gc-utility__phone:hover {
  color: #E8B563;
}

@media (max-width: 700px) {
  .gc-utility__facts {
    display: none;
  }

  .gc-utility__inner {
    justify-content: center;
  }
}

.gc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gc-line);
}

.gc-header__inner {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  padding: 14px var(--gc-gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.gc-header__logo img {
  display: block;
  width: 136px;
  height: auto;
}

.gc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-left: auto;
  font-size: 15.5px;
  font-weight: 600;
}

.gc-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-nav a {
  color: var(--gc-navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.gc-nav a:hover,
.gc-nav .current-menu-item > a {
  color: var(--gc-blue);
  border-bottom-color: var(--gc-red);
}

.gc-nav .gc-btn--sm,
.gc-nav a.gc-btn--sm {
  color: #FFFFFF;
  border-bottom: 0;
  /* .gc-nav a sets padding: 6px 0 and outweighs .gc-btn--sm on its own. */
  padding: 12px 22px;
  margin-left: 6px;
}

.gc-nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--gc-line-warm);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--gc-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gc-navy);
  cursor: pointer;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
/* A closing CTA band already carries its own breathing room, so the section that
   wraps it should not also pay full bottom padding before the footer. */
.gc-page .gc-section:last-child:has(.gc-cta) {
  padding-bottom: 0;
}

.gc-footer {
  margin-top: 60px;
  background: var(--gc-cream);
  border-top: 1px solid var(--gc-line);
  padding: 60px var(--gc-gutter) 40px;
}

.gc-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 44px;
}

.gc-footer h4 {
  font-family: var(--gc-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gc-navy);
}

.gc-footer__blurb {
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--gc-muted);
}

.gc-footer__phone {
  margin-top: 16px;
  display: inline-block;
  font-family: var(--gc-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--gc-blue);
}

.gc-footer__links,
.gc-footer ul.gc-footer__links {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
}

.gc-footer__logo img {
  display: block;
  width: 168px;
  height: auto;
}

.gc-footer__panels {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--gc-sand-deep);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 34px;
}

.gc-footer__panels p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--gc-muted);
}

.gc-footer__base {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gc-line);
}

.gc-footer__network {
  font-size: 14px;
  color: var(--gc-muted);
}

.gc-footer__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gc-muted);
}

.gc-footer__meta-links {
  display: flex;
  gap: 20px;
}

.gc-footer__legal {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--gc-muted-deep);
}

/* ==========================================================================
   12. Logo wall (Donors and Friends)
   ========================================================================== */
.gc-logo-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}

.gc-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--gc-line);
  border-radius: 14px;
  padding: 20px;
  min-height: 118px;
}

.gc-logo-tile {
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 16px;
}

.gc-logo-tile img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.gc-logo-tile__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gc-navy);
  text-align: center;
  line-height: 1.35;
}

a.gc-logo-tile:hover {
  border-color: var(--gc-line-warm);
  box-shadow: 0 8px 20px rgba(16, 41, 74, 0.08);
}

/* ==========================================================================
   13. Category tile grid (homepage)
   ========================================================================== */
.gc-tiles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.gc-tile {
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 41, 74, 0.07);
}

.gc-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 460;
  object-fit: cover;
}

.gc-tile__body {
  padding: 20px 22px 24px;
}

.gc-tile h3 {
  font-size: 22px;
  line-height: 1.2;
}

.gc-tile p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--gc-muted);
}

.gc-tile:hover {
  box-shadow: 0 16px 34px rgba(16, 41, 74, 0.13);
}

/* ==========================================================================
   14. Small screens
   ========================================================================== */
@media (max-width: 860px) {
  .gc-section {
    padding: 56px var(--gc-gutter);
  }

  .gc-section--tight {
    padding: 48px var(--gc-gutter) 16px;
  }

  .gc-split {
    gap: 38px;
  }

  .gc-cta__actions {
    justify-content: flex-start;
  }

  .gc-nav-toggle {
    display: block;
  }

  .gc-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 12px 0 6px;
  }

  .gc-nav.is-open {
    display: flex;
  }

  .gc-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .gc-header__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .gc-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  }

  .gc-faqs summary,
.gc-faqs__list summary {
    font-size: 19px;
  }
}

/* ==========================================================================
   15. Gutenberg block plumbing
   Pages are built from core blocks. These rules make the core blocks land
   on the approved design without any page-level CSS.
   ========================================================================== */

/* Kill the default vertical margins core adds between blocks; our own
   classes own the spacing. */
.gc-page .wp-block-group,
.gc-page .wp-block-columns,
.gc-page .wp-block-cover {
  margin-top: 0;
  margin-bottom: 0;
}

.gc-page .wp-block-group__inner-container {
  max-width: var(--gc-wrap);
  margin: 0 auto;
}

.gc-page .gc-section.wp-block-group > .wp-block-group__inner-container,
.gc-page .gc-section-inner {
  max-width: var(--gc-wrap);
  margin: 0 auto;
}

/* --- Banner as a core Cover block --- */
.gc-page .gc-banner-cover.wp-block-cover {
  min-height: clamp(370px, 36vw, 470px);
  padding: 24px 0;
  align-items: center;
  justify-content: flex-start;
  background: var(--gc-navy);
}

.gc-page .gc-banner-cover .wp-block-cover__image-background {
  object-position: 70% 50%;
}

.gc-page .gc-banner-cover .wp-block-cover__background {
  /* Core prints ".wp-block-cover .wp-block-cover__background { opacity: .5 }"
     after the theme stylesheet, so the scrim rendered at half strength. */
  background: linear-gradient(90deg, rgba(9, 24, 45, 0.92) 0%, rgba(9, 24, 45, 0.82) 40%, rgba(9, 24, 45, 0.46) 66%, rgba(9, 24, 45, 0.04) 100%) !important;
  opacity: 1 !important;
  z-index: 1;
}

/* Stronger scrim for banners whose left side is bright (paper, white cloth,
   lit walls) — plain white headline copy cannot hold over those without it. */
.gc-page .gc-banner-cover--strong .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(9, 24, 45, 0.95) 0%, rgba(9, 24, 45, 0.90) 44%, rgba(9, 24, 45, 0.60) 70%, rgba(9, 24, 45, 0.10) 100%) !important;
}

.gc-page .gc-banner-cover > .wp-block-cover__inner-container {
  max-width: var(--gc-wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gc-gutter);
}

.gc-page .gc-banner-cover .wp-block-cover__background,
.gc-page .gc-banner-cover .wp-block-cover__image-background {
  z-index: 1;
}

.gc-page .gc-banner-cover > .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.gc-page .gc-banner-cover h1 {
  max-width: min(560px, 100%);
  margin-top: 20px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
  color: #FFFFFF !important;
}

.gc-page .gc-banner-cover p.gc-badge {
  margin: 0;
}

.gc-page .gc-banner-cover p.gc-banner__sub {
  max-width: min(560px, 100%);
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--gc-on-navy) !important;
}

/* --- Split intro as a two-column block --- */
.gc-page .gc-split-cols.wp-block-columns {
  gap: 54px;
  align-items: flex-start;
}

.gc-page .gc-split-cols > .wp-block-column > * + * {
  margin-top: 16px;
}

.gc-page .gc-split-cols h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
}

.gc-page .gc-split-cols h2 + p {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.62;
}

/* --- Stats row --- */
.gc-page .gc-stats-cols.wp-block-columns {
  margin-top: 34px;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--gc-line);
}

.gc-page .gc-stats-cols p.gc-stat__num {
  font-family: var(--gc-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gc-blue);
}

.gc-page .gc-stats-cols p.gc-stat__label {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gc-muted);
}

@media (max-width: 781px) {
  .gc-page .gc-stats-cols.wp-block-columns {
    flex-wrap: nowrap !important;
    gap: 14px;
  }
}

/* --- Threshold cards (tax deduction) --- */
.gc-page .gc-threshold-cols.wp-block-columns {
  margin-top: 44px;
  flex-wrap: wrap !important;
  gap: 18px;
}

.gc-page .gc-threshold-cols > .wp-block-column {
  flex: 1 1 300px;
  min-width: 300px;
  background: var(--gc-navy-card);
  border: 1px solid var(--gc-navy-card-line);
  border-radius: 18px;
  padding: 28px 30px;
}

.gc-page .gc-threshold-cols p.gc-stat__num {
  font-family: var(--gc-serif);
  font-size: 30px;
  font-weight: 700;
  color: #FFFFFF;
}

.gc-page .gc-threshold-cols p.gc-stat__label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6E94C4;
}

.gc-page .gc-threshold-cols p:not(.gc-stat__num):not(.gc-stat__label) {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--gc-on-navy-soft);
}

/* --- Four-step strip as columns --- */
.gc-page .gc-steps-cols.wp-block-columns {
  margin-top: 44px;
  flex-wrap: wrap !important;
  gap: 24px;
  flex-wrap: wrap;
}

.gc-page .gc-steps-cols > .wp-block-column {
  background: var(--gc-navy-card);
  border: 1px solid var(--gc-navy-card-line);
  border-radius: 18px;
  padding: 28px;
  flex-basis: calc(25% - 18px);
  min-width: 240px;
}

.gc-page .gc-steps-cols p.gc-step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gc-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gc-serif);
  font-size: 21px;
  font-weight: 700;
}

.gc-page .gc-steps-cols h3 {
  margin-top: 18px;
  font-size: 22px;
  color: #FFFFFF;
}

.gc-page .gc-steps-cols h3 + p {
  margin-top: 9px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--gc-on-navy-soft);
}

/* Stacked steps: number sits inline with its heading, body copy below both. */
@media (max-width: 781px) {
  .gc-page .gc-steps-cols > .wp-block-column {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 22px 24px;
  }

  .gc-page .gc-steps-cols p.gc-step__num {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 19px;
  }

  .gc-page .gc-steps-cols h3 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 20px;
    line-height: 1.25;
  }

  .gc-page .gc-steps-cols h3 + p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
  }
}

/* --- Public-records facts (editable paragraph blocks) --- */
.gc-page .gc-fact {
  display: grid;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EDE8DE;
}

.gc-page .gc-fact > .wp-block-group__inner-container {
  display: contents;
}

.gc-page p.gc-fact__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-ink-soft, #5D6975);
}

.gc-page p.gc-fact__val {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--gc-navy, #10294A);
}

.gc-page .gc-cta > .wp-block-group__inner-container,
.gc-page .gc-cta__copy > .wp-block-group__inner-container,
.gc-page .gc-panel > .wp-block-group__inner-container,
.gc-page .gc-learn > .wp-block-group__inner-container,
.gc-page .gc-faqs__list > .wp-block-group__inner-container {
  display: contents;
}

/* --- CTA band as a group with a buttons block --- */
.gc-page .gc-cta.wp-block-group {
  max-width: var(--gc-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 40px;
  align-items: center;
}

/* Copy stacks in column one however many blocks it is; the buttons block
   always takes column two and spans the copy's full height. */
.gc-page .gc-cta > *,
.gc-page .gc-cta > .wp-block-group__inner-container > * {
  grid-column: 1;
  min-width: 0;
}

.gc-page .gc-cta .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  align-self: center;
}

@media (max-width: 900px) {
  .gc-page .gc-cta.wp-block-group {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 26px;
  }

  .gc-page .gc-cta .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 14px;
  }

  /* Full-width taps rather than two pills crowding one line */
  .gc-page .gc-cta .wp-block-button {
    width: 100%;
  }

  .gc-page .gc-cta .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  /* The phone number is a text link, not a pill. It must stay as wide as its
     own text, or the border-bottom draws a rule across the whole card. */
  .gc-page .gc-cta .wp-block-buttons .wp-block-button.is-style-outline {
    width: 100%;
    text-align: center;
  }

  .gc-page .gc-cta .wp-block-buttons .is-style-outline .wp-block-button__link {
    display: inline-block;
    width: auto;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    padding: 0 0 3px;
    text-align: center;
  }

  .gc-page .gc-cta h2 {
    font-size: clamp(24px, 6vw, 30px);
  }
}

.gc-page .gc-cta .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.gc-page .gc-cta .wp-block-button__link {
  background: var(--gc-red);
  color: #FFFFFF;
  font-size: 17.5px;
  font-weight: 700;
  padding: 17px 34px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--gc-red-deep);
}

.gc-page .gc-cta .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 3px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  font-size: 17px;
}

.gc-page .gc-cta .is-style-outline .wp-block-button__link:hover {
  border-bottom-color: var(--gc-red);
  color: #FFFFFF;
}

/* --- Buttons anywhere else on a page --- */
.gc-page .wp-block-button__link {
  background: var(--gc-red);
  color: #FFFFFF;
  font-family: var(--gc-sans);
  font-weight: 700;
  border-radius: 999px;
  padding: 15px 30px;
  box-shadow: 0 3px 0 var(--gc-red-deep);
}

.gc-page .wp-block-button__link:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --- Button rows on light backgrounds (hero, in-page CTAs) --- */
.gc-page .gc-btn-row.wp-block-buttons {
  margin-top: 30px;
  gap: 14px 30px;
  align-items: center;
}

.gc-page .gc-btn-row .wp-block-button__link {
  background: var(--gc-blue);
  box-shadow: 0 3px 0 #0E3159;
}

.gc-page .gc-btn-row .is-style-outline .wp-block-button__link {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 2px solid #C9D2DC;
  padding: 0 0 3px;
  font-size: 17px;
  color: var(--gc-blue);
}

.gc-page .gc-btn-row .is-style-outline .wp-block-button__link:hover {
  color: var(--gc-red);
  border-bottom-color: var(--gc-red);
}

/* --- Recovered red-dot bullet lists --- */
.gc-page .gc-bullets {
  list-style: none;
  margin-top: 20px;
  padding-left: 0;
  display: grid;
  gap: 15px;
}

.gc-page .gc-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
}

.gc-page .gc-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc-red);
}

.gc-page .gc-dash-list {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.gc-page .gc-dash-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.gc-page .gc-dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gc-red);
  font-weight: 700;
}

/* Paragraphs that follow a card row need air. */
.gc-page .gc-section .wp-block-columns + p,
.gc-page .gc-section .gc-tiles + p,
.gc-page .gc-section .gc-logo-grid + p {
  margin-top: 26px;
}

.gc-page .gc-num-list {
  list-style: none;
  counter-reset: gcnum;
  margin-top: 22px;
  padding-left: 0;
  display: grid;
  gap: 14px;
}

.gc-page .gc-num-list li {
  counter-increment: gcnum;
  position: relative;
  padding-left: 44px;
  font-size: 16.5px;
  line-height: 1.58;
  margin: 0;
}

.gc-page .gc-num-list li::before {
  content: counter(gcnum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--gc-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--gc-red);
}

.gc-page .gc-figure__label {
  font-weight: 700;
  color: #FFFFFF;
}

.gc-page .gc-figure__value {
  margin-top: 2px;
  font-family: var(--gc-serif);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}

.gc-page .gc-note {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #9DB6D3;
}

.gc-page .gc-section:not(.gc-section--navy) .gc-note {
  color: var(--gc-muted);
}

.gc-page .gc-outcome {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--gc-navy);
}

/* --- Lists inside prose --- */
.gc-page .gc-section ul:not(.gc-footer__links):not(.wp-block-buttons),
.gc-page .gc-section ol {
  padding-left: 20px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--gc-body);
}

.gc-page .gc-section li + li {
  margin-top: 8px;
}

/* --- Tables (transparency, tax pages) --- */
.gc-page .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16.5px;
  color: var(--gc-body);
  background: #FFFFFF;
}

.gc-page .wp-block-table th {
  background: var(--gc-sand);
  font-family: var(--gc-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-navy);
  text-align: left;
}

.gc-page .wp-block-table th,
.gc-page .wp-block-table td {
  border: 1px solid var(--gc-line);
  padding: 14px 16px;
}

/* Stacked panels inside a section need air between them, and more after the
   section's intro paragraph. Without this they read as one dense block. */
.gc-page .gc-section .gc-panel + .gc-panel,
.gc-page .gc-section > .wp-block-group__inner-container > .gc-panel + .gc-panel {
  margin-top: 18px;
}

/* Section intro line: it sat hard against both the h2 above and the first
   panel below. It needs air on both sides to read as a subhead. */
.gc-page .gc-section > h2 + p,
.gc-page .gc-section > .wp-block-group__inner-container > h2 + p,
.gc-page .gc-section > .gc-section-inner > h2 + p {
  margin-top: 14px;
}

.gc-page .gc-section h2 + .gc-panel,
.gc-page .gc-section h2 + p + .gc-panel,
.gc-page .gc-section p + .gc-panel {
  margin-top: 34px;
}

.gc-page .gc-section .gc-panel + h2,
.gc-page .gc-section .gc-panel + p {
  margin-top: 30px;
}

/* --- Panels: the white, navy and sand cards used across the interior pages --- */
.gc-page .gc-panel {
  background: #FFFFFF;
  border: 1px solid var(--gc-line);
  border-radius: 18px;
  padding: 26px 28px;
}

.gc-page .gc-panel > * + *,
.gc-page .gc-panel > .wp-block-group__inner-container > * + * {
  margin-top: 12px;
}

.gc-page .gc-panel h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.18;
}

.gc-page .gc-panel h2 + p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
}

.gc-page .gc-panel h3 {
  font-size: 22px;
  line-height: 1.25;
}

.gc-page .gc-panel p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--gc-body);
}

.gc-page .gc-panel--navy {
  background: var(--gc-navy-card);
  border-color: var(--gc-navy-card-line);
}

.gc-page .gc-panel--navy h3,
.gc-page .gc-panel--navy h4 {
  color: #FFFFFF;
}

.gc-page .gc-panel--navy p {
  color: var(--gc-on-navy-soft);
}

.gc-page .gc-panel--sand {
  background: var(--gc-sand);
  border-color: var(--gc-line-warm);
}

.gc-page .gc-section--sand {
  background: var(--gc-sand-deep);
}

/* Hero eyebrow pill with its red dot. */
.gc-page p.gc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  background: #EAF0F7;
  border: 1px solid #CFDEEF;
  color: var(--gc-blue, #14477F);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
}

.gc-page p.gc-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc-red, #CE2027);
}

/* --- Sponsor and partner logo wall (navy trust band) --- */
.gc-page .gc-logos > .wp-block-group__inner-container,
.gc-page .gc-logos:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 130px), 1fr));
  gap: 12px;
}

.gc-page .gc-logos .gc-logo {
  margin: 0;
  height: 74px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
}

.gc-page .gc-logos .gc-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* --- Section kickers: the small uppercase label above each h2 --- */
.gc-page p.gc-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc-red, #CE2027);
}

.gc-page p.gc-kicker--gold {
  color: #E8B563;
}

.gc-page p.gc-kicker + h2 {
  margin-top: 0;
}

/* Reassurance line under the four-step strip: one wrapping row of dot items. */
.gc-page ul.gc-dotrow {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  font-size: 16px;
  color: #BCCEE1;
}

.gc-page ul.gc-dotrow li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.gc-page ul.gc-dotrow li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6FA0D8;
}

/* --- Donor story cards (Donor Stories page) --- */
.gc-page .gc-stories > .wp-block-group__inner-container,
.gc-page .gc-stories:not(:has(> .wp-block-group__inner-container)) {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 18px;
  align-items: start;
}

.gc-page .gc-story {
  background: #FFFFFF;
  border: 1px solid var(--gc-line-warm, #E2DDD3);
  border-left: 3px solid var(--gc-red, #CE2027);
  border-radius: 16px;
  padding: 26px 28px;
}

.gc-page p.gc-story__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--gc-ink, #2C3A47);
  text-wrap: pretty;
}

.gc-page p.gc-story__who {
  margin-top: 16px;
  font-size: 15px;
  color: var(--gc-ink-soft, #5D6975);
}

.gc-page p.gc-story__who strong {
  color: var(--gc-navy, #10294A);
}

.gc-page .gc-section--sand .gc-story {
  background: #FDFBF7;
}

/* --- Donor quote cards on the navy band --- */
.gc-page .gc-quotes > .wp-block-group__inner-container,
.gc-page .gc-quotes:not(:has(> .wp-block-group__inner-container)) {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.gc-page .gc-quote {
  background: #17375F;
  border: 1px solid #26507F;
  border-radius: 18px;
  padding: 30px;
}

.gc-page p.gc-quote__text {
  margin: 0;
  font-family: Alegreya, Georgia, serif;
  font-size: 21px;
  line-height: 1.45;
  color: #F2F6FA;
}

.gc-page p.gc-quote__who {
  margin-top: 18px;
  font-size: 15px;
  color: #A9BED4;
}

.gc-page p.gc-quote__who strong {
  color: #FFFFFF;
}

/* A "read more" link closing a section needs air above it and below it. */
.gc-page p.gc-morelink {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.gc-page p.gc-morelink a {
  color: #E8B563;
  border-bottom: 2px solid #2C5687;
  padding-bottom: 3px;
  text-decoration: none;
}

.gc-page p.gc-morelink + .wp-block-columns,
.gc-page p.gc-morelink + h2,
.gc-page p.gc-morelink + h3 {
  margin-top: 44px;
}

/* Causes photo sits in the right column, cropped 4:3 rather than running full width. */
.gc-page .gc-causes-img {
  margin: 0;
}

.gc-page .gc-causes-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

/* --- Homepage donation tiles: 16 white photo cards, whole card clickable --- */
.gc-page .gc-home-tiles > .wp-block-group__inner-container,
.gc-page .gc-home-tiles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr));
  gap: 20px;
}

.gc-page .gc-home-tiles > .wp-block-group__inner-container {
  margin-top: 0;
}

.gc-page .gc-home-tiles:has(> .wp-block-group__inner-container) {
  display: block;
}

.gc-page .gc-home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--gc-line-warm, #E2DDD3);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gc-page .gc-home-tile > .wp-block-group__inner-container {
  display: contents;
}

.gc-page .gc-home-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(16, 41, 74, 0.1);
  border-color: #C9D2DC;
}

.gc-page .gc-home-tile .gc-home-tile__img {
  margin: 0;
}

.gc-page .gc-home-tile .gc-home-tile__img img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
}

.gc-page .gc-home-tile h3 {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--gc-navy, #10294A);
}

.gc-page .gc-home-tile p.gc-home-tile__desc {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gc-ink-soft, #5D6975);
}

.gc-page .gc-home-tile p.gc-home-tile__cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.gc-page .gc-home-tile p.gc-home-tile__cta a {
  color: var(--gc-blue, #14477F);
  text-decoration: none;
}

/* The CTA link covers the whole tile so the entire card is a target. */
.gc-page .gc-home-tile p.gc-home-tile__cta a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

/* --- Card and plain column grids --- */
.gc-page .gc-card-cols.wp-block-columns,
.gc-page .gc-plain-cols.wp-block-columns {
  margin-top: 30px;
  flex-wrap: wrap !important;
  gap: 24px;
  flex-wrap: wrap;
}

.gc-page .gc-card-cols > .wp-block-column {
  flex: 1 1 260px;
  min-width: 260px;
}

.gc-page .gc-plain-cols > .wp-block-column {
  flex: 1 1 280px;
  min-width: 280px;
}

.gc-page .gc-plain-cols > .wp-block-column > * + *,
.gc-page .gc-card-cols > .wp-block-column > * + * {
  margin-top: 12px;
}

.gc-page .gc-cta__copy > * + *,
.gc-page .gc-cta__copy > .wp-block-group__inner-container > * + * {
  margin-top: 14px;
}

.gc-page .gc-cta__copy {
  display: grid;
  align-content: center;
}

/* --- Images placed in content --- */
.gc-page .wp-block-image img {
  border-radius: 16px;
}

.gc-page .gc-banner-cover .wp-block-image img {
  border-radius: 0;
}

/* ==========================================================================
   16. Print
   ========================================================================== */
@media print {
  .gc-header,
  .gc-cta-outer,
  .gc-nav-toggle {
    display: none;
  }
}
