/* Ramah International — static rebuild (warm nonprofit) */
:root {
  --teal-950: #0a3a45;
  --teal-900: #0f4c5c;
  --teal-800: #155a6b;
  --teal-700: #1a6b7a;
  --teal-500: #2a8a9a;
  --teal-300: #7eb8c3;
  --teal-100: #e6f3f6;
  --teal-50: #f3fafb;
  --sand: #f8f4ef;
  --sand-deep: #efe6da;
  --ink: #1c2a30;
  --muted: #5a6a70;
  --border: #d3e2e6;
  --white: #ffffff;
  --accent: #c4785a;
  --accent-soft: #f6ebe4;
  --focus: #0b6e99;
  --max: 1280px;
  --content-col: 900px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 76, 92, 0.08);
  --shadow-soft: 0 4px 16px rgba(15, 76, 92, 0.06);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-900); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal-900); color: #fff;
  padding: .6rem 1rem; z-index: 1000; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(15,76,92,.04);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.logo img { height: 52px; width: auto; }
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.header-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .62rem 1.15rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font: inherit; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px rgba(26,107,122,.22); }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-300); }
.btn-outline:hover { background: var(--teal-100); color: var(--teal-900); border-color: var(--teal-500); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(196,120,90,.25); }
.btn-accent:hover { background: #a86246; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: var(--teal-50); border: 1px solid var(--border);
  border-radius: 8px; font: 22px/1 system-ui, sans-serif; color: var(--teal-900);
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--teal-100); }
.nav-toggle[aria-expanded="true"] { background: var(--teal-100); border-color: var(--teal-500); }
.primary-nav { background: linear-gradient(90deg, var(--teal-950), var(--teal-800)); }
.primary-nav .wrap { display: flex; flex-wrap: wrap; gap: 0; }
.primary-nav details { position: relative; }
.primary-nav summary {
  list-style: none; cursor: pointer; color: #fff; padding: .85rem 1rem;
  font-weight: 600; font-size: .94rem;
}
.primary-nav summary::-webkit-details-marker { display: none; }
.primary-nav summary::after { content: " ▾"; opacity: .7; font-size: .8em; }
.primary-nav a.top-link {
  display: block; color: #fff; text-decoration: none; padding: .85rem 1rem;
  font-weight: 600; font-size: .94rem;
}
.primary-nav a.top-link:hover,
.primary-nav details[open] > summary,
.primary-nav summary:hover { background: rgba(255,255,255,.1); color: #fff; }
.primary-nav .dropdown {
  position: absolute; left: 0; top: 100%; min-width: 270px;
  background: #fff; border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow); padding: .45rem 0; z-index: 40;
}
/* Hit-area bridge: keep pointer inside <details> while moving into the submenu */
.primary-nav .dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.primary-nav .dropdown a {
  display: block; padding: .55rem 1rem; color: var(--ink); text-decoration: none;
  font-size: .95rem;
}
.primary-nav .dropdown a:hover { background: var(--teal-50); color: var(--teal-900); }
.external-note { font-size: .8rem; color: var(--muted); padding: .3rem 1rem .5rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(126,184,195,.35), transparent 60%),
    linear-gradient(135deg, var(--teal-50) 0%, var(--sand) 55%, #fff 100%);
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 2.25rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem .45rem;
  font-size: clamp(0.98rem, 2.5vw, 1.2rem); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1.35; max-width: 100%;
  color: var(--teal-700); background: rgba(255,255,255,.7);
  border: 1px solid var(--border); border-radius: 999px; padding: .4rem .95rem; margin-bottom: .9rem;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.22; margin: 0 0 .85rem; color: var(--teal-950); font-weight: 700;
}
.hero .lede { font-size: 1.16rem; color: var(--muted); max-width: 40rem; margin: 0 0 .35rem; }

/* Desktop-only: widen homepage hero content beyond the global --max wrap */
@media (min-width: 961px) {
  .hero .hero-grid {
    width: min(100% - 3rem, 1520px);
  }
  .hero .lede {
    max-width: 48rem;
  }
}
.hero-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}
.hero-panel img {
  width: 100%; height: auto; border-radius: var(--radius-sm); object-fit: cover; max-height: 280px;
}
.hero-panel .caption {
  margin: .85rem .25rem .15rem; font-size: .92rem; color: var(--muted);
}

