/* Spirited Energy — evidence-class popover */

.chip[data-ev] {
  cursor: pointer;
  border-bottom: 1px dotted currentColor;
}
.chip[data-ev]:hover,
.chip[data-ev][aria-expanded="true"] {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}
.chip[data-ev]:focus-visible {
  outline: 2px solid var(--se-ice-500);
  outline-offset: 2px;
}

.se-ev-pop {
  position: absolute;
  z-index: 60;
  max-width: min(23rem, calc(100vw - 1.5rem));
  background: var(--se-white);
  border: 1px solid var(--se-border);
  border-top: 3px solid var(--se-green-900);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.16);
  padding: 0.75rem 0.9rem 0.8rem;
  font-family: var(--se-font-body);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--se-charcoal);
}

.se-ev-pop[hidden] { display: none; }

.se-ev-pop .se-ev-title {
  font-family: var(--se-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--se-green-900);
  margin: 0 0 0.35rem;
}

.se-ev-pop p { margin: 0 0 0.55rem; }

.se-ev-pop .se-ev-count {
  font-family: var(--se-font-mono);
  font-size: 0.76rem;
  color: var(--se-slate);
  background: var(--se-ice-100);
  border-left: 2px solid var(--se-ice-500);
  padding: 0.3rem 0.5rem;
  margin: 0 0 0.55rem;
}

.se-ev-pop ul {
  margin: 0;
  padding-left: 1.05rem;
  list-style: disc;
}
.se-ev-pop li { margin-bottom: 0.28rem; }
.se-ev-pop li:last-child { margin-bottom: 0; }
.se-ev-pop a {
  color: var(--se-ice-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.se-ev-pop a:hover { color: var(--se-green-900); }

@media print {
  .se-ev-pop { display: none !important; }
  .chip[data-ev] { border-bottom: 0; }
}

/* Evidence markers drawn inside chart SVGs. They are tspans, not inline-block
   spans, so the body chip's padding and background do not apply — colour and
   weight carry the meaning instead. The dotted underline is dropped because
   text-decoration on a tspan straddles the baseline awkwardly at chart sizes. */
tspan.se-ev-mark {
  cursor: pointer;
  letter-spacing: 0.02em;
}
tspan.se-ev-mark:hover { text-decoration: underline; }
