/* Комплексная оценка щитовидной железы. Дополняет calc-phenoage.css + tool-hypertension.css + tool-fib4.css.
   Карточка результата (.pa-headline--light), выноска (.fib-plain*) — из tool-fib4.css. */

.pa-field--wide { grid-column: 1 / -1; }

/* Подписи групп полей */
.thy-group-label {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--v2-ink-2);
  margin: 18px 0 10px;
}
.thy-group-label__opt { font-family: var(--v2-font); font-weight: 500; font-size: 12px; text-transform: none; color: var(--v2-ink-3); }

/* ── Общая оценка (headline) ── */
.thy-overall-big {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin-top: 6px;
}
.thy-overall-note { margin-top: 10px; font-family: var(--v2-font); font-size: 14px; line-height: 1.5; color: var(--v2-ink-2); max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── Заголовки секций результата ── */
.thy-section-title {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 14px; color: var(--v2-ink); margin: 24px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--v2-border, #e6e8f0);
}

/* ── Карточки показателей ── */
.thy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .thy-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .thy-cards { grid-template-columns: 1fr; } }

.thy-card {
  padding: 14px 16px; border-radius: 14px;
  background: var(--v2-surface, #fff); border: 1px solid var(--v2-border, #e6e8f0);
  border-left: 4px solid var(--thy-tone, #64748b);
  display: flex; flex-direction: column;
}
.thy-card--green  { --thy-tone: #059669; }
.thy-card--amber  { --thy-tone: #d97706; }
.thy-card--orange { --thy-tone: #ea580c; }
.thy-card--red    { --thy-tone: #dc2626; }
.thy-card--grey   { --thy-tone: #64748b; }

.thy-card__name { font-family: var(--v2-font); font-weight: 600; font-size: 12.5px; color: var(--v2-ink-2); line-height: 1.3; min-height: 2.6em; }
.thy-card__val {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 28px; color: var(--v2-ink); line-height: 1; letter-spacing: -.02em; margin: 4px 0 2px;
}
.thy-card__unit { font-family: var(--v2-font); font-weight: 600; font-size: 13px; color: var(--v2-ink-3); }
.thy-card__ref { font-family: var(--v2-font); font-size: 11.5px; color: var(--v2-ink-3); margin-bottom: 8px; }
.thy-card__pill {
  align-self: flex-start;
  font-family: var(--v2-font); font-weight: 600; font-size: 12px; color: #fff;
  background: var(--thy-tone, #64748b); padding: 4px 12px; border-radius: 99px; line-height: 1.3;
}
.thy-card__note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--v2-ink-3); }

/* ── Сообщение об ошибке ── */
#thy-error-msg.is-visible {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fee2e2; border: 0; border-left: 4px solid #dc2626; color: #991b1b;
  border-radius: 12px; padding: 14px 18px;
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 6px 20px rgba(220, 38, 38, .18); animation: fib-err-pop .45s ease;
}
#thy-error-msg.is-visible::before { content: '⚠'; font-size: 18px; line-height: 1.2; flex-shrink: 0; color: #dc2626; }