/* Homepage product slider (shop samples) — framed shelf */
.product-slider { display: flex; flex-direction: column; gap: .65rem; }
.product-slider-head { padding: .15rem .25rem 0; }
.product-slider-kicker {
  margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-700);
}
.product-slider-sub {
  margin: .15rem 0 0; font-size: 1.05rem; font-family: var(--serif);
  color: var(--teal-950); font-weight: 700;
}
.product-slider-viewport {
  /* Soft tint of brand primary #006987 — contrasts with teal-50/sand hero */
  background: linear-gradient(180deg, #eaf4f7 0%, #d5e9ef 100%);
  border: 1.5px solid var(--teal-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft), inset 0 -14px 0 rgba(0, 105, 135, 0.06);
  /* border-box so padding on the slide is inside this height (2-line titles fit) */
  box-sizing: border-box;
  min-height: 468px;
  height: 468px;
  overflow: hidden;
  position: relative;
}
.product-slides { list-style: none; margin: 0; padding: 0; height: 100%; }
.product-slide { margin: 0; height: 100%; }
.product-slide a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: .55rem;
  /* ≥1rem breathing room so covers never touch the card edges */
  padding: 1.15rem 1.1rem 1.2rem;
  min-height: 468px;
  height: 468px;
  text-decoration: none;
  color: inherit;
}
.product-slide a:hover .product-slide-cta,
.product-slide a:focus-visible .product-slide-cta {
  background: #0a5570;
  text-decoration: none !important;
}
/* Fixed image frame; object-fit contain keeps every aspect ratio fully visible */
.product-slider .product-slide img {
  box-sizing: border-box;
  width: 192px;
  height: 268px;
  max-width: 192px;
  max-height: none;
  flex: 0 0 268px;
  object-fit: contain;
  object-position: center;
  /* Transparent frame so the teal card tint shows in letterbox areas */
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  /* Soft lift on the cover art itself (follows opaque pixels) */
  filter: drop-shadow(0 8px 18px rgba(15, 76, 92, 0.18));
  justify-self: center;
}
.product-slide-name {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reserve two lines so short titles don't change slide height */
  min-height: calc(1.02rem * 1.35 * 2);
  max-width: 16rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--teal-950);
  font-weight: 700;
  margin: 0;
}
.product-slide-price {
  display: block;
  font-weight: 700;
  color: #006987;
  margin: 0;
  flex: 0 0 auto;
}
.product-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
  padding: .42rem 1.15rem;
  border-radius: 999px;
  background: #006987;
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 105, 135, 0.28);
  text-decoration: none !important;
  flex: 0 0 auto;
}
.product-slider-dots { display: flex; justify-content: center; gap: .4rem; }
.product-slider-dots button {
  appearance: none; width: .65rem; height: .65rem; border-radius: 999px;
  border: 1px solid var(--teal-300); background: #fff; padding: 0; cursor: pointer;
}
.product-slider-dots button.is-active,
.product-slider-dots button[aria-selected="true"] {
  background: var(--teal-700); border-color: var(--teal-700);
}
.product-slider-dots button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.product-slider .caption a { color: var(--teal-700); font-weight: 600; text-decoration: none; }
.product-slider .caption a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .product-slider-viewport { min-height: 400px; height: 400px; }
  .product-slide a {
    min-height: 400px;
    height: 400px;
    gap: .45rem;
    padding: 1rem .9rem 1.05rem;
  }
  .product-slider .product-slide img {
    width: 150px;
    height: 210px;
    max-width: 150px;
    max-height: none;
    flex: 0 0 210px;
  }
  .product-slide-name {
    min-height: calc(1.02rem * 1.35 * 2);
  }
}


/* Wider/landscape covers (slides 3 & 5): use more card width, same frame height */
.product-slider .product-slide--wide picture {
  display: block;
  width: 300px;
  max-width: 100%;
}
.product-slider .product-slide--wide img {
  width: 300px;
  max-width: 100%;
  height: 268px;
  flex: 0 0 268px;
}
@media (max-width: 960px) {
  .product-slider .product-slide--wide picture {
    width: 260px;
    max-width: 100%;
  }
  .product-slider .product-slide--wide img {
    width: 260px;
    max-width: 100%;
    height: 210px;
    flex: 0 0 210px;
  }
}


