/* Индекс WtHR (талия/рост). Дополняет calc-phenoage.css + tool-hypertension.css + tool-fib4.css.
   Шкала (.fib-scale*), пилюли (.fib-pill*), карточка (.pa-headline--light), выноска (.fib-plain*) — из tool-fib4.css. */

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

/* Селект под общий стиль полей */
.pa-field__select {
  flex: 1; width: 100%;
  padding: 13px 40px 13px 16px;
  font-size: 15.5px; font-family: var(--v2-font); font-weight: 500;
  color: var(--v2-ink); background: transparent; border: none; outline: none;
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2370738f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.pa-field__select::-ms-expand { display: none; }

/* Сетка карточек «как измерять» */
.wthr-measure { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 4px 0 8px; }
@media (max-width: 620px) { .wthr-measure { grid-template-columns: 1fr; } }

/* ── Большое число WtHR ── */
.wthr-big { display: flex; align-items: baseline; justify-content: center; }
#wthr-bigval { font-size: clamp(64px, 13vw, 104px); line-height: 1; }
.wthr-method-note { margin-top: 8px; font-family: var(--v2-font); font-size: 12.5px; color: var(--v2-ink-3); }

/* Пилюля категории */
.wthr-pills { display: flex; justify-content: center; margin-top: 18px; }
.wthr-pills .wthr-pill {
  width: min(420px, 94%); box-sizing: border-box; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 22px; text-align: center; line-height: 1.25; margin: 0; font-size: 13.5px;
}

.pa-metric-card__value--sm { font-size: 18px; line-height: 1.25; }

.wthr-scale-title {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 13.5px; color: var(--v2-ink); margin: 6px 0 8px;
}

/* ── Пояснение (телосложение + статус) ── */
.wthr-explain {
  margin: 4px 0 6px; padding: 14px 18px; border-radius: 14px;
  background: var(--v2-surface-2, #f7f9fc); border: 1px solid var(--v2-border, #e6e8f0);
  display: flex; flex-direction: column; gap: 10px;
}
.wthr-explain__row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--v2-ink-2); }
.wthr-explain__row .material-symbols-outlined { color: #0ea5a5; font-size: 20px; flex: 0 0 auto; }

/* ── Рекомендации ── */
.wthr-recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.wthr-rec {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--v2-surface, #fff); border: 1px solid var(--v2-border, #e6e8f0);
  font-size: 13.5px; line-height: 1.5; color: var(--v2-ink-2);
}
.wthr-rec strong { color: var(--v2-ink); }
.wthr-rec__icon { color: #0ea5a5; font-size: 22px; flex: 0 0 auto; }
@media (max-width: 560px) { .wthr-recs { grid-template-columns: 1fr; } }

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