/*
  The Dental Place Foundation - Landing Page
  Component-scoped with the "tdf-" prefix (The Dental [Place] Foundation),
  following the same convention as cf- / dp- / os- / svc- elsewhere in the codebase.

  Color/type tokens are defined locally as --tdf-* custom properties below.
  If navy/blue/amber tokens already exist as global CSS variables on the
  shared design system, point these at them instead of the fallback hex values.
*/

.tdf-page {
    --tdf-navy-950: #0A1B33;
    --tdf-navy-800: #123157;
    --tdf-navy-700: #1A3F6E;
    --tdf-blue-500: #2C7DA0;
    --tdf-blue-100: #DCEAF2;
    --tdf-amber-500: #E4A94A;
    --tdf-amber-600: #C9861E;
    --tdf-amber-100: #FBEBCF;
    --tdf-cream-50: #FBF8F2;
    --tdf-white: #FFFFFF;
    --tdf-ink-900: #17233A;
    --tdf-ink-600: #4C5A72;
    --tdf-ink-400: #8592A6;
    --tdf-line: #E4E0D6;
    --tdf-radius-lg: 22px;
    --tdf-radius-md: 14px;
    --tdf-shadow-soft: 0 20px 50px -25px rgba(10,27,51,0.35);
    --tdf-maxw: 1180px;
    font-family: 'Outfit',sans-serif;
    color: var(--tdf-ink-900);
    background: var(--tdf-cream-50);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden !important;
}

.tdf-page *{box-sizing:border-box;}
.tdf-page h1,.tdf-page h2,.tdf-page h3{
  font-family:'DM Serif Display',serif;
  font-weight:400;
  margin:0 0 .5em;
  line-height:1.12;
  letter-spacing:.2px;
}
.tdf-accent-serif{
  font-family:'Fraunces',serif;
  font-style:italic;
  font-weight:400;
}
.tdf-page p{line-height:1.7;color:var(--tdf-ink-600);}
.tdf-page a{color:inherit;text-decoration:none;}
.tdf-page img{max-width:100%;display:block;}
.tdf-wrap{max-width:var(--tdf-maxw);margin:0 auto;padding:0 28px;}
.tdf-page section{position:relative;}
.tdf-page ::selection{background:var(--tdf-amber-100);color:var(--tdf-navy-950);}

.tdf-page :focus-visible{
  outline:3px solid var(--tdf-amber-500);
  outline-offset:3px;
  border-radius:4px;
}

.tdf-eyebrow{
  font-family:'Outfit',sans-serif;
  font-size:13px;
  font-weight:600;
  letter-spacing:2.4px;
  text-transform:uppercase;
  color:var(--tdf-amber-600);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.tdf-eyebrow::before{
  content:"";
  width:26px;height:2px;
  background:var(--tdf-amber-500);
  display:inline-block;
  border-radius:2px;
}
.tdf-eyebrow.tdf-center{justify-content:center;}

.tdf-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 30px;
  border-radius:999px;
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:15.5px;
  border:none;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.tdf-btn-amber{
  background:linear-gradient(135deg,var(--tdf-amber-500),var(--tdf-amber-600));
  color:var(--tdf-navy-950);
  box-shadow:0 14px 30px -14px rgba(201,134,30,0.65);
}
.tdf-btn-amber:hover{transform:translateY(-2px);box-shadow:0 18px 34px -12px rgba(201,134,30,0.75);}
.tdf-btn-outline{
  background:transparent;
  border:1.5px solid rgba(255,255,255,0.35);
  color:var(--tdf-white);
}
.tdf-btn-outline:hover{background:rgba(255,255,255,0.1);}
.tdf-btn-navy{
  background:var(--tdf-navy-950);
  color:var(--tdf-white);
}
.tdf-btn-navy:hover{transform:translateY(-2px);background:var(--tdf-navy-800);}
.tdf-btn:disabled{opacity:.65;cursor:not-allowed;transform:none;}

/* ---------- NAV ---------- */
.tdf-header{
  position:sticky;top:0;z-index:100;
  background:rgba(251,248,242,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--tdf-line);
}
.tdf-nav{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:16px;padding-bottom:16px;
}
.tdf-logo{
  display:flex;align-items:center;gap:12px;
  font-family:'DM Serif Display',serif;
  font-size:19px;
  color:var(--tdf-navy-950);
}
.tdf-logo .tdf-mark{
  width:38px;height:38px;border-radius:11px;
  background:var(--tdf-white);
  display:flex;align-items:center;justify-content:center;
  color:var(--tdf-amber-500);
  font-size:16px;
  flex-shrink:0;
}
.tdf-logo .tdf-sub{
  display:block;
  font-family:'Outfit',sans-serif;
  font-size:10.5px;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--tdf-ink-400);
  font-weight:600;
  margin-top:1px;
}
.tdf-nav-links{display:flex;align-items:center;gap:34px;}
.tdf-nav-links a{
  font-size:14.5px;font-weight:500;color:var(--tdf-ink-600);
  padding:4px 0;
}
.tdf-nav-links a:hover{color:var(--tdf-navy-950);}
.tdf-nav-cta{display:flex;align-items:center;gap:18px;}
.tdf-hamburger{display:none;background:none;border:none;font-size:22px;color:var(--tdf-navy-950);cursor:pointer;}

@media(max-width:900px){
  .tdf-nav-links{
    position:fixed;top:71px;left:0;right:0;
    background:var(--tdf-white);
    flex-direction:column;align-items:flex-start;
    padding:24px 28px;gap:20px;
    border-bottom:1px solid var(--tdf-line);
    transform:translateY(-130%);
    transition:transform .3s ease;
  }
  .tdf-nav-links.tdf-open{transform:translateY(0);}
  .tdf-hamburger{display:block;}
}

/*--------------BAR ---------------*/
.tdf-card:hover
.tdf-card-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--st-amber-lo), var(--st-amber));
    transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}

.tdf-card:hover .tdf-card-bar {
    width: 100%;
}

/* ============================================================
   Hero background photo slideshow — additive layer only.
   Append to site.additions.css. Does not redefine .tdf-hero's
   existing rules beyond what's listed here; only adds positioning,
   the new bg classes, and legibility fixes. Per-image crossfade
   @keyframes are generated server-side in Hero.cshtml.

   v2 — fixes: (1) smile-orb was rendering unbounded/oversized once
   a photo entered the layout, now explicitly capped and forced to
   a small corner badge whenever a photo is present; (2) text/badge
   contrast over busy photos was unreliable, now backed by a
   dedicated frosted scrim panel + stronger overlay.
   ============================================================ */
.tdf-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* guarantees z-index below is scoped to this section */
}

.tdf-hero-inner {
    position: relative;
    z-index: 2;
}

.tdf-horizon-divider {
    position: relative;
    z-index: 3;
}

.tdf-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* explicit, not shorthand `inset`, for broad support */
    z-index: 0;
    overflow: hidden;
}

.tdf-hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}

