/* SkillsPassport design system v1 (2026-10). Brand tokens from the SP Brand Bible.
   Layout: one column on phones, the hero answer first; a dashed red "pathway" line ties the steps together; wider screens split hero and step rows. */
:root {
  --red: #ba3434;
  --red-ink: #a12b2b;
  --red-pale: #fdf2f2;
  --charcoal: #1f2329;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --raised: #fbfaf8;
  --fg: #1f2329;
  --muted: #5b5f66;
  --line: #d9d6d2;
  --on-red: #ffffff;
  --band: #1f2329;
  --band-fg: #f7f5f2;
  --band-muted: #b9b9b9;
  --shadow: 0 1px 2px rgba(31,35,41,.06), 0 6px 20px rgba(31,35,41,.06);
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --tap: 48px;
  --gold: #d4af37;
  --gold-ink: #8a6d12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #d24a4a; --red-ink: #ef7a7a; --red-pale: #3a2224;
    --bg: #17191d; --surface: #1f2329; --raised: #262a31; --fg: #f2efea; --muted: #b9b9b9;
    --line: #353a42; --band: #0f1114; --band-fg: #f2efea; --band-muted: #9a9a9a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #d24a4a; --red-ink: #ef7a7a; --red-pale: #3a2224;
  --bg: #17191d; --surface: #1f2329; --raised: #262a31; --fg: #f2efea; --muted: #b9b9b9;
  --line: #353a42; --band: #0f1114; --band-fg: #f2efea; --band-muted: #9a9a9a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--font-body); overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: 48px; }
@media (min-width: 768px) { .section { padding-block: 72px; } }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.stack { display: grid; gap: 16px; }
.eyebrow { font: 700 13px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap); padding: 12px 22px; border-radius: 12px; font: 700 16px/1.2 var(--font-display); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: #a32d2d; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
@media (min-width: 768px) { .btn { width: auto; } }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--tap); }
.brand img { width: 36px; height: 36px; }
.brand span { font: 800 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand b { color: var(--fg); font-weight: 800; }
.brand em { color: var(--red); font-style: normal; }
.desk-nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .desk-nav { display: flex; align-items: center; gap: 4px; }
  .desk-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: 10px; text-decoration: none; font: 600 15px/1 var(--font-body); color: var(--muted); }
  .desk-nav a:hover { color: var(--fg); background: var(--raised); }
  .desk-nav .btn { margin-left: 8px; color: var(--on-red); padding: 10px 18px; }
}
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(15,17,20,.45); display: flex; justify-content: flex-end; }
.sheet-panel { width: min(360px, 88vw); height: 100%; background: var(--surface); padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 20px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-panel a.row-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 17px/1.2 var(--font-display); }
.sheet-label { font: 600 13px/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 16px 8px 4px; }
.sheet-panel .btn { margin-top: 20px; }

