/* wiaaddress.com — site theme overlay: DARK (2026-10-29, family56 bundle D).
   ORIGINAL look = LIGHT (index.html inline <style> 63~213: body #f8f9fa/#333, white .header, blue #1a73e8 / green #34a853;
   NO :root tokens, 165 hard-coded hex). Live files untouched. Every rule is scoped to html[data-theme="dark"], so with
   nothing saved the pages render exactly as before. Load at the END of <head> (index 420 `</head>`, copies 409).
   color-scheme: engine, not here.

   Pages (root 7 + shells): index.html (+199 language copies /<lang>/index.html, same inline CSS) · /t/*-address.html
   (41,006 conversion pairs: same .header/.logo, .search-box, .input-row, .lang-badge, .translate-btn, .result-box,
   .result-table, .related, .footer — covered by the same class names) · pricing.html (purple gradient + white cards) · languages.html (#f0f4ff +
   white cards, blue hero) · globe.html (ALREADY dark #000511; only its white cards are darkened) · offline.html (purple
   gradient) · ai-connect/index.html (has its OWN `:root[data-theme="dark"]` tokens → follows the engine natively, nothing
   to add) · blog/post-2025-08-30.html (all inline, already dark #1a1a2e, no header → out of scope).

   Dark palette (contrast vs page #0b0d12 / card #14161f)
   ─ page #0b0d12   card #14161f   band #1b1e2a   line #2a2d3d   control border #7b879c (5.0 on card)
   ─ text #e9ecf2 (16.9 / 15.5)   muted #a3abbd (8.6 / 7.9)   dim #8b93a7 (6.4)
   ─ blue #1a73e8 → text/icon #8ab4ff (8.9) · FILL stays #1a73e8 + white (4.8) · hover fill #1557b0
   ─ green #34a853 stays (6.0 on card) · error #f87171 on #3b1118 · success tint #0f2a1a
   Kept on purpose: .globe-box / .travel-box / .worldtour-section / .share-section (already dark navy, white text),
   OTA brand buttons, .wia-pin-badge gradient, pricing .enterprise (orange) and .popular-badge, offline .retry-btn. */

