/* Cehpoint Academy. Uses the site tokens (tokens.css or the inline copy on www). Square corners, hairlines, one accent, light theme.
   Public pages: classes prefixed ac- alongside the site's own (.wrap, .sec, .btn). App pages: the .ac-app shell below. */

/* ---------- shared ---------- */
.ac-kicker { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ac-kicker a { color: inherit; }
.ac-h2 { font-size: var(--fs-h2); letter-spacing: var(--track-head); line-height: var(--lh-head); margin: 0 0 var(--s-4); }
.ac-h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; margin: 0 0 var(--s-4); }
.ac-h4 { font-size: 1.0625rem; margin: var(--s-5) 0 var(--s-2); }
.ac-meta { font-size: var(--fs-small); color: var(--muted); }
.ac-mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }
.ac-muted { color: var(--ink-2); }
.ac-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); border-bottom: 1px solid var(--accent); margin-left: var(--s-2); }
.ac-vh, .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ac-empty { border: var(--hair) dashed var(--rule); background: var(--surface); padding: var(--s-6); max-width: 640px; }
.ac-empty h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-3); }
.ac-empty .btn { margin-top: var(--s-4); }

.ac-how { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-5); border-top: var(--hair) solid var(--rule-strong); }
.ac-how li { padding-top: var(--s-5); }
.ac-how b { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; }
.ac-how h3 { font-size: 1.1875rem; margin: var(--s-2) 0; }
.ac-how p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }

.ac-courses { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: var(--hair) solid var(--rule-strong); }
.ac-courses > li { border-bottom: var(--hair) solid var(--rule); }
.ac-course { display: grid; grid-template-columns: minmax(3.5rem, max-content) minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-5) 0; text-decoration: none; align-items: start; }
.ac-course__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); padding-top: 0.35em; white-space: nowrap; }
.ac-course h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); letter-spacing: -0.015em; margin: var(--s-1) 0 var(--s-2); }
.ac-course p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.ac-course .ac-meta { display: block; font-family: var(--font-mono); font-size: var(--fs-mono); }
.ac-go { font-size: 1.5rem; padding-top: 0.6em; transition: transform var(--dur) var(--ease); }
.ac-course:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.ac-course:hover .ac-go { transform: translateX(4px); color: var(--accent); }
.ac-course--cert .ac-course__n { color: var(--accent); }
@media (max-width: 599px) { .ac-course { grid-template-columns: minmax(0, 1fr) auto; } .ac-course__n { grid-column: 1 / -1; padding: 0; } }

.ac-facts { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); margin: var(--s-6) 0 0; padding: var(--s-4) 0 0; border-top: var(--hair) solid var(--rule); }
.ac-facts dt { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ac-facts dd { margin: var(--s-1) 0 0; font-weight: 600; font-size: 1.125rem; }
.ac-badge-hero { display: flex; justify-content: center; align-items: center; margin-top: var(--s-7); }
.ac-badge-hero svg, .ac-badge-hero img { width: min(300px, 70vw); height: auto; }
@media (min-width: 900px) { .ac-badge-hero { margin-top: 0; justify-content: flex-end; } }
.ac-ticks, .ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ac-ticks li { position: relative; padding-left: 1.6em; }
.ac-ticks li::before { content: ""; position: absolute; left: 0.2em; top: 0.35em; width: 0.45em; height: 0.8em; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.ac-list li { position: relative; padding-left: 1.4em; }
.ac-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7em; height: 2px; background: var(--accent); }

.ac-syl { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: var(--hair) solid var(--rule-strong); }
.ac-syl > li { display: grid; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: var(--hair) solid var(--rule); }
@media (min-width: 900px) { .ac-syl > li { grid-template-columns: 5fr 7fr; gap: var(--gutter); } }
.ac-syl__h h3 { font-size: 1.3125rem; margin: var(--s-1) 0 var(--s-2); }
.ac-syl__h p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.ac-syl__l { list-style: none; margin: 0; padding: 0; }
.ac-syl__l li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: var(--hair) solid var(--rule); }
.ac-syl__l li:last-child { border-bottom: 0; }
.ac-syl__q { color: var(--ink-2); font-style: italic; }

