/* Premium column for the shared take-private comps island
   (charts/take-private-comps.js, which puts .tp-comps on its root). The rest
   of the row — .comp-row, .deal, .comp-track, .mult, .price — is the
   deal-profile family's comp CSS, which every page that uses the island
   already carries; the .tp-comps scope lets these rules win over it. */
.tp-comps .comp-head .c-prem {
  width: 62px;
  text-align: right;
}
.tp-comps .comp-row .prem {
  width: 62px;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--mv-text-sec);
  font-variant-numeric: tabular-nums;
}
.tp-comps .comp-row.hero .prem {
  color: var(--cx-green);
  font-weight: 800;
}
@media (max-width: 640px) {
  .tp-comps .comp-head {
    gap: 8px;
  }
  .tp-comps .comp-head .c-mult,
  .tp-comps .comp-head .c-price {
    width: 46px;
  }
  .tp-comps .comp-head .c-prem {
    width: 42px;
  }
  .tp-comps .comp-row {
    gap: 4px 8px;
  }
  .tp-comps .comp-row .comp-track {
    flex: 1 1 0;
    min-width: 60px;
  }
  .tp-comps .comp-row .mult,
  .tp-comps .comp-row .price {
    width: 46px;
  }
  .tp-comps .comp-row .prem {
    width: 42px;
    font-size: 12.5px;
  }
}

/* The multiple-vs-growth scatter (renderScatter). */
.tp-scatter {
  position: relative;
  height: 500px;
  margin-top: 8px;
}
.tp-scatter svg {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
}
.tp-scatter .sc-dot,
.tp-scatter .sc-label {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tp-scatter .sc-tick {
  position: absolute;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mv-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tp-scatter .sc-tick-y {
  transform: translate(-100%, -50%);
}
.tp-scatter .sc-tick-x {
  transform: translateX(-50%);
}
.tp-scatter .sc-axis-title {
  position: absolute;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mv-text-muted);
  white-space: nowrap;
}
.tp-scatter .sc-axis-x {
  transform: translateX(-50%);
}
.tp-scatter .sc-trend {
  position: absolute;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  color: var(--mv-text-muted);
  white-space: nowrap;
}
.tp-scatter .sc-label {
  position: absolute;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mv-text-sec);
  white-space: nowrap;
  pointer-events: none;
}
.tp-scatter .sc-label.hero {
  font-size: 15px;
  font-weight: 800;
  color: var(--cx-green);
}
.tp-scatter .sc-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
  background: var(--mv-text);
  color: var(--mv-bg);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tp-scatter .sc-tip.show {
  opacity: 1;
}
.tp-scatter .sc-tip .t1 {
  font-weight: 800;
  font-size: 11.5px;
}
@media (max-width: 640px) {
  .tp-scatter {
    height: 360px;
  }
  .tp-scatter .sc-label {
    font-size: 11px;
  }
  .tp-scatter .sc-label.hero {
    font-size: 13px;
  }
}

/* View switch above the scatter: Revenue growth | Rule of 40 | Rule of X,
   with the X slider for the last one. Hidden from the PNG (data-export-hide);
   the axis title and the R² label carry the view into the export. */
.tp-sc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 6px;
}
.tp-sc-pills {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--mv-pill-bg);
  border: 1px solid var(--mv-border);
}
.tp-sc-pills button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mv-text-sec);
  cursor: pointer;
}
.tp-sc-pills button.active {
  background: var(--mv-text);
  color: var(--mv-bg);
}
.tp-sc-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tp-sc-x input[type="range"] {
  width: 180px;
  accent-color: var(--eyebrow);
  cursor: pointer;
}
.tp-sc-x-end {
  font-size: 11px;
  color: var(--mv-text-muted);
  font-variant-numeric: tabular-nums;
}
.tp-sc-x-val {
  min-width: 48px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--mv-border);
  background: var(--mv-pill-bg);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mv-text);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tp-scatter .sc-r2 {
  position: absolute;
  text-align: right;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  color: var(--mv-text);
  font-variant-numeric: tabular-nums;
}
.tp-scatter .sc-r2 sup {
  font-size: 0.6em;
}
.tp-scatter .sc-r2 span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mv-text-muted);
}
@media (max-width: 640px) {
  .tp-sc-x input[type="range"] {
    width: 130px;
  }
}