@keyframes tdfHeroKenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.07);
    }
}

/* stronger legibility overlay: dark under the text, still readable toward the photo */
.tdf-hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(9, 19, 36, 0.95) 0%, rgba(13, 27, 48, 0.90) 38%, rgba(18, 35, 61, 0.62) 68%, rgba(18, 35, 61, 0.40) 100%);
}

/* dedicated scrim panel behind the text column — guarantees contrast
   over ANY photo, independent of the broader overlay above. No-op
   (fully transparent) when there's no background photo. */
.tdf-hero-copy {
    position: relative;
    z-index: 1;
}

.tdf-hero--photo .tdf-hero-copy {
    /* Self-contained dark card that sizes to its OWN content, so the backing
       always travels with the text no matter how tall the copy is or whether
       it overruns the coloured band. Solid-ish base so contrast holds even
       without backdrop-filter; blur is a bonus. */
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    /*background: linear-gradient(100deg, rgba(7, 16, 31, 0.88) 0%, rgba(9, 19, 36, 0.82) 55%, rgba(9, 19, 36, 0.70) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;*/
    padding: clamp(1.6rem, 3vw, 2.6rem);
/*    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);*/
}
/* keep the copy card from ever spilling onto the cream divider: the band's
   content sits above the divider, and the card owns its own dark backing */
.tdf-hero--photo .tdf-hero-inner {
    align-items: start;
}

/* Force light text over a photo. Your base h1/badge colours are navy, which
   disappear on the dark scrim, so recolour them explicitly in photo mode. */
.tdf-hero--photo .tdf-hero-copy h1 {
    color: #FBF8F2;
}

    .tdf-hero--photo .tdf-hero-copy h1 em {
        color: var(--tdf-amber-500, #E4A94A);
    }

.tdf-hero--photo .tdf-hero-sub {
    color: #F1E4C9;
}

.tdf-hero--photo .tdf-hero-body {
    color: rgba(246, 240, 228, 0.92);
}

.tdf-hero--photo .tdf-eyebrow {
    color: var(--tdf-amber-500, #E4A94A);
}

.tdf-hero--photo .tdf-badge-pill {
    color: #F1EADA;
}

    .tdf-hero--photo .tdf-badge-pill i {
        color: var(--tdf-amber-500, #E4A94A);
    }

.tdf-hero--photo .tdf-btn-outline {
    color: #FBF8F2;
    border-color: rgba(251, 248, 242, 0.55);
}
/* badges & outline button need their own backing over a photo too */
.tdf-hero--photo .tdf-badge-pill {
    background: rgba(9, 19, 36, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tdf-hero--photo .tdf-btn-outline {
    background: rgba(9, 19, 36, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* decorative slide-position dots, bottom-right of the hero */
.tdf-hero-dots {
    position: absolute;
    right: clamp(1.25rem, 4vw, 2.5rem);
    bottom: clamp(1.1rem, 3vw, 1.75rem);
    z-index: 2;
    display: flex;
    gap: 0.45rem;
}

.tdf-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E4A94A;
    opacity: 0.28;
    box-shadow: 0 0 0 3px rgba(228, 169, 74, 0.12);
}

/* ---------- smile-orb: explicit, defensive sizing ----------
   Previously relied on ambient container sizing, which could
   stretch to fill unexpected height once a photo/min-height rule
   entered play. Now hard-capped so it can never regress. */
.tdf-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tdf-smile-orb {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
}

    .tdf-smile-orb svg {
        display: block;
        width: 100%;
        height: auto; /* never stretch to fill container height */
    }

/* When a photo is present, the orb (if explicitly forced on via
   showSmileOrb=yes) becomes a small corner accent instead of a
   centerpiece, so the two can never visually collide again. */
.tdf-hero--photo .tdf-hero-visual {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(2.5rem, 6vw, 4rem);
    z-index: 1;
    width: auto;
    pointer-events: none;
}

.tdf-hero--photo .tdf-smile-orb {
    max-width: 130px;
    opacity: 0.85;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
    .tdf-hero-bg-overlay {
        background: linear-gradient(180deg, rgba(9, 19, 36, 0.95) 0%, rgba(13, 27, 48, 0.88) 45%, rgba(18, 35, 61, 0.6) 100%);
    }

    .tdf-hero--photo .tdf-hero-visual {
        display: none;
    }
    /* corner badge has no room on mobile */
}

@media (prefers-reduced-motion: reduce) {
    .tdf-hero-slide {
        animation: none !important;
        opacity: 0;
    }

        .tdf-hero-slide:first-child {
            opacity: 1;
        }

    .tdf-hero-dot {
        animation: none !important;
    }
}

/* Remove the hairline seam beneath the hero wave divider */
.tdf-hero {
    border-bottom: none;
    box-shadow: none;
}

.tdf-horizon-divider {
    display: block;
    margin-bottom: -1px; /* close any sub-pixel show-through under the wave */
}
/* if the rule lives on the following section instead */
.tdf-hero + section,
.tdf-hero + .tdf-section,
#story {
    border-top: none;
}
/* row: a touch more breathing room + wrap gracefully */
.tdf-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.7rem;
    margin-top: 1.4rem;
}

    /* the chip itself */
    .tdf-hero-badges .tdf-badge-pill {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.95rem 0.5rem 0.55rem;
        border-radius: 999px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #F1EADA;
        /* frosted glass with a subtle top-light so it reads as a raised object */
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(9, 19, 36, 0.55);
        -webkit-backdrop-filter: blur(7px);
        backdrop-filter: blur(7px);
        border: 1px solid rgba(228, 169, 74, 0.28);
        box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
        transition: transform 0.28s cubic-bezier(.2,.7,.2,1), border-color 0.28s ease, box-shadow 0.28s ease;
    }

        /* amber icon token — the icon now sits in its own little coin */
        .tdf-hero-badges .tdf-badge-pill i {
            display: grid;
            place-items: center;
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
            border-radius: 50%;
            font-size: 0.72rem;
            color: #12233D;
            background: linear-gradient(145deg, #F4CE86, #E4A94A);
            box-shadow: 0 2px 6px -2px rgba(228, 169, 74, 0.9);
        }

        /* hover: gentle lift + amber edge */
        .tdf-hero-badges .tdf-badge-pill:hover {
            transform: translateY(-2px);
            border-color: rgba(228, 169, 74, 0.6);
            box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        }

/* When there's NO photo (dark navy hero), the same chips still look right;
   only nudge the base so they don't look flat on the solid background. */
.tdf-hero:not(.tdf-hero--photo) .tdf-hero-badges .tdf-badge-pill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .tdf-hero-badges .tdf-badge-pill {
        font-size: 0.78rem;
        padding-block: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdf-hero-badges .tdf-badge-pill {
        transition: none;
    }
}

/* ---------- SECTION SHARED ---------- */
.tdf-section{padding:96px 0;}
.tdf-section-head{max-width:640px;margin-bottom:52px;}
.tdf-section-head.tdf-center{margin-left:auto;margin-right:auto;text-align:center;}
.tdf-section-head h2{font-size:clamp(30px,3.4vw,42px);color:var(--tdf-navy-950);}
.tdf-section-head p{font-size:16.5px;}

/* ---------- STORY ---------- */
/* ============================================================
   Foundation "Our Story" section — redesign
   Append to site.additions.css. Scoped under .tdf-story so it
   won't disturb other tdf- sections. Keeps the .tdf-reveal hook
   for your existing scroll-reveal JS.
   ============================================================ */
.tdf-story, .tdf-involved-card {
    --st-cream: #FBF7EC;
    --st-navy: #12233D;
    --st-navy-2: #173A63;
    --st-ink: #33425C;
    --st-amber: #E4A94A;
    --st-amber-lo: #F4CE86;
    --st-line: rgba(23, 58, 99, 0.10);
    background: var(--st-cream);
    padding-block: clamp(3.5rem, 8vw, 7rem);
    overflow: hidden;
}

.tdf-story__wrap {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- intro: text + feature quote ---------- */
.tdf-story__intro {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.tdf-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-amber);
    margin-bottom: 1.1rem;
}

    .tdf-story__eyebrow::before {
        content: "";
        width: 34px;
        height: 2px;
        background: var(--st-amber);
        display: inline-block;
    }

.tdf-story__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    color: var(--st-navy);
    margin: 0 0 1.4rem;
    letter-spacing: -0.01em;
}

.tdf-story__body p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.75;
    color: var(--st-ink);
    margin: 0 0 1.15rem;
    max-width: 60ch;
}

    .tdf-story__body p:last-child {
        margin-bottom: 0;
    }

/* feature quote panel */
.tdf-story__quote {
    position: relative;
    align-self: stretch;
    background: linear-gradient(158deg, #1b3f6b 0%, #12233D 62%, #0d1b30 100%);
    color: #EFE7D3;
    border-radius: 22px;
    padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.75rem);
    box-shadow: 0 30px 60px -28px rgba(13, 27, 48, 0.75);
    overflow: hidden;
    isolation: isolate;
}

    .tdf-story__quote::after {
        /* soft amber corner glow */
        content: "";
        position: absolute;
        inset: auto -40% -55% auto;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(228, 169, 74, 0.22), transparent 62%);
        z-index: -1;
    }

.tdf-story__quote-glyph {
    font-family: 'Fraunces', 'DM Serif Display', serif;
    font-size: 5.5rem;
    line-height: 0.6;
    color: var(--st-amber);
    display: block;
    height: 2.2rem;
}

.tdf-story__quote-text {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.4;
    margin: 0.4rem 0 0;
    color: #F3ECDD;
    quotes: none;
}

.tdf-story__quote-rule {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background: var(--st-amber);
    margin: 1.6rem 0 1rem;
}

.tdf-story__quote-cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tdf-story__quote-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: #fff;
}

.tdf-story__quote-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: rgba(239, 231, 211, 0.7);
}

