/* PAMA site styles
   Palette: deep teal (trust, clinical), sea teal (action), gold (from the SMIT crest),
   mist (quiet backgrounds), ink (text). */
:root {
  --teal-deep: #0d3b3e;
  --teal: #127c7a;
  --teal-dark: #0b5f5d;
  --gold: #c99a2e;
  --gold-soft: #f3e6c4;
  --mist: #eef3f2;
  --ink: #172322;
  --ink-soft: #4a5a58;
  --line: #d5e0de;
  --white: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --measure: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--teal-deep); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.1; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .7rem; font: inherit; color: var(--teal-deep); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a, .site-nav summary { white-space: nowrap; display: block; padding: .5rem .75rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 6px; cursor: pointer; }
.site-nav a:hover, .site-nav summary:hover { background: var(--mist); color: var(--teal-deep); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav details { position: relative; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.site-nav details ul { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .4rem; flex-direction: column; align-items: stretch; min-width: 220px; box-shadow: 0 8px 24px rgba(13, 59, 62, .12); }
.site-nav .btn-donate { background: var(--gold); color: var(--ink); font-weight: 700; margin-left: .5rem; padding: .55rem 1.1rem; }
.site-nav .btn-donate:hover { background: #b88a22; color: var(--ink); }
.site-nav .nav-login { border: 1.5px solid var(--teal); color: var(--teal-dark); font-weight: 600; padding: .45rem .9rem; margin-left: .35rem; }
.site-nav .nav-login:hover { background: var(--teal); color: var(--white); }
.site-nav .nav-login[aria-current="page"] { box-shadow: none; border-radius: 6px; background: var(--teal); color: var(--white); }
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav details ul { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
  .site-nav .btn-donate { margin: .5rem 0 0; text-align: center; }
  .site-nav .nav-login { margin: .5rem 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-family: var(--sans); font-size: 1rem; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b88a22; color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero: the hemisphere meridians are the one bold move on the site */
.hero { position: relative; overflow: hidden; background: var(--teal-deep); color: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='290' ry='290'/%3E%3Cellipse cx='300' cy='300' rx='220' ry='290'/%3E%3Cellipse cx='300' cy='300' rx='145' ry='290'/%3E%3Cellipse cx='300' cy='300' rx='70' ry='290'/%3E%3Cline x1='300' y1='10' x2='300' y2='590'/%3E%3Cline x1='10' y1='300' x2='590' y2='300'/%3E%3Cpath d='M40 170 Q300 210 560 170'/%3E%3Cpath d='M40 430 Q300 390 560 430'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 760px; background-position: right -180px center;
}
.hero .wrap { position: relative; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: var(--white); max-width: 15ch; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.04; }
.hero p { color: #d7e7e6; font-size: 1.2rem; max-width: 56ch; }
.hero-logo { width: 168px; height: 168px; object-fit: contain; margin-bottom: 1.5rem; background: var(--white); border-radius: 50%; padding: 0; box-sizing: border-box; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 3rem; padding-bottom: 2.5rem; }
.page-head h1 { margin-bottom: .3em; }
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-mist { background: var(--mist); }
.section + .section { border-top: 1px solid var(--line); }
.section-mist + .section, .section + .section-mist { border-top: 0; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.figure img { border-radius: 8px; width: 100%; object-fit: cover; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.figure-pair img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }

/* Pathways on the home page: rule-topped, not boxed */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem 1.25rem; margin-top: 2rem; }
.path { border-top: 3px solid var(--teal); padding-top: 1rem; }
.path:nth-child(2) { border-top-color: var(--gold); }
.path h3 { margin-bottom: .35em; }
.path h3 a { text-decoration: none; color: var(--teal-deep); }
.path h3 a:hover { text-decoration: underline; }
.path p { color: var(--ink-soft); margin: 0; }
.path img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; margin-bottom: .9rem; }

/* Mission list on About */
.mission { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.mission li img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; margin-bottom: .8rem; }
.mission h3 { border-left: 3px solid var(--gold); padding-left: .7rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--teal-deep); }
blockquote footer { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin-top: .7rem; }
.testimonial { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.testimonial:first-of-type { border-top: 0; }
.testimonial img { width: 160px; height: 160px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; }
@media (max-width: 600px) { .testimonial { grid-template-columns: 1fr; } }

/* Reasons to give */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem 2rem; margin-top: 2rem; }
.reasons h3 { font-size: 1.2rem; margin-bottom: .3em; }
.reasons p { color: var(--ink-soft); margin: 0; }
.give-options { counter-reset: give; list-style: none; padding: 0; margin: 1.5rem 0; }
.give-options li { counter-increment: give; padding: .8rem 0 .8rem 2.6rem; position: relative; border-bottom: 1px solid var(--line); font-weight: 600; }
.give-options li::before { content: counter(give); position: absolute; left: 0; top: .7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold-soft); color: var(--teal-deep); text-align: center; line-height: 1.8rem; font-size: .9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--teal-deep); cursor: pointer; list-style-position: outside; }
.faq details[open] summary { margin-bottom: .6rem; }
.faq p { max-width: var(--measure); color: var(--ink-soft); }

/* Data */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.figure-stat { border-left: 3px solid var(--gold); padding-left: 1rem; }
.figure-stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--teal-deep); line-height: 1.1; }
.figure-stat span { color: var(--ink-soft); font-size: .95rem; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
th, td { text-align: left; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--teal-deep); }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
th.num { text-align: right; }
.table-scroll { overflow-x: auto; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 1.5rem 0; background: var(--white); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Videos played from Google Drive, 16:9 */
.video { margin: 2rem 0 1.5rem; max-width: 900px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--teal-deep); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
/* Wide infographics: full width, tap to open at full size */
.infographic { margin: 2rem 0 1.5rem; }
.infographic img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.infographic figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
/* Published Google Sheets charts, shown as images that scale to fit */
.chart { margin: 1.5rem 0; max-width: 760px; }
.chart img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: .5rem; }

