/* korean.wiasoom.com — site theme overlay (2026-10-28, family56 bundle C).
   ORIGINAL look = DARK (every page has its own inline <style>; :root --bg #0b0d12 / cert #0e1116). This file is the LIGHT
   overlay only: every rule is scoped to html[data-theme="light"], so with nothing saved (data-theme="dark") each page renders
   exactly as before. Load at the END of <head> (after the page's inline <style>; the engine wia-site-theme.js sets
   <html data-theme> before first paint). Header/footer (.wia-hd/.wia-ft) and the language chip (#wia-lang-btn) are drawn by
   site-chrome.js / lang.js with hard-coded colors in a JS string → overridden by selector below (chip = inline style → !important).
   Pages: / · practice · mock · speak · cert · exam-info · wordchain (dark, themed here) · privacy · terms (already a cream LIGHT
   design with no chrome scripts → nothing to override; they just follow the cookie).
   Token names differ per page — see the token block: index/practice/mock/speak/exam-info share --bg --card --line --txt --dim
   --accent(blue) --ok [--bad --warn --accent2 --gold --silver --bronze]; cert has --accent teal #1a9bb5 (→ same light blue, noted);
   wordchain uses --text (not --txt) and --accent = GOLD, so its gold places are re-pinned element by element below.

   Light palette                                            contrast (on #fff / #f7f8fb)
   ─ page   --bg   #f7f8fb   card --card #fff   band #eef1f6
   ─ text   --txt/--text #0f172a (17.9/16.8)   muted --dim #475569 (7.6/7.1)   nav/body-2 #334155 (10.3)
   ─ line   --line #e2e8f0 (decorative only)   CONTROL border #7b879c (3.6:1 — inputs, answer cards, chips, ghost buttons)
   ─ blue   --accent  #4f7cff → #2563eb (5.2/4.8, also white-on-blue buttons 5.2)   --accent2 #7c5cff → #6d28d9 (7.0)
   ─ gold   #ffd35c / #e5a100 → text #854d0e (6.9) · border/hover #b45309 (5.0) · gold-FILLED CTAs keep #e5a100→#ffd35c + #1a1300 text
   ─ ok #22c08a → #15803d (5.0)   bad #ef5a6f → #b91c1c (6.5)   warn #e5a100 → #b45309   purple-blue --blue #7c93ff → #4338ca (8.0)
   ─ silver #cfd6e6 → #475569   bronze #d79a6a → #9a3412 (7.3)
   Kept dark on purpose: the two inline-styled funnel cards at the bottom of index (WIA Music green / Korean Today blue gradients
   with white text — self-contained promo cards, readable on a light page). Side rails (>1500px) are re-coloured, not hidden.
   !important only where the page/kit uses inline style="…": #wia-lang-btn (lang.js), index a11y caption #94a3b8, practice
   JS-rendered links color:#4f7cff and the dark-green "Check my level" link. */

