/*
  Tube Bias Calculator Pro — additive stylesheet
  ------------------------------------------------
  Loads after tube-bias-calculator.css and inherits its --tbc-* tokens
  and .tbc base component classes (header, warning, setup, reference,
  modes, panel, readout, gauge, bench table, footer) unchanged. This
  file only adds the new pieces specific to the wizard: step labels,
  the plate-voltage nudge stepper, the probe-reads radio group, and
  the two safety-check cards. Namespaced .tbcp- to avoid any collision
  with the existing .tbc- classes.
*/

.tbcp-step-label {
  font-family: var(--tbc-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tbc-ink-faint);
  margin: 22px 0 10px;
}

/* ---------- plate-voltage nudge stepper ---------- */
.tbcp-nudge-wrap {
  gap: 6px;
}

.tbcp-nudge-wrap .tbcp-nudge-input {
  padding-right: 58px;
  text-align: center;
}

.tbcp-nudge-btn {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--tbc-border);
  background: var(--tbc-panel-raised);
  color: var(--tbc-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, color 120ms ease;
}

.tbcp-nudge-btn:first-child { order: -1; }

.tbcp-nudge-btn:hover {
  border-color: var(--tbc-glow-dim);
  color: var(--tbc-glow);
}

.tbcp-nudge-hint {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--tbc-ink-faint);
  line-height: 1.5;
}

/* ---------- probe-reads radio group ---------- */
.tbcp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.tbcp-radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--tbc-ink-muted);
  line-height: 1.45;
  cursor: pointer;
}

.tbcp-radio input[type="radio"] {
  flex: none;
  margin-top: 2px;
  accent-color: var(--tbc-glow);
}

/* ---------- safety check cards ---------- */
.tbcp-safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.tbcp-safety-card {
  background: var(--tbc-panel-raised);
  border: 1px solid var(--tbc-border-soft);
  border-radius: var(--tbc-radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tbcp-safety-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tbcp-safety-card-head h3 {
  font-family: var(--tbc-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--tbc-ink);
  margin: 0;
}

.tbcp-safety-badge {
  flex: none;
  font-family: var(--tbc-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--tbc-border);
  color: var(--tbc-ink-faint);
  background: transparent;
  white-space: nowrap;
}

.tbcp-safety-badge.is-ok {
  color: var(--tbc-safe);
  border-color: rgba(124, 191, 142, 0.4);
  background: rgba(124, 191, 142, 0.12);
}

.tbcp-safety-badge.is-warn {
  color: var(--tbc-warn);
  border-color: rgba(231, 184, 79, 0.4);
  background: var(--tbc-warn-soft);
}

.tbcp-safety-badge.is-danger {
  color: var(--tbc-danger);
  border-color: rgba(224, 82, 46, 0.4);
  background: var(--tbc-danger-soft);
}

.tbcp-safety-readout {
  margin: 0;
  font-size: 13px;
  color: var(--tbc-ink);
  line-height: 1.5;
}

.tbcp-safety-readout strong {
  font-family: var(--tbc-font-mono);
  color: var(--tbc-glow);
}

.tbcp-safety-footnote {
  margin: 0;
  font-size: 11px;
  color: var(--tbc-ink-faint);
  line-height: 1.5;
}

/* ---------- responsive ---------- */
/* ---------- Tier 2: "Understanding this calculator" accordion prose ---------- */
/* Typography intentionally mirrors .dm-article h3/p (the guide-page prose
   this accordion links out to) so the two read as one consistent voice. */
.tbc-bench-prose {
  margin-top: 14px;
}
.tbc-bench-prose h3 {
  font-family: var(--tbc-font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tbc-glow);
  margin: 20px 0 8px;
}
.tbc-bench-prose h3:first-child { margin-top: 0; }
.tbc-bench-prose p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tbc-ink-muted);
  margin: 0 0 14px;
}
.tbc-bench-prose p:last-child { margin-bottom: 0; }
.tbc-bench-prose strong { color: var(--tbc-ink); font-weight: 600; }
.tbc-bench-prose ul {
  margin: 0 0 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tbc-ink-muted);
}
.tbc-bench-prose li { margin: 0; }
.tbc-bench-prose a { color: var(--tbc-glow); text-decoration: underline; }
.tbc-bench-prose a:hover { color: #ffb87a; }

@media (max-width: 640px) {
  .tbcp-safety-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tbcp-nudge-btn { transition: none; }
}
