@charset "UTF-8";
/* TradeExamPro. Charcoal work-wear base, one hi-vis yellow accent, signage type. Mobile first.
   The palette, type scale and component rules are recorded in docs/BRAND.md.
   Written with logical properties (inline-start, not left) so right-to-left languages mirror by themselves.
   No inline styles anywhere: the Content-Security-Policy forbids them. */

@font-face { font-family: "Barlow SC"; font-weight: 700; font-style: normal; font-display: optional; src: url("/assets/fonts/barlow-sc-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-style: normal; font-display: optional; src: url("/assets/fonts/barlow-sc-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow SC"; font-weight: 700; font-style: normal; font-display: optional; src: url("/assets/fonts/barlow-sc-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303, U+0309, U+0323, U+1EA0-1EF9, U+20AB; }

:root {
  --ink: #14171a; --ink-2: #1d2126; --ink-3: #2a3037; --ink-line: #3a424b;
  --paper: #f4f3ee; --card: #fff; --line: #dddbd2; --line-2: #a9a79d;
  --text: #22262b; --muted: #565d66; --on-dark: #c9ced4;
  --hi: #ffc21a; --hi-dark: #e6a900; --hi-soft: #fff4cf;
  --link: #0b4c8c;
  --ok: #17663a; --ok-bg: #e6f4ec; --no: #a8201a; --no-bg: #fbecea;
  --r: 10px; --r-sm: 6px;
  --sh-1: 0 1px 2px rgba(20, 23, 26, 0.07);
  --sh-2: 0 10px 28px rgba(20, 23, 26, 0.12), 0 2px 6px rgba(20, 23, 26, 0.06);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  --display: "Barlow SC", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  --pad: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.6 var(--body); color: var(--text); background: var(--paper); overflow-wrap: break-word; overflow-x: clip; }
img, svg { display: block; flex: none; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
.top :focus-visible, .hero :focus-visible, .foot :focus-visible, .band :focus-visible { outline-color: var(--hi); }
.wrap, main { max-width: 68rem; margin-inline: auto; padding-inline: var(--pad); }
main { min-height: 50vh; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--hi); color: var(--ink); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700; z-index: 5; }
.skip:focus { transform: none; }

/* scripts: no letter-spacing where letters join, sensible breaks for CJK, hyphens for long words */
h1, h2, h3, .trade p, .lede { hyphens: auto; -webkit-hyphens: auto; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(ko) h1, :lang(ko) h2 { hyphens: manual; -webkit-hyphens: manual; }
:lang(ar), :lang(hi) { letter-spacing: 0 !important; }
:lang(ar) body, :lang(hi) body, :lang(vi) body { line-height: 1.75; }
:lang(ar) h1, :lang(ar) h2, :lang(hi) h1, :lang(hi) h2, :lang(vi) h1, :lang(vi) h2 { line-height: 1.3; }

/* ---------- header ---------- */
.top { background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.top .wrap { display: flex; align-items: center; gap: 4px 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; min-width: 0; flex: 0 1 auto; text-decoration: none; }
.brand img { width: auto; height: 28px; }
.top nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex: none; }
.top nav a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 10px; border-radius: var(--r-sm); color: #fff; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.top nav a:not(.btn):hover { background: var(--ink-3); }
.top nav .nav-more { display: none; }
.lang-link svg { width: 18px; height: 18px; }
.lang-link span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.top nav .btn { margin-inline-start: 6px; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 14px; }
h2 { font-size: clamp(1.55rem, 5.2vw, 2.1rem); margin-bottom: 14px; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 700; margin-bottom: 4px; }
p { margin: 0 0 14px; }
.muted, .meta { color: var(--muted); }
.meta, .small { font-size: 0.85rem; }
main > section, main > .card, main > article { margin-block: 44px; }
main > section > h2::before, .prose h2::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 14px; background: var(--hi); border-radius: 1px; }
.sec-lede { max-width: 44rem; color: var(--muted); margin-top: -4px; }

/* ---------- hero: a full-width dark band under the header ---------- */
.hero, .band { position: relative; isolation: isolate; color: #fff; }
.hero::before, .band::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); background-color: var(--ink); }
.hero::before { background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 40px 40px; background-position: center top; }
.hero::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: calc(50% - 50vw); height: 6px; background: repeating-linear-gradient(-45deg, var(--hi) 0 14px, var(--ink) 14px 28px); }
main > .hero { margin-block: 0 32px; padding-block: 28px 40px; }
main > .hero.small { padding-block: 14px 34px; }
.hero h1, .band h2 { color: #fff; }
.hero.home h1 { font-size: clamp(2.5rem, 11vw, 4.2rem); line-height: 1; margin-bottom: 16px; }
.hero a:not(.btn), .band a:not(.btn) { color: #fff; }
.lede { font-size: 1.12rem; line-height: 1.55; color: var(--on-dark); max-width: 40rem; }
.hero .meta { color: var(--on-dark); margin-bottom: 0; }
.hero-main > :last-child, .hero > :last-child { margin-bottom: 0; }
.hero-icon { width: 56px; height: 56px; margin-bottom: 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--ink-line); }

/* breadcrumb */
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: 0.85rem; color: var(--on-dark); margin: 0 0 14px; }
.kicker a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.kicker a:hover { color: #fff; text-decoration: underline; }
.kicker img { margin-inline-end: 4px; border-radius: 7px; }
.kicker .sep { width: 7px; height: 7px; border-block-start: 2px solid var(--hi); border-inline-end: 2px solid var(--hi); transform: rotate(45deg); opacity: 0.9; }
[dir="rtl"] .kicker .sep { transform: rotate(-45deg); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 22px 0 0; }
.cta .btn { flex: 1 1 100%; }
.cta a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* numbers the build counted */
.stats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r); overflow: hidden; }
.stats li { background: var(--ink-2); padding: 14px 14px 12px; font-size: 0.86rem; line-height: 1.35; color: var(--on-dark); }
.stats b { display: block; font: 700 2.1rem/1 var(--display); color: var(--hi); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stats.light { background: var(--line); border-color: var(--line); margin-top: 0; }
.stats.light li { background: var(--card); color: var(--muted); }
.stats.light b { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 24px; background: var(--hi); color: var(--ink); border: 2px solid var(--hi); border-radius: var(--r); font: inherit; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--hi-dark); transition: background-color 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.08s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: #ffd04d; border-color: #ffd04d; }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--hi-dark); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--ink); color: #fff; }
.hero .btn.ghost, .band .btn.ghost, .top .btn.ghost { color: #fff; border-color: #fff; }
.hero .btn.ghost:hover, .band .btn.ghost:hover, .top .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.small { min-height: 48px; padding: 8px 16px; font-size: 0.95rem; border-radius: var(--r-sm); }
.start-link::after, .btn.go::after { content: ""; width: 9px; height: 9px; border-block-start: 3px solid currentColor; border-inline-end: 3px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .start-link::after, [dir="rtl"] .btn.go::after { transform: rotate(-45deg); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); gap: 12px; }
.trade { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; padding-inline-end: 34px; text-decoration: none; color: var(--text); box-shadow: var(--sh-1); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.trade img { border-radius: 10px; }
.trade > div { min-width: 0; }
.trade::after { content: ""; position: absolute; inset-inline-end: 16px; top: 24px; width: 9px; height: 9px; border-block-start: 2px solid var(--line-2); border-inline-end: 2px solid var(--line-2); transform: rotate(45deg); transition: border-color 0.15s; }
[dir="rtl"] .trade::after { transform: rotate(-45deg); }
.trade:hover { border-color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-2px); }
.trade:hover::after { border-color: var(--ink); }
.trade.live { border-block-end: 3px solid var(--ink); }
.trade.live:hover { border-block-end-color: var(--hi-dark); }
.trade:not(.live) { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-2); }
.trade h3 { font-size: 1.1rem; }
.trade p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.trade .meta { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px var(--pad); box-shadow: var(--sh-1); }
.card h2 { font-size: clamp(1.4rem, 4.6vw, 1.75rem); }
main > .card > h2::before { content: none; }
.in-en { font-size: 0.8rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; font-family: var(--body); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.5; background: var(--ok-bg); color: var(--ok); border-radius: 4px; padding: 1px 7px; vertical-align: middle; white-space: nowrap; }
.tag.soon { background: #e8e6de; color: #4d535c; }

/* chips: rows of short links */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.chips a { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.chips a:hover { border-color: var(--ink); background: var(--hi-soft); }
.scroller { margin-block: 20px; }

/* how it works */
.how ol { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.how li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; padding-inline-start: 72px; min-height: 76px; box-shadow: var(--sh-1); }
.how li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 16px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--hi); font: 700 1.5rem/1 var(--display); border-radius: var(--r-sm); }
.how li strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }

/* where the questions come from: a dark band with a checklist */
main > .band { padding-block: 44px; margin-block: 56px; }
.band p { color: var(--on-dark); max-width: 44rem; }
.band strong { color: #fff; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); padding: 14px 16px; padding-inline-start: 52px; color: var(--on-dark); font-size: 0.93rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--hi); }
.checks li::after { content: ""; position: absolute; inset-inline-start: 23px; top: 21px; width: 8px; height: 11px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(40deg); border-radius: 1px; }
.checks strong { display: block; color: #fff; font-size: 1rem; }

/* exam lists: stacked rows on a phone, a table from 640px */
table.exams { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.9rem; box-shadow: var(--sh-1); overflow: hidden; }
table.exams, table.exams tbody, table.exams tr, table.exams td { display: block; }
table.exams thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
table.exams tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.exams tr:last-child { border-bottom: 0; }
table.exams td { color: var(--muted); font-size: 0.84rem; }
table.exams td:first-child { color: var(--text); font-size: 0.97rem; }
table.exams td + td { display: inline; }
table.exams td + td + td::before { content: " \b7  "; }
table.exams a { display: inline-block; padding: 6px 0; font-weight: 700; color: var(--ink); text-decoration-color: var(--line-2); }
table.exams a:hover { text-decoration-color: var(--hi-dark); text-decoration-thickness: 2px; }
#exam-list > section { margin-block: 36px; }
#exam-list h2 { font-size: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; scroll-margin-top: 12px; }
#exam-list h2 a { color: var(--ink); text-decoration: none; }
#exam-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--hi-dark); }
.facts { margin: 0 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

/* topic lists */
.topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topics a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); border-radius: var(--r-sm); color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; box-shadow: var(--sh-1); transition: border-color 0.15s, background-color 0.15s; }
.topics a:hover { border-color: var(--ink); border-inline-start-color: var(--hi-dark); background: var(--hi-soft); }
.topics .muted { flex: none; font-size: 0.8rem; font-weight: 600; }
.cols { padding-inline-start: 20px; margin: 0; }
.cols li { margin-bottom: 4px; break-inside: avoid; }
.cols li::marker { color: var(--hi-dark); }

/* sample questions */
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px var(--pad); margin: 12px 0; box-shadow: var(--sh-1); }
.sample > :last-child { margin-bottom: 0; }
.q { font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
ol.choices { padding-inline-start: 26px; margin: 0 0 8px; }
ol.choices li { padding: 3px 0; }
ol.choices li::marker { font-weight: 700; color: var(--muted); }
summary { cursor: pointer; color: var(--link); font-weight: 700; padding: 12px 0; min-height: 48px; }
details[open] > summary { margin-bottom: 4px; }
.sample details[open] { border-top: 1px solid var(--line); margin-top: 4px; }
details.sample { padding: 4px var(--pad); }
details.sample[open] { padding-bottom: 16px; }
details.sample > summary { color: var(--ink); font-weight: 600; }

/* ---------- practice test and mock exam ---------- */
.quiz { position: relative; border-top: 5px solid var(--hi); scroll-margin-top: 10px; box-shadow: var(--sh-2); }
.quiz.exam { border-top-color: var(--ink); box-shadow: var(--sh-1); }
.quiz .btn { width: 100%; }
.quiz-intro { color: var(--muted); max-width: 40rem; }
.quiz.busy > h2 { font: 700 0.78rem/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.progress-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); border: 1px solid #bfdcc9; border-radius: var(--r); padding: 12px 14px; margin: 24px 0 -20px; font-size: 0.9rem; line-height: 1.45; color: #114a2b; font-weight: 600; }
.quiz-stage > :last-child { margin-bottom: 0; }
.progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.progress b { color: var(--ink); }
.pips { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 20px; }
.pips li { flex: 1 1 0; height: 8px; border-radius: 4px; background: #e4e2d9; transition: background-color 0.25s; }
.pips .ok { background: var(--ok); }
.pips .no { background: var(--no); }
.pips .now { background: var(--ink); }
progress.bar { display: block; width: 100%; height: 8px; margin: 0 0 20px; border: 0; border-radius: 4px; overflow: hidden; background: #e4e2d9; color: var(--ink); -webkit-appearance: none; appearance: none; }
progress.bar::-webkit-progress-bar { background: #e4e2d9; }
progress.bar::-webkit-progress-value { background: var(--ink); border-radius: 4px; }
progress.bar::-moz-progress-bar { background: var(--ink); border-radius: 4px; }
.quiz-stage .q { font-size: clamp(1.15rem, 4.6vw, 1.35rem); margin-bottom: 18px; }
div.choices { display: grid; gap: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; text-align: start; width: 100%; min-height: 64px; background: var(--card); border: 2px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; font: inherit; font-size: 1.02rem; line-height: 1.4; color: var(--text); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, transform 0.08s; -webkit-tap-highlight-color: transparent; }
.choice b { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 0.95rem; transition: background-color 0.15s, color 0.15s; }
.choice span { flex: 1 1 0; min-width: 0; }
.choice em { flex: 1 0 100%; padding-inline-start: 50px; font-size: 0.8rem; font-style: normal; font-weight: 800; }
.choice:hover:not(:disabled) { border-color: var(--ink); background: var(--hi-soft); }
.choice:hover:not(:disabled) b { background: var(--hi); color: var(--ink); }
.choice:active:not(:disabled) { transform: scale(0.99); }
.choice:disabled { cursor: default; color: var(--muted); border-color: var(--line); }
.choice:disabled b { background: #8b9097; }
.choice.picked { border-color: var(--ink); background: var(--hi-soft); box-shadow: inset 0 0 0 1px var(--ink); color: var(--text); }
.choice.picked b { background: var(--hi); color: var(--ink); }
.choice.right { border-color: var(--ok); background: var(--ok-bg); color: var(--text); animation: settle 0.3s ease-out; }
.choice.right b { background: var(--ok); }
.choice.right em { color: var(--ok); }
.choice.wrong { border-color: var(--no); background: var(--no-bg); color: var(--text); }
.choice.wrong b { background: var(--no); }
.choice.wrong em { color: var(--no); }
@keyframes settle { from { transform: scale(0.985); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.numeric { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.numeric input { flex: 1 1 8rem; width: auto; max-width: 16rem; min-height: 56px; margin: 0; font-size: 1.2rem; font-weight: 700; }
.numeric .btn { width: auto; flex: 1 1 6rem; }
.unit { color: var(--muted); font-weight: 700; }
.result { margin-top: 18px; }
.result:not(:empty) { animation: rise 0.25s ease-out; }
.verdict { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px; }
.verdict svg { width: 30px; height: 30px; border-radius: 50%; padding: 6px; color: #fff; }
.verdict.ok { color: var(--ok); }
.verdict.ok svg { background: var(--ok); }
.verdict.no { color: var(--no); }
.verdict.no svg { background: var(--no); }
.why { border-inline-start: 4px solid var(--line); padding-inline-start: 14px; margin-bottom: 14px; }
.why.ok { border-color: var(--ok); }
.why.no { border-color: var(--no); }
.why > :last-child { margin-bottom: 0; }
.ref { font-size: 0.86rem; color: var(--muted); }
.result .next { position: sticky; bottom: 10px; z-index: 1; margin: 6px 0 10px; box-shadow: 0 2px 0 var(--hi-dark), 0 0 0 10px var(--card); }
.done { text-align: center; padding-block: 6px 4px; animation: rise 0.3s ease-out; }
.done p { margin-inline: auto; max-width: 34rem; }
.ring { position: relative; width: 148px; height: 148px; margin: 0 auto 14px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: #e4e2d9; }
.ring .arc { stroke: var(--ink); stroke-linecap: round; animation: sweep 0.9s ease-out; }
.ring.good .arc { stroke: var(--ok); }
@keyframes sweep { from { stroke-dashoffset: 100; } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 2.5rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.score { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 8px; }
.done .verdict { justify-content: center; font-size: 1.2rem; }
.actions { display: grid; gap: 10px; margin: 18px auto 12px; max-width: 26rem; }
.done + h3 { margin-top: 26px; font-size: 1.2rem; }
.exam-nav { position: sticky; bottom: 0; z-index: 1; display: flex; gap: 10px; margin-top: 18px; padding: 10px 0; background: var(--card); border-top: 1px solid var(--line); }
.exam-nav .btn { flex: 1 1 0; width: auto; padding-inline: 12px; }
.clock { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-wrap { margin-top: 8px; font-size: 0.9rem; }
.report-wrap summary { color: var(--muted); font-weight: 600; }
.quiz .report .btn { width: auto; }
.err { color: var(--no); font-weight: 600; }
.loading { display: flex; align-items: center; gap: 12px; min-height: 120px; color: var(--muted); font-weight: 600; }
.loading::before { content: ""; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin-bottom: 14px; }
input, textarea, select { display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: max(1rem, 16px); background: #fff; color: var(--text); transition: border-color 0.15s; }
textarea { line-height: 1.5; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--ink); }
::placeholder { color: #6b727b; opacity: 1; }
select { width: auto; max-width: 100%; }
.feedback-form { max-width: 40rem; }
.feedback-form > .btn { width: 100%; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.6em; margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 40px; font-size: clamp(1.4rem, 4.6vw, 1.75rem); }
.prose li { margin-bottom: 10px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li::marker { color: var(--muted); font-weight: 700; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; padding-inline-start: 62px; min-height: 64px; box-shadow: var(--sh-1); }
.prose ol.steps li::before { content: counter(step); position: absolute; inset-inline-start: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--hi); font: 700 1.25rem/1 var(--display); border-radius: var(--r-sm); }
.prose ol.steps strong { display: block; color: var(--ink); }
.lede-dark { font-size: 1.1rem; color: var(--muted); }

/* ---------- find your exam ---------- */
.finder { margin: 24px 0 4px; max-width: 40rem; }
.finder h2 { margin: 0 0 8px; font: 700 0.8rem/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--hi); }
.finder h2 label { margin: 0; font-weight: 700; }
.search { position: relative; }
.search-row { display: flex; gap: 0; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 2px var(--hi), 0 10px 30px rgba(0, 0, 0, 0.35); }
.search-row input { flex: 1 1 auto; min-width: 0; margin: 0; min-height: 58px; border: 0; background: transparent; border-radius: var(--r); padding-inline: 16px 8px; text-overflow: ellipsis; }
.search-row input:focus { outline: 0; }
.search-row:focus-within { box-shadow: 0 0 0 4px var(--hi), 0 10px 30px rgba(0, 0, 0, 0.35); }
.search-row .btn { flex: none; margin: 5px; min-height: 48px; padding-inline: 18px; border-radius: 7px; box-shadow: none; }
.search-row .btn:active { transform: none; }
.hint { margin: 10px 0 0; font-size: 0.85rem; color: var(--on-dark); }
.search-status { margin: 6px 0 0; min-height: 1.4em; font-size: 0.85rem; font-weight: 600; color: var(--on-dark); }
.results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); }
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--line); }
.hero .results a:not(.btn) { display: block; min-height: 52px; padding: 10px 16px; color: var(--text); text-decoration: none; }
.hero .results a:not(.btn):hover, .hero .results a:not(.btn):focus-visible { background: var(--hi-soft); outline-offset: -3px; outline-color: var(--link); }
.results strong { display: block; color: var(--ink); line-height: 1.35; }
.results .ready strong { text-decoration: underline; text-decoration-color: var(--hi-dark); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.results .meta { display: block; margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); }
.hero .results .all a:not(.btn) { display: flex; align-items: center; color: var(--link); font-weight: 700; }

/* filter boxes over long lists. Shown by site.js; the space is kept so the page does not jump when it arrives. */
.filter { margin: 0 0 16px; }
.filter[hidden] { display: block !important; visibility: hidden; }
.filter > label { margin-bottom: 0; font-size: 0.9rem; }
.filter input[type="search"] { max-width: 30rem; }
.filter-more { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 20px; margin-top: 12px; }
.filter-more label { margin: 0; font-size: 0.9rem; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 50px; font-weight: 600; }
label.check input { display: inline-block; flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.filter-status { margin: 8px 0 0; min-height: 1.4em; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filter-none { margin: 8px 0 0; font-weight: 600; }
.filter.card { padding-block: 18px 12px; }

/* ---------- not found ---------- */
.lost { font: 700 clamp(4.5rem, 24vw, 8rem)/0.9 var(--display); color: var(--hi); margin: 6px 0 10px; letter-spacing: 0.02em; }

/* ---------- accounts and passes (pages arrive later; the styles are ready) ---------- */
.account-slot { display: inline-flex; align-items: center; }
.btn.signin { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.btn.signin:hover { background: #fff; color: var(--ink); }
.auth { max-width: 26rem; margin-inline: auto; }
.auth .btn { width: 100%; margin-bottom: 10px; }
.btn.provider { background: #fff; color: #1f1f1f; border-color: var(--line-2); box-shadow: none; font-weight: 600; }
.btn.provider:hover { background: #f6f6f3; border-color: var(--ink); }
.btn.provider.apple { background: #000; color: #fff; border-color: #000; }
.btn.provider.apple:hover { background: #1c1c1c; border-color: #1c1c1c; }
.btn.provider svg, .btn.provider img { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.trial-meter { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 12px; border-radius: 999px; background: var(--ink-3); color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pricing { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--sh-1); }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--sh-2); }
.plan h3 { font-size: 1.15rem; }
.plan .price { font: 700 2.6rem/1.1 var(--display); color: var(--ink); margin: 8px 0 2px; }
.plan .price small { font: 600 0.85rem var(--body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; font-size: 0.93rem; }
.plan li { position: relative; padding-inline-start: 26px; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.3em; width: 7px; height: 12px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.plan .btn { margin-top: auto; width: 100%; }
.upgrade { border-top: 5px solid var(--ink); }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: 72px; padding: 40px 0 36px; background: var(--ink); color: var(--on-dark); font-size: 0.86rem; }
.foot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--hi) 0 14px, var(--ink) 14px 28px); }
.foot a { color: #fff; }
.foot strong { color: #fff; }
.foot p { max-width: 46rem; margin-bottom: 10px; }
.foot-grid { display: grid; gap: 28px; margin-bottom: 28px; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.foot h2 { font: 700 0.74rem/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--hi); margin: 0 0 4px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a, .foot-trades a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.foot-nav a:hover, .foot-trades a:hover, .langs a:hover { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 2px; }
.foot-trades { border-top: 1px solid var(--ink-line); padding-top: 22px; margin-bottom: 22px; }
.foot-trades ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot .langs { border-top: 1px solid var(--ink-line); padding-top: 22px; margin-bottom: 22px; scroll-margin-top: 12px; }
.langs ul { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink-line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.foot .langs a[aria-current] { border-color: var(--hi); color: var(--hi); }
.foot-legal { border-top: 1px solid var(--ink-line); padding-top: 22px; font-size: 0.8rem; }
.foot-legal p:last-child { margin-bottom: 0; }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  :root { --pad: 12px; }
  .brand img { height: 24px; }
  .top nav a:not(.btn) { padding: 0 7px; font-size: 0.86rem; }
  .stats b { font-size: 1.8rem; }
  .search-row .btn { padding-inline: 12px; }
}

/* ---------- tablets and up ---------- */
@media (min-width: 40em) {
  html { font-size: 112.5%; }
  :root { --pad: 24px; }
  .brand img { height: 32px; }
  .top .wrap { min-height: 68px; }
  .top nav .nav-more { display: inline-flex; }
  main > section, main > .card, main > article { margin-block: 64px; }
  main > .hero { padding-block: 44px 60px; margin-bottom: 48px; }
  main > .hero.small { padding-block: 20px 48px; }
  main > .band { padding-block: 64px; margin-block: 72px; }
  .cta .btn { flex: none; min-width: 13rem; }
  .card { padding: 28px; }
  .quiz .btn, .feedback-form > .btn { width: auto; min-width: 14rem; }
  .result .next { position: static; box-shadow: 0 2px 0 var(--hi-dark); }
  .exam-nav { position: static; border-top: 0; padding: 0; }
  .exam-nav .btn { flex: none; min-width: 9rem; }
  .actions { grid-template-columns: 1fr 1fr; max-width: 34rem; }
  .actions > :only-child { grid-column: 1 / -1; justify-self: center; }
  .how ol { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how li { padding: 76px 20px 20px; }
  .how li::before { inset-inline-start: 20px; top: 20px; }
  .checks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .topics { grid-template-columns: 1fr 1fr; }
  .cols { columns: 2; column-gap: 32px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats b { font-size: 2.4rem; }
  table.exams { display: table; }
  table.exams tbody { display: table-row-group; }
  table.exams tr { display: table-row; padding: 0; }
  table.exams thead { position: static; width: auto; height: auto; clip-path: none; display: table-header-group; }
  table.exams th, table.exams td { display: table-cell; text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.88rem; }
  table.exams tr:last-child td { border-bottom: 0; }
  table.exams tbody tr:hover td { background: #faf9f5; }
  table.exams th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #faf9f5; }
  table.exams td:first-child { width: 46%; font-size: 0.92rem; }
  table.exams a { padding: 0; }
  table.exams td + td + td::before { content: none; }
  .facts div { display: grid; grid-template-columns: 11rem 1fr; align-items: baseline; }
  .foot-grid { grid-template-columns: 1.3fr 2fr; gap: 48px; }
  .foot-nav { grid-template-columns: repeat(3, 1fr); }
  .foot-nav a, .foot-trades a, .langs a { min-height: 36px; }
}

/* ---------- desktop ---------- */
@media (min-width: 62em) {
  .hero.home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero.home .stats { grid-template-columns: 1fr 1fr; margin: 0; }
  .hero.home .stats li { padding: 22px 20px 18px; }
  .hero.home .stats b { font-size: 3rem; }
  .hero.small.has-icon { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: start; }
  .hero.small.has-icon > * { grid-column: 1; }
  .hero.small.has-icon > .hero-icon { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 120px; height: 120px; border-radius: 22px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .btn, .choice, .trade, .card { border: 2px solid; }
  .pips .now { background: Highlight; }
}
@media print {
  .top nav, .foot-nav, .foot-trades, .langs, .quiz, .feedback-form, .skip, .finder, .filter, .cta { display: none !important; }
  .top, .foot { background: none; color: #000; border: 0; }
  .hero::before, .hero::after, .band::before, .foot::before { content: none; }
  .hero, .band, .hero h1, .band h2, .lede, .kicker, .kicker a, .band p, .checks li, .checks strong { color: #000; background: none; }
}

/* ---------- additions ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* quick links to trades under the search */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; max-width: 40rem; }
.quick a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 8px; border: 1px solid var(--ink-line); background: var(--ink-2); border-radius: 999px; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.quick a:hover { border-color: var(--hi); background: var(--ink-3); }
.quick img { border-radius: 8px; }
.lede, .hero p { hyphens: manual; -webkit-hyphens: manual; }
.hero-icon { display: none; }
.stats { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.hero .stats + .cta, .hero .lede + .stats { margin-top: 22px; }
.foot-nav { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.foot-nav ul, .foot-trades ul, .langs ul { list-style: none; margin: 0; padding: 0; }
.progress span { min-width: 0; }
.lost { margin-top: 0; }
@media (min-width: 62em) {
  .hero-icon { display: block; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  .hero.home .stats { grid-template-columns: 1fr 1fr; }
}
:lang(en) .trade p, :lang(en) h3 { hyphens: manual; -webkit-hyphens: manual; }
.brand { flex: none; }
.top nav a.nav-more:not(.btn) { display: none; }
.hero.small .stats { max-width: 30rem; }
@media (min-width: 40em) { .top nav a.nav-more:not(.btn) { display: inline-flex; } }
.stats { gap: 0; background: var(--ink-2); }
.stats li { box-shadow: inset -1px -1px 0 var(--ink-line); }
.stats.light { background: var(--card); }
.stats.light li { box-shadow: inset -1px -1px 0 var(--line); }
.stats li.word b { font-size: 1.5rem; margin-bottom: 0; }