.page-hero {
  padding: 2.1rem 0 1.6rem;
  background:
    linear-gradient(120deg, var(--teal-50), var(--sand));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--serif); margin: 0; color: var(--teal-950);
  font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.25;
}
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .55rem; }
.breadcrumb a { color: var(--teal-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

main { padding: 0 0 3rem; }
.prose { max-width: var(--content-col); }
/* Readable wrapping inside article column (prevents rare long tokens from forcing horizontal scroll) */
.content-area.prose {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: min(var(--content-col), 100%);
  margin-inline: auto; /* center the 900px reading column inside .wrap */
  text-align: left; /* keep body copy left-aligned inside the column */
}

/* Match page-hero title/breadcrumb to the same centered 900px column (inner pages only) */
.page-hero .wrap {
  max-width: min(var(--content-col), 100%);
}

.prose h2, .content-area h2 {
  font-family: var(--serif); color: var(--teal-900); margin-top: 2rem;
  font-size: 1.45rem; line-height: 1.3;
}
.prose h3, .content-area h3 { color: var(--teal-700); margin-top: 1.5rem; font-size: 1.2rem; }
.prose p, .content-area p { margin: 0 0 1rem; }
.prose ul, .prose ol, .content-area ul, .content-area ol { padding-left: 1.25rem; }
.prose li, .content-area li { margin-bottom: .4rem; }
.prose blockquote, .content-area blockquote {
  margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--teal-500);
  background: var(--teal-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.content-area img { border-radius: var(--radius); margin: 1rem 0; }
.content-area figure { margin: 1.25rem 0; }
.content-area .aligncenter { margin-left: auto; margin-right: auto; }
.content-area .wp-caption-text, .content-area figcaption { font-size: .9rem; color: var(--muted); }

/* About Sydna: center portrait over caption */
.sydna-bio-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1.25rem auto 1.5rem;
  max-width: 100%;
}
.sydna-bio-portrait img {
  display: block;
  margin: 0 auto 0.85rem;
  width: min(100%, 521px);
  height: auto;
}
.sydna-bio-portrait figcaption {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36rem;
}
.sydna-bio-portrait figcaption p {
  margin: 0 0 .35rem;
}
.sydna-bio-portrait figcaption p:last-child {
  margin-bottom: 0;
}


/* Sections / cards */
.section { padding: 2.75rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, var(--teal-50), #f7fbfc);
  border-block: 1px solid var(--border);
}
.section-sand { background: var(--sand); border-block: 1px solid var(--sand-deep); }
.section-title {
  font-family: var(--serif); color: var(--teal-950); margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}
.section-intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-soft);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal-300); }
.card h3 { margin: 0 0 .55rem; color: var(--teal-900); font-size: 1.15rem; }
.card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.card img { margin-bottom: .9rem; border-radius: 8px; max-height: 70px; width: auto; object-fit: contain; }
/* Card hero photo: keep full image visible with light inset (no cover-crop). */
.card > picture.card-media-wrap,
.card > picture:has(img.card-media) {
  display: block;
  margin: -1.4rem -1.4rem 1rem;
  width: calc(100% + 2.8rem);
  padding: 1rem 1rem 0.35rem;
  box-sizing: border-box;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  line-height: 0;
  border-bottom: 1px solid var(--border);
}
.card img.card-media {
  display: block;
  margin: 0 auto 0.65rem;
  max-height: none !important;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
}
.card > img.card-media {
  margin: -0.4rem -0.4rem 1rem;
  width: calc(100% + 0.8rem);
  padding: 0;
}
.card .btn { align-self: flex-start; }
.mission-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .95rem; grid-template-columns: repeat(2, 1fr); }
.mission-list li {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow-soft); position: relative;
}
.mission-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px;
  background: linear-gradient(180deg, var(--teal-500), var(--accent)); border-radius: 999px;
}
.mission-list strong { color: var(--teal-900); display: block; margin-bottom: .3rem; font-size: 1.05rem; padding-left: .55rem; }
.mission-list span, .mission-list li { color: var(--muted); }
.mission-list li { padding-left: 1.15rem; color: var(--ink); }
.path-card {
  text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: block; height: 100%;
}
.path-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-300); color: inherit; }
.path-card .label {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: .35rem;
}
.path-card h3 { margin: 0 0 .35rem; color: var(--teal-950); font-size: 1.08rem; }
.path-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.testimonial {
  background: var(--white); border-left: 4px solid var(--accent); padding: 1.15rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; box-shadow: var(--shadow-soft);
}
.testimonial cite { display: block; margin-top: .6rem; font-style: normal; color: var(--muted); font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.split {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
/* Sydna Speaking: desktop text|photo; mobile heading → intro → photo → review → buttons */
.speaking-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-areas:
    "heading photo"
    "intro photo"
    "rest photo";
  gap: 1.1rem 2rem;
  align-items: center;
}
.speaking-heading { grid-area: heading; margin: 0; }
.speaking-intro { grid-area: intro; }
.speaking-intro p { margin-top: 0; }
.speaking-photo { grid-area: photo; }
.speaking-photo figure { margin: 0; }
.speaking-photo img { width: 100%; height: auto; display: block; }
.speaking-photo figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
.speaking-rest { grid-area: rest; }
@media (max-width: 960px) {
  .speaking-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "intro"
      "photo"
      "rest";
    align-items: stretch;
    gap: 1rem;
  }
}

