/*
 * Copyright (c) 2026, Ross WD Cameron <ross@wexfordhouse.co.za>
 * Copyright (c) 2026, Wexford House <https://wexfordhouse.co.za/>
 */
:root {
  --ink: #122031; --navy: #172b42; --navy2: #213b58; --paper: #f4f0e7; --white: #fffdfa;
  --gold: #b59558; --gold-light: #d7ba7c; --rust: #a3543f; --muted: #68717a;
  --line: #12203124; --stone: #e8e1d4; --ink-deep: #0e1b2d;
  --shadow: 0 1.5rem 4.375rem #1220311f;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

/* ---- scaling: phone to 50-inch display ----
   Every length is in rem. Above 1600px the root size grows with the viewport, so the page
   keeps the same proportions on a very large screen instead of becoming a small column. */
html { font-size: calc(100% + max(0px, 100vw - 1600px) * 0.00625); }
@media (max-width: 360px) { html { font-size: 93.75%; } }
img, svg, video, table { max-width: 100%; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; margin: 0; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shell { width: min(77.5rem, 100% - 4rem); margin: auto; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--rust); font-size: .72rem; font-weight: 800; }
.section-title { font-family: var(--font-display); letter-spacing: -.035em; margin: 0.75rem 0 0; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.05; }

/* ---- bar and footer ---- */
.portal { flex-direction: column; min-height: 100svh; display: flex; }
.portal-nav { background: var(--navy); color: #fff; }
.portal-nav .shell { align-items: center; gap: 2.125rem; min-height: 4.5rem; padding: 0.875rem 0; display: flex; }
.portal-brand { font-family: var(--font-display); letter-spacing: .06em; white-space: nowrap; font-size: 1rem; text-decoration: none; }
.portal-menu { flex-wrap: wrap; align-items: center; gap: 1.625rem; display: flex; }
.portal-navlink { letter-spacing: .1em; text-transform: uppercase; color: #ffffffc7; white-space: nowrap; border-bottom: 1px solid #0000; padding-bottom: 0.1875rem; font-size: .78rem; font-weight: 700; text-decoration: none; }
.portal-navlink:hover { color: #fff; border-bottom-color: var(--gold-light); }
.portal-navlink-admin { color: var(--gold-light); }
.portal-nav-right { align-items: center; gap: 1.125rem; margin-left: auto; display: flex; }
.portal-who { color: #ffffff9e; white-space: nowrap; font-size: .84rem; }
.portal-signout { letter-spacing: .12em; text-transform: uppercase; color: #ffffffb8; cursor: pointer; white-space: nowrap; background: 0 0; border: 1px solid #ffffff42; padding: 0.5rem 0.75rem; font-family: inherit; font-size: .72rem; font-weight: 800; }
.portal-signout:hover { color: #fff; border-color: var(--gold-light); }
.portal-main { flex: 1; padding: 4.5rem 0 6rem; }
.portal-main-bare { flex: 1; }
.portal-foot { background: var(--ink-deep); color: #ffffff80; padding: 1.625rem 0; font-size: .76rem; }
.portal-foot .shell { justify-content: space-between; gap: 1.25rem; display: flex; }
.portal-foot-mark { letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }

/* ---- hero ---- */
.lead-hero { color: #fff; background: linear-gradient(125deg, #122031fa, #172b42ed), radial-gradient(circle at 80% 15%, #b59558, #0000 35%); background-color: var(--navy); padding: 6.5rem 0 5.25rem; position: relative; overflow: hidden; }
.lead-hero:after { content: ""; pointer-events: none; border: 1px solid #b595584d; border-radius: 50%; width: 68vw; height: 68vw; position: absolute; bottom: -38vw; right: -12vw; box-shadow: 0 0 0 8vw #b595580a, 0 0 0 16vw #b5955806; }
.lead-hero-grid { z-index: 1; grid-template-columns: minmax(0, 1.7fr) minmax(14.375rem, .55fr); align-items: end; gap: clamp(3rem, 6vw, 6.25rem); display: grid; position: relative; }
.lead-hero .eyebrow { color: var(--gold-light); }
.lead-hero h1 { font-family: var(--font-display); letter-spacing: -.046em; text-wrap: balance; max-width: 56.25rem; margin: 1.25rem 0 1.75rem; font-size: clamp(2.9rem, min(5vw, 9vh), 4.8rem); line-height: .96; }
.lead-hero-lead { color: #ffffffc7; max-width: 45rem; margin: 0; font-size: clamp(1.04rem, 1.4vw, 1.3rem); line-height: 1.5; }
.lead-figure { border-top: 1px solid #ffffff59; margin-bottom: 1.375rem; padding-top: 1.25rem; }
.lead-figure:last-child { margin-bottom: 0.25rem; }
.lead-figure strong { font: 2rem/1.1 var(--font-display); color: var(--gold-light); font-weight: 400; display: block; }
.lead-figure span { color: #ffffffad; margin-top: 0.5rem; font-size: .82rem; display: block; }

/* ---- summary grid (five facts in a row) ---- */
.lead-summary { background: var(--paper); padding: 5.625rem 0; }
.lead-summary-head { grid-template-columns: .55fr 1.45fr; align-items: start; gap: 8vw; display: grid; }
.lead-statement { font-family: var(--font-display); margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.45; }
.lead-summary-grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); margin-top: 3.625rem; display: grid; }
.lead-summary-item { border-right: 1px solid var(--line); margin-right: 1.5rem; padding: 1.75rem 1.5rem 1.875rem 0; }
.lead-summary-item:last-child { border-right: 0; margin-right: 0; }
.lead-summary-item span { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 0.75rem; font-size: .66rem; font-weight: 700; display: block; }
.lead-summary-item h3 { font: 1.2rem/1.25 var(--font-display); margin: 0 0 0.625rem; font-weight: 400; }
.lead-summary-item p { color: var(--muted); margin: 0; font-size: .82rem; line-height: 1.55; }
.lead-summary-close { max-width: 53.125rem; margin: 2.25rem 0 0 auto; font-weight: 700; }

/* ---- cards on white, doors on stone ---- */
.lead-portfolio { background: var(--white); padding: 5.625rem 0; }
.lead-portfolio-intro { max-width: 45rem; color: var(--muted); margin: 1.625rem 0 0; }
.lead-companies { grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.25rem; display: grid; }
.lead-company { border: 1px solid var(--line); flex-direction: column; min-height: 14.375rem; padding: 1.75rem; display: flex; }
.lead-company-sector { letter-spacing: .13em; text-transform: uppercase; color: var(--rust); font-size: .68rem; font-weight: 800; }
.lead-company h3 { font: 1.55rem var(--font-display); margin: 0.875rem 0; font-weight: 400; }
.lead-company p { color: var(--muted); margin: 0; font-size: .88rem; }
.lead-company-note { color: var(--navy); margin-top: auto; padding-top: 1.125rem; font-size: .75rem; font-weight: 700; }
.lead-portfolio-more { letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--gold); margin-top: 2.5rem; padding-bottom: 0.375rem; font-size: .72rem; font-weight: 800; text-decoration: none; display: inline-block; }
.lead-portfolio-more:hover { color: var(--rust); }
.lead-deeper { background: var(--stone); padding: 5.625rem 0; }
.lead-doors { background: #12203126; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3.25rem; display: grid; }
.lead-door { background: var(--stone); flex-direction: column; padding: 2.5rem 2.25rem 2.125rem; text-decoration: none; display: flex; }
.lead-door .eyebrow { color: var(--gold); }
.lead-door h3 { font: 1.7rem/1.2 var(--font-display); margin: 0.75rem 0; font-weight: 400; }
.lead-door p { color: #56606a; margin: 0 0 1.625rem; font-size: .92rem; }
.lead-door-cue { letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: auto; font-size: .7rem; font-weight: 800; }
.lead-door:hover { background: #efe9dd; }

/* ---- numbered lists and rows ---- */
.list { border-top: 1px solid var(--line); margin: 3rem 0 0; padding: 0; list-style: none; }
.list-row { border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: baseline; gap: 1.5rem; padding: 1.5rem 0; text-decoration: none; display: grid; }
.list-numbered .list-row { grid-template-columns: 3.875rem 1fr auto; }
.list-row:hover { background: #fffdfab3; }
.list-number { font-family: var(--font-display); color: var(--gold); font-size: 1.15rem; }
.list-body { display: block; }
.list-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; display: block; }
.list-subtitle { letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-top: 0.5rem; font-size: .7rem; font-weight: 800; display: block; }
.list-dek { color: var(--muted); max-width: 38.75rem; margin-top: 0.625rem; font-size: .9rem; display: block; }
.list-meta { white-space: nowrap; color: var(--muted); flex-direction: column; align-items: flex-end; gap: 0.375rem; font-size: .78rem; display: flex; }
.list-minutes { letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-size: .68rem; font-weight: 800; }
.list-empty { color: var(--muted); margin-top: 2.5rem; }
.crosslink { border-left: 2px solid var(--gold); border-top: 1px solid var(--line); max-width: 47.5rem; margin-top: 3.5rem; padding: 1.625rem 0 1.625rem 1.625rem; text-decoration: none; display: block; }
.crosslink strong { font-family: var(--font-display); letter-spacing: -.02em; margin: 0.625rem 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; line-height: 1.15; display: block; }
.crosslink:hover strong { color: var(--rust); }
.crosslink-body { color: var(--muted); font-size: .98rem; display: block; }

/* ---- forms, admin tables, sign-in ---- */
.signin { color: #fff; background: linear-gradient(125deg, #122031fa, #172b42ed), radial-gradient(circle at 82% 12%, #b59558, #0000 36%); background-color: var(--navy); flex-direction: column; justify-content: center; min-height: 100svh; padding: 3rem 0; display: flex; position: relative; overflow: hidden; }
.signin:after { content: ""; pointer-events: none; border: 1px solid #b595584d; border-radius: 50%; width: 70vw; height: 70vw; position: absolute; bottom: -38vw; right: -14vw; box-shadow: 0 0 0 8vw #b595580a, 0 0 0 16vw #b5955806; }
.signin-panel { z-index: 1; width: min(32.5rem, 100% - 3rem); margin: 0 auto; position: relative; }
.signin-brand { font-family: var(--font-display); letter-spacing: .06em; border-bottom: 1px solid #ffffff2e; padding-bottom: 1.375rem; font-size: 1.02rem; }
.signin h1 { font-family: var(--font-display); letter-spacing: -.04em; margin: 1.875rem 0 1rem; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; }
.signin-lead { color: #ffffffc2; max-width: 27.5rem; margin: 0 0 2rem; }
.signin-notice { border-left: 2px solid var(--gold-light); color: #ffffffdb; margin: 0 0 1.625rem; padding: 0.625rem 0 0.625rem 1rem; font-size: .92rem; }
.signin-form { border-top: 1px solid #ffffff38; padding-top: 1.625rem; }
.signin-form label { letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.625rem; font-size: .72rem; font-weight: 800; display: block; }
.signin-form input { color: #fff; background: #ffffff12; border: 1px solid #ffffff42; border-radius: 0; width: 100%; padding: 0.875rem 1rem; font-family: inherit; font-size: 1rem; }
.signin-form input::placeholder { color: #fff6; }
.signin-form input:focus { border-color: var(--gold-light); background: #ffffff1a; outline: none; }
.signin-form button { letter-spacing: .14em; text-transform: uppercase; width: 100%; color: var(--ink); background: var(--gold-light); cursor: pointer; border: 0; border-radius: 0; margin-top: 1rem; padding: 0.9375rem 1.25rem; font-family: inherit; font-size: .78rem; font-weight: 800; }
.signin-form button:hover:not(:disabled) { background: #fff; }
.signin-form button:disabled { opacity: .55; cursor: default; }
.signin-hint { color: #ffffff8c; margin: 1.125rem 0 0; font-size: .82rem; }
.signin-error { color: #f0c9b8; margin: 1rem 0 0; font-size: .9rem; }
.signin-mark { z-index: 1; letter-spacing: .15em; text-transform: uppercase; width: min(32.5rem, 100% - 3rem); color: var(--gold-light); margin: 3.5rem auto 0; font-size: .72rem; position: relative; }

.admin-lead { color: var(--muted); max-width: 40rem; margin: 1.5rem 0 0; }
.admin-panel { border-top: 1px solid var(--line); margin-top: 3.25rem; padding-top: 1.75rem; }
.admin-panel h2 { font-family: var(--font-display); margin: 0 0 1.375rem; font-size: 1.35rem; font-weight: 400; }
.admin-form-row { grid-template-columns: 1fr 1.3fr auto; align-items: end; gap: 1rem; display: grid; }
.admin-field label, .upload-field label { letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; font-size: .68rem; font-weight: 800; display: block; }
.admin-field input, .meta-form input, .meta-form select, .meta-form textarea, .upload-field textarea { width: 100%; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 0.75rem 0.875rem; font-family: inherit; font-size: 1rem; }
.admin-field input:focus, .meta-form input:focus, .meta-form select:focus, .meta-form textarea:focus { border-color: var(--gold); outline: none; }
.admin-form button, .upload button { letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--navy); cursor: pointer; white-space: nowrap; border: 0; padding: 0.875rem 1.25rem; font-family: inherit; font-size: .74rem; font-weight: 800; }
.admin-form button:hover:not(:disabled), .upload button:hover:not(:disabled) { background: var(--navy2); }
.admin-form button:disabled, .upload button:disabled { opacity: .55; cursor: default; }
.publish-form button { letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--rust); cursor: pointer; border: 0; padding: 0.875rem 1.625rem; font-family: inherit; font-size: .74rem; font-weight: 800; }
.publish-form button:hover { background: #8f4634; }
.admin-hint { color: var(--muted); max-width: 38.75rem; margin: 1rem 0 0; font-size: .84rem; }
.admin-ok, .admin-error { margin: 1rem 0 0; padding-left: 0.875rem; font-size: .9rem; }
.admin-ok { border-left: 2px solid var(--gold); }
.admin-error { border-left: 2px solid var(--rust); color: var(--rust); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.admin-table th { text-align: left; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; padding: 0 1.125rem 0.75rem 0; font-size: .66rem; font-weight: 800; }
.admin-table td { border-bottom: 1px solid var(--line); vertical-align: top; padding: 1rem 1.125rem 1rem 0; }
.admin-tag { letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); vertical-align: 1px; margin-left: 0.5rem; padding: 2px 0.375rem; font-size: .6rem; font-weight: 800; display: inline-block; }
.admin-status { white-space: nowrap; font-size: .78rem; }
.admin-status-active, .admin-status-published { color: var(--ink); }
.admin-status-invited, .admin-status-draft { color: var(--gold); }
.admin-status-suspended { color: var(--rust); }
.admin-status-archived { color: var(--muted); }
.admin-link { color: var(--navy); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; background: 0 0; padding: 0 0 2px; font-family: inherit; font-size: .78rem; }
.admin-link:hover { border-bottom-color: var(--gold); }
.admin-link-danger { color: var(--rust); }

/* ---- responsive (the portal's breakpoints) ---- */
@media (max-width: 1100px) { .portal-nav .shell { gap: 1.5rem; } .portal-menu { gap: 1.125rem; } }
@media (max-width: 1000px) {
  .lead-hero-grid { grid-template-columns: minmax(0, 1fr) 13.75rem; gap: 2.5rem; }
  .lead-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-summary-item { border-bottom: 1px solid var(--line); }
  .lead-companies { grid-template-columns: 1fr 1fr; }
  .lead-doors { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .shell { width: min(100% - 2.5rem, 77.5rem); }
  .portal-nav .shell { flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.75rem 0 0.25rem; }
  .portal-menu { border-top: 1px solid #ffffff24; order: 3; gap: 1.375rem; width: 100%; padding-top: 2px; }
  .portal-navlink { padding: 0.75rem 0 0.625rem; }
  .portal-main { padding: 3.25rem 0 4.5rem; }
  .lead-hero { padding: 4.5rem 0 4rem; }
  .lead-hero-grid, .lead-summary-head { grid-template-columns: 1fr; }
  .lead-hero-grid { gap: 3rem; }
  .lead-summary-head { gap: 1.5rem; }
  .lead-summary, .lead-portfolio, .lead-deeper { padding: 4.25rem 0; }
  .admin-form-row { grid-template-columns: 1fr; align-items: stretch; }
  .list-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .list-numbered .list-row { grid-template-columns: 2.75rem 1fr; }
  .list-meta { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .list-numbered .list-meta { grid-column: 2; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 1.75rem, 73.75rem); }
  .lead-hero h1 { font-size: 2.5rem; }
  .lead-summary-grid, .lead-companies { grid-template-columns: 1fr; }
  .lead-summary-item { border-right: 0; margin-right: 0; }
  .lead-company { min-height: 0; }
  .lead-summary, .lead-portfolio, .lead-deeper { padding: 3.5rem 0; }
  .lead-door { padding: 1.875rem 1.625rem 1.625rem; }
  .portal-foot .shell { display: block; }
  .portal-foot-mark { margin-top: 0.75rem; display: block; }
  .portal-signout { padding: 0.75rem 1rem; }
  .signin h1 { font-size: 2.3rem; }
  .admin-link { padding: 0.8125rem 0; font-size: .86rem; }
  .admin-table-wrap { overflow-x: visible; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { width: 100%; display: block; }
  .admin-table thead { display: none; }
  .admin-table tr { border-bottom: 1px solid var(--line); padding: 1.125rem 0 1rem; }
  .admin-table td { border: 0; padding: 0.1875rem 0; }
  .admin-table td:first-child { font-family: var(--font-display); margin-bottom: 0.375rem; font-size: 1.2rem; line-height: 1.25; }
  .admin-table td[data-label]:not(:first-child):before { content: attr(data-label); min-width: 5.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .66rem; font-weight: 800; display: inline-block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- documentation prose ---- */
.doc { display: grid; gap: 4rem; padding-block: 3rem 4.5rem; grid-template-columns: minmax(0, 1fr) 14.375rem; }
.doc article { min-width: 0; max-width: 48.75rem; }
.doc h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; margin: 2.4em 0 .6em; }
.doc article > h2:first-child { margin-top: 0; }
.doc h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -.02em; margin: 1.9em 0 .5em; }
.doc p, .doc li { max-width: 68ch; }
.doc a { color: var(--navy); text-underline-offset: 0.1875rem; }
.doc a:hover { color: var(--rust); }
.toc { position: sticky; top: 1.5rem; align-self: start; padding-left: 1.25rem; border-left: 1px solid var(--line); font-size: .92rem; }
.toc h4 { margin: 0 0 .5rem; font: 800 .68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: .375rem 0; text-decoration: none; }
.toc li a:hover { color: var(--rust); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--white); }
th, td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--paper); color: var(--muted); font: 800 .66rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--ink); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* ---- callouts: a hairline panel with a coloured left rule ---- */
.callout { margin: 1.75rem 0; padding: 1.1rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--navy); font-size: .96rem; }
.callout > :last-child { margin-bottom: 0; }
.callout strong.t { display: block; margin-bottom: .25rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--navy); }
.callout.gold { border-left-color: var(--gold); }
.callout.gold strong.t { color: var(--rust); }
.callout.warn { border-left-color: var(--rust); }
.callout.warn strong.t { color: var(--rust); }

/* ---- code ---- */
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--stone); border: 1px solid var(--line); padding: .12em .45em; overflow-wrap: anywhere; }
pre { margin: 1.5rem 0; padding: 1.35rem 1.5rem; overflow-x: auto; background: var(--ink-deep); color: #dfe8f2; font: .9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }

/* ---- numbered steps: gold numerals, hairline panels ---- */
.steps { list-style: none; counter-reset: step; margin: 1.75rem 0; padding: 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 1.35rem 1.5rem 1.35rem 5.25rem; background: var(--white); border: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; font: 1.3rem/1 var(--font-display); color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; }

/* ---- accordions ---- */
details { border: 1px solid var(--line); background: var(--white); margin: .75rem 0; }
details summary { cursor: pointer; padding: 1.1rem 3.5rem 1.1rem 1.4rem; font-weight: 700; position: relative; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--gold); }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 1px solid var(--line); }

@media (max-width: 1000px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } .toc { position: static; order: -1; padding: 1.1rem 1.25rem; border: 1px solid var(--line); } }
@media (max-width: 520px) { .steps > li { padding: 1.25rem 1.1rem; } .steps > li::before { position: static; margin-bottom: .75rem; } th, td { padding: .75rem .85rem; } }

/* ---- courseware additions (tokens only) ---- */
.lead-hero.compact { padding: 4.5rem 0 3.75rem; }
.lead-hero.compact h1 { font-size: clamp(2.2rem, min(4.2vw, 8vh), 3.4rem); margin: 1rem 0 1.25rem; }
.lead-hero.compact .lead-hero-grid { align-items: end; }
.portal-navlink[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-light); }
.lead-company-sector.soon { color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pager .crosslink { margin-top: 0; }
.pager .crosslink.next { text-align: right; border-left: 0; border-right: 2px solid var(--gold); padding: 1.625rem 1.625rem 1.625rem 0; margin-left: auto; width: 100%; }
.outcomes { margin: 1.5rem 0; padding-left: 1.2rem; }
.outcomes li { margin: .35rem 0; }
.doc dl { margin: 1.5rem 0; }
.doc dt { font-family: var(--font-display); font-size: 1.15rem; margin-top: 1.1rem; }
.doc dd { margin: .2rem 0 0; color: var(--muted); }
@media (max-width: 850px) { .pager { grid-template-columns: 1fr; gap: 1rem; } .pager .crosslink.next { text-align: left; border-right: 0; border-left: 2px solid var(--gold); padding: 1.625rem 0 1.625rem 1.625rem; } }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold-light); color: var(--ink); padding: 0.625rem 1rem; z-index: 10; font-weight: 800; }
.skip:focus { left: 0; }
.lead-companies.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .lead-companies.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .lead-companies.three { grid-template-columns: 1fr; } }
.lead-company { text-decoration: none; }