/* Blog list */
.posts { display: grid; gap: 2.5rem; margin-top: 1rem; }
.post { display: grid; grid-template-columns: 300px 1fr; gap: 1.75rem; align-items: start; }
.post img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.post h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post h2 a { text-decoration: none; color: var(--teal-deep); }
.post h2 a:hover { text-decoration: underline; }
.post-meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: .6rem; }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } }

/* Forms */
.form { max-width: 640px; display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form .hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.form input, .form select, .form textarea { width: 100%; padding: .75rem .85rem; font: inherit; border: 1px solid #b7c6c4; border-radius: 6px; background: var(--white); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold-soft); border-color: var(--teal); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; margin-bottom: .4rem; }
.checks { display: grid; gap: .4rem; }
.checks label { font-weight: 400; display: flex; gap: .55rem; align-items: center; margin: 0; }
.checks input { width: auto; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; }
.inline-form input { flex: 1 1 240px; padding: .8rem .9rem; font: inherit; border: 1px solid #b7c6c4; border-radius: 6px; }

/* Serve band + footer */
.serve { background: var(--teal-deep); color: #d7e7e6; }
.serve .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.serve h2 { color: var(--white); margin: 0; font-size: 1.6rem; }
.serve ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.serve a { display: inline-block; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: var(--white); text-decoration: none; }
.serve a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.site-footer { background: #0a2e30; color: #b9cfcd; font-size: .95rem; }
.site-footer .wrap { padding-top: 2.75rem; padding-bottom: 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.seal img { width: 110px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); }
.legal .wrap { display: block; padding-top: 1rem; padding-bottom: 1.5rem; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* =========================================================
   End of Year campaign pop-up (PAMA's own design)
   ========================================================= */
/* =========================================================
   ORGANIZATION COLORS — change these hex values to match
   your exact brand colors. Everything below uses them.
   ========================================================= */
:root {
  --pama-primary:   #005f73;  /* main brand color (titles, top band) */
  --pama-dark:      #0a3d4a;  /* deeper shade of the primary color */
  --pama-accent:    #e9a23b;  /* warm highlight (heart, glow, band) */
  --pama-accent-2:  #ca3e47;  /* secondary highlight (band, hearts) */
  --pama-light:     #e6f2f4;  /* soft background tint */
  --pama-text:      #2b2b2b;  /* body text */
}

/* ---------- Dimmed backdrop ---------- */
.pama-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 40, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 9998;
}
.pama-overlay.pama-show {
  opacity: 1;
  visibility: visible;
}

/* ---------- Popup card ---------- */
.pama-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 34px 26px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-family: Arial, sans-serif;
  text-align: center;
  overflow: hidden;
  z-index: 9999;
  /* hidden below the screen until triggered */
  transform: translate(-50%, 150vh);
  visibility: hidden;
}

/* Spring up from the bottom, overshoot, settle, then a little wiggle */
.pama-popup.pama-show {
  visibility: visible;
  animation:
    pamaRiseIn 1s cubic-bezier(0.22, 1.2, 0.36, 1) forwards,
    pamaWiggle 0.7s ease-in-out 1.1s 2;
}

.pama-popup.pama-hide {
  visibility: visible;
  animation: pamaDropOut 0.5s ease-in forwards;
}

@keyframes pamaRiseIn {
  0%   { transform: translate(-50%, 100vh) scale(0.7); }
  60%  { transform: translate(-50%, -54%) scale(1.04); }
  80%  { transform: translate(-50%, -49%) scale(0.98); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes pamaWiggle {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  20%      { transform: translate(-50%, -50%) rotate(-2deg); }
  40%      { transform: translate(-50%, -50%) rotate(2deg); }
  60%      { transform: translate(-50%, -50%) rotate(-1.2deg); }
  80%      { transform: translate(-50%, -50%) rotate(1.2deg); }
}

@keyframes pamaDropOut {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 80vh) scale(0.8); opacity: 0; }
}

.pama-popup:focus { outline: none; }

/* ---------- Animated color band across the top ---------- */
.pama-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    var(--pama-primary), var(--pama-accent), var(--pama-accent-2),
    var(--pama-primary), var(--pama-accent), var(--pama-accent-2));
  background-size: 300% 100%;
  animation: pamaBandFlow 4s linear infinite;
}
@keyframes pamaBandFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 150% 0; }
}

/* ---------- Floating hearts in the background ---------- */
.pama-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.pama-heart-float {
  position: absolute;
  bottom: -30px;
  font-size: 16px;
  opacity: 0;
  animation: pamaFloatUp linear infinite;
}
@keyframes pamaFloatUp {
  0%   { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.35; }
  100% { transform: translateY(-560px) scale(1.2) rotate(25deg); opacity: 0; }
}

.pama-content {
  position: relative;
  z-index: 1;
}

/* ---------- Beating heart icon with ripple rings ---------- */
.pama-icon {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pama-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pama-icon::before,
.pama-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pama-accent);
  animation: pamaRipple 2.2s ease-out infinite;
}
.pama-icon::after { animation-delay: 1.1s; }
@keyframes pamaRipple {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.pama-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--pama-accent-2);
  animation: pamaBeat 1.2s ease-in-out infinite;
}
@keyframes pamaBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.25); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.15); }
}

