/* Vocation Overlay — career signal layer painted on top of NatalWheel.
   Each "vector" (Leadership, Diplomacy, …) is a switchable pill above
   the wheel. Activating a pill highlights only the planets + aspect
   lines belonging to that vector, in the vector's color. Multiple
   pills active → unions; planets in two vectors get a two-color ring. */

.vto-root {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 22px;
  align-items: start;
}
/* Left column: full-height pill stack. Right column: wheel on top of
   its legend. Both rows in column 2 are independent flow. */
.vto-pillrow     { grid-column: 1; grid-row: 1 / span 2; }
.vto-wheel-mount { grid-column: 2; grid-row: 1; }
.vto-legend      { grid-column: 2; grid-row: 2; }

@media (max-width: 720px) {
  .vto-root {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 18px;
  }
  .vto-pillrow,
  .vto-wheel-mount,
  .vto-legend { grid-column: 1; grid-row: auto; }
}

/* ── Color slots (mirror natal-wheel ASPECT_COLORS_DEFAULT) ── */
.vto-root {
  --vt-gold:     #e4c98a;
  --vt-sage:     #8ec4b8;
  --vt-lavender: #b5a8e8;
  --vt-rose:     #d98aa8;
  --vt-fade-opacity: 0.16;
}
.vto-color-gold     { --vt-c: var(--vt-gold); }
.vto-color-sage     { --vt-c: var(--vt-sage); }
.vto-color-lavender { --vt-c: var(--vt-lavender); }
.vto-color-rose     { --vt-c: var(--vt-rose); }

/* ── Pill row (left column, vertical) ────────────────────── */
.vto-pillrow {
  position: sticky;
  top: 96px;
  align-self: start;
  text-align: left;
}
.vto-pillrow-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-left: 14px;
}
.vto-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 0;
}
.vto-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 14px;
  margin-left: -1px;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: color 200ms ease, border-color 200ms ease;
  border-radius: 0;
}
@media (max-width: 720px) {
  .vto-pillrow { position: static; }
  .vto-pillrow-kicker { padding-left: 0; }
  .vto-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-left: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }
  .vto-pill {
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    padding: 9px 12px;
    width: auto;
  }
}
.vto-pill:hover {
  color: var(--text-2);
}
.vto-pill.is-active {
  border-left-color: var(--vt-c);
  color: var(--vt-c);
  background: color-mix(in srgb, var(--vt-c) 8%, transparent);
}
.vto-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vt-c);
  opacity: 0.55;
  box-shadow: 0 0 5px color-mix(in srgb, var(--vt-c) 50%, transparent);
  flex: 0 0 auto;
  transition: opacity 200ms ease, transform 200ms ease;
}
.vto-pill.is-active .vto-pill-dot {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 8px color-mix(in srgb, var(--vt-c) 75%, transparent);
}
@media (max-width: 720px) {
  .vto-pill.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--vt-c);
  }
}

/* ── Wheel mount (right column) ──────────────────────────── */
/* Wheel is rendered at 75% of the available column width (the SVG is
   a square viewBox, so 75% width = 75% height — i.e. ~25% shorter than
   if it filled the column). Keeps the chart legible without dominating
   Section I's vertical space. */
.vto-wheel-mount {
  width: 75%;
  display: block;
  margin: 0 auto;
}
.vto-wheel-mount svg.nw-svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 720px) {
  .vto-wheel-mount { width: 100%; }
}

/* ── Filtered baseline ────────────────────────────────────
   Anything not in an active vector is hidden entirely so the user
   sees ONLY the planets / aspects relevant to the active pill(s).
   The zodiac signs, house numbers, and chart frame remain — they're
   the "stage" the signal is read against. */
.nw-svg .nw-planet.is-vt-faded,
.nw-svg .nw-aspect-line.is-vt-faded,
.nw-svg .nw-aspect-zone.is-vt-faded {
  display: none;
}
/* Tick marks + leader lines that NatalWheel draws for each planet's
   inner-ring position live as bare <line> elements inside
   .nw-natal-layer (siblings to the .nw-planet groups). Hide them
   while the overlay is active so we don't see "ghost" markers for
   the planets the filter has hidden. */
.nw-svg .nw-natal-layer > line {
  display: none;
}

/* ── Active planets — color-tinted ring ───────────────────── */
/* Single vector: solid ring in that color. */
.nw-svg .nw-planet.is-vt-active circle:nth-child(2) {
  stroke-width: 1.6;
  filter: drop-shadow(0 0 5px currentColor);
}
.nw-svg .nw-planet.is-vt-active[data-vt-colors~="gold"]     circle:nth-child(2) { stroke: var(--vt-gold);     color: var(--vt-gold); }
.nw-svg .nw-planet.is-vt-active[data-vt-colors~="sage"]     circle:nth-child(2) { stroke: var(--vt-sage);     color: var(--vt-sage); }
.nw-svg .nw-planet.is-vt-active[data-vt-colors~="lavender"] circle:nth-child(2) { stroke: var(--vt-lavender); color: var(--vt-lavender); }
.nw-svg .nw-planet.is-vt-active[data-vt-colors~="rose"]     circle:nth-child(2) { stroke: var(--vt-rose);     color: var(--vt-rose); }

/* Boost the planet text contrast when active. */
.nw-svg .nw-planet.is-vt-active text {
  fill: #f8ecc8;
  font-weight: 600;
}

/* ── Active aspect lines — bright, color-tinted ─────────── */
.nw-svg .nw-aspect-line.is-vt-active {
  opacity: 1;
  stroke-width: 2 !important;
  filter: drop-shadow(0 0 4px currentColor);
}
.nw-svg .nw-aspect-line.is-vt-active[data-vt-colors~="gold"]     { stroke: var(--vt-gold)     !important; color: var(--vt-gold); }
.nw-svg .nw-aspect-line.is-vt-active[data-vt-colors~="sage"]     { stroke: var(--vt-sage)     !important; color: var(--vt-sage); }
.nw-svg .nw-aspect-line.is-vt-active[data-vt-colors~="lavender"] { stroke: var(--vt-lavender) !important; color: var(--vt-lavender); }
.nw-svg .nw-aspect-line.is-vt-active[data-vt-colors~="rose"]     { stroke: var(--vt-rose)     !important; color: var(--vt-rose); }

/* ── Legend (textual signature for the active vector) ──── */
.vto-legend {
  margin: 0;
  width: 100%;
  padding: 18px 0 0;
  border-top: 1px solid rgba(201, 168, 109, 0.18);
}
.vto-legend:empty { display: none; }
.vto-legend-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.005em;
}
.vto-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vt-c);
  box-shadow: 0 0 6px color-mix(in srgb, var(--vt-c) 70%, transparent);
}
.vto-legend-subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 16px 0 8px;
}
.vto-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vto-legend-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201, 168, 109, 0.08);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: color 200ms ease;
}
.vto-legend-item:last-child { border-bottom: none; }
.vto-legend-item:hover { color: var(--gold); }
.vto-legend-glyph {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--gold);
  min-width: 60px;
  flex: 0 0 auto;
}
.vto-legend-text {
  flex: 1 1 auto;
}

/* ── MC marker ────────────────────────────────────────────── */
.vto-mc-marker .vto-mc-dot {
  fill: var(--vt-gold);
  filter: drop-shadow(0 0 3px rgba(228, 201, 138, 0.8));
}
.vto-mc-marker .vto-mc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--vt-gold);
  text-transform: uppercase;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .vto-wheel-mount { max-width: 100%; }
  .vto-pill { font-size: 14px; padding: 8px 10px; }
}
