/* =========================================================================
   Summit Institute — site styles
   Based on the North American AI Powered Principal page.
   Brand colours and fonts live in :root below. Change them here and every
   page (and the blog, once linked) updates.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --surface: #f3f7f2;
  --ink: #1b1f1c;
  --muted: #536058;
  --line: #dde6db;
  --green: #00bc36;
  --green-deep: #007f25;
  --green-soft: #e2f6e7;
  --mustard: #f5c23a;
  --mustard-soft: #fdf3d6;
  --lilac: #b4a7d6;
  --lilac-soft: #efebf8;
  --on-green: #ffffff;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111511; --surface: #19201a; --ink: #eef2ec; --muted: #a8b3aa; --line: #2a332b;
    --green: #2fd35a; --green-deep: #62e286; --green-soft: #163020;
    --mustard: #f5c23a; --mustard-soft: #3a3016; --lilac-soft: #26223a;
    --on-green: #0b1a0f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111511; --surface: #19201a; --ink: #eef2ec; --muted: #a8b3aa; --line: #2a332b;
  --green: #2fd35a; --green-deep: #62e286; --green-soft: #163020;
  --mustard: #f5c23a; --mustard-soft: #3a3016; --lilac-soft: #26223a;
  --on-green: #0b1a0f; color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 50; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 28px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: 13px 26px; min-height: 48px; transition: transform .15s ease, background .15s ease, border-color .15s ease; cursor: pointer; }
.btn-join { background: var(--green); color: var(--on-green); border: 0; }
.btn-join:hover { background: var(--green-deep); color: var(--bg); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--green); }
.btn-sm { padding: 8px 18px; min-height: 40px; font-size: .92rem; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: .92rem; color: var(--muted); }
.arrow-link { font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--green-deep); display: inline-flex; gap: 6px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Site header + menu ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; min-height: 64px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.15; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a, .menu .sub-toggle { color: var(--ink); text-decoration: none; font-family: var(--body); font-weight: 500; font-size: .88rem; white-space: nowrap; background: none; border: 0; padding: 8px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.menu a:hover, .menu .sub-toggle:hover { color: var(--green-deep); background: var(--surface); }
.menu a[aria-current="page"], .menu .is-current > .sub-toggle { color: var(--green-deep); }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.menu .has-sub:hover > .sub-toggle::after, .menu .sub-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.menu .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 4px); left: 0; min-width: 270px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 40, 25, .12); display: none; z-index: 30; }
.menu .sub::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
.menu .sub a { display: flex; padding: 9px 12px; font-size: .92rem; white-space: normal; }
.menu .sub li.sub-head { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.menu .sub li.sub-sep { border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .has-sub:hover > .sub, .menu .has-sub:focus-within > .sub, .menu .has-sub.open > .sub { display: block; }
.menu .btn-join { color: var(--on-green); background: var(--green); margin-left: 8px; padding: 8px 20px; border-radius: 999px; min-height: 40px; font-family: var(--display); font-weight: 600; }
.menu .btn-join:hover { color: var(--bg); background: var(--green-deep); }

/* Mobile menu (no script needed) */
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: .92rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; display: inline-flex; gap: 8px; align-items: center; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::before { content: "☰"; font-size: 1rem; line-height: 1; }
.mnav[open] summary::before { content: "✕"; }
.mnav-panel { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); padding: 16px max(16px, env(safe-area-inset-left, 0px)) 40px; z-index: 40; }
.mnav-panel ul { list-style: none; margin: 0; padding: 0; }
.mnav-panel > ul > li { border-bottom: 1px solid var(--line); }
.mnav-panel a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mnav-panel .grp { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); padding: 16px 4px 4px; }
.mnav-panel ul ul a { padding: 8px 4px 8px 14px; font-size: .95rem; color: var(--muted); }
.mnav-panel .btn-join { margin-top: 20px; width: 100%; color: var(--on-green); }
@media (max-width: 1240px) {
  header.site nav.desk { display: none; }
  .mnav { display: block; }
}

