#hc-outcome-analytics {
  margin: 28px 0 48px;
  font-variant-numeric: tabular-nums;
}

.hc-oa-section {
  width: 100%;
}

.hc-oa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.hc-oa-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 6px;
}

.hc-oa-header h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.02em;
}

.hc-oa-subtitle,
.hc-oa-card-subtitle,
.hc-oa-kpi-note,
.hc-oa-muted {
  opacity: .58;
}

.hc-oa-subtitle {
  margin: 6px 0 0;
  max-width: 780px;
  font-size: 13px;
}

.hc-oa-status {
  white-space: nowrap;
  border: 1px solid rgba(127,127,127,.24);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hc-oa-status.is-live {
  border-color: rgba(64, 180, 120, .45);
}

.hc-oa-status.is-pending {
  border-color: rgba(215, 172, 70, .45);
}

.hc-oa-status.is-error {
  border-color: rgba(210, 90, 90, .45);
}

.hc-oa-grid {
  display: grid;
  gap: 12px;
}

.hc-oa-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.hc-oa-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  margin-bottom: 12px;
}

.hc-oa-card {
  border: 1px solid rgba(127,127,127,.18);
  background: rgba(127,127,127,.035);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}

.hc-oa-kpi-label,
.hc-oa-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hc-oa-kpi-value {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.hc-oa-kpi-note,
.hc-oa-card-subtitle {
  margin-top: 5px;
  font-size: 14px;
}

.hc-oa-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.hc-oa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hc-oa-table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .48;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(127,127,127,.18);
}

.hc-oa-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(127,127,127,.10);
  white-space: nowrap;
}

.hc-oa-table tbody tr:last-child td {
  border-bottom: 0;
}

.hc-oa-symbol {
  font-weight: 800;
  letter-spacing: .03em;
}

.hc-oa-muted {
  display: inline-block;
  margin-left: 5px;
  font-size: 13px;
}

.hc-oa-badge {
  display: inline-flex;
  border: 1px solid rgba(127,127,127,.22);
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hc-oa-badge.is-candidate,
.hc-oa-badge.is-complete {
  border-color: rgba(64,180,120,.45);
}

.hc-oa-badge.is-rejected,
.hc-oa-badge.is-pending {
  opacity: .68;
}

.hc-oa-badge.is-active {
  border-color: rgba(215,172,70,.45);
}

.hc-oa-badge.is-error {
  border-color: rgba(210,90,90,.5);
}

.hc-oa-path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.hc-oa-path-item {
  border: 1px solid rgba(127,127,127,.12);
  border-radius: 8px;
  padding: 11px;
}

.hc-oa-path-item span {
  display: block;
  opacity: .55;
  font-size: 13px;
  margin-bottom: 5px;
}

.hc-oa-path-item strong {
  font-size: 18px;
}

.hc-oa-empty {
  padding: 24px !important;
  text-align: center;
  opacity: .5;
}

.positive {
  color: #36a66f;
}

.negative {
  color: #c95f5f;
}

@media (max-width: 900px) {
  .hc-oa-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-oa-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #hc-outcome-analytics {
    margin-top: 22px;
  }

  .hc-oa-header {
    flex-direction: column;
    gap: 10px;
  }

  .hc-oa-kpis {
    grid-template-columns: 1fr;
  }

  .hc-oa-card {
    padding: 13px;
  }

  .hc-oa-kpi-value {
    font-size: 24px;
  }

  .hc-oa-table {
    min-width: 760px;
  }
}


/* =========================================================
   WELLS-O-METER — analytics tooltips
   ========================================================= */

.hc-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
  outline: none;
}

.hc-tip::after {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(128, 224, 189, 0.28);
  border-radius: 50%;
  color: #76938c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.hc-tip:hover::after,
.hc-tip:focus-visible::after {
  color: var(--accent);
  border-color: rgba(128, 224, 189, 0.65);
  background: rgba(128, 224, 189, 0.06);
}

/* Tooltip body */
.hc-tip::before {
  content: attr(data-tip-title) "\A\A" attr(data-tip);
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: calc(100% + 12px);

  width: 260px;
  padding: 12px 13px;

  border: 1px solid rgba(128, 224, 189, 0.22);
  border-radius: 4px;

  background:
    linear-gradient(
      180deg,
      rgba(12, 22, 27, 0.98),
      rgba(5, 10, 13, 0.99)
    );

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  color: #8599a1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: pre-line;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translateX(-50%)
    translateY(4px);

  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
}

/* little pointer */
.hc-tip:hover::before,
.hc-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* Highlight tooltip title line */
.hc-tip:hover,
.hc-tip:focus-visible {
  color: #b9c8cd;
}

/*
  Keep edge-column tooltips on-screen.
*/
.hc-oa-outcomes-table th:nth-last-child(2) .hc-tip::before,
.hc-oa-outcomes-table th:last-child .hc-tip::before {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.hc-oa-outcomes-table th:nth-last-child(2) .hc-tip:hover::before,
.hc-oa-outcomes-table th:nth-last-child(2) .hc-tip:focus-visible::before,
.hc-oa-outcomes-table th:last-child .hc-tip:hover::before,
.hc-oa-outcomes-table th:last-child .hc-tip:focus-visible::before {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .hc-tip::before {
    width: 220px;
  }
}


/* =========================================================
   WELLS-O-METER — floating tooltip layer
   Replaces clipped CSS-only tooltip body
   ========================================================= */

/* Keep the small ? indicator, but disable old popup */
.hc-tip::before {
  display: none !important;
}

.hc-floating-tip {
  position: fixed;
  z-index: 10000;

  width: min(290px, calc(100vw - 24px));
  padding: 13px 14px;

  border: 1px solid rgba(128, 224, 189, 0.25);
  border-radius: 4px;

  background:
    linear-gradient(
      180deg,
      rgba(12, 22, 27, 0.99),
      rgba(5, 10, 13, 0.995)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  font-family: "IBM Plex Mono", monospace;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(4px);

  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
}

.hc-floating-tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hc-floating-tip strong {
  display: block;
  margin-bottom: 7px;

  color: #dce8e5;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hc-floating-tip span {
  display: block;

  color: #82969d;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
