@charset "utf-8";
/* ── BMI Gauge (semi-circular meter) ─────────────────────── */
  .bmi-gauge-wrap {
    position: relative;
    width: 220px;
    margin: 0 auto 20px;
  }
  .bmi-gauge-svg { width: 100%; display: block; }
 
  /* BMI score display overlay */
  .bmi-score-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
  }
  .bmi-score-overlay__value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: var(--navy);
  }
  .bmi-score-overlay__label {
    font-size: .72rem;
    color: var(--gray);
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: .3px;
  }
 
  /* ── BMI Category badge ──────────────────────────────────── */
  .bmi-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 16px;
    border: 2px solid transparent;
  }
  .bmi-category-badge.underweight { background:#e8f0fe; color:#1a73e8; border-color:#93c5fd; }
  .bmi-category-badge.normal      { background:#e6f4ec; color:var(--green); border-color:#86efac; }
  .bmi-category-badge.overweight  { background:#fef9c3; color:#92400e; border-color:#fde047; }
  .bmi-category-badge.obese1      { background:#fff0e8; color:var(--orange); border-color:#fdba74; }
  .bmi-category-badge.obese2      { background:#fee2e2; color:#dc2626; border-color:#fca5a5; }
  .bmi-category-badge.obese3      { background:#fce7f3; color:#be185d; border-color:#f9a8d4; }
 
  /* ── WHO classification table ────────────────────────────── */
  .bmi-class-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-l);
  }
  .bmi-class-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 9px 12px;
    text-align: left;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
  }
  .bmi-class-table tbody tr { border-bottom: 1px solid var(--gray-l); }
  .bmi-class-table tbody tr:last-child { border-bottom: none; }
  .bmi-class-table tbody tr.active-row { background: #f0faf4; font-weight: 700; }
  .bmi-class-table td {
    padding: 8px 12px;
    color: var(--text);
  }
  .bmi-class-table td:first-child { font-weight: 500; }
  .bmi-class-table .range-cell { color: var(--gray); font-size: .78rem; }
  .bmi-class-table .cat-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
  }
 
  /* ── Healthy weight range highlight ─────────────────────── */
  .healthy-range-box {
    background: #e6f4ec;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .healthy-range-box i { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }
  .healthy-range-box__label { font-size: .78rem; color: var(--gray); margin-bottom: 2px; }
  .healthy-range-box__value {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy);
  }
  .healthy-range-box__sub { font-size: .72rem; color: var(--gray); margin-top: 2px; }
 
  /* ── Ideal weight & diff card ───────────────────────────── */
  .bmi-diff-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .bmi-diff-card {
    background: var(--light);
    border: 1px solid var(--gray-l);
    border-radius: 10px;
    padding: 11px 13px;
    text-align: center;
  }
  .bmi-diff-card__label { font-size: .7rem; color: var(--gray); margin-bottom: 5px; }
  .bmi-diff-card__value {
    font-family: var(--font-head);
    font-weight: 700;

    font-size: .95rem;
    color: var(--navy);
  }
  .bmi-diff-card.to-lose  .bmi-diff-card__value { color: var(--orange); }
  .bmi-diff-card.to-gain  .bmi-diff-card__value { color: #1a73e8; }
  .bmi-diff-card.on-track .bmi-diff-card__value { color: var(--green); }
 
  /* ── Asia-Pacific note ──────────────────────────────────── */
  .asia-pacific-note {
    background: #eff6ff;
    border-left: 3px solid #1a73e8;
    border-radius: 0 8px 8px 0;
    padding: 9px 13px;
    font-size: .78rem;
    color: #1e3a5f;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .asia-pacific-note i { color: #1a73e8; margin-right: 4px; }
 
  /* ── Unit toggle ─────────────────────────────────────────── */
  /* Uses global .calc-tabs — no override needed */
 
  /* ── Height input: ft+in mode ───────────────────────────── */
  .height-ft-wrap {
    display: none;
    gap: 8px;
  }
  .height-ft-wrap.active { display: flex; }
  .height-ft-wrap .form-input { flex: 1; }
 
  /* ── Health disclaimer ──────────────────────────────────── */
  .health-disclaimer {
    background: var(--light);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: .75rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: 10px;
  }
 
  /* ── Chart wrap ─────────────────────────────────────────── */
  .bmi-chart-wrap { position: relative; height: 200px; }
 
  /* ── Responsive ─────────────────────────────────────────── */
  @media (max-width: 480px) {
    .bmi-diff-cards { grid-template-columns: 1fr; }
    .bmi-gauge-wrap { width: 180px; }
    .bmi-score-overlay__value { font-size: 1.6rem; }
  }