
:root{--accent:#2b7de9}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:#0f2233;line-height:1.6;background:#fff}
a{color:var(--accent);text-decoration:none}
.site-header{display:flex;align-items:center;justify-content:flex-start;padding:12px 12px;border-bottom:1px solid #e6e9ef;background:#fff;position:sticky;top:0;z-index:1000}
.header-left{display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.site-header > a.donate-always{margin-left:auto}
.logo{display:flex;align-items:center;font-weight:600}
.logo-icon{height:42px;width:auto;margin-right:10px;object-fit:contain;display:block}
.logo-text{font-size:24px;line-height:1;display:flex;align-items:center;font-weight:600;letter-spacing:.3px;white-space:nowrap;color:#000}

/* Header layout: keep brand on the left, menu links immediately beside it, donate on the far right */
.site-header .menu-toggle{order:0}
.site-header .logo{order:1}
.site-header .nav{order:2;margin-left:14px}
.site-header .donate-always{order:3;margin-left:auto}

/* Overrides: ensure header logo has no transform and is flush left */
header .logo img{transform:none !important;}
header .logo .logo-text{padding-left:0 !important;}
.menu-toggle{font-size:26px;background:transparent;border:0;cursor:pointer}
.nav{display:none;position:absolute;right:16px;top:62px;background:#fff;border:1px solid #e6e9ef;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:10px}
.nav a{display:block;padding:8px 12px;white-space:nowrap}
.nav.open{display:block}
  .nav{position:static;display:flex;border:none;box-shadow:none;padding:0}
  .nav a{display:inline-block;margin-left:14px}
}

@media (max-width: 768px) {
  /* Mobile: pin top donate button to top-right */
  .site-header{padding-right:90px;}
  .site-header .donate-home-top,
  .site-header .donate-top-img{
    position:absolute;
    right:14px;
    top:10px;
    z-index:1100;
  }

  /* Mobile: keep Donate buttons comparable to Shoppers size */
  .donate-top-img img,
  .donate-home-top img,
  .top-donate-button img,
  .top-donate-button svg {
    height: 51px !important;
    width: auto !important;
    transform: none !important;
  }

  /* Mobile: homepage bottom donate button */
  .donate-home-bottom img {
    height: 51px !important;
    width: auto !important;
    transform: none !important;
  }


/* Mobile: header layout to match example */

  /* Mobile: make header items flush left */
  .site-header{padding-left:8px !important;}
  .menu-toggle{margin-left:0 !important;}
  .site-header{justify-content:flex-start;gap:12px;}
  .menu-toggle{order:0;margin-right:6px;}
  .logo{order:1;flex:1;min-width:0;align-items:flex-start;}
  .logo-icon{height:45px !important;width:auto !important;}
  .logo-text{font-size:22px !important;font-weight:600 !important;white-space:normal !important;line-height:1.05;display:block;margin-top:2px;}

/* Mobile: headlines unified (keep homepage main headline larger) */
h1:not(.home-headline), h2, h3, .support-headline, .homepage-subheadline{
  font-size: 1.17em !important;
  line-height: 1.25 !important;
}

/* Mobile: homepage main headline */
.home-headline{
  font-size: 1.55rem !important;
  line-height: 1.2 !important;
}
}

/* Homepage main headline */
.home-headline{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#0f2233;
  font-size:clamp(2.05rem, 3.4vw, 3rem);
  line-height:1.18;
  letter-spacing:0;
  font-weight: 600;
}

/* Research pillars (homepage) */
.research-pillars{margin:28px 0 42px}
.research-pillars-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;align-items:start}
.research-pillar{text-align:center}
.research-pillar img{width:132px;max-width:100%;height:auto;display:block;margin:0 auto 12px}
.research-pillar-title{font-weight:400;color:#1f2937;font-size:1.06rem;line-height:1.28;letter-spacing:0;max-width:16ch;margin:0 auto}
@media (max-width: 768px){
  .research-pillars-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:44px}
  .research-pillar img{width:122px}
  .research-pillar-title{font-size:1.02rem}
}

.hero{position:relative}
.hero img{width:100%;max-height:80vh;object-fit:contain;display:block}
.hero-mask{position:absolute;left:0;right:0;bottom:0;height:18%;pointer-events:none;background:linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0.0) 70%);}
.hero-btn{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);}
.hero + main{margin-top:28px}
.content{max-width:1100px;margin:26px auto;padding:0 16px}


