﻿/* Body history: a code-native model, measurement map and dated visual diary. */
.body-section { background: linear-gradient(var(--skin-canvas, #fff), var(--skin-soft, #f6f8f2) 45%, var(--skin-canvas, #fff)); }
.body-section [hidden] { display: none !important; }
.body-steps { justify-content: center; gap: 10px; margin: 0 0 28px; flex-wrap: wrap; }
.body-steps button { min-height: 48px; padding: 12px 19px; background: var(--skin-surface, #fff); border: 1.5px solid var(--skin-line, #dde5d6); border-radius: var(--shape-12, 12px); box-shadow: 0 3px 0 var(--skin-depth, #e1e8db); font-size: var(--type-13, 13px); font-weight: 600; }
.body-steps button > span { margin-right: 8px; color: var(--skin-muted, #7f8b72); font-size: var(--type-10, 10px); }
.body-steps button[aria-pressed="true"] { background: var(--skin-soft, #e8f0de); border-color: var(--skin-accent, #90aa75); color: var(--skin-accent, #55733e); }
.body-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1.5px solid var(--skin-line, #dce4d4); border-radius: var(--shape-28, 28px); background: var(--skin-surface, #fff); box-shadow: 0 6px 0 var(--skin-depth, #e6ebdf), 0 25px 60px rgb(var(--skin-depth-rgb, 64 80 52) / .04); overflow: hidden; }
.body-visual { position: relative; min-width: 0; background: var(--skin-soft, #f1f5eb); min-height: 520px; }
.body-coordinate, .body-example { position: absolute; top: 24px; z-index: 2; font-size: var(--type-8, 8px); font-weight: 600; letter-spacing: 1.2px; color: var(--skin-muted, #7d8972); }
.body-coordinate { left: 24px; }.body-example { right: 24px; }
.body-map { position: relative; height: 480px; margin-top: 26px; isolation: isolate; }
.body-halo { position: absolute; width: 290px; height: 290px; top: 72px; left: calc(50% - 145px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--skin-art-green-light, #e0ebd4), var(--skin-soft, #eff4e8) 75%); border: 1px solid var(--skin-line, #dce6d1); box-shadow: 0 0 0 21px rgb(var(--skin-accent-rgb, 98 133 71) / .035); }
.body-person { position: absolute; width: 224px; height: 448px; left: calc(50% - 112px); top: 0; filter: drop-shadow(5px 9px 4px rgb(var(--skin-depth-rgb, 49 69 37) / .12)); z-index: 1; }
.body-platform { position: absolute; width: 168px; height: 23px; left: calc(50% - 84px); top: 416px; border-radius: 50%; background: var(--skin-line, #ccd8bd); box-shadow: 0 6px 0 var(--skin-depth, #bac9ac); z-index: -1; }
.body-connectors { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.body-link { fill: none; stroke: var(--skin-art-green-mid, #8da775); stroke-width: 1.5; stroke-dasharray: 4 4; }
.body-link.thigh { stroke: var(--skin-art-gold-mid, #c6ac61); }
.body-pin { position: absolute; z-index: 3; width: 119px; min-height: 72px; text-align: left; padding: 13px 16px; background: var(--skin-surface, #fff); border: 1.5px solid var(--skin-line, #d5dfca); border-radius: var(--shape-13, 13px); box-shadow: 0 4px 0 var(--skin-depth, #dde5d4); transition: transform .6s var(--ease), border-color .2s, background .2s; }
.body-pin small { display: block; color: var(--skin-muted, #78856c); font-size: var(--type-10, 10px); margin-bottom: 5px; }
.body-pin strong { font-size: var(--type-18, 18px); font-weight: 600; white-space: nowrap; }
.body-pin i { font-size: var(--type-10, 10px); font-weight: 400; font-style: normal; color: var(--skin-muted, #78856c); }
.body-pin-dot { position: absolute; width: 11px; height: 11px; border: 3px solid var(--skin-surface, #fff); background: var(--skin-art-green-mid, #7fa062); border-radius: 50%; top: calc(50% - 5px); right: -6px; box-shadow: 0 0 0 3px rgb(var(--skin-accent-rgb, 98 133 71) / .16); }
.body-pin.waist .body-pin-dot { left: -6px; right: auto; }
.body-pin.thigh .body-pin-dot { background: var(--skin-art-gold-mid, #c6ac61); }
.body-pin.shoulders { left: 5%; top: 85px; transform: rotate(-3deg); }
.body-pin.waist { right: 5%; top: 178px; transform: rotate(3deg); }
.body-pin.thigh { left: 6%; top: 288px; transform: rotate(-2deg); }
.body-pin.weight { right: 5%; top: 337px; transform: rotate(3deg); }
.body-pin.weight > svg { position: absolute; width: 14px; height: 14px; right: 12px; top: 11px; color: var(--skin-muted, #8a977c); }
.body-pin:hover { transform: translateY(-3px); }
.body-pin[aria-pressed="true"] { border-color: var(--skin-accent, #88a76a); background: var(--skin-soft, #eff5e6); }
.body-map-caption { position: absolute; bottom: 0; text-align: center; width: 100%; font-size: var(--type-10, 10px); color: var(--skin-muted, #7a886c); }
.body-detail { min-width: 0; padding: 30px 30px 22px; display: flex; flex-direction: column; border-left: 1px dashed var(--skin-line, #d7e0cd); }
.body-detail-top { display: flex; justify-content: space-between; margin-bottom: 25px; }
.body-detail h3 { font-size: var(--type-25, 25px); font-weight: 600; letter-spacing: -.6px; line-height: 1.3; max-width: 320px; }
.body-detail-copy { font-size: var(--type-12, 12px); line-height: 1.8; color: var(--skin-muted, #78856c); margin: 13px 0 22px; min-height: 44px; }
.body-reading > span, .body-chart-reading > span { display: block; font-size: var(--type-11, 11px); color: var(--skin-muted, #7b876f); }
.body-reading > div { display: flex; align-items: baseline; gap: 8px; margin: 7px 0; }
.body-reading strong { font-size: var(--type-44, 44px); letter-spacing: -1.5px; font-weight: 600; line-height: 1.1; }
.body-reading > div > span { color: var(--skin-muted, #7c886f); font-size: var(--type-16, 16px); }
.body-reading > small { font-size: var(--type-10, 10px); color: var(--skin-muted, #7b876f); }
.body-ruler { position: relative; height: 40px; overflow: hidden; margin: 19px 0 17px; background: repeating-linear-gradient(90deg, var(--skin-line, #d2dec4) 0 1px, transparent 1px 10px); border-bottom: 1px solid var(--skin-line, #d2dec4); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.body-ruler > span { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--skin-accent, #839d6c) 0 1px, transparent 1px 50px); }
.body-ruler i { position: absolute; width: 2px; background: var(--skin-accent, #628547); top: 0; bottom: 0; left: 50%; }
.body-ruler i::before { content: ''; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: var(--skin-accent, #628547); }
.body-measure-summary { display: flex; gap: 25px; }
.body-measure-summary > span { font-size: var(--type-10, 10px); color: var(--skin-muted, #7b876f); }
.body-measure-summary strong { display: block; margin-top: 6px; color: var(--ink); font-size: var(--type-15, 15px); font-weight: 600; }
.body-detail-note { margin: 20px 0 5px; font-size: var(--type-11, 11px); line-height: 1.8; color: var(--skin-muted, #7b876f); }
.body-detail-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 18px; }
.body-saved { display: flex; align-items: center; gap: 7px; font-size: var(--type-9, 9px); color: var(--skin-muted, #7b876f); }
.body-saved > svg { width: 14px !important; height: 14px !important; color: var(--skin-accent, #628547); }
.body-metric-tabs { gap: 5px; margin-bottom: 17px; flex-wrap: wrap; }
.body-metric-tabs button { padding: 7px 10px; border: 1px solid var(--skin-line, #dce4d4); border-radius: var(--shape-7, 7px); font-size: var(--type-10, 10px); min-height: 34px; }
.body-metric-tabs button[aria-pressed="true"] { background: var(--skin-soft, #eaf2df); border-color: var(--skin-accent, #90ab78); color: var(--skin-accent, #55753c); }
.body-chart-reading { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: baseline; }
.body-chart-reading > strong { font-size: var(--type-23, 23px); font-weight: 600; }
.body-chart-reading > small { grid-column: 1 / -1; color: var(--skin-muted, #7b876f); font-size: var(--type-10, 10px); }
.body-chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.body-grid { stroke: var(--skin-line, #dce4d4); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.body-chart-area { fill: url(#body-chart-gradient); }.body-chart-line { stroke: var(--skin-art-green-mid, #739554); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.body-chart-points circle { fill: var(--skin-surface, #fff); stroke: var(--skin-art-green-mid, #739554); stroke-width: 2; }
.body-chart-selected { fill: var(--skin-art-green-mid, #739554); stroke: var(--skin-surface, #fff); stroke-width: 3; }
.body-date-tabs { justify-content: space-between; gap: 3px; }
.body-date-tabs button { min-height: 35px; padding: 7px; color: var(--skin-muted, #7b876f); font-size: var(--type-10, 10px); border-radius: var(--shape-6, 6px); }
.body-date-tabs button[aria-pressed="true"] { background: var(--skin-soft, #eaf2df); color: var(--skin-accent, #55753c); }
.body-chart-date { text-align: center; font-size: var(--type-9, 9px); color: var(--skin-muted, #7b876f); margin: 6px 0 0; }
.body-photos { padding: 65px 27px 20px; }
.body-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.body-photo { position: relative; margin: 0; padding: 15px 8px 12px; border: 1px solid var(--skin-line, #d5dfca); border-radius: var(--shape-15, 15px); background: var(--skin-surface, #fff); box-shadow: 0 5px 0 var(--skin-depth, #e0e7d7); transform: rotate(-3deg); }
.body-photo.after { transform: rotate(3deg); margin-top: 20px; background: var(--skin-soft, #edf3e5); }
.body-photo figcaption { text-align: center; position: relative; z-index: 1; }
.body-photo figcaption span { display: block; font-size: var(--type-8, 8px); letter-spacing: 1.2px; color: var(--skin-muted, #7b876f); }.body-photo figcaption strong { display: block; margin-top: 6px; font-size: var(--type-12, 12px); font-weight: 500; }
.body-photo > img { display: block; width: 100%; height: 305px; object-fit: contain; object-position: center bottom; }
.body-photo-angle { display: block; text-align: center; font-size: var(--type-9, 9px); color: var(--skin-muted, #7b876f); margin-top: 9px; }
.body-photos > p { text-align: center; color: var(--skin-muted, #7b876f); font-size: var(--type-9, 9px); line-height: 1.7; margin: 25px 0 0; }
.body-comparison-header { display: flex; justify-content: space-between; font-size: var(--type-9, 9px); color: var(--skin-muted, #7b876f); }
.body-comparison { margin: 8px 0 0; }.body-comparison > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--skin-line, #e0e6d8); font-size: var(--type-11, 11px); }.body-comparison dt { color: var(--skin-muted, #7b876f); }.body-comparison dd { margin: 0; font-weight: 600; white-space: nowrap; }
.body-angles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; }.body-angles > span { font-size: var(--type-9, 9px); padding: 6px 8px; border: 1px solid var(--skin-line, #dbe4d1); border-radius: var(--shape-6, 6px); color: var(--skin-muted, #7b876f); }
.body-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 38px 10px 0; }.body-capabilities > div { position: relative; padding-left: 31px; }.body-capabilities > div > span { position: absolute; left: 0; top: 4px; color: var(--skin-accent, #88a472); font-size: var(--type-10, 10px); }.body-capabilities strong { font-weight: 600; font-size: var(--type-13, 13px); line-height: 1.5; }.body-capabilities p { margin: 8px 0 0; font-size: var(--type-11, 11px); color: var(--skin-muted, #7b876f); line-height: 1.8; }
.body-footnote { text-align: center; margin-top: 25px; }
.body-section[data-step="1"] .body-pin { transform: rotate(0); }
.body-section[data-body-part="waist"] .body-link.waist, .body-section[data-body-part="shoulders"] .body-link.shoulders, .body-section[data-body-part="thigh"] .body-link.thigh { stroke: var(--skin-accent, #628547); stroke-width: 2.5; }
.motion-enabled .body-section[data-playing="true"] .body-person { animation: body-breath 4s ease-in-out infinite; }
.motion-enabled .body-section[data-playing="true"][data-step="0"] .body-pin { animation: body-card-in .65s var(--ease) both; }.body-pin.waist { animation-delay: .15s !important; }.body-pin.thigh { animation-delay: .3s !important; }.body-pin.weight { animation-delay: .45s !important; }
.motion-enabled .body-section[data-step="1"] .body-chart-line { animation: body-line-in .9s var(--ease) both; }
.motion-enabled .body-section[data-step="2"] .body-photo { animation: body-photo-in .75s var(--ease) both; }.body-photo.after { animation-delay: .12s !important; }
@keyframes body-breath { 50% { translate: 0 -3px; } }
@keyframes body-card-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes body-line-in { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes body-photo-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
html[data-site-style="cyber"] .body-section { --body-shirt: #123d49; --body-shirt-dark: #09262f; --body-shirt-light: #00e5ff; --body-shorts: #26324a; --body-shorts-dark: #10121c; --body-shoes: #a9b6d0; }
html[data-site-style="cyber"] .body-halo { background: radial-gradient(circle, #103b4a, transparent 70%); border-color: #0a7a92; box-shadow: 0 0 45px #00e5ff14; }
html[data-site-style="cyber"] .body-pin[aria-pressed="true"] { box-shadow: 0 0 15px #00e5ff12; }
html[data-site-style="sketch"] .body-section { --body-skin: #f2e6d3; --body-skin-shadow: #ddccb3; --body-outline: #787166; --body-shirt: #e7eddc; --body-shirt-dark: #acb99a; --body-shirt-light: #f2f5eb; --body-shorts: #d7d1c2; --body-shorts-dark: #898276; --body-hair: #8a857a; --body-shoes: #f2efe6; }
html[data-site-style="sketch"] .body-person { filter: none; }
html[data-site-style="sketch"] .body-photo, html[data-site-style="sketch"] .body-pin { border-style: dashed; }
html[data-site-style="sketch"] .body-halo { background: url("assets/paper-light.png"), var(--skin-soft); background-size: 200px; }
html[data-site-style="sketch"] .body-detail-copy, html[data-site-style="sketch"] .body-detail-note { font-size: 17px; line-height: 1.45; }
html[data-site-style="sketch"] .body-photo > img { opacity: .85; }
html:not(.stories-ready) .body-pin { pointer-events: none; }
@media (max-width: 1035px) { .body-detail { padding: 26px 22px 20px; }.body-pin { width: 106px; padding: 12px; }.body-pin.shoulders { left: 3%; }.body-pin.thigh { left: 3%; }.body-pin.waist, .body-pin.weight { right: 3%; }.body-coordinate { left: 16px; }.body-example { right: 16px; letter-spacing: .5px; }.body-person { width: 204px; left: calc(50% - 102px); }.body-photos { padding-inline: 17px; }.body-photo > img { height: 290px; }.body-capabilities { gap: 20px; } }
@media (max-width: 805px) { .body-scene { grid-template-columns: 1fr; }.body-visual { min-height: 500px; }.body-detail { border-left: 0; border-top: 1px dashed var(--skin-line, #d7e0cd); padding: 25px; min-height: 470px; }.body-detail h3 { max-width: none; }.body-person { width: 224px; left: calc(50% - 112px); }.body-pin { width: 115px; }.body-pin.shoulders, .body-pin.thigh { left: 7%; }.body-pin.waist, .body-pin.weight { right: 7%; }.body-capabilities { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }.body-photo > img { height: 315px; }.body-photos { padding: 62px 25px 23px; }.body-chart { max-height: 190px; }.body-steps { gap: 7px; }.body-steps button { padding: 10px 12px; font-size: var(--type-11, 11px); }.body-steps button > span { margin-right: 4px; } }
@media (max-width: 460px) { .body-map { height: 438px; }.body-visual { min-height: 466px; }.body-person { width: 196px; height: 392px; left: calc(50% - 98px); top: 10px; }.body-halo { width: 235px; height: 235px; left: calc(50% - 117.5px); top: 82px; }.body-platform { top: 380px; }.body-pin { width: 96px; min-height: 65px; padding: 10px; }.body-pin.shoulders { left: 3%; top: 83px; }.body-pin.waist { right: 3%; top: 171px; }.body-pin.thigh { left: 3%; top: 273px; }.body-pin.weight { right: 3%; top: 324px; }.body-pin strong { font-size: var(--type-16, 16px); }.body-pin small { font-size: var(--type-9, 9px); }.body-detail { padding: 23px 19px; }.body-coordinate, .body-example { font-size: 7px; top: 20px; }.body-photo-pair { gap: 10px; }.body-photos { padding-inline: 17px; }.body-photo > img { height: 285px; }.body-steps button { font-size: var(--type-10, 10px); padding: 9px; min-height: 42px; } }
@media (prefers-reduced-motion: reduce) { .body-section *, .body-section *::before { animation: none !important; transition: none !important; } }

/* Keep mobile measurements in a readable grid below the illustration. */
@media (max-width: 805px) {
  .body-visual { min-height: 0; }
  .body-map { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: auto; margin-top: 32px; padding: 352px 20px 20px; }
  .body-person { width: 174px; height: 348px; left: calc(50% - 87px); top: 0; }
  .body-halo { width: 238px; height: 238px; left: calc(50% - 119px); top: 43px; }
  .body-platform { top: 326px; width: 140px; left: calc(50% - 70px); }
  .body-connectors { display: none; }
  .body-map .body-pin { position: relative; top: auto; left: auto; right: auto; width: 100%; min-height: 70px; padding: 12px 16px; transform: none; }
  .body-pin-dot { right: 10px; top: 12px; }
  .body-pin.waist .body-pin-dot { left: auto; right: 10px; }
  .body-map-caption { position: static; grid-column: 1 / -1; margin: 5px 0 0; font-size: var(--type-10, 10px); line-height: 1.7; }
}
.motion-enabled .body-measure-panel:not([hidden]), .motion-enabled .body-chart-panel:not([hidden]), .motion-enabled .body-photo-panel:not([hidden]) { animation: body-panel-in .45s var(--ease) both; }
@keyframes body-panel-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .body-section * { animation: none !important; transition: none !important; } }
/* A manually selected panel remains visible when the story was paused. */
.body-section.is-story-paused .body-photo, .body-section.is-story-paused .body-measure-panel, .body-section.is-story-paused .body-chart-panel, .body-section.is-story-paused .body-photo-panel { animation: none !important; }
/* Drag the graduated tape beneath a fixed centre marker. */
.body-ruler { height: 78px; margin: 17px 0 9px; background: var(--skin-soft, #f5f8ee); border: 1px solid var(--skin-line, #d2dec4); border-radius: var(--shape-8, 8px); mask-image: none; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.body-ruler[aria-disabled="true"] { cursor: default; }
.body-ruler.is-dragging { cursor: grabbing; }
.body-ruler:focus-visible { outline: 2px solid var(--skin-accent, #628547); outline-offset: 3px; }
.body-ruler-scale { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); pointer-events: none; }
.body-ruler-ticks { position: absolute; top: 9px; bottom: 25px; left: calc(50% - 720px); width: 1440px; background: repeating-linear-gradient(90deg, var(--skin-accent, #839d6c) 0 1px, transparent 1px 120px) 0 0 / 100% 43px no-repeat, repeating-linear-gradient(90deg, var(--skin-line, #c7d7b6) 0 1px, transparent 1px 60px) 0 0 / 100% 30px no-repeat, repeating-linear-gradient(90deg, var(--skin-line, #c7d7b6) 0 1px, transparent 1px 12px) 0 0 / 100% 18px no-repeat; translate: var(--ruler-offset, -60px) 0; }
.body-ruler-ticks::before, .body-ruler-ticks::after { display: none; }
.body-ruler-labels { position: absolute; inset: 0; }.body-ruler-labels > span { position: absolute; bottom: 7px; translate: -50% 0; font-size: var(--type-10, 10px); color: var(--skin-muted, #7b876f); }
.body-ruler i { top: 4px; bottom: 23px; pointer-events: none; }
.body-ruler-controls { align-items: center; gap: 8px; margin-bottom: 16px; }
.body-ruler-controls button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--skin-line, #d5dfca); border-radius: var(--shape-7, 7px); background: var(--skin-surface, #fff); font-size: var(--type-19, 19px); }
.body-ruler-controls button:hover:not(:disabled) { background: var(--skin-soft, #eaf2df); border-color: var(--skin-accent, #88a76a); }
.body-ruler-controls button:disabled { opacity: .4; }
.body-ruler-controls p { flex: 1; text-align: center; font-size: var(--type-9, 9px); line-height: 1.65; color: var(--skin-muted, #7b876f); margin: 0; }.body-ruler-controls small { display: block; font-size: inherit; }
.body-ruler-reset svg { width: 14px !important; height: 14px !important; }
@media (max-width: 460px) { .body-ruler-controls { gap: 5px; }.body-ruler-controls button { width: 30px; height: 34px; flex-basis: 30px; }.body-ruler-controls p { font-size: var(--type-8, 8px); } }

/* .body-person is an inline SVG with the same identity in every site style; body-figure.js warps its parts when a measurement changes. */
