:root {
  color-scheme: light;
  --ink: #242121;
  --paper: #ffffff;
  --ground: #fff0e5;
  --muted: #6f6967;
  --line: #292525;
  --wash: #f6f6f6;
  --danger: #242121;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 3rem;
}
.brand { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
nav { align-items: center; display: flex; gap: 2rem; }
nav a, .nav-login { background: transparent; border: 0; cursor: pointer; font-size: .93rem; padding: .5rem 0; text-decoration: none; }
.nav-login { border: 1px solid var(--line); border-radius: 8px; padding: .45rem 1.15rem; }

.hero { margin: 0 auto; max-width: 1120px; padding: 6.4rem 1.5rem 5.2rem; text-align: center; }
.eyebrow { color: var(--muted); font-size: .85rem; letter-spacing: .04em; margin: 0 0 .85rem; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.18; margin-bottom: 1.25rem; }
.hero-copy { color: var(--muted); font-size: 1.1rem; line-height: 1.55; margin: 0 auto 3.1rem; max-width: 570px; }
.role-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 860px; text-align: left; }
.role-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; text-align: center; }
.role-icon { align-items: center; background: var(--wash); border: 1px solid var(--line); border-radius: 50%; display: flex; font-size: 1.4rem; height: 40px; justify-content: center; width: 40px; }
.role-card h2 { font-size: 1.45rem; font-weight: 500; margin: 1.6rem 0 .55rem; }
.role-card p { color: var(--muted); line-height: 1.5; min-height: 48px; }
.button { border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; min-height: 48px; padding: .75rem 1.25rem; }
.button-dark { align-items: center; background: var(--ink); color: var(--paper); display: inline-flex; justify-content: center; text-decoration: none; width: 100%; }
.button:hover, .button:focus-visible, .nav-login:hover, .nav-login:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.curator-note { color: var(--muted); font-size: .92rem; margin: 2rem 0 0; }

.how-section { background: var(--paper); border-top: 1px solid var(--line); padding: 5.5rem max(1.5rem, calc((100vw - 1040px) / 2)); text-align: center; }
.how-section h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: 2.6rem; }
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; text-align: left; }
.steps li { border: 1px solid var(--line); border-radius: 18px; min-height: 180px; padding: 1.5rem; }
.steps span { align-items: center; background: var(--ink); border-radius: 8px; color: var(--paper); display: inline-flex; font-size: .88rem; height: 30px; justify-content: center; margin-bottom: 1.1rem; width: 30px; }
.steps strong { display: block; font-size: 1.05rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: .6rem 0 0; }
.registration-section { align-items: start; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 4rem; grid-template-columns: minmax(0, .85fr) minmax(430px, 1fr); padding: 5.5rem max(1.5rem, calc((100vw - 1040px) / 2)); }
.registration-copy { padding-top: 2rem; }
.registration-copy h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: 1rem; }
.registration-copy p, .registration-copy li { color: var(--muted); line-height: 1.55; }
.registration-copy ul { padding-left: 1.25rem; }
.registration-copy li + li { margin-top: .55rem; }
.registration-form { border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.role-switch { display: flex; margin-bottom: 1.8rem; }
.role-choice { background: var(--paper); border: 1px solid var(--line); cursor: pointer; flex: 1; min-height: 46px; }
.role-choice:first-child { border-radius: 8px 0 0 8px; }
.role-choice:last-child { border-left: 0; border-radius: 0 8px 8px 0; }
.role-choice.is-selected { background: var(--ink); color: var(--paper); }
.registration-form label:not(.consent) { display: block; font-size: .9rem; font-weight: 600; margin: 1rem 0 .45rem; }
.registration-form input[type="email"], .registration-form input[type="password"] { border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: .7rem .8rem; width: 100%; }
.password-field { position: relative; }
.password-field input { padding-right: 5.4rem !important; }
.password-toggle { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: .78rem; padding: .5rem; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); }
.consent { align-items: center; display: flex; font-size: .88rem; gap: .65rem; margin-top: .85rem; }
.consent input { accent-color: var(--ink); height: 18px; margin: 0; width: 18px; }
.consent a { text-underline-offset: 2px; }
.field-error { color: var(--danger); font-size: .8rem; line-height: 1.25; margin: .35rem 0 0; min-height: 1em; }
.button-wide { margin-top: 1.3rem; }
.form-note, .form-message { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 1rem 0 0; text-align: center; }
.form-message { color: var(--ink); font-weight: 600; min-height: 1.2em; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; padding: 1.2rem 1.5rem; text-align: center; }