/* ===== tokens — every page's CSS reads these; names overlap so one block serves all 7 dark pages ===== */
html[data-theme="light"] {
  --bg: #f7f8fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --txt: #0f172a;      /* index practice mock speak cert exam-info */
  --text: #0f172a;     /* wordchain */
  --dim: #475569;
  --accent: #2563eb;   /* blue everywhere; wordchain's gold --accent is re-pinned per element below */
  --accent2: #6d28d9;
  --ok: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --gold: #854d0e;     /* exam-info/cert token; index has NO --gold so its inline var(--gold,#ffd35c) link falls through to this */
  --silver: #475569;
  --bronze: #9a3412;
  --blue: #4338ca;                       /* wordchain romanization */
  --accent-dim: rgba(180, 83, 9, .10);   /* wordchain listen-button tint */
  --accent-bd: rgba(180, 83, 9, .45);    /* wordchain image frame / listen border */
  --good: #15803d;                       /* wordchain */
}
html[data-theme="light"] body { background: #f7f8fb; color: #0f172a; }
html[data-theme="light"] ::selection { background: rgba(37, 99, 235, .18); }

/* ===== site chrome: header .wia-hd (site-chrome.js, hard-coded #0e1119) =====
   NOTE: index/exam-info/wordchain have a bare `header{padding:…;background:radial-gradient…}` hero rule that ALSO hits the
   injected <header class="wia-hd"> (that is why the chrome header is 167px tall on index). Use header.wia-hd (0,2,1) so the
   hero rule below (0,1,1) never wins over the chrome background. */
html[data-theme="light"] header.wia-hd { background: #fff; border-bottom-color: #e2e8f0; }
html[data-theme="light"] .wia-hd .brand { color: #0f172a; }
html[data-theme="light"] .wia-hd .brand b { color: #4338ca; }
html[data-theme="light"] .wia-hd nav a { color: #334155; }
html[data-theme="light"] .wia-hd nav a:hover { color: #0f172a; background: #eef1f6; }
html[data-theme="light"] .wia-hd nav a.on { color: #854d0e; background: #fef3c7; }
html[data-theme="light"] .wia-hd nav a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* language chip: lang.js sets style.cssText (background:#151924;color:#e8ecf4;border:1px solid #222838) → inline → !important */
html[data-theme="light"] #wia-lang-btn { background: #fff !important; color: #334155 !important; border-color: #7b879c !important; }
html[data-theme="light"] #wia-lang-btn:hover { color: #0f172a !important; border-color: #2563eb !important; }

/* ===== site chrome: footer .wia-ft (site-chrome.js, hard-coded #0b0e15) ===== */
html[data-theme="light"] .wia-ft { background: #eef1f6; border-top-color: #e2e8f0; color: #475569; }
html[data-theme="light"] .wia-ft h4 { color: #0f172a; }
html[data-theme="light"] .wia-ft .brand { color: #0f172a; }
html[data-theme="light"] .wia-ft .brand b { color: #4338ca; }
html[data-theme="light"] .wia-ft .note { color: #475569; }
html[data-theme="light"] .wia-ft a { color: #334155; }
html[data-theme="light"] .wia-ft a:hover { color: #0f172a; text-decoration: underline; }
html[data-theme="light"] .wia-ft .badge { background: #fff; border-color: #7b879c; color: #475569; }
html[data-theme="light"] .wia-ft .legal { border-top-color: #cbd5e1; color: #475569; }
html[data-theme="light"] .wia-ft .legal a { color: #4338ca; }

/* ===== language modal (language-modal/soom-language-modal.js injects a white card; only the overlay is dark) ===== */
html[data-theme="light"] .slm-overlay { background: rgba(15, 23, 42, .55); }

/* ===== side rails (side-banners.js, only >1500px wide & >680px tall): neon on a black gradient → white cards, same hues toned down ===== */
html[data-theme="light"] .wia-rail .card { background: #fff; }
html[data-theme="light"] .wia-rail.l .card { border-color: #a21caf; box-shadow: 0 8px 28px rgba(162, 28, 175, .18); }
html[data-theme="light"] .wia-rail.r .card { border-color: #0e7490; box-shadow: 0 8px 28px rgba(14, 116, 144, .18); }
html[data-theme="light"] .wia-rail img { filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .25)); }
html[data-theme="light"] .wia-rail.l .kt { color: #0e7490; text-shadow: none; }
html[data-theme="light"] .wia-rail.r .kt { color: #a21caf; text-shadow: none; }
html[data-theme="light"] .wia-rail.l .sub { color: #a21caf; text-shadow: none; }
html[data-theme="light"] .wia-rail.r .sub { color: #0e7490; text-shadow: none; }
html[data-theme="light"] .wia-rail.l .hr { background: linear-gradient(90deg, transparent, #a21caf, transparent); box-shadow: none; }
html[data-theme="light"] .wia-rail.r .hr { background: linear-gradient(90deg, transparent, #0e7490, transparent); box-shadow: none; }
html[data-theme="light"] .wia-rail .badge { color: #fff; }
html[data-theme="light"] .wia-rail.l .badge { background: linear-gradient(135deg, #a21caf, #0e7490); box-shadow: 0 4px 14px rgba(162, 28, 175, .25); }
html[data-theme="light"] .wia-rail.r .badge { background: linear-gradient(135deg, #0e7490, #a21caf); box-shadow: 0 4px 14px rgba(14, 116, 144, .25); }

/* ===== shared page primitives (same class names across practice / mock / speak / cert / exam-info / wordchain) ===== */
/* hero <header> of index / exam-info / wordchain — exclude the chrome header handled above */
html[data-theme="light"] header:not(.wia-hd) { background: radial-gradient(1200px 400px at 50% -10%, rgba(37, 99, 235, .10), transparent 70%); }
/* cards: tokens do the colours; add the faint light-mode lift */
html[data-theme="light"] .card,
html[data-theme="light"] .pcard,
html[data-theme="light"] .cert,
html[data-theme="light"] .gcard,
html[data-theme="light"] .board,
html[data-theme="light"] .how { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
/* interactive borders must reach 3:1 — the --line token (#e2e8f0) is decorative only */
html[data-theme="light"] .opt,
html[data-theme="light"] .opt .num,
html[data-theme="light"] .tts,
html[data-theme="light"] .xtrans,
html[data-theme="light"] .pill button,
html[data-theme="light"] .hud .pill,
html[data-theme="light"] .signin,
html[data-theme="light"] .timer,
html[data-theme="light"] .exrow,
html[data-theme="light"] .essayinput,
html[data-theme="light"] .btn-s,
html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .cta.ghost,
html[data-theme="light"] .reg,
html[data-theme="light"] .vc-rung { border-color: #7b879c; }
/* …and the page's own state colours must win back over that grey (same specificity as the page rules → later in cascade) */
html[data-theme="light"] .tts:hover, html[data-theme="light"] .xtrans:hover, html[data-theme="light"] .signin:hover,
html[data-theme="light"] .pill button.on, html[data-theme="light"] .review { border-color: #2563eb; }
html[data-theme="light"] .timer.low { border-color: #b91c1c; }
html[data-theme="light"] .opt { background: #fff; }                         /* wordchain hard-codes .opt background:#0e1119 */
html[data-theme="light"] .opt:hover:not(:disabled) { border-color: #2563eb; }
html[data-theme="light"] .opt.sel, html[data-theme="light"] .opt.sel .num { border-color: #2563eb; }
html[data-theme="light"] .opt.sel { background: rgba(37, 99, 235, .08); }
html[data-theme="light"] .opt.correct, html[data-theme="light"] .opt.correct .num, html[data-theme="light"] .opt.good { border-color: #15803d; }
html[data-theme="light"] .opt.wrong, html[data-theme="light"] .opt.wrong .num, html[data-theme="light"] .opt.bad { border-color: #b91c1c; }
html[data-theme="light"] .opt.correct, html[data-theme="light"] .opt.good { background: #ecfdf5; }
html[data-theme="light"] .opt.wrong, html[data-theme="light"] .opt.bad { background: #fef2f2; }
html[data-theme="light"] .btn-s { background: #fff; border-color: #7b879c !important; }   /* page rule is border:…!important */
html[data-theme="light"] .btn.ghost, html[data-theme="light"] .cta.ghost { background: #fff; }
html[data-theme="light"] .essayinput:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
html[data-theme="light"] .bar, html[data-theme="light"] .arow .track { background: #d9e0ea; }   /* progress tracks: --line is too faint on white */
html[data-theme="light"] .bar > i { background: linear-gradient(90deg, #2563eb, #6d28d9); }
html[data-theme="light"] .ring { background: conic-gradient(#2563eb calc(var(--p) * 1%), #d9e0ea 0); }
html[data-theme="light"] .ecorr { background: rgba(37, 99, 235, .07); }
html[data-theme="light"] .review:hover { background: rgba(37, 99, 235, .08); }
html[data-theme="light"] .procbadge.ok { background: #ecfdf5; }
html[data-theme="light"] .procbadge.warn { background: #fef3c7; color: #854d0e; }
html[data-theme="light"] .next button:focus-visible,
html[data-theme="light"] .btn:focus-visible,
html[data-theme="light"] .cta:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }

/* gold (hard-coded #ffd35c / #e5a100 text on practice·mock·index) → dark gold text; filled gold CTAs keep their gradient */
html[data-theme="light"] .grade.g1,
html[data-theme="light"] .vc-rung.on,
html[data-theme="light"] .vc-g b,
html[data-theme="light"] .vc-exp,
html[data-theme="light"] .vc-exp b,
html[data-theme="light"] .ehead.no,
html[data-theme="light"] .escore.mid,
html[data-theme="light"] .vc-up:hover { color: #854d0e; }
html[data-theme="light"] .vc-rung.on { border-color: #b45309; background: #fef3c7; }
html[data-theme="light"] .vcard { background: linear-gradient(100deg, #fff7e0, #fffbef); border-color: rgba(180, 83, 9, .45); }
html[data-theme="light"] .vc-cta, html[data-theme="light"] .cta.gold { color: #1a1300; }   /* unchanged values, pinned so a later token edit can't darken them */

/* practice.html JS-rendered inline links: style="color:#4f7cff" is 3.5:1 on a light page → !important */
html[data-theme="light"] a[style*="color:#4f7cff"] { color: #2563eb !important; }
/* practice lesson-done screen: <a href="/mock.html" style="…background:#1a2a1a;border:1px solid #2f6b46;color:var(--ok…)"> — dark green box, green text */
html[data-theme="light"] a[href="/mock.html"][style*="background:#1a2a1a"] { background: #ecfdf5 !important; border-color: #15803d !important; }

/* ===== index.html ===== */
html[data-theme="light"] .sub, html[data-theme="light"] .ko { color: #475569; }
html[data-theme="light"] .card:hover { border-color: #2563eb; box-shadow: 0 12px 30px rgba(15, 23, 42, .10); }
html[data-theme="light"] .soon { border-color: #cbd5e1; }
html[data-theme="light"] .song { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
html[data-theme="light"] .song:hover { box-shadow: 0 10px 30px rgba(37, 99, 235, .18); }
/* $1 voucher banner: gold tint on dark → warm cream, dark-gold text */
html[data-theme="light"] .fomo { background: linear-gradient(100deg, #fff7e0, #fffbef); border-color: rgba(180, 83, 9, .45); color: #0f172a; }
html[data-theme="light"] .fomo:hover { border-color: #b45309; }
html[data-theme="light"] .fomo .fc, html[data-theme="light"] .fomo .fcta { color: #854d0e; }
html[data-theme="light"] .faq details { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
html[data-theme="light"] .faq summary::after { color: #2563eb; }
/* YouTube channel grid: red accents stay (border 3.3:1); the text-only "▶ YouTube" link needs a darker red */
html[data-theme="light"] .ytcard { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
html[data-theme="light"] .ytcard:hover { box-shadow: 0 10px 30px rgba(255, 78, 69, .16); }
html[data-theme="light"] .ytcard .ytsub, html[data-theme="light"] .ytcard-h .ythandle:hover { color: #b91c1c; }
html[data-theme="light"] .ytcard iframe, html[data-theme="light"] .ytcard .ytfacade { background: #0f172a; }
/* A11Y self-audit footer (inline-styled): caption color:#94a3b8 is 2.4:1 on #f7f8fb → !important */
html[data-theme="light"] footer[style*="padding:28px 20px 34px"] div[style*="color:#94a3b8"] { color: #475569 !important; }
/* The two inline-styled funnel cards (WIA Music #151924→#10211b, Korean Today #0a1a33→#0051a2) are intentionally left dark. */

/* ===== practice.html / mock.html / speak.html — mostly tokens; the rest is above. Page-specific leftovers: ===== */
html[data-theme="light"] .fb, html[data-theme="light"] .eresult, html[data-theme="light"] .result { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
html[data-theme="light"] .exrow.sub { background: transparent; border-color: #cbd5e1; }
html[data-theme="light"] .exrow:hover { border-color: #2563eb; }
html[data-theme="light"] .mic.rec { background: #b91c1c; }

/* ===== cert.html (own darker tokens --bg #0e1116 --card #171c26 --line #2a313f, teal --accent #1a9bb5 → light blue like the rest) ===== */
html[data-theme="light"] .cert .num { color: #2563eb; }
html[data-theme="light"] canvas { border-color: #cbd5e1; box-shadow: 0 1px 4px rgba(15, 23, 42, .10); }   /* certificate render is white already */
html[data-theme="light"] .msg a, html[data-theme="light"] .crumb a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }

/* ===== exam-info.html ===== */
html[data-theme="light"] table, html[data-theme="light"] .fee { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
html[data-theme="light"] th { background: #eef1f6; color: #475569; }
html[data-theme="light"] .freebanner { background: linear-gradient(100deg, #ecfdf5, #eff6ff); border-color: rgba(21, 128, 61, .45); }
html[data-theme="light"] .gcard img { filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .18)); }   /* badge PNGs are transparent; a hint of shadow on white */
html[data-theme="light"] ul.clean li { color: #475569; }
@media (max-width: 560px) {
  html[data-theme="light"] table tr { box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
}

/* ===== wordchain.html — its --accent is GOLD (#ffd35c) while the shared token above is blue → re-pin gold places ===== */
html[data-theme="light"] h1 .ko { color: #854d0e; text-shadow: none; }
html[data-theme="light"] .hud .pill { background: #fff; }
html[data-theme="light"] .hud .pill b { color: #854d0e; }
html[data-theme="light"] .imgbox { border-color: rgba(180, 83, 9, .45); box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
html[data-theme="light"] .current { color: #854d0e; text-shadow: none; }
html[data-theme="light"] .current .hl { color: #0f172a; border-bottom-color: #b45309; }   /* was white text + gold underline */
html[data-theme="light"] .listen { color: #854d0e; border-color: #b45309; background: #fff7e0; }
html[data-theme="light"] .ask .syl { background: #ffd35c; color: #1a1300; }               /* keep the gold chip, dark text (was var(--accent) → would turn blue) */
html[data-theme="light"] .board .opt:hover:not(:disabled) { border-color: #b45309; }   /* beats the shared blue hover above (0,5,0 > 0,4,0) */
html[data-theme="light"] .feedback.info { color: #854d0e; }
html[data-theme="light"] .over .sc { color: #854d0e; }
html[data-theme="light"] .how b { color: #854d0e; }
html[data-theme="light"] .btn.primary { color: #1a1300; }                                   /* gradient #ffd35c→#ffb43a unchanged */
html[data-theme="light"] .btn.ghost { border-color: #7b879c; }
/* YouTube promo block: dark red gradient card with light-red title → cream card, dark red */
html[data-theme="light"] .yt { background: linear-gradient(135deg, #fff5f5, #fee2e2); border-color: #fca5a5; }
html[data-theme="light"] .yt .t { color: #b91c1c; }

/* ===== wiabook promo banner (site-chrome.js loads wiabook.com/site-kit/promo-banner/loader.js before the first <footer>) =====
   Image banner with its own dark caption (#1f1b24 / white text, injected <style>) — left as designed, only the card edge softened. */
html[data-theme="light"] .wia-promo-banner { border-color: #e2e8f0; }

/* ===== privacy.html / terms.html: already light (cream --bg #fbf6ec, --ink #2a2118). No chrome scripts, no lang chip, no anchor —
   nothing to override; they only carry the family cookie. ===== */
