/* METS-IR. Карточки маркеров (.thy-*) — из tool-thyroid-comprehensive.css. */

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

/* Длинное слово «инсулинорезистентности» в H1 не должно выходить под картинку;
   перенос — по мягкому переносу (&shy;) с дефисом, а не по символу */
.pa-hero__title { overflow-wrap: break-word; hyphens: manual; }

/* Сетка полей на 2 колонки (рост/вес) */
.pa-fields--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .pa-fields--2 { grid-template-columns: 1fr; } }

/* ── Риск-пилюля под большим числом METS-IR ── */
.mir-risk-pill {
  display: inline-block; margin: 4px auto 2px;
  font-family: var(--v2-font); font-weight: 700; font-size: 14px; color: #fff;
  padding: 5px 18px; border-radius: 99px; line-height: 1.3;
}

/* ── Шкала METS-IR с порогом ── */
.mir-scale { max-width: 460px; margin: 30px auto 2px; }
.mir-scale__track {
  position: relative; height: 12px; border-radius: 99px;
  background: linear-gradient(90deg, #10b981 0%, #f5c542 48%, #ef6a3d 72%, #dc2626 100%);
}
.mir-scale__cutoff {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--v2-ink, #13141f); transform: translateX(-1px);
}
.mir-scale__cutoff-label {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--v2-font); font-weight: 600; font-size: 10.5px; color: var(--v2-ink-2);
}
.mir-scale__pointer {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%);
}
.mir-scale__ends {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--v2-font); font-size: 11px; color: var(--v2-ink-3);
}

/* ── Блок рекомендаций ── */
.mir-rec {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0 6px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--v2-border, #e6e8f0); border-left: 4px solid #64748b;
  background: var(--v2-surface, #fff);
}
.mir-rec--green { border-left-color: #059669; background: rgba(5, 150, 105, .06); }
.mir-rec--red { border-left-color: #dc2626; background: rgba(220, 38, 38, .05); }
.mir-rec .material-symbols-outlined { font-size: 24px; flex: 0 0 auto; }
.mir-rec--green .material-symbols-outlined { color: #059669; }
.mir-rec--red .material-symbols-outlined { color: #dc2626; }
.mir-rec__title { font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700; font-size: 14px; color: var(--v2-ink); margin-bottom: 4px; }
.mir-rec__body { font-size: 14px; line-height: 1.6; color: var(--v2-ink-2); }

/* ── Сообщение об ошибке ── */
#mir-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;
}
#mir-error-msg.is-visible::before { content: '⚠'; font-size: 18px; line-height: 1.2; flex-shrink: 0; color: #dc2626; }