/* ---------- Text (fades in one line after another) ---------- */
.pama-eyebrow,
.pama-title,
.pama-subtitle,
.pama-donate-wrap,
.pama-footnote {
  opacity: 0;
  transform: translateY(12px);
}
.pama-popup.pama-show .pama-eyebrow    { animation: pamaFadeUp 0.5s ease 0.7s  forwards; }
.pama-popup.pama-show .pama-title      { animation: pamaFadeUp 0.5s ease 0.85s forwards; }
.pama-popup.pama-show .pama-subtitle   { animation: pamaFadeUp 0.5s ease 1.0s  forwards; }
.pama-popup.pama-show .pama-donate-wrap{ animation: pamaFadeUp 0.5s ease 1.15s forwards; }
.pama-popup.pama-show .pama-footnote   { animation: pamaFadeUp 0.5s ease 1.3s  forwards; }
@keyframes pamaFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.pama-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--pama-primary);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pama-title {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.25;
  color: var(--pama-dark);
  margin-bottom: 12px;
}
.pama-title span {
  color: var(--pama-primary);
  background: linear-gradient(transparent 62%, rgba(233, 162, 59, 0.45) 62%);
}

.pama-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: var(--pama-text);
  margin-bottom: 20px;
}

/* Glowing frame around the PayPal button */
.pama-donate-wrap {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--pama-light);
}
.pama-popup.pama-show .pama-donate-wrap {
  animation:
    pamaFadeUp 0.5s ease 1.15s forwards,
    pamaGlow 2s ease-in-out 1.8s infinite;
}
@keyframes pamaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 162, 59, 0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(233, 162, 59, 0.35); }
}

