/* ==========================================================================
   THRIVE for Teens: Design System
   Brand colors extracted from the organization's own logo assets.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* --- Brand palette (sampled from logo files) --- */
  --ink:          #10281C;   /* deepest green-black, body text */
  --forest:       #175D32;   /* primary brand green (from logo mark) */
  --forest-deep:  #0E3D21;   /* dark sections */
  --leaf:         #7CB342;   /* light leaf green, accents */
  --leaf-bright:  #8FC94F;   /* highlight on dark */
  --soil:         #7A4A1E;   /* earth brown */
  --soil-light:   #A9713C;

  --cream:        #F5F9EC;   /* page background (from logo bg) */
  --sand:         #F7F1E0;   /* warm alternate section (from hero bg) */
  --white:        #FFFFFF;

  --muted:        #5A6B5F;   /* secondary text */
  --border:       #D9E4CE;
  --border-dark:  rgba(255,255,255,.18);

  /* --- Semantic --- */
  --bg:           var(--cream);
  --fg:           var(--ink);
  --card:         var(--white);
  --ring:         var(--forest);

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Spacing scale --- */
  --s-1: .5rem;   --s-2: 1rem;    --s-3: 1.5rem;
  --s-4: 2rem;    --s-5: 3rem;    --s-6: 4rem;
  --s-7: 6rem;    --s-8: 8rem;

  --wrap: 1180px;
  --radius:   14px;
  --radius-lg: 24px;

  --shadow:    0 1px 2px rgba(16,40,28,.05), 0 8px 24px -12px rgba(16,40,28,.18);
  --shadow-lg: 0 2px 4px rgba(16,40,28,.06), 0 24px 48px -20px rgba(16,40,28,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 var(--s-2); text-wrap: pretty; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

/* Accessible focus, never removed */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--leaf-bright); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--forest); color: var(--white);
  padding: .75rem 1.25rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-3); }
.wrap-narrow { max-width: 760px; }

section { padding-block: var(--s-6); }
@media (min-width: 768px) { section { padding-block: var(--s-7); } }

.sect-sand   { background: var(--sand); }
.sect-white  { background: var(--white); }
.sect-forest { background: var(--forest-deep); color: #E8F2E5; }
.sect-forest h1, .sect-forest h2, .sect-forest h3 { color: var(--white); }
.sect-forest a { color: var(--leaf-bright); }

/* Eyebrow label with leaf tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest); margin-bottom: var(--s-2);
}
.sect-forest .eyebrow { color: var(--leaf-bright); }
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: currentColor; opacity: .55;
}

.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.sect-forest .lede { color: #C5D9C4; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); color: var(--white); }

.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

.btn-leaf { background: var(--leaf); color: var(--ink); }
.btn-leaf:hover { background: var(--leaf-bright); color: var(--ink); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

/* Form button with no URL configured yet (see assets/js/forms.js) */
.btn.is-pending {
  background: var(--muted); color: var(--white);
  border-color: transparent; cursor: not-allowed; opacity: .75;
}
.btn.is-pending:hover { transform: none; background: var(--muted); color: var(--white); }
.btn.is-pending::after {
  content: 'Coming soon';
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: .18rem .5rem; border-radius: 999px;
}
.sect-forest .btn.is-pending { background: rgba(255,255,255,.16); color: #DCE8DA; }
.sect-forest .btn.is-pending:hover { background: rgba(255,255,255,.16); }

/* Direct-access form buttons, stacked */
.form-links { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.form-links .btn { width: 100%; }

/* Lead roles, informational only (no applications open) */
.role-grid {
  display: grid; gap: var(--s-2); margin-top: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.role-card {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: var(--s-3);
}
.role-card-head {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem var(--s-2); margin-bottom: .5rem;
}
.role-card h3 { font-size: 1.15rem; margin: 0; }
.role-card p { margin: 0; font-size: .96rem; color: #C5D9C4; }
.role-status {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #DCE8DA; background: rgba(255,255,255,.14);
  padding: .22rem .6rem; border-radius: 999px; white-space: nowrap;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,249,236,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2); min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .04em; color: var(--forest-deep);
}
.brand-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer;
  color: var(--forest-deep); border-radius: 10px;
}
.nav-toggle:hover { background: rgba(23,93,50,.08); }

.nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; text-decoration: none; font-weight: 500;
  color: var(--ink); padding: .7rem .2rem; min-height: 44px;
  transition: color .2s var(--ease);
}
.nav-list a:hover { color: var(--forest); }
.nav-list a[aria-current="page"] { color: var(--forest); font-weight: 600; }

/* Mobile drawer */
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: var(--s-2) var(--s-3) var(--s-4);
  box-shadow: var(--shadow-lg);
}
.nav.is-open .nav-list a { border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.nav.is-open .nav-cta { margin-top: var(--s-3); }
.nav.is-open .btn { width: 100%; }

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; align-items: center; gap: var(--s-3); position: static !important;
         background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .nav-list { display: flex; align-items: center; gap: var(--s-3); }
  .nav-list a { padding: .5rem 0; border: 0 !important; font-size: .97rem; position: relative; }
  .nav-list a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--forest); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav .btn { width: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding-block: var(--s-6) 0; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { margin-bottom: var(--s-3); }
/* Highlighter stroke painted as a background gradient so it always sits
   behind the glyphs, including descenders. */
.hero h1 em {
  font-style: normal; color: var(--forest);
  white-space: nowrap;
  background: linear-gradient(to top,
              rgba(124,179,66,.34) 0 .26em,
              transparent .26em);
  padding-inline: .06em;
}
.hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--soil);
  margin-bottom: var(--s-3);
}
.hero-art { margin-top: var(--s-5); position: relative; }
.hero-art img { width: 100%; }
.hero-art::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, var(--cream) 92%);
  pointer-events: none;
}

