/* ——— The Second Door: calm, premium system ——— */
:root{
  --navy:#0B1220;       /* dark background if needed */
  --cream:#F7F3EB;      /* page background */
  --teal:#0E2A2B;       /* headings */
  --slate:#4E5B5A;      /* body */
  --gold:#E3C267;       /* accent */
  --red:#C12A2A;        /* primary CTA */
  --line:#E6E2D8;
}
body{background:var(--cream);color:var(--slate)}
h1,h2,h3{color:var(--teal);letter-spacing:-.015em}
a{color:var(--teal)}
a:hover{opacity:.85}

/* Sticky pseudo-header */
.tsd-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);
  backdrop-filter:saturate(120%) blur(10px);border-bottom:1px solid rgba(14,42,43,.08)}
.tsd-nav a{padding:10px 12px;display:inline-block}
.tsd-nav .donate a{background:var(--gold);color:#1F1B14;border-radius:999px;padding:8px 14px}

/* Hero */
.tsd-hero{border:1px solid rgba(14,42,43,.08);border-radius:22px;background:#fff;
  box-shadow:0 24px 48px rgba(11,18,32,.08);padding:38px}
.tsd-hero--wm{position:relative;overflow:hidden}
.tsd-hero--wm:before{
  content:"";position:absolute;inset:-10%;opacity:.06;pointer-events:none;
  background: url(REPLACE_SEAL_PNG_URL) center/480px no-repeat;
}

/* Buttons */
.wp-block-button__link{background:var(--red);border:1px solid var(--red);color:#fff}
.is-style-outline .wp-block-button__link{background:#fff;color:var(--teal);border:1px solid var(--teal)}
.tsd-donate .wp-block-button__link{background:var(--gold);border-color:var(--gold);color:#1F1B14}

/* Cards */
.tsd-card{background:#fff;border:1px solid rgba(14,42,43,.08);border-radius:16px;
  box-shadow:0 12px 28px rgba(11,18,32,.06);padding:22px}

/* Impact grid */
.tsd-impact{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}
.tsd-stat{color:var(--red);font-weight:800;font-size:22px;margin-bottom:6px}
.tsd-label{color:var(--slate);}

/* Footer strip (optional dark) */
.tsd-foot{background:var(--navy);color:#fff;border-radius:16px;padding:18px;text-align:center}
.tsd-foot a{color:#fff;text-decoration:underline}
.wp-block-group:has(h2:contains("Your voice can open another door")) {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  background: #f5f1e3; /* subtle parchment tone */
  padding: 40px 20px;
  border-radius: 12px;
}
.wp-block-group:has(h2:contains("Your voice can open another door")) a {
  color: #a62a2a;
  font-weight: 600;
  text-decoration: underline;
}
/* Remove unexpected vertical gaps */
.sd-article, .split-hero, header, main.paper, .hero-figure, .hero-meta {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure hero image does not introduce whitespace */
.hero-figure, .hero-figure img, .hero-figure figure {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0; /* removes inline-image gap */
}

/* Keep header spacing controlled */
.split-hero { gap: 20px; margin-bottom: 18px; }

/* Prevent large bottom margin on the hero caption */
.hero-figure figcaption { margin: 8px 12px; }

/* Ensure main content sits tight under hero */
main.paper { margin-top: 0; padding-top: 18px; }

/* Small-screen tweak */
@media (max-width:820px) {
  .split-hero { gap: 14px; margin-bottom: 14px; }
}
/* === Remove the two top gaps on Science, Cosmology, Physics page (page_id=482) === */
body.page-id-482 header.entry-header{
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* Hide the empty page title area */
body.page-id-482 h1.entry-title{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* If breadcrumbs are contributing to the gap, remove them too */
body.page-id-482 #kadence-breadcrumbs{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reduce any extra spacing Kadence adds before content */
body.page-id-482 .entry-content-wrap{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-482 .content-wrap{
  padding-top: 0 !important;
}
/* =====================================================
   THE SECOND DOOR — KADENCE HEADER FIX
   Compact, non-sticky, premium navy/gold header
===================================================== */

/* 1. Stop sticky header from covering page content */
.site-header,
.site-main-header-wrap,
.site-bottom-header-wrap,
#masthead {
  position: relative !important;
  top: auto !important;
  z-index: 50 !important;
}

/* Disable Kadence sticky transform behavior if active */
.item-is-stuck,
.site-header-row-container-inner.item-is-stuck,
.site-header-section.item-is-stuck {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 2. Main header background */
.site-header,
.site-main-header-wrap,
.site-bottom-header-wrap,
.site-header-row-container-inner {
  background: #071323 !important;
}

/* 3. Reduce massive header height */
.site-main-header-wrap .site-header-row-container-inner {
  min-height: 145px !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.site-bottom-header-wrap .site-header-row-container-inner {
  min-height: 74px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-top: 1px solid rgba(196,154,58,.25);
  border-bottom: 1px solid rgba(196,154,58,.38);
}

/* 4. Logo size */
.site-branding img,
.custom-logo {
  max-height: 135px !important;
  width: auto !important;
}

/* 5. Brand text beside logo */
.tsd-brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 18px;
}

.tsd-brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .045em;
  color: #c49a3a;
  text-transform: uppercase;
}

.tsd-brand-tagline {
  margin-top: 12px;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 700;
  color: #e0bf66;
}

/* 6. Navigation styling */
.header-navigation .menu > li > a,
.main-navigation .primary-menu-container > ul > li > a {
  color: #fff7e7 !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.header-navigation .menu > li > a:hover,
.main-navigation .primary-menu-container > ul > li > a:hover {
  color: #e0bf66 !important;
}

/* 7. Dropdown menu */
.header-navigation .sub-menu {
  background: #071323 !important;
  border: 1px solid rgba(196,154,58,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.header-navigation .sub-menu a {
  color: #fff7e7 !important;
  font-size: .95rem !important;
}

.header-navigation .sub-menu a:hover {
  background: rgba(196,154,58,.12) !important;
  color: #e0bf66 !important;
}

/* 8. Mobile header */
@media (max-width: 768px) {
  .site-main-header-wrap .site-header-row-container-inner {
    min-height: 86px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .site-branding img,
  .custom-logo {
    max-height: 70px !important;
  }

  .tsd-brand-lockup {
    padding-left: 8px;
  }

  .tsd-brand-title {
    font-size: 1.45rem;
    letter-spacing: .035em;
  }

  .tsd-brand-tagline {
    display: none;
  }

  .site-bottom-header-wrap {
    display: none !important;
  }
}