/* Sarcopenia lesson. All rules scoped under .sar-* */
.sar-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sar-note { font-size: 12.5px; color: var(--faint); text-align: center; }
.sar-hero img { width: 240px; max-width: 100%; max-height: 32vh; object-fit: contain; display: block; filter: drop-shadow(0 16px 28px rgba(123,92,253,.3)); }
.sar-hero.sm img { width: 170px; max-height: 20vh; }


.sar-ax { fill: var(--faint); font: 600 13px var(--sans); text-anchor: middle; }

/* ---------- the patch ---------- */
.sar-patch { width: 100%; max-width: 360px; transition: max-width .3s; height: auto; display: block; overflow: visible; touch-action: manipulation; }
.sar-patch.sm { max-width: 250px; }
.sar-patch.sm .sar-ax { display: none; }
.sar-nv circle { transition: opacity .3s; }
.sar-nv .sar-dead { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.sar-nv.off circle { opacity: .25; }
.sar-nv.off .sar-dead { opacity: 1; }
.sar-fb { cursor: default; }
.sar-fc { transition: fill .25s; }
.sar-hit { fill: transparent; }
.sar-fb.orph { cursor: pointer; }
.sar-fb.orph .sar-fc { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 3 3; }
.sar-fb.lost .sar-fc { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }

/* ---------- two men ---------- */
.sar-two { display: flex; gap: 10px; width: 100%; max-width: 340px; }
.sar-two div { flex: 1; padding: 12px 10px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.sar-two b { font: 700 22px var(--sans); color: var(--gold); }
.sar-two span { font-size: 13px; color: var(--dim); font-weight: 600; line-height: 1.3; }

/* ---------- bars ---------- */
.sar-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.sar-bt { font-size: 12.5px; color: var(--dim); text-align: center; font-weight: 600; }
.sar-br { display: grid; grid-template-columns: 104px 1fr 84px; align-items: center; gap: 8px; font: 700 13px var(--sans); color: var(--text); }
.sar-br i { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.sar-br b { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 5px; transition: width .7s ease-out; }
.sar-br em { font-style: normal; font-size: 12.5px; color: var(--dim); opacity: 0; transition: opacity .4s .5s; }
.sar-bars.on .sar-br em { opacity: 1; }


/* ---------- age 90 ---------- */
.sar-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 340px; }
.sar-tiles div { padding: 12px 6px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; text-align: center; }
.sar-tiles b { font: 700 22px var(--sans); color: var(--faint); transition: color .4s; }
.sar-tiles.on b { color: var(--mint); }
.sar-tiles span { font-size: 12.5px; color: var(--dim); font-weight: 600; }

@media (max-height: 700px) {
  .sar-hero img { max-height: 24vh; }
  .sar-hero.sm img { max-height: 14vh; }
  .sar-patch { max-width: 320px; }
}