/* ---------- cards: full-width row ---------- */
.tdf-story__cards {
    margin-top: clamp(2.75rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: clamp(1.1rem, 2vw, 1.75rem);
}

.tdf-story__card {
    position: relative;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    padding: clamp(1.6rem, 2.4vw, 2.2rem);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 12px 30px -24px rgba(13, 27, 48, 0.5);
    transition-delay: calc(var(--i, 0) * 70ms);
}

    .tdf-story__card:hover {
        transform: translateY(-8px);
        box-shadow: 0 34px 60px -30px rgba(13, 27, 48, 0.55);
        border-color: rgba(228, 169, 74, 0.5);
    }

.tdf-story__card-index {
    position: absolute;
    top: 0.7rem;
    right: 1.1rem;
    font-family: 'Fraunces', 'DM Serif Display', serif;
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(23, 58, 99, 0.06);
    pointer-events: none;
    transition: color 0.35s ease;
}

.tdf-story__card:hover .tdf-story__card-index {
    color: rgba(228, 169, 74, 0.16);
}

.tdf-story__card-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--st-amber-lo), var(--st-amber));
    color: var(--st-navy);
    font-size: 1.35rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 10px 20px -10px rgba(228, 169, 74, 0.7);
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}

.tdf-story__card:hover .tdf-story__card-icon {
    transform: translateY(-2px) rotate(-4deg);
}

.tdf-story__card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--st-navy);
    margin: 0 0 0.65rem;
}

.tdf-story__card-text,
.tdf-story__card-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--st-ink);
    margin: 0;
}

    .tdf-story__card-text p + p {
        margin-top: 0.7rem;
    }

.tdf-story__card-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--st-amber-lo), var(--st-amber));
    transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}

