/* ==========================================================================
   CSMSA website: shared stylesheet
   Tokens, type, components and responsive rules used by every page, from the
   "CSMSA website redesign" design canvas. Rules this site needs beyond the
   canvas (the page shell, form pages, hidden pages) are at the end of the file.
   Signature details: italic serif kickers, Punjabi accents in Gurmukhi,
   the route line, and captioned photographs.
   Breakpoints: 1120px (tablet), 980px (header collapses to Menu), 760px (mobile).
   Motion: colour and underline transitions, one fade for modals. Nothing else.
   ========================================================================== */

:root {
  --ink: #0F243A;          /* primary text, footer */
  --navy-deep: #1B3857;    /* primary buttons, the one dark band */
  --navy: #2E4B70;         /* secondary text, links, hover */
  --slate: #4A6786;        /* captions, metadata */
  --gold: #B48435;         /* hairlines, icons, large numerals, Gurmukhi accents */
  --gold-ink: #8C6526;     /* gold text on alternate sections (4.6:1) */
  --gold-light: #DAAB69;   /* accent fill, gold on navy */
  --gold-pale: #EBCB98;    /* accent fill, labels on navy */
  --paper: #FCF8F4;        /* page */
  --paper-alt: #F5EFEA;    /* alternate sections */
  --card: #FFFFFF;         /* cards */
  --rule: #E8E2DB;         /* borders and dividers */
  --field: #7C8DA1;        /* form field border (3.4:1 on white) */
  --error: #9B3426;        /* functional colour, form errors only */
  --error-tint: #FBF0ED;
  --scrim: rgba(15, 36, 58, 0.62);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pa: "Tiro Gurmukhi", "Noto Serif Gurmukhi", "Mukta Mahee", serif;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --float: 0 24px 64px rgba(15, 36, 58, 0.24), 0 2px 8px rgba(15, 36, 58, 0.08);
  --t: 180ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html:has(.site) body { background: var(--ink); }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.site { background: var(--paper); color: var(--ink); font-family: var(--sans); }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 48px; }
.rule { height: 1px; background: var(--rule); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.1; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.16; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.28; color: var(--ink); text-wrap: balance; }
.h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.35; color: var(--ink); }
.lead { font-size: 20px; line-height: 1.6; color: var(--navy); text-wrap: pretty; }
.text { font-size: 17px; line-height: 1.65; color: var(--navy); text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.55; }
.caption { font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.ital { font-style: italic; }
/* Kicker: the label above a heading. Italic Spectral, never uppercase tracking. */
.eyebrow { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--navy); }
.on-dark .eyebrow { color: var(--gold-pale); }

/* ---------- Punjabi accents ----------
   Gurmukhi is always Tiro Gurmukhi, always gold, always 30px or larger,
   always followed by a transliteration and meaning. One word per section. */
.pa { margin: 0; font-family: var(--pa); font-weight: 400; font-style: normal; line-height: 1.25; letter-spacing: 0; color: var(--gold); }
.pa--xl { font-size: 96px; line-height: 1.15; }
.pa--lg { font-size: 72px; }
.pa--md { font-size: 52px; }
.pa--sm { font-size: 36px; }
.pa-gloss { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.pa-gloss em { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--navy); }
.section--alt .pa, .cred .pa { color: var(--gold-ink); }
.on-dark .pa { color: var(--gold-light); }
.on-dark .pa-gloss { color: rgba(255, 255, 255, 0.72); }
.on-dark .pa-gloss em { color: #fff; }

/* ---------- Captioned photographs ---------- */
.fig { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fig__img { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--rule); }
.fig__img img { width: 100%; height: 100%; object-fit: cover; }
.fig__cap { font-family: var(--serif); font-size: 15.5px; font-style: italic; line-height: 1.5; color: var(--slate); }

/* ---------- Route line ----------
   A gold hairline with stops. Used for sequences (mentorship steps)
   and for geography (the schools, west to east). */
.route { --n: 3; --gap: 32px; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); }
.route::before { content: ""; position: absolute; top: 8px; height: 1px; left: calc((100% - (var(--n) - 1) * var(--gap)) / (2 * var(--n))); right: calc((100% - (var(--n) - 1) * var(--gap)) / (2 * var(--n))); background: var(--gold); }
.route--steps::before { left: 8px; right: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) - 8px); }
.route--10 { --n: 10; --gap: 0px; }
.route__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.route--steps .route__stop { align-items: flex-start; text-align: left; }
.route__dot { position: relative; z-index: 1; flex: none; width: 17px; height: 17px; margin-bottom: 16px; border: 1px solid var(--gold); border-radius: 50%; background: var(--paper); }
.route__dot--end { background: var(--gold); }
.cred .route__dot { background: var(--paper-alt); }
.cred .route__dot--end, .route__dot--end { background: var(--gold); }
.on-dark .route::before { background: var(--gold-light); }
.on-dark .route__dot { border-color: var(--gold-light); background: var(--navy-deep); }
.on-dark .route__dot--end { background: var(--gold-light); }
.route__step { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.3; color: var(--gold-ink); }
.on-dark .route__step { color: var(--gold-pale); }
.route__title { margin-top: 2px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.3; color: var(--ink); }
.on-dark .route__title { color: #fff; }
.route__text { max-width: 32ch; margin-top: 6px; font-size: 16.5px; line-height: 1.6; color: var(--navy); }
.on-dark .route__text { color: rgba(255, 255, 255, 0.78); }
.route__name { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--navy-deep); }
.route__place { font-size: 13.5px; line-height: 1.4; color: var(--slate); }
.regions { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 32px; }
.region { margin: 0 14px; padding-top: 12px; border-top: 1px solid var(--gold-light); font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.4; text-align: center; color: var(--slate); }

