/* ==========================================================================
   Young Economists
   Colours are taken from the logo: navy ring, and the four bars — green,
   orange, yellow, blue. Edit the variables in :root and the site follows.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo */
  --navy:        #16305E;
  --navy-deep:   #0F2549;
  --navy-panel:  #1E3F76;
  --gold:        #F0AE1F;
  --ice:         #CFE0FA;
  --card:        #F3F6FB;
  --grey:        #55606F;
  --white:       #ffffff;

  /* The four bars */
  --green:       #3E8E41;
  --orange:      #E8541E;
  --yellow:      #F5C518;
  --blue:        #2E7BC4;

  /* Gold as small text on light grounds needs to come down to clear 4.5:1.
     The bright --gold above is untouched and does the work on navy. */
  --gold-dark:   #8A5E04;

  --line:        #E1E7F1;
  --line-dark:   rgba(207, 224, 250, 0.20);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", Calibri, "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --wrap: 1120px;
  --wrap-narrow: 780px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(16, 32, 74, .05), 0 6px 20px rgba(16, 32, 74, .07);
  --shadow-lg: 0 3px 8px rgba(16, 32, 74, .07), 0 16px 40px rgba(16, 32, 74, .13);
  --section-y: 74px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.13;
  margin: 0 0 .45em;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.3rem); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

strong, b { color: var(--navy-deep); font-weight: 700; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--navy-deep);
  padding: .7rem 1.1rem; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: var(--section-y) 0; }
.section-sm { padding: calc(var(--section-y) * .6) 0; }

.section-light { background: var(--card); }
.section-white { background: var(--white); }

.section-navy { background: var(--navy); color: var(--ice); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy strong, .section-navy b { color: var(--white); }
.section-navy a { color: var(--gold); }
.section-navy a:hover { color: var(--white); }

.center { text-align: center; }
.measure { max-width: 60ch; }
.center .measure { margin-left: auto; margin-right: auto; }

.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9em;
}
.section-navy .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }

.lead { font-size: 1.14rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: .78em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 4px 14px rgba(240,174,31,.34); }
.btn-gold:hover { background: #ffc23f; color: var(--navy-deep); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-panel); color: var(--white); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.section-navy .btn-ghost, .hero .btn-ghost, .page-head .btn-ghost, .cta .btn-ghost {
  color: var(--ice); border-color: var(--line-dark);
}
.section-navy .btn-ghost:hover, .hero .btn-ghost:hover,
.page-head .btn-ghost:hover, .cta .btn-ghost:hover {
  color: var(--white); border-color: var(--ice); background: rgba(255,255,255,.07);
}

.btn-sm { font-size: .92rem; padding: .6em 1.2em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(16,32,74,.08); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text {
  font-family: var(--sans);
  font-weight: 700; font-size: 1rem; line-height: 1.12;
  color: var(--navy); letter-spacing: .01em; text-transform: uppercase;
}
.brand-text span { display: block; color: var(--gold-dark); }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5em .75em; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { background: var(--card); }
.site-nav a[aria-current="page"] { color: var(--gold-dark); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 8px; color: var(--navy); }
.nav-toggle:hover { background: var(--card); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: 0 14px 28px rgba(16,32,74,.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .72em .6em; font-size: 1.02rem; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero / page head
   -------------------------------------------------------------------------- */

.hero, .page-head {
  background: var(--navy); color: var(--ice);
  position: relative; overflow: hidden;
}
.hero { padding: clamp(52px, 7vw, 86px) 0 clamp(56px, 7.5vw, 92px); }
.page-head { padding: clamp(44px, 6vw, 70px) 0 clamp(46px, 6.5vw, 74px); }

.hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 75% at 78% 38%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 78% 38%, #000 8%, transparent 72%);
}
.hero > .wrap, .page-head > .wrap { position: relative; z-index: 1; }

.hero h1, .page-head h1 { color: var(--white); margin-bottom: .32em; }
.hero .lead, .page-head .lead { color: var(--ice); max-width: 52ch; }
.hero .lead { font-size: clamp(1.08rem, 1.9vw, 1.24rem); margin-bottom: 1.6em; }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55em;
  background: rgba(240,174,31,.13); border: 1px solid rgba(240,174,31,.42);
  color: var(--gold);
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px; margin-bottom: 1.5em;
}

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0 36px;
  margin-top: 2.2em; padding-top: 1.7em; border-top: 1px solid var(--line-dark);
}
.hero-fact { margin-bottom: .9em; }
.hero-fact dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .25em; }
.hero-fact dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--white); }

/* --------------------------------------------------------------------------
   Hero photograph
   -------------------------------------------------------------------------- */

