/* YSM motion v2: presentation only; no layout sizing or clinical data changes. */
:root{--ysm-motion-ease:cubic-bezier(.2,.75,.25,1)}
.ysm-motion-enabled :where(a.btn,a.plain,a.back,a.readlink,a.card,button,summary){transition:transform .2s var(--ysm-motion-ease),box-shadow .2s ease,background-color .2s ease,color .2s ease;touch-action:manipulation;-webkit-tap-highlight-color:rgba(151,54,77,.16)}
.ysm-motion-enabled :where(a,button,summary):focus-visible{outline:3px solid #b26679;outline-offset:4px}
@media(hover:hover) and (pointer:fine){
.ysm-motion-enabled :where(a.btn,button:not(:disabled)):not([aria-disabled=true]):hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(111,44,61,.18)}
.ysm-motion-enabled :where(a.back,a.plain,a.readlink,summary):hover{transform:translateX(3px);color:#97364d}
.ysm-motion-enabled :where(a.card):hover{transform:translateY(-5px);box-shadow:0 14px 32px rgba(104,68,51,.12)}
.ysm-motion-enabled :where(a,button):hover>.ysm-arrow-icon,.ysm-motion-enabled :where(a,button):hover>span>.ysm-arrow-icon{transform:translate(2px,-2px)}
.ysm-motion-enabled header nav a{position:relative;transition:color .2s ease}
.ysm-motion-enabled header nav a:hover{color:#97364d;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}
}
.ysm-motion-enabled :where(a.btn,a.card){transition:transform .25s var(--ysm-motion-ease),box-shadow .25s ease}
.ysm-motion-enabled .ysm-arrow-icon{transition:transform .2s ease}
.ysm-motion-enabled :where(a.btn,a.back,button:not(:disabled)):not([aria-disabled=true]):active{transform:scale(.97);box-shadow:0 2px 7px rgba(111,44,61,.12)}
.ysm-motion-enabled .hero-b .art-b>svg{animation:ysm-float 7s ease-in-out infinite;transform-origin:50% 50%}

.ysm-motion-enabled .organic-grid>a:nth-child(2) .shape{animation-delay:-2s}
.ysm-motion-enabled .organic-grid>a:nth-child(3) .shape{animation-delay:-4s}
.ysm-motion-enabled .ysm-entered{animation:ysm-enter .6s var(--ysm-motion-ease) both}
.ysm-motion-paused .hero-b .art-b>svg,.ysm-motion-paused .organic-grid .shape{animation-play-state:paused}
.ysm-motion-toggle{font:inherit!important;font-size:12px!important;line-height:1.5!important;padding:7px 13px!important;border:1px solid #d9c7bc!important;border-radius:22px!important;color:#765f54!important;background:#f4ece3!important;cursor:pointer;margin:10px!important;white-space:nowrap}
@keyframes ysm-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-9px) rotate(1deg)}}
@keyframes ysm-small-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes ysm-enter{from{opacity:.65;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.ysm-motion-enabled .hero-b .art-b>svg,.ysm-motion-enabled .organic-grid .shape{animation:none}.ysm-motion-enabled .ysm-entered{animation-duration:.35s}}
@media(prefers-reduced-motion:reduce){.ysm-motion-enabled .hero-b .art-b>svg,.ysm-motion-enabled .organic-grid .shape,.ysm-motion-enabled .ysm-entered{animation:none!important}.ysm-motion-enabled :where(a,button,summary,.ysm-arrow-icon){transition:none!important;transform:none!important}}

/* Three editorial illustrations: fixed composition, internal semantic motion. */
.organic-grid .shape{animation:none!important;transform:none!important;position:relative;height:164px!important;overflow:visible}
.organic-grid>a,.ysm-motion-enabled .organic-grid>a:hover{transform:none!important}
.organic-grid .shape svg.ysm-art{display:block;width:100%;max-width:290px;height:164px;overflow:visible}
.organic-grid>a{transition:background-color .25s,box-shadow .25s!important}
.ysm-art .book-left{transform-origin:145px 115px}.ysm-art .book-right{transform-origin:145px 115px}
.ysm-art .book-left,.ysm-art .book-right,.ysm-art .play-disc,.ysm-art .bubble-front{transition:transform .65s cubic-bezier(.2,.8,.3,1)}
.ysm-art .read-line{stroke-dasharray:75;stroke-dashoffset:0}
.ysm-art .reply-dot{opacity:.4}
.ysm-art .orbit{transform-origin:145px 80px;stroke-dasharray:68 260;opacity:.75}
.ysm-motion-enabled .ysm-art-live .read-line{animation:ysm-read 5s ease-in-out infinite}
.ysm-motion-enabled .ysm-art-live .read-line:nth-child(2){animation-delay:.35s}
.ysm-motion-enabled .ysm-art-live .read-line:nth-child(3){animation-delay:.7s}
.ysm-motion-enabled .ysm-art-live .orbit{animation:ysm-orbit 14s linear infinite}
.ysm-motion-enabled .ysm-art-live .reply-dot{animation:ysm-reply 3s ease-in-out infinite}
.ysm-motion-enabled .ysm-art-live .reply-dot:nth-child(2){animation-delay:.35s}
.ysm-motion-enabled .ysm-art-live .reply-dot:nth-child(3){animation-delay:.7s}
@media(hover:hover) and (pointer:fine){
.ysm-motion-enabled .organic-grid>a:hover{box-shadow:0 10px 28px #70493410!important}
.ysm-motion-enabled .organic-grid>a:hover .book-left{transform:rotate(-5deg)}
.ysm-motion-enabled .organic-grid>a:hover .book-right{transform:rotate(5deg)}
.ysm-motion-enabled .organic-grid>a:hover .play-disc{transform:scale(1.06);transform-origin:145px 80px}
.ysm-motion-enabled .organic-grid>a:hover .bubble-front{transform:translateX(5px)}
}
.ysm-motion-paused .ysm-art *{animation-play-state:paused!important}
@keyframes ysm-read{0%,15%,100%{stroke-dashoffset:0;opacity:.8}45%{stroke-dashoffset:75;opacity:.15}65%,85%{stroke-dashoffset:0;opacity:1}}
@keyframes ysm-orbit{to{transform:rotate(360deg)}}
@keyframes ysm-reply{0%,65%,100%{opacity:.3}25%,40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.ysm-art *{animation:none!important;transition:none!important;transform:none!important}}

@media(max-width:760px){.ysm-art *{animation:none!important}}