/* ---------- Sections ---------- */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--surface); }
.sec-head { display: grid; gap: 12px; max-width: 64ch; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 640px) { section { padding-block: 52px; } }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 64px 56px; display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; letter-spacing: -.015em; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.lede { font-size: 1.2rem; max-width: 58ch; color: var(--muted); }
.hero-copy { display: grid; gap: 22px; min-width: 0; align-content: start; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; } }

section.hero, section.page-hero, section.final { padding-block: 0; }
.menu > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }

/* Smaller page hero for inner pages */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: 40px 44px; display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.01em; max-width: 26ch; }
.page-hero .lede { font-size: 1.12rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-deep); text-decoration: underline; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 18px 20px 4px 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--display); font-size: 1.85rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact b small { font-size: .95rem; font-weight: 600; }
.fact span { color: var(--muted); font-size: .94rem; }
.fact.save b { color: var(--green-deep); }
@media (max-width: 860px) {
  .facts, .facts.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .facts, .facts.five { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Spotlight (programme cards in the home hero) ---------- */
.spotlight { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; min-width: 0; }
.spotlight .eyebrow { margin-bottom: 2px; }
.spot { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); border-left: 4px solid var(--green); transition: transform .15s ease; }
.spot:nth-of-type(2) { border-left-color: var(--mustard); }
.spot:nth-of-type(3) { border-left-color: var(--lilac); }
.spot:hover { transform: translateX(3px); }
.spot b { font-family: var(--display); font-weight: 600; }
.spot span { color: var(--muted); font-size: .92rem; }

/* ---------- Two-column split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split p + p { margin-top: 14px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Card grids ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card .arrow-link { margin-top: auto; padding-top: 6px; }
.card.feature { background: var(--green); color: var(--on-green); }
.card.feature p, .card.feature .eyebrow, .card.feature .arrow-link { color: var(--on-green); }
.card.mustard { background: var(--mustard-soft); }
.card.lilac { background: var(--lilac-soft); }
.card.outline { background: var(--bg); border: 1px solid var(--line); }
.card .tag { font-family: var(--display); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.card img.card-img { width: calc(100% + 48px); max-width: none; margin: -24px -24px 6px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

/* ---------- Top-border rhythm columns ---------- */
.rhythm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rhythm.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rhythm > div { border-top: 3px solid var(--green); padding-top: 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.rhythm > div:nth-child(3) { border-color: var(--mustard); }
.rhythm > div:nth-child(4) { border-color: var(--ink); }
.rhythm > div:nth-child(2) { border-color: var(--lilac); }
.rhythm p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .rhythm, .rhythm.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .rhythm, .rhythm.three { grid-template-columns: 1fr; } }

/* ---------- Checklist ---------- */
.leave { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.leave.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.leave.one { grid-template-columns: 1fr; }
.leave li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 16px 18px; background: var(--surface); border-radius: 12px; min-width: 0; }
.leave li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.leave li span { color: var(--muted); display: block; font-size: .96rem; }
.leave li b { font-weight: 600; }
@media (max-width: 860px) { .leave.three { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .leave { grid-template-columns: 1fr; } }

/* ---------- Line list (two columns of points) ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.pains li { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.pains li strong { font-family: var(--display); font-weight: 600; }
.pains li span { color: var(--muted); }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Panels ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { border: 2px solid var(--ink); border-radius: 16px; padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel.fund { border-color: var(--green); background: var(--green-soft); }
.panel.soft { border: 1px solid var(--line); background: var(--surface); }
.panel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.panel .small { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }
.note { background: var(--mustard-soft); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 6px; }
.note.green { background: var(--green-soft); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { font-family: var(--display); font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; display: inline-block; }
a.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green-deep); border-color: var(--green-deep); color: var(--bg); }
.chip.plain { font-family: var(--body); font-weight: 500; background: var(--surface); border-color: transparent; }

/* ---------- Qualification list (on subject pages) ---------- */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.qlist a:hover { border-color: var(--green); }
.qlist b { font-family: var(--display); font-weight: 600; font-size: 1.04rem; }
.qlist .meta { grid-column: 1; color: var(--muted); font-size: .92rem; }
.qlist .go { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-weight: 600; color: var(--green-deep); white-space: nowrap; }
@media (max-width: 560px) { .qlist a { grid-template-columns: 1fr; } .qlist .go { grid-row: auto; grid-column: 1; } }

/* ---------- Price ---------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; background: var(--green-soft); border-radius: 12px; padding: 14px 18px; }
.price b { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--green-deep); }
.price span { color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 480px; }
table.data th { text-align: left; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 10px 14px; }
table.data td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.ref { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.data tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--green); vertical-align: middle; margin-right: 8px; min-width: 2px; }

/* ---------- Course blocks (careers page) ---------- */
.course { display: grid; gap: 10px; }
.course h3 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.course h3 .chip { font-size: .78rem; padding: 4px 10px; }
.course-group { display: grid; gap: 28px; }

/* ---------- Name lists in columns ---------- */
.names { columns: 3 220px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.names li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); font-size: .96rem; }
details.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; background: var(--bg); }
details.more > summary { cursor: pointer; font-family: var(--display); font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--green-deep); }
details.more[open] > summary::after { content: "–"; }
details.more > .inner { padding: 4px 0 22px; }