.ac-domains { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.ac-domains li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 30%) 3.2rem; gap: var(--s-4); align-items: center; padding-bottom: var(--s-3); border-bottom: var(--hair) solid var(--rule); }
.ac-domains--app li { grid-template-columns: minmax(0, 1fr) minmax(60px, 28%) 3rem 3rem; }
.ac-domains b { text-align: right; font-variant-numeric: tabular-nums; }
.ac-bar { display: block; height: 6px; background: var(--surface-2); }
.ac-bar i { display: block; height: 6px; background: var(--ink); }

.ac-state { display: inline-block; margin: 0 0 var(--s-4); padding: var(--s-1) var(--s-3); border: 1.5px solid currentColor; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ac-state--valid { color: var(--ok); }
.ac-state--expired { color: var(--warn); }
.ac-state--revoked { color: var(--danger); }
.ac-verify { margin-top: var(--s-6); max-width: 560px; }
.ac-verify label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.ac-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.ac-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s-4); border: var(--hair) solid var(--ink); background: var(--surface); font: 500 1rem var(--font-mono); letter-spacing: 0.04em; border-radius: 0; }
.ac-badge-big svg { width: 100%; max-width: 340px; height: auto; }
.ac-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: var(--s-4); }
.ac-badge-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border: var(--hair) solid var(--rule); background: var(--surface); text-decoration: none; height: 100%; }
.ac-badge-card:hover { border-color: var(--ink); }
.ac-badge-card b { font-size: 1rem; line-height: 1.3; }
.ac-badge-card.is-expired { opacity: 0.6; }
.ac-badge-sm svg { width: 96px; height: 96px; }
.ac-prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.ac-prose > * + * { margin-top: 1em; }
.ac-prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 1.8em; letter-spacing: -0.015em; }
.ac-prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.ac-prose ul, .ac-prose ol { padding-left: 1.3em; }
.ac-prose li + li { margin-top: 0.35em; }
.ac-prose code { background: var(--surface-2); padding: 0.08em 0.32em; font-size: 0.88em; }
.ac-prose pre code { background: none; padding: 0; }
.ac-prose blockquote { margin: 1.5em 0; padding-left: var(--s-5); border-left: 3px solid var(--accent); }

