/* CSBFP: institutional and minimal. Logo blue + gold accent, one typeface, thin rules. No animations. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}
:root {
  --navy: #1f4796;
  --navy-dark: #173670;
  --gold: #f4b11b;
  --slate: #cbd3dd;
  --ink: #141a33;
  --body: #3a4152;
  --muted: #677084;
  --line: #dfe3ea;
  --soft: #f4f6f9;
  --accent: var(--navy);
  --accent-hover: var(--navy-dark);
  --ok: #2a8a55;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #ffffff; color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2 { color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; font-weight: 650; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; font-weight: 600; }
h3 { color: var(--ink); }
p { margin: 0 0 14px; }
.lead { font-size: 1.08rem; color: var(--body); margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 0.92rem; margin-top: 24px; }

/* Header */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 9px; background: var(--slate); color: var(--navy);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
}
.brand-mark.small { width: 30px; height: 30px; border-radius: 6px; font-size: 0.9rem; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
/* Letter spacing is measured so both tagline lines are exactly as wide as BROKER REGISTRY, as in the logo. */
.brand-tag span { display: block; white-space: nowrap; }
.brand-tag span:nth-child(1) { letter-spacing: 0.2383em; margin-right: -0.2383em; }
.brand-tag span:nth-child(2) { letter-spacing: 0.2242em; margin-right: -0.2242em; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.brand-tag {
  display: flex; flex-direction: column; align-self: stretch; margin-top: 4px; padding-top: 4px; border-top: 1.5px solid var(--navy);
  font-size: 0.7rem; font-weight: 500; line-height: 1.35; letter-spacing: 0.1057em; text-transform: uppercase; color: var(--navy);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 0.93rem; }
.nav a { color: var(--body); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); border-bottom-color: var(--navy); }

/* Layout */
.main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
.section { margin-top: 40px; }
.steps { padding-left: 1.4em; margin: 0; }
.steps li { margin-bottom: 6px; }
.plain-list { padding-left: 1.2em; }
.plain-list li { margin-bottom: 6px; }

/* Home */
.intro { padding-bottom: 8px; }
.intro h1 { font-size: clamp(2.1rem, 5vw, 2.75rem); color: var(--navy); margin-bottom: 10px; }
.subtitle { font-size: 1.2rem; line-height: 1.5; color: var(--body); font-weight: 400; margin-bottom: 4px; max-width: 32em; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.numbered { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.numbered li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.numbered li::before { content: counter(step); flex: none; width: 1.6em; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; }
.notice { margin-top: 36px; padding: 2px 0 2px 14px; border-left: 3px solid var(--slate); font-size: 0.92rem; color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  padding: 11px 22px; border-radius: 6px; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { background: #fff; color: var(--accent); }
.button.secondary:hover { background: var(--soft); color: var(--accent-hover); }

/* Forms */
label { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c4ccd5; border-radius: 6px; padding: 10px 12px;
}
input:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lookup { margin-top: 28px; }
.lookup-row { display: flex; gap: 10px; }
.lookup-row input { flex: 1; min-width: 0; letter-spacing: 0.02em; }
.message { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-top: 20px; color: var(--ink); }

/* Footer */
.footer { border-top: 1.5px solid var(--navy); background: var(--soft); }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 44px 16px 28px; font-size: 0.88rem; color: var(--muted); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer-about { flex: 1 1 360px; max-width: 460px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-name { font-size: 0.95rem; }
.disclaimer { margin: 0; line-height: 1.6; }
.footer-cols { display: flex; gap: 32px 72px; flex-wrap: wrap; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.footer-head { margin: 0 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.footer-cols a { color: var(--body); text-decoration: none; }
.footer-cols a:hover { color: var(--navy); text-decoration: underline; }
.operator { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; }

@media (max-width: 520px) {
  .main { padding-top: 32px; }
  .lookup-row { flex-direction: column; }
  .actions { flex-direction: column; }
  .actions .button { text-align: center; }
  .brand-mark { width: 46px; height: 46px; font-size: 1rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-tag { font-size: 0.62rem; letter-spacing: 0.0845em; }
  .brand-tag span:nth-child(1) { letter-spacing: 0.2585em; margin-right: -0.2585em; }
  .brand-tag span:nth-child(2) { letter-spacing: 0.2432em; margin-right: -0.2432em; }
  .nav { gap: 2px 16px; font-size: 0.9rem; }
}

/* ---------- Portal ---------- */
.narrow { max-width: 440px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-bottom: 20px; }
legend { font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
input[type=date], input[type=number], select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c4ccd5; border-radius: 6px; padding: 10px 12px;
}
select { padding-right: 8px; }
input[readonly] { background: var(--soft); color: var(--muted); }
input[aria-invalid=true] { border-color: #b42318; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > select { flex: 1; min-width: 130px; width: auto; }
.row > .grow { flex: 1; min-width: 200px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400; margin: 0; color: var(--body); font-size: 1rem; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 6px 0 18px; }
.field-error { color: #b42318; font-size: 0.88rem; margin: 6px 0 0; }
.alert { background: #fef3f2; border: 1px solid #fecdca; color: #912018; border-radius: 6px; padding: 12px 14px; margin: 16px 0 20px; }
.notice-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #085d3a; border-radius: 6px; padding: 12px 14px; margin: 16px 0 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code-input { font-size: 1.5rem; letter-spacing: 0.3em; max-width: 220px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.inline-form { margin: 0; }
.button.small { padding: 6px 14px; font-size: 0.9rem; }
.button:disabled { opacity: 0.6; cursor: default; }

.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.92rem; margin: -16px 0 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--body); text-decoration: none; padding: 2px 0; }
.subnav a.active { color: var(--ink); font-weight: 600; }
.subnav form { margin: 0 0 0 auto; }
.subnav .link-button { color: var(--muted); font-size: 0.92rem; }

.summary { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 8px; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: var(--soft); color: var(--body); border: 1px solid var(--line); }
.status-pending { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.status-active { background: #ecfdf3; color: #085d3a; border-color: #abefc6; }
.status-inactive, .status-expired { background: #fef3f2; color: #912018; border-color: #fecdca; }

.checklist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c4ccd5; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; flex: none; }
.checklist li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .state { margin-left: auto; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.checklist li.later { color: var(--muted); }

.cards { list-style: none; padding: 0; margin: 0 0 8px; }
.card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.card-row strong { color: var(--ink); }
.muted-inline { color: var(--muted); font-size: 0.9rem; }
.tag { font-size: 0.75rem; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; }
.status-form { padding-bottom: 8px; }
.danger-zone { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }
.legal-body h2 { margin-top: 24px; }
.meta { margin-top: 0; }

@media (max-width: 520px) {
  .subnav form { margin-left: 0; }
  .card-row { flex-direction: column; }
  .summary > div { flex-direction: column; gap: 2px; }
  .summary dd { text-align: left; }
}

/* ---------- Admin ---------- */
.main.wide { max-width: 1040px; }
.admin-badge { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 6px; vertical-align: middle; }
.nav-form { margin: 0; display: inline; }
.nav .link-button.nav-signout { color: var(--body); text-decoration: none; font-size: 0.95rem; padding: 4px 0; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.search-row input { flex: 1; min-width: 220px; }
input[type=search] { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c4ccd5; border-radius: 6px; padding: 10px 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.table input[type=text] { padding: 6px 8px; }
.table input.num { width: 70px; padding: 6px 8px; }
.table form { margin: 0; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 0 0 18px; }
.panel h2 { margin-top: 0; font-size: 1.05rem; }
.panel h3 { font-size: 0.95rem; margin: 16px 0 4px; color: var(--ink); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 18px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.inline { display: inline; margin: 0 0 0 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stack input[type=text] { width: 100%; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; align-items: end; }
.edit-grid .span2 { grid-column: span 2; }
.small-list { font-size: 0.9rem; }
.flag { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.panel.flag { border-top: 1px solid var(--line); margin-top: 0; }
.status-hold { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tabs a { color: var(--body); text-decoration: none; }
.tabs a.active { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .edit-grid .span2 { grid-column: auto; } }

/* ---------- Training ---------- */
.prose h2 { margin-top: 32px; }
.prose h3 { font-size: 1rem; color: var(--ink); margin: 20px 0 6px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.goal { background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.callout { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: #fff; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 650; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 6px; }
.callout-remember { border-left: 3px solid var(--ok); background: #f6fef9; }
.callout-in-practice { border-left: 3px solid var(--accent); background: #f5f8fc; }
.video { position: relative; padding-top: 56.25%; margin: 16px 0 24px; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.module-footer { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 8px; }
.assessment .question { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 6px; margin: 0 0 14px; }
.assessment .question legend { font-weight: 600; color: var(--ink); padding: 0 4px; font-size: 1rem; }
.assessment .question.unanswered { border-color: #fecdca; background: #fffbfa; }
.qnum { color: var(--muted); }
.review { padding-left: 1.4em; }
.review li { margin-bottom: 18px; }
.review .q { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.review p { margin-bottom: 4px; }
.review .label { color: var(--muted); }
.review li.wrong .label { color: #912018; }
textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c4ccd5; border-radius: 6px; padding: 10px 12px; line-height: 1.5; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--soft); padding: 1px 4px; border-radius: 3px; }
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.option-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.option-row .opt-letter { margin: 0; font-weight: 600; width: 1.4em; }
.option-row input[type=text] { flex: 1; }
.nowrap { white-space: nowrap; }
.link-button:disabled { color: #c4ccd5; cursor: default; text-decoration: none; }
tr.inactive td { color: var(--muted); }

/* ---------- Billing ---------- */
details.terms { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; }
details.terms summary { cursor: pointer; color: var(--accent); }
.row-alert td { background: #fffbfa; }
.confirmation { border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 8px; }
.conf-org { font-weight: 700; color: var(--ink); letter-spacing: 0.02em; margin: 0 0 4px; }
@media print {
  .prelaunch, .header, .subnav, .footer, .no-print { display: none !important; }
  .main { padding: 0; max-width: none; }
  .confirmation { border: 0; }
}

/* ---------- Verify ---------- */
.verify-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px 8px; margin: 28px 0 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.verify-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.verify-org { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.verify-title { margin: 2px 0 0; font-size: 1.15rem; font-weight: 650; color: var(--ink); }
.verify-icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.verify-label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.verify-number { margin: 2px 0 14px; font-size: 1.5rem; font-weight: 650; color: var(--ink); letter-spacing: 0.02em; }
.verify-rows { margin: 0; border-top: 1px solid var(--line); }
.verify-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.verify-rows > div:last-child { border-bottom: 0; }
.verify-rows dt { font-weight: 600; color: var(--ink); }
.verify-rows dd { margin: 0; color: var(--ink); text-align: right; }
.verify-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.verify-status svg { width: 18px; height: 18px; }
.verify-status.ok { color: var(--ok); }
.verify-status.off { color: #912018; }

/* ---------- Admin emails ---------- */
.email-edit { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 24px; }
.email-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; background: #f5f7f9; }
pre.result { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-size: 0.85rem; overflow-x: auto; }
.narrow-wide { max-width: 560px; }
.pre-line { white-space: pre-line; }
.danger-panel { border-color: #fecdca; }
.stack textarea { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat-label { margin: 0; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { margin: 2px 0 0; font-size: 1.6rem; font-weight: 650; color: var(--ink); }
.stat-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.launch-list li { align-items: flex-start; }

/* ---------- Mobile menu ---------- */
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 42px; height: 38px; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.menu-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-bars span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 1px; }
.menu-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .header .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 6px; border-top: 1px solid var(--line); }
  .header.menu-open .nav { display: flex; }
  .header .nav a, .header .nav .nav-form { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .header .nav a:last-child { border-bottom: 0; }
  .header .nav a.active { border-bottom-color: var(--line); font-weight: 600; }
  .header .nav .link-button.nav-signout { font-size: 1rem; }
  .header.menu-open .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.menu-open .menu-bars span:nth-child(2) { opacity: 0; }
  .header.menu-open .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.2em; text-align: center; font-size: 1.35rem; font-weight: 400; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--navy); }
.faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.faq details p { margin: -4px 2px 18px; color: var(--body); max-width: 40em; }
.faq + .actions { margin-top: 32px; }

/* Mobile menu: dark when open so it stands apart from the page. */
@media (max-width: 720px) {
  .menu-toggle { background: var(--navy); border-color: var(--navy); }
  .menu-bars span { background: #fff; }
  .header.menu-open { background: var(--navy); border-bottom-color: var(--navy); box-shadow: 0 8px 24px rgba(13, 15, 79, 0.25); }
  .header.menu-open .brand, .header.menu-open .brand-name, .header.menu-open .brand-tag { color: #fff; }
  .header.menu-open .brand-tag { border-top-color: rgba(255, 255, 255, 0.85); }
  .header.menu-open .menu-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.4); }
  .header.menu-open .nav { border-top-color: rgba(255, 255, 255, 0.18); }
  .header.menu-open .nav a, .header.menu-open .nav .nav-form { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.14); }
  .header.menu-open .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
  .header.menu-open .nav a.active { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.14); }
  .header.menu-open .nav .link-button.nav-signout { color: #fff; }
  .header.menu-open .admin-badge { background: #fff; color: var(--navy); }
}

/* Header stays at the top while scrolling, on every page. */
.header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
/* Section links (e.g. Program Terms #6) land below the header instead of under it. */
h2[id], [id].anchor { scroll-margin-top: 120px; }
@media (max-width: 720px) {
  .header.menu-open .nav { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
}
@media print { .header { position: static; } }
.about { margin-top: 20px; }
.about p { font-size: 1.075rem; line-height: 1.7; color: var(--body); max-width: 40em; margin-bottom: 18px; }
.about + .actions { margin-top: 28px; }
.backlink { margin: -8px 0 20px; font-size: 0.92rem; }
.backlink a { color: var(--muted); text-decoration: none; }
.backlink a:hover { color: var(--navy); text-decoration: underline; }
.portal-links { margin-top: 28px; font-size: 0.92rem; }
.checklist li.locked { color: #9aa5b1; }
.checklist li.locked .mark { border-color: #dde3ea; }
/* Employment: show the Save button for "No" and the employer list for "Yes". */
.employment:not(:has(#es-none:checked)) .if-no { display: none; }
.employment:not(:has(#es-working:checked)) .if-yes { display: none; }
.employment .if-yes { margin-top: 8px; }
.employer-form:not(:has(option[data-other]:checked)) .title-other { display: none; }

/* Public site: hamburger menu at every width. On desktop it opens as a navy panel under the button. */
@media (min-width: 721px) {
  .header.burger .header-inner { position: relative; flex-wrap: nowrap; }
  .header.burger .menu-toggle { display: inline-flex; background: var(--navy); border-color: var(--navy); }
  .header.burger .menu-bars span { background: #fff; transition: transform .15s, opacity .15s; }
  .header.burger.menu-open .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.burger.menu-open .menu-bars span:nth-child(2) { opacity: 0; }
  .header.burger.menu-open .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header.burger .nav { display: none; position: absolute; right: 16px; top: calc(100% - 8px); min-width: 250px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0; background: var(--navy); border-radius: 8px; box-shadow: 0 12px 32px rgba(13, 15, 79, 0.28); font-size: 1rem; }
  .header.burger.menu-open .nav { display: flex; }
  .header.burger .nav a, .header.burger .nav .nav-form { display: block; padding: 12px 22px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .header.burger .nav > :last-child { border-bottom: 0; }
  .header.burger .nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
  .header.burger .nav a.active { font-weight: 600; border-bottom-color: rgba(255, 255, 255, 0.12); }
  .header.burger .nav .link-button.nav-signout { color: #fff; font-size: 1rem; padding: 0; }
}
.checklist .mark svg { width: 12px; height: 12px; display: block; }
/* Desktop: a "Menu" text button instead of the hamburger icon. */
.menu-word { display: none; }
@media (min-width: 721px) {
  .header.burger .menu-toggle { width: auto; padding: 0 18px; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
  .header.burger .menu-bars { display: none; }
  .header.burger .menu-word { display: inline; }
  .header.burger .menu-word .w-close, .header.burger.menu-open .menu-word .w-open { display: none; }
  .header.burger.menu-open .menu-word .w-close { display: inline; }
}
/* Tables inside training/legal text */
.md-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.97rem; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.md-table th { text-align: left; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: var(--soft); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.md-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td:first-child { width: 42%; color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .md-table td:first-child { width: auto; } }
.checklist .step { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.checklist .step-desc { font-size: 0.88rem; color: var(--muted); }
.checklist li.locked .step-desc { color: #b3bcc6; }
/* Whole checklist row is clickable when the step has a link (so "Start" opens it too). Not the admin launch list. */
.checklist:not(.launch-list) li { position: relative; }
.checklist:not(.launch-list) li a::after { content: ""; position: absolute; inset: 0; }
.checklist:not(.launch-list) li:has(a):hover { background: var(--soft); }
.checklist:not(.launch-list) li:has(a) .state { color: var(--navy); font-weight: 600; }
.checklist:not(.launch-list) li:has(a):focus-within { outline: 2px solid var(--navy); outline-offset: -2px; }

/* ---------- Training slides ---------- */
.deck-progress, .deck-nav { display: none; }
.deck-on .deck-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.deck-bar { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.deck-bar span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .25s ease; }
.deck-count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slides .slide { border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; margin: 0 0 16px; background: #fff; }
.deck-on .slides .slide { min-height: 340px; margin: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05); }
.slides .slide > h2:first-child, .slides .slide-label + h2 { margin-top: 0; }
.slides .slide h2 { font-size: 1.45rem; color: var(--navy); margin-bottom: 14px; }
.slide-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.slides .slide p, .slides .slide li { font-size: 1.05rem; line-height: 1.65; }
.slides .slide ul { padding-left: 1.2em; }
.slides .slide li { margin-bottom: 8px; }
.slides .slide li::marker { color: var(--navy); }
.slides .slide .goal { font-size: 1.1rem; }
.deck-on .deck-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.deck-nav [data-prev][disabled] { visibility: hidden; }
.deck-nav [data-next][disabled], .deck-nav [data-finish][disabled] { opacity: .45; cursor: not-allowed; }
.deck-nav [data-next] { margin-left: auto; }
.module-footer.deck-hide { display: none; }
@media (max-width: 520px) {
  .slides .slide { padding: 20px 18px; }
  .deck-on .slides .slide { min-height: 0; }
  .slides .slide h2 { font-size: 1.25rem; }
  .slides .slide p, .slides .slide li { font-size: 1rem; }
  .deck-on .deck-nav { position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--line); }
  .deck-on .deck-nav .button { flex: 1; }
  .deck-nav .button[disabled] { visibility: visible; opacity: .4; }
}
.slide-intro .goal { margin-bottom: 26px; }
.slides .toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.slides .toc li { counter-increment: toc; display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 500; color: var(--ink); }
.slides .toc li:last-child { border-bottom: 0; }
.slides .toc li::before { content: counter(toc); font-size: 0.85rem; font-weight: 600; color: var(--navy); min-width: 1.2em; }
.callout-example { border-left: 3px solid var(--navy); background: #f5f6fc; }
.callout-example .callout-title { color: var(--navy); }
.deck-nav [hidden] { display: none !important; }
.callout-core-standard { border-left: 3px solid var(--ok); background: #f4fbf7; }
.callout-core-standard .callout-title { color: #1f6b42; }
.slides .subhead { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* Slides: more breathing room, and quieter "editorial" callouts (a rule and a label, no tinted box). */
.slides .slide { padding: 40px 44px; }
.slides .slide h2 { margin-bottom: 22px; }
.slides .slide p { margin: 0 0 18px; }
.slides .slide ul, .slides .slide ol { margin: 0 0 22px; padding-left: 1.4em; }
.slides .slide li { margin-bottom: 14px; line-height: 1.7; padding-left: 4px; }
.slides .slide li:last-child { margin-bottom: 0; }
.slides .subhead { margin: 26px 0 12px; }
.slides .callout { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; margin: 30px 0 0; }
.slides .callout .callout-title { font-size: 0.78rem; letter-spacing: 0.09em; color: var(--navy); margin: 0 0 10px; }
.slides .callout p { color: var(--ink); }
.slides .callout > :last-child { margin-bottom: 0; }
.slides .md-table { margin: 4px 0 22px; }
.slides .md-table td { padding: 14px 16px; line-height: 1.6; }
@media (max-width: 520px) {
  .slides .slide { padding: 26px 22px; }
  .slides .slide li { margin-bottom: 12px; }
}
/* Dashboard and training lists: a card with a grey header bar. */
.list-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 28px 0 0; background: #fff; }
.list-card-head { margin: 0; padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.list-card .checklist { border: 0; border-radius: 0; }
.list-card .checklist li { padding: 16px 18px; }
/* Program seal next to the logo (inline SVG so it uses the site font). */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.seal { width: 70px; height: 70px; flex: none; font-family: inherit; }
@media (max-width: 520px) { .seal { width: 54px; height: 54px; } .brand { gap: 10px; } }
.header.menu-open .seal circle[fill="#fff"] { fill: #fff; }
/* Footer: trade association recognition */
.recognized { margin-top: 22px; }
.recognized-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.recognized-logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.recognized-logos img { height: 30px; width: auto; display: block; }
/* Completed steps: navy filled check (replaces green). */
.checklist li.done .mark { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Footer: recognition gets its own band between the links and the copyright line. */
.footer .recognized { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer .recognized-label { margin: 0; }
.footer .recognized-logos { gap: 28px; }
.footer .operator { margin-top: 24px; }
@media (max-width: 520px) {
  .footer-inner { padding-top: 40px; }
  .footer-main { gap: 40px; }
  .footer .recognized { margin-top: 44px; padding-top: 28px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer .recognized-logos img { height: 26px; }
  .footer .operator { margin-top: 28px; }
}
/* Assessment intro: three figures instead of a paragraph list. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.stats > div { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; }
.stats dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.ack-card { margin-top: 26px; }
.ack-list { border: 0; margin: 0; padding: 8px 18px 6px; }
.ack-list .check { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ack-list .check:last-child { border-bottom: 0; }
/* Assessment questions as slides */
.assessment .slide fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.assessment .slide legend { padding: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.45; color: var(--ink); margin-bottom: 22px; }
.assessment .qnum { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.assessment .options { display: flex; flex-direction: column; gap: 12px; }
.assessment .option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; line-height: 1.55; background: #fff; }
.assessment .option:hover { border-color: #b9c2cf; }
.assessment .option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #f7f8fc; }
.assessment .option input { position: absolute; opacity: 0; pointer-events: none; }
.assessment .option:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.assessment .opt-letter { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c4ccd5; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--body); }
.assessment .option:has(input:checked) .opt-letter { background: var(--navy); border-color: var(--navy); color: #fff; }
.assessment .slide.unanswered { border-color: #f0b4ae; }
.deck-on .slides .slide.question { min-height: 0; }
@media (max-width: 520px) { .assessment .slide legend { font-size: 1.1rem; } }
.assessment .option { font-weight: 400; color: var(--body); }
.assessment .option:has(input:checked) { color: var(--ink); }
.assessment .deck-count { display: none; }
/* Answers that list steps (A → B → C): keep each step whole so lines break only between steps. */
.assessment .step-chip { white-space: nowrap; }
.assessment .step-chip .arrow { color: var(--muted); margin: 0 2px; }
.assessment .option.seq { font-size: 0.9rem; letter-spacing: -0.005em; align-items: center; }
.assessment .option.seq .arrow { margin: 0; }

/* Logo in the header */
.logo { display: block; width: 104px; height: auto; }
@media (max-width: 520px) { .logo { width: 88px; } }
.header.menu-open .logo { background: #fff; border-radius: 4px; padding: 3px; }

/* Home: logo, verify and get certified */
.home { text-align: center; max-width: 520px; margin: 8px auto 0; }
.home-logo { display: block; width: 252px; max-width: 70%; height: auto; margin: 0 auto 22px; }
.home .subtitle { margin: 0 auto 32px; }
.home-lookup { text-align: left; margin: 0 auto; }
.home-or { display: flex; align-items: center; gap: 14px; margin: 26px 0 22px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.home-or::before, .home-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.button.large { padding: 14px 34px; font-size: 1.05rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; }
.footer-links a { color: var(--body); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.footer .disclaimer { max-width: 680px; }

/* Demo / preview labels */
.demo-banner { margin: 0 0 18px; padding: 12px 14px; border: 1.5px solid #b45309; background: #fff7ed; color: #7c2d12; border-radius: 8px; font-weight: 600; font-size: 0.93rem; }
.status-demo { background: #fff7ed; color: #9a3412; }
.status-pending_screening, .status-under_review { background: #eef2ff; color: #3730a3; }
.status-suspended, .status-not_approved { background: #fef3c7; color: #92400e; }
.status-revoked { background: #fee2e2; color: #991b1b; }
.notice-strong { margin: 20px 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: #fffbeb; color: var(--ink); font-size: 0.93rem; }
.conf-logo { display: block; width: 126px; height: auto; margin-bottom: 10px; }