.btn{display:inline-block;padding:12px 18px;border-radius:10px;font-weight:600;background:var(--accent);color:#fff}
.btn.donate.ghost{background:#fff;border:2px solid var(--accent);color:var(--accent)}
.btn:hover{opacity:.92}
.donation-buttons{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.donation-buttons.donate-page{margin-top:22px}
.pdf-embed{width:100%;height:80vh;border:1px solid #e6e9ef;border-radius:8px}
.site-footer{background:#0a2a4a;color:#ffffff;margin-top:40px}
.site-footer a{color:#ffffff;text-decoration:none}
.site-footer a:hover{text-decoration:underline;opacity:0.9}
.footer-mega-inner{max-width:1100px;margin:0 auto;padding:40px 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.footer-col h3{font-size:14px;letter-spacing:0.08em;text-transform:uppercase;margin:0 0 14px 0}
.footer-text{margin:0 0 12px 0;line-height:1.5;opacity:0.92}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.footer-links li{margin:0;padding:0}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.18);padding:16px 18px;text-align:center;font-size:13px;opacity:0.9}
@media (max-width: 900px){.footer-mega-inner{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 520px){.footer-mega-inner{grid-template-columns:1fr;padding:32px 18px;} .footer-col h3{margin-top:8px;}}
.faq details{border:1px solid #e6e9ef;border-radius:10px;background:#fff;margin:10px 0}
.faq summary{padding:12px 14px;cursor:pointer;font-weight:600}
.faq details>p{padding:0 14px 12px}
.protocol-full h1,.protocol-full h2,.protocol-full h3{margin-top:20px}
.protocol-full ul{padding-left:24px}


/* Header title style (black, bold) */
.logo-text{color:#000;font-weight:600;font-size:24px;letter-spacing:.3px;white-space:nowrap;}
.logo-icon{height:46px;width:auto;margin-right:10px;object-fit:contain;display:block;}


/* --- Widescreen image layout (2025-10-23) --- */
img.widescreen { 
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  height: auto;
}
/* Ensure hero and section blocks can go edge-to-edge */
.hero, .hero-cta, section, .content img.widescreen {
  margin: 0;
  padding: 0;
}
/* Simple nav layout so Donate sits beside Home */
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 8px 10px; }
.site-nav .donate-top { border: 1px solid var(--accent, #2b7de9); border-radius: 6px; }
.pdf-viewer { margin: 24px 0; }


/* --- Header logo guard (2025-10-23) --- */
header .logo img, .site-header .logo img, header img.logo {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  width: auto;
  height: 48px;
  max-height: 60px;
}


/* ---- Donate tab widget (Give once / Monthly) ---- */
.donate-tabs{display:flex;gap:10px;margin:10px 0 14px}
.donate-tabs .tab{font-size:16px;flex:1;padding:12px 14px;border:1px solid #d0d7de;border-radius:12px;background:#fff;font-weight:800;cursor:pointer}
.donate-tabs .tab.active{border:2px solid #1f6feb;background:#eef4ff}
.donate-panel.hidden{display:none}
.donate-amount-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
@media (max-width:420px){.donate-amount-grid{grid-template-columns:repeat(2,1fr)}}
.donate-amount-grid .amt{padding:14px 10px;border:1px solid #d0d7de;border-radius:12px;background:#fff;font-size:18px;font-weight:800;cursor:pointer}
.donate-amount-grid .amt.active{border:2px solid #1f6feb;background:#eef4ff}
.donate-summary{border:1px solid #d0d7de;border-radius:14px;padding:14px}
.donate-summary-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.donate-summary-amt{font-size:34px;font-weight:900;line-height:1}
.donate-currency{font-size:16px;font-weight:800;color:#57606a;margin-left:6px}
.donate-hint{color:#57606a;font-size:14px;margin-top:6px}
.donate-primary{width:100%;padding:14px 16px;border-radius:12px;border:none;font-size:18px;font-weight:900;cursor:pointer;background:#1f6feb;color:#fff}
.donate-primary:disabled{opacity:.6;cursor:not-allowed}
.donate-error{color:#b42318;font-size:13px;margin-top:10px;min-height:18px}
.donate-secure-header{display:block;width:100%;max-width:380px;margin:10px auto 14px auto}


/* ---- Donate widget overrides (per latest request) ---- */
.donate-widget-wrap{margin-top:18px;} /* space between paragraph and forms */

/* Tabs: bigger, black, not bold */
.donate-tabs .tab{
  font-weight:400 !important;
  color:#000 !important;
  font-size:20px !important;
}

/* Amount buttons: black, not bold */
.donate-amount-grid .amt{
  font-weight:400 !important;
  color:#000 !important;
}

/* Heart: red, only visible when Monthly tab is active */
.donate-tabs .tab .heart{
  display:inline;
  color:#ff007a;
  margin-right:6px;
}
.donate-tabs .tab.active .heart{
  display:inline;
}

/* Flying heart animation on monthly tab click */
.heart-fly{
  position:fixed;
  transform:translate(-50%,-50%);
  color:#ff007a;
  font-size:11px;
  pointer-events:none;
  animation:heartFlyUp 900ms ease-out forwards;
  z-index:9999;
}
@keyframes heartFlyUp{
  0%{opacity:1; transform:translate(-50%,-50%) translateY(0) scale(1);}
  100%{opacity:0; transform:translate(-50%,-50%) translateY(-80px) scale(1);}
}


/* Heart reduced by 36% */
.heart{
  display:inline-block;
  transform: scale(0.375);
  transform-origin: center;
}

/* Donate pages: fixed heart +15% */
.donate-page .heart{transform: scale(0.43125);}

/* Alt donate image buttons (PayPal above GoFundMe) */
.alt-donate{
  display:flex;
  flex-direction:row;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:14px;
  align-items:center;
  margin: 16px 0 6px;
}
.donate-img-btn{
  width:auto;
  border-radius:10px;
  overflow:hidden;
  display:inline-block;
}
.donate-img-btn img{display:block; max-height:44px; width:auto; height:auto;}

.donate-img-btn img{
  width:100%;
  height:72px;
  object-fit:contain;
  display:block;
}

/* --- Sticky Donate button (always visible, not inside menu) --- */
.donate-always{white-space:nowrap;}

/* Top donate button (image) on all pages */
.donate-top-img{
  background:transparent;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  line-height:0;
}
.donate-top-img img{display:block;height:50px;width:auto;}
 (max-width:420px){
  .donate-top-img img{height:44px;}
}

/* Homepage donate image buttons */
.donate-home-top, .donate-home-bottom{
  background:transparent;
  padding:0;
  border-radius:0;
}
.donate-home-top img{display:block;height:50px;width:auto;}
.donate-home-bottom img{display:inline-block;height:50px;width:auto;}
 (max-width:420px){
  .donate-home-top img{height:44px;}
  .donate-home-bottom img{height:44px;}
}

.donate-home-bottom-wrap{margin:14px 0 22px; text-align:left;}
.donate-home-bottom-wrap a{display:inline-block;}

/* Homepage title above intro */
.home-title{
  margin: 0 16px 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color:#0f2233;
}

/* Donate page: PayPal + GoFundMe row */
.alt-donate-wrap{margin: 14px 0 8px;}
.alt-donate-label{font-weight:600;color:#000;margin:0 0 8px;}
.alt-donate{
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
  gap:14px;
  width:100%;
  margin:0;
}
.donate-img-btn{width:auto;}
.donate-img-btn img{height:56px; width:auto; object-fit:contain;}

/* Monthly heart sizing (tab + flying hearts) */
.heart{transform: scale(0.375);}
.heart-fly{font-size:11px;}

/* === Donate button size adjustments === */
.top-donate-button img,
.top-donate-button svg {
  transform: scale(1.5);
}

.homepage .bottom-donate-button img,
.homepage .bottom-donate-button svg {
  transform: scale(0.35);
}

.monthly-tab .flying-heart {
  transform: scale(1);
}
/* --- Full-bleed helpers (edge-to-edge sections) --- */
.full-bleed{
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.hero-bleed img{width:100%;height:auto;display:block;object-fit:cover;}

/* --- Homepage spacing + new subheadline --- */
.content p{margin-bottom:22px;}
.content img{margin-top:18px;}
.homepage-subheadline{
  margin: 26px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #0f2233;
  font-weight: 600;
}

/* --- Full-bleed helpers (edge-to-edge sections) --- */
.full-bleed{
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.hero-bleed img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Homepage spacing + new subheadline --- */
.content p{margin-bottom:22px;}
.content img{margin-top:18px;}
.homepage-subheadline{
  margin: 26px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #0f2233;
  font-weight: 600;
}

@media (min-width: 768px) {
  .homepage .bottom-donate-button img,
  .homepage .bottom-donate-button svg {
    transform: scale(0.2835);
  }
}


/* Donate monthly tab heart size */
.donate-tabs .heart{display:inline-block;font-size:11px;line-height:11px;height:11px;vertical-align:middle;margin-right:4px;}

/* Support images (homepage) */
.support-image-top,.support-image-bottom{margin:34px 0 18px}
.support-image-top img,.support-image-bottom img{width:100%;height:auto;display:block;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,0.10)}


/* Donate page: monthly tab heart +13% */
.donate-page .donate-tabs .heart{transform: scale(0.42375);}

/* Mobile: keep top page links hidden (only accessible via menu) */
@media (max-width: 900px){
  .site-header .nav{flex-wrap:nowrap;}
}


/* Section heading (St. Joes style) */
.section-heading{margin:28px 0 18px;text-align:center}
.section-heading h2{margin:0 0 10px;font-size:clamp(1.6rem,3.2vw,2.3rem);line-height:1.2;color:#0f2233;font-weight:600}
.section-heading .section-heading-line{height:1px;background:#e6e9ef;width:100%;max-width:520px;margin:0 auto}

/* Make the magnifier pillar icon match the others */
.research-pillar img.pillar-magnify{width:118px}
@media (max-width: 768px){
  .research-pillar img.pillar-magnify{width:110px}
}


/* Section heading (St. Joe's style) */
.section-heading{max-width:1100px;margin:22px auto 10px;padding:0 16px;text-align:center}
.section-heading h2{margin:0 0 10px;font-size:clamp(1.6rem, 3.2vw, 2.2rem);line-height:1.2;font-weight:600;color:#0f2233}
.section-heading .section-heading-line{height:1px;background:#e6e9ef;width:100%}

/* Research pillar icon adjustments */
.research-pillar img.pillar-magnify{width:118px}
@media (max-width: 768px){
  .research-pillar img.pillar-magnify{width:110px}
}

/* === Mobile + header + typography tweaks (2026-01-22) === */

/* Header: logo left, nav links right, donate left of 'Home' (desktop) */
.site-header{justify-content:space-between !important;}
.header-left{flex:0 1 auto !important;min-width:0 !important;}
.header-right{display:flex !important;align-items:center !important;gap:12px !important;margin-left:auto !important;}

/* Desktop: remove hamburger lines and keep links on the right */
@media (min-width: 769px){
  .menu-toggle{display:none !important;}
  .nav{display:flex !important;position:static !important;border:none !important;box-shadow:none !important;padding:0 !important;background:transparent !important;}
  .nav a{display:inline-block !important;margin-left:14px !important;padding:8px 10px !important;}
  .site-header{padding-right:14px !important;}
  /* Desktop donate button inside nav */
  .donate-top-btn{display:none !important;}
  .donate-nav-btn{display:inline-flex !important;align-items:center !important;margin-left:8px !important;padding:0 6px !important;}
  .donate-nav-btn img{height:65px !important;width:auto !important;}
}

/* Mobile: hamburger opens menu links; title/icon flush left; donate pinned top-right */
@media (max-width: 768px){
  .site-header{padding-left:6px !important;padding-right:90px !important;}
  .logo-icon{height:42px !important;margin-right:8px !important;}
  .logo-text{font-size:20px !important;white-space:normal !important;line-height:1.05 !important;}

  .donate-top-btn{position:fixed !important;right:12px !important;top:calc(env(safe-area-inset-top, 0px) + 10px) !important;z-index:2000 !important;}
  .donate-top-btn{display:inline-block !important;}
  .donate-nav-btn{display:none !important;}
  .donate-top-btn img{height:51px !important;width:auto !important;}

  .nav{display:none !important;position:absolute !important;right:10px !important;top:62px !important;background:#fff !important;border:1px solid #e6e9ef !important;border-radius:10px !important;box-shadow:0 10px 30px rgba(0,0,0,.08) !important;padding:10px !important;}
  .nav a{display:block !important;margin:0 !important;padding:8px 12px !important;}
  .nav.open{display:block !important;}
}

/* Homepage main headline: slightly smaller, less bold, navy */
.home-headline{
  color:#0a2a4a !important;
  font-weight:500 !important;
  font-size:clamp(1.9rem, 3.2vw, 2.8rem) !important;
}
@media (max-width: 768px){
  .home-headline{font-size:1.36rem !important;}
}

/* “Our Research Focus” flush left + divider full width */
.section-heading{text-align:left !important;}
.section-heading .section-heading-line{margin:0 !important;max-width:none !important;}

/* Research pillar logos: 300px high (keep aspect ratio) + captions closer to icons */
.research-pillar img{height:275px !important;width:auto !important;max-width:100% !important;object-fit:contain !important;margin:0 auto 4px !important;}
@media (max-width: 768px){
  .research-pillars-grid{row-gap:22px !important;}
}

/* Mobile: reduce specific long H1s */
@media (max-width: 768px){
  .topic-headline,
  .donate-headline{font-size:1.18rem !important;line-height:1.25 !important;margin-top:20px !important;}
}

/* Donate pages: make the Interac e-Transfer line slightly larger */
.etransfer-note{font-size:1.125rem !important;}

/* Extra spacing before key homepage headings */
.homepage-subheadline{margin-top:42px !important;}
.support-headline{margin-top:34px !important;}
@media (max-width: 768px){
  .homepage-subheadline{margin-top:34px !important;}
  .support-headline{margin-top:28px !important;}
}

/* Footer: add site icon */
.footer-brand{max-width:1100px;margin:0 auto;padding:22px 18px 0;display:flex;justify-content:center;}
.footer-icon{height:150px;width:auto;display:block;opacity:0.95;}


/* Captions closer to pillar logos */
.research-pillar-title{margin-top:2px !important;}



/* remove oversized pinned donate */
  .donate-nav-btn{display:inline-flex !important;} /* keep donate as normal menu item */
  .donate-nav-btn img{height:44px !important;width:auto !important;}
}



/* --- MedBliss update: hero overlay text + header vertical centering (2026-02-05) --- */
.hero{position:relative;}
.hero img.widescreen{display:block;width:100%;height:auto;}
.hero-overlay-text{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  font-weight:700;
  font-size:32px;
  color:#ffffff;
  background:none;
  padding:0;
  text-shadow:0 2px 10px rgba(0,0,0,0.55);
  pointer-events:none;
}
@media (max-width: 768px){
  .hero-overlay-text{font-size:15px;}
}

/* Vertically center the donate button with top nav links on all pages */
.site-header .nav{align-items:center;}
.site-header .nav a{display:flex;align-items:center;}
.site-header .donate-nav-btn{display:flex;align-items:center;}
.site-header .donate-nav-btn img{display:block;}
.site-header a.donate-always{display:flex;align-items:center;}
.site-header a.donate-top-btn{display:flex;align-items:center;}
.site-header a.donate-top-btn img{display:block;}