/* ===== page ===== */
html[data-theme="dark"] body { background: #0b0d12; color: #e9ecf2; }
html[data-theme="dark"] ::selection { background: rgba(138, 180, 255, .35); }

/* ===== header (static <div class="header">, centred block — index, copies, /t/ pages, languages.html) ===== */
html[data-theme="dark"] .header { background: #14161f; border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .logo { color: #8ab4ff; }
html[data-theme="dark"] .logo span { color: #4ade80; }
html[data-theme="dark"] .subtitle { color: #a3abbd; }
/* index 424: <nav class="header-nav"><a style="color:#1a73e8 …"> — #1a73e8 is 3.8:1 on #14161f → inline needs !important */
html[data-theme="dark"] .header-nav a[style*="color:#1a73e8"] { color: #8ab4ff !important; }
html[data-theme="dark"] .site-desc { color: #a3abbd; }
html[data-theme="dark"] h1 { color: #e9ecf2; }                         /* /t/ pages: h1{color:#222} */

/* ===== search box / inputs ===== */
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .recent-box,
html[data-theme="dark"] .lang-links,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .related,
html[data-theme="dark"] .result-box { background: #14161f; box-shadow: 0 2px 12px rgba(0, 0, 0, .45); border: 1px solid #2a2d3d; }
html[data-theme="dark"] .input-row input[type="text"],
html[data-theme="dark"] .input-row input,
html[data-theme="dark"] .lang-select { background-color: #0f1117; color: #e9ecf2; border-color: #7b879c; }
html[data-theme="dark"] .input-row input::placeholder { color: #8b93a7; }
html[data-theme="dark"] .input-row input:focus,
html[data-theme="dark"] .lang-select:focus { border-color: #8ab4ff; }
/* <select> arrow is an inline SVG data URI with fill #666 — redrawn light */
html[data-theme="dark"] .lang-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23a3abbd'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .lang-select option { background: #0f1117; color: #e9ecf2; }
html[data-theme="dark"] .swap-btn { background: #1b1e2a; border-color: #7b879c; color: #e9ecf2; }
html[data-theme="dark"] .swap-btn:hover { border-color: #8ab4ff; color: #8ab4ff; }
html[data-theme="dark"] .translate-btn { background: #1a73e8; color: #fff; }
html[data-theme="dark"] .translate-btn:hover { background: #2b82f0; }
html[data-theme="dark"] .translate-btn:disabled { background: #3a3f55; color: #a3abbd; }
html[data-theme="dark"] .translate-btn:focus-visible,
html[data-theme="dark"] .swap-btn:focus-visible { outline: 2px solid #e9ecf2; outline-offset: 2px; }
/* /t/ pages */
html[data-theme="dark"] .lang-info { color: #c9d0dc; }
html[data-theme="dark"] .lang-badge { background: #1e2a44; color: #8ab4ff; }
html[data-theme="dark"] .swap-link { color: #8ab4ff; }
html[data-theme="dark"] p[style*="color:#888"] { color: #a3abbd !important; }   /* /t/ subtitle line: #888 is 4.0:1 → inline */
html[data-theme="dark"] #rh[style*="background:#fff"] { background: #14161f !important; box-shadow: 0 1px 6px rgba(0, 0, 0, .4) !important; }
html[data-theme="dark"] #rh div[style*="color:#888"] { color: #a3abbd !important; }

/* ===== result table ===== */
html[data-theme="dark"] .result-table tr { border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .result-table td { color: #e9ecf2; }
html[data-theme="dark"] .result-table td:first-child { color: #a3abbd; background: #10121a; }
/* page rule is `background:#e8f5e9 !important` → same specificity + !important needed */
html[data-theme="dark"] .result-highlight { background: #0f2a1a !important; }
html[data-theme="dark"] .result-highlight td:first-child { background: #0c2316; }
html[data-theme="dark"] .copy-btn { background: #1b1e2a; border-color: #7b879c; color: #c9d0dc; }
html[data-theme="dark"] .copy-btn:hover { background: #242838; }
html[data-theme="dark"] .copy-btn.copied { background: #34a853; border-color: #34a853; color: #fff; }
html[data-theme="dark"] .map-container { border-top-color: #2a2d3d; }
/* Leaflet tiles (OSM raster) are light — inverted so the map does not glow in the dark result card.
   Marker icons/popups are not inverted (they sit in other panes). Optional; delete this one rule if it looks wrong. */
html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
html[data-theme="dark"] .leaflet-container { background: #0f1117; }

/* ===== recent / language links / FAQ ===== */
html[data-theme="dark"] .recent-box h3 { color: #a3abbd; }
html[data-theme="dark"] .recent-box h3 button { color: #8b93a7; }
html[data-theme="dark"] .recent-box h3 button:hover { color: #f87171; }
html[data-theme="dark"] .recent-list a,
html[data-theme="dark"] .rhl a { background: #1b1e2a; border-color: #3a3f55; color: #c9d0dc; }
html[data-theme="dark"] .recent-list a:hover,
html[data-theme="dark"] .rhl a:hover { background: #1e2a44; border-color: #8ab4ff; color: #8ab4ff; }
html[data-theme="dark"] .lang-links h3,
html[data-theme="dark"] .related h3 { color: #a3abbd; }
html[data-theme="dark"] .lang-links .links a,
html[data-theme="dark"] .related a { background: #1e2a44; color: #8ab4ff; }
html[data-theme="dark"] .lang-links .links a:hover,
html[data-theme="dark"] .related a:hover { background: #26375a; }
html[data-theme="dark"] .faq-section h2 { color: #e9ecf2; }
html[data-theme="dark"] .faq-item { border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .faq-item h3 { color: #8ab4ff; }
html[data-theme="dark"] .faq-item p { color: #c9d0dc; }

/* ===== status ===== */
html[data-theme="dark"] .spinner { border-color: #2a2d3d; border-top-color: #8ab4ff; }
html[data-theme="dark"] .loading { color: #a3abbd; }
html[data-theme="dark"] .error-msg { background: #3b1118; color: #fca5a5; border: 1px solid #7f1d1d; }

/* ===== footer / ads ===== */
html[data-theme="dark"] .footer { color: #a3abbd; }
html[data-theme="dark"] .footer a { color: #8ab4ff; }
html[data-theme="dark"] .ad-unit,
html[data-theme="dark"] .ad-sidebar { color: #8b93a7; }

/* ===== globe.html (body #000511 already dark) — only its white content cards ===== */
html[data-theme="dark"] .map-section,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .links-section { background: #14161f; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); border: 1px solid #2a2d3d; }
html[data-theme="dark"] .map-header { background: #1b1e2a; border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .map-header h2,
html[data-theme="dark"] .info-card h3,
html[data-theme="dark"] .links-section h3,
html[data-theme="dark"] .info-value { color: #e9ecf2; }
html[data-theme="dark"] .map-header p,
html[data-theme="dark"] .info-label { color: #a3abbd; }
html[data-theme="dark"] .info-row { border-bottom-color: #2a2d3d; }
html[data-theme="dark"] .ad-slot { background: #1b1e2a; border-color: #3a3f55; }
html[data-theme="dark"] .ad-slot-label { color: #8b93a7; }
html[data-theme="dark"] .link-chip { background: #1e2a44; color: #8ab4ff; }
html[data-theme="dark"] .link-chip:hover { background: #26375a; }

/* ===== pricing.html (purple gradient page, white cards) ===== */
html[data-theme="dark"] .pricing-card { background: #14161f; border: 1px solid #2a2d3d; color: #e9ecf2; }
html[data-theme="dark"] .pricing-card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .pricing-card.popular { border-color: #4ade80; }
html[data-theme="dark"] .plan-name { color: #e9ecf2; }
html[data-theme="dark"] .price { color: #9fb0ff; }                     /* #667eea was 4.5:1 borderline on the card */
html[data-theme="dark"] .price .period { color: #a3abbd; }
html[data-theme="dark"] .features li { border-bottom-color: #2a2d3d; color: #c9d0dc; }
html[data-theme="dark"] .cta-button { background: linear-gradient(135deg, #5563d6, #6a3f93); color: #fff; }
html[data-theme="dark"] .free-plan .cta-button { background: #2a2d3d; color: #e9ecf2; }
/* pricing/offline body gradient #667eea→#764ba2 (page-level rule `body{background:…}` is beaten by our html[…] body above);
   restore a faint purple so the white h1/.subtitle of these two pages still sit on a tinted page */
html[data-theme="dark"] .pricing-grid { position: relative; }

/* ===== languages.html ===== */
html[data-theme="dark"] .hero { background: linear-gradient(135deg, #123c7a 0%, #0b2a5a 100%); }
html[data-theme="dark"] .search-wrap { background: #14161f; border-bottom-color: #2a2d3d; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .search-inner input { background: #0f1117; color: #e9ecf2; border-color: #7b879c; }
html[data-theme="dark"] .search-inner input:focus { border-color: #8ab4ff; }
html[data-theme="dark"] .search-icon { color: #8b93a7; }
html[data-theme="dark"] .section-title { color: #a3abbd; }
html[data-theme="dark"] .popular-grid a { background: #14161f; border-color: #2a2d3d; color: #c9d0dc; box-shadow: none; }
html[data-theme="dark"] .popular-grid a:hover { border-color: #8ab4ff; box-shadow: 0 3px 12px rgba(138, 180, 255, .2); }
html[data-theme="dark"] .popular-grid a .pair { color: #8ab4ff; }
html[data-theme="dark"] .popular-grid a small { color: #8b93a7; }
html[data-theme="dark"] .region-card { background: #14161f; border-color: #2a2d3d; box-shadow: none; }
html[data-theme="dark"] .region-card:hover,
html[data-theme="dark"] .region-card.active { border-color: #8ab4ff; background: #1e2a44; }
html[data-theme="dark"] .region-card .region-name { color: #e9ecf2; }
html[data-theme="dark"] .region-card .region-count { color: #a3abbd; }
html[data-theme="dark"] .region-card .region-langs { color: #8b93a7; }
html[data-theme="dark"] .lang-panel { background: #14161f; border: 1px solid #2a2d3d; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .lang-item,
html[data-theme="dark"] .search-result-item { background: #1b1e2a; }
html[data-theme="dark"] .lang-item-header:hover,
html[data-theme="dark"] .lang-item-header.open { background: #1e2a44; }
html[data-theme="dark"] .lang-name .native { color: #e9ecf2; }
html[data-theme="dark"] .lang-name .english,
html[data-theme="dark"] .lang-arrow { color: #a3abbd; }
html[data-theme="dark"] .lang-targets { border-top-color: #2a2d3d; }
html[data-theme="dark"] .lang-targets a { background: #14161f; border-color: #3a3f55; color: #8ab4ff; }
html[data-theme="dark"] .lang-targets a:hover { background: #1a73e8; border-color: #1a73e8; color: #fff; }

/* ===== offline.html / pricing.html page chrome on the dark page ===== */
html[data-theme="dark"] .offline-container { background: #14161f; border: 1px solid #2a2d3d; }
html[data-theme="dark"] .retry-btn { background: #e9ecf2; color: #4338ca; }

/* ===== generic focus ring for the header button the engine appends to div.header ===== */
html[data-theme="dark"] .header button:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }
