/* ============================================================
   Guddge Cares draft redesign — gc2026-prefixed, scoped only to
   draft pages via body:is(.page-id-...). Never affects the 4 live
   published pages or shared theme chrome.
   v15 — full replace-all version. Folds in every fix given since
   the v14 consolidation: blue unification, CTA button color, the
   main-padding gap fix, old theme footer hide, and the new charity
   photo slideshows.
   ============================================================ */

:root {
  --paper: #f3f6f8 !important;
  --raised: #ffffff !important;
  --ink: #2b3a4a !important;
  --ink-soft: #64778a !important;
  --line: #dfeaf2 !important;
  --accent: #296080 !important;
  --on-accent: #ffffff !important;
  --accent-tint: #eaf6fc !important;
}

.gc2026 * { box-sizing: border-box; }
.gc2026 { background: var(--paper); color: var(--ink); font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 21px; line-height: 1.6; }
.gc2026 img { max-width: 100%; }
.gc2026 a { color: inherit; }
.gc2026 h1, .gc2026 h2, .gc2026 h3 { font-weight: 800; letter-spacing: -.01em; margin: 0; }

.gc2026-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.gc2026-wrap-wide { max-width: 1820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.gc2026-btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 1.05rem; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.gc2026-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; transition: transform .15s ease; }
.gc2026-btn:hover svg { transform: translateX(3px); }
.gc2026-btn-accent { background: var(--accent); color: #fff !important; }
.gc2026-btn-accent:hover { box-shadow: 0 8px 20px rgba(41,96,128,.35); transform: translateY(-1px); }
.gc2026-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.gc2026-btn-outline:hover { border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(127,180,210,.35); }

/* ---------- Hero ---------- */
.gc2026-hero { position: relative; overflow: hidden; color: #fff; background-size: cover; background-position: center; padding: 64px 0 56px; border-radius: 14px; }
.gc2026-hero .gc2026-wrap { position: relative; z-index: 1; }
.gc2026-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: #7cb8ec; font-weight: 700; margin-bottom: 16px; }
.gc2026-eyebrow svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; flex-shrink: 0; }
.gc2026-thesis { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; margin-bottom: 22px; color: #fff; max-width: 800px; }
.gc2026-thesis em { font-style: italic; font-weight: 800; color: #7cb8ec; }
.gc2026-lede { font-size: 1.45rem; color: rgba(255,255,255,.9); margin-bottom: 28px; max-width: 780px; }
.gc2026-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.gc2026-kpi-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); max-width: 760px; }
.gc2026-kpi-item { display: flex; flex-direction: column; }
.gc2026-kpi-stat { font-weight: 800; font-size: 1.9rem; color: #fff; white-space: nowrap; line-height: 1.1; }
.gc2026-kpi-label { font-size: .95rem; color: rgba(255,255,255,.8); margin-top: 4px; }
.gc2026-kpi-label em { display: block; font-style: normal; font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 1px; }

/* ---------- Section head / kicker ---------- */
.gc2026-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; gap: 24px; flex-wrap: wrap; }
.gc2026-section-head h2, .gc2026-cta-block h2 { font-size: 2.3rem; }
.gc2026-tally { font-size: 1.15rem; color: var(--ink-soft); }
.gc2026-eyebrow-tag { display: inline-block; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Pillars ("What We Care About") ---------- */
.gc2026-pillars { padding: 48px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.gc2026-pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.gc2026-pillar h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.gc2026-pillar p { font-size: 1.25rem; color: var(--ink-soft); margin: 0; }
.gc2026-pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,50,.18); }
.gc2026-pillar-icon { width: 22px; height: 22px; margin-bottom: 12px; }
.gc2026-pillar-icon svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.75; fill: none; }
.gc2026-visit { display: inline-block; margin-top: 20px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.gc2026-visit:hover { text-decoration: underline; }

/* ---------- Charities ---------- */
.gc2026-charities { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.gc2026-charity-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.gc2026-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px; height: 100%; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; box-shadow: 0 4px 14px rgba(15,30,50,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gc2026-tile:hover, .gc2026-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,50,.22); }
.gc2026-logo-bg {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  background-repeat: no-repeat !important; background-position: center 26% !important; background-size: 54% !important;
  display: block !important;
}
.gc2026-logo-bg.is-text { display: flex !important; align-items: center; justify-content: center; padding-bottom: 100px; font-size: 5.5rem; font-weight: 800; color: var(--accent); opacity: .16; }
.gc2026-panel { position: relative; z-index: 1; padding: 16px 20px; color: #fff; }
.gc2026-tile-blue-1, .gc2026-tile-blue-2, .gc2026-tile-blue-3, .gc2026-tile-blue-4 { background: #296080; }
.gc2026-tile-tag, .gc2026-focus-tag, .gc2026-detail-tag { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.gc2026-tile-tag { display: block; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.gc2026-tile-name { font-size: 1.4rem; font-weight: 800; margin: 0; color: #fff; display: block; }
.gc2026-desc { font-size: 1.05rem; max-height: 0; opacity: 0; overflow: hidden; margin: 0 !important; transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
.gc2026-tile:hover .gc2026-desc, .gc2026-tile:focus-visible .gc2026-desc { max-height: 170px; opacity: 1; margin: 8px 0 12px !important; }
.gc2026-cta { font-size: 1rem; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.gc2026-tile:hover .gc2026-cta, .gc2026-tile:focus-visible .gc2026-cta { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .gc2026-tile, .gc2026-desc, .gc2026-cta, .gc2026-pillar, .gc2026-btn { transition: none; }
}

/* ---------- CTA band ---------- */
.gc2026-cta-block { padding: 54px 0; text-align: center; border-bottom: 1px solid var(--line); background: var(--paper); }
.gc2026-cta-block p { font-size: 1.3rem; color: var(--ink-soft); max-width: 54ch; margin: 0 auto 24px; }

/* ---------- Charity detail pages ---------- */
.gc2026-back-link { color: var(--ink-soft); text-decoration: none; font-size: 1.05rem; }
.gc2026-back-link:hover { color: var(--accent); }
.gc2026-detail-hero { padding: 48px 0 56px; color: #fff; }
.gc2026-detail-hero .gc2026-detail-tag { opacity: .85; display: block; margin-bottom: 10px; }
.gc2026-detail-hero h1, .gc2026-about-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 16px; color: #fff; }
.gc2026-detail-hero p, .gc2026-about-hero p { font-size: 1.15rem; max-width: 60ch; opacity: .92; margin: 0; }
.gc2026-detail-body { padding: 44px 0 64px; }
.gc2026-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.gc2026-detail-body h2, .gc2026-focus-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.gc2026-detail-body p, .gc2026-focus-card p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 18px; max-width: 66ch; }
.gc2026-detail-facts { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.gc2026-detail-facts h3 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.gc2026-detail-facts dl { margin: 0; }
.gc2026-detail-facts dt { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.gc2026-detail-facts dt:first-child { margin-top: 0; }
.gc2026-detail-facts dd { font-size: 1.1rem; font-weight: 700; margin: 2px 0 0; }
.gc2026-detail-link { display: inline-block; margin-top: 20px; font-size: 1rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.gc2026-detail-link:hover { text-decoration: underline; }

/* ---------- About page ---------- */
.gc2026-about-hero { padding: 48px 0 56px; color: #fff; background: var(--accent); }
.gc2026-about-hero .gc2026-detail-tag { opacity: .85; display: block; margin-bottom: 10px; }
.gc2026-about-body { padding: 48px 0 64px; }
.gc2026-about-body > .gc2026-wrap > p { font-size: 1.02rem; color: var(--ink-soft); max-width: 72ch; margin: 0 0 40px; }
.gc2026-focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gc2026-focus-card { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.gc2026-focus-tag { color: var(--accent); display: block; margin-bottom: 10px; }

/* ---------- Contact page ---------- */
.gc2026-contact { padding: 56px 0; border-bottom: 1px solid var(--line); }
.gc2026-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.gc2026-contact-info p, .gc2026-contact-line { font-size: 1.35rem; color: var(--ink-soft); margin: 0 0 24px; max-width: 44ch; }
.gc2026-contact-line { display: block; margin-bottom: 14px; }
.gc2026-contact-line a { color: var(--accent); text-decoration: none; }
.gc2026-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.gc2026-field label { font-size: 1.05rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.gc2026-field input, .gc2026-field textarea, .gc2026-field select {
  border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 3px 13px;
  font-family: inherit; font-size: 1.3rem; color: var(--ink); border-radius: 0; width: 100%;
}
.gc2026-field textarea { resize: vertical; min-height: 90px; }

/* Native Jetpack contact form styling — restored to the original demo's
   underline-only field look (no boxes/borders), matching .gc2026-field */
.wp-block-jetpack-contact-form { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wp-block-jetpack-contact-form > * + * { margin-top: 22px !important; }
.wp-block-jetpack-contact-form label,
.wp-block-jetpack-contact-form strong { font-size: 1.05rem !important; color: var(--ink-soft) !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 700 !important; display: block; margin-bottom: 8px; }
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form textarea {
  border: none !important; border-bottom: 1px solid var(--line) !important; background: transparent !important;
  padding: 10px 3px 13px !important; font-family: inherit; font-size: 1.3rem !important; color: var(--ink);
  border-radius: 0 !important; width: 100%; box-shadow: none !important; appearance: none;
}
.wp-block-jetpack-contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364778a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 4px center !important; background-size: 16px !important; padding-right: 26px !important;
}
.wp-block-jetpack-contact-form textarea { resize: vertical; min-height: 90px; }
.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-jetpack-contact-form button.wp-block-button__link {
  font-size: 1.05rem !important; padding: 14px 30px !important; border-radius: 999px !important; background: var(--accent) !important;
  color: #fff !important; border: none !important; font-weight: 700; margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gc2026-charity-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .gc2026-pillar-grid { grid-template-columns: 1fr !important; }
  .gc2026-charity-list { grid-template-columns: 1fr; }
  .gc2026-desc { max-height: none !important; opacity: 1 !important; margin: 8px 0 12px !important; }
  .gc2026-cta { opacity: 1 !important; transform: none !important; }
  .gc2026-actions { flex-direction: column; align-items: stretch; }
  .gc2026-actions .gc2026-btn { text-align: center; }
  .gc2026-detail-grid { grid-template-columns: 1fr; }
  .gc2026-focus-grid { grid-template-columns: 1fr; }
  .gc2026-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Full-bleed bands ---------- */
.gc2026-hero, .gc2026-pillars, .gc2026-charities, .gc2026-cta-block,
.gc2026-detail-hero, .gc2026-detail-body, .gc2026-about-hero, .gc2026-about-body, .gc2026-contact {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.gc2026-hero { border-radius: 0; }

/* ---------- Draft-pages-only fixes (never touch the live site) ---------- */
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) header.wp-block-template-part {
  position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
}
body.admin-bar:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) header.wp-block-template-part { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) header.wp-block-template-part { top: 46px; }
}
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .wp-block-cover.is-position-bottom-center { display: none; }
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .wp-block-cover.is-position-center-left { display: none; }
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .footer-cta { display: none !important; }
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) footer.wp-block-template-part { display: none !important; }
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) main.wp-block-group { padding-block-start: 0 !important; padding-block-end: 0 !important; }

/* The real source of the white gap below our custom footer: the theme wraps
   post content in div.entry-content.wp-block-post-content INSIDE <main>, which
   carries its own 25px/125px top/bottom padding independent of main's own
   padding (already zeroed above). That 125px bottom pad was showing through. */
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .entry-content.wp-block-post-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------- Footer full-bleed override for pages with real Gutenberg blocks ----------
   The Contact page mixes real blocks (columns, map, contact form) with raw HTML.
   WordPress's constrained-layout CSS auto-centers and width-caps any block-level
   child that isn't marked alignfull, using !important — which beats the footer's
   plain inline width:100vw. This re-asserts it with matching !important weight. */
.gc2026-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ---------- Charity photo slideshows (pure CSS, no JS/dynamic block) ---------- */
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slide { display: none; }
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slideshow:not(:has(.gc2026-slide:target)) .gc2026-slide:first-of-type { display: block; }
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slide:target { display: block; }
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slide-prev:hover,
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slide-next:hover { background: rgba(41,96,128,.85) !important; }
body:is(.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) .gc2026-slide-dots a:hover { background: #fff !important; }

/* ---------- Remove Twitter/X from the shared header (draft pages only —
   the live header itself is never edited, this just hides that one icon) ---------- */
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) header.wp-block-template-part a[href*="twitter.com"],
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) header.wp-block-template-part a[href*="x.com"] {
  display: none !important;
}

/* ---------- "I am a..." field on Contact: radio choices styled as buttons ---------- */
body:is(.page-id-1210) .wp-block-jetpack-field-radio .wp-block-jetpack-options,
body:is(.page-id-1210) ul.wp-block-jetpack-options {
  display: flex !important; gap: 10px; list-style: none !important; padding: 0 !important; margin: 0 !important; flex-wrap: wrap;
}
body:is(.page-id-1210) ul.wp-block-jetpack-options li { margin: 0 !important; }
body:is(.page-id-1210) ul.wp-block-jetpack-options label {
  display: inline-flex !important; align-items: center; justify-content: center; text-align: center;
  padding: 12px 18px !important; border: 1px solid var(--line) !important; border-radius: 999px !important;
  font-size: 1rem !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important;
  color: var(--ink) !important; cursor: pointer; transition: all .15s ease; margin: 0 !important;
}
body:is(.page-id-1210) ul.wp-block-jetpack-options input[type="radio"] {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
body:is(.page-id-1210) ul.wp-block-jetpack-options input[type="radio"]:checked + label,
body:is(.page-id-1210) ul.wp-block-jetpack-options label:has(input[type="radio"]:checked) {
  background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important;
}
body:is(.page-id-1203,.page-id-1209,.page-id-1210,.page-id-1205,.page-id-1206,.page-id-1207,.page-id-1208) {
  overflow-x: hidden;
}