/* Tape-measurement guide (measure-guide.js): the mannequin, used on measure.html and beside the intake form's tape fields */
.mg-svg{--tape:#B0640F;display:block;width:100%;height:auto}
.mg-floor{stroke:var(--line);stroke-width:2}
.mg-bone{stroke:var(--teal);stroke-width:6;stroke-linecap:round}
.mg-head{fill:none;stroke:var(--teal);stroke-width:6}
.mg-joint{fill:var(--text)}
.mg-tape{opacity:0;transition:opacity .25s}
.mg-tape.on{opacity:1}
/* the tape is amber like a real tape measure, so it stands out from the teal body (about 4:1 on the card surface) */
.mg-front,.mg-back,.mg-tick{fill:none;stroke:var(--tape);stroke-width:5;stroke-linecap:round}
.mg-back{stroke-width:3.5;stroke-dasharray:5 5;opacity:.7}
.mg-tick{stroke-width:4}
@media (prefers-reduced-motion:no-preference){
  /* the tape draws itself around the body when it appears (at rest it is fully drawn, so it shows even if the animation never runs) */
  .mg-tape .mg-front{stroke-dasharray:1}
  .mg-tape.on .mg-front{animation:mg-draw .8s cubic-bezier(.22,.61,0,1) .1s both}
}
@keyframes mg-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

/* intake form: the figure beside the tape fields (sticky on wide screens, above the fields on phones) */
.tape-wrap{display:grid;gap:8px 32px;grid-template-columns:1fr}
@media (min-width:860px){.tape-wrap{grid-template-columns:1fr 220px;align-items:start}.tape-wrap .tape-guide{grid-column:2;grid-row:1;position:sticky;top:96px}}
.tape-guide{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:20px}
@media (min-width:860px){.tape-guide{grid-template-columns:1fr;justify-items:center;text-align:center;margin-bottom:0}}
.tg-fig{width:100%;max-width:170px}
.tg-cap{font-size:15px;min-height:4.8em}
.tg-cap b{display:block;color:var(--text);font-size:17px;margin-bottom:2px}
.tg-more{font-size:14px;font-weight:600;display:inline-flex;align-items:center;min-height:44px}
@media (max-width:859px){.tg-more{grid-column:1/-1}}

/* measure.html: one card per measurement */
.mg-tips{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-bottom:32px}
.mg-tips b{color:var(--text)}
.mg-tips ul{margin:8px 0 0;padding-inline-start:20px;display:grid;gap:6px}
.mg-cards{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
@media (min-width:640px){.mg-cards{grid-template-columns:1fr 1fr}}
@media (min-width:1000px){.mg-cards{grid-template-columns:repeat(4,1fr)}}
.mg-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;gap:10px;align-content:start}
.mg-card .mg-fig{max-width:150px;justify-self:center;width:100%}
.mg-card h2{font-size:19px;font-weight:600;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.mg-card .need{font-size:13px;font-weight:600;color:var(--plum)}
.mg-card p{font-size:15px}
.mg-after{margin-top:32px;display:flex;flex-wrap:wrap;gap:12px}