/* ---------- Links ---------- */
.link { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(46, 75, 112, 0.4); transition: color var(--t), text-decoration-color var(--t); }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--navy-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(27, 56, 87, 0.3); transition: color var(--t), text-decoration-color var(--t); }
.tlink:hover, .tlink.is-hover { color: var(--navy); text-decoration-color: currentColor; }
.tlink .ic { width: 16px; height: 16px; }
.on-dark .tlink, .on-dark .link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.on-dark .tlink:hover, .on-dark .link:hover { text-decoration-color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r-sm); font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--navy-deep); color: #fff; }
.btn-primary:hover, .btn-primary.is-hover { background: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-secondary:hover, .btn-secondary.is-hover { background: rgba(27, 56, 87, 0.06); color: var(--ink); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover, .btn-gold.is-hover { background: var(--gold-pale); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover, .btn-ghost.is-hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
a:focus-visible, button:focus-visible, .is-focus { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark a:focus-visible, .on-dark button:focus-visible, .on-dark .is-focus { outline-color: var(--gold-pale); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color var(--t); }
.icon-btn:hover { border-color: var(--slate); }

/* ---------- Header ---------- */
.hdr { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); font-family: var(--sans); color: var(--ink); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand__logo { width: 48px; height: 48px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__short { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; letter-spacing: 0.05em; }
.brand__full { font-size: 12.5px; line-height: 1.3; color: var(--slate); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link { display: inline-block; padding: 8px 0; font-size: 15.5px; font-weight: 500; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; text-decoration-color: transparent; transition: color var(--t), text-decoration-color var(--t); }
.nav__link:hover { color: var(--ink); text-decoration-color: var(--slate); }
.nav__link.is-active { color: var(--ink); text-decoration-color: var(--gold); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.mnav { position: absolute; top: 100%; left: 0; right: 0; min-height: calc(100vh - 73px); display: flex; flex-direction: column; padding: 8px 24px 32px; background: var(--paper); }
.mnav__link { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.mnav__link .ic { color: var(--slate); }
.mnav__link.is-active { color: var(--navy); }
.mnav__link.is-active .ic { color: var(--gold); }
.mnav__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 40px; }
.mnav__social { display: flex; justify-content: center; gap: 28px; margin-top: 12px; }

/* ---------- Footer ---------- */
.ftr { padding: 88px 0 40px; background: var(--ink); color: rgba(255, 255, 255, 0.78); font-size: 15.5px; line-height: 1.65; }
.ftr__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.ftr__brand { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.ftr__logo { width: 64px; height: 64px; }
.ftr__name { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: #fff; }
.ftr__blurb { max-width: 330px; }
.ftr__col { grid-column: span 2; }
.ftr__col--wide { grid-column: span 4; }
.ftr__h { margin-bottom: 16px; font-family: var(--serif); font-size: 19px; font-style: italic; font-weight: 400; line-height: 1.3; color: var(--gold-pale); }
.ftr__list { display: flex; flex-direction: column; gap: 12px; }
.ftr__list a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color var(--t); }
.ftr__list a:hover { text-decoration-color: var(--gold-light); }
.ftr__list .ic { color: var(--gold-light); }
.ftr__list a span { min-width: 0; overflow-wrap: anywhere; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.ftr__motto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ftr__motto .pa { font-size: 30px; line-height: 1.2; }
.ftr__motto-gloss em { font-family: var(--serif); font-size: 16px; font-style: italic; color: #fff; }

/* ---------- Sections and page heads ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--paper-alt); }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.sec-head--center { margin: 0 auto; align-items: center; text-align: center; }
.pagehead { padding: 104px 0 88px; }
.pagehead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: end; }
.pagehead__main { grid-column: 1 / span 8; }
.pagehead__pa { grid-column: 10 / span 3; padding: 4px 0 6px 32px; border-left: 1px solid var(--rule); }
.pagehead__title { max-width: 920px; margin-top: 20px; }
.pagehead .lead { max-width: 640px; margin-top: 28px; }
.pagehead__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Home ---------- */
.hero { padding: 96px 0 112px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; align-items: end; }
.hero__main { grid-column: 1 / span 7; }
.hero__fig { grid-column: 9 / span 4; }
.hero__fig .fig__img { aspect-ratio: 4 / 5; }
.hero__title { margin-top: 24px; }
.hero__sub { max-width: 600px; margin-top: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.about-sec { padding-bottom: 120px; }
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 72px; padding-top: 104px; }
.about__label { grid-column: 1 / span 3; padding-top: 8px; }
.about__statement { grid-column: 4 / span 9; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 32px 0; border-left: 1px solid var(--rule); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__title { margin-top: 28px; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.25; }
.pillar__text { max-width: 34ch; margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--navy); }
.pillar .tlink { margin-top: 18px; }

.band { padding: 120px 0; background: var(--navy-deep); color: #fff; }
.band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; }
.band__title { max-width: 640px; margin-top: 16px; color: #fff; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.band__route { margin-top: 88px; }

.health { padding: 120px 0; }
.health__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 20px; align-items: end; }
.health__titles { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 16px; }
.health__intro { grid-column: 7 / span 6; }
.tiles { display: grid; gap: 32px; margin-top: 64px; }
.tiles--1 { grid-template-columns: minmax(0, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Tiles in a row share one height, so titles start and recap links end on the same lines */
.tiles--2 .tile-li, .tiles--3 .tile-li, .tiles--4 .tile-li { display: flex; }
.tiles--2 .tile__body, .tiles--3 .tile__body, .tiles--4 .tile__body { flex: 1 1 auto; }
.tiles--2 .tile__watch, .tiles--3 .tile__watch, .tiles--4 .tile__watch { margin-top: auto; padding-top: 12px; }
.tile { display: flex; flex-direction: column; gap: 20px; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.tile__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--rule); }
.tiles--3 .tile__media, .tiles--4 .tile__media { aspect-ratio: 4 / 5; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tile__title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--t); }
.tile:hover .tile__title { text-decoration-color: var(--navy); }
.tile__meta { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--slate); }
.tile__summary { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--navy); }
.tile__watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--navy-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(27, 56, 87, 0.3); transition: text-decoration-color var(--t); }
.tile:hover .tile__watch { text-decoration-color: currentColor; }
.tile__watch .ic { width: 12px; height: 12px; color: var(--gold); }
.tiles--1 .tile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.tiles--1 .tile__media { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.tiles--1 .tile__body { grid-column: 9 / span 4; }
.tiles--1 .tile__title { font-size: 36px; }
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.partner__label { font-size: 14.5px; color: var(--slate); }
.partner__logo { width: auto; height: 30px; }

.cred { background: var(--paper-alt); }
.schools { padding: 96px 0 72px; }
.schools__line { font-family: var(--serif); font-size: 26px; font-style: italic; font-weight: 400; line-height: 1.3; text-align: center; color: var(--navy); }
.schools__route { margin-top: 56px; }
.thanks { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.thanks__main { display: flex; align-items: center; gap: 28px; }
.thanks__text { max-width: 640px; font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }
.logo-slot { display: flex; align-items: center; justify-content: center; flex: none; width: 168px; height: 72px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); color: var(--slate); font-size: 12.5px; letter-spacing: 0.04em; }

.join { padding: 120px 0 128px; text-align: center; }
.join__title { max-width: 760px; margin: 36px auto 0; }
.join__text { max-width: 560px; margin: 24px auto 0; }
.join__cta { display: flex; justify-content: center; margin-top: 40px; }
.join__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 48px; margin-top: 44px; font-size: 16px; color: var(--navy); }
.join__links p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }

/* ---------- Mentorship ---------- */
.track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: start; }
.track__head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.track__card { grid-column: 5 / span 8; padding: 48px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); }
.path { display: flex; align-items: center; gap: 28px; }
.path__stage { display: flex; flex-direction: column; gap: 4px; }
.path__name { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.path__role { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--slate); }
.path__line { position: relative; flex: 1; min-width: 48px; height: 1px; margin-top: -26px; background: var(--gold); }
.path__line::before, .path__line::after { content: ""; position: absolute; top: -8px; width: 17px; height: 17px; border: 1px solid var(--gold); border-radius: 50%; background: var(--card); }
.path__line::before { left: -8px; }
.path__line::after { right: -8px; background: var(--gold); }
.track__text { margin-top: 32px; }
.track__card .tlink { margin-top: 24px; }
.how-sec { padding-bottom: 112px; }
.how-sec__inner { padding-top: 104px; }
.how-route { margin-top: 72px; }
.faq-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: start; }
.faq-sec__head { grid-column: 1 / span 4; }
.faq { grid-column: 5 / span 8; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 28px 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--ink); transition: color var(--t); }
.faq__btn:hover { color: var(--navy); }
.faq__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; color: var(--navy); }
.faq__btn[aria-expanded="true"] .faq__v { display: none; }
.faq__a { max-width: 62ch; padding: 0 72px 30px 0; font-size: 17px; line-height: 1.65; color: var(--navy); }
.close-cta { padding: 112px 0 120px; text-align: center; }
.close-cta__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- Team ---------- */
.team-sec { padding: 8px 0 120px; }
.group { margin-top: 96px; }
.group.group--first { margin-top: 0; }
.group__head { padding-top: 24px; border-top: 1px solid var(--rule); }
.group__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--ink); }
.exec-grid { --cols: 4; --gap-x: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 56px var(--gap-x); margin-top: 40px; }
.exec-card { display: flex; flex-direction: column; gap: 20px; }
.exec-card__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-md); background: var(--paper-alt); }
.exec-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.exec-card__name { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; color: var(--ink); }
.exec-card__role { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--slate); white-space: pre-line; }
.people { --cols: 3; --gap-x: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px var(--gap-x); margin-top: 40px; }
.exec-grid > li, .people > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols) - 0.1px); min-width: 0; }
.person { display: flex; align-items: center; gap: 18px; min-width: 0; }
.person__photo { position: relative; flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: var(--paper-alt); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.person__name { font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.person__role { margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--slate); white-space: pre-line; }
.mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--paper-alt); color: var(--navy-deep); font-family: var(--serif); font-weight: 400; letter-spacing: 0.04em; line-height: 1; }
.mono::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-light); border-radius: 4px; }
.exec-card .mono { font-size: 76px; }
.person .mono { font-size: 23px; }
.person .mono::after { inset: 4px; border-radius: 50%; }
.cta-band { padding: 96px 0; background: var(--paper-alt); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }

/* ---------- Resources ---------- */
.res-sec { padding-bottom: 112px; }
.res-list { border-top: 1px solid var(--rule); }
.res { border-bottom: 1px solid var(--rule); }
.res__link { display: grid; grid-template-columns: 40px 176px minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 28px 0; color: inherit; text-decoration: none; }
.res__num { align-self: start; padding-top: 2px; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--gold); }
.res__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper-alt); }
.res__thumb img { width: 100%; height: 100%; object-fit: cover; }
.res__mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--navy-deep); }
.res__title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color var(--t); }
.res__link:hover .res__title { text-decoration-color: var(--navy); }
.res__desc { max-width: 62ch; margin-top: 6px; font-size: 16.5px; line-height: 1.6; color: var(--navy); }
.res__meta { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--slate); white-space: nowrap; }
.res__meta .ic { color: var(--navy); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--slate); }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 40px; font-size: 16.5px; color: var(--navy); }
.suggest .ic { color: var(--gold); }

/* ---------- Support ---------- */
.featured { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 760px; margin: 56px auto 0; padding: 56px 64px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); text-align: center; }
.featured .logo-slot { width: 220px; height: 88px; }
.featured__name { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.2; color: var(--ink); }
.featured__note { max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--navy); }
.featured__logo { display: block; width: 360px; max-width: 100%; height: auto; margin-bottom: 8px; }
.featured__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 6px; }
.sponsor-grid { display: grid; gap: 24px; margin-top: 56px; }
.sponsor-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsor-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sponsor-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 176px; padding: 32px 24px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); text-align: center; }
.sponsor .logo-slot { width: 152px; height: 60px; }
.sponsor__name { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--ink); }
.sponsor__caption { font-size: 14px; color: var(--slate); }
.sponsor__logo { display: block; width: 84%; max-width: 280px; height: auto; }
.donate-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; align-items: end; }
.donate-head .h2 { grid-column: 1 / span 5; }
.donate-head .lead { grid-column: 7 / span 6; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
.donate-grid--card { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dcard { display: flex; flex-direction: column; padding: 48px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); }
.dcard__method { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.3; color: var(--navy); }
.dcard__method .ic { color: var(--gold); width: 22px; height: 22px; }
.dcard__label { margin-top: 28px; font-size: 15px; color: var(--slate); }
.dcard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.dcard__email { font-family: var(--serif); font-size: 32px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
/* The e-Transfer address stays masked until a visitor asks for it, then unblurs into place */
.dcard__email--masked { color: var(--slate); }
.dcard__dots { letter-spacing: 0.08em; }
.dcard__email--in { animation: csmsa-unseal 420ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes csmsa-unseal { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.dcard__hint { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.dsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--rule); }
.dstep { display: flex; flex-direction: column; gap: 8px; }
.dstep__num { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--gold); }
.dstep__text { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.dcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.dcard__note { max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--navy); }
.dcard__receipt { font-size: 14px; line-height: 1.6; color: var(--slate); }
.dcard--card { gap: 16px; background: var(--paper); }
.dcard--card .h3 { margin-top: 12px; }
.dcard--card .btn { align-self: flex-start; margin-top: 8px; }
.dcard--card .caption { margin-top: auto; padding-top: 16px; }
.donate-grid--card .dsteps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.donate-grid--card .dstep { flex-direction: row; align-items: baseline; gap: 16px; padding: 12px 0; }
.orgs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; padding: 48px 0; border-top: 1px solid var(--rule); }
.orgs__text { font-size: 17px; color: var(--navy); }
.orgs-sec { padding-bottom: 72px; }

/* ---------- Forms ---------- */
.sheet { width: 100%; max-width: 720px; overflow: hidden; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--float); color: var(--ink); font-family: var(--sans); }
.sheet--full { max-width: none; min-height: 100vh; border-radius: 0; box-shadow: none; }
.sheet--flat { box-shadow: none; border: 1px solid var(--rule); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 40px 48px 28px; border-bottom: 1px solid var(--rule); }
.sheet__title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--ink); }
.sheet__sub { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--navy); }
.form { display: flex; flex-direction: column; gap: 40px; padding: 32px 48px 44px; }
.form__note { font-size: 14.5px; color: var(--slate); }
.fset__legend { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 18px; font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 400; line-height: 1.3; color: var(--navy); }
.fset__legend::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--slate); }
.field__hint { margin-top: -2px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder, .textarea::placeholder { color: #6E7F93; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy); }
.input:focus, .select:focus, .textarea:focus, .input.is-focus, .textarea.is-focus, .select.is-focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46, 75, 112, 0.2); }
.textarea { min-height: 120px; resize: vertical; }
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap .ic { position: absolute; right: 14px; top: 50%; margin-top: -10px; color: var(--navy); pointer-events: none; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--error); }
.field__error .ic { width: 18px; height: 18px; margin-top: 1px; }
.field__count { align-self: flex-end; font-size: 13.5px; color: var(--slate); }
.errsum { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--error); border-radius: var(--r-md); background: var(--error-tint); color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.errsum .ic { color: var(--error); margin-top: 1px; }
.errsum__title { font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--field); border-radius: var(--r-md); background: var(--card); font-size: 15.5px; line-height: 1.35; color: var(--ink); cursor: pointer; transition: border-color var(--t), background-color var(--t); }
.choice:hover { border-color: var(--navy); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot { position: relative; flex: none; width: 20px; height: 20px; border: 1px solid var(--field); border-radius: 50%; background: var(--card); }
.choice.is-checked { border-color: var(--navy-deep); background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy-deep); }
.choice.is-checked .choice__dot { border-color: var(--navy-deep); }
.choice.is-checked .choice__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--navy-deep); }
.choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15.5px; cursor: pointer; }
.check__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1px solid var(--field); border-radius: 4px; background: var(--card); color: #fff; }
.check.is-checked .check__box { border-color: var(--navy-deep); background: var(--navy-deep); }
.check__box .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.reveal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; padding: 24px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); }
.reveal__intro { grid-column: 1 / -1; font-size: 15px; color: var(--navy); }
.upload { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border: 1px dashed var(--field); border-radius: var(--r-md); background: var(--paper); text-align: center; font-size: 15px; color: var(--navy); }
.upload .ic { color: var(--gold); width: 24px; height: 24px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 28px; border-top: 1px solid var(--rule); }
.success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 56px 64px; text-align: center; }
.success__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--gold-pale); color: var(--navy-deep); }
.success__icon .ic { width: 30px; height: 30px; stroke-width: 2; }
.success .text { max-width: 44ch; }
.success__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 16px; }
/* ---------- Application form: choices, positions and position questions ---------- */
.paths-set:focus, .mode-note:focus { outline: none; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.path-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 50px 18px 20px; border: 1px solid var(--field); border-radius: var(--r-md); background: var(--card); cursor: pointer; transition: border-color var(--t), background-color var(--t), box-shadow var(--t); }
.path-opt:hover { border-color: var(--navy); }
.path-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.path-opt__box { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--field); border-radius: 4px; background: var(--card); color: #fff; }
.path-opt__box .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.path-opt__title { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--ink); }
.path-opt__text { font-size: 14px; line-height: 1.5; color: var(--slate); }
.path-opt.is-checked { border-color: var(--navy-deep); background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy-deep); }
.path-opt.is-checked .path-opt__box { border-color: var(--navy-deep); background: var(--navy-deep); }
.path-opt:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.path-switch { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--navy); }
.linkbtn { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--navy-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(27, 56, 87, 0.4); cursor: pointer; transition: text-decoration-color var(--t); }
.linkbtn:hover { text-decoration-color: currentColor; }
.mode-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); font-size: 15px; line-height: 1.55; color: var(--navy); }
.mode-note strong { font-weight: 600; color: var(--ink); }
.fset__intro { margin: -4px 0 20px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 6px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check:has(input:focus-visible) .check__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.roleq { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 24px 24px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); }
.roleq__label { font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.3; color: var(--navy); }
.rank { display: grid; gap: 10px; margin-top: 4px; }
.rank__row { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 12px; }
.rank__n { font-family: var(--serif); font-size: 24px; line-height: 1; text-align: center; color: var(--gold-ink); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field__count.is-over { color: var(--error); }
label.upload { cursor: pointer; transition: border-color var(--t); }
label.upload:hover { border-color: var(--navy); }
label.upload:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; overflow: auto; background: var(--scrim); animation: csmsa-fade 200ms ease-out; font-family: var(--sans); color: var(--ink); }
.overlay__inner { display: flex; justify-content: center; align-items: flex-start; min-height: 100%; padding: 64px 24px; }
.overlay__inner--center { align-items: center; padding: 56px 24px; }
@keyframes csmsa-fade { from { opacity: 0; } to { opacity: 1; } }
/* Recaps play in one 9:16 frame (the clips are 720 × 1280): the same size for every
   clinic, never cropped, and never taller than the screen, so the whole video and its
   controls stay in view. --clip-h is the frame's height; a story longer than the
   video scrolls beside it instead of stretching the frame. */
