/* LinguaEmpire — Vivid palette layer (visual overhaul, Nov 2026).
   Linked AFTER each page's own <style> so this layer wins over page
   styles on equal specificity; inline style attributes still win,
   except header/nav where !important is used deliberately.
   Brand: navy #070D1F base kept; electric blue #2E6BFF; luminous
   cyan #22D3EE; metallic gold gradient (never a flat fill). */
:root{
  --ve-navy:#070D1F; --ve-navy-deep:#050A18; --ve-navy-mid:#14366B;
  --ve-blue:#2E6BFF; --ve-blue-deep:#0A41D6; --ve-blue-dark:#1238B8;
  --ve-cyan:#22D3EE; --ve-gold:#F5C542; --ve-gold-light:#F7DC6F;
  --gold:#F5C542; /* pages use var(--gold) for the eyebrow; define it here
    so the five pages without their own :root get the same gold instead
    of falling back to inherited ink */
  --ve-gold-deep:#B8860B; --ve-ink:#1A2332; --ve-muted:#5B6572;
  --ve-bg:#F7F5EF;
  --ve-gold-metal:linear-gradient(135deg,#F5C542 0%,#D4A017 45%,#B8860B 78%,#F5C542 100%);
  --ve-blue-grad:linear-gradient(135deg,#2456D6 0%,#0A41D6 100%);
  --ve-hero-grad:linear-gradient(120deg,#0A1128 0%,#070D1F 45%,#14366B 78%,#2E6BFF 135%);
  --ve-glow-blue:0 6px 22px rgba(46,107,255,.45);
  --ve-glow-gold:0 6px 22px rgba(245,197,66,.45);
  --ve-glow-cyan:0 0 0 3px rgba(34,211,238,.35),0 6px 22px rgba(34,211,238,.35);
}
/* Hero header + nav: vivid navy-to-electric gradient (beats inline style). */
body>header,header{background:var(--ve-hero-grad)!important}
/* Buttons: electric-blue gradient + glow; gold buttons go metallic. */
button{background:var(--ve-blue-grad)!important;color:#fff!important;box-shadow:var(--ve-glow-blue)}
button:hover{filter:brightness(1.08)}
button.gold,.gold{background:var(--ve-gold-metal)!important;color:#1A2332!important;box-shadow:var(--ve-glow-gold)}
button:disabled{background:#8B95A6!important;box-shadow:none}
/* Cards: confident colour block + blue glow. */
.card{box-shadow:0 10px 30px rgba(46,107,255,.12),0 2px 8px rgba(0,0,0,.06)!important}
/* Notes: richer gold tint + gold border. */
.note{background:linear-gradient(#FFF6D6,#FFFBE8)!important;border-color:#E9C767!important}
/* Gold highlight marks go metallic. */
.goldmark{background:var(--ve-gold-metal)!important}
/* Links in page body: deep electric blue. */
main a{color:#0A41D6}
main a:hover{color:#2E6BFF}
/* Tags: gold tags go metallic. */
.tag-gold{background:var(--ve-gold-metal)!important;color:#1A2332!important}
/* Utility classes for Worker 1 / future pages. */
.ve-gold-text{background:var(--ve-gold-metal);-webkit-background-clip:text;background-clip:text;color:transparent}
.ve-glow{box-shadow:var(--ve-glow-blue)}
.ve-glow-cyan{box-shadow:var(--ve-glow-cyan)}
.ve-hero{background:var(--ve-hero-grad);color:#fff}
@media (prefers-reduced-motion:reduce){button{transition:none}}

/* ---- COLORFIX (Nov 2026): header/nav/hero readability ----
   The vivid layer darkened the header and topbar backgrounds while the
   text stayed dark, so the wordmark ("Lingua"), nav links, "Sign in",
   the H1 and the hero lead were invisible (1.0-1.3:1). The header was
   more readable before the overhaul, so the topbar goes back to its
   original WHITE design (exactly as linguaempire-lang.js builds it)
   and every hero text goes light on the kept dark gradient. */

/* Topbar: white background + dark text (beats the vivid nav gradient). */
nav.le-topbar{background:#fff!important;border-bottom:1px solid #dbe0e8}
nav.le-topbar a{color:#101828!important}
/* Dropdown triggers: transparent again, never solid blue boxes. Blue is
   hover/focus only, as a subtle tint + darker blue text (7.66:1). */
nav.le-topbar .le-drop>button{background:none!important;color:#101828!important;box-shadow:none!important}
nav.le-topbar .le-drop>button:hover,nav.le-topbar .le-drop>button:focus{color:#0a41d6!important;background:rgba(46,107,255,.08)!important}
/* Language button: gold again (its designed style), not a blue box. */
#le-lang-btn{background:#f5c542!important;color:#101828!important;box-shadow:none!important}
nav.le-topbar .le-signin{color:#101828!important}
nav.le-topbar .le-tour{background:#2456d6!important;color:#fff!important}
nav.le-topbar .le-trial{background:#f1f3f5!important;color:#101828!important}
/* Help-widget close button: transparent again, not a blue box. */
.le-float-close{background:none!important;color:#5b6572!important;box-shadow:none!important}
/* Language-picker modal buttons (fix 1): the global blue-gradient button
   rule must not hit them — plain white buttons, dark text (17.75:1). */
#le-lang-modal button{background:#fff!important;color:#101828!important;box-shadow:none!important}
#le-lang-modal button:hover{background:#f7f5ef!important}
/* Tour step navigation (fix 2, demo.html): secondary buttons stay white
   with dark text and the active step stays gold — the global
   blue-gradient button rule must not flatten them. */
.stepnav button.secondary,.actions button.secondary{background:#fff!important;color:#1a2332!important;border:1.5px solid #c4cbd6!important;box-shadow:none!important}
.stepnav button.active-step{background:#f5c542!important;color:#1a2332!important;box-shadow:none!important}

/* Hero header: the dark gradient stays; every hero text goes light. */
header h1,header .hero-h1{color:#fff!important}
header .hero-eyebrow{color:#d5dde8!important}
header .hero-lead,header p.lead{color:#d5dde8!important}
header .hero-slogan{color:#fff!important}
header .motto{color:#f5c542!important}
header .tagline{color:#fff!important}
header .sub{color:#d5dde8!important}
/* "Glossary:" label inside the LIGHT hero panel: bright gold on white is
   1.62:1. Use the brand dark gold #8A6A00 (5.07:1 on white), the shade
   the logo CSS reserves for small gold text on white. */
.hero-panel:not(.hero-panel--dark) span{color:#8a6a00!important}

/* ---- SHARED HERO PANEL + CTAs (Nov 2026) ----
   The light hero panel and its two CTA buttons were styled only in
   index.html's own <style>, so on global-growth, performance, phase-b
   and project-titles the panel rendered unstyled: dark text on the
   dark hero (1.22:1, invisible) and plain default links for the CTAs.
   These rules live here now, so every page with a hero-panel gets the
   same light panel. Colour rules are scoped to light panels only:
   lingua-3d-world's panel is dark by design (class hero-panel--dark,
   its own page <style> sets #1b2a45 + light text) and must not get a
   light background or dark text. Layout-only rules are global. */
.hero-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:0 0 40px}
.hero-ctas a{display:inline-block;text-decoration:none;font-size:16px;font-weight:700;padding:14px 28px;border-radius:8px}
.hero-cta-primary{background:#2456d6;color:#fff}
.hero-cta-secondary{background:#fff;color:#1a2332;border:1.5px solid #c4cbd6}
.hero-panel:not(.hero-panel--dark){max-width:880px;margin:0 auto;background:#f7f5ef;border:1px solid #dbe0e8;border-radius:16px;padding:22px;text-align:left;box-shadow:0 12px 32px rgba(16,24,40,.10)}
.hero-panel h3{margin:0 0 12px;font-size:20px}
.hero-panel .seg{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hero-panel:not(.hero-panel--dark) .seg div{background:#fff;border:1px solid #dbe0e8;border-radius:10px;padding:14px;font-size:16px}
.hero-panel:not(.hero-panel--dark) .seg b{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#5b6572;margin-bottom:6px}
.hero-panel:not(.hero-panel--dark) .match{margin-top:12px;font-size:14px;color:#067647;font-weight:700}
@media(max-width:720px){.hero-panel .seg{grid-template-columns:1fr}}

/* Multi-select domain checkbox groups (replaces the single-select domain dropdowns) */
.le-domains{border:1px solid #c4cbd6;border-radius:8px;background:#fff;padding:10px 12px}
.le-domains-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.le-domains-bar button{font-size:14px;font-weight:700;padding:7px 14px;border-radius:8px;cursor:pointer;border:0}
.le-domains-all{background:#1E5BFF;color:#fff}
.le-domains-clear{background:#fff;color:#1E5BFF;border:2px solid #1E5BFF}
.le-domains-count{font-size:14px;color:#5b6572;font-weight:600;margin-left:auto}
.le-domains-list{max-height:260px;overflow-y:auto;border-top:1px solid #dbe0e8;padding-top:8px}
.le-domains-any{display:block;font-weight:800;padding:6px 2px;border-bottom:1px solid #dbe0e8;margin-bottom:6px}
.le-domains-group{border:0;padding:0;margin:0 0 8px}
.le-domains-group legend{font-weight:800;font-size:15px;color:#101828;padding:0}
.le-domains-group label{display:block;padding:3px 2px;font-size:15px;cursor:pointer}
.le-domains-group label:hover{background:#f0f5ff;border-radius:6px}
.le-domains input[type=checkbox]{accent-color:#1E5BFF;width:16px;height:16px;margin-right:8px;vertical-align:-2px}

/* ---- Two-column hero (Nov 2026) ----
   The hero is two columns: text on the left, the page's 3D scene (or
   lead illustration) on the right, filling the empty hero space and
   saving the full-width block the visual used to take below the hero.
   The text column starts ~1.5in (144px) in from the left edge on
   desktop — the left inset the user asked for — and the inset shrinks
   on smaller screens. On mobile the scene stacks below the text.
   Pages opt in with class="le-hero le-hero--2col" on <header>; the
   text lives in .le-hero-text, the visual in .le-hero-scene, and a
   hero-panel (if present) spans both columns below them. */
header.le-hero--2col{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);column-gap:56px;align-items:center;text-align:start;padding-block-start:64px;padding-block-end:56px;padding-inline-start:144px;padding-inline-end:56px}
header.le-hero--2col .le-hero-text{min-width:0}
header.le-hero--2col .le-hero-text>*{text-align:start}
header.le-hero--2col .hero-h1,header.le-hero--2col .hero-lead{margin-left:0;margin-right:0}
header.le-hero--2col .hero-ctas{justify-content:flex-start;margin-bottom:0}
header.le-hero--2col .le-hero-scene{min-width:0}
header.le-hero--2col .le-hero-scene figure{margin:0}
header.le-hero--2col .le-hero-scene figure img{display:block;width:100%;border-radius:12px}
header.le-hero--2col .le-hero-scene .le-services-3d{max-height:460px}
header.le-hero--2col .le-hero-scene .le-globe{height:400px}
header.le-hero--2col .le-hero-scene .le-globe--hero{margin:0;max-width:none}
header.le-hero--2col .hero-panel{grid-column:1/-1;margin-top:40px}
@media(max-width:1100px){header.le-hero--2col{padding-block-start:48px;padding-block-end:40px;padding-inline-start:64px;padding-inline-end:32px;column-gap:32px}}
@media(max-width:860px){header.le-hero--2col{display:block;text-align:center;padding-block-start:40px;padding-block-end:32px;padding-inline:20px}header.le-hero--2col .le-hero-text>*{text-align:center}header.le-hero--2col .hero-h1,header.le-hero--2col .hero-lead{margin-left:auto;margin-right:auto}header.le-hero--2col .hero-ctas{justify-content:center}header.le-hero--2col .le-hero-scene{margin-top:28px}header.le-hero--2col .hero-panel{margin-top:28px}}
/* Single-column hero: a generous side inset so no hero ever hugs the
   left edge again (used by lingua-3d-world, whose globe stays in main). */
header.le-hero{padding:56px clamp(24px,4vw,48px) 48px;text-align:center}