.pama-footnote {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 14px;
}

/* ---------- Close button ---------- */
.pama-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--pama-dark);
  font-size: 22px;
  line-height: 32px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.3s ease;
}
.pama-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

/* ---------- Small phones ---------- */
@media (max-width: 400px) {
  .pama-popup { padding: 30px 18px 20px; }
  .pama-title { font-size: 20px; }
  .pama-subtitle { font-size: 14px; }
}

/* ---------- Visitors who turn off motion get a simple fade ---------- */
@media (prefers-reduced-motion: reduce) {
  .pama-popup.pama-show,
  .pama-popup.pama-hide { animation: none; transform: translate(-50%, -50%); }
  .pama-popup.pama-hide { visibility: hidden; }
  .pama-popup.pama-show * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .pama-band, .pama-hearts { animation: none; display: none; }
}
  

.testimonial.no-img { grid-template-columns: 1fr; max-width: 820px; }

/* Photo gallery and wide photo band */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
/* Infographics and graphics are shown whole inside a photo frame */
img.fit-whole { object-fit: contain !important; background: var(--mist); padding: .5rem; }
/* Per-photo focus points so faces stay in frame when cropped */
img[src$="pediatric-exam.jpg"] { object-position: 50% 45%; }
img[src$="airway-training.jpg"] { object-position: 50% 8%; }
img[src$="clinical-training-group.jpg"] { object-position: 50% 35%; }
img[src$="emergency-team.jpg"] { object-position: 50% 30%; }
img[src$="havana-street-car.jpg"] { object-position: 50% 70%; }
img[src$="woman-newspaper.jpg"] { object-position: 50% 30%; }
img[src$="pitzal-ultrasound.jpg"] { object-position: 50% 35%; }
img[src$="clinic-girls.jpg"] { object-position: 50% 60%; }

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.band { margin: 0 0 2.5rem; }
.band img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .band img { aspect-ratio: 3 / 2; } }

/* Financial transparency */
.fin-total { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--teal-deep); line-height: 1; margin: .2em 0 .25em; font-variant-numeric: tabular-nums; }
.fin-note { color: var(--ink-soft); font-size: .95rem; }
.year-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.year { border-top: 3px solid var(--teal); padding-top: .9rem; }
.year:nth-child(2) { border-top-color: var(--gold); }
.year h3 { font-size: 1.1rem; margin-bottom: .2em; }
.year strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--teal-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.year dl { margin: .8rem 0 0; display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; font-size: .95rem; }
.year dt { color: var(--ink-soft); }
.year dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bars td.bar-cell { width: 34%; }
.bar { height: .7rem; background: var(--teal); border-radius: 999px; min-width: 3px; }
.bar.gold { background: var(--gold); }
.pct { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 700px) { .bars td.bar-cell, .bars th.bar-cell { display: none; } }
.kit-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 600px) { .kit-list { columns: 1; } }