/* ==========================================================================
   Acronym strip: T.H.R.I.V.E.
   ========================================================================== */

.acronym {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: var(--s-4);
}
.acronym-item {
  padding: var(--s-3) var(--s-2);
  border-top: 3px solid var(--leaf);
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
}
.acronym-letter {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--forest); line-height: 1; display: block; margin-bottom: .3rem;
}
.acronym-word { font-weight: 600; font-size: .95rem; color: var(--ink); }

/* ==========================================================================
   Pillar cards
   ========================================================================== */

.pillar-grid {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: var(--s-4);
}
.pillar-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-4) var(--s-3);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.pillar-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--leaf); color: inherit;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--leaf));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
a.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center;
  margin-bottom: var(--s-2); flex-shrink: 0;
}
.pillar-icon svg { width: 36px; height: 36px; }
.pillar-card h3 { margin-bottom: .5rem; }
.pillar-card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.pillar-more {
  margin-top: var(--s-2); font-weight: 600; font-size: .92rem; color: var(--forest);
  display: inline-flex; align-items: center; gap: .35rem;
}
a.pillar-card:hover .pillar-more { gap: .6rem; }
.pillar-more svg { transition: transform .25s var(--ease); }

/* ==========================================================================
   Deep-dive pillar sections (About page)
   ========================================================================== */

.pillar-deep { border-top: 1px solid var(--border); padding-block: var(--s-5); }
.pillar-deep:first-of-type { border-top: 0; }
.pillar-deep-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.pillar-deep-head .pillar-icon { margin-bottom: 0; background: var(--sand); }
.pillar-num {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--soil); letter-spacing: .1em;   /* 4.5:1+ on cream; --leaf was not */
}
.pillar-deep h3 { margin-bottom: .15rem; }

.covers { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: .6rem;
          grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.covers li { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; }
.covers svg { flex-shrink: 0; margin-top: .35rem; color: #4E8C2B; }
.sect-forest .covers svg { color: var(--leaf-bright); }

/* Sticky in-page sub-nav */
.subnav {
  position: sticky; top: 76px; z-index: 50;
  background: rgba(245,249,236,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--s-3); overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: .95rem .1rem; min-height: 44px; border-bottom: 2px solid transparent;
}
.subnav a:hover, .subnav a.active { color: var(--forest); border-bottom-color: var(--forest); }

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid; gap: var(--s-3); margin-top: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-4) var(--s-3); text-align: center;
}
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--s-2);
  background: var(--forest); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
}
.team-card h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.team-role { color: var(--forest); font-weight: 600; font-size: .92rem;
             letter-spacing: .06em; text-transform: uppercase; }

