/* =========================================================
   Capital Wake - examination centre + certificate
   Extends styles.css. The exam page deliberately swaps the
   marketing chrome for a focused, testing-centre shell.
   ========================================================= */

.exam-body { background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
.exam-main { flex: 1; }
.hidden { display: none !important; }

/* ---------- slim exam header ---------- */
.exam-top { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.exam-top-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  min-height: 66px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.exam-top-inner .brand { justify-self: start; }
.exam-top .brand .mark { width: 32px; height: 32px; }
.exam-top .wordmark b { font-size: 18px; }
.exam-top-mid { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.exam-top-right { display: flex; align-items: center; gap: 16px; justify-self: end; }
.exam-candidate { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.demo-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-deep); border: 1px solid var(--brass); border-radius: 999px; padding: 5px 12px;
  visibility: visible; /* stays visible even while the surrounding header region is hidden pre-exam */
}
.timer-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px;
  transition: background .25s ease;
}
.timer-pill svg { width: 15px; height: 15px; }
.timer-pill b { font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .04em; min-width: 48px; text-align: right; }
.timer-pill.low { background: #8C2F23; }

/* hide candidate/timer until the exam starts */
.exam-body:not(.in-exam) .exam-top-right, .exam-body:not(.in-exam) .exam-top-mid { visibility: hidden; }
body.in-exam .exam-top-right, body.in-exam .exam-top-mid { visibility: visible; }

/* ---------- screens ---------- */
.exam-screen { display: none; }
.exam-screen.active { display: block; }
.exam-narrow { max-width: 820px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); }

/* ---------- stepper ---------- */
.exam-stepper { display: flex; gap: 0; border: 1px solid var(--line); background: #fff; margin-bottom: 38px; }
.exam-stepper .st {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line);
}
.exam-stepper .st:last-child { border-right: 0; }
.exam-stepper .st b {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; font-size: 12px; color: var(--muted); font-weight: 700;
}
.exam-stepper .st.current { color: var(--navy); box-shadow: inset 0 -2px 0 var(--brass); }
.exam-stepper .st.current b { background: var(--navy); border-color: var(--navy); color: #fff; }
.exam-stepper .st.done { color: var(--ink); }
.exam-stepper .st.done b { background: #EAF4EC; border-color: #C2DEC9; color: #2F7A45; }

/* ---------- details screen ---------- */
.exam-reassure { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 38px; }
.exam-reassure > div { padding: 20px 22px 4px; border-right: 1px solid var(--line); }
.exam-reassure > div:first-child { padding-left: 0; }
.exam-reassure > div:last-child { border-right: 0; }
.exam-reassure b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); display: block; line-height: 1; }
.exam-reassure span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- rules screen ---------- */
.rules-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass); }
.rule { display: flex; gap: 20px; padding: 22px clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--text); }
.rule:last-child { border-bottom: 0; }
.rule b { color: var(--ink); }
.rule-n { font-family: var(--serif); font-weight: 600; color: var(--brass); font-size: 17px; min-width: 26px; line-height: 1.55; }
.rules-agree {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  padding: 18px 20px; font-size: 15.5px; color: var(--text); cursor: pointer;
}
.rules-agree input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--navy); flex: none; }
#btn-begin-exam:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- exam layout ---------- */
.exam-layout {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 280px; gap: clamp(28px, 4vw, 56px); align-items: start;
}

/* progress */
.exam-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.exam-progress-track { flex: 1; height: 4px; background: var(--line-soft); position: relative; overflow: hidden; }
#exam-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass); transition: width .3s ease; }
.exam-progress-text { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }

/* question card */
.q-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: clamp(26px, 4vw, 44px); }
.q-eyebrow { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.q-text { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 16px; }
.q-options { margin-top: 28px; display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; text-align: left;
  background: #fff; border: 1px solid #CFD3D9; border-radius: var(--r-sm);
  padding: 15px 18px; font-size: 16.5px; color: var(--text); line-height: 1.5;
  transition: border-color .15s ease, background .15s ease;
}
.opt { transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease; }
.opt:hover { border-color: var(--navy); transform: translateX(2px); }
.opt-letter {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border: 1px solid #CFD3D9; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted);
  transition: all .15s ease; margin-top: -1px;
}
.opt-text { padding-top: 2px; }
.opt.selected { border-color: var(--navy); background: #F2F6FA; color: var(--ink); box-shadow: inset 3px 0 0 var(--navy); }
.opt.selected .opt-letter { background: var(--navy); border-color: var(--navy); color: #fff; }

/* controls */
.exam-controls { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.exam-controls .btn { min-width: 130px; }
#btn-next, #btn-finish { margin-left: auto; }
.flag-btn {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent;
  padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: var(--r-sm);
  transition: color .15s ease;
}
.flag-btn svg { width: 15px; height: 15px; }
.flag-btn:hover { color: var(--brass-deep); }
.flag-btn.on { color: var(--brass-deep); }
.flag-btn.on svg path { fill: currentColor; }
.kbd-hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
.kbd-hint kbd {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; background: #fff;
}

/* ---------- palette sidebar ---------- */
.exam-side { position: sticky; top: calc(66px + 24px); }
.palette { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: 22px; }
.palette h3 { font-size: 1.05rem; }
.palette-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.pal {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #CFD3D9; background: #fff; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  transition: all .12s ease;
}
.pal:hover { border-color: var(--navy); color: var(--navy); }
.pal.answered { background: var(--navy); border-color: var(--navy); color: #fff; }
.pal.current { outline: 2px solid var(--brass); outline-offset: 1px; }
.pal.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.pal.answered.flagged::after { background: var(--brass-soft); }
.palette-key { margin-top: 16px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.palette-key span { display: flex; align-items: center; gap: 9px; }
.palette-key .k { width: 13px; height: 13px; border-radius: 2px; border: 1px solid #CFD3D9; }
.palette-key .k-answered { background: var(--navy); border-color: var(--navy); }
.palette-key .k-flagged { background: var(--brass); border-color: var(--brass); }
.palette .btn { margin-top: 20px; }

/* ---------- confirm employer ---------- */
.emp-error { color: #8C2F23; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.emp-confirm {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass);
  padding: clamp(30px, 5vw, 48px); margin-top: 28px; text-align: center;
}
.emp-confirm-eyebrow {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 22px;
}
.emp-logo-wrap { display: flex; justify-content: center; align-items: center; min-height: 64px; }
.emp-logo-wrap img { width: 64px; height: 64px; object-fit: contain; }
.emp-name { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 14px; color: var(--ink); }
.emp-ask { font-size: 1.1rem; color: var(--text); margin: 18px 0 26px; }

/* ---------- assessing (loading result) ---------- */
#screen-assessing.active { display: flex; min-height: calc(100vh - 66px); align-items: center; justify-content: center; }
.assess-wrap { max-width: 540px; width: 100%; padding: 40px var(--gutter); text-align: center; }
.assess-mark svg { width: 56px; height: 56px; margin: 0 auto 28px; display: block; animation: assess-pulse 1.8s ease-in-out infinite; }
@keyframes assess-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: .85; } }
.assess-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.assess-bar { height: 5px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 22px 0 16px; }
.assess-bar #assess-bar-fill { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 999px; transition: width 1.5s cubic-bezier(.4, 0, .2, 1); }
.assess-sub { font-size: 15px; color: var(--muted); }

/* ---------- final video question ---------- */
.vid-layout { max-width: 860px; margin-inline: auto; padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(48px, 6vw, 80px); }
.vid-sub { color: var(--text); font-size: 16px; margin-top: 14px; max-width: 60ch; }
.vid-stage {
  position: relative; margin-top: 24px; background: #0B1F33; border: 1px solid var(--line);
  border-top: 3px solid var(--brass); aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
}
.vid-stage video { width: 100%; height: 100%; object-fit: cover; background: #0B1F33; transform: scaleX(-1); }
.vid-stage #vid-playback { transform: none; } /* don't mirror playback */
.vid-recdot {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(140,47,35,.92); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px;
}
.vid-recdot span { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: vid-blink 1s steps(2, start) infinite; }
@keyframes vid-blink { 50% { opacity: 0; } }
.vid-timer-badge {
  position: absolute; bottom: 14px; right: 14px; background: rgba(7,24,42,.78); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.vid-timer-badge b { font-size: 16px; } .vid-timer-badge span { color: #9CB0C4; font-size: 13px; }
.vid-overlay { position: absolute; inset: 0; background: rgba(7,24,42,.82); display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.vid-overlay.hidden { display: none; }
.vid-overlay-inner p { margin-top: 14px; font-size: 15px; color: #C2D0DE; max-width: 40ch; }
.vid-overlay .spinner {
  width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff;
  border-radius: 50%; margin: 0 auto; animation: vid-spin .8s linear infinite;
}
@keyframes vid-spin { to { transform: rotate(360deg); } }
.vid-overlay .ico { font-size: 34px; }
.vid-error { color: #8C2F23; font-weight: 600; font-size: 15px; margin-top: 14px; }
.vid-controls { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.vid-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.vid-fallback { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.linklike { background: none; border: 0; color: var(--blue-link); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 1px solid currentColor; padding: 0; }
.linklike:hover { color: var(--navy); }
#vid-submit:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 560px) {
  .vid-foot { flex-direction: column-reverse; align-items: stretch; }
  .vid-foot .btn { width: 100%; }
  .vid-controls .btn { flex: 1; }
}

/* ---------- submit modal ---------- */
.exam-modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(7, 24, 42, .55); padding: var(--gutter);
}
.exam-modal.open { display: flex; }
.exam-modal-card {
  background: #fff; border-top: 3px solid var(--brass); max-width: 520px; width: 100%;
  padding: clamp(28px, 4vw, 40px); box-shadow: 0 30px 80px rgba(7, 24, 42, .35);
}
.exam-modal-card h3 { font-size: 1.4rem; }
.exam-modal-card p { margin-top: 12px; color: var(--text); font-size: 16px; }

/* ---------- results ---------- */
.exam-narrow.result { max-width: 880px; }
.result-badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
}
.result-badge svg { width: 30px; height: 30px; }
.result-badge.pass { background: #EAF4EC; color: #2F7A45; border: 1px solid #C2DEC9; }
.result-badge.fail { background: #FAEDE9; color: #8C2F23; border: 1px solid #EBCDC4; }

.result-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; }
.result-stats .rs {
  padding: 24px 28px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; /* labels align across cells even when value sizes differ */
}
.result-stats .rs:last-child { border-right: 0; }
.result-stats b { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--navy); display: block; line-height: 1.1; }
.result-stats b.cred { font-size: 1.35rem; letter-spacing: .03em; }
.result-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

.section-bars { background: #fff; border: 1px solid var(--line); padding: 10px clamp(20px, 3vw, 28px); }
.sb-row { display: grid; grid-template-columns: 240px 1fr 48px; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.sb-row:last-child { border-bottom: 0; }
.sb-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sb-track { height: 6px; background: var(--line-soft); position: relative; overflow: hidden; }
.sb-fill { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.sb-fill.full { background: var(--brass); }
.sb-score { font-size: 13.5px; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.result-next { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: clamp(24px, 3vw, 34px); }
.result-next h3 { font-size: 1.25rem; }
.result-next ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text); font-size: 16px; }
.result-next b { color: var(--ink); }

.refund-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: #EAF4EC; border: 1px solid #C2DEC9; border-left: 3px solid #2F7A45; padding: clamp(22px, 3vw, 30px);
}
.refund-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; border: 1px solid #C2DEC9; display: grid; place-items: center; color: #2F7A45; }
.refund-ico svg { width: 22px; height: 22px; }
.refund-card h3 { font-size: 1.3rem; color: #1F5E36; }
.refund-card p { margin-top: 8px; color: #2C5239; font-size: 15.5px; line-height: 1.6; }

/* ---------- certificate ---------- */
.cert-toolbar {
  max-width: calc(1080px + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cert-stage {
  max-width: calc(1080px + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(22px, 3vw, 36px) var(--gutter); display: flex; justify-content: center;
}
.cert-print-hint { text-align: center; color: var(--muted); font-size: 13.5px; padding: 0 var(--gutter) clamp(40px, 5vw, 64px); }

.certificate {
  width: min(1080px, 100%); aspect-ratio: 297 / 210; background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(7, 24, 42, .18); position: relative;
  container-type: inline-size;
}
.cert-inner {
  position: absolute; inset: 4.2%; border: 1px solid #AECBDD;
  outline: 3px double #1487C2; outline-offset: 5px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4.5% 7% 3.5%;
}
.cert-rule { width: 64px; height: 3px; background: var(--brass); margin-bottom: 3.4%; }
.cert-rule.bottom { margin: 2.6% 0 0; }
.cert-head { display: flex; align-items: center; gap: 14px; }
.cert-mark { width: clamp(26px, 4cqw, 40px); height: auto; }
.cert-brand { text-align: left; line-height: 1; }
.cert-brand b { font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: clamp(15px, 2.3cqw, 23px); display: block; }
.cert-brand span { color: var(--muted); font-size: clamp(7px, 1cqw, 10px); letter-spacing: .22em; text-transform: uppercase; font-weight: 600; display: block; margin-top: 5px; }
.cert-presents { margin-top: 3.6%; font-size: clamp(9px, 1.35cqw, 14px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cert-name {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(24px, 5.4cqw, 56px); line-height: 1.08; margin-top: 1.6%; letter-spacing: -.01em;
  border-bottom: 1px solid #AECBDD; padding: 0 6% 1.8%;
}
.cert-body { margin-top: 2.6%; max-width: 78%; color: var(--text); font-size: clamp(8.5px, 1.45cqw, 15.5px); line-height: 1.65; }
.cert-firm { margin-top: 1.4%; max-width: 78%; color: var(--ink); font-weight: 600; font-size: clamp(8.5px, 1.4cqw, 15px); }
.cert-footer { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 4%; }
.cert-sig { flex: 1; max-width: 30%; display: flex; flex-direction: column; align-items: center; }
.sig-script { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); font-size: clamp(13px, 2.2cqw, 23px); padding-bottom: 6px; }
.sig-line { width: 100%; height: 1px; background: #7FAECB; }
.sig-role { margin-top: 7px; font-size: clamp(7px, 1.05cqw, 11px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cert-seal svg { width: clamp(64px, 11cqw, 110px); height: auto; }
.cert-meta {
  margin-top: 2.6%; width: 100%; display: flex; justify-content: center; gap: 5%;
  font-size: clamp(7.5px, 1.15cqw, 12px); color: var(--muted); flex-wrap: wrap;
}
.cert-meta b { color: var(--ink); font-weight: 700; letter-spacing: .03em; }

/* ---------- exam footer ---------- */
.exam-foot { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.exam-foot-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.exam-foot a { color: var(--muted); font-weight: 600; }
.exam-foot a:hover { color: var(--navy); }

/* ---------- print: certificate only, A4 landscape ---------- */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.exam-body * { visibility: hidden; }
  body.exam-body .certificate, body.exam-body .certificate * { visibility: visible; }
  body.exam-body .certificate {
    position: fixed; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
    box-shadow: none; margin: 0;
  }
  .exam-top, .exam-foot, .cert-toolbar, .cert-print-hint { display: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { position: static; }
  .palette-grid { grid-template-columns: repeat(12, 1fr); }
}
@media (max-width: 720px) {
  .exam-top-mid { display: none; }
  .exam-candidate { display: none; }
  .exam-stepper .st { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 12px; font-size: 12px; }
  .exam-reassure { grid-template-columns: 1fr; }
  .exam-reassure > div { border-right: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .exam-reassure > div:first-child { border-top: 0; }
  .palette-grid { grid-template-columns: repeat(8, 1fr); }
  .exam-controls { flex-wrap: wrap; }
  .exam-controls .btn { flex: 1; min-width: 0; }
  .flag-btn { order: 3; width: 100%; justify-content: center; }
  .sb-row { grid-template-columns: 1fr 56px; }
  .sb-track { display: none; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats .rs { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-stats .rs:last-child { border-bottom: 0; }
  .refund-card { flex-direction: column; }
}
@media (max-width: 480px) {
  /* small phones: compact exam header so brand + timer always fit */
  .demo-badge { display: none; }
  .exam-top-inner { gap: 12px; }
  .exam-top .wordmark b { font-size: 16px; }
  .exam-top .brand .mark { width: 28px; height: 28px; }
  .timer-pill { padding: 7px 12px; }
  .timer-pill b { font-size: 14px; min-width: 44px; }
}
@media (max-width: 560px) {
  /* small phones: the three-step strip stacks vertically */
  .exam-stepper { flex-direction: column; }
  .exam-stepper .st {
    flex-direction: row; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--line);
    font-size: 13px; padding: 12px 16px;
  }
  .exam-stepper .st:last-child { border-bottom: 0; }
  .exam-stepper .st.current { box-shadow: inset 3px 0 0 var(--brass); }
}