/* callouts, labs, code, figures (lesson content) */
.ac-call { border-left: 3px solid var(--ink); background: var(--surface); padding: var(--s-4) var(--s-5); }
.ac-call__t { margin: 0 0 var(--s-2); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ac-call--tip { border-left-color: var(--ok); } .ac-call--tip .ac-call__t { color: var(--ok); }
.ac-call--warning { border-left-color: var(--danger); background: #FCF2F0; } .ac-call--warning .ac-call__t { color: var(--danger); }
.ac-call > :last-child { margin-bottom: 0; }
.ac-lab { border: var(--hair) solid var(--ink); background: var(--surface); padding: var(--s-5); }
.ac-lab__t { margin: 0 0 var(--s-4); font-size: 1.0625rem; letter-spacing: 0.02em; }
.ac-lab__t::before { content: "Lab"; display: inline-block; background: var(--ink); color: var(--paper); font-size: 0.75rem; padding: 2px 8px; margin-right: var(--s-3); vertical-align: 2px; letter-spacing: 0.06em; text-transform: uppercase; }
.ac-lab__steps { list-style: none; padding: 0 !important; counter-reset: st; }
.ac-lab__steps > li { counter-increment: st; position: relative; padding: var(--s-3) 0 var(--s-3) 3.2rem; border-top: var(--hair) solid var(--rule); margin: 0 !important; }
.ac-lab__steps > li::before { content: counter(st); position: absolute; left: 1.9rem; top: var(--s-3); font-family: var(--font-mono); color: var(--muted); font-size: 0.875rem; }
.ac-lab__cb { position: absolute; left: 0; top: calc(var(--s-3) + 2px); width: 22px; height: 22px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.ac-lab__steps > li.is-done { color: var(--muted); }
.ac-code { background: var(--night); color: var(--night-ink); }
.ac-code__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4); border-bottom: 1px solid var(--night-rule); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--night-muted); }
.ac-copy { background: none; border: 1px solid var(--night-rule); color: var(--night-ink); font: 600 0.8125rem var(--font-sans); padding: 6px 14px; cursor: pointer; min-height: 44px; }
.ac-copy:hover { border-color: var(--night-ink); }
.ac-code pre { margin: 0; padding: var(--s-4); overflow-x: auto; font-size: 0.875rem; line-height: 1.6; }
.ac-code code { background: none !important; color: inherit; }
.ac-fig { margin: 1.5em 0; }
.ac-fig img { border: var(--hair) solid var(--rule); background: var(--surface); width: 100%; height: auto; }
.ac-fig figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted); }
.ac-ph { aspect-ratio: 16 / 9; max-height: 360px; width: 100%; border: 1px dashed #A9ABA6; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); color: var(--muted); padding: var(--s-5); text-align: center; font-size: var(--fs-small); }
.ac-ph svg { width: 56px; height: auto; }
.ac-tbl { overflow-x: auto; }
.ac-tbl table, .ac-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ac-tbl th, .ac-tbl td, .ac-table th, .ac-table td { text-align: left; padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: var(--hair) solid var(--rule); vertical-align: top; }
.ac-table th { font-weight: 600; color: var(--ink-2); }
.ac-tscroll { overflow-x: auto; }
.ac-card { border: var(--hair) solid var(--rule); background: var(--surface); padding: var(--s-5); position: sticky; top: var(--s-5); }

/* ---------- app shell ---------- */
.ac-app { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.ac-app *, .ac-app *::before, .ac-app *::after { box-sizing: border-box; }
.ac-app img, .ac-app svg { max-width: 100%; height: auto; }
.ac-app a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.ac-app :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ac-app h1, .ac-app h2, .ac-app h3 { font-weight: 600; text-wrap: balance; }
.ac-app p { margin: 0 0 var(--s-3); }
.ac-skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: var(--paper) !important; padding: var(--s-3) var(--s-4); }
.ac-skip:focus { top: var(--s-3); }
.ac-imp { background: var(--danger); color: #fff; padding: var(--s-2) var(--s-4); display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; font-size: var(--fs-small); }
.ac-imp form { margin: 0 0 0 auto; } .ac-imp button { background: #fff; color: var(--danger); border: 0; padding: 4px 12px; font-weight: 700; cursor: pointer; }
.ac-top { background: var(--surface); border-bottom: var(--hair) solid var(--rule); position: sticky; top: 0; z-index: 20; }
.ac-top__in { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-pad); min-height: 60px; display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.ac-wm { text-decoration: none; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.035em; display: inline-block; padding-block: 6px; white-space: nowrap; }
.ac-wm__sub { font-weight: 500; color: var(--muted); letter-spacing: -0.01em; font-size: 1.0625rem; margin-left: 2px; }
.ac-nav { display: flex; gap: var(--s-1); flex: 1; overflow-x: auto; }
.ac-nav a { text-decoration: none; padding: var(--s-2) var(--s-3); min-height: 44px; display: inline-flex; align-items: center; gap: 0.3em; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.ac-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.ac-nav a:hover { background: var(--surface-2); }
.ac-count { font-size: 0.75rem; color: var(--muted); }
.ac-out { margin: 0; } .ac-out button { background: none; border: 0; font: inherit; font-size: var(--fs-small); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); cursor: pointer; padding: var(--s-2); min-height: 44px; }
@media (max-width: 699px) { .ac-top__in { gap: 0 var(--s-3); padding-top: var(--s-2); } .ac-nav { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--s-3)); } .ac-out { margin-left: auto; } }
.ac-main { flex: 1; outline: none; }
.ac-wrap { max-width: 1120px; margin: 0 auto; padding: var(--s-7) var(--page-pad) var(--s-8); }
.ac-narrow { max-width: 820px; }
.ac-title { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); letter-spacing: var(--track-head); line-height: 1.1; margin: 0 0 var(--s-3); }
.ac-lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 64ch; }
.ac-h2s { font-size: 1.375rem; margin: 0 0 var(--s-4); }
.ac-h3s { font-size: 1.125rem; margin: 0 0 var(--s-3); }
.ac-block { margin-top: var(--s-8); }
.ac-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; }
.ac-crumbs { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); margin-bottom: var(--s-5); }
.ac-note { border-left: 3px solid var(--ink); background: var(--surface); padding: var(--s-3) var(--s-4); margin: var(--s-4) 0; max-width: 72ch; }
.ac-note--ok { border-left-color: var(--ok); }
.ac-ok { color: var(--ok); font-weight: 600; }
.ac-foot { border-top: var(--hair) solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.ac-foot__in { max-width: 1280px; margin: 0 auto; padding: var(--s-5) var(--page-pad); }
.ac-toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-5); opacity: 0; pointer-events: none; transition: opacity var(--dur); max-width: calc(100% - 32px); z-index: 50; }
.ac-toast.show { opacity: 1; } .ac-toast.err { background: var(--danger); }
.ac-app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0 20px; border: var(--hair) solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; border-radius: 0; white-space: nowrap; }
.ac-app .btn:hover { background: #A22D0F; border-color: #A22D0F; }
.ac-app .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ac-app .btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.ac-app .btn--line:hover { background: var(--ink); color: var(--paper); }
.ac-app .btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ac-app .btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.ac-app .btns { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-top: var(--s-4); }
.ac-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; cursor: pointer; }