/* Stay Connected portrait: under heading, larger than prior 180px cap */
.stay-connected-photo {
  display: block;
  margin: 0.15rem 0 1.15rem;
  max-width: min(100%, 320px);
}
.stay-connected-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.signup-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.signup-box label { display: block; font-weight: 600; margin: .7rem 0 .3rem; }
.signup-box input[type="text"],
.signup-box input[type="email"],
.signup-box textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: var(--teal-50);
}
.form-note { font-size: .9rem; color: var(--muted); margin-top: .75rem; }
.form-lead { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.quick-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem;
  margin-top: 1rem;
}
.quick-links a {
  display: block; text-decoration: none; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: .8rem .9rem; color: var(--teal-900); font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-soft);
}
.quick-links a:hover { background: var(--teal-100); border-color: var(--teal-300); }
.related {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.related h2 {
  font-family: var(--serif); color: var(--teal-900); font-size: 1.25rem; margin: 0 0 .85rem;
}
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.donate-banner {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #e8f5f7; border-radius: calc(var(--radius) + 2px); padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}
.donate-banner h2 { color: #fff; margin: 0 0 .55rem; font-family: var(--serif); font-size: 1.55rem; }
.donate-banner p { margin: 0 0 .85rem; color: #d5ebef; }
.donate-banner .form-note { color: #b7d4da; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--teal-900), var(--teal-950));
  color: #d9eef2; padding: 2.75rem 0 1.5rem; margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem;
}
.site-footer h2 { font-size: .92rem; color: #fff; margin: 0 0 .75rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer p { margin: 0 0 .6rem; }
.footer-logo {
  display: inline-block;
  margin: 0 0 .85rem;
  line-height: 0;
}
.footer-logo img {
  display: block;
  width: 200px;
  height: 50px;
  border-radius: 0;
  background: #fff; /* logo JPG/WebP has a white canvas; keeps it readable on the dark footer */
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: .85rem 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: rgba(255,255,255,.28);
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
}
.copyright {
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; font-size: .88rem; color: #a9c8cf;
}

@media (max-width: 960px) {
  .grid-3, .grid-2, .grid-4, .split, .footer-grid, .hero-grid, .mission-list { grid-template-columns: 1fr; }
  /* Mobile header: logo centered on its own row; actions + ☰ centered below. */
  .header-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .7rem 0;
  }
  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .logo img { height: 48px; width: auto; }
  .header-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: .4rem;
  }
  .header-actions .btn {
    padding: .55rem .72rem;
    font-size: .84rem;
    min-height: 44px;
    white-space: nowrap;
  }
  /* Mobile nav layout (visible without JS). With JS, html.nav-ready collapses behind ☰. */
  .primary-nav .wrap { flex-direction: column; }
  .primary-nav .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; background: rgba(0,0,0,.15); }
  .primary-nav .dropdown a { color: #fff; }
  .primary-nav .dropdown a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .external-note { color: #c5dde2; }
  html.nav-ready .nav-toggle { display: inline-flex; }
  html.nav-ready .primary-nav { display: none; }
  html.nav-ready .primary-nav.is-open { display: block; }
  .hero { padding: 2.4rem 0 2rem; }
}
@media (max-width: 400px) {
  .header-actions { gap: .3rem; }
  .header-actions .btn {
    padding: .5rem .55rem;
    font-size: .78rem;
    min-height: 44px;
  }
}

.newsletter-form .cf-turnstile {
  margin: .85rem 0 .35rem;
}
.form-status {
  margin: .75rem 0 0;
  color: #8a1f1f;
  font-size: .95rem;
}

/* Author byline, sources, and diagnosis note (Nov 10 2026 keyword work) */
.page-byline {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}
.page-byline a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: none;
}
.page-byline a:hover { text-decoration: underline; }

.diagnosis-note {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  padding: 0.85rem 1rem;
}

.sources {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.sources h2 {
  margin-top: 0;
}
.sources ul {
  margin-bottom: 0.75rem;
}
.sources-note {
  font-size: 0.95rem;
  color: var(--muted);
}
/* Self-hosted body and heading fonts (SEO round 2, Nov 10 2026) */
/* latin-ext */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-normal-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/libre-baskerville-normal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-normal-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-normal-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