@media (max-width: 760px) {
  .topbar { padding: 0 1.15rem; }
  nav { gap: 1rem; }
  nav a:first-child { display: none; }
  .hero { padding: 4.5rem 1.15rem 4rem; text-align: left; }
  .hero-copy { margin-left: 0; }
  .role-cards, .registration-section, .steps { grid-template-columns: 1fr; }
  .role-cards { gap: 1rem; }
  .role-card { min-height: 0; padding: 1.5rem; }
  .role-card h2 { margin-top: 1rem; }
  .registration-section { gap: 1rem; padding: 3.5rem 1.15rem; }
  .registration-copy { padding: 0; }
  .registration-form { padding: 1.25rem; }
}

@media (max-width: 390px) {
  nav a { display: none; }
  h1 { font-size: 2.45rem; }
}

[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.auth-page { padding: 60px 20px; }
.auth-card { max-width: 480px; margin: auto; background: white; }
.page-title { font-size: 26px; margin: 0 0 24px; }
.small-copy { font-size: 13px; color: var(--muted); line-height: 1.55; }
.text-link { color: inherit; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.preview-disclaimer { border-top: 1px solid #bbb; padding-top: 16px; margin-top: 22px; }
dialog { max-width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 28px; line-height: 1.6; }
dialog::backdrop { background: #0005; }
.onboarding-page { max-width: 1080px; padding: 48px 24px; margin: auto; text-align: center; }
.education-symbol { width: 50px; height: 46px; background: var(--ink); color: white; border-radius: 9px; margin: 0 auto 24px; display: grid; place-items: center; }
.education-symbol svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.onboarding-title { font-size: 28px; font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }
.onboarding-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.preview-banner { border: 1px dashed var(--line); border-radius: 10px; font-size: 12px; padding: 10px; margin-bottom: 24px; background: white; }
.profession-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 40px 0 24px; }
.profession-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 150px; border: 1px solid var(--line); border-radius: 18px; padding: 18px 10px; background: var(--wash); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1.4; }
.profession-card .profession-number { font-size: 22px; font-weight: 400; color: #666; }
.profession-card[aria-pressed="true"] { background: var(--ink); color: white; }
.profession-card[aria-pressed="true"] .profession-number { color: white; }
.selection-bar { display: flex; max-width: 620px; align-items: center; justify-content: space-between; gap: 24px; margin: 32px auto 20px; }
.selection-bar .button { width: auto; min-width: 220px; }
.selection-bar p { margin: 0; font-size: 14px; }
.course-page { max-width: 800px; }
.training-notice { border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; text-align: left; background: var(--wash); padding: 14px; margin-bottom: 20px; }
.number-tile { width: 44px; height: 44px; background: var(--ink); color: white; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 20px; }
.training-notice h2, .module-heading h2 { font-size: 15px; margin: 0 0 4px; }
.training-notice p, .module-heading p { font-size: 13px; margin: 0; line-height: 1.45; }
.training-notice label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
progress { display: block; appearance: none; width: 100%; height: 9px; border: 1px solid var(--ink); border-radius: 6px; background: #ddd; overflow: hidden; }
progress::-webkit-progress-bar { background: #ddd; }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }
.module-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--wash); text-align: left; margin-bottom: 14px; }
.module-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.status-pill { border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 11px; margin-left: auto; text-align: center; flex-shrink: 0; }
.lesson-block { border: 1px solid var(--line); border-radius: 16px; background: white; margin: 8px 0; overflow: hidden; }
summary { cursor: pointer; padding: 14px 16px; font-size: 14px; }
.lesson-content { border: 0; padding: 0 18px 16px; font-size: 13px; line-height: 1.6; min-width: 0; }
.lesson-content p:last-child { margin-bottom: 0; }
.lesson-content textarea { display: block; width: 100%; border: 1px solid #777; border-radius: 9px; padding: 12px; margin-top: 12px; resize: vertical; font: inherit; }
.lesson-content legend { padding-top: 8px; }
.test-answer { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
input[type="radio"] { accent-color: var(--ink); }
.submit-training { margin-top: 16px; }
.locked-module { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); margin: 12px 0; padding: 14px; font-size: 13px; }
.locked-module p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.locked-module > span:last-child { margin-left: auto; font-size: 11px; }
.course-footnote { margin-top: 24px; }
@media(max-width: 900px) { .profession-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width: 540px) { .profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .onboarding-page { padding: 32px 16px; } .onboarding-title { font-size: 24px; } .selection-bar { flex-direction: column; gap: 14px; } .selection-bar .button { width: 100%; } .module-heading { flex-wrap: wrap; gap: 10px; } .module-heading > div { flex: 1; } .status-pill { margin-left: 54px; } .training-notice { gap: 10px; } .auth-page { padding: 32px 16px; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.registration-form > select { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: white; min-height: 44px; padding: 10px 14px; }
.mfa-qr { display: block; width: 240px; max-width: 100%; margin: 20px auto; border: 1px solid var(--line); border-radius: 12px; }
.registration-form code { overflow-wrap: anywhere; }
.registration-form pre { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px; line-height: 1.7; white-space: pre-wrap; }