/* dashboard */
.ac-next { border: var(--hair) solid var(--ink); background: var(--surface); padding: var(--s-6); margin: var(--s-6) 0 0; }
.ac-next h2 { font-size: 1.5rem; margin: 0 0 var(--s-2); }
.ac-progress-list { list-style: none; margin: 0; padding: 0; border-top: var(--hair) solid var(--rule-strong); }
.ac-progress-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 220px) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--rule); }
.ac-progress-list .ac-meta { display: block; }
.ac-strong { font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 699px) { .ac-progress-list li { grid-template-columns: minmax(0, 1fr) auto; } .ac-progress-list .ac-pbar { grid-column: 1 / -1; grid-row: 2; } }
.ac-pbar { height: 6px; background: var(--surface-2); }
.ac-pbar i { display: block; height: 6px; background: var(--ok); }
.ac-pbar--lg { height: 8px; margin: var(--s-5) 0 var(--s-2); max-width: 480px; } .ac-pbar--lg i { height: 8px; }
.ac-track { margin-top: var(--s-6); }
.ac-track h3 { font-size: 1.1875rem; margin: 0 0 var(--s-2); }
.ac-cards { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s-4); }
.ac-card-link { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: var(--s-5); background: var(--surface); border: var(--hair) solid var(--rule); text-decoration: none; }
.ac-card-link:hover { border-color: var(--ink); }
.ac-card-link b { font-size: 1.0625rem; line-height: 1.3; }
.ac-card-link span:last-child { color: var(--ink-2); font-size: var(--fs-small); }
.ac-card-link--cert { border-top: 3px solid var(--accent); }

