/* Polyglotion light restoration, loaded after the original stylesheets.
   This layer changes surfaces and motion only. Course structure, links,
   product category artwork, category colours and About composition stay put. */
:root[data-theme="light"] {
  color-scheme: light !important;
  --bg: #fafbfe;
  --bg2: #f2f5fb;
  --solid: #fff;
  --text: #182238;
  --muted: #56657b;
  --soft: #718096;
  --panel: rgba(255, 255, 255, .94);
  --panel-strong: #f1f5fc;
  --stroke: rgba(33, 58, 96, .13);
  --stroke-strong: rgba(53, 105, 185, .36);
  --blue: #245fae;
  --violet: #6655b7;
  --green: #168360;
  --red: #c53850;
  --gold: #9f6a22;
  --shadow: 0 12px 40px rgba(38, 69, 114, .07);
  --surface-popover: rgba(255, 255, 255, .98);
  --scene-fade: rgba(250, 251, 254, .12);
}

/* The photographic About page deliberately keeps its original atmosphere. */
html[data-theme="light"] body:not(.about-page) {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="light"] body:not(.about-page)::before {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 32% at 4% 5%, rgba(143, 193, 248, .13), transparent 75%),
    radial-gradient(ellipse 38% 35% at 95% 8%, rgba(192, 175, 242, .10), transparent 75%);
  animation: whiteAmbient 20s ease-in-out infinite alternate;
}
@keyframes whiteAmbient {
  to { transform: translate3d(0, 1.5%, 0) scale(1.025); }
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(39, 65, 104, .11);
  box-shadow: 0 3px 20px rgba(24, 46, 82, .035);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .main-nav a {
  color: #4c5d77;
  font-weight: 650;
}
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a[aria-current="page"] {
  color: #1c4e99;
  background: #edf4ff;
}
html[data-theme="light"] :is(.icon-btn, .lang-main, .avatar-button, .motion-toggle) {
  border-color: var(--stroke);
  box-shadow: none;
}
html[data-theme="light"] .glass {
  background: rgba(255, 255, 255, .94);
  border-color: var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .product-actions .btn {
  background: linear-gradient(110deg, #266abf, #4b73ce);
  color: #fff;
  box-shadow: 0 9px 23px rgba(52, 102, 182, .16);
}
html[data-theme="light"] .btn-secondary {
  background: #fff;
  color: #275b9b;
  border-color: rgba(40, 95, 170, .2);
  box-shadow: none;
}
html[data-theme="light"] :is(.btn, .route-card, .feature-card, .product-card, .category-card) {
  transition: transform .22s ease, border-color .22s ease,
    box-shadow .22s ease, background-color .22s ease;
}
html[data-theme="light"] :is(.btn, .route-card, .feature-card, .product-card, .category-card):hover {
  transform: translateY(-3px);
}
html[data-theme="light"] :is(.btn, a, button, input, select, textarea):focus-visible {
  outline: 2px solid #326fc0;
  outline-offset: 3px;
}

/* Original home grid, globe and destinations are retained. */
html[data-theme="light"] .hero {
  background: linear-gradient(180deg, rgba(230, 241, 255, .52), rgba(250, 251, 254, 0) 89%);
}
html[data-theme="light"] .hero h1 {
  color: #162744;
  letter-spacing: -.062em;
}
html[data-theme="light"] .gradient-text {
  background: linear-gradient(115deg, #2a70bf 5%, #466fc0 52%, #7e62be 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
html[data-theme="light"] .kicker {
  background: #eaf3ff;
  border-color: #d1e4fb;
  color: #285b9b;
}
html[data-theme="light"] .story-panel-copy-only {
  background: #edf4fe;
  border-color: #dbe8f8;
  box-shadow: none;
}
html[data-theme="light"] .story-panel-copy-only::before { opacity: .32; }
html[data-theme="light"] :is(.feature-card, .route-card) {
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(30, 67, 116, .04);
}
html[data-theme="light"] :is(.feature-card, .route-card):hover {
  border-color: #a8c9ed;
  box-shadow: 0 15px 35px rgba(35, 83, 145, .09);
}
html[data-theme="light"] .icon-tile {
  background: #eff5ff;
  border-color: #d9e8fa;
  color: #2b64ad;
}
html[data-theme="light"] .cta-wide {
  background: #f2f6fd;
  border-color: #dce8f7;
  box-shadow: none;
}
html[data-theme="light"] body:not(.about-page) .site-footer {
  background: #f7f9fd;
  border-top: 1px solid #e1e8f2;
}

/* Keep the previous catalogue artwork and its red/blue/violet/gold language. */
html[data-theme="light"] .products-portal {
  background:
    radial-gradient(ellipse 50% 28% at 50% 0%, rgba(183, 214, 252, .36), transparent 95%),
    #f8faff;
}
html[data-theme="light"] .products-portal::before {
  opacity: .25;
  filter: invert(1);
}
html[data-theme="light"] .products-portal-title {
  color: #1b2b48;
  text-shadow: none;
}
html[data-theme="light"] .products-portal-title .products-title-accent {
  filter: none;
}
html[data-theme="light"] .products-category-card {
  color: #1e2d45;
  background: #fff;
  border: 1px solid rgba(var(--accent-rgb), .34);
  box-shadow: 0 12px 35px rgba(39, 73, 121, .08),
    inset 0 3px 0 rgba(var(--accent-rgb), .64);
  backdrop-filter: none;
}
html[data-theme="light"] .products-category-card::before { opacity: .12; }
html[data-theme="light"] .products-category-card::after { opacity: .25; }
html[data-theme="light"] .products-category-card:hover,
html[data-theme="light"] .products-category-card:focus-within {
  border-color: rgba(var(--accent-rgb), .68);
  box-shadow: 0 18px 43px rgba(39, 73, 121, .13),
    inset 0 3px 0 var(--accent);
}
html[data-theme="light"] .products-category-card h2 {
  color: #1b2b48;
  text-shadow: none;
}
html[data-theme="light"] .products-category-card p {
  color: #53647e;
}
html[data-theme="light"] .products-category-art {
  filter: drop-shadow(0 14px 20px rgba(23, 53, 97, .12));
}
html[data-theme="light"] .products-category-action {
  box-shadow: 0 8px 21px rgba(var(--accent-rgb), .17),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
html[data-theme="light"] .products-category-action:hover,
html[data-theme="light"] .products-category-action:focus-visible {
  box-shadow: 0 12px 25px rgba(var(--accent-rgb), .27);
}
html[data-theme="light"] .products-view-all {
  box-shadow: 0 10px 25px rgba(91, 87, 172, .17);
}
html[data-theme="light"] .products-orbit { opacity: .11; }
html[data-theme="light"] .products-star { opacity: .17; }
html[data-theme="light"] .products-horizon { opacity: .12; }

/* Light detail pages and account surfaces; logic and placement are unchanged. */
html[data-theme="light"] :is(.product-media-card, .product-feature, .product-question,
  .dashboard-sidebar, .dashboard-hero-, .dash-card-, .settings-section,
  .settings-head, .plan-mini, .legal-document, .legal-doc, .support-form-card,
  .auth-card) {
  background: #fff;
  color: var(--text);
  border-color: var(--stroke);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .product-media-stage,
html[data-theme="light"] .product-media-thumb {
  background: #f2f6fc;
}
html[data-theme="light"] .product-upgrade-modal {
  background: #fff;
  color: #182238;
  border-color: #d7e3f1;
  box-shadow: 0 30px 80px rgba(23, 46, 79, .23);
}
html[data-theme="light"] .product-upgrade-modal .modal-close {
  background: #f1f5fb;
  color: #425773;
  border-color: #dce6f2;
}
html[data-theme="light"] .access-option {
  background: #f4f8fd;
  border-color: #d6e5f6;
  color: #182238;
}
html[data-theme="light"] .access-option-detail { color: #56657b; }
html[data-theme="light"] .dashboard-nav button.active {
  background: #eaf2fe;
  color: #255caa;
}
html[data-theme="light"] .dashboard-signout:hover { background: #fff1f2; }

/* Optional motion script can toggle these classes on page entry and exit. */
html[data-theme="light"] body.white-page-enter main {
  animation: whitePageEnter .48s cubic-bezier(.2, .7, .2, 1) both;
}
html[data-theme="light"] body.white-page-leave main {
  animation: whitePageLeave .16s ease-in both;
}
@keyframes whitePageEnter {
  from { opacity: .35; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
@keyframes whitePageLeave {
  from { opacity: 1; }
  to { opacity: 0; }
}
html[data-theme="light"] [data-reveal].white-viewport-hidden,
html[data-theme="light"] [data-reveal].white-viewport-visible {
  animation: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="light"] [data-reveal].white-viewport-hidden {
  opacity: 0;
  transform: translateY(14px);
}
html[data-theme="light"] [data-reveal].white-viewport-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  html[data-theme="light"] .products-category-grid { gap: 16px; }
  html[data-theme="light"] .products-category-card { box-shadow: 0 8px 25px rgba(39, 73, 121, .07), inset 0 3px 0 rgba(var(--accent-rgb), .64); }
  html[data-theme="light"] .hero { background: linear-gradient(180deg, #edf5ff, rgba(250,251,254,0) 80%); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] body:not(.about-page)::before,
  html[data-theme="light"] body.white-page-enter main,
  html[data-theme="light"] body.white-page-leave main,
  html[data-theme="light"] [data-reveal] { animation: none !important; transition: none !important; transform: none !important; }
  html[data-theme="light"] [data-reveal].white-viewport-hidden { opacity: 1; }
}

/* 2026 desktop visual system: quiet paper surfaces, ink typography and
   restrained blue-violet accents shared by the public Polyglotion pages. */
@media (min-width: 721px) {
  :root[data-theme="light"] {
    --bg: #f8faff;
    --bg2: #f4f7fd;
    --text: #0b174c;
    --muted: #67769f;
    --soft: #8190b4;
    --stroke: #dce5f8;
    --stroke-strong: #b8c9ec;
    --blue: #3269d7;
    --violet: #7542c9;
    --shadow: 0 18px 50px rgba(31, 59, 126, .055);
    --max: 1360px;
  }
  html[data-theme="light"] body:not(.about-page) {
    background: radial-gradient(ellipse 34% 24% at 1% 6%, #eaf0ff 0%, transparent 100%),
      radial-gradient(ellipse 35% 25% at 100% 10%, #eff0ff 0%, transparent 100%), #f9fbff;
  }
  html[data-theme="light"] body:not(.about-page)::before { opacity: .34; }
  html[data-theme="light"] .site-header {
    height: 80px;
    background: rgba(252, 253, 255, .92);
    border-bottom: 1px solid #e7ecf7;
    box-shadow: 0 4px 24px rgba(22, 42, 96, .025);
  }
  html[data-theme="light"] .header-inner { gap: 28px; }
  html[data-theme="light"] .brand {
    color: #0d194d;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.045em;
  }
  html[data-theme="light"] .brand img { width: 46px; height: 46px; }
  html[data-theme="light"] .main-nav { gap: clamp(8px, 1.5vw, 30px); align-items: stretch; align-self: stretch; }
  html[data-theme="light"] .main-nav a {
    display: inline-flex;
    align-items: center;
    position: relative;
    border-radius: 0;
    padding: 0 8px;
    color: #233768;
    font-size: 15px;
    font-weight: 550;
    background: transparent !important;
    transition: color .22s ease;
  }
  html[data-theme="light"] .main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 8px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #426de0, #823ed0);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
  }
  html[data-theme="light"] .main-nav a:is(:hover, [aria-current="page"]) { color: #245ce0; }
  html[data-theme="light"] .main-nav a:is(:hover, [aria-current="page"])::after { transform: scaleX(1); }
  html[data-theme="light"] .header-actions { gap: 15px; }
  html[data-theme="light"] .header-login {
    order: 1;
    min-width: 150px;
    padding: 11px 18px;
    border: 1px solid #b7c6e9;
    border-radius: 13px;
    color: #142259;
    text-align: center;
    font-size: 14px;
    font-weight: 750;
    background: rgba(255,255,255,.8);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  html[data-theme="light"] .header-login:hover { border-color: #6b75d7; background: #f2f4ff; box-shadow: 0 8px 24px rgba(61,75,154,.07); }
  html[data-theme="light"] .language-picker { order: 2; }
  html[data-theme="light"] .avatar-button { order: 3; width: 42px; height: 42px; }
  html[data-theme="light"] .lang-main {
    width: auto;
    min-width: 91px;
    height: 44px;
    display: inline-flex;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 999px;
    color: #1b2b61;
    background: transparent;
    box-shadow: none;
    font-weight: 680;
  }
  html[data-theme="light"] .lang-main:hover { background: #eef2fc; transform: none; }
  html[data-theme="light"] .lang-main > .flag-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(18,44,102,.12), 0 0 0 1px #dbe4f7;
    background: #fff;
  }
  html[data-theme="light"] .lang-code { font-size: 13px; letter-spacing: .015em; }
  html[data-theme="light"] .lang-chevron { width: 12px; height: 12px; }
  html[data-theme="light"] .btn-primary {
    background: linear-gradient(115deg, #376ad5 0%, #425cce 53%, #6849c3 100%);
    box-shadow: 0 9px 24px rgba(54, 83, 191, .13);
  }
  html[data-theme="light"] .btn-primary:hover { filter: brightness(.96); }
  html[data-theme="light"] .btn-secondary,
  html[data-theme="light"] .btn-white { color: #14255c; border: 1px solid #d4def3; background: #fff; box-shadow: none; }
  html[data-theme="light"] .site-footer { color: #172454; background: #f5f8fe; border-top: 1px solid #e2eafa; }
  html[data-theme="light"] .site-footer .footer-grid { border-top: 0; }
}

@media (max-width: 720px) {
  .lang-code, .lang-chevron { display: none; }
}

/* Natural letter spacing and generous glyph bounds prevent clipped brand endings. */
html[data-theme="light"] .brand{font-family:"Segoe UI Variable","Segoe UI",ui-sans-serif,system-ui,sans-serif;letter-spacing:-.025em;line-height:1.25;font-weight:750;overflow:visible}
html[data-theme="light"] .brand>span{padding:.08em .12em .13em 0;overflow:visible}

