/* Chic Care Academy: shared styles for every page (tokens, header, footer, forms, tables, panels).
   The course player adds its own lesson styles on top of these. */
:root {
  --bg: #FBF8FA; --surface: #FFFFFF; --surface-2: #F5EEF2; --ink: #2A2128; --muted: #665A63; --line: #E6D9E1; --line-strong: #CDBBC6;
  --brand: #4A1E3F; --brand-2: #5C2A50; --brand-ink: #FFFFFF; --brand-soft: #EFE4EC;
  --accent: #C0506E; --accent-text: #A63E5C; --accent-soft: #F7EAF0; --on-brand-accent: #F2B8C6;
  --good: #2A7A70; --good-soft: #E4F2EF; --bad: #B23A48; --bad-soft: #FBEAEC;
  --warn: #8A5A12; --warn-soft: #FCF1DF; --info: #375A86; --info-soft: #E7EEF7;
  --paper: #FFFDF8; --paper-line: #D9C7A6;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(42, 33, 40, .06), 0 8px 24px rgba(74, 30, 63, .08);
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #17111A; --surface: #221A24; --surface-2: #2A2029; --ink: #F2EAF0; --muted: #BBADB7; --line: #3A2E3A; --line-strong: #54434F;
  --brand: #3A1832; --brand-2: #4A2142; --brand-ink: #FFFFFF; --brand-soft: #2E1F2B;
  --accent: #E6849F; --accent-text: #EE9AB1; --accent-soft: #3A2231; --on-brand-accent: #F2B8C6;
  --good: #6CC3B7; --good-soft: #17302D; --bad: #F08A96; --bad-soft: #3A1D23;
  --warn: #E6B86A; --warn-soft: #33281A; --info: #9DBBE6; --info-soft: #1D2836;
  --paper: #2A2229; --paper-line: #6B5A3E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #17111A; --surface: #221A24; --surface-2: #2A2029; --ink: #F2EAF0; --muted: #BBADB7; --line: #3A2E3A; --line-strong: #54434F;
  --brand: #3A1832; --brand-2: #4A2142; --brand-ink: #FFFFFF; --brand-soft: #2E1F2B;
  --accent: #E6849F; --accent-text: #EE9AB1; --accent-soft: #3A2231; --on-brand-accent: #F2B8C6;
  --good: #6CC3B7; --good-soft: #17302D; --bad: #F08A96; --bad-soft: #3A1D23;
  --warn: #E6B86A; --warn-soft: #33281A; --info: #9DBBE6; --info-soft: #1D2836;
  --paper: #2A2229; --paper-line: #6B5A3E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word; }
body > main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; text-wrap: balance; color: var(--ink); }
h4 { font-family: var(--font-body); font-size: 17px; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; align-content: start; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hdr { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; min-width: 0; }
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 34px; height: 34px; flex: 0 0 auto; }
.wordmark span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .1px; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 7px 12px; cursor: pointer; font-size: 15px; }
.nav-toggle svg { width: 18px; height: 18px; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 12px 4px 4px; cursor: pointer; font-size: 15px; max-width: 220px; }
.acct-btn:hover { border-color: var(--line-strong); }
.acct-btn .initials { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.acct-btn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; z-index: 30; }
.acct-menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.acct-menu .who b { display: block; color: var(--ink); font-size: 15px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 15px; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); color: var(--ink); }

