@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --ink: #193a3c;
  --ink-soft: #496465;
  --teal: #147d78;
  --teal-deep: #105c5b;
  --teal-wash: #e6f2ef;
  --paper: #f4f6f1;
  --card: #fffefa;
  --line: #d5e1dc;
  --muted: #70827e;
  --gold: #d59d43;
  --gold-wash: #f8f0dd;
  --red: #a54839;
  --green: #2e7559;
  --shadow: 0 14px 38px rgba(26, 64, 60, .08);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-shell { min-height: 100dvh; }
.topbar {
  height: 72px; padding: 0 clamp(18px, 5vw, 76px); display: flex;
  align-items: center; justify-content: space-between; gap: 20px;
  background: #fffefa; border-bottom: 1px solid var(--line);
}
.brand { display:flex; align-items:center; gap:13px; text-decoration:none; }
.brand img { width: 132px; max-height: 42px; object-fit:contain; }
.brand-rule { height: 28px; border-left:1px solid var(--line); }
.brand-caption { font-size:12px; color:var(--ink-soft); letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
.topbar-note { color:var(--muted); font-size:13px; }
.hero {
  background: var(--teal-deep); color:#f6f5eb; overflow:hidden; position:relative;
  padding: clamp(42px, 7vw, 92px) clamp(20px, 9vw, 140px) 48px;
}
.hero::after {
  content:""; position:absolute; width:410px; height:410px; border:1px solid rgba(223,193,124,.25);
  border-radius:50%; right:-95px; top:-175px; box-shadow:0 0 0 36px rgba(223,193,124,.035),0 0 0 78px rgba(223,193,124,.025);
  pointer-events:none;
}
.hero-grid { max-width:1210px; margin:auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,310px); align-items:center; gap:42px; position:relative; z-index:1; }
.eyebrow { color:#ddbf79; font:600 11px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.16em; }
h1,h2,h3,h4,p { margin-top:0; }
.hero h1 { max-width:760px; margin:16px 0 18px; font-size:clamp(36px,5vw,64px); line-height:1.04; letter-spacing:-.045em; font-weight:600; }
.hero p { max-width:640px; margin:0; color:#d2e0d9; line-height:1.75; font-size:16px; }
.hero-art { width:100%; max-height:250px; object-fit:contain; filter:drop-shadow(0 18px 22px rgba(0,0,0,.22)); }
.hero-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.meta-pill { padding:8px 12px; border:1px solid rgba(224,237,230,.28); border-radius:3px; font:500 11px "IBM Plex Mono",monospace; color:#e6eee9; letter-spacing:.035em; }
.layout { max-width:1310px; margin:0 auto; padding:34px clamp(16px,4vw,58px) 80px; display:grid; grid-template-columns:250px minmax(0,1fr); gap:34px; align-items:start; }
.rail { position:sticky; top:20px; }
.rail-card { background:#e9f0eb; border:1px solid var(--line); padding:19px; }
.rail-label { font:600 10px "IBM Plex Mono",monospace; color:var(--muted); letter-spacing:.15em; text-transform:uppercase; margin:0 0 13px; }
.module-nav { display:grid; gap:4px; }
.module-nav button { text-align:left; border:0; border-left:2px solid transparent; padding:9px 10px; background:transparent; color:var(--ink-soft); font-size:12px; line-height:1.45; }
.module-nav button:hover,.module-nav button.is-active { border-left-color:var(--teal); color:var(--teal-deep); background:rgba(255,255,255,.65); }
.rail-progress { margin-top:18px; padding-top:15px; border-top:1px solid var(--line); }
.progress-copy { display:flex; justify-content:space-between; font:500 10px "IBM Plex Mono",monospace; color:var(--muted); margin-bottom:8px; }
.progress-track { height:4px; background:#d3dfd9; overflow:hidden; }
.progress-track span { display:block; height:100%; background:var(--teal); width:0; transition:width .25s ease; }
.main-column { min-width:0; }
.intro-strip { display:flex; gap:16px; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); padding:0 0 18px; margin-bottom:23px; }
.intro-strip h2 { margin:0; font-size:19px; letter-spacing:-.025em; }
.intro-strip p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.text-button { border:0; background:transparent; color:var(--teal-deep); font-size:12px; font-weight:700; padding:9px 0; }
.module-card { background:var(--card); border:1px solid var(--line); margin-bottom:13px; box-shadow:0 3px 12px rgba(26,64,60,.025); }
.module-heading { display:flex; gap:16px; align-items:center; padding:19px 20px; cursor:pointer; list-style:none; }
.module-heading::-webkit-details-marker { display:none; }
.module-heading::marker { content:""; }
.module-number { flex:none; width:33px; height:33px; display:grid; place-items:center; background:var(--teal-wash); color:var(--teal-deep); font:600 12px "IBM Plex Mono",monospace; }
.module-title { flex:1; }
.module-title h3 { margin:0; font-size:16px; font-weight:600; }
.module-title small { display:block; margin-top:4px; font:11px "IBM Plex Mono",monospace; color:var(--muted); }
.module-chevron { color:var(--teal); font-size:20px; transition:transform .2s; }
details[open] .module-chevron { transform:rotate(90deg); }
.module-body { border-top:1px solid var(--line); padding:8px clamp(16px,3vw,32px) 26px; }
.course-section { padding:20px 0 22px; border-bottom:1px solid #e9efeb; }
.course-section:last-child { border-bottom:0; }
.course-section h4 { font-size:15px; margin:0 0 11px; letter-spacing:-.015em; }
.markdown { color:#425c5a; font-size:14px; line-height:1.75; }
.markdown p { margin:0 0 12px; }
.markdown p:last-child { margin-bottom:0; }
.markdown ul,.markdown ol { padding-left:22px; margin:4px 0 14px; }
.markdown li { padding-left:4px; margin:4px 0; }
.markdown strong { color:var(--ink); font-weight:700; }
.markdown table { width:100%; border-collapse:collapse; margin:14px 0; font-size:13px; }
.markdown th,.markdown td { text-align:left; padding:9px 11px; border:1px solid var(--line); vertical-align:top; }
.markdown th { background:#e8f1ed; color:var(--teal-deep); font-weight:700; }
.reference-chart { margin:18px 0 2px; border:1px solid #cbdcd5; background:#eff5f0; }
.chart-top { padding:13px 16px; background:#dfece6; display:flex; justify-content:space-between; gap:16px; align-items:baseline; }
.chart-top h5 { margin:0; font-size:13px; color:var(--teal-deep); }
.chart-top code { font:500 12px "IBM Plex Mono",monospace; color:#87692d; }
.chart-example { padding:14px 16px; background:#fcfcf6; border-bottom:1px solid var(--line); font:600 16px "IBM Plex Mono",monospace; letter-spacing:.04em; color:var(--ink); }
.chart-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
.chart-cell { padding:12px 14px; min-height:91px; border-right:1px solid #dce7e1; border-bottom:1px solid #dce7e1; }
.chart-cell code { color:var(--teal-deep); font:600 11px "IBM Plex Mono",monospace; }
.chart-cell strong { display:block; margin:5px 0; font-size:12px; }
.chart-cell p { margin:0; white-space:pre-line; font-size:11px; line-height:1.55; color:var(--ink-soft); }
.tool-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-top:18px; }
.tool-card { display:flex; flex-direction:column; border:1px solid var(--line); background:#f9fbf7; text-decoration:none; transition:transform .18s, border-color .18s; }
.tool-card:hover { transform:translateY(-2px); border-color:var(--teal); }
.tool-card img { width:100%; height:145px; padding:12px; object-fit:contain; background:#e8efea; }
.tool-card-copy { padding:13px 14px 15px; }
.tool-card-copy h5 { margin:0 0 6px; font-size:14px; }
.tool-card-copy p { margin:0; font-size:12px; line-height:1.55; color:var(--ink-soft); }
.tool-features { margin:10px 0 0; padding-left:16px; font-size:11px; color:var(--muted); }
.supplemental { margin-top:46px; }
.section-kicker { color:var(--teal); font:600 10px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.15em; margin-bottom:9px; }
.section-title { font-size:27px; margin:0 0 8px; letter-spacing:-.035em; }
.section-lede { color:var(--muted); font-size:13px; line-height:1.6; margin:0 0 20px; }
.best-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:11px; }
.best-card { background:#fffefa; border:1px solid var(--line); padding:16px; }
.best-card h3 { font-size:13px; margin:0 0 10px; }
.best-card ul { list-style:none; padding:0; margin:0; }
.best-card li { font-size:12px; line-height:1.55; padding:7px 0 7px 17px; position:relative; color:var(--ink-soft); border-top:1px solid #edf1ee; }
.best-card li::before { content:""; position:absolute; left:0; top:13px; width:7px; height:7px; border:1px solid var(--teal); border-radius:50%; }
.quick-table { width:100%; border-collapse:collapse; background:#fffefa; border:1px solid var(--line); }
.quick-table th,.quick-table td { border-bottom:1px solid #e5ece7; padding:11px 14px; text-align:left; vertical-align:top; font-size:12px; }
.quick-table th { color:var(--muted); font:600 10px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.1em; background:#eaf1ec; }
.quick-table td:first-child { width:34%; font-weight:700; color:var(--ink); }
.quick-table td:last-child { color:var(--ink-soft); white-space:pre-line; }
.resource-list { display:grid; gap:9px; }
.resource-link { padding:14px 16px; border:1px solid var(--line); background:#fffefa; text-decoration:none; display:flex; justify-content:space-between; gap:16px; }
.resource-link:hover { border-color:var(--teal); }
.resource-link strong { display:block; font-size:13px; }
.resource-link span { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.resource-tag { align-self:center; color:var(--teal-deep); font:500 10px "IBM Plex Mono",monospace; text-transform:uppercase; }
.exam-panel { margin-top:48px; padding:clamp(22px,4vw,38px); background:#e6efe9; border:1px solid #cadbd2; position:relative; }
.exam-panel h2 { font-size:26px; letter-spacing:-.035em; margin:0 0 8px; }
.exam-panel > p { color:var(--ink-soft); font-size:13px; line-height:1.65; max-width:700px; }
.exam-facts { display:flex; gap:18px; flex-wrap:wrap; margin:16px 0 20px; color:var(--teal-deep); font:500 11px "IBM Plex Mono",monospace; }
.primary-button,.secondary-button { display:inline-flex; justify-content:center; align-items:center; gap:9px; border:1px solid var(--teal-deep); padding:12px 18px; font-size:13px; font-weight:700; text-decoration:none; transition:background .15s,color .15s; }
.primary-button { background:var(--teal-deep); color:white; }
.primary-button:hover { background:#0a4e4c; }
.primary-button:disabled { opacity:.5; cursor:not-allowed; }
.secondary-button { background:transparent; color:var(--teal-deep); }
.secondary-button:hover { background:#d7e7df; }
.notice { padding:13px 15px; border-left:3px solid var(--gold); background:var(--gold-wash); color:#64512e; font-size:12px; line-height:1.6; margin:15px 0; }
.notice.critical { border-color:var(--red); background:#f7eae5; color:#74473f; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin:21px 0; }
.field { display:grid; gap:5px; }
.field.wide { grid-column:1/-1; }
.field label { color:var(--ink-soft); font-size:11px; font-weight:700; }
.field input,.field select { width:100%; min-height:42px; padding:10px 11px; border:1px solid #bfd1c9; background:#fffefa; color:var(--ink); border-radius:0; outline:none; }
.field input:focus,.field select:focus { border-color:var(--teal); box-shadow:0 0 0 2px rgba(20,125,120,.12); }
.fine-print { color:var(--muted); font-size:11px; line-height:1.65; max-width:790px; }
.status-message { margin:14px 0; padding:12px 14px; background:#fffefa; border:1px solid var(--line); font-size:13px; line-height:1.55; }
.status-message.error { color:var(--red); border-color:#d9b7ad; background:#fff6f2; }
.status-message.success { color:var(--green); border-color:#bdd4c6; background:#f2f8f2; }
.exam-shell,.result-shell { margin-top:30px; padding:clamp(20px,4vw,36px); background:#fffefa; border:1px solid var(--line); }
.exam-topline { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding-bottom:18px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.exam-topline h2 { margin:0; font-size:23px; }
.timer { flex:none; color:var(--teal-deep); font:600 12px "IBM Plex Mono",monospace; padding:9px 11px; background:var(--teal-wash); }
.timer.expiring { color:var(--red); background:#f7eae5; }
.question { padding:18px 0; border-bottom:1px solid #e8efea; }
.question:last-of-type { border-bottom:0; }
.question-kicker { color:var(--teal); font:500 10px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.1em; margin-bottom:8px; }
.question h3 { font-size:15px; line-height:1.55; margin:0 0 12px; }
.choice { display:flex; align-items:flex-start; gap:10px; padding:9px 10px; margin:5px 0; background:#f4f7f2; border:1px solid transparent; font-size:13px; line-height:1.5; cursor:pointer; }
.choice:has(input:checked) { background:#e4f0eb; border-color:#8dbeb1; }
.choice input { accent-color:var(--teal); margin-top:3px; }
.exam-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:23px; }
.exam-actions p { margin:0; color:var(--muted); font-size:12px; }
.result-score { display:grid; grid-template-columns:120px 1fr; gap:22px; align-items:center; margin:24px 0; }
.score-mark { width:112px; height:112px; display:grid; place-items:center; border:3px solid var(--teal); border-radius:50%; color:var(--teal-deep); font:600 25px "IBM Plex Mono",monospace; }
.score-mark.fail { border-color:var(--red); color:var(--red); }
.result-title { font-size:23px; margin:0 0 5px; }
.result-copy { color:var(--ink-soft); font-size:13px; line-height:1.65; margin:0; }
.graded-list { margin-top:20px; border-top:1px solid var(--line); }
.graded-item { padding:14px 0; border-bottom:1px solid #e8efea; }
.graded-item strong { display:block; font-size:12px; margin-bottom:4px; }
.graded-item p { margin:0; font-size:12px; color:var(--ink-soft); line-height:1.6; }
.certificate-actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.retrieve-box { padding:18px; background:#edf3ee; border:1px solid var(--line); margin-top:21px; }
.retrieve-box h3 { font-size:15px; margin:0 0 5px; }
.retrieve-box p { font-size:12px; color:var(--ink-soft); margin:0 0 12px; }
.retrieve-row { display:flex; gap:9px; max-width:570px; }
.retrieve-row input { flex:1; min-width:0; border:1px solid #bfd1c9; padding:10px; background:#fffefa; }
.footer { text-align:center; padding:28px 20px 35px; color:var(--muted); font-size:11px; border-top:1px solid var(--line); }
.skeleton { min-height:140px; background:linear-gradient(90deg,#e9efeb 25%,#f4f6f1 48%,#e9efeb 70%); background-size:200% 100%; animation:skeleton 1.4s ease-in-out infinite; }
@keyframes skeleton { to { background-position:-200% 0; } }
.fade-in { animation:appear .35s ease both; }
@keyframes appear { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:800px) {
  .hero-grid { grid-template-columns:1fr; gap:25px; }
  .hero-art { position:absolute; right:0; bottom:5px; width:155px; max-height:145px; opacity:.55; }
  .hero-grid > div { padding-right:50px; }
  .layout { grid-template-columns:1fr; }
  .rail { position:static; }
  .module-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .module-nav button { font-size:11px; }
}
@media (max-width:540px) {
  .topbar { height:60px; padding:0 15px; }
  .brand img { width:106px; }
  .topbar-note { display:none; }
  .hero { padding:39px 20px 37px; }
  .hero h1 { font-size:38px; }
  .hero-grid > div { padding-right:0; }
  .hero-art { opacity:.2; }
  .layout { padding:22px 14px 55px; gap:22px; }
  .module-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .module-heading { padding:15px 13px; gap:11px; }
  .module-title h3 { font-size:14px; }
  .form-grid { grid-template-columns:1fr; }
  .field.wide { grid-column:auto; }
  .exam-topline { flex-direction:column; }
  .exam-actions { align-items:stretch; flex-direction:column; }
  .exam-actions .primary-button { width:100%; }
  .result-score { grid-template-columns:82px 1fr; gap:14px; }
  .score-mark { width:78px; height:78px; font-size:19px; }
  .retrieve-row { flex-direction:column; }
  .quick-table td:first-child { width:40%; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
