@charset "utf-8";
.bf-hero {
    border-radius: 14px;
    padding: 20px 20px 16px;
    margin-bottom: 14px;
    text-align: center;
    border: 3px solid transparent;
    transition: background .4s, border-color .4s;
  }
  /* Dynamic colour via JS class injection */
  .bf-hero.essential  { background: #f0e8ff; border-color: #c084fc; }
  .bf-hero.athletic   { background: #e8f0fe; border-color: #60a5fa; }
  .bf-hero.fitness    { background: #e6f4ec; border-color: #4ade80; }
  .bf-hero.average    { background: #fef9c3; border-color: #fbbf24; }
  .bf-hero.obese      { background: #fee2e2; border-color: #f87171; }
 
  .bf-hero__pct {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--navy);
  }
  .bf-hero__unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray);
    margin-left: 2px;
  }
  .bf-hero__category {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-top: 6px;
  }
  .bf-hero__method {
    font-size: .72rem;
    color: var(--gray);
    margin-top: 4px;
  }
 
  /* ── Lean / Fat mass split bar ───────────────────────────── */
  .mass-split-bar {
    margin-bottom: 16px;
  }
  .mass-split-bar__track {
    height: 12px;
    background: var(--gray-l);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .mass-split-bar__fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--green) var(--lean-pct,80%), #f87171 var(--lean-pct,80%));
    transition: all .6s ease;
  }
  .mass-split-labels {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
  }
  .mass-split-label {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .mass-split-dot { width: 8px; height: 8px; border-radius: 50%; }
 
  /* ── Lean / Fat mass cards ───────────────────────────────── */
  .mass-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .mass-card {
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    border: 1.5px solid transparent;
  }
  .mass-card.lean {
    background: #e6f4ec;
    border-color: #4ade80;
  }
  .mass-card.fat {
    background: #fee2e2;
    border-color: #f87171;
  }
  .mass-card__label {
    font-size: .72rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .mass-card__value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
  }
  .mass-card.lean .mass-card__value { color: var(--green); }
  .mass-card.fat  .mass-card__value { color: #dc2626; }
  .mass-card__sub { font-size: .7rem; color: var(--gray); margin-top: 3px; }
 
  /* ── Body fat category reference table ───────────────────── */
  .bf-cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-l);
    margin-bottom: 16px;
  }
  .bf-cat-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 9px 10px;
    text-align: left;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .3px;
  }
  .bf-cat-table tbody tr { border-bottom: 1px solid var(--gray-l); }
  .bf-cat-table tbody tr:last-child { border-bottom: none; }
  .bf-cat-table tbody tr.active-row { font-weight: 700; }
  .bf-cat-table td { padding: 8px 10px; }
  .bf-cat-table .bf-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
  }
 
  /* ── Method comparison strip ─────────────────────────────── */
  .method-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .method-compare-card {
    background: var(--light);
    border: 1.5px solid var(--gray-l);
    border-radius: 10px;
    padding: 11px 12px;
    text-align: center;
  }
  .method-compare-card.active-method {
    border-color: var(--green);
    background: #f0faf4;
  }
  .method-compare-card__method {
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .method-compare-card__value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
  }
  .method-compare-card__sub { font-size: .7rem; color: var(--gray); margin-top: 2px; }
  .method-compare-card.active-method .method-compare-card__method { color: var(--green); }
 
  /* ── Protein recommendation insight ──────────────────────── */
  .protein-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #e8f0fe;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: .82rem;
    color: var(--navy);
  }
  .protein-insight i { color: #1a73e8; flex-shrink: 0; margin-top: 2px; }
  .protein-insight strong { font-family: var(--font-head); color: #1a73e8; }
 
  /* ── Measurement guide illustrations ─────────────────────── */
  .measure-guide {
    background: var(--light);
    border: 1px solid var(--gray-l);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
  }
  .measure-guide__title {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .measure-guide__title i { color: var(--green); }
  .measure-guide__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .measure-guide__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .78rem;
    color: var(--text);
    padding: 4px 0;
    border-bottom: 1px solid rgba(229,231,235,.5);
  }
  .measure-guide__item:last-child { border-bottom: none; }
  .measure-guide__item i { color: var(--green); flex-shrink: 0; margin-top: 2px; font-size: .72rem; }
 
  /* ── Donut chart ─────────────────────────────────────────── */
  .bf-chart-wrap { position: relative; height: 200px; }
 
  /* ── 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;
  }
 
  /* ── Responsive ─────────────────────────────────────────── */
  @media (max-width: 480px) {
    .mass-cards { grid-template-columns: 1fr; }
    .method-compare { grid-template-columns: 1fr; }
    .bf-hero__pct { font-size: 2.4rem; }
  }