.cmodal { --clip-h: min(720px, calc(100vh - 112px), calc((100vw - 48px) * 0.8)); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; max-width: 1080px; overflow: hidden; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--float); }
.cmodal__media { position: relative; display: flex; align-items: center; justify-content: center; width: calc(var(--clip-h) * 9 / 16); height: var(--clip-h); background: var(--ink); }
.cmodal__video, .cmodal__img { display: block; width: calc(var(--clip-h) * 9 / 16); max-width: 100%; height: var(--clip-h); object-fit: contain; background: var(--ink); }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 0; border-radius: 50%; background: rgba(252, 248, 244, 0.95); color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px rgba(15, 36, 58, 0.28); transition: background-color var(--t); }
.play:hover { background: #fff; }
.play .ic { width: 26px; height: 26px; margin-left: 4px; }
.cmodal__body { display: flex; flex-direction: column; max-height: var(--clip-h); overflow-y: auto; overscroll-behavior: contain; padding: 56px 56px 48px; }
.cmodal__body:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.cmodal__title { margin-top: 16px; font-size: 34px; line-height: 1.2; padding-right: 32px; }
.cmodal__close { position: absolute; top: 20px; right: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--serif); font-size: 15.5px; font-style: italic; color: var(--slate); }
.facts dd { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.story { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; font-size: 16.5px; line-height: 1.7; color: var(--navy); }
.cmodal .partner { margin-top: 32px; padding-top: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1120px) {
  .wrap { padding: 0 40px; }
  .nav__list { gap: 22px; }
  .about__statement { font-size: 28px; }
  .tiles--4, .sponsor-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exec-grid { --cols: 3; }
  .people { --cols: 2; }
  .pa--xl { font-size: 80px; }
  .route__name { font-size: 19px; }
}
@media (max-width: 980px) {
  .nav__list, .hdr__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .track__head, .track__card, .faq-sec__head, .faq { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 24px; }
  .display { font-size: 40px; line-height: 1.12; }
  .h1 { font-size: 38px; line-height: 1.14; }
  .h2 { font-size: 31px; line-height: 1.2; }
  .h3 { font-size: 23px; }
  .lead { font-size: 18px; }
  .text { font-size: 16px; }
  .eyebrow { font-size: 19px; }
  .pa--xl { font-size: 72px; }
  .pa--lg { font-size: 54px; }
  .pa--md { font-size: 46px; }
  .pa--sm { font-size: 32px; }

  .hdr__bar { height: 72px; gap: 16px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__full { display: none; }
  .brand__short { font-size: 20px; }

  .ftr { padding: 64px 0 32px; }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .ftr__brand, .ftr__col.ftr__col--wide { grid-column: 1 / -1; }
  .ftr__col { grid-column: span 1; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; margin-top: 48px; }

  .section { padding: 72px 0; }
  .pagehead { padding: 56px 0 56px; }
  .pagehead__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pagehead__main { grid-column: 1 / -1; }
  .pagehead__pa { grid-column: 1 / -1; order: -1; padding: 0; border-left: 0; }
  .pagehead__title { margin-top: 16px; }
  .pagehead .lead { margin-top: 20px; }
  .pagehead__ctas, .hero__ctas, .band__ctas, .close-cta__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .pagehead__ctas { margin-top: 32px; }

  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero__main, .hero__fig { grid-column: 1 / -1; }
  .hero__fig .fig__img { aspect-ratio: 4 / 3; }
  .hero__title { margin-top: 16px; }
  .hero__sub { margin-top: 24px; }
  .hero__ctas { margin-top: 32px; }

  .about-sec { padding-bottom: 72px; }
  .about { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-top: 56px; }
  .about__label, .about__statement, .pillars { grid-column: 1 / -1; }
  .about__label { padding-top: 0; }
  .about__statement { font-size: 24px; }
  .pillars { grid-template-columns: minmax(0, 1fr); margin-top: 12px; border-top: 0; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .pillar + .pillar { margin-top: 40px; }
  .pillar__title { margin-top: 18px; font-size: 24px; }
  .pillar__text { font-size: 16px; }

  .band { padding: 72px 0; }
  .band__head { gap: 32px; }
  .band__route { margin-top: 48px; }

  .route, .route--10 { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .route::before { display: none; }
  .route__stop, .route--steps .route__stop { align-items: flex-start; padding-left: 40px; text-align: left; }
  .route__dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .route__stop:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: -30px; width: 1px; background: var(--gold); }
  .on-dark .route__stop:not(:last-child)::after { background: var(--gold-light); }
  .route--10 { row-gap: 18px; }
  .route--10 .route__stop { flex-direction: row; align-items: baseline; gap: 10px; }
  .route--10 .route__stop:not(:last-child)::after { bottom: -20px; }
  .route__title { font-size: 23px; }
  .route__text { font-size: 16px; }
  .route__name { font-size: 20px; }
  .regions { display: none; }

  .health { padding: 72px 0; }
  .health__head { grid-template-columns: minmax(0, 1fr); }
  .health__titles, .health__intro { grid-column: 1 / -1; }
  .tiles { gap: 40px; margin-top: 40px; }
  .tiles--2 { grid-template-columns: minmax(0, 1fr); }
  .tiles--3, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .tiles--3 .tile__title, .tiles--4 .tile__title { font-size: 20px; }
  .tiles--3 .tile__meta, .tiles--4 .tile__meta { font-size: 14px; }
  .tiles--3 .tile, .tiles--4 .tile { gap: 14px; }
  .tiles--1 .tile { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .tiles--1 .tile__title { font-size: 28px; }
  .tile__title { font-size: 24px; }
  .partner { margin-top: 44px; }

  .schools { padding: 64px 0 56px; }
  .schools__line { font-size: 22px; text-align: left; }
  .schools__route { margin-top: 36px; }
  .thanks { flex-direction: column; align-items: flex-start; padding: 40px 0 48px; }
  .thanks__main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .thanks__text { font-size: 21px; }

  .join { padding: 80px 0; }
  .join__title { margin-top: 28px; }
  .join__cta .btn { width: 100%; }
  .join__links { flex-direction: column; gap: 18px; }

  .track { grid-template-columns: minmax(0, 1fr); }
  .track__card { padding: 28px 24px; }
  .path { flex-direction: column; align-items: flex-start; gap: 14px; }
  .path__name { font-size: 26px; }
  .path__line { flex: none; width: 1px; height: 48px; min-width: 0; margin: 10px 0 10px 8px; }
  .path__line::before { left: -8px; top: -8px; }
  .path__line::after { left: -8px; right: auto; top: auto; bottom: -8px; }
  .how-sec { padding-bottom: 72px; }
  .how-sec__inner { padding-top: 56px; }
  .how-route { margin-top: 40px; }
  .faq-sec { grid-template-columns: minmax(0, 1fr); }
  .faq__btn { padding: 22px 0; font-size: 20px; }
  .faq__icon { width: 32px; height: 32px; }
  .faq__a { padding: 0 0 24px; font-size: 16px; }
  .close-cta { padding: 72px 0 80px; }

  .team-sec { padding: 0 0 72px; }
  .group { margin-top: 64px; }
  .group__title { font-size: 26px; }
  .exec-grid { --cols: 2; --gap-x: 16px; gap: 32px var(--gap-x); margin-top: 28px; }
  .exec-card { gap: 14px; }
  .exec-card__name { font-size: 19px; }
  .exec-card__role { font-size: 14px; }
  .exec-card .mono { font-size: 46px; }
  .exec-card .mono::after { inset: 8px; }
  .people { --cols: 1; --gap-x: 20px; gap: 20px; margin-top: 28px; }
  .person { gap: 16px; }
  .person__photo { width: 60px; height: 60px; }
  .person .mono { font-size: 20px; }
  .cta-band { padding: 72px 0; }
  .cta-band__inner .btn { width: 100%; }

  .res-sec { padding-bottom: 72px; }
  .res__link { grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 12px 18px; padding: 22px 0; }
  .res__num { display: none; }
  .res__meta { grid-column: 2; flex-wrap: wrap; row-gap: 6px; white-space: normal; }
  .res__meta .tag { order: 2; }
  .res__title { font-size: 19px; }
  .res__desc { margin-top: 4px; font-size: 15px; line-height: 1.55; }
  .res__mono { font-size: 34px; }

  .featured { margin-top: 40px; padding: 40px 24px; }
  .featured .logo-slot { width: 180px; height: 72px; }
  .featured__logo { width: 250px; }
  .featured__links { flex-direction: column; align-items: center; gap: 14px; }
  .featured__name { font-size: 29px; }
  .featured__note { font-size: 16px; }
  .sponsor-grid { gap: 16px; margin-top: 40px; }
  .sponsor-grid--2, .sponsor-grid--3, .sponsor-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor { min-height: 136px; padding: 24px 12px; }
  .sponsor .logo-slot { width: 112px; height: 48px; }
  .sponsor__name { font-size: 19px; }
  .donate-head { grid-template-columns: minmax(0, 1fr); }
  .donate-head .h2, .donate-head .lead { grid-column: 1 / -1; }
  .donate-grid { margin-top: 32px; }
  .donate-grid--card { grid-template-columns: minmax(0, 1fr); }
  .dcard { padding: 28px 24px; }
  .dcard__email { font-size: 24px; }
  .dcard__row .btn { width: 100%; }
  .dsteps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; padding-top: 12px; }
  .dstep { flex-direction: row; align-items: baseline; gap: 16px; padding: 12px 0; }
  .dstep__num { font-size: 24px; }
  .dcard__foot { flex-direction: column; }
  .orgs { padding: 40px 0; }

  .sheet__head { padding: 20px 24px 20px; }
  .sheet__title { font-size: 27px; }
  .form { gap: 36px; padding: 24px 24px 40px; }
  .fgrid, .reveal { grid-template-columns: minmax(0, 1fr); }
  .reveal { padding: 20px 16px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
  .success { padding: 56px 24px 48px; }

  .overlay__inner, .overlay__inner--center { padding: 0; }
  /* Full screen on phones: the frame spans the width, or the screen height less room
     for the title to show below it, whichever is smaller. */
  .cmodal { --clip-h: min(calc(100vw * 16 / 9), calc(100vh - 112px)); grid-template-columns: minmax(0, 1fr); border-radius: 0; box-shadow: none; }
  .cmodal__media { width: 100%; }
  .cmodal__body { max-height: none; overflow: visible; padding: 32px 24px 40px; }
  .cmodal__title { padding-right: 0; font-size: 26px; }
  .cmodal__close { top: 16px; right: 16px; }
  .facts { flex-direction: column; gap: 14px; }
}

/* ---------- Home page scroll reveals ----------
   Subtle and tied to the scroll: blocks fade up 16px as they enter the window, items in a row
   follow one another, and the gold route lines draw in from the left. Pure CSS, scoped to the home
   page (.site--home). Browsers without scroll timelines, the static canvas view and anyone who
   prefers reduced motion simply see the finished page. */
@keyframes csmsa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes csmsa-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .site--home .about__statement,
    .site--home .pillar,
    .site--home .band__head,
    .site--home .band__route .route__stop,
    .site--home .health__head,
    .site--home .tile-li,
    .site--home .schools__line,
    .site--home .schools__route,
    .site--home .regions,
    .site--home .join .wrap {
      animation: csmsa-rise cubic-bezier(0.2, 0.6, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 220px;
    }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  @supports (animation-timeline: view()) {
    .site--home .pillar:nth-child(2), .site--home .band__route .route__stop:nth-child(2), .site--home .tiles--2 .tile-li:nth-child(2) { animation-range: entry 40px entry 260px; }
    .site--home .pillar:nth-child(3), .site--home .band__route .route__stop:nth-child(3) { animation-range: entry 80px entry 300px; }
    .site--home .band__route::before, .site--home .schools__route::before {
      transform-origin: left center;
      animation: csmsa-draw cubic-bezier(0.2, 0.6, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 360px;
    }
  }
}

@media (max-width: 760px) {
  .paths { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .path-opt { padding: 16px 16px 18px 52px; }
  .path-opt__box { top: 19px; left: 18px; }
  .path-opt__title { font-size: 19px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .choices--2, .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roleq { padding: 18px 16px 20px; }
}

/* ==========================================================================
   Site additions (not drawn on the design canvas)
   ========================================================================== */

/* ---------- Page shell ---------- */
[hidden] { display: none !important; }
.page { display: none; }
.page.active { display: block; }
body.has-overlay { overflow: hidden; }
@media (min-width: 981px) { .mnav { display: none !important; } }
.mnav { min-height: calc(100vh - 84px); }

/* Checked states follow the real inputs, so they need no script */
.choice:has(input:checked), .path-opt:has(input:checked) { border-color: var(--navy-deep); background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy-deep); }
.choice:has(input:checked) .choice__dot { border-color: var(--navy-deep); }
.choice:has(input:checked) .choice__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--navy-deep); }
.check:has(input:checked) .check__box, .path-opt:has(input:checked) .path-opt__box { border-color: var(--navy-deep); background: var(--navy-deep); }
.choices--list { grid-template-columns: minmax(0, 1fr); }

/* Photos sit over their monogram, so a photo that fails to load reveals the initials */
.exec-card__photo img, .person__photo img, .res__thumb img, .tile__media img { position: relative; z-index: 1; }
.pagehead--tight { padding-bottom: 64px; }

/* ---------- Application form and clinic overlays ---------- */
.sheet:focus, .cmodal:focus, .success:focus, .errsum:focus { outline: none; }
.form__foot .btn[disabled] { opacity: 0.6; }
.upload.is-drag { border-color: var(--navy); background: var(--card); }
.cmodal--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.cmodal--text .cmodal__body { max-height: none; overflow: visible; }
/* Tablets: ten school names don't fit on one line here, so the route runs down two
   centred columns, west to east, drawn like the phone layout. --rows is set by app.js. */
@media (min-width: 761px) and (max-width: 980px) {
  .schools__route { grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; justify-content: center; column-gap: 112px; row-gap: 18px; }
  .schools__route::before { display: none; }
  .schools__route .route__stop { flex-direction: row; align-items: baseline; gap: 10px; padding-left: 40px; text-align: left; }
  .schools__route .route__dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .schools__route .route__stop:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: -20px; width: 1px; background: var(--gold); }
  .schools__route .route__stop--turn::after { display: none; }
  .regions { display: none; }
}
/* Portrait tablets have the height but not the width for side by side: the recap
   sits above the story, leaving room for the title to show below it. */
@media (min-width: 761px) and (orientation: portrait) {
  .cmodal { --clip-h: min(720px, calc(100vh - 224px)); grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .cmodal__media { width: 100%; }
  .cmodal__body { max-height: none; overflow: visible; }
}
/* Phones: size the recap to the screen with the browser's toolbars showing. */
@supports (height: 100svh) {
  @media (max-width: 760px) {
    .cmodal { --clip-h: min(calc(100vw * 16 / 9), calc(100svh - 112px)); }
  }
}
.cmodal__nav { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.cmodal__nav .icon-btn { border-color: transparent; background: rgba(252, 248, 244, 0.95); }
.cmodal__count { padding: 4px 10px; border-radius: 99px; background: rgba(15, 36, 58, 0.7); font-size: 13.5px; color: #fff; }
.cmodal__body .story:first-child { margin-top: 0; }

/* ---------- Form pages (csmsa.ca/f/<link>), built in the admin dashboard ---------- */
.fpage { padding: 72px 24px 112px; }
.fpage .sheet { margin: 0 auto; }
.form__intro { display: flex; flex-direction: column; gap: 12px; font-size: 16.5px; line-height: 1.6; color: var(--navy); }
.form__intro + .form__note { margin-top: -16px; }
.fpage__state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 48px 64px; text-align: center; }
.fpage__state .text { max-width: 44ch; }
.fpage__state .btn { margin-top: 12px; }
.fpage .field__hint { white-space: pre-line; }
.fset__help { margin: -6px 0 18px; }

/* ---------- Physicians (hidden until physicians.enabled in content.js) ---------- */
.phys-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.phys { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; align-items: start; }
.phys .exec-card__name { margin-top: 2px; }
.phys .mono { font-size: 56px; }
.phys__bio { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--navy); }

/* ---------- Blog ----------
   An editorial list: the kicker and details in a narrow left column, the
   post on the right. Each post opens at /blog/<slug> as an article. */
.blog-sec { padding-bottom: 112px; }
.posts { border-top: 1px solid var(--rule); }
.post { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 12px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.post__meta { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.post__cat { margin-bottom: 6px; font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.3; color: var(--gold-ink); }
.post__main { grid-column: 4 / span 8; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.post__fig { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--rule); }
.post__fig img { width: 100%; height: 100%; object-fit: cover; }
.post__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.post__title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--t); }
.post__title a:hover { text-decoration-color: var(--navy); }
.post__excerpt { max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--navy); text-wrap: pretty; }
.post__read { margin-top: 4px; }
.article { padding: 72px 0 120px; }
.article__top { margin-bottom: 40px; }
.article__head { max-width: 820px; }
.article__title { margin-top: 20px; }
.article__meta { margin-top: 20px; font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.5; color: var(--slate); }
.article__fig { max-width: 960px; margin-top: 48px; }
.article__fig .fig__img { aspect-ratio: 16 / 9; }
.article__body { display: flex; flex-direction: column; gap: 20px; max-width: 68ch; margin-top: 48px; font-size: 18px; line-height: 1.75; color: var(--navy); text-wrap: pretty; }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--rule); }
.article__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
/* The admin's preview of a post */
.post--preview { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 0; border: 0; }
.post--preview .post__meta, .post--preview .post__main { grid-column: 1 / -1; }
.post--preview .post__meta { padding-top: 0; }
.post--preview .post__title { font-size: 24px; }
.post--preview .post__excerpt { font-size: 15.5px; }

@media (max-width: 980px) {
  .phys-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mnav { min-height: calc(100vh - 72px); }
  .overlay .sheet { max-width: none; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: none; }
  .fpage { padding: 0 0 72px; }
  .fpage .sheet { border-width: 0 0 1px; border-radius: 0; }
  .fpage__state { padding: 56px 24px 48px; }
  .phys { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
  .phys .exec-card__photo .mono { font-size: 34px; }
  .blog-sec { padding-bottom: 72px; }
  .post { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  .post__meta, .post__main { grid-column: 1 / -1; }
  .post__meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 0; }
  .post__cat { width: 100%; margin-bottom: 0; }
  .post__title { font-size: 25px; }
  .post__excerpt { font-size: 16px; }
  .article { padding: 40px 0 80px; }
  .article__top { margin-bottom: 28px; }
  .article__fig { margin-top: 32px; }
  .article__body { margin-top: 32px; font-size: 17px; }
  .article__foot { flex-direction: column; margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