/* course outline */
.ac-course-head { padding-bottom: var(--s-5); }
.ac-outline { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: var(--hair) solid var(--rule-strong); }
.ac-outline__m { padding: var(--s-5) 0; border-bottom: var(--hair) solid var(--rule); }
.ac-outline__m h2 { font-size: 1.25rem; margin: 0 0 var(--s-2); } .ac-outline__m h2 .ac-meta { display: block; font-weight: 400; font-family: var(--font-mono); font-size: var(--fs-mono); }
.ac-outline ul, .ac-req { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.ac-outline li a, .ac-req li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; text-decoration: none; min-height: 44px; }
.ac-outline li a:hover span:nth-child(2) { text-decoration: underline; text-decoration-color: var(--accent); }
.ac-tick { width: 18px; height: 18px; border: 1.5px solid var(--rule); background: var(--surface); position: relative; }
.is-done > .ac-tick, .is-done > a > .ac-tick, a.is-done > .ac-tick { background: var(--ok); border-color: var(--ok); }
.is-done > .ac-tick::after, .is-done > a > .ac-tick::after, a.is-done > .ac-tick::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.ac-outline__q a { font-style: italic; }
.ac-more { margin-top: var(--s-6); border-top: var(--hair) solid var(--rule); padding-top: var(--s-4); }
.ac-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* lesson player */
.ac-readbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; pointer-events: none; }
.ac-readbar i { display: block; height: 2px; width: 0; background: var(--accent); }
.ac-player { max-width: 1320px; margin: 0 auto; padding: var(--s-5) var(--page-pad) var(--s-8); display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .ac-player { grid-template-columns: 290px minmax(0, 1fr); gap: var(--s-7); } }
.ac-side__d { border: var(--hair) solid var(--rule); background: var(--surface); }
@media (min-width: 900px) { .ac-side__d { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; } }
.ac-side__d summary { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); cursor: pointer; font-weight: 600; font-size: var(--fs-small); border-bottom: var(--hair) solid var(--rule); min-height: 44px; align-items: center; }
.ac-side__list { list-style: none; margin: 0; padding: var(--s-2) 0; font-size: 0.9375rem; }
.ac-side__m { margin: var(--s-3) var(--s-4) var(--s-1) !important; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.ac-side__list ul { list-style: none; margin: 0; padding: 0; }
.ac-side__list a { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: 7px var(--s-4); text-decoration: none; line-height: 1.35; min-height: 44px; }
.ac-side__list a:hover { background: var(--paper); }
.ac-side__list a[aria-current="page"] { background: var(--accent-quiet); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.ac-side__list .ac-tick { width: 16px; height: 16px; }
.ac-side__list a.is-done .ac-tick::after { left: 4px; top: 0; width: 4px; height: 9px; }
.ac-lesson { min-width: 0; }
.ac-tabs { display: flex; gap: 0; margin: var(--s-5) 0 var(--s-4); border-bottom: var(--hair) solid var(--rule); }
.ac-tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--s-3) var(--s-5); font: 600 1rem var(--font-sans); color: var(--ink-2); cursor: pointer; min-height: 46px; margin-bottom: -1px; }
.ac-tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.ac-watch { container-type: inline-size; background: var(--night); }
.ac-watch iframe { display: block; width: 100%; height: calc(56.25cqw + 176px); border: 0; background: var(--night); }
@media (max-width: 600px) { .ac-watch iframe { height: calc(56.25cqw + 150px); } }
.ac-pane > .ac-meta { margin-top: var(--s-3); }
.ac-notes { margin-top: var(--s-7); border-top: var(--hair) solid var(--rule); padding-top: var(--s-5); }
.ac-notes textarea, .ac-field input, .ac-field select, .ac-field textarea { width: 100%; border: var(--hair) solid #9C9EA3; background: var(--surface); font: inherit; font-size: 1rem; padding: var(--s-3); border-radius: 0; color: var(--ink); }
.ac-field input, .ac-field select { min-height: 46px; }
.ac-notes textarea:focus, .ac-field input:focus, .ac-field select:focus, .ac-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.ac-done { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; margin-top: var(--s-6); }
.ac-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-6); border-top: var(--hair) solid var(--rule-strong); padding-top: var(--s-4); }
.ac-pn a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; font-weight: 600; padding: var(--s-2) 0; }
.ac-pn a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ac-pn__n { text-align: right; grid-column: 2; }
.ac-pn .ac-meta { font-weight: 400; }