/* =========================================================
   Donor-focused sections (home and donate)
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-trust { font-size: .95rem !important; color: #b9d3d1 !important; margin-top: 1rem; letter-spacing: .01em; }

.impact-band { background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.impact-band .wrap { padding-top: 2rem; padding-bottom: 1.5rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem 2rem; }
.stats li { border-left: 3px solid var(--teal); padding-left: 1rem; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.05; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.stats span { display: block; color: var(--ink); font-size: .95rem; margin-top: .3rem; }
.stats-note { font-size: .85rem; color: var(--ink-soft); margin: 1.25rem 0 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.steps li { counter-increment: step; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: .9rem; }
.steps h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .35em; }
.steps h3::before { content: counter(step); flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--teal); color: var(--white); font-family: var(--sans); font-size: .95rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.steps p { color: var(--ink-soft); margin: 0; }
img[src$="step-deliver.jpg"], img[src$="step-gather.jpg"] { object-position: 50% 0%; }

.pull-quote { margin: 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 4px solid var(--gold); }
.pull-quote blockquote { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; }
.pull-quote figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.way { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.way:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }
.way h3 { font-size: 1.2rem; margin-bottom: .35em; }
.way p { color: var(--ink-soft); flex: 1; margin: 0 0 1rem; }
.way-cta { font-weight: 700; color: var(--teal-dark); }
.way-cta::after { content: " →"; }

.give-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.give-way { border-top: 3px solid var(--teal); padding-top: 1rem; }
.give-way h3 { font-size: 1.2rem; margin-bottom: .35em; }
.give-way p { color: var(--ink-soft); }
.give-way > a { font-weight: 700; }

.trust-band { background: var(--white); border-top: 1px solid var(--line); }
.trust-band .wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 2rem; }
.trust-list strong { display: block; color: var(--teal-deep); }
.trust-list span { font-size: .92rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .way { transition: none; } .way:hover { transform: none; } }

/* Logistics coalition partner logos: identical tiles */
.partner-grid { list-style: none; padding: 0; margin: 2rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; }
.partner-grid li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.partner-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.partner-grid span { margin-top: .6rem; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.partner-group { margin-top: 2.75rem; }
.btn-small { padding: .45rem .9rem; font-size: .9rem; margin-top: .5rem; }
.tag-current { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 700; vertical-align: middle; }

/* Blog articles */
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.article-figure { margin: 0 0 2rem; }
.article-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.article-figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.article-cta { background: var(--mist); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1.5rem; margin: 2.5rem 0; }
.article-cta h2 { margin-top: 0; }
.works-cited { font-size: .95rem; color: var(--ink-soft); }
.formula { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-deep); text-align: center; background: var(--mist); border-radius: 8px; padding: .9rem; }
.figure-pair.wide img { aspect-ratio: 3 / 4; }
.figure-pair.wide { margin: 1.5rem 0; }
.org-card { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; background: var(--mist); border-radius: 10px; padding: 1.25rem; margin: 1.75rem 0; }
.org-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); border-radius: 8px; padding: .5rem; box-sizing: border-box; }
.org-card h2 { margin-top: 0; font-size: 1.35rem; }
.event-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1.5rem 0; background: var(--white); }
.event-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card > div { padding: 1.25rem 1.5rem 1.5rem; }
.event-card h3 { margin-top: .2rem; font-size: 1.5rem; }
.event-kicker { color: var(--teal); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.event-days { list-style: none; padding: 0 !important; }
.event-days li { border-left: 3px solid var(--gold); padding-left: .75rem; margin-bottom: .6rem; }
@media (max-width: 560px) { .org-card { grid-template-columns: 1fr; } .org-card img { max-width: 160px; } }
.p4c-head .split { align-items: center; }
.p4c-logo img { width: 100%; max-width: 280px; aspect-ratio: 3/2; object-fit: contain; background: var(--white); border-radius: 12px; padding: 1rem; box-sizing: border-box; display: block; margin-left: auto; }
.event-wide { grid-template-columns: 1fr 1.2fr; }
.event-wide > img { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .event-wide { grid-template-columns: 1fr; } .event-wide > img { aspect-ratio: 16/9; height: auto; } .p4c-logo img { margin: 1rem 0 0; } }
.p4c-gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.p4c-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
img[src$="p4c-volunteers.jpg"] { object-position: 50% 65%; } img[src$="p4c-books.jpg"] { object-position: 50% 60%; }

/* Footer social icons (Font Awesome Free brand icons, CC BY 4.0) */
.site-footer .social { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.site-footer .social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); transition: background .15s, color .15s; text-decoration: none; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { background: var(--gold); color: var(--ink); }
.site-footer .social svg { width: 20px; height: 20px; fill: currentColor; }
.btn-outline-dark { border-color: var(--teal-dark); color: var(--teal-dark); } .btn-outline-dark:hover { background: var(--teal-dark); color: var(--white); }
.figures-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.head-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 12px; max-height: 520px; }
.p4c-mark { width: 120px; height: auto; background: var(--white); border-radius: 8px; padding: .4rem; margin-bottom: .75rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.75rem 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-grid figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; } }

