/* Siegel Financial v520 — polished Net Worth history point inspection. */
.networth-page .history-chart-shell {
  position: relative;
}

.networth-page .history-point-tooltip {
  --history-tip-arrow-x: 50%;
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 176px;
  max-width: calc(100% - 20px);
  padding: 12px 14px 11px;
  overflow: visible;
  border: 1px solid rgba(232, 197, 106, .48);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(230, 190, 90, .12), transparent 34%),
    linear-gradient(145deg, rgba(17, 42, 63, .985), rgba(5, 19, 33, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 40px -19px rgba(0, 0, 0, .92),
    0 0 24px rgba(230, 190, 90, .10);
  color: #F7F4EC;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) scale(.985);
  transform-origin: bottom center;
  transition: opacity .16s ease, visibility .16s ease, transform .2s cubic-bezier(.2, .75, .2, 1);
}

.networth-page .history-point-tooltip::after {
  content: "";
  position: absolute;
  left: var(--history-tip-arrow-x);
  bottom: -6px;
  width: 11px;
  height: 11px;
  border-right: 1px solid rgba(232, 197, 106, .48);
  border-bottom: 1px solid rgba(232, 197, 106, .48);
  background: #071B2E;
  transform: translateX(-50%) rotate(45deg);
}

.networth-page .history-point-tooltip.is-below {
  transform-origin: top center;
}

.networth-page .history-point-tooltip.is-below::after {
  top: -6px;
  bottom: auto;
  border: 0;
  border-top: 1px solid rgba(232, 197, 106, .48);
  border-left: 1px solid rgba(232, 197, 106, .48);
}

.networth-page .history-point-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.networth-page .history-point-tooltip-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(222, 233, 241, .68);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.networth-page .history-point-tooltip-kicker i {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid rgba(255, 250, 235, .86);
  border-radius: 50%;
  background: #E6BE5A;
  box-shadow: 0 0 0 3px rgba(230, 190, 90, .12), 0 0 10px rgba(230, 190, 90, .38);
}

.networth-page .history-point-tooltip > b {
  overflow-wrap: anywhere;
  color: #FFF9E9;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.networth-page .history-point-tooltip time {
  color: #F0D27B;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .015em;
  line-height: 1.3;
}

.networth-page .history-point-tooltip small {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(219, 231, 239, .11);
  color: rgba(221, 232, 240, .68);
  font-size: 9.5px;
  line-height: 1.35;
}

@media (max-width: 600px), (hover: none), (pointer: coarse) {
  .networth-page .history-point-tooltip {
    gap: 2px;
    padding: 11px 13px 10px;
    border-color: rgba(240, 207, 113, .58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .085),
      0 18px 38px -18px rgba(0, 0, 0, .94),
      0 0 26px rgba(230, 190, 90, .13);
  }

  .networth-page .history-point-tooltip > b {
    font-size: clamp(22px, 6.7vw, 27px);
  }

  .networth-page .history-point-tooltip time {
    font-size: 10px;
  }

  .networth-page .history-point-tooltip small {
    font-size: 9px;
  }

  .networth-page .history-hit {
    r: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-point-tooltip {
    transition: none !important;
  }
}