.tdf-story__card:hover .tdf-story__card-bar {
    width: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .tdf-story__intro {
        grid-template-columns: 1fr;
    }

    .tdf-story__quote {
        order: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdf-story__card,
    .tdf-story__card-icon,
    .tdf-story__card-bar {
        transition: none;
    }
}


/* ---------- TRUST BAR ---------- */
.tdf-trust-bar{background:var(--tdf-navy-950);color:var(--tdf-white);}
.tdf-trust-inner{
  display:flex;flex-wrap:wrap;gap:28px;align-items:center;justify-content:space-between;
  padding:26px 0;
}
.tdf-trust-item{display:flex;align-items:center;gap:10px;font-size:14px;color:#C9D5E5;}
.tdf-trust-item i{color:var(--tdf-amber-500);}
.tdf-trust-item strong{color:var(--tdf-white);font-weight:600;}

/* ---------- IMPACT ---------- */
.tdf-impact-block{margin-bottom:80px;}
.tdf-impact-block:last-child{margin-bottom:0;}
.tdf-impact-label{display:flex;align-items:center;gap:14px;margin-bottom:22px;}
.tdf-impact-label .tdf-num{
  width:38px;height:38px;border-radius:50%;
  background:var(--tdf-navy-950);color:var(--tdf-amber-500);
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:600;flex-shrink:0;
}
.tdf-impact-label h3{font-size:23px;color:var(--tdf-navy-950);margin:0;}

.tdf-clinic-panel{
  display:grid;grid-template-columns:.95fr 1.05fr;gap:50px;
  background:var(--tdf-white);border:1px solid var(--tdf-line);
  border-radius:var(--tdf-radius-lg);padding:40px;align-items:center;
}
.tdf-progress-track{width:100%;height:10px;border-radius:99px;background:var(--tdf-blue-100);overflow:hidden;margin:18px 0 8px;}
.tdf-progress-fill{
  height:100%;border-radius:99px;
  background:linear-gradient(90deg,var(--tdf-blue-500),var(--tdf-amber-500));
}
.tdf-progress-label{font-size:13px;color:var(--tdf-ink-400);font-weight:500;}
.tdf-checklist{list-style:none;padding:0;margin:22px 0 0;display:flex;flex-direction:column;gap:14px;}
.tdf-checklist li{display:flex;align-items:flex-start;gap:12px;font-size:15px;color:var(--tdf-ink-900);font-weight:500;}
.tdf-checklist .tdf-tick{
  width:22px;height:22px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:11px;margin-top:1px;
}
.tdf-checklist .tdf-tick.tdf-done{background:var(--tdf-blue-500);color:var(--tdf-white);}
.tdf-checklist .tdf-tick.tdf-progress{background:var(--tdf-amber-100);color:var(--tdf-amber-600);}

/* ---------- OUTREACH MAP ---------- */
.tdf-outreach-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;align-items:center;}
.tdf-map-card{background:var(--tdf-navy-950);border-radius:var(--tdf-radius-lg);padding:34px;box-shadow:var(--tdf-shadow-soft);}
.tdf-map-card svg{width:100%;height:auto;}
.tdf-map-caption{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:12.5px;color:#8FA3BE;}
.tdf-timeline{list-style:none;padding:0;margin:0;}
.tdf-timeline li{position:relative;padding:0 0 26px 30px;border-left:2px solid var(--tdf-line);}
.tdf-timeline li:last-child{border-color:transparent;padding-bottom:0;}
.tdf-timeline li::before{
  content:"";position:absolute;left:-7px;top:2px;
  width:12px;height:12px;border-radius:50%;
  background:var(--tdf-amber-500);border:3px solid var(--tdf-cream-50);
}
.tdf-timeline li.tdf-done::before{background:var(--tdf-blue-500);}
.tdf-t-status{
  font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  padding:3px 10px;border-radius:99px;display:inline-block;margin-bottom:6px;
}
.tdf-t-status.tdf-done{background:var(--tdf-blue-100);color:var(--tdf-blue-500);}
.tdf-t-status.tdf-upcoming{background:var(--tdf-amber-100);color:var(--tdf-amber-600);}
.tdf-timeline .tdf-t-date{font-size:13.5px;color:var(--tdf-ink-400);font-weight:600;margin-bottom:2px;display:block;}
.tdf-timeline .tdf-t-place{font-size:16px;font-weight:600;color:var(--tdf-navy-950);}

/* ---------- SCHOLARSHIP + UPCOMING ---------- */
.tdf-feature-split{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.tdf-spotlight-card{
  background:linear-gradient(135deg,var(--tdf-navy-950),var(--tdf-navy-700));
  color:var(--tdf-white);border-radius:var(--tdf-radius-lg);
  padding:38px;position:relative;overflow:hidden;
}
.tdf-spotlight-card i.fa-graduation-cap{font-size:26px;color:var(--tdf-amber-500);margin-bottom:18px;display:block;}
.tdf-spotlight-card h4{font-family:'DM Serif Display',serif;font-size:22px;margin:0 0 12px;}
.tdf-spotlight-card p{color:#C9D5E5;font-size:14.5px;margin:0;}

.tdf-upcoming-stack{display:flex;flex-direction:column;gap:16px;}
.tdf-upcoming-item{
  display:flex;gap:16px;align-items:flex-start;
  background:var(--tdf-white);border:1px solid var(--tdf-line);
  border-radius:var(--tdf-radius-md);padding:20px 22px;
}
.tdf-upcoming-item .tdf-date-tag{
  background:var(--tdf-amber-100);color:var(--tdf-amber-600);
  border-radius:10px;padding:10px 12px;text-align:center;flex-shrink:0;min-width:60px;
}
.tdf-date-tag .tdf-mon{display:block;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;}
.tdf-date-tag .tdf-day{display:block;font-size:19px;font-weight:700;line-height:1.1;}
.tdf-upcoming-item h4{font-size:15.5px;margin:0 0 4px;color:var(--tdf-navy-950);font-weight:600;}
.tdf-upcoming-item p{margin:0;font-size:13.5px;}
/* ============================================================
   Foundation "Scholarships" section — feature card + info grid
   Append to site.additions.css. Scoped under .tdf-sch.
   Supports column-count modifiers (--1col ... --4col) and an
   optional per-item description. Keeps the .tdf-reveal hook.
   ============================================================ */
.tdf-sch {
    --sc-cream: #FBF7EC;
    --sc-navy: #12233D;
    --sc-navy-2: #173A63;
    --sc-ink: #33425C;
    --sc-amber: #E4A94A;
    --sc-amber-lo: #F4CE86;
    --sc-cream-2: #EFE7D3;
    --sc-line: rgba(23, 58, 99, 0.10);
    background: var(--sc-cream);
    padding-block: clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}

.tdf-sch__wrap {
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- header ---------- */
.tdf-sch__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.tdf-sch__chip {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--sc-navy);
    color: var(--sc-amber);
    font-size: 1.25rem;
    box-shadow: 0 12px 24px -14px rgba(18, 35, 61, 0.8);
}

.tdf-sch__eyebrow {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sc-amber);
    margin-bottom: 0.15rem;
}

.tdf-sch__heading {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.12;
    color: var(--sc-navy);
    margin: 0;
}

/* ---------- feature card ---------- */
.tdf-sch__feature {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(150deg, #1b3f6b 0%, #12233D 60%, #0d1b30 100%);
    box-shadow: 0 34px 64px -30px rgba(13, 27, 48, 0.7);
    overflow: hidden;
    isolation: isolate;
}

    .tdf-sch__feature::after {
        content: "";
        position: absolute;
        inset: auto -25% -60% auto;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle, rgba(228, 169, 74, 0.20), transparent 62%);
        z-index: 0;
    }

.tdf-sch__feature--image {
    background: linear-gradient(105deg, rgba(13, 27, 48, 0.94) 0%, rgba(18, 35, 61, 0.82) 42%, rgba(18, 35, 61, 0.45) 100%), var(--sch-bg) center / cover no-repeat;
}

.tdf-sch__feature-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.9rem, 4vw, 3.25rem);
    max-width: 640px;
}

.tdf-sch__badge {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--sc-amber-lo), var(--sc-amber));
    color: var(--sc-navy);
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 12px 22px -12px rgba(228, 169, 74, 0.75);
}

.tdf-sch__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.15;
    color: #F5EFE1;
    margin: 0 0 0.55rem;
}

.tdf-sch__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--sc-amber);
    margin: 0 0 1.25rem;
}

.tdf-sch__desc,
.tdf-sch__desc p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(239, 231, 211, 0.9);
    margin: 0 0 1rem;
}

    .tdf-sch__desc p:last-child {
        margin-bottom: 0;
    }

