:root{color-scheme:light;font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;font-size:18px;line-height:1.6}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1060px;margin:auto;padding:24px}header{border-bottom:3px solid #b00020}header>a:first-child{font-size:1.1rem;font-weight:800;color:#a0001c}header p{font-size:.8rem;margin:0 0 12px}main{padding-block:30px}h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2}h2{font-size:1.4rem}a{color:#8b0018;text-underline-offset:3px}.note{border-left:4px solid #b00020;padding:12px 18px;background:#fafafa}.viewer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;margin:32px 0;padding:24px;border:1px solid #bbb;border-radius:14px;align-items:start}#diagram-card{aspect-ratio:1;background:#fff;transform:none}svg{display:block;width:100%;height:auto;aspect-ratio:1;touch-action:auto}.controls{min-width:0}[role=group]{display:flex;flex-wrap:wrap;gap:10px}button{font:inherit;font-weight:bold;background:#fff;color:#111;border:2px solid #111;border-radius:8px;min-height:48px;padding:10px 15px;cursor:pointer}button[aria-pressed=true]{background:#111;color:#fff}:focus-visible{outline:4px solid #005fcc;outline-offset:4px}#selected-part{min-height:160px}label{display:flex;align-items:center;gap:12px;min-height:48px}input{width:22px;height:22px;flex-shrink:0}.small{font-size:.85rem}dl>div{margin:18px 0}dt{font-weight:bold}dd{margin:0}footer{border-top:1px solid #aaa;font-size:.85rem}#knee-map[data-selected="1"] .cartilage{stroke:#b00020;stroke-width:9}#knee-map:not([data-selected="0"]) .bones{fill:#f4f4f4}#knee-map[data-selected="2"] .tissue{stroke:#b00020;stroke-width:6}@media(max-width:700px){header,main,footer{padding:20px}.viewer{grid-template-columns:1fr;padding:18px;gap:22px}#diagram-card{max-width:360px;width:100%;margin:auto}#selected-part{min-height:180px}}@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){#diagram-card{transform:perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform 160ms ease-out}}@media(prefers-reduced-motion:reduce){#diagram-card{transform:none!important;transition:none!important}}