/* Hero */
.hero { padding-block: 24px 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 8.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.025em; }
.brush { position: relative; white-space: nowrap; color: var(--red); }
.brush svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; }
.hero-sub { color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price { font: 900 2rem/1 var(--font-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.price-note { color: var(--muted); font-size: 15px; }
.cta-col { display: grid; gap: 12px; }
@media (min-width: 768px) { .cta-col { display: flex; flex-wrap: wrap; gap: 12px; } }
.trust-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.trust-line svg { color: var(--red); }
.hero-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--raised); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.hero-photo figcaption strong { font-family: var(--font-display); }
@media (min-width: 1024px) {
  .hero { padding-block: 56px 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .hero-photo { aspect-ratio: 4 / 5; }
}

/* Path chooser */
.chooser { background: var(--surface); border-block: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
@media (min-width: 768px) { .tabs { grid-template-columns: repeat(4, 1fr); } }
.tab { min-height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--fg); font: 700 15px/1.2 var(--font-display); cursor: pointer; padding: 8px 10px; transition: border-color .2s, background .2s; }
.tab small { display: block; font: 500 13px/1.3 var(--font-body); color: var(--muted); margin-top: 2px; }
.tab[aria-selected="true"] { border-color: var(--red); background: var(--red-pale); }
.panel { margin-top: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
@media (min-width: 768px) { .panel { padding: 28px; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 28px; } }
.panel h3 { font-size: clamp(1.25rem, 3.5vw, 1.6rem); font-weight: 800; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.panel li { display: flex; gap: 10px; align-items: flex-start; }
.panel li svg { color: var(--red); margin-top: 3px; }
.panel .side { display: grid; gap: 10px; }
.panel .tag { justify-self: start; font: 700 13px/1 var(--font-display); background: var(--red-pale); color: var(--red-ink); padding: 8px 12px; border-radius: 999px; }

/* Steps on a pathway line */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 24px; position: relative; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 2px dashed var(--red); opacity: .55; }
.step:last-child::before { display: none; }
.dot { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--red); color: var(--red-ink); display: grid; place-items: center; font: 800 14px/1 var(--font-display); }
.step.review .dot { border-style: dashed; }
.step h3 { font-size: 1.125rem; font-weight: 800; padding-top: 9px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 52ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 44px; right: -20px; top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed var(--red); }
  .step h3 { padding-top: 0; }
}

/* Proof */
.proof { display: grid; gap: 20px; }
@media (min-width: 1024px) { .proof { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.doctor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.doc-head { display: flex; gap: 14px; align-items: center; }
.monogram { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; font: 800 20px/1 var(--font-display); flex: none; }
.doc-head h3 { font-size: 1.125rem; font-weight: 800; }
.doc-head p { color: var(--muted); font-size: 14px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.figure { background: var(--raised); border-radius: 12px; padding: 14px; }
.figure b { display: block; font: 900 1.75rem/1 var(--font-display); color: var(--red-ink); font-variant-numeric: tabular-nums; }
.figure span { font-size: 14px; color: var(--muted); }
.compare { display: grid; gap: 12px; }
.compare-row { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.compare-row h4 { font-size: 1rem; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.compare-row p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.compare-row.yes { border-color: var(--red); background: var(--red-pale); }
.compare-row.yes h4 svg { color: var(--red); }
.compare-row.no h4 svg { color: var(--muted); }

/* Pathways accordion */
.acc { display: grid; gap: 10px; margin-top: 24px; }
details.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
details.item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 18px; cursor: pointer; font: 800 1.0625rem/1.25 var(--font-display); }
details.item summary::-webkit-details-marker { display: none; }
details.item summary small { display: block; font: 500 14px/1.3 var(--font-body); color: var(--muted); margin-top: 2px; }
.chev { transition: transform .2s; color: var(--red); }
details[open] .chev { transform: rotate(180deg); }
.item-body { padding: 0 18px 18px; display: grid; gap: 12px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
@media (min-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: var(--raised); border-radius: 10px; padding: 10px 12px; }
.facts dt { font: 700 13px/1.2 var(--font-display); color: var(--fg); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 4px 0 0; font-size: 15px; }

/* Audience cards */
.aud { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .aud { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.aud a { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; min-height: 120px; transition: border-color .2s, transform .2s; }
.aud a:hover { border-color: var(--red); }
.aud h3 { font-size: 1.125rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.aud h3 svg { color: var(--red); }
.aud p { color: var(--muted); font-size: 15px; }

/* Testimonials */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 24px; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .quotes { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; } }
blockquote { margin: 0; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; align-content: space-between; }
blockquote p { font-size: 1.0625rem; }
blockquote footer { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
blockquote footer b { display: block; color: var(--fg); font-family: var(--font-display); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red-pale); color: var(--red-ink); display: grid; place-items: center; font: 800 15px/1 var(--font-display); flex: none; }
.swipe-hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (min-width: 768px) { .swipe-hint { display: none; } }

/* FAQ */
.faq details.item summary { font-size: 1rem; }
.faq .item-body p { max-width: 65ch; }

/* Closing band */
.band { background: var(--band); color: var(--band-fg); }
.band .lead { color: var(--band-muted); }
.band .eyebrow { color: #ef8a8a; }
.band .btn-ghost { color: var(--band-fg); border-color: #4a5059; }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 28px; border-top: 1px solid #353a42; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-block: 48px 32px; } .footer-brand { grid-column: auto; } }
.footer-brand .brand b { color: var(--band-fg); }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-grid .footer-social a { justify-content: center; width: 44px; border-radius: 50%; background: #2c3139; color: var(--band-fg); }
.footer-grid .footer-social a:hover { background: var(--red); }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--band-muted); font-size: 15px; overflow-wrap: anywhere; }
.footer-contact svg { flex: none; color: #ef8a8a; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 12px calc(96px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #353a42; }
@media (min-width: 1200px) { .footer-bottom { padding-bottom: 24px; } }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sp-scroll-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 24; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--red); color: var(--on-red); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s; }
.sp-scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1200px) { .sp-scroll-top { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }
.footer-grid h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--band-muted); font-size: 15px; }
.footer-grid li a:hover { color: var(--band-fg); }
.tagline { font: 800 1.125rem/1.35 var(--font-display); }
.legal { font-size: 14px; color: var(--band-muted); }
.selectable { user-select: all; }

/* Sticky bottom bar (phones only) */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31,35,41,.08); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s ease; }
.bottom-bar.show { transform: none; }
.bottom-bar .price-mini { font: 900 1.25rem/1 var(--font-display); }
.bottom-bar .price-mini small { display: block; font: 500 13px/1.2 var(--font-body); color: var(--muted); margin-top: 2px; }
.bottom-bar .btn { flex: 1; }
@media (min-width: 1200px) { .bottom-bar { display: none; } }


.sheet-panel .menu-btn { display: inline-flex; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--red); color: var(--on-red); padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* Golden Thread */
.thread { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.thread li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; }
.thread li .dot { width: 44px; height: 44px; font-size: 13px; }
.thread h3 { font-size: 1.0625rem; font-weight: 800; }
.thread p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.thread .grade { font: 700 13px/1.2 var(--font-display); color: var(--red-ink); text-transform: uppercase; letter-spacing: .06em; }
.thread li.wotf { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.thread li.wotf .dot { border-color: var(--gold); color: var(--gold-ink); }
.thread li.wotf .grade { color: var(--gold-ink); }
@media (min-width: 1024px) {
  .thread { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .thread li { grid-template-columns: 1fr; padding: 18px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold-ink: #e6c65a; } }
:root[data-theme="dark"] { --gold-ink: #e6c65a; }

/* Prose */
.prose { max-width: 68ch; display: grid; gap: 16px; color: var(--fg); }
.prose p { color: var(--muted); }
.prose strong { color: var(--fg); }
.doc-head h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.doc-head h3 a:hover { color: var(--red-ink); }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--band-fg); }

/* Content pages (stage 2). Converted pages share one vocabulary: .flow sections,
   .auto-grid for any grid, .card, .stat, .media; plain tags are styled inside .flow. */
.flow { display: flex; flex-direction: column; gap: 20px; }
.flow > * { min-width: 0; }
.flow div { min-width: 0; }
.flow h1 { font-size: clamp(2rem, 7.6vw, 3.2rem); font-weight: 900; letter-spacing: -0.025em; }
.flow h1 span { color: var(--red); }
.flow h2 { font-size: clamp(1.5rem, 5.6vw, 2.25rem); font-weight: 800; }
.flow h3 { font-size: 1.1875rem; font-weight: 800; }
.flow h4, .flow h5, .flow h6 { font: 800 1.0625rem/1.3 var(--font-display); margin: 0; }
.flow p, .flow li, .flow td { color: var(--muted); }
.flow strong, .flow b { color: var(--fg); }
.flow div > * + *, .flow li > * + * { margin-top: 10px; }
.flow > div > p { max-width: 70ch; }
.flow ul, .flow ol { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }
.flow ul:has(> li > .icon) { list-style: none; padding-left: 0; }
.flow li:has(> .icon) { display: flex; gap: 10px; align-items: flex-start; }
.flow li > .icon { margin-top: 3px; }
.flow li:has(> .icon) > * + * { margin-top: 0; }
.flow p:has(> .icon:first-child) { display: flex; gap: 10px; align-items: flex-start; }
.flow p > .icon:first-child { margin-top: 4px; }
.flow .icon { width: 20px; height: 20px; flex: none; color: var(--red); }
.flow a:not(.btn) { color: var(--red-ink); text-underline-offset: 3px; }
.flow p a:not(.btn), .flow li a:not(.btn), .flow td a:not(.btn) { padding-block: 10px; margin-block: -10px; }
.flow > div:has(> .btn), .flow div:has(> .btn + .btn) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.flow div:has(> .btn + .btn) > * + * { margin-top: 0; }
@media (max-width: 599px) { .flow div:has(> .btn + .btn) > .btn { flex: 1 1 100%; } }
.page-hero { padding-block: 32px 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-hero { padding-block: 64px; } }
.section.alt { background: var(--raised); border-block: 1px solid var(--line); }
.auto-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding-left: 0 !important; }
.auto-grid > * + * { margin-top: 0 !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: block; text-decoration: none; }
a.card { color: var(--fg) !important; min-height: var(--tap); }
a.card:hover { border-color: var(--red); }
.card .card { box-shadow: none; background: var(--raised); }
.stat { font: 900 clamp(2rem, 9vw, 3rem)/1 var(--font-display); color: var(--red); letter-spacing: -0.02em; }
.media, .flow img { border-radius: 14px; width: 100%; max-height: 520px; object-fit: cover; }
.flow img[src*="Logo"] { width: auto; max-height: 64px; border-radius: 0; }
.flow .art { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font: 700 14px/1.3 var(--font-display); color: var(--fg); background: var(--raised); }
.flow blockquote { margin: 0; padding: 16px 20px; border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 14px 14px 0; }
.flow details.item + details.item { margin-top: 10px; }
.flow details.item summary h2, .flow details.item summary h3, .flow details.item summary h4 { font-size: 1.0625rem; }

/* Forms: 16px text so iOS does not zoom, full-width fields, 48px controls. */
form { display: grid; gap: 16px; }
label { font: 600 15px/1.4 var(--font-body); color: var(--fg); display: block; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: var(--tap); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--red); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--red); }
button { font: inherit; }
/* Tap targets on content pages. */
.flow p a:not(.btn), .flow li a:not(.btn):not(.card), .flow td a:not(.btn) { padding-block: 12px; margin-block: -12px; }
.flow div > a:not(.btn):not(.card), .flow > a:not(.btn):not(.card), .flow nav a { display: inline-flex; align-items: center; min-height: 44px; }
.auto-grid > a:not(.btn):not(.card) { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--fg) !important; text-decoration: none; }
.auto-grid > a:not(.btn):not(.card):hover { border-color: var(--red); }
a.card > * + * { margin-top: 8px; }
.flow .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (min-width: 600px) { .flow .btn { width: auto; } }
.flow details:not(.item) { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.flow details:not(.item) > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; cursor: pointer; font: 700 1rem/1.3 var(--font-display); color: var(--fg); }
.flow details:not(.item) > summary::-webkit-details-marker { display: none; }
.flow details:not(.item) > :not(summary) { padding: 0 18px 18px; margin-top: 0; }
.flow details[open] > summary .icon { transform: rotate(180deg); }
.flow details + details { margin-top: 10px; }
/* Hero on content pages: text first on phones, text and image side by side from 900px. */
.hero-split { display: grid; gap: 24px; align-items: center; }
.hero-split > * + * { margin-top: 0 !important; }
/* Some converted pages nest the split inside a split wrapper; let the inner one span the row. */
.hero-split > .hero-split { grid-column: 1 / -1; }
.hero-text { order: -1; display: flex; flex-direction: column; gap: 16px; }
.hero-text > * + * { margin-top: 0 !important; }
.hero-media { position: relative; display: grid; gap: 12px; }
.hero-media img { max-height: 420px; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .hero-split { grid-template-columns: 1.1fr .9fr; gap: 48px; } .hero-media img { max-height: 520px; } }
.step-num { font: 900 14px/1 var(--font-display); color: var(--on-red); background: var(--red); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > * { margin: 0 !important; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 14px/1.3 var(--font-body); color: var(--fg); }
.flow div:has(> img + img) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flow div:has(> img + img) > * { margin: 0 !important; }
.flow div:has(> img + img) > img { aspect-ratio: 1; max-height: none; }
.flow li:has(> .icon)::marker { content: none; }
/* Homepage: the 10 career areas swipe sideways on phones and sit in a grid on wider screens. */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.rail > * { scroll-snap-align: start; margin: 0 !important; }
.rail img { aspect-ratio: 4 / 5; max-height: none; }
@media (min-width: 900px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.grade-card h3 { color: var(--red); }
.wotf-note { border-left: 4px solid var(--gold); background: var(--surface); padding: 14px 18px; border-radius: 0 14px 14px 0; }
.wotf-note strong { color: var(--gold-ink); }
@media (min-width: 900px) { .flow div:has(> img + img) { max-width: 560px; } }
.flow section > a:not(.btn):not(.card), .flow article > a:not(.btn):not(.card) { display: inline-flex; align-items: center; min-height: 44px; }
.flow nav ol, .flow nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 15px; }
.flow nav li { display: flex; align-items: center; gap: 6px; }
.flow nav li > * + * { margin-top: 0; }

/* Articles (blog, career guidance, tertiary guides): one readable column, sidebar beside it from 1100px. */
.article-head { padding-block: 24px 8px; background: var(--surface); }
@media (min-width: 768px) { .article-head { padding-block: 48px 16px; } }
.article-wrap { max-width: 820px; }
.article-head h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
.article-head header p, .article-head > .wrap > p { font-size: 1.125rem; }
.article-lead img { aspect-ratio: 16 / 9; max-height: 460px; border-radius: var(--radius); }
.article-body { padding-top: 24px; background: var(--surface); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 820px; }
@media (min-width: 1100px) { .article-grid { max-width: 1140px; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } }
.article-main { font-size: 17px; line-height: 1.72; }
.article-main p, .article-main li { color: var(--fg); }
.article-main h2 { margin-top: 20px; }
.article-main h3 { margin-top: 8px; }
.article-aside { gap: 16px; }
@media (min-width: 1100px) { .article-aside { position: sticky; top: 88px; } }
.article-aside > * { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.article-aside > * + * { margin-top: 0; }
.article-after { max-width: 820px; margin-top: 40px; }
@media (min-width: 1100px) { .article-after { max-width: 1140px; } }
.flow div:has(> button[data-filter]) { display: flex; flex-wrap: wrap; gap: 8px; }
.flow div:has(> button[data-filter]) > * { margin: 0 !important; width: auto; }
button[data-filter][aria-pressed="true"] { background: var(--red); color: var(--on-red); border-color: var(--red); }
/* Long compound words in headings ("Representative/Consultant") wrap instead of pushing the page sideways. */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.flow td a:not(.btn) { padding-block: 13px; margin-block: -13px; display: inline-block; }

/* Career pages: source line under the "Career at a Glance" grid */
.glance-src { font-size: 14px; color: var(--muted); }

/* Partners page: carousel filled by the live partner list script on careers.skillspassportsa.co.za */
.partners-carousel { position: relative; padding-inline: 56px; }
.partners-viewport { overflow: hidden; }
#partnersCarousel { display: flex; flex-wrap: nowrap; gap: 16px; transition: transform .5s ease-out; }
#partnersCarousel:empty { min-height: 0; }
.partners-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.partners-nav.prev { left: 0; } .partners-nav.prev .icon { transform: rotate(180deg); }
.partners-nav.next { right: 0; }
#partnersCarousel:empty ~ .partners-nav, .partners-viewport:has(#partnersCarousel:empty) ~ .partners-nav { display: none; }
.partner-card { flex: 0 0 280px; max-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.partner-logo-container { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.partner-logo-container img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-info h3 { font: 800 1.125rem/1.3 var(--font-display); margin: 0 0 8px; color: var(--fg); }
.partner-contact span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.partner-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.partner-tag { font-size: 13px; background: var(--raised); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 599px) { .partners-carousel { padding-inline: 0 0; padding-bottom: 64px; } .partners-nav { top: auto; bottom: 0; transform: none; } .partners-nav.prev { left: calc(50% - 56px); } .partners-nav.next { right: calc(50% - 56px); } }

/* Small round logo for the editorial team card, never stretched full width */
.logo-badge, .card img.logo-badge, .flow img.logo-badge { width: 64px; max-width: 64px; height: 64px; object-fit: contain; border-radius: 50% !important; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line, #e5e7eb); }