.hero-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  background: var(--navy-panel);
}
.hero-photo img { width: 100%; height: auto; display: block; }
.hero-photo figcaption {
  padding: 13px 17px;
  font-size: .87rem;
  line-height: 1.45;
  color: var(--ice);
}

/* --------------------------------------------------------------------------
   THE SIGNATURE DEVICE
   "You already know this" — the plain observation first, the technical term
   second. This is the whole teaching method, so it is the whole visual idea.
   -------------------------------------------------------------------------- */

.known {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.section-white .known { background: var(--card); border-color: var(--line); }
.section-navy .known { background: var(--navy-panel); border-color: var(--line-dark); border-left-color: var(--gold); box-shadow: none; }

.known-plain {
  font-size: 1.02rem;
  color: var(--navy-deep);
  margin: 0 0 .75em;
}
.section-navy .known-plain { color: var(--white); }

.known-term {
  margin: 0;
  padding-top: .8em;
  border-top: 1px dashed var(--line);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--grey);
}
.section-navy .known-term { border-top-color: var(--line-dark); color: var(--ice); }

/* Reads as "...and so:" — the turn from the everyday fact to the term. */
.known-term::before {
  content: "so";
  display: inline-block;
  margin-right: .6em;
  font-family: var(--sans); font-style: normal; font-weight: 700;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark);
  vertical-align: .12em;
}
.section-navy .known-term::before { color: var(--gold); }

.known-term b {
  font-family: var(--sans); font-style: normal; font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.section-navy .known-term b { color: var(--white); }

.known-row { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .known-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Testimonial
   The student's own words are the point, so they get the display face and the
   size; the parent's framing sits quietly around them.
   -------------------------------------------------------------------------- */

.testimonial {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px 30px;
  box-shadow: var(--shadow);
}
.section-white .testimonial { background: var(--card); border-color: transparent; box-shadow: none; }
@media (max-width: 560px) { .testimonial { padding: 26px 24px 24px; } }

.testimonial > p { color: var(--grey); }
.testimonial > p:last-of-type { margin-bottom: 0; }

.testimonial blockquote {
  margin: 1.1em 0;
  padding: 0 0 0 1.1em;
  border-left: 4px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.18rem, 2.3vw, 1.52rem);
  line-height: 1.38;
  color: var(--navy);
}
.testimonial blockquote p { margin: 0; }

.testimonial figcaption {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.section-white .card { background: var(--card); border-color: transparent; box-shadow: none; }
.section-light .card { background: var(--white); }
.section-navy .card { background: var(--navy-panel); border-color: var(--line-dark); box-shadow: none; color: var(--ice); }

.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* A plain list of points — no borders, no boxes. Not everything is a card. */
.points { display: grid; gap: 26px; }
.points > div > h3 { margin-bottom: .3em; }
.points > div > p { margin: 0; }

/* Coloured rule above a point, cycling the four bar colours */
.points.ruled > div { border-top: 3px solid var(--line); padding-top: 16px; }
.points.ruled > div:nth-child(4n+1) { border-top-color: var(--green); }
.points.ruled > div:nth-child(4n+2) { border-top-color: var(--orange); }
.points.ruled > div:nth-child(4n+3) { border-top-color: var(--yellow); }
.points.ruled > div:nth-child(4n+4) { border-top-color: var(--blue); }

/* --------------------------------------------------------------------------
   Split
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; gap: 36px; } }

/* --------------------------------------------------------------------------
   Diagram (real economics, drawn to scale)
   -------------------------------------------------------------------------- */

.diagram {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  box-shadow: var(--shadow);
}
.section-navy .diagram { background: var(--navy-panel); border-color: var(--line-dark); box-shadow: none; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--grey);
}
.section-navy .diagram figcaption { border-top-color: var(--line-dark); color: var(--ice); }

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  font-family: var(--display);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.38;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding: .2em 0 .2em 1.05em;
  margin: 0;
}
.section-navy .pullquote { color: var(--white); }

/* Centred, no rule — for a quote standing alone as a whole section. */
.pullquote-plain { border-left: 0; padding: 0; }

.quote-attrib {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 1.5em;
}
.section-navy .quote-attrib { color: var(--gold); }

/* --------------------------------------------------------------------------
   Sessions
   -------------------------------------------------------------------------- */

