/* Newcomer Kit — language exam countdown. Extends style.css tokens; status colours carry an icon + label, never colour alone. */
:root {
  --ok-bg: #dff3ec; --ok-ink: #0b5a49;
  --sec-bg: var(--warn-bg); --sec-ink: var(--warn-ink);
  --none-bg: var(--surface-2); --none-ink: var(--muted);
  --st-on: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --ok-bg: #143a31; --ok-ink: #7fe0c4; --st-on: #15131a; }
}
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.exams .app a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.exams .app a:hover { color: var(--focus); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--muted); font-weight: 700; margin: 2px 0 6px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* Hero */
.ex-hero h1 { font-size: clamp(1.8rem, 6.4vw, 2.6rem); text-wrap: balance; max-width: 22ch; }
.lead-p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; max-width: 66ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 16px; }
.hf { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; min-width: 150px; }
.hf b { font-size: 1.2rem; font-weight: 900; }
.ex-hero .btn svg { width: 22px; height: 22px; }

/* Status chips */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; padding: 3px 9px 3px 6px; border-radius: 999px; white-space: nowrap; vertical-align: middle; line-height: 1.3; }
.st svg { width: 14px; height: 14px; flex: 0 0 14px; }
.st-ok { background: var(--ok-bg); color: var(--ok-ink); }
.st-sec { background: var(--sec-bg); color: var(--sec-ink); }
.st-none { background: var(--none-bg); color: var(--none-ink); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 6px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.legend li { display: flex; align-items: center; gap: 6px; }
td .st, .kv .st, .hf .st { margin-top: 4px; }
td b + .st { margin-left: 6px; }

/* Tables */
.exams .tbl td, .exams .tbl th { white-space: normal; vertical-align: top; }
.tbl.req { min-width: 640px; }
.tbl.req th[scope="row"] { color: var(--text); font-size: 1rem; min-width: 150px; }
.tbl.comp { min-width: 680px; }
.tbl.comp th[scope="row"] a { color: var(--text); font-weight: 900; }
.cell-note { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* Sessions */
.sessions { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.session { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.session.past { display: none; }
.s-when { flex: 0 0 92px; }
.cd { color: var(--muted); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.cd.big { display: block; font-size: .85rem; color: var(--muted); }
.cd.big[data-n] { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.cd.big[data-n]::after { content: attr(data-unit); display: block; font-size: .8rem; color: var(--muted); font-weight: 800; margin-top: 4px; }
.cd.soon { color: var(--neg); }
.s-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s-date { font-weight: 900; font-size: 1.1rem; }
.s-exam { color: var(--muted); font-weight: 700; font-size: .92rem; }
.s-dl { font-size: .92rem; }
.s-src { font-size: .85rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.s-src a { color: var(--muted); font-weight: 700; }
.empty { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 8px; }

/* Facts & links */
.facts, .links { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; align-items: baseline; }
.fact-v { font-weight: 800; }
.fact-s { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.fact-s a { color: var(--muted); font-weight: 700; }
@media (max-width: 420px) { .fact { grid-template-columns: 1fr; } .fact-s { grid-column: 1; } }
.link-row { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 48px; }
.link-row b { font-weight: 900; }
.link-row b::after { content: " ↗"; color: var(--accent); }
.link-row span { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* What is verified */
.verify { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.verify h2 { font-size: 1.25rem; }
.v-group { margin-top: 14px; padding: 12px 14px; border-radius: 14px; }
.v-ok { background: color-mix(in srgb, var(--ok-bg) 60%, transparent); }
.v-sec { background: color-mix(in srgb, var(--sec-bg) 60%, transparent); }
.v-none { background: var(--surface-2); }
.v-group h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.v-group ul { margin: 8px 0 0 20px; display: grid; gap: 6px; font-size: .95rem; }
.v-plain { margin-top: 8px; font-weight: 800; font-size: .95rem; }

/* Overview cards */
.ex-cards { margin-top: 8px; }
.ex-card { display: block; text-decoration: none; height: 100%; transition: border-color .15s ease; }
.ex-card:hover { border-color: var(--accent); }
.ex-card .arrow { margin-left: auto; color: var(--accent); font-weight: 900; }
.ex-card .kv { gap: 2px; align-items: flex-start; }
.ex-card .cd { font-size: .85rem; }

/* Countdown tool */
.countdown { margin-top: 22px; }
.cd-form { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 600px) { .cd-form { grid-template-columns: 1fr 1fr; } }
.cd-form .field { margin-top: 0; }
.cd-out { margin-top: 16px; }
.days { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.days-n { font-size: clamp(4rem, 22vw, 6rem); font-weight: 900; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.days-l { font-weight: 900; font-size: 1.2rem; color: var(--muted); }
.cd-meta { display: grid; gap: 6px; margin-top: 10px; font-weight: 700; }
.cd-meta .st { margin-left: 6px; }
.plan-wrap { margin-top: 18px; }
.plan-wrap h3 { font-size: 1.05rem; }
.tbl.plan { min-width: 620px; font-size: .9rem; }
.tbl.plan td:first-child { font-weight: 900; white-space: nowrap; }
.tbl.plan tr.done td { opacity: .45; }
.tbl.plan tr.now td { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tbl.plan .dl-mark { display: inline-block; margin-top: 4px; color: var(--neg); font-weight: 900; font-size: .8rem; }

/* FAQ, practise, misc */
.faqs { display: grid; gap: 8px; margin-top: 8px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; min-height: 48px; list-style-position: outside; }
.faq p { padding: 0 0 14px; color: var(--text); max-width: 66ch; }
.practise { margin-top: 10px; }
.other { margin: 22px 4px 0; color: var(--muted); font-weight: 700; }
.other a { color: var(--text); font-weight: 800; }
.how-panel { margin-top: 26px; }
.how-panel .how { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ex-card { transition: none; } }
.ex-card .kv-x { color: var(--muted); font-size: .85rem; font-weight: 700; }
/* Section headings: one clear step above card titles */
.exams .sec { font-size: 1.4rem; margin: 30px 4px 6px; }
.exams .panel > h2, .verify h2, .how-panel h2 { font-size: 1.4rem; }
.exams .country-top h3 { font-size: 1.15rem; }