.tdf-sch__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--sc-amber-lo), var(--sc-amber));
    color: var(--sc-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 14px 26px -14px rgba(228, 169, 74, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tdf-sch__cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 34px -16px rgba(228, 169, 74, 0.9);
    }

    .tdf-sch__cta i {
        transition: transform 0.3s ease;
    }

    .tdf-sch__cta:hover i {
        transform: translateX(3px);
    }

/* ---------- information grid ---------- */
.tdf-sch__info {
    margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
    display: grid;
    gap: clamp(0.9rem, 1.6vw, 1.25rem);
    /* fallback when no column modifier is present */
    grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}
/* column-count modifiers set from the CMS (detailsPerRow) */
.tdf-sch__info--1col {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
}

.tdf-sch__info--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tdf-sch__info--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tdf-sch__info--4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tdf-sch__info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 12px 28px -24px rgba(13, 27, 48, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .tdf-sch__info-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 44px -28px rgba(13, 27, 48, 0.5);
        border-color: rgba(228, 169, 74, 0.5);
    }

.tdf-sch__info-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(228, 169, 74, 0.14);
    color: #b9821f;
    font-size: 1rem;
}

.tdf-sch__info-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tdf-sch__info-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8794a8;
}

.tdf-sch__info-value {
    font-family: 'DM Serif Display', serif;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--sc-navy);
    overflow-wrap: anywhere;
}
/* optional per-item description */
.tdf-sch__info-desc,
.tdf-sch__info-desc p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

.tdf-sch__info-desc {
    margin-top: 0.4rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .tdf-sch__info--3col,
    .tdf-sch__info--4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tdf-sch__info--2col,
    .tdf-sch__info--3col,
    .tdf-sch__info--4col {
        grid-template-columns: 1fr;
    }

    .tdf-sch__head {
        gap: 0.75rem;
    }

    .tdf-sch__chip {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .tdf-sch__feature--image {
        background: linear-gradient(160deg, rgba(13, 27, 48, 0.95) 0%, rgba(18, 35, 61, 0.86) 55%, rgba(18, 35, 61, 0.7) 100%), var(--sch-bg) center / cover no-repeat;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdf-sch__cta, .tdf-sch__info-item, .tdf-sch__cta i {
        transition: none;
    }
}

/* ---------- GALLERY ---------- */
.tdf-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.tdf-gallery-tile{
  aspect-ratio:1;border-radius:var(--tdf-radius-md);overflow:hidden;
  background:linear-gradient(135deg,var(--tdf-blue-100),var(--tdf-amber-100));
  display:flex;align-items:center;justify-content:center;
  color:var(--tdf-navy-950);font-size:22px;
  border:1px dashed rgba(10,27,51,0.25);
}
.tdf-gallery-tile img{width:100%;height:100%;object-fit:cover;}
.tdf-gallery-tile:nth-child(3n+1){background:linear-gradient(135deg,var(--tdf-amber-100),var(--tdf-blue-100));}
.tdf-gallery-caption{font-size:11.5px;color:var(--tdf-ink-400);text-align:center;margin-top:6px;}
.tdf-gallery-note{text-align:center;font-size:13.5px;color:var(--tdf-ink-400);margin-top:22px;}

/* ---------- GET INVOLVED ---------- */
.tdf-involved-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.tdf-involved-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    padding: clamp(1.6rem, 2.4vw, 2.2rem);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 12px 30px -24px rgba(13, 27, 48, 0.5);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.tdf-involved-card:hover{transform:translateY(-4px);box-shadow:var(--tdf-shadow-soft);}
.tdf-involved-card .tdf-icn{
  width:50px;height:50px;border-radius:14px;
  background:var(--tdf-navy-950);color:var(--tdf-amber-500);
  display:flex;align-items:center;justify-content:center;font-size:19px;
}
    .tdf-involved-card:hover .tdf-icn {
        transform: translateY(-2px) rotate(-4deg);
    }
.tdf-involved-card h3{font-size:20px;color:var(--tdf-navy-950);margin:0;}
.tdf-involved-card p{font-size:14.5px;margin:0;flex-grow:1;}
.tdf-involved-card a{font-size:14px;font-weight:600;color:var(--tdf-blue-500);display:inline-flex;align-items:center;gap:6px;}
.tdf-involved-card a i{font-size:12px;transition:transform .2s ease;}
.tdf-involved-card a:hover i{transform:translateX(3px);}

/* ---------- DONATE BANNER ---------- */
/* ============================================================
   Foundation "Donate" CTA band — powerful split layout
   Append to site.additions.css. Scoped under .tdf-donate.
   Background modes:
     .tdf-donate--navy   (default rich navy gradient)
     .tdf-donate--amber  (brand amber gradient)
     .tdf-donate--image  (Media Picker photo + navy overlay, via --dn-bg)
   Keeps the .tdf-reveal hook.
   ============================================================ */
.tdf-donate {
    --dn-navy: #12233D;
    --dn-navy-2: #173A63;
    --dn-amber: #E4A94A;
    --dn-amber-lo: #F4CE86;
    --dn-cream: #FBF7EC;
    --dn-ink: #2b3a52;
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    background: var(--dn-cream);
}
/* the coloured band lives on the wrap so it can be inset + rounded */
.tdf-donate__wrap {
    position: relative;
    max-width: 1160px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 4rem);
    padding: clamp(2rem, 4.5vw, 3.5rem);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 40px 80px -34px rgba(13, 27, 48, 0.55);
}
/* --- background themes --- */
.tdf-donate--navy .tdf-donate__wrap {
    background: radial-gradient(120% 160% at 12% 0%, #1e4576 0%, #12233D 55%, #0c1a30 100%);
    color: var(--dn-cream);
}

.tdf-donate--amber .tdf-donate__wrap {
    background: linear-gradient(135deg, #EBB45A 0%, #E4A94A 55%, #cf9636 100%);
    color: var(--dn-navy);
}

.tdf-donate--image .tdf-donate__wrap {
    background: linear-gradient(110deg, rgba(12, 26, 48, 0.93) 0%, rgba(18, 35, 61, 0.80) 45%, rgba(18, 35, 61, 0.55) 100%), var(--dn-bg) center / cover no-repeat;
    color: var(--dn-cream);
}

/* decorative watermark */
.tdf-donate__watermark {
    position: absolute;
    right: -2.5rem;
    bottom: -3rem;
    font-size: 16rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}

.tdf-donate--amber .tdf-donate__watermark {
    color: rgba(18, 35, 61, 0.08);
}

/* --- message column --- */
.tdf-donate__message {
    position: relative;
    z-index: 1;
}

.tdf-donate__eyebrow {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dn-amber);
    margin-bottom: 0.85rem;
}

.tdf-donate--amber .tdf-donate__eyebrow {
    color: var(--dn-navy);
    opacity: 0.75;
}

.tdf-donate__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.tdf-donate__body,
.tdf-donate__body p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    margin: 0 0 0.75rem;
    max-width: 46ch;
    opacity: 0.92;
}

    .tdf-donate__body p:last-child {
        margin-bottom: 0;
    }

.tdf-donate__impact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.4rem 0 0;
    padding: 0.6rem 1rem 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(228, 169, 74, 0.16);
    border: 1px solid rgba(228, 169, 74, 0.35);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
}

    .tdf-donate__impact i {
        color: var(--dn-amber);
    }

.tdf-donate--amber .tdf-donate__impact {
    background: rgba(18, 35, 61, 0.10);
    border-color: rgba(18, 35, 61, 0.22);
}

    .tdf-donate--amber .tdf-donate__impact i {
        color: var(--dn-navy);
    }