/* quiz + exam */
.ac-quiz { margin-top: var(--s-6); display: grid; gap: var(--s-6); }
.ac-q { border: 0; border-top: var(--hair) solid var(--rule-strong); margin: 0; padding: var(--s-5) 0 0; min-width: 0; }
.ac-q legend { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: var(--s-2); font-weight: 600; font-size: 1.125rem; line-height: 1.4; padding: 0; float: left; width: 100%; margin-bottom: var(--s-4); }
.ac-q legend + * { clear: both; }
.ac-q__n { font-family: var(--font-mono); color: var(--muted); font-weight: 400; font-size: 0.9375rem; padding-top: 0.15em; }
.ac-q__sc { background: var(--surface); border-left: 3px solid var(--ink); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-size: 1rem; }
.ac-opts { display: grid; gap: var(--s-2); clear: both; }
.ac-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); background: var(--surface); border: var(--hair) solid var(--rule); cursor: pointer; min-height: 48px; }
.ac-opt:hover { border-color: var(--ink); }
.ac-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.ac-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.ac-order { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); counter-reset: o; clear: both; }
.ac-order li { counter-increment: o; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); background: var(--surface); border: var(--hair) solid var(--rule); }
.ac-order li::before { content: counter(o); font-family: var(--font-mono); color: var(--muted); }
.ac-order__b { display: flex; gap: 4px; }
.ac-order__b button { width: 44px; height: 44px; border: var(--hair) solid var(--rule); background: var(--paper); cursor: pointer; font-size: 1.125rem; }
.ac-order__b button:hover { border-color: var(--ink); }
.ac-fb { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--ink); background: var(--surface); }
.ac-fb.is-ok { border-left-color: var(--ok); } .ac-fb.is-bad { border-left-color: var(--danger); }
.ac-fb__h { font-weight: 700; } .ac-fb.is-ok .ac-fb__h { color: var(--ok); } .ac-fb.is-bad .ac-fb__h { color: var(--danger); }
.ac-fb p:last-child { margin-bottom: 0; }
.ac-quiz__go { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; border-top: var(--hair) solid var(--rule-strong); padding-top: var(--s-5); }
.ac-result { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border: 2px solid var(--ink); background: var(--surface); outline: none; }
.ac-result.is-pass { border-color: var(--ok); } .ac-result.is-fail { border-color: var(--danger); }
.ac-result h2 { font-size: 1.5rem; margin: 0 0 var(--s-2); }
.ac-panel { background: var(--surface); border: var(--hair) solid var(--rule); padding: var(--s-5); margin-top: var(--s-5); }
.ac-panel h2 { font-size: 1.1875rem; margin: 0 0 var(--s-3); }
.ac-panel--accent { border-color: var(--ink); border-top: 3px solid var(--accent); }
.ac-facts--app { margin-top: var(--s-4); }
.ac-form { display: grid; gap: var(--s-4); }
.ac-field { display: grid; gap: var(--s-2); }
.ac-field > span { font-weight: 600; font-size: 0.9375rem; }
.ac-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; }
.ac-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.ac-prefix { display: flex; align-items: stretch; border: var(--hair) solid #9C9EA3; background: var(--surface); }
.ac-prefix > span { padding: 0 var(--s-2) 0 var(--s-3); display: flex; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-mono); white-space: nowrap; }
.ac-prefix input { border: 0 !important; min-width: 0; }
@media (max-width: 499px) { .ac-prefix { flex-direction: column; } .ac-prefix > span { padding-top: var(--s-2); } }
.ac-req li { grid-template-columns: 22px minmax(0, 1fr) auto; }
.ac-score { display: flex; align-items: baseline; gap: var(--s-4); margin: var(--s-4) 0 var(--s-5); }
.ac-score b { font-size: clamp(3rem, 2rem + 4vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; color: var(--danger); }
.ac-score.is-pass b { color: var(--ok); }

.ac-exam-page .ac-foot { display: none; }
.ac-exam { max-width: 1120px; margin: 0 auto; padding: 0 var(--page-pad) var(--s-8); }
.ac-exam__bar { position: sticky; top: 60px; z-index: 10; background: var(--paper); display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; padding: var(--s-3) 0; border-bottom: var(--hair) solid var(--rule-strong); flex-wrap: wrap; }
.ac-timer { font-family: var(--font-mono); font-size: 1.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.ac-exam.is-low .ac-timer { color: var(--danger); }
.ac-exam__body { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
@media (min-width: 900px) { .ac-exam__body { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-7); } }
.ac-qnav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }
.ac-qnav button { width: 100%; min-height: 40px; border: var(--hair) solid var(--rule); background: var(--surface); font: 500 0.875rem var(--font-mono); cursor: pointer; position: relative; }
.ac-qnav button.is-ans { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ac-qnav button.is-flag::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; background: var(--accent); }
.ac-qnav button.is-cur { outline: 2px solid var(--accent); outline-offset: 1px; }
.ac-exam__q { min-width: 0; outline: none; }
.ac-x-stem { font-size: 1.3125rem; line-height: 1.4; margin: 0 0 var(--s-5); }
.ac-exam__foot { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-4); border-top: var(--hair) solid var(--rule); }
.ac-flag { grid-template-columns: 24px auto; }
.ac-review { margin-top: var(--s-6); padding: var(--s-5); border: 2px solid var(--ink); background: var(--surface); outline: none; }
.ac-review h2 { margin: 0 0 var(--s-3); font-size: 1.375rem; }
.ac-review__grid { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.ac-review__grid button { width: 100%; text-align: left; background: var(--paper); border: var(--hair) solid var(--rule); padding: var(--s-2) var(--s-3); font: inherit; font-size: var(--fs-small); cursor: pointer; min-height: 40px; }
.ac-review__grid button:not(.is-ans) { border-left: 3px solid var(--danger); }
.ac-review__grid button.is-flag { border-right: 3px solid var(--accent); }

/* credentials */
.ac-credlist { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.ac-cred { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); background: var(--surface); border: var(--hair) solid var(--rule); scroll-margin-top: 90px; }
.ac-cred:target { border-color: var(--ink); }
.ac-cred h2 { font-size: 1.3125rem; margin: 0 0 var(--s-2); }
.ac-cred__b svg { width: 140px; height: 140px; }
.ac-cred__a { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-3); }
.ac-cred.is-revoked, .ac-cred.is-expired { opacity: 0.75; }
@media (max-width: 599px) { .ac-cred { grid-template-columns: 1fr; } .ac-cred__b svg { width: 110px; height: 110px; } }

