/* k-news.thekoreantoday.com (News Hub) — site theme: DARK overlay (2026-10-29, family56 F, koreantoday server).
   ORIGINAL look = LIGHT (/var/www/portal/index.php — inline <style> 62–336 in <head> + .wiayt <style> 387–421 in
   <body>; hex 70, no tokens, no :root). index.php is NOT changed. Load this file right before </head> (after the first
   inline <style>) with the wia-site-theme engine setting <html data-theme="light|dark"> before first paint. Every rule
   is scoped to html[data-theme="dark"], so light renders exactly as before (0 px). color-scheme is set by the engine.
   The .wiayt <style> block comes AFTER this file (it is in <body>) — our selectors carry the extra html[data-theme]
   attribute, so specificity wins regardless of order.

   Scope: the home page only (index.php). search/map/standard/certified/register/apply/pay_return each have their own
   <head>/<style> (no shared shell) and are out of this file — see NOTES ③.

   Dark palette (Google-like light → neutral navy; ratios against page #0b0d12 / card #14161f):
   ┌──────────────────┬──────────┬──────────────────────────────────────────────────────────────────┐
   │ page bg          │ #0b0d12  │ body (was #ffffff); footer #0f1117 (was #f6f8f8)                  │
   │ card             │ #14161f  │ search box, shortcut circle #1b1e28, wiayt cards, language modal  │
   │ text             │ #e9ecf2  │ 16.4:1 page · 15.2:1 card   (was #202124)                         │
   │ text-soft        │ #a3abbd  │  8.4:1 · 7.8:1              (was #5f6368 nav/shortcut/voice)      │
   │ text-muted       │ #8b93a5  │  6.3:1 · 5.9:1              (was #666/#7a8786 footer tag/copy)    │
   │ line             │ #2a2d3d  │ hairline (decorative); INPUT border #6b7384 = 4.1:1 on page        │
   │ link blue        │ #8fb6ff  │  8.9:1 on card              (was #0051a2 "더 보기")               │
   │ teal hover       │ #5fd3cf  │ 10.5:1 on footer            (was #0C7673)                         │
   │ gold cert pill   │ #f3d27a on #2a2412 10.5:1, border #8a6d1e 3.9:1 (was #7a5400 / #fffaf0)     │
   │ YouTube red      │ #ff7a72  │  7.1:1 on card (handles, was #ff4e45 5.2:1); badge fill #d32f2f    │
   └──────────────────┴──────────┴──────────────────────────────────────────────────────────────────┘
   Logo letters keep Google brand colours (#4285f4 5.5:1 · #ea4335 5.0:1 · #fbbc05 11.4:1 · #34a853 6.4:1 on the dark
   page, 48–90 px display text) — untouched. The 🏅 nav link inline color:#f5d061 is 13:1 on dark — untouched. */

