:root {
  --ink: #18212b;
  --muted: #5a6470;
  --line: #dfe2dc;
  --bg: #ffffff;
  --soft: #f3f4f1;
  --accent: #0c6b58;       /* deep teal green, the brand color */
  --accent-soft: #e3f1ec;
  --amber: #f2b632;        /* the 65/20 tag only */
  --no: #a33a2c;
  --radius: 12px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
main, .top, footer { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { display: block; }
.lang { display: flex; flex-shrink: 0; }
.lang a, .lang button { font: inherit; font-size: 14px; background: none; border: 1px solid var(--line); padding: 6px 10px; cursor: pointer; color: var(--muted); text-decoration: none; }
.lang :first-child { border-radius: 8px 0 0 8px; }
.lang :last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.lang [aria-pressed="true"], .lang [aria-current="page"] { color: var(--ink); background: var(--soft); font-weight: 600; }

h1 { font-size: clamp(28px, 6.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 22px 0 10px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 18px 0 10px; line-height: 1.35; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* test switch: one tap between the 2025 and 2008 tests */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 6px; }
.tests button { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; }
.tests button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.when { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--soft); overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: var(--soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.section { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 16px 0 6px; }
.tag6520 { margin-left: 8px; color: #8a5a00; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; } /* the official asterisk (65/20), as text */
.q { font-size: 23px; line-height: 1.3; font-weight: 750; margin: 0 0 6px; outline: none; }
.q:focus, .q:focus-visible { outline: none; } /* focused only so screen readers read the new question */
.q2 { color: var(--muted); font-size: 16px; margin: 0 0 4px; }
.q2 b { font-weight: 600; }
.say { color: var(--muted); font-size: 15px; margin: 14px 0 12px; }

button.go, a.buy, .grade button, .row button, .row a.btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 14px 18px; cursor: pointer; text-align: center; text-decoration: none; display: inline-block;
  background: var(--accent); color: #fff;
}
button.go { width: 100%; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.grade button.miss { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.row button.alt, .row a.alt { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
button:hover, a.buy:hover { filter: brightness(1.06); }

.answers { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.answers .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.answers ul { margin: 0; padding-left: 20px; }
.answers li { margin: 0 0 6px; }
.answers li span { display: block; color: var(--muted); font-size: 15px; }
.answers .note { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.answers .now { font-size: 15px; margin: 10px 0 0; padding: 10px 12px; background: var(--accent-soft); border-radius: 10px; }

.offer { border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.offer h3 { font-size: 20px; margin: 0 0 8px; }
.offer p { margin: 0 0 10px; }
a.buy { width: 100%; }
.free { margin-top: 18px; }
.fine { font-size: 14px; color: var(--muted); }

.review { margin: 14px 0; }
.review details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.review summary { cursor: pointer; font-weight: 600; }
.review p { margin: 6px 0 0; color: var(--muted); }

.vocab h3 { margin: 18px 0 6px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.vocab ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vocab li { border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 16px; }

/* static pages: the official lists, explanations */
.doc { padding-bottom: 8px; }
.doc .lead { font-size: 18px; color: var(--muted); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.cta a { font-weight: 700; border-radius: 10px; padding: 12px 16px; text-decoration: none; background: var(--accent); color: #fff; }
.cta a.alt { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.facts { border-top: 1px solid var(--line); margin: 18px 0; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }
ol.qa { padding-left: 0; list-style: none; margin: 0; }
ol.qa > li { border-bottom: 1px solid var(--line); padding: 12px 0; }
ol.qa .n { color: var(--muted); font-weight: 600; margin-right: 4px; }
ol.qa .qt { font-weight: 650; margin: 0 0 4px; }
ol.qa .qe { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
ol.qa ul { margin: 4px 0 0; padding-left: 20px; }
ol.qa li li { margin: 2px 0; }
ol.qa li li span.en, ol.qa .note span.en { display: block; color: var(--muted); font-size: 15px; }
ol.qa .now { font-size: 15px; margin: 6px 0 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; }
ol.qa .note { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.toc { columns: 2; column-gap: 24px; padding-left: 18px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.links { padding-left: 18px; }
.links li { margin: 4px 0; }

footer { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 14px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer p { margin: 0 0 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 420px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .toc { columns: 1; }
}