/* ---------- Long-form text (policies, homestay) ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 28px; }
.prose h4 { margin-top: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li > ol, .prose li > ul, .prose ol ol, .prose ul ul { margin-top: 8px; }
.prose img { border-radius: 12px; }
.toc { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--muted); display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--green-deep); border-color: var(--green); }
.with-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.with-side .side { position: sticky; top: 90px; display: grid; gap: 10px; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; gap: 28px; } .with-side .side { position: static; } }

/* ---------- Quote ---------- */
.quote-block { margin: 0; background: var(--mustard-soft); border-radius: 16px; padding: 28px; display: grid; gap: 12px; }
.quote-block blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; }
.quote-block blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: .6; height: .45em; color: var(--green); }
.quote-block figcaption { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; }
.steps li > div { padding-top: 6px; }

/* ---------- Final call to action (dark band) ---------- */
.final { background: var(--ink); color: var(--bg); }
.final .wrap { padding-block: 64px; display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.final h2 { color: var(--bg); }
.final p { color: var(--bg); opacity: .85; }
.final .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.final .btn-ghost:hover { border-color: var(--green); }
.final .btn-join:hover { background: var(--green-deep); }
@media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } }

/* ---------- Site footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); font-size: .94rem; }
footer.site .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
footer.site h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { color: var(--green-deep); text-decoration: underline; }
footer.site .about { display: grid; gap: 14px; align-content: start; color: var(--muted); }
footer.site .about .brand img { height: 34px; }
footer.site .base { border-top: 1px solid var(--line); padding-block: 18px 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .88rem; }
footer.site .base nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.site .about { grid-column: 1 / -1; } }
@media (max-width: 440px) { footer.site .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { header.site, footer.site, .final, .mnav { display: none; } }

/* ---------- Adjustments ---------- */
.panel ul.chips { display: flex; padding-left: 0; gap: 8px; }
.panel.soft .chip.plain { background: var(--bg); border-color: var(--line); }
/* On tinted sections, light boxes switch to white so they stand out */
.tint .leave li, .tint .card:not(.feature):not(.mustard):not(.lilac):not(.outline), .tint .panel.soft { background: var(--bg); }
.tint .panel.soft { border-color: var(--line); }
/* Course tables share one column layout */
.course table.data { table-layout: fixed; }
.course table.data th:first-child, .course table.data td:first-child { width: 96px; }
.course table.data th.num, .course table.data td.num { width: 90px; }
@media (max-width: 600px) {
  .course table.data { table-layout: auto; }
}
