/* ==========================================================================
   SATURDAY CLUB — STEM METS Resources
   Mobile-first. Built to convert a parent into a completed registration.
   ========================================================================== */

/* ---------- 1. Brand tokens ---------------------------------------------- */
:root {
  /* Primary palette */
  --yellow:      #F4D35E;
  --teal:        #278D8A;
  /* Secondary palette */
  --maroon:      #861635;
  --navy:        #042642;

  /* Derived */
  --teal-dark:   #1f716f;
  --teal-tint:   #eaf5f4;
  --yellow-tint: #fdf6e0;
  --maroon-dark: #6b1029;

  --ink:         #12263a;
  --ink-muted:   #4d6172;
  --line:        #dfe6ec;
  --bg:          #ffffff;
  --bg-alt:      #f6f9fb;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 2px 4px rgba(4,38,66,.05), 0 8px 24px rgba(4,38,66,.07);
  --shadow-lg:   0 4px 10px rgba(4,38,66,.08), 0 18px 44px rgba(4,38,66,.12);

  --wrap:        1120px;
  --header-h:    62px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(1.85rem, 6.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 3.4vw, 1.4rem); }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Layout ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

section { padding: 48px 0; }
@media (min-width: 800px) { section { padding: 72px 0; } }

.section-alt  { background: var(--bg-alt); }
.section-tint { background: var(--teal-tint); }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--ink-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- 4. Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;                 /* thumb-friendly on mobile */
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary   { background: var(--teal);   color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover   { background: var(--teal-dark); }

.btn-accent    { background: var(--yellow); color: var(--navy); box-shadow: var(--shadow); }
.btn-accent:hover    { background: #edc63f; }

.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover   { background: var(--navy); color: #fff; }

.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

.btn-whatsapp  { background: #25D366; color: #06331a; }
.btn-whatsapp:hover  { background: #1eb959; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: .92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- 5. Header ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: var(--header-h);
}

/* The logo is the stacked STEM METS mark (wordmark above the four icons),
   in its white/reversed version — which is why it only works on the navy
   header. It is roughly 2:1, so it needs more height than a wordmark-only
   logo to keep "STEM METS" legible. */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand-divider {
  width: 1px; height: 28px; background: rgba(255,255,255,.28); flex: 0 0 auto;
}
.brand-name {
  color: var(--yellow); font-weight: 800; font-size: .95rem;
  letter-spacing: -.01em; white-space: nowrap;
}
@media (min-width: 420px) { .brand img { height: 40px; } .brand-divider { height: 32px; } }
@media (max-width: 359px) { .brand-divider, .brand-name { display: none; } }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 8px 0 18px;
}
.site-nav.is-open { display: block; }
@media (max-width: 899px) {
  .site-nav.is-open {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}
body.nav-open { overflow: hidden; }
body.nav-open .cta-bar { visibility: hidden; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 13px 4px;
  color: #e7eef5; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-nav a[aria-current="page"] { color: var(--yellow); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; background: transparent; border: 0; padding: 0;
    margin-left: auto; margin-right: 8px;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: rgba(255,255,255,.1); }
  .header-inner { gap: 20px; }
}

/* ---------- 6. Hero ------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(39,141,138,.55), transparent 60%),
    radial-gradient(700px 380px at 4% 108%, rgba(134,22,53,.42), transparent 62%),
    var(--navy);
  color: #fff;
  padding: 44px 0 52px;
  overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent { color: var(--yellow); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,211,94,.15);
  border: 1px solid rgba(244,211,94,.45);
  color: var(--yellow);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.06rem; color: #d5e2ee; max-width: 620px; margin-bottom: 26px;
}
.hero-note { font-size: .92rem; color: #a9c0d3; margin: 18px 0 0; }
.hero-note a { color: var(--yellow); font-weight: 600; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none;
}
.hero-facts li {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 7px 15px; font-size: .87rem; font-weight: 600; color: #eaf2f8;
}

@media (min-width: 860px) {
  .hero { padding: 76px 0 84px; }
  .hero-lede { font-size: 1.15rem; }
}

/* ---------- 7. Cards ------------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-muted); font-size: .96rem; }
.card .card-cta { margin-top: auto; padding-top: 14px; font-weight: 700; text-decoration: none; }
.card .card-cta::after { content: " →"; }

.age-card { border-top: 5px solid var(--teal); }
.age-card:nth-child(2) { border-top-color: var(--yellow); }
.age-card:nth-child(3) { border-top-color: var(--maroon); }

.age-pill {
  display: inline-block; align-self: flex-start;
  background: var(--teal-tint); color: var(--teal-dark);
  font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.age-card:nth-child(2) .age-pill { background: var(--yellow-tint); color: #8a6d05; }
.age-card:nth-child(3) .age-pill { background: #fbeaef; color: var(--maroon); }

.card ul { margin: 0 0 4px; padding-left: 20px; color: var(--ink-muted); font-size: .94rem; }
.card ul li { margin-bottom: 6px; }

/* ---------- 8. Year-at-a-glance table ------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.year {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  min-width: 380px;
}
table.year th, table.year td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.year thead th { background: var(--navy); color: #fff; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; }
table.year tbody th { font-weight: 700; color: var(--navy); width: 46%; }
table.year tbody tr:last-child th, table.year tbody tr:last-child td { border-bottom: 0; }
table.year tbody tr:nth-child(even) { background: var(--bg-alt); }
.tag-camp { display: inline-block; background: var(--yellow-tint); color: #8a6d05;
  font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; margin-left: 8px; }

/* ---------- 9. Camp offer band -------------------------------------------- */
.offer {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.offer::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 210px; height: 210px; border-radius: 50%;
  background: rgba(244,211,94,.16);
}
.offer > * { position: relative; z-index: 1; }
.offer .eyebrow { color: var(--yellow); }
.offer h2 { color: #fff; }
.offer p { color: #f3dde3; max-width: 640px; }
.offer ol { color: #f3dde3; max-width: 640px; margin: 0 0 20px; padding-left: 20px; }
.offer ol li { margin-bottom: 4px; }
.offer ol strong { color: #fff; }
.offer-deadline {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-weight: 800; font-size: .88rem; padding: 7px 16px;
  border-radius: 999px; margin-bottom: 16px;
}

/* ---------- 10. Course accordions ----------------------------------------- */
.track-block { margin-bottom: 40px; }
.track-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 3px solid var(--yellow);
}
.track-head h3 { margin: 0; }
.track-head .track-meta { color: var(--ink-muted); font-size: .92rem; }

.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.course-term {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.course h4 { font-size: 1.16rem; font-weight: 800; color: var(--navy); margin-bottom: .3em; }
.course .partner { font-size: .88rem; color: var(--teal-dark); font-weight: 600; margin: -4px 0 10px; }
.course .desc { color: var(--ink); margin-bottom: 14px; }

details.detail {
  border-top: 1px solid var(--line);
}
details.detail summary {
  list-style: none; cursor: pointer;
  padding: 12px 0; font-weight: 700; font-size: .95rem; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
details.detail summary::-webkit-details-marker { display: none; }
details.detail summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 700; color: var(--teal);
  line-height: 1; flex: 0 0 auto;
}
details.detail[open] summary::after { content: "–"; }
details.detail .detail-body {
  padding: 0 0 14px; color: var(--ink-muted); font-size: .95rem;
}
details.detail .detail-body ul { margin: 0; padding-left: 20px; }
details.detail .detail-body li { margin-bottom: 6px; }

/* ---------- 11. Two-track chooser (ages 6–9) ------------------------------ */
.chooser {
  background: var(--yellow-tint);
  border: 2px dashed var(--yellow);
  border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 24px;
}
.chooser p { margin: 0; font-weight: 600; color: var(--navy); }
.chooser p + p { margin-top: 6px; font-weight: 400; color: var(--ink-muted); font-size: .95rem; }

/* ---------- 12. Competition track block ----------------------------------- */
.competition {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-lg);
}
.competition h2, .competition h3 { color: #fff; }
.competition p { color: #cfdded; }
.competition .eyebrow { color: var(--yellow); }
.comp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .comp-steps { grid-template-columns: repeat(4, 1fr); } }
.comp-steps li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: 16px;
}
.comp-steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .9rem;
  margin-bottom: 10px;
}
.comp-steps h4 { color: #fff; margin-bottom: 4px; font-size: .98rem; }
.comp-steps p { margin: 0; font-size: .88rem; color: #b9cddd; }

/* ---------- 13. Steps / what happens next --------------------------------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative; padding: 0 0 22px 52px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
}
.steps li::after {
  content: ""; position: absolute; left: 16px; top: 40px; bottom: 4px;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h4 { margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* ---------- 14. Form embed ------------------------------------------------ */
.form-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.form-shell iframe { display: block; width: 100%; border: 0; min-height: 1200px; }
.form-fallback { padding: 32px 24px; text-align: center; }
.form-fallback h3 { margin-bottom: .4em; }
.form-fallback p { color: var(--ink-muted); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- 15. Fees / info panel ----------------------------------------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.panel.panel-accent { border-left-color: var(--yellow); }
.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .label {
  display: block; font-size: .76rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 3px;
}

/* ---------- 16. Reassurance ticks ----------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 12px 30px; color: var(--ink-muted); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800; font-size: 1.05rem;
}
.ticks strong { color: var(--ink); }

/* ---------- 17. Sticky mobile CTA bar ------------------------------------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(4,38,66,.1);
  backdrop-filter: saturate(180%) blur(8px);
}
.cta-bar .btn { flex: 1; min-height: 46px; padding: 12px 10px; font-size: .95rem; }
body { padding-bottom: 78px; }
@media (min-width: 900px) {
  .cta-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 18. Footer ---------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9cddd; padding: 44px 0 32px; }
.site-footer a { color: #e7eef5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .95rem; }
.footer-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #8fa9be;
}

/* ---------- 19. Pricing --------------------------------------------------- */
.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--teal-tint); color: var(--teal-dark);
  border: 1px solid rgba(39,141,138,.28);
  font-weight: 800; font-size: 1.02rem;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 14px;
}
.price-unit { font-weight: 600; font-size: .8rem; opacity: .85; }
.price-onrequest { font-weight: 700; font-size: .95rem; }

.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-list li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 6px 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.fee-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fee-name { font-weight: 600; color: var(--navy); flex: 1 1 220px; }
.fee-name em {
  display: block; font-style: normal; font-weight: 400;
  font-size: .87rem; color: var(--ink-muted); margin-top: 3px;
}
.fee-amt { color: var(--navy); font-size: 1.06rem; white-space: nowrap; }
.fee-list .fee-extra { background: var(--yellow-tint); margin: 0 -14px; padding: 15px 14px; border-radius: 10px; }
.fee-note { margin: 18px 0 0; font-size: .87rem; color: var(--ink-muted); }

/* ---------- 20. Pathway (Competition + Innovation) ------------------------ */
.pathway { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 700px) { .pathway { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pathway { grid-template-columns: repeat(3, 1fr); } }

.pathway li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.pathway li::before {
  content: counter(step);
  position: absolute; top: -15px; right: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
  border: 3px solid #fff;
}
.pathway .stage {
  display: block; font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 6px;
}
.pathway h4 { font-size: 1.08rem; margin-bottom: .4em; }
.pathway p { color: var(--ink-muted); font-size: .94rem; margin: 0; }
.pathway .outcome {
  display: block; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: .88rem; font-weight: 700; color: var(--maroon);
}
.pathway li:nth-child(6n+2) { border-top-color: var(--yellow); }
.pathway li:nth-child(6n+3) { border-top-color: var(--maroon); }
.pathway li:nth-child(6n+4) { border-top-color: var(--navy); }
.pathway li:nth-child(6n+5) { border-top-color: var(--teal); }
.pathway li:nth-child(6n)   { border-top-color: var(--yellow); }

/* Dark variant, used inside the navy Competition block */
.pathway-dark li {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.pathway-dark li::before { border-color: var(--navy); background: var(--yellow); color: var(--navy); }
.pathway-dark h4 { color: #fff; }
.pathway-dark p { color: #b9cddd; }
.pathway-dark .stage { color: var(--yellow); }
.pathway-dark .outcome { color: var(--yellow); border-top-color: rgba(255,255,255,.2); }

/* Term timeline for the competition pathway */
.terms { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 780px) { .terms { grid-template-columns: repeat(3, 1fr); } }
.terms li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 18px;
}
.terms .term-label {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 2px;
}
.terms .term-when { display: block; font-size: .84rem; color: #9fb8cc; margin-bottom: 10px; }
.terms h4 { color: #fff; margin-bottom: 4px; font-size: 1rem; }
.terms p { color: #b9cddd; font-size: .9rem; margin: 0 0 10px; }
.terms .term-do {
  display: inline-block; font-size: .84rem; font-weight: 700; color: var(--yellow);
  background: rgba(244,211,94,.13); border: 1px solid rgba(244,211,94,.32);
  padding: 4px 11px; border-radius: 999px;
}
.term-routes { display: flex; flex-direction: column; gap: 4px; }
.term-route {
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius-sm); padding: 10px 12px 12px;
}
.term-or {
  align-self: center; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9fb8cc; margin: 2px 0;
}
.term-note {
  margin: 20px 0 0; padding: 14px 16px;
  background: rgba(244,211,94,.1); border: 1px solid rgba(244,211,94,.32);
  border-radius: var(--radius-sm); color: #fff; font-size: .95rem;
}
.term-note strong { color: var(--yellow); }

/* Dark-panel variant of the info-list, for use inside .competition */
.competition .info-list li { border-bottom-color: rgba(255,255,255,.14); color: #cfdded; }
.competition .info-list .label { color: var(--yellow); }

/* Dark-panel variant of the reassurance ticks, for use inside .competition
   (base .ticks uses --ink/--ink-muted, which are near-invisible on navy) */
.competition .ticks li { color: #cfdded; }
.competition .ticks strong { color: #fff; }

/* ---------- 21. Photos ---------------------------------------------------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-alt); }
.photo img { width: 100%; display: block; }

.media {
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 840px) { .media { grid-template-columns: 1fr 1fr; } }
@media (min-width: 840px) { .media-flip .media-text { order: 2; } }

.hero-media { display: grid; gap: 26px; align-items: center; }
@media (min-width: 940px) { .hero-media { grid-template-columns: 1.15fr .85fr; } }
.hero-photo {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.14);
  height: 460px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; display: block; }
@media (max-width: 939px) { .hero-photo { display: none; } }

.photo-caption { font-size: .84rem; color: var(--ink-muted); margin: 10px 0 0; }

/* ---------- 22. Utilities ------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.lede { font-size: 1.06rem; color: var(--ink-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
