/* Tree of Knowledge — cinematic void, luminous glass/silver, mild bloom */
:root {
  --void: #030508;
  --void-2: #070b12;
  --navy: #0a1628;
  --gold: #C8912A;
  --gold-bright: #d4a03a;
  --science: #7ec8ff;
  --science-deep: #3a8fd4;
  --arts: #e8a04a;
  --arts-deep: #c8912a;
  --silver: #d8e0ea;
  --text: #e8eef6;
  --muted: #8a97ab;
  --card: rgba(8, 14, 24, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--void);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.blog-nav {
  background: rgba(6, 10, 18, 0.94);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(200, 145, 42, 0.12);
  backdrop-filter: blur(10px);
}
.blog-nav .logo { color: #fff; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.blog-nav .logo span { color: var(--gold); }
.blog-nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.blog-nav-links a { color: #bcc6d6; font-size: 0.88rem; text-decoration: none; }
.blog-nav-links a:hover { color: #fff; }
.blog-nav-links .cta-btn {
  background: var(--gold);
  color: #0a1628;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.blog-nav-links .cta-btn:hover { background: var(--gold-bright); text-decoration: none; }
@media (max-width: 720px) {
  .blog-nav-links a:not(.cta-btn) { display: none; }
}

.galaxy-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

.galaxy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.95), rgba(6, 10, 18, 0.8));
  border-bottom: 1px solid rgba(126, 200, 255, 0.06);
  z-index: 50;
}
.galaxy-toolbar h1 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  white-space: nowrap;
  margin-right: 0.35rem;
}
.galaxy-toolbar h1 em { font-style: normal; color: var(--gold); }
.galaxy-toolbar .subtitle {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
  min-width: 120px;
}
.crumb {
  appearance: none;
  border: 1px solid rgba(216, 224, 234, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s;
}
.crumb:hover { border-color: rgba(200, 145, 42, 0.45); background: rgba(200, 145, 42, 0.08); }
.crumb.current {
  border-color: rgba(126, 200, 255, 0.35);
  color: #fff;
  background: rgba(126, 200, 255, 0.08);
}
.crumb.sep { border: 0; background: none; color: var(--muted); cursor: default; padding: 0 0.1rem; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  flex: 0 1 260px;
}
.search-wrap svg {
  position: absolute;
  left: 0.7rem;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 224, 234, 0.12);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem 0.45rem 2rem;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}
.search-wrap input:focus { border-color: rgba(126, 200, 255, 0.35); box-shadow: 0 0 0 3px rgba(126, 200, 255, 0.08); }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid rgba(216, 224, 234, 0.12);
  border-radius: 10px;
  z-index: 80;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.search-results.open { display: block; }
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.search-results button:hover, .search-results button:focus { background: rgba(126, 200, 255, 0.08); outline: none; }
.search-results .sr-meta { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.12rem; }

.tool-actions { display: flex; gap: 0.4rem; }
.tool-btn {
  appearance: none;
  border: 1px solid rgba(216, 224, 234, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.tool-btn:hover { border-color: rgba(200, 145, 42, 0.4); color: #fff; }

.galaxy-main {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  flex: 1;
  min-height: 0;
}
@media (max-width: 960px) {
  .galaxy-main { grid-template-columns: 1fr; }
  .side-panel { display: none; }
}

.stage-wrap {
  position: relative;
  min-height: min(78vh, 820px);
  height: calc(100vh - 160px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(200, 145, 42, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 30% 40%, rgba(62, 143, 212, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 35%, rgba(200, 145, 42, 0.05), transparent 50%),
    linear-gradient(180deg, #020406 0%, #05080f 55%, #080c14 100%);
  overflow: hidden;
  cursor: grab;
}
.stage-wrap:active { cursor: grabbing; }
.stage-wrap canvas#tree-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  touch-action: none;
}

.hint-float {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  color: rgba(232, 238, 246, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(126, 200, 255, 0.25), 0 2px 12px rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s var(--ease);
  text-align: center;
  max-width: 90%;
}
.hint-float.hide { opacity: 0; }

.path-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.85rem;
  pointer-events: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.path-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(232, 238, 246, 0.7);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}
.path-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}
.path-legend .sci i { background: var(--science); color: var(--science); box-shadow: 0 0 12px var(--science); }
.path-legend .art i { background: var(--arts); color: var(--arts); box-shadow: 0 0 12px var(--arts); }
.path-legend .sci { color: rgba(126, 200, 255, 0.92); }
.path-legend .art { color: rgba(232, 160, 74, 0.92); }

.side-panel {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.95), rgba(6, 10, 16, 0.98));
  border-left: 1px solid rgba(216, 224, 234, 0.06);
  padding: 1.1rem 1rem 1.4rem;
  overflow: auto;
}
.side-panel h2 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 650;
}
.detail-card {
  background: var(--card);
  border: 1px solid rgba(216, 224, 234, 0.08);
  border-radius: 12px;
  padding: 0.95rem;
  min-height: 120px;
}
.detail-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.detail-card .meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.65rem; }
.detail-card .stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.28rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.detail-card .stat-row span:last-child { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

.detail-card .earn-hero {
  margin: 0.55rem 0 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(126,200,255,0.16), rgba(232,160,74,0.12));
  border: 1px solid rgba(216,224,234,0.22);
  box-shadow: 0 0 28px rgba(126,200,255,0.1), inset 0 1px 0 rgba(255,255,255,0.07);
}
.detail-card .earn-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.detail-card .earn-range {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.42rem;
  font-weight: 750;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.detail-card .earn-arrow {
  color: var(--gold-bright);
  font-weight: 600;
  opacity: 0.9;
}
.detail-card .earn-sub {
  margin-top: 0.28rem;
  font-size: 0.74rem;
  color: var(--silver);
  opacity: 0.85;
}
.detail-card .career-pay {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgba(8,14,24,0.55);
  border: 1px solid rgba(216,224,234,0.1);
}
.detail-card .career-name {
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.detail-card .whisper {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}
.detail-card.empty { color: var(--muted); font-size: 0.86rem; }
.side-cta {
  display: block;
  margin-top: 1rem;
  text-align: center;
  background: var(--gold);
  color: #0a1628;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
}
.side-cta:hover { background: var(--gold-bright); text-decoration: none; }
.legend {
  margin-top: 1.1rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}
.legend strong { color: rgba(232, 238, 246, 0.85); display: block; margin-bottom: 0.35rem; }

.cta-band {
  text-align: center;
  padding: 2.4rem 1.25rem;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(200, 145, 42, 0.1), transparent 60%),
    linear-gradient(180deg, #070b12, #0a1628);
  border-top: 1px solid rgba(200, 145, 42, 0.1);
}
.cta-band h2 { font-size: 1.55rem; margin-bottom: 0.55rem; letter-spacing: -0.02em; }
.cta-band h2 span { color: var(--gold); }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 1.1rem; }
.cta-main {
  display: inline-block;
  background: var(--gold);
  color: #0a1628;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
}
.cta-main:hover { background: var(--gold-bright); text-decoration: none; }
.cta-note { margin-top: 0.75rem !important; font-size: 0.78rem; }


.share-blurb {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0.5rem;
  text-align: center;
}
.share-blurb h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.share-blurb p { color: var(--muted); font-size: 0.92rem; max-width: 560px; margin: 0 auto 0.65rem; }
.share-blurb .share-url code {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--science);
  background: rgba(126, 200, 255, 0.08);
  border: 1px solid rgba(126, 200, 255, 0.18);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  word-break: break-all;
}
.share-blurb .share-hint { font-size: 0.8rem; }
.share-blurb .share-hint strong { color: var(--gold); }

.below {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.below h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.faq-item { margin-bottom: 1.15rem; }
.faq-item h3 { font-size: 0.98rem; margin-bottom: 0.3rem; color: #fff; }
.faq-item p { color: var(--muted); font-size: 0.9rem; }
.sources-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(200, 145, 42, 0.45);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--muted);
}
.sources-note strong { color: var(--text); }

.blog-footer {
  border-top: 1px solid rgba(216, 224, 234, 0.06);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.blog-footer a { color: var(--muted); margin: 0 0.55rem; }
.blog-footer a:hover { color: var(--gold); }

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(12, 18, 30, 0.94);
  border: 1px solid rgba(200, 145, 42, 0.3);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 400;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .galaxy-toolbar { gap: 0.5rem; padding: 0.65rem 0.85rem; }
  .search-wrap { flex: 1 1 100%; min-width: 0; }
  .search-wrap input {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.55rem 0.75rem 0.55rem 2.15rem;
  }
  .tool-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
  }
  .crumb {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .path-legend { font-size: 0.78rem; gap: 1rem; }
  .path-legend i { width: 10px; height: 10px; }
  .hint-float { font-size: 0.9rem; bottom: 1.1rem; }
}

/* cine-v5 mobile + reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hint-float { transition: none; }
}