.session {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.session:first-of-type { border-top: 0; }
@media (max-width: 640px) { .session { grid-template-columns: 1fr; gap: 12px; } }

.session-num {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 1.6rem;
  color: var(--white); background: var(--navy);
}
@media (max-width: 640px) { .session-num { width: 46px; height: 46px; font-size: 1.2rem; } }

.session:nth-of-type(4n+1) .session-num { background: var(--green); }
.session:nth-of-type(4n+2) .session-num { background: var(--orange); }
.session:nth-of-type(4n+3) .session-num { background: var(--yellow); color: var(--navy-deep); }
.session:nth-of-type(4n+4) .session-num { background: var(--blue); }

.session h3 { margin-bottom: .3em; }
.session-body > p { margin-bottom: .85em; }

.concepts { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.concepts li { margin: 0; }
.concept {
  display: inline-block;
  background: var(--card); color: var(--navy-deep);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3em .8em; font-size: .84rem; font-weight: 600;
}
.section-navy .concept { background: var(--navy-panel); color: var(--ice); border-color: var(--line-dark); }

.tag-planned {
  display: inline-block; vertical-align: middle;
  background: rgba(240,174,31,.18); color: #7F5603;
  border: 1px solid rgba(240,174,31,.45);
  font-family: var(--sans);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25em .65em; border-radius: 999px; margin-left: .6em;
}

/* --------------------------------------------------------------------------
   Session shape — a compact numbered rail
   -------------------------------------------------------------------------- */

.rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 480px) { .rail { grid-template-columns: 1fr; } }

.rail > li { margin: 0; padding: 0 16px 0 0; position: relative; }
.rail > li::before {
  content: ""; display: block; height: 3px; border-radius: 2px;
  background: var(--gold); margin-bottom: 14px;
  width: 100%;
}
.rail .n {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .3em;
}
.section-navy .rail .n { color: var(--gold); }
.rail h3 { font-size: 1.02rem; margin-bottom: .2em; }
.rail p { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   Facts list
   -------------------------------------------------------------------------- */

.facts { margin: 0; }
.facts > div {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
@media (max-width: 540px) { .facts > div { grid-template-columns: 1fr; gap: 3px; } }
.facts dt { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .3em; }
.facts dd { margin: 0; }
.section-navy .facts > div { border-color: var(--line-dark); }
.section-navy .facts dt { color: var(--gold); }

/* --------------------------------------------------------------------------
   Notice — for the things that need saying plainly
   -------------------------------------------------------------------------- */

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .98rem;
}
.section-light .notice { background: var(--white); }
.section-navy .notice { background: var(--navy-panel); border-color: var(--line-dark); border-left-color: var(--gold); color: var(--ice); }
.notice-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: .88rem;
}
.section-navy .notice-mark { background: var(--gold); color: var(--navy-deep); }
.notice p { margin: 0; }
.notice p + p { margin-top: .6em; }

/* --------------------------------------------------------------------------
   Founders
   -------------------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }

.person {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.section-light .person { background: var(--white); }
.person-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--navy); margin: 0 0 .1em; }
.person-role { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 1em; }
.person p { margin: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 19px 44px 19px 0;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--gold-dark); border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--gold-dark); }
.faq .faq-body { padding: 0 20px 22px 0; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  background: var(--navy); color: var(--ice);
  border-radius: 20px;
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { color: var(--ice); font-size: 1.06rem; }
.cta .measure { margin: 0 auto 1.7em; }

/* --------------------------------------------------------------------------
   Join / WeChat
   -------------------------------------------------------------------------- */

.join-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) { .join-card { grid-template-columns: 1fr; gap: 24px; } }

.qr { width: 100%; max-width: 240px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.qr img, .qr svg { width: 100%; border-radius: 8px; }
.qr figcaption { font-size: .84rem; font-weight: 700; color: var(--navy); text-align: center; margin-top: 10px; }

.wechat-id {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: .35em .7em;
  font-size: .98rem; font-weight: 700; color: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: var(--ice); padding: 54px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer a { color: var(--ice); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }

.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: var(--gold); }

.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .87rem; color: rgba(207,224,250,.72);
}

/* --------------------------------------------------------------------------
   TODO markers — every remaining gap. Search the HTML for "todo".
   -------------------------------------------------------------------------- */

.todo {
  background: #FFF3C4; color: #6B4C00;
  border-bottom: 2px dotted var(--gold-dark);
  border-radius: 3px; padding: 0 .28em;
  font-style: normal; font-weight: 700;
}
.section-navy .todo, .hero .todo, .page-head .todo, .cta .todo {
  background: rgba(240,174,31,.12); color: var(--gold); border-bottom-color: var(--gold);
}

.todo-block {
  background: #FFF9E6; border: 2px dashed var(--gold);
  border-radius: var(--radius); padding: 24px 26px; color: #6B4C00;
}
.todo-block h3 { color: #6B4C00; }
.todo-block p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 38px; }
.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; }
