/* Индекс WHR (талия/бёдра). Дополняет 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; }

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

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

/* Пилюля риска */
.whr-pills { display: flex; justify-content: center; margin-top: 18px; }
.whr-pills .whr-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: 22px; line-height: 1.2; }

.whr-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;
}

/* ── Карточка формы тела (цвет по зоне) ── */
.whr-shape {
  margin: 4px 0 6px; padding: 16px 20px; border-radius: 14px;
  background: var(--v2-surface, #fff);
  border: 1px solid var(--v2-border, #e6e8f0);
  border-left: 4px solid var(--whr-tone, #64748b);
}
.whr-shape--green  { --whr-tone: #059669; }
.whr-shape--amber  { --whr-tone: #d97706; }
.whr-shape--orange { --whr-tone: #ea580c; }
.whr-shape--red    { --whr-tone: #dc2626; }
.whr-shape__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.whr-shape__label {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 16px; color: var(--v2-ink);
}
.whr-shape__desc { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--v2-ink-2); }
.whr-shape__note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; line-height: 1.5; font-weight: 600; color: var(--whr-tone, #334155);
}
.whr-shape__note .material-symbols-outlined { font-size: 19px; flex: 0 0 auto; }

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

/* ── Идеальные уровни (две колонки таблиц) ── */
.whr-goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 8px; }
.whr-goals__title {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 15px; color: var(--v2-ink); margin-bottom: 8px;
}
@media (max-width: 620px) { .whr-goals-grid { grid-template-columns: 1fr; } }

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