/* --- donation panel --- */
.tdf-donate__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 2.6vw, 2rem);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
}

.tdf-donate--amber .tdf-donate__panel {
    background: var(--dn-navy);
}

.tdf-donate__panel-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8794a8;
    margin-bottom: 0.75rem;
}

.tdf-donate--amber .tdf-donate__panel-label {
    color: rgba(239, 231, 211, 0.6);
}

.tdf-donate__amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.tdf-donate__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.4rem;
    border-radius: 12px;
    border: 1.5px solid rgba(23, 58, 99, 0.16);
    background: #fff;
    color: var(--dn-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

    .tdf-donate__chip:hover {
        border-color: var(--dn-amber);
        background: rgba(228, 169, 74, 0.12);
        transform: translateY(-2px);
    }

.tdf-donate__chip--custom {
    font-size: 0.9rem;
    color: #6b7280;
    border-style: dashed;
}

.tdf-donate--amber .tdf-donate__chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(239, 231, 211, 0.22);
    color: var(--dn-cream);
}

    .tdf-donate--amber .tdf-donate__chip:hover {
        border-color: var(--dn-amber);
        background: rgba(228, 169, 74, 0.16);
    }

/* primary button — always high-contrast amber on any theme */
.tdf-donate__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--dn-amber-lo), var(--dn-amber));
    color: var(--dn-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 16px 30px -14px rgba(228, 169, 74, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

    .tdf-donate__btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 40px -16px rgba(228, 169, 74, 0.95);
        filter: brightness(1.03);
    }

    .tdf-donate__btn i {
        font-size: 1rem;
    }

.tdf-donate__secondary {
    display: block;
    text-align: center;
    margin-top: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dn-navy-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    width: fit-content;
    margin-inline: auto;
    transition: border-color 0.2s ease;
}

    .tdf-donate__secondary:hover {
        border-bottom-color: currentColor;
    }

.tdf-donate--amber .tdf-donate__secondary {
    color: rgba(239, 231, 211, 0.85);
}

.tdf-donate__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: #97a1b0;
}

.tdf-donate--amber .tdf-donate__note {
    color: rgba(239, 231, 211, 0.55);
}

.tdf-donate__amounts-note {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #97a1b0;
    margin: 0 0 1.1rem;
    text-align: center;
}

.tdf-donate--amber .tdf-donate__amounts-note {
    color: rgba(239, 231, 211, 0.6);
}

/* --- responsive --- */
@media (max-width: 820px) {
    .tdf-donate__wrap {
        grid-template-columns: 1fr;
    }

    .tdf-donate__watermark {
        font-size: 11rem;
        right: -2rem;
        bottom: -2.5rem;
    }
}

@media (max-width: 420px) {
    .tdf-donate__amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdf-donate__btn, .tdf-donate__chip, .tdf-donate__secondary {
        transition: none;
    }
}

/* ---------- CONTACT ---------- */
.tdf-contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;}
.tdf-contact-info h3{font-size:24px;color:var(--tdf-navy-950);margin-bottom:14px;}
.tdf-social-row{display:flex;gap:12px;margin-top:26px;}
.tdf-social-row a{
  width:42px;height:42px;border-radius:50%;
  background:var(--tdf-white);border:1px solid var(--tdf-line);
  display:flex;align-items:center;justify-content:center;color:var(--tdf-navy-950);
  transition:background .2s ease, color .2s ease;
}
.tdf-social-row a:hover{background:var(--tdf-navy-950);color:var(--tdf-amber-500);}
.tdf-contact-form{background:var(--tdf-white);border:1px solid var(--tdf-line);border-radius:var(--tdf-radius-lg);padding:36px;}
.tdf-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
.tdf-field label{display:block;font-size:13px;font-weight:600;color:var(--tdf-ink-900);margin-bottom:7px;}
.tdf-field input,.tdf-field textarea{
  width:100%;padding:13px 14px;border-radius:10px;
  border:1px solid var(--tdf-line);font-family:'Outfit',sans-serif;font-size:14.5px;
  background:var(--tdf-cream-50);color:var(--tdf-ink-900);
}
.tdf-field input:focus,.tdf-field textarea:focus{outline:none;border-color:var(--tdf-blue-500);background:var(--tdf-white);}
.tdf-field{margin-bottom:16px;}
.tdf-field textarea{resize:vertical;min-height:110px;}
.tdf-form-status{display:block;margin-top:14px;font-size:13.5px;min-height:18px;}

/* Honeypot field - hidden from sighted users, still reachable by simple bots that fill every field */
.tdf-hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px;height:1px;
  overflow:hidden;
}

/* ---------- FOOTER ---------- */
.tdf-footer{background:var(--tdf-navy-950);color:#8FA3BE;padding:60px 0 26px;}
.tdf-footer-top{
  display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:50px;
  padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,0.08);
}
.tdf-footer-logo{display:flex;align-items:center;gap:12px;color:var(--tdf-white);font-family:'DM Serif Display',serif;font-size:19px;margin-bottom:14px;}
.tdf-footer-top p{color:#8FA3BE;font-size:14px;max-width:320px;}
.tdf-footer-col h4{color:var(--tdf-white);font-size:13px;letter-spacing:1px;text-transform:uppercase;font-weight:600;margin-bottom:16px;}
.tdf-footer-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px;}
.tdf-footer-col a{font-size:14px;color:#8FA3BE;}
.tdf-footer-col a:hover{color:var(--tdf-amber-500);}
.tdf-footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  padding-top:22px;font-size:12.5px;color:#5E7189;
}

/* ---------- REVEAL ---------- */
.tdf-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease;}
.tdf-reveal.tdf-is-visible{opacity:1;transform:translateY(0);}
/* only hide when JS is confirmed running */
.tdf-js .tdf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

    .tdf-js .tdf-reveal.is-visible {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .tdf-js .tdf-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce){
  .tdf-page{scroll-behavior:auto;}
  .tdf-reveal{opacity:1;transform:none;transition:none;}
  .tdf-btn,.tdf-involved-card{transition:none;}
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  .tdf-hero-inner{grid-template-columns:1fr;}
  .tdf-hero-visual{order:-1;max-width:260px;margin:0 auto;}
  .tdf-story-grid{grid-template-columns:1fr;}
  .tdf-clinic-panel{grid-template-columns:1fr;}
  .tdf-outreach-grid{grid-template-columns:1fr;}
  .tdf-feature-split{grid-template-columns:1fr;}
  .tdf-involved-grid{grid-template-columns:1fr 1fr;}
  .tdf-contact-grid{grid-template-columns:1fr;}
  .tdf-footer-top{grid-template-columns:1fr 1fr;}
  .tdf-gallery-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:620px){
  .tdf-mv-grid{grid-template-columns:1fr;}
  .tdf-involved-grid{grid-template-columns:1fr;}
  .tdf-form-row{grid-template-columns:1fr;}
  .tdf-donate-banner{padding:40px 26px;}
  .tdf-footer-top{grid-template-columns:1fr;}
  .tdf-section{padding:64px 0;}
  .tdf-hero{padding-top:80px;}
}
/* ==================================================================
   TDF Gallery Carousel  -  append to site.additions.css
   ================================================================== */