/* Website forms */
.form-intro { background: var(--mist); border-left: 4px solid var(--gold); padding: .9rem 1rem; border-radius: 6px; margin: 0; }
.form-section { font-size: 1.25rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.form .req { color: #b3261e; }
.form .field-hint { display: block; margin: -.15rem 0 .35rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem .9rem; }
.form label.choice, .form label.consent { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.form label.choice input, .form label.consent input { width: auto; margin-top: .3rem; accent-color: var(--teal); }
.form label.consent { background: var(--mist); padding: .7rem .8rem; border-radius: 6px; }
.form input[type=file] { padding: .55rem; }
.form.show-errors :invalid, .form fieldset.invalid { outline: 2px solid #b3261e; outline-offset: 2px; border-radius: 6px; }
.form-status:empty { display: none; }
.form-status { padding: .9rem 1rem; border-radius: 6px; }
.form-status.success { background: #e3f2ec; color: #0b5f5d; }
.form-status.error { background: #fdecea; color: #8a1c13; }
.eeo { font-style: italic; }
.p4c-mark { width: 96px; height: 96px; background: none; padding: 0; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.org-card img[src$="p4c-logo.png"] { background: none; padding: 0; border-radius: 50%; }
img[src$="quarterman-cuba-street.jpg"] { object-position: 50% 8%; } img[src$="quarterman-cuba-arrival.jpg"] { object-position: 50% 35%; }
/* Membership tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin: 1.75rem 0 1rem; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; gap: .45rem; background: var(--white); }
.tier h3 { margin: 0; font-size: 1.25rem; }
.tier-who { color: var(--ink-soft); font-size: .92rem; margin: 0; min-height: 2.8em; }
.tier-price { margin: .4rem 0 0; } .tier-price strong { font-family: var(--serif); font-size: 2.2rem; color: var(--teal-deep); } .tier-price span { color: var(--ink-soft); }
.tier-alt { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .92rem; }
.tier .btn { text-align: center; }
.tier-who { flex-grow: 1; } .tier .btn { padding-left: .8rem; padding-right: .8rem; }

/* Images are wrapped in <picture> for WebP; keep layout as if the <img> were a direct child. */
picture { display: contents; }
.event-card > picture > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-wide > picture > img { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .event-wide > picture > img { aspect-ratio: 16/9; height: auto; } }

/* ---------- Motion (added only when the visitor allows motion; see motion.js) ---------- */
.motion .reveal, .motion .slide-l, .motion .slide-r {
  opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform;
}
.motion .reveal { transform: translateY(26px); }
.motion .slide-l { transform: translateX(-48px) scale(1.04); }
.motion .slide-r { transform: translateX(48px) scale(1.04); }
.motion .reveal.in, .motion .slide-l.in, .motion .slide-r.in { opacity: 1; transform: none; }
.motion .in.done { transition: transform .25s ease, box-shadow .25s ease; will-change: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Home hero: logo and headline ease in on arrival; the emblem then floats gently. */
  .hero .wrap > * { animation: pama-rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .12s; }
  .hero .wrap > :nth-child(3) { animation-delay: .24s; }
  .hero .wrap > :nth-child(4) { animation-delay: .36s; }
  .hero .wrap > :nth-child(5) { animation-delay: .48s; }
  /* The emblem turns like a coin: one full spin, then a pause, repeating every 8 seconds. */
  .hero-logo { animation: pama-pop .9s cubic-bezier(.2,.8,.2,1.2) both, pama-spin 8s cubic-bezier(.45,0,.25,1) 1.5s infinite; backface-visibility: visible; }
  /* Cards lift slightly on hover. */
  .path, .way, .post, .partner-grid li, .tiers > *, .event-card, .steps > li { transition: transform .25s ease, box-shadow .25s ease; }
  .path:hover, .way:hover, .post:hover, .partner-grid li:hover, .tiers > *:hover, .event-card:hover, .steps > li:hover,
  .motion .in.done:is(.path, .way, .post, .partner-grid li, .tiers > *, .event-card, .steps > li):hover {
    transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 60, 60, .12);
  }
}
@keyframes pama-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pama-pop { from { opacity: 0; transform: scale(.85) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes pama-spin { 0% { transform: perspective(900px) rotateY(0); } 22%, 100% { transform: perspective(900px) rotateY(360deg); } }

/* Click-to-play videos: the Google Drive player loads only when the visitor presses play. */
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--teal-deep); display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.video-play:hover img, .video-play:focus-visible img { opacity: 1; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .2s ease; }
.video-play-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--teal-deep); }
.video-play:hover .video-play-icon { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--gold, #c9a227); outline-offset: 3px; }

.member-signin { margin: 1rem 0 0; font-weight: 600; }
