/* HC Frontend v0.3 — live research feed.
   Additive only; does not replace the base Wall Street/mobile stylesheet. */

.hc-live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: #6f838d;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7975rem;
  letter-spacing: 0.08em;
}

.hc-live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hc-live-state i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b8b92;
}

.hc-live-meta[data-state="live"] .hc-live-state {
  color: var(--accent);
}

.hc-live-meta[data-state="live"] .hc-live-state i {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(128, 224, 189, 0.45);
}

.hc-live-meta[data-state="stale"] .hc-live-state {
  color: #d9ad64;
}

.hc-live-meta[data-state="stale"] .hc-live-state i {
  background: #d9ad64;
}

.hc-live-meta[data-state="error"] .hc-live-state {
  color: #c98080;
}

.hc-live-meta[data-state="error"] .hc-live-state i {
  background: #c98080;
}

.hc-candidate-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.hc-candidate-head > div:first-child {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
}

.hc-kicker {
  grid-column: 1 / -1;
  color: #617984;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7975rem;
  letter-spacing: 0.13em;
}

.hc-symbol {
  color: #eef4f6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.hc-setup {
  color: #81949d;
  font-size: .8675rem;
  text-transform: uppercase;
}

.hc-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  column-gap: 4px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}

.hc-score span {
  grid-column: 1 / -1;
  color: #617984;
  font-size: .7675rem;
  letter-spacing: 0.1em;
}

.hc-score strong {
  font-size: 1.55rem;
  line-height: 1;
}

.hc-score small {
  color: #667b85;
  font-size: .8175rem;
}

.hc-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hc-quote-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hc-quote-grid span,
.hc-quote-grid strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
}

.hc-quote-grid span {
  margin-bottom: 5px;
  color: #617984;
  font-size: .7375rem;
  letter-spacing: 0.09em;
}

.hc-quote-grid strong {
  overflow: hidden;
  color: #cdd9dd;
  font-size: .9175rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hc-live-meta {
    min-height: 36px;
    padding: 0 14px;
    font-size: .7475rem;
  }

  .hc-live-scan {
    white-space: nowrap;
  }

  .hc-candidate-head {
    align-items: center;
    margin-bottom: 16px;
  }

  .hc-symbol {
    font-size: 1.55rem;
  }

  .hc-score strong {
    font-size: 1.35rem;
  }

  .hc-quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc-quote-grid > div {
    padding: 10px;
  }

  .hc-quote-grid strong {
    font-size: .8875rem;
  }
}

@media (max-width: 380px) {
  .hc-live-scan {
    display: none;
  }
}
