/* Congruent — test online vedere de aproape (test-vedere-aproape.html)
   Completează css/styles.css; folosește aceleași variabile și componente. */

/* Textul nu se mărește automat pe iOS/Android; literele testului sunt SVG în px calibrați. */
.tv-page { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.tv-step > .card { margin-bottom: 0.85rem; }
.tv-step > .card + .card { margin-top: 0; }
.tv-step .page-title:focus { outline: none; }

.tv-list { margin: 0.35rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.92rem; }
.tv-list li { margin-bottom: 0.35rem; }
.tv-list strong { color: var(--ink); }

.tv-text { margin: 0 0 0.75rem; font-size: 0.95rem; }
.card .tv-text { color: var(--ink); }
.tv-hint { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--muted); }
.tv-mt { margin-top: 0.6rem; }

.tv-disclaimer {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--draft-bg);
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #7c2d12;
  font-size: 0.9rem;
}

.tv-short-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.tv-warn {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  background: var(--draft-bg);
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #7c2d12;
  font-size: 0.86rem;
}
.tv-warn p { margin: 0.2rem 0; }

/* —— Calibrare —— */
.tv-calib-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 13rem;
  display: grid;
  place-items: center;
  padding: 1rem 0;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.tv-ref-wrap svg, .tv-line-wrap svg { display: block; max-width: none; }
.tv-ref-wrap { color: #000; }

.tv-calib-controls {
  display: grid;
  grid-template-columns: 3.4rem 1fr 3.4rem;
  gap: 0.6rem;
  align-items: center;
}
.tv-step-btn { font-size: 1.6rem; padding: 0; min-height: 3.4rem; line-height: 1; }
.tv-slider { width: 100%; accent-color: var(--accent); min-height: 2.75rem; }
.tv-calib-readout { margin: 0.4rem 0 0.85rem; text-align: center; font-size: 0.8rem; color: var(--muted); }

.tv-details {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tv-details summary { cursor: pointer; font-weight: 650; font-size: 0.92rem; min-height: 1.75rem; }
.tv-details .tv-text { margin-top: 0.6rem; }
.tv-line-wrap { overflow-x: auto; padding: 0.5rem 0 0.25rem; color: #000; }

/* —— Test —— */
.tv-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}
.tv-progress-bar { display: block; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.tv-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.tv-reminder { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }

.tv-stimulus {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 9rem;
  display: grid;
  place-items: center;
  margin: 0.6rem 0 0.9rem;
  color: #000;
}
.tv-stimulus svg { display: block; max-width: none; }

.tv-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.tv-choice {
  min-height: 4rem;
  padding: 0.5rem;
  border-width: 2px;
}
.tv-choice svg { width: 1.9rem; height: 1.9rem; color: var(--ink); }
.tv-unsure { border-style: dashed; color: var(--muted); }
.tv-choices button:disabled, .tv-unsure:disabled { opacity: 0.6; }

/* —— Întrebări —— */
.tv-fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.tv-fieldset:last-child { margin-bottom: 0; }
.tv-fieldset legend { font-weight: 650; font-size: 0.92rem; margin-bottom: 0.45rem; padding: 0; }
.tv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tv-grid-3 .radio-card { justify-content: center; }

/* —— Rezultat —— */
.tv-result { border-top: 6px solid var(--accent); }
.tv-result[data-level="borderline"] { border-top-color: #d97706; }
.tv-result[data-level="low"] { border-top-color: #b91c1c; }
.tv-result[data-level="limited"] { border-top-color: #64748b; }
.tv-result-value { margin: 0 0 0.25rem !important; font-size: 0.9rem !important; color: var(--muted); }
.tv-result-value strong { display: block; font-size: 2rem; line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
.tv-result-title { font-size: 1.15rem !important; line-height: 1.3; margin: 0.5rem 0 0.35rem !important; }
.tv-result p { color: var(--ink); font-size: 0.95rem; }
.tv-note { font-size: 0.86rem !important; color: var(--muted) !important; }

@media (prefers-reduced-motion: reduce) {
  .tv-progress-bar span { transition: none; }
}