/* ===== page ===== */
html[data-theme="dark"] body { background: #0b0d12; color: #e9ecf2; }
html[data-theme="dark"] ::placeholder { color: #8b93a5; opacity: 1; }
html[data-theme="dark"] ::selection { background: #2b5fd8; color: #fff; }

/* ===== top nav (body > nav.header-nav, flex-end; ≤600px wraps + centers) ===== */
html[data-theme="dark"] .header-nav a { color: #a3abbd; }
html[data-theme="dark"] .header-nav a:hover { background-color: rgba(255, 255, 255, .08); color: #e9ecf2; }
html[data-theme="dark"] .header-nav a:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 2px; }
/* a[href="/apply.php"] has inline style="color:#f5d061" — gold on dark reads fine, left alone */

/* ===== logo (h1.main-logo spans) — brand colours kept; only the wave animation's text stays as is ===== */

/* ===== search ===== */
html[data-theme="dark"] .search-box {
  background: #14161f;
  color: #e9ecf2;
  border-color: #6b7384;                               /* was #dfe1e5 — form boundary ≥ 3:1 */
  box-shadow: 0 2px 5px 1px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .search-box:hover { box-shadow: 0 2px 8px 1px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .search-box:focus { border-color: #7fb0ff; box-shadow: 0 0 0 3px rgba(127, 176, 255, .25); }
html[data-theme="dark"] .voice-btn { color: #a3abbd; }
html[data-theme="dark"] .voice-btn:hover { background: rgba(255, 255, 255, .1); }
/* index.php 569: recognition.onend sets voice-btn style.color = '#5f6368' (inline, 2.6:1 on the dark card) after a
   voice search — inline beats any selector, so !important; the "listening" red (#ea4335, 554) is left visible. */
html[data-theme="dark"] .voice-btn[style*="rgb(95, 99, 104)"],
html[data-theme="dark"] .voice-btn[style*="#5f6368"] { color: #a3abbd !important; }

/* ===== shortcuts (.shortcut = <a> or <div role=button>; JS adds more with the same classes) ===== */
html[data-theme="dark"] .shortcut { color: #a3abbd; }
html[data-theme="dark"] .shortcut-icon { background: #1b1e28; border-color: #3a3f52; color: #e9ecf2; }   /* ring is decorative */
html[data-theme="dark"] .shortcut:hover .shortcut-icon { border-color: #7fb0ff; background: #1b2540; box-shadow: 0 4px 12px rgba(127, 176, 255, .18); }
html[data-theme="dark"] .shortcut:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 4px; border-radius: 8px; }
html[data-theme="dark"] .shortcut-label { color: #a3abbd; }
/* favicons / koreantoday_icon.png inside the circle are images — untouched */

/* ===== WIA Korean YouTube section (.wiayt — <style> in <body>, lines 387–421) ===== */
html[data-theme="dark"] .wiayt-h { color: #e9ecf2; }            /* was #1a1a2e */
html[data-theme="dark"] .wiayt-sub { color: #a3abbd; }          /* was #666 */
html[data-theme="dark"] .wiayt-card { background: #14161f; border-color: #2a2d3d; }
html[data-theme="dark"] .wiayt-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .55); border-color: #ff7a72; }
html[data-theme="dark"] .wiayt-name { color: #e9ecf2; }         /* was #1a1a1a */
html[data-theme="dark"] .wiayt-handle { color: #ff7a72; }       /* was #ff4e45 (5.2:1 → 7.1:1 at 11px bold) */
html[data-theme="dark"] .wiayt-thumb { background: #000; }
html[data-theme="dark"] .wiayt-novid { background: #0f0f14; color: #ff7a72; border: 1px solid #2a2d3d; }
html[data-theme="dark"] .wiayt-novid:hover { background: #16161d; }
html[data-theme="dark"] .wiayt-mine { border-color: #ff7a72; box-shadow: 0 0 0 2px rgba(255, 122, 114, .22); }
html[data-theme="dark"] .wiayt-badge { background: #d32f2f; color: #fff; }   /* white 5.0:1 (was #ff4e45 3.3:1) */
html[data-theme="dark"] .wiayt-more { background: #14161f; color: #8fb6ff; border-color: #6b7384; }   /* was #fff / #0051a2 / #cdd7e5 */
html[data-theme="dark"] .wiayt-more:hover { background: #2f62d6; color: #fff; border-color: #2f62d6; }   /* white 5.5:1 */
html[data-theme="dark"] .wiayt-more:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 2px; }
/* .wiayt-pbtn (#f00 play button on the thumbnail) and the youtube-nocookie iframe are the same in both themes */

/* ===== footer (footer.kn-foot, two rows) ===== */
html[data-theme="dark"] .kn-foot { background: #0f1117; border-top-color: #2a2d3d; color: #a3abbd; }   /* was #f6f8f8 / #e3e8e7 / #5f6b6a */
html[data-theme="dark"] .kn-foot-top { border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .kn-brand { color: #e9ecf2; }           /* was #1f2b2a */
html[data-theme="dark"] .kn-tag,
html[data-theme="dark"] .kn-copy { color: #8b93a5; }            /* was #7a8786 — 6.1:1 on the footer */
html[data-theme="dark"] .kn-foot a { color: #b8bfcc; }          /* was #4a5857 — 10.2:1 */
html[data-theme="dark"] .kn-foot nav a:hover { color: #5fd3cf; }   /* was #0C7673 */
html[data-theme="dark"] .kn-foot a:focus-visible { outline-color: #5fd3cf; }
/* .kn-cert sets color:#7a5400 !important in the source (273) — same weight needed to recolour the gold pill */
html[data-theme="dark"] .kn-cert { border-color: #8a6d1e; background: #2a2412; color: #f3d27a !important; }
html[data-theme="dark"] .kn-cert:hover { background: #3a3218; }

/* ===== language modal (wia.live kt-language-modal.js — shared kit, injects its own <style>; not edited) =====
   The kit paints a white card with a purple #667eea→#764ba2 header. Overlay rgba(0,0,0,.95) and the purple header are
   kept (already dark/saturated); only the white body, tabs, search, items and footer go to the card palette. */
html[data-theme="dark"] .wia-nav-modal-content { background: #14161f; color: #e9ecf2; box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .wia-nav-modal-tabs { background: #0f1117; border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .wia-nav-modal-tab { background: #1b1e28; border-color: #3a3f52; color: #e9ecf2; }
html[data-theme="dark"] .wia-nav-modal-tab:hover { background: #242838; }
html[data-theme="dark"] .wia-nav-modal-tab.active { color: #fff; border-color: #8b9cf5; }   /* purple gradient fill kept */
/* .wia-nav-lang-search has border: 2px solid #e5e7eb !important in the kit — same weight to recolour */
html[data-theme="dark"] .wia-nav-lang-search { background: #0f1117; color: #e9ecf2; border-color: #6b7384 !important; }
html[data-theme="dark"] .wia-nav-lang-search:focus { border-color: #8b9cf5 !important; box-shadow: 0 0 0 3px rgba(139, 156, 245, .25); }
html[data-theme="dark"] .wia-nav-lang-count { color: #e9ecf2; background: linear-gradient(135deg, rgba(102, 126, 234, .22), rgba(118, 75, 162, .22)); }
html[data-theme="dark"] .wia-nav-lang-item { background: #1b1e28; border-color: #3a3f52; color: #e9ecf2; }
html[data-theme="dark"] .wia-nav-lang-item:hover { border-color: #8b9cf5; background: linear-gradient(135deg, rgba(102, 126, 234, .32), rgba(118, 75, 162, .32)); }
html[data-theme="dark"] .wia-nav-lang-item.selected { border-color: #8b9cf5; background: linear-gradient(135deg, rgba(102, 126, 234, .28), rgba(118, 75, 162, .28)); color: #fff; }
html[data-theme="dark"] .wia-nav-modal-footer { background: #0f1117; border-top-color: #2a2d3d; color: #a3abbd; }
html[data-theme="dark"] .wia-nav-modal-footer a { color: #b6c9ff; }   /* was #667eea (4.0:1 on the dark footer) */

/* ===== engine button is styled by the engine (btnCss/extraCss) — nothing here ===== */