@media (max-width: 900px) {
  .hdr { flex-wrap: wrap; min-height: 60px; padding-block: 10px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { order: 5; flex-basis: 100%; flex-direction: column; margin: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .site-nav a { padding: 11px 4px; font-size: 16px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-header:not(.nav-open) .site-nav { display: none; }
  .acct-btn .nm { display: none; }
  .acct-btn { padding: 3px; }
  .acct-btn svg { display: none; }
}
@media (max-width: 400px) {
  .wordmark span { font-size: 17px; }
  .wordmark svg { width: 30px; height: 30px; }
  .hdr { gap: 8px; }
  .hdr-end .btn-sm { padding: 7px 10px; }
  .nav-toggle { padding: 7px 9px; }
}

/* Buttons and links styled as buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2; padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--brand); background: var(--surface); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: transparent; padding-inline: 8px; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-text); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.05); color: #fff; }
.btn.light { background: #fff; color: #4A1E3F; border-color: #fff; }
.btn.light:hover { background: #F7EAF0; color: #4A1E3F; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn.outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-xs { padding: 5px 10px; font-size: 14px; font-weight: 700; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary):not(.ghost):not(.danger):not(.light):not(.outline-light) { background: var(--accent); border-color: var(--accent); color: #1E0F1A; } :root:not([data-theme="light"]) .btn:not(.secondary):not(.ghost):not(.danger):not(.light):not(.outline-light):hover { filter: brightness(1.06); } }
:root[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.light):not(.outline-light) { background: var(--accent); border-color: var(--accent); color: #1E0F1A; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span, .field > label, legend { font-weight: 700; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.input, .select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 16px; }
.input:focus-visible, .select:focus-visible { outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 14px; margin-top: 8px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; padding: 6px 0; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Messages */
.msg { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--info-soft); border-left: 4px solid var(--info); font-size: 16px; }
.msg.good { background: var(--good-soft); border-left-color: var(--good); }
.msg.bad { background: var(--bad-soft); border-left-color: var(--bad); }
.msg.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.msg b:first-child { display: block; }
.toast-region { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 15px; pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }

/* Badges: always text, colour only supports it */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.plain::before { display: none; }

/* Panels and cards */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel h2 { font-size: 24px; }
.panel h3 { font-size: 19px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.empty-state { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); display: grid; gap: 10px; justify-items: start; }
.page-head { padding-block: 40px 8px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 44px); }
.page-head .lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.section { padding-block: 56px; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 64ch; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { color: var(--muted); font-size: 18px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.loading { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 24px 0; }
.loading::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--line-strong); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: 13px; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.stackable tbody tr:last-child { border-bottom: 0; }
  table.stackable td { border: 0; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; }
  table.stackable td.num { text-align: right; }
  table.stackable td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; flex: 0 0 auto; }
  table.stackable td.lead-cell { display: block; text-align: left; font-weight: 700; padding-bottom: 6px; }
  table.stackable td.lead-cell::before { display: none; }
  table.stackable td.act { justify-content: flex-start; padding-top: 8px; }
  table.stackable td.act::before { display: none; }
}