.role-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.role-item {
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--leaf); border-radius: var(--radius);
  padding: var(--s-3);
}
.role-item h4 { color: var(--forest-deep); margin-bottom: .3rem; }
.role-item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Callout / notice */
.notice {
  background: var(--sand); border: 1px solid var(--border);
  border-left: 4px solid var(--soil); border-radius: var(--radius);
  padding: var(--s-3); margin-top: var(--s-3);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--soil); }

/* ==========================================================================
   "Coming soon" / empty states
   ========================================================================== */

.soon {
  text-align: center; max-width: 620px; margin-inline: auto;
  padding: var(--s-6) var(--s-3);
  background: var(--card); border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}
.soon-icon {
  width: 88px; height: 88px; margin: 0 auto var(--s-3);
  border-radius: 50%; background: var(--cream); display: grid; place-items: center;
}
.soon-icon svg { width: 44px; height: 44px; color: var(--leaf); }
.soon h3 { margin-bottom: .5rem; }
.soon p { color: var(--muted); }
.badge {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: var(--leaf); color: var(--ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: var(--s-2);
}

/* ==========================================================================
   Steps / process
   ========================================================================== */

.steps { counter-reset: step; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--s-2);
  align-items: start;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--forest); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.step h4 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-4);
}
.contact-line { display: flex; gap: var(--s-2); align-items: flex-start; margin-bottom: var(--s-3); }
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { flex-shrink: 0; color: var(--forest); margin-top: .2rem; }
.contact-line h4 { margin-bottom: .1rem; }
.contact-line p, .contact-line a { margin: 0; font-size: 1rem; }

.field { margin-bottom: var(--s-3); }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23,93,50,.16);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--forest-deep); color: #C5D9C4; padding-block: var(--s-6) var(--s-4); }
.footer-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); } }

.site-footer h4 {
  color: var(--white); font-family: var(--font-body); font-size: .8rem;
  font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--s-2); }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand .brand-name { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #C5D9C4; text-decoration: none; }
.site-footer a:hover { color: var(--leaf-bright); text-decoration: underline; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--leaf-bright); }
.footer-bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-size: .87rem; color: #9DB69C;
}

/* ==========================================================================
   Motion: reveal on scroll
   ========================================================================== */

/* Only hide content when JS is available to reveal it again, otherwise the
   page would be permanently blank if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, a.pillar-card:hover { transform: none; }
}

/* ==========================================================================
   THRIVE for Athletes
   A sub-brand inside THRIVE. Same type and structure as the rest of the site,
   but the leaf-green accent is swapped for the gold used in the posters, so
   the program reads as its own thing. Everything here is scoped to
   .athletes-page (or .nav-athletes) and cannot affect the other pages.
   ========================================================================== */

:root {
  --gold:       #D2A654;   /* accent, sampled from the poster artwork */
  --gold-deep:  #A8802F;   /* 4.5:1 on cream, for text on light backgrounds */
  --pine:       #23392C;   /* poster background green */
  --pine-soft:  #2D4236;
  --bone:       #F6F4EC;   /* warm off-white from the posters */
}

/* Nav link that marks the sub-brand */
.nav-athletes { color: var(--gold-deep) !important; font-weight: 600; }
.nav-athletes::after { background: var(--gold) !important; }
.nav-list .nav-athletes[aria-current="page"] { color: var(--gold-deep) !important; }

