﻿/* =============================================================================
   ct-notation.css — Clinical notation display, Newcastle scale, FMNS/DVD badges.
   Single responsibility: result display and special-finding indicators.
   Source: Cover-Test Clinical Reference §6, §3.3, §5.1, §5.2
   ============================================================================= */

/* ── Notation result row (§6) ─────────────────────────────────────────────── */
.ct-notation-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  min-height: 36px;
}

.ct-notation-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.32);
  flex-shrink: 0;
}

/* The actual notation string e.g. "RET 20Δ @6m" */
.ct-notation-value {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #e8edf5);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Colour tones for severity */
.ct-notation-value.ct-warn  { color: #f6ad55; }
.ct-notation-value.ct-alert { color: #fc8181; }
.ct-notation-value.ct-ok    { color: #68d391; }

/* ── Newcastle Control Scale (§3.3) [Ref 106, 107] ────────────────────────── */
.ct-newcastle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  background: rgba(246,173,85,0.07);
  border: 1px solid rgba(246,173,85,0.20);
  border-radius: 8px;
}

.ct-newcastle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ct-newcastle-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #f6ad55;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ct-newcastle-grade {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 14px;
  font-weight: 700;
  color: #f6ad55;
}

/* Grade buttons 0–5 */
.ct-grade-row {
  display: flex;
  gap: 4px;
}

.ct-grade-btn {
  flex: 1;
  padding: 5px 2px;
  border-radius: 5px;
  border: 1.5px solid rgba(246,173,85,0.20);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-align: center;
}

.ct-grade-btn:hover           { background: rgba(246,173,85,0.12); color: #f6ad55; }
.ct-grade-btn[aria-pressed="true"] {
  background: rgba(246,173,85,0.22);
  border-color: #f6ad55;
  color: #f6ad55;
}

/* Description text under grade buttons */
.ct-grade-desc {
  font-size: 9.5px;
  color: rgba(246,173,85,0.65);
  line-height: 1.45;
  min-height: 26px;
}

/* ── FMNS and DVD indicator badges (§5.1, §5.2) ───────────────────────────── */
.ct-special-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ct-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  border: 1px solid currentColor;
  opacity: 0.40;
  transition: opacity 0.20s;
}

.ct-badge.ct-visible { opacity: 1; }

.ct-badge.ct-fmns { color: #b794f4; background: rgba(183,148,244,0.10); }
.ct-badge.ct-dvd  { color: #76e4f7; background: rgba(118,228,247,0.10); }