/* Dialog */
dialog.sheet { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(23, 17, 26, .55); }
dialog.sheet .sheet-head { position: sticky; top: 0; background: var(--surface); padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; z-index: 1; }
dialog.sheet .sheet-head h2 { font-size: 24px; }
dialog.sheet .sheet-body { padding: 18px 22px 24px; display: grid; gap: 18px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.confirm { border: 1px solid var(--bad); background: var(--bad-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }

/* Footer */
.site-footer { margin-top: 72px; background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { padding-block: 36px 40px; display: grid; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: grid; gap: 6px; max-width: 46ch; }
.foot-brand .wordmark span { font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--ink); }
.foot-legal { font-size: 13px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }

/* Home: hero */
.hero { background: var(--brand); color: var(--brand-ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.3px; max-width: 15ch; }
.hero .lede { font-size: 19px; color: rgba(255, 255, 255, .88); max-width: 50ch; margin-top: 18px; }
.hero .row { margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.cert { position: relative; background: #FFFDF8; color: #2A2128; border-radius: 6px; padding: 30px 30px 24px; box-shadow: 0 30px 60px rgba(10, 2, 8, .35); display: grid; gap: 6px; text-align: center; }
.cert::before { content: ""; position: absolute; inset: 9px; border: 1px solid #D9C7A6; border-radius: 3px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 13px; border: 1px solid #EADFCB; border-radius: 2px; pointer-events: none; }
.cert .c-org { font-family: var(--font-display); font-weight: 700; color: #4A1E3F; font-size: 16px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.cert .c-org svg { width: 26px; height: 26px; }
.cert .c-title { font-family: var(--font-display); font-style: italic; font-size: 28px; color: #4A1E3F; margin-top: 8px; }
.cert .c-small { font-size: 13px; color: #6B5F68; }
.cert .c-name { font-family: var(--font-display); font-size: 23px; border-bottom: 1px solid #D9C7A6; justify-self: center; padding: 2px 18px 4px; color: #6B5F68; font-style: italic; }
.cert .c-course { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #2A2128; }
.cert .c-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EADFCB; text-align: left; font-size: 13px; color: #6B5F68; }
.cert .c-meta b { display: block; color: #2A2128; font-size: 14px; font-variant-numeric: tabular-nums; }
.cert .c-check { margin-top: 10px; display: inline-flex; justify-self: center; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #2A7A70; background: #E4F2EF; padding: 4px 12px; border-radius: 99px; }
.cert-caption { font-size: 14px; color: rgba(255, 255, 255, .78); margin-top: 16px; text-align: center; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 52px; }
  .cert-fig { max-width: 440px; }
}
@media (max-width: 420px) { .cert { padding: 24px 20px 20px; } .cert .c-title { font-size: 24px; } .cert .c-course { font-size: 19px; } }

/* Home: how it works */
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.how-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; align-content: start; }
.how-col h3 { font-size: 22px; }
.how-col > p { color: var(--muted); }
ol.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: f; }
ol.flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; counter-increment: f; }
ol.flow li::before { content: counter(f); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
ol.flow b { display: block; }
ol.flow span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .how-col { padding: 20px; } }

/* Home: trust points */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--brand); }
.trust > div { padding: 20px 22px 4px 0; display: grid; gap: 6px; align-content: start; }
.trust > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.trust h3 { font-size: 19px; }
.trust p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust > div, .trust > div + div { padding: 16px 0 14px; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Catalogue */
.cat-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font-size: 15px; cursor: pointer; line-height: 1.3; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip .n { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.cat-search { margin-left: auto; flex: 1 1 260px; max-width: 340px; position: relative; }
.cat-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.cat-search .input { padding-left: 40px; border-radius: 99px; }
.cat-count { width: 100%; font-size: 15px; color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; position: relative; }
.course-card:hover { border-color: var(--brand); color: var(--ink); box-shadow: var(--shadow); }
.course-card .cat { font-size: 14px; color: var(--accent-text); font-weight: 700; }
.course-card h3 { font-size: 20px; }
.course-card p { font-size: 15px; color: var(--muted); }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card .meta svg { width: 15px; height: 15px; flex: 0 0 auto; }
.course-card .mine { position: absolute; top: 16px; right: 16px; }

/* Employer band */
.band { background: var(--brand-soft); border-block: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; padding-block: 52px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); }
.band .price { font-family: var(--font-display); font-size: clamp(40px, 5vw, 54px); color: var(--brand); line-height: 1; }
.band .price small { font-family: var(--font-body); font-size: 17px; color: var(--muted); font-weight: 400; display: block; margin-top: 8px; }
:root[data-theme="dark"] .band .price { color: var(--accent-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band .price { color: var(--accent-text); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232A7A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 800px) { .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; } }

/* Feature list (employers) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 36px; }
.features > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.features h3 { font-size: 19px; }
.features p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 20px; line-height: 1.1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 18px 16px; display: grid; gap: 10px; color: var(--ink); max-width: 70ch; }
.faq .a ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.faq-group { display: grid; gap: 14px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { font-size: 26px; }

/* Account & team */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.signin-card { max-width: 520px; }
.course-rows { display: grid; gap: 0; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.course-row:first-child { border-top: 0; padding-top: 4px; }
.course-row .t { font-weight: 700; }
.course-row .t a { color: var(--ink); text-decoration: none; }
.course-row .t a:hover { text-decoration: underline; }
.course-row .sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 4px; }
.course-row .bar { width: min(220px, 100%); margin-top: 8px; }
@media (max-width: 520px) { .course-row { grid-template-columns: minmax(0, 1fr); } .course-row .btn { justify-self: start; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.tile .k { font-size: 14px; color: var(--muted); font-weight: 700; }
.tile .v { font-family: var(--font-display); font-size: 34px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 13px; color: var(--muted); }
.tile.alert .v { color: var(--bad); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .v { font-size: 28px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tab { border: 0; background: none; padding: 12px 14px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .grow { flex: 1 1 220px; min-width: 0; }
.matrix-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 70vh; }
table.matrix { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
table.matrix th, table.matrix td { padding: 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.matrix thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; font-weight: 700; color: var(--ink); }
table.matrix th.person { position: sticky; left: 0; background: var(--surface); text-align: left; z-index: 1; font-size: 14px; min-width: 150px; max-width: 200px; white-space: normal; }
table.matrix thead th.person { z-index: 3; background: var(--surface-2); }
.cell { display: block; border-radius: 6px; padding: 4px 6px; font-weight: 700; min-width: 74px; }
.cell.good { background: var(--good-soft); color: var(--good); }
.cell.bad { background: var(--bad-soft); color: var(--bad); }
.cell.warn { background: var(--warn-soft); color: var(--warn); }
.cell.info { background: var(--info-soft); color: var(--info); }
.cell.none { color: var(--muted); font-weight: 400; }
.cell.todo { background: var(--surface-2); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.legend .cell { display: inline-block; min-width: 0; font-size: 12px; }

/* Verify */
.verify-card { max-width: 640px; }
.result-card { border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.result-card.good { border-color: var(--good); box-shadow: inset 6px 0 0 var(--good); }
.result-card.bad { border-color: var(--bad); box-shadow: inset 6px 0 0 var(--bad); }
.result-card.warn { border-color: var(--warn); box-shadow: inset 6px 0 0 var(--warn); }
.result-card.info { border-color: var(--info); box-shadow: inset 6px 0 0 var(--info); }
.result-card h2 { font-size: 24px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; font-weight: 700; }
@media (max-width: 420px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .kv dd { margin-bottom: 8px; } }

.notfound { padding-block: 72px; display: grid; gap: 16px; justify-items: start; }
.notfound .code { font-family: var(--font-display); font-size: 88px; line-height: 1; color: var(--accent-text); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 40px; }
  .panel { padding: 18px; }
  .page-head { padding-top: 28px; }
  .page-head .lede { font-size: 17px; }
  .cat-search { max-width: none; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } }
/* A page that ends with a full-width band sits straight on the footer. */
body:has(main > .band:last-child) .site-footer { margin-top: 0; }
/* Inline text button (e.g. Sign out in a sentence) */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
:root[data-theme="dark"] .acct-btn .initials { background: var(--accent); color: #1E0F1A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acct-btn .initials { background: var(--accent); color: #1E0F1A; } }
.only-sm { display: none; }
@media (max-width: 600px) {
  .only-sm { display: inline; } .hide-sm { display: none; }
  .tab { padding: 12px 10px; font-size: 15px; }
  table.stackable tr { display: flex; flex-direction: column; }
  table.stackable td.sel { order: 8; justify-content: flex-start; align-items: center; gap: 10px; padding-top: 8px; }
  table.stackable td.sel::before { order: 2; content: "Select for assigning"; font-weight: 400; color: var(--ink); font-size: 15px; }
  table.stackable td.sel:empty { display: none; }
  table.stackable td.act { order: 9; }
}
/* Headings focused by script (after a page change) don't need a focus ring. */
[tabindex="-1"]:focus:not(:focus-visible), h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
@media (max-width: 440px) {
  .nav-toggle .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 9px; }
  .hdr { flex-wrap: wrap; }
  .hdr-end { gap: 6px; }
}