/* --- Page shell --- */
.athletes-page { background: var(--bone); }
.athletes-page .sect-pine { background: var(--pine); color: #D9E4D5; }
.athletes-page .sect-pine h1,
.athletes-page .sect-pine h2,
.athletes-page .sect-pine h3 { color: var(--bone); }
.athletes-page .sect-pine .lede { color: #B8CCB6; }
.athletes-page .sect-pine .eyebrow { color: var(--gold); }
.athletes-page .sect-pine a { color: var(--gold); }
.athletes-page .eyebrow { color: var(--gold-deep); }

/* Wordmark lockup in the hero */
.athletes-lockup { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.athletes-lockup img { width: 54px; height: 54px; }
.athletes-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.athletes-parent { font-size: .95rem; color: #B8CCB6; margin: 0; }

/* Badge marking this as part of THRIVE for Teens */
.sub-brand-note {
  display: flex; align-items: flex-start; gap: .65rem;
  max-width: 62ch;
  border: 1px solid rgba(210,166,84,.4); border-radius: var(--radius);
  padding: .8rem 1.15rem; font-size: .93rem; color: #C9DBC7;
  background: rgba(210,166,84,.08);
}
.sub-brand-note svg { flex: none; margin-top: .25rem; color: var(--gold); }
.sub-brand-note span { display: block; }
.sub-brand-note a { color: var(--gold); }

/* --- Resource sections --- */
.res-block { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .res-block { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.res-block + .res-block { margin-top: var(--s-7); }

.poster-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-2);
  box-shadow: var(--shadow); overflow: hidden;
}
.poster-card img { width: 100%; border-radius: 10px; display: block; }
.poster-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-2) var(--s-1) var(--s-1); }

.btn-gold { background: var(--gold); color: #2A2109; }
.btn-gold:hover { background: #E0B868; color: #2A2109; }
.btn-gold-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-gold-outline:hover { background: var(--gold-deep); color: var(--white); }
.sect-pine .btn-gold-outline { color: var(--gold); border-color: rgba(210,166,84,.55); }

/* Pending form button on the pine background. Without this the gold text from
   .btn-gold lands on the grey .is-pending fill at 2.5:1, which fails contrast. */
.sect-pine .btn.is-pending { background: rgba(255,255,255,.16); color: #E4EDE2; }
.sect-pine .btn.is-pending:hover { background: rgba(255,255,255,.16); color: #E4EDE2; }
.sect-pine .btn.is-pending::after { background: rgba(0,0,0,.28); color: #E4EDE2; }
.sect-pine .btn-gold-outline:hover { background: var(--gold); color: #2A2109; }

/* Resource link list */
.res-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: .75rem; }
.res-list li { margin: 0; }
.res-list a {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: .95rem 1.1rem;
  text-decoration: none; color: var(--fg);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.res-list a:hover { transform: translateX(3px); box-shadow: var(--shadow); border-left-color: var(--gold-deep); }
.res-list strong { display: block; font-weight: 600; line-height: 1.35; }
.res-list span { display: block; font-size: .87rem; color: var(--muted); margin-top: .15rem; }
.res-list svg { flex: none; margin-top: .3rem; color: var(--gold-deep); }

/* --- Equipment drive --- */
.gear-grid { display: grid; gap: var(--s-2); margin-top: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gear-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(210,166,84,.28);
  border-radius: var(--radius); padding: var(--s-3);
}
.gear-card h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--gold); }
.gear-card ul { margin: 0; padding-left: 1.1rem; font-size: .96rem; color: #C9DBC7; }
.gear-card li { margin-bottom: .3rem; }

/* --- Quick reference table --- */
.res-table-wrap { overflow-x: auto; margin-top: var(--s-4); -webkit-overflow-scrolling: touch; }
.res-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
.res-table caption { text-align: left; color: var(--muted); font-size: .92rem; padding-bottom: var(--s-2); }
.res-table th, .res-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.res-table thead th {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--forest);
  border-bottom: 2px solid var(--gold);
}
.res-table tbody tr:hover { background: rgba(210,166,84,.07); }
.res-table td:first-child { white-space: nowrap; color: var(--muted); font-size: .88rem; }
.res-table a { font-weight: 500; }

/* Section anchor offset so the sticky header never covers a heading */
.athletes-page [id] { scroll-margin-top: 110px; }

/* Home page promo band for the athletes sub-brand */
.athletes-promo { background: var(--pine); color: #D9E4D5; overflow: hidden; }
.athletes-promo h2 { color: var(--bone); }
.athletes-promo .lede { color: #B8CCB6; }
.athletes-promo-inner { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .athletes-promo-inner { grid-template-columns: 1.1fr .9fr; } }
.athletes-promo-art { display: flex; gap: var(--s-2); justify-content: center; }
.athletes-promo-art img {
  width: 48%; max-width: 230px; border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.65);
  border: 1px solid rgba(210,166,84,.28);
}
.athletes-promo-art img:first-child { transform: rotate(-3deg); }
.athletes-promo-art img:last-child  { transform: rotate(3deg); }
@media (prefers-reduced-motion: reduce) { .athletes-promo-art img { transform: none; } }