/* lab */
.ac-lab-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 900px) { .ac-lab-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
.ac-lab-grid .ac-panel { margin-top: 0; }
.ac-lab-grid > *, .ac-span2 { min-width: 0; }
.ac-big { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: var(--s-2) 0 !important; }
.ac-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ac-alert { background: var(--surface); border: var(--hair) solid var(--rule); border-left: 4px solid var(--muted); padding: var(--s-4); }
.ac-alert--high, .ac-alert--critical { border-left-color: var(--danger); }
.ac-alert--medium { border-left-color: var(--warn); }
.ac-alert h3 { font-size: 1.0625rem; margin: var(--s-1) 0 var(--s-2); }

@media (prefers-reduced-motion: reduce) { .ac-go, .ac-toast { transition: none; } }
@media print { .ac-top, .ac-foot, .ac-side, .ac-tabs, .ac-notes, .ac-done, .ac-pn, .ac-readbar, #pane-watch { display: none !important; } .ac-player { display: block; } }
/* ---------- responsive hardening (UI/UX pass 2026-12-02) ----------
   Root causes fixed here rather than per page: grid/flex children could not shrink below their longest word,
   codes such as CAS-O01 broke at the hyphen, and dense tables were squeezed on phones. */
.ac-app { overflow-wrap: break-word; }
.ac-app :is(.ac-wrap, .ac-player, .ac-lesson, .ac-panel, .ac-next, .ac-note, .ac-empty, .ac-result) { min-width: 0; }
.hero--page h1, .ac-course h3, .ac-course p, .ac-facts dd, .ac-badge-card b, .ac-syl, .ac-domains, .ac-ticks, .ac-list, .ac-card { overflow-wrap: break-word; }
.ac-course__b, .ac-syl__l li > span:first-child, .ac-domains li > *, .ac-facts > div { min-width: 0; }
.ac-syl__l .ac-meta { white-space: nowrap; flex: none; }
.ac-code-id, .ac-mono { white-space: nowrap; }
.ac-facts dd { font-variant-numeric: tabular-nums; }
.ac-card .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }

/* tap targets: 44px for every standalone control */
.ac-row-h > a, .ac-req li a, .ac-foot__in a { display: inline-flex; align-items: center; min-height: 44px; }
.ac-cred__links { line-height: 2.2; }
.ac-cred__links .ac-linkbtn { line-height: inherit; display: inline-block; min-height: 44px; }

/* rhythm: a heading that follows a panel gets the same space as a new block */
.ac-panel + :is(h2, h3, .ac-h2s, .ac-h3s) { margin-top: var(--s-7); }

/* anchors land below the sticky top bar (two rows on phones) */
html:has(> body.ac-app) { scroll-padding-top: 84px; }
@media (max-width: 699px) { html:has(> body.ac-app) { scroll-padding-top: 124px; } }

@media (max-width: 599px) {
  /* domain bars: name on its own line, then bar and figures, so long domain names never squeeze */
  .ac-domains li { grid-template-columns: minmax(0, 1fr) 3.2rem; row-gap: var(--s-2); }
  .ac-domains--app li { grid-template-columns: minmax(0, 1fr) 3rem 3rem; }
  .ac-domains li > span:first-child { grid-column: 1 / -1; }
  /* credential actions: one full-width button per row, same width, easy to hit */
  .ac-cred__a .btn { flex: 1 1 100%; }
  .ac-cred { padding: var(--s-4); }
  .ac-next { padding: var(--s-5); }
  .ac-result { padding: var(--s-5); }
  /* tables marked .ac-stack become labelled rows instead of a squeezed grid */
  .ac-stack thead { display: none; } /* each cell carries its column name as a visible label */
  .ac-stack, .ac-stack tbody, .ac-stack tr, .ac-stack th, .ac-stack td { display: block; width: 100%; }
  .ac-stack tr { padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--rule); }
  .ac-stack tbody th, .ac-stack td { border: 0 !important; padding: 2px 0 !important; }
  .ac-stack tbody th { font-size: 1.0625rem; padding-bottom: var(--s-2) !important; }
  .ac-stack td[data-label] { display: grid; grid-template-columns: minmax(7.5em, 38%) minmax(0, 1fr); gap: var(--s-3); }
  .ac-stack td[data-label]::before { content: attr(data-label); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); padding-top: 0.2em; }
  .ac-tscroll:has(> .ac-stack), .tscroll:has(> .ac-stack) { overflow: visible; }
}

