/* ==========================================================================
   Explore Platform — light theme + shared atmosphere
   body.ta-explore-route
   ========================================================================== */

body.ta-explore-route {
  background-color: #0a141c !important;
  background-image: none !important;
  transition: background-color 0.45s ease;
  overflow-x: clip;
}

html[data-theme="light"] body.ta-explore-route {
  background-color: #e8eef2 !important;
}

body.ta-explore-route .ta-explore-page {
  overflow-x: clip;
  overflow-y: visible;
  background: transparent !important;
}

body.ta-explore-route .ta-page-net,
body.ta-explore-route .ta-home-net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.ta-explore-route .ta-page-net canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.ta-explore-route .ta-explore-page,
body.ta-explore-route .ta-footer {
  position: relative;
  z-index: 1;
}

body.ta-explore-route #navbar.ta-header {
  position: fixed !important;
  z-index: 50 !important;
}

.ta-explore-float {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ta-explore-float__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(95, 177, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 177, 115, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, #000 18%, transparent 78%);
}

html[data-theme="light"] .ta-explore-float__grid {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(0, 168, 69, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 69, 0.08) 1px, transparent 1px);
}

/* Dark glass over network */
body.ta-explore-route .ta-explore-page .alt,
body.ta-explore-route .ta-explore-page .record {
  background: rgba(6, 23, 31, 0.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.ta-explore-route .ta-explore-page .app,
body.ta-explore-route .ta-explore-page .takeaway,
body.ta-explore-route .ta-explore-page .card,
body.ta-explore-route .ta-explore-page .cta,
body.ta-explore-route .ta-explore-page .rail button {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.ta-explore-route .ta-explore-page .sec.light {
  background: transparent !important;
}

/* ---- Light mode tokens ---- */
html[data-theme="light"] .ta-explore-page {
  --base: transparent;
  --base2: rgba(255, 255, 255, 0.55);
  --panel: rgba(255, 255, 255, 0.92);
  --panel2: #ffffff;
  --line: rgba(15, 49, 69, 0.12);
  --linelit: rgba(0, 168, 69, 0.32);
  --green: #00c853;
  --greensoft: #00e676;
  --greendeep: #00a845;
  --mint: rgba(0, 200, 83, 0.1);
  --white: #0a141c;
  --body: #3d4f59;
  --muted: #5a6b75;
  --light: transparent;
  color: var(--body);
  background: transparent !important;
}

html[data-theme="light"] .ta-explore-page h1,
html[data-theme="light"] .ta-explore-page h2,
html[data-theme="light"] .ta-explore-page h3 {
  color: #0a141c;
}

html[data-theme="light"] .ta-explore-page h1 em,
html[data-theme="light"] .ta-explore-page h2 em {
  color: #00a845;
}

html[data-theme="light"] .ta-explore-page .eyebrow {
  color: #00a845;
}

html[data-theme="light"] .ta-explore-page .lead {
  color: #3d4f59;
}

html[data-theme="light"] .ta-explore-page .sub {
  color: #5a6b75;
}

html[data-theme="light"] .ta-explore-page .tex::before {
  background:
    repeating-linear-gradient(90deg, rgba(0, 168, 69, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(0, 168, 69, 0.06) 0 1px, transparent 1px 56px);
}

html[data-theme="light"] .ta-explore-page .alt,
html[data-theme="light"] .ta-explore-page .record {
  background: rgba(255, 255, 255, 0.42) !important;
  border-color: rgba(15, 49, 69, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .ta-explore-page .record dd {
  color: #0a141c;
}

html[data-theme="light"] .ta-explore-page .record dt {
  color: #5a6b75;
}

html[data-theme="light"] .ta-explore-page .ghost {
  border-color: rgba(0, 168, 69, 0.45) !important;
  color: #0a141c !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .ta-explore-page .ghost:hover {
  border-color: #00c853 !important;
  color: #06351c !important;
  background: rgba(0, 200, 83, 0.1) !important;
}

html[data-theme="light"] .ta-explore-page .btn {
  color: #06351c !important;
  background: linear-gradient(180deg, #4ade80 0%, #00d166 42%, #00b85a 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0, 209, 102, 0.2),
    0 0 22px rgba(0, 209, 102, 0.4),
    0 10px 24px rgba(0, 160, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .ta-explore-page .btn:hover {
  background: linear-gradient(180deg, #1aff8c 0%, #00e676 100%) !important;
  box-shadow:
    0 0 30px rgba(0, 209, 102, 0.55),
    0 12px 28px rgba(0, 160, 80, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Tour rail */
html[data-theme="light"] .ta-explore-page .rail button {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 49, 69, 0.12) !important;
  color: #3d4f59;
}

html[data-theme="light"] .ta-explore-page .rail button:hover {
  border-color: rgba(0, 168, 69, 0.4) !important;
}

html[data-theme="light"] .ta-explore-page .rail button[aria-current="true"] {
  border-color: #00c853 !important;
  background: rgba(0, 200, 83, 0.1) !important;
}

html[data-theme="light"] .ta-explore-page .rail .n {
  color: #00a845;
}

html[data-theme="light"] .ta-explore-page .rail .t {
  color: #0a141c;
}

html[data-theme="light"] .ta-explore-page .rail .m {
  color: #5a6b75;
}

/* App mock / stage */
html[data-theme="light"] .ta-explore-page .step .cap h3 {
  color: #0a141c;
}

html[data-theme="light"] .ta-explore-page .step .cap p {
  color: #3d4f59;
}

html[data-theme="light"] .ta-explore-page .app {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 49, 69, 0.12) !important;
  box-shadow: 0 22px 56px rgba(15, 49, 69, 0.1);
}

html[data-theme="light"] .ta-explore-page .app .bar {
  background: rgba(248, 251, 252, 0.95) !important;
  border-color: rgba(15, 49, 69, 0.1) !important;
}

html[data-theme="light"] .ta-explore-page .app .dot {
  background: rgba(15, 49, 69, 0.18);
}

html[data-theme="light"] .ta-explore-page .app .path {
  color: #5a6b75;
}

html[data-theme="light"] .ta-explore-page .app .badge {
  color: #00a845;
  background: rgba(0, 200, 83, 0.1);
  border-color: rgba(0, 168, 69, 0.32);
}

html[data-theme="light"] .ta-explore-page .ui-head h4,
html[data-theme="light"] .ta-explore-page .tbl .who,
html[data-theme="light"] .ta-explore-page .kv span:last-child,
html[data-theme="light"] .ta-explore-page .trail b,
html[data-theme="light"] .ta-explore-page .tree em,
html[data-theme="light"] .ta-explore-page .takeaway b {
  color: #0a141c !important;
}

html[data-theme="light"] .ta-explore-page .ui-head .sub2,
html[data-theme="light"] .ta-explore-page .tbl th,
html[data-theme="light"] .ta-explore-page .tbl td,
html[data-theme="light"] .ta-explore-page .tbl .mono,
html[data-theme="light"] .ta-explore-page .kv span:first-child,
html[data-theme="light"] .ta-explore-page .trail span,
html[data-theme="light"] .ta-explore-page .tree,
html[data-theme="light"] .ta-explore-page .heat-legend,
html[data-theme="light"] .ta-explore-page .takeaway p {
  color: #3d4f59;
}

html[data-theme="light"] .ta-explore-page .tbl th,
html[data-theme="light"] .ta-explore-page .tbl td,
html[data-theme="light"] .ta-explore-page .kv,
html[data-theme="light"] .ta-explore-page .trail {
  border-color: rgba(15, 49, 69, 0.1);
}

html[data-theme="light"] .ta-explore-page .side {
  background: rgba(248, 251, 252, 0.95) !important;
  border-color: rgba(15, 49, 69, 0.1) !important;
}

html[data-theme="light"] .ta-explore-page .side h5 {
  color: #00a845;
}

html[data-theme="light"] .ta-explore-page .bar-mini {
  background: rgba(15, 49, 69, 0.08);
}

html[data-theme="light"] .ta-explore-page .pill.nu {
  background: rgba(15, 49, 69, 0.05);
  border-color: rgba(15, 49, 69, 0.12);
  color: #5a6b75;
}

html[data-theme="light"] .ta-explore-page .takeaway {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 49, 69, 0.12) !important;
  border-left-color: #00c853 !important;
}

html[data-theme="light"] .ta-explore-page .stepnav button {
  border-color: rgba(15, 49, 69, 0.14) !important;
  color: #0a141c !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

html[data-theme="light"] .ta-explore-page .stepnav button:hover:not(:disabled) {
  border-color: #00c853 !important;
  color: #00a845 !important;
}

/* Cards / next / CTA */
html[data-theme="light"] .ta-explore-page .card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 49, 69, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 49, 69, 0.06);
}

html[data-theme="light"] .ta-explore-page .card:hover {
  border-color: rgba(0, 168, 69, 0.4) !important;
  box-shadow: 0 18px 40px rgba(15, 49, 69, 0.1);
}

html[data-theme="light"] .ta-explore-page .card p,
html[data-theme="light"] .ta-explore-page .next .go {
  color: #3d4f59;
}

html[data-theme="light"] .ta-explore-page .next .go {
  color: #00a845;
  border-top-color: rgba(15, 49, 69, 0.1);
}

html[data-theme="light"] .ta-explore-page .num {
  color: #00a845;
}

html[data-theme="light"] .ta-explore-page .tile {
  background: rgba(0, 200, 83, 0.1);
  border-color: rgba(0, 168, 69, 0.32);
}

html[data-theme="light"] .ta-explore-page .tile svg {
  stroke: #00a845;
}

html[data-theme="light"] .ta-explore-page .cta {
  background: linear-gradient(155deg, #ffffff 0%, #f3faf5 48%, #e8f6ee 100%) !important;
  border-color: rgba(0, 200, 83, 0.32) !important;
  box-shadow:
    0 22px 56px rgba(15, 49, 69, 0.08),
    0 0 40px rgba(0, 200, 83, 0.08);
}

html[data-theme="light"] .ta-explore-page .cta::before {
  background: radial-gradient(600px 280px at 94% 120%, rgba(0, 209, 102, 0.16), transparent 66%);
}

html[data-theme="light"] .ta-explore-page .cta h2 {
  color: #0a141c;
}

html[data-theme="light"] .ta-explore-page .cta p {
  color: #3d4f5a;
}

/* Hero SVG mock in light mode */
html[data-theme="light"] .ta-explore-page .hv rect[fill="#06171F"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="#0A2029"] {
  fill: #ffffff !important;
}

html[data-theme="light"] .ta-explore-page .hv text[fill="#6B8189"] {
  fill: #5a6b75 !important;
}

html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.13)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.07)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.20)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.16)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.09)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.10)"],
html[data-theme="light"] .ta-explore-page .hv rect[fill="rgba(255,255,255,.08)"] {
  fill: rgba(15, 49, 69, 0.12) !important;
}

html[data-theme="light"] .ta-explore-page .hv circle[fill="rgba(255,255,255,.16)"] {
  fill: rgba(15, 49, 69, 0.2) !important;
}

html[data-theme="light"] .ta-explore-page .hv rect[stroke="rgba(255,255,255,.2)"] {
  stroke: rgba(15, 49, 69, 0.2) !important;
}

html[data-theme="light"] .ta-explore-page .hv rect[stroke="rgba(255,255,255,.06)"] {
  stroke: rgba(15, 49, 69, 0.1) !important;
}