.tdf-car-section {
    background: var(--tdf-cream, #FBF8F2);
}

.tdf-car {
    position: relative;
    margin-top: 32px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--tdf-navy, #0d1e39);
    box-shadow: 0 30px 70px -30px rgba(13, 30, 57, .55);
    outline: none;
}

    .tdf-car:focus-visible {
        box-shadow: 0 0 0 3px var(--tdf-amber-500, #E4A94A);
    }

/* ---- progress bar ---- */
.tdf-car-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, .12);
    z-index: 4;
}

.tdf-car-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--tdf-amber-500, #E4A94A);
}

/* ---- slides ---- */
.tdf-car-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 380px;
}

.tdf-car-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s ease;
}

    .tdf-car-slide.is-active {
        opacity: 1;
        visibility: visible;
    }

.tdf-car-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    will-change: transform;
}

.tdf-car-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .25);
    font-size: 3rem;
}

.tdf-car-slide.is-active .tdf-car-img {
    animation: tdf-ken 7s ease-out forwards;
}

@keyframes tdf-ken {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.13);
    }
}

.tdf-car-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 30, 57, .05) 0%, rgba(13, 30, 57, 0) 40%, rgba(13, 30, 57, .78) 100%);
}

/* ---- caption ---- */
.tdf-car-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 48px 80px;
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: transform .7s ease .15s, opacity .7s ease .15s;
}

.tdf-car-slide.is-active .tdf-car-cap {
    opacity: 1;
    transform: none;
}

.tdf-car-cap-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font: 700 .72rem/1 'Outfit', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tdf-amber-500, #E4A94A);
}

.tdf-car-cap h3 {
    margin: 0;
    color: #fff;
    font: 400 clamp(1.6rem, 3.2vw, 2.6rem)/1.1 'DM Serif Display', serif;
}

/* ---- arrows ---- */
.tdf-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1.05rem;
    background: rgba(13, 30, 57, .45);
    backdrop-filter: blur(4px);
    transition: background .2s ease;
}

    .tdf-car-arrow:hover {
        background: var(--tdf-amber-500, #E4A94A);
    }

.tdf-car-prev {
    left: 20px;
}

.tdf-car-next {
    right: 20px;
}

/* ---- bottom bar ---- */
.tdf-car-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
}

.tdf-car-counter {
    min-width: 62px;
    font: 700 .9rem/1 'Outfit', sans-serif;
    letter-spacing: .08em;
    color: #fff;
}

.tdf-car-counter-cur {
    color: var(--tdf-amber-500, #E4A94A);
}

.tdf-car-counter-sep,
.tdf-car-counter-tot {
    color: rgba(255, 255, 255, .55);
}

.tdf-car-dots {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 9px;
}

.tdf-car-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, .35);
    transition: background .2s ease, width .25s ease;
}

    .tdf-car-dot:hover {
        background: rgba(255, 255, 255, .7);
    }

    .tdf-car-dot.is-active {
        width: 26px;
        border-radius: 6px;
        background: var(--tdf-amber-500, #E4A94A);
    }

.tdf-car-bar-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font: 700 .85rem/1 'Outfit', sans-serif;
    letter-spacing: .04em;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

    .tdf-car-bar-donate:hover {
        background: var(--tdf-amber-500, #E4A94A);
        border-color: var(--tdf-amber-500, #E4A94A);
        color: var(--tdf-navy, #0d1e39);
    }

/* ---- thumbnail rail ---- */
.tdf-car-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tdf-car-thumb {
    flex: 0 0 auto;
    width: 108px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(13, 30, 57, .06);
    opacity: .5;
    transition: opacity .25s ease, box-shadow .25s ease, transform .25s ease;
}

    .tdf-car-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tdf-car-thumb:hover {
        opacity: .85;
        transform: translateY(-2px);
    }

    .tdf-car-thumb.is-active {
        opacity: 1;
        box-shadow: 0 0 0 2px var(--tdf-amber-500, #E4A94A);
    }

.tdf-car-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(13, 30, 57, .3);
}

/* ---- closing CTA ---- */
.tdf-car-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
    padding: 22px 28px;
    border: 1px solid rgba(13, 30, 57, .08);
    border-radius: 16px;
    background: rgba(13, 30, 57, .04);
}

    .tdf-car-cta p {
        margin: 0;
        max-width: 60ch;
        color: var(--tdf-navy, #0d1e39);
        font: 400 1.05rem/1.5 'Fraunces', serif;
    }

    .tdf-car-cta .tdf-btn {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        white-space: nowrap;
    }

/* ---- responsive ---- */
@media (max-width: 640px) {
    .tdf-car-viewport {
        min-height: 300px;
    }

    .tdf-car-cap {
        padding: 28px 24px 78px;
    }

    .tdf-car-arrow {
        width: 42px;
        height: 42px;
    }

    .tdf-car-prev {
        left: 10px;
    }

    .tdf-car-next {
        right: 10px;
    }

    .tdf-car-thumb {
        width: 88px;
        height: 56px;
    }

    .tdf-car-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .tdf-car-slide.is-active .tdf-car-img {
        animation: none;
        transform: scale(1.02);
    }

    .tdf-car-slide,
    .tdf-car-cap,
    .tdf-car-thumb {
        transition: none;
    }
}

/* ==================================================================
   TDF Contact Form  -  append to site.additions.css
   ================================================================== */

.tdf-form-shell {
    position: relative;
}

/* ---- screen-reader only ---- */
.tdf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- honeypot ---- */
.tdf-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- fields ---- */
.tdf-field {
    position: relative;
    margin-bottom: 18px;
}

    .tdf-field label {
        display: block;
        margin-bottom: 7px;
        font: 600 .82rem/1 'Outfit', sans-serif;
        letter-spacing: .04em;
        color: var(--tdf-navy, #0d1e39);
    }

.tdf-req {
    color: #c0392b;
}

.tdf-field input,
.tdf-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(13, 30, 57, .15);
    border-radius: 10px;
    background: #fff;
    color: var(--tdf-navy, #0d1e39);
    font: 400 1rem/1.4 'Outfit', sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.tdf-field textarea {
    min-height: 140px;
    resize: vertical;
}

    .tdf-field input::placeholder,
    .tdf-field textarea::placeholder {
        color: rgba(13, 30, 57, .35);
    }

    .tdf-field input:focus,
    .tdf-field textarea:focus {
        outline: none;
        border-color: var(--tdf-amber-500, #E4A94A);
        box-shadow: 0 0 0 3px rgba(228, 169, 74, .18);
    }

/* ---- invalid state ---- */
.tdf-field.is-invalid input,
.tdf-field.is-invalid textarea {
    border-color: #c0392b;
    background: #fffafa;
}

    .tdf-field.is-invalid input:focus,
    .tdf-field.is-invalid textarea:focus {
        box-shadow: 0 0 0 3px rgba(192, 57, 43, .15);
    }

.tdf-field-err {
    display: none;
    margin-top: 6px;
    font: 500 .8rem/1.3 'Outfit', sans-serif;
    color: #c0392b;
}

.tdf-field.is-invalid .tdf-field-err {
    display: block;
}

.tdf-field-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tdf-char-count {
    margin-top: 6px;
    white-space: nowrap;
    font: 500 .75rem/1.3 'Outfit', sans-serif;
    color: rgba(13, 30, 57, .4);
}

    .tdf-char-count.is-near {
        color: #c0392b;
    }

/* ---- form-level alert ---- */
.tdf-form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(192, 57, 43, .25);
    border-radius: 10px;
    background: rgba(192, 57, 43, .06);
    color: #a5301f;
    font: 500 .88rem/1.4 'Outfit', sans-serif;
}

    .tdf-form-alert[hidden] {
        display: none;
    }

/* ---- submit button + spinner ---- */
.tdf-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
}

    .tdf-submit:disabled {
        cursor: not-allowed;
        opacity: .75;
    }

.tdf-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tdf-spin .7s linear infinite;
}

@keyframes tdf-spin {
    to {
        transform: rotate(360deg);
    }
}

.tdf-submit.is-busy .tdf-submit-icon {
    display: none;
}

.tdf-submit.is-busy .tdf-spinner {
    display: inline-block;
}

.tdf-submit.is-busy .tdf-submit-label::after {
    content: 'ing…';
}

.tdf-submit.is-busy .tdf-submit-label {
    font-size: 0;
}

    .tdf-submit.is-busy .tdf-submit-label::before {
        content: 'Sending';
        font-size: 1rem;
    }

    .tdf-submit.is-busy .tdf-submit-label::after {
        font-size: 1rem;
        content: '…';
    }

/* ---- success panel ---- */
.tdf-form-success {
    padding: 44px 32px;
    border: 1px solid rgba(13, 30, 57, .08);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    outline: none;
}

    .tdf-form-success[hidden] {
        display: none;
    }

    .tdf-form-success.is-in {
        animation: tdf-fade-up .5s ease both;
    }

@keyframes tdf-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tdf-success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(228, 169, 74, .15);
    color: var(--tdf-amber-500, #E4A94A);
    font-size: 1.5rem;
}

.tdf-form-success h3 {
    margin: 0 0 8px;
    color: var(--tdf-navy, #0d1e39);
    font: 400 1.6rem/1.2 'DM Serif Display', serif;
}

.tdf-form-success p {
    margin: 0 0 24px;
    color: rgba(13, 30, 57, .65);
    font: 400 1rem/1.5 'Outfit', sans-serif;
}

.tdf-btn-ghost {
    background: transparent;
    border: 1px solid rgba(13, 30, 57, .2);
    color: var(--tdf-navy, #0d1e39);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

    .tdf-btn-ghost:hover {
        background: rgba(13, 30, 57, .04);
        border-color: rgba(13, 30, 57, .35);
    }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .tdf-form-success.is-in {
        animation: none;
    }

    .tdf-spinner {
        animation-duration: 2s;
    }
}

/* ============================================================
   Jamaica community-outreach map + clinic timeline
   Append to site.additions.css.  Foundation palette / type tokens.
   Prefix: jm-outreach
   ============================================================ */
.jm-outreach {
    --jm-navy: #173A63;
    --jm-amber: #E4A94A;
    --jm-blue: #2C7DA0;
    --jm-ink: #EDE7D8;
    --jm-muted: #C9D5E5;
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
}

.jm-outreach__head {
    margin-bottom: 1.5rem;
}

.jm-outreach__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    color: var(--jm-navy);
    margin: 0 0 0.6rem;
}

.jm-outreach__intro {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    white-space: pre-line;
    margin: 0 auto;
    max-width: 58ch;
}

/* --- map --- */
.jm-outreach__figure {
    margin: 0;
    background: radial-gradient(120% 140% at 50% 0%, #14304f 0%, #0d2138 70%);
    border: 1px solid rgba(228, 169, 74, 0.18);
    border-radius: 16px;
    padding: 1.25rem 1.15rem 0.85rem;
    box-shadow: 0 18px 40px -22px rgba(13, 33, 56, 0.7);
}

.jm-outreach__map {
    display: block;
    width: 100%;
    height: auto;
}

.jm-outreach__captions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--jm-muted);
    padding: 0.5rem 0.25rem 0;
}

.jm-outreach__caption--right {
    color: rgba(228, 169, 74, 0.85);
    text-align: right;
}

.jm-outreach__attr {
    font-family: 'Outfit', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: rgba(201, 213, 229, 0.45);
    text-align: right;
    margin: 0.35rem 0 0;
}

/* --- legend (colour key) --- */
.jm-outreach__legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    margin: 1.1rem 0 0;
    padding: 0;
}

.jm-outreach__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #4a5568;
}

.jm-outreach__swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.jm-outreach__swatch--done {
    background: var(--jm-blue);
}

.jm-outreach__swatch--upcoming {
    background: var(--jm-amber);
    box-shadow: 0 0 0 3px rgba(228, 169, 74, 0.25);
}

/* --- clinic timeline --- */
.jm-outreach__timeline {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    text-align: left;
    max-width: 520px;
    margin-inline: auto;
}

.jm-outreach__event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(23, 58, 99, 0.08);
}

    .jm-outreach__event:last-child {
        border-bottom: none;
    }

.jm-outreach__event-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.jm-outreach__event--done .jm-outreach__event-dot {
    background: var(--jm-blue);
}

.jm-outreach__event--upcoming .jm-outreach__event-dot {
    background: var(--jm-amber);
    box-shadow: 0 0 0 3px rgba(228, 169, 74, 0.22);
}

.jm-outreach__event-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.jm-outreach__event-place {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--jm-navy);
}

.jm-outreach__event-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #6b7280;
}

.jm-outreach__event-status {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.jm-outreach__event--done .jm-outreach__event-status {
    color: var(--jm-blue);
    background: rgba(44, 125, 160, 0.12);
}

.jm-outreach__event--upcoming .jm-outreach__event-status {
    color: #a9791f;
    background: rgba(228, 169, 74, 0.16);
}

@media (max-width: 540px) {
    .jm-outreach {
        padding: 1.75rem 0.75rem;
    }

    .jm-outreach__figure {
        padding: 0.85rem 0.6rem 0.6rem;
        border-radius: 12px;
    }

    .jm-outreach__captions {
        font-size: 0.72rem;
    }

    .jm-outreach__event {
        gap: 0.6rem;
    }

    .jm-outreach__event-status {
        font-size: 0.62rem;
        padding: 0.18rem 0.5rem;
    }
}