/* credential ID on the result page moves to the next line whole instead of splitting */
.ac-panel--accent p { overflow-wrap: break-word; word-break: normal; }

/* lab key panel (2 Dec 2026) */
.ac-lk-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0; }
.ac-lk-out { margin-top: var(--s-4); }
.ac-lk-out dl { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: var(--s-2) var(--s-3); align-items: center; margin: 0; }
.ac-lk-out dt { font-weight: 600; }
.ac-lk-out dd { margin: 0; min-width: 0; }
.ac-lk-val { display: block; font-family: var(--font-mono); font-size: 0.875rem; overflow-wrap: anywhere; background: var(--surface); border: var(--hair) solid var(--rule); padding: var(--s-1) var(--s-2); }
.ac-lk-warn { margin-top: var(--s-3); }
@media (max-width: 640px) { .ac-lk-out dl { grid-template-columns: minmax(0, 1fr); } }

/* Academy for organisations: team page, sign-up form, assigned paths, www /academy/teams (2 Dec 2026) */
.ac-team-2 { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.ac-team-short { max-width: 260px; }
.ac-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.ac-fs legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: var(--s-2); }
.ac-team-cks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ac-team-t td { min-width: 110px; }
.ac-team-cs { list-style: none; margin: var(--s-1) 0 0; padding: 0; display: grid; gap: var(--s-3); min-width: 200px; }
.ac-team-cs li { display: grid; gap: 3px; }
.ac-team-late { color: var(--danger); }
.ac-team-act details { min-width: 240px; }
.ac-team-act .ac-linkbtn { margin-top: var(--s-2); }
.ac-pre { white-space: pre-wrap; margin-top: var(--s-2); overflow-wrap: anywhere; }
.ac-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ac-assigned h3 { margin: 0 0 var(--s-2); font-size: 1.1875rem; }
.ac-assigned .ac-progress-list { margin-top: var(--s-4); }
.ac-teams-ways { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: var(--s-5); border-top: var(--hair) solid var(--rule-strong); }
.ac-teams-ways > div { padding-top: var(--s-5); min-width: 0; }
.ac-teams-ways h3 { margin: 0 0 var(--s-3); }

/* sample certificate preview on course and certification pages */
.ac-certprev__fig { margin: 0; min-width: 0; }
.ac-certprev__fig img { display: block; width: 100%; height: auto; border: 1px solid var(--rule, #D6D6D0); background: #fff; }
.ac-certprev__fig figcaption { font-size: .875rem; color: var(--muted, #5E6168); margin-top: 8px; }
#ac-team .ac-tscroll { position: relative; }   /* keeps the visually hidden header inside the scroller */

/* the hidden attribute always wins over button display rules (Lab: Revoke my key with no key) */
.ac-app [hidden], .ac-wrap [hidden] { display: none !important; }
