/* Micro-interactions everywhere except the practice-test screen (body[data-screen=exam]): the same feel as the
   segmented progress bars. Transform/opacity only, so nothing reflows; all of it is skipped under reduced motion. */
body:not([data-screen=exam]){--mi-ease:cubic-bezier(.2,.8,.2,1)}

/* Bars and meters swell when pointed at, or when their card is. */
body:not([data-screen=exam]) :is(.learn-chapter-meter,.correctness-split,.exam-group-progress,.lb-bar,.lb-level-track,.home-resume-track,.game-choice-bar,.learn-progress-segments,.next-progress,progress){transition:transform .28s var(--mi-ease),filter .28s;transform-origin:center}
body:not([data-screen=exam]) :is(.learn-chapter-meter,.correctness-split,.exam-group-progress,.lb-bar,.lb-level-track,.home-resume-track,.game-choice-bar,progress):hover,
body:not([data-screen=exam]) :is(.sc-card,.learn-chapter-card,.chapter-score-row,.exam-topic-row,.lb-row,.home-resume,.game-choice-chart li):hover :is(.learn-chapter-meter,.correctness-split,.exam-group-progress,.lb-bar,.home-resume-track,.game-choice-bar){transform:scaleY(1.6);filter:brightness(1.15)}

/* Buttons: a soft press, and a little lift for the main actions. */
body:not([data-screen=exam]) button:not(:disabled),body:not([data-screen=exam]) .sc-chip{transition:transform .16s var(--mi-ease),background-color .2s,border-color .2s,color .2s,box-shadow .2s}
body:not([data-screen=exam]) button:not(:disabled):active{transform:scale(.97)}
body:not([data-screen=exam]) :is(.native-primary,.primary):not(:disabled):hover{transform:translateY(-1px);box-shadow:0 10px 24px -14px color-mix(in srgb,var(--cyan) 75%,transparent)}
body:not([data-screen=exam]) :is(.native-primary,.primary):not(:disabled):active{transform:translateY(0) scale(.97)}

/* Learn map: lesson nodes rise and their status dot pulses gently. */
body:not([data-screen=exam]) .learn-path-node{transition:transform .25s var(--mi-ease),border-color .25s,box-shadow .25s}
body:not([data-screen=exam]) .learn-path-node:hover{transform:translateX(4px);box-shadow:0 14px 30px -24px color-mix(in srgb,var(--cyan) 70%,transparent)}
body:not([data-screen=exam]) .learn-path-node:hover .learn-node-dot{transform:scale(1.25)}
body:not([data-screen=exam]) .learn-node-dot{transition:transform .25s var(--mi-ease)}

/* Rows and list items slide; disclosure rows highlight. */
body:not([data-screen=exam]) :is(.home-result,.home-focus-row,.export-saved-row,.issue-report-card,.shared-score,.next-outcome>summary,.notes-chapter-branch>summary,.exam-group-toggle){transition:transform .22s var(--mi-ease),background-color .22s}
body:not([data-screen=exam]) :is(.home-result,.home-focus-row,.export-saved-row,.shared-score):hover{transform:translateX(3px)}
body:not([data-screen=exam]) :is(details>summary){transition:background-color .2s,color .2s}

/* Segmented controls and tabs glide between states. */
body:not([data-screen=exam]) :is([aria-pressed],[role=tab],.learn-work-tabs button){transition:background-color .25s var(--mi-ease),color .25s,box-shadow .25s,transform .16s var(--mi-ease)}

/* Numbers in stat tiles tick upward slightly on hover, like the bars. */
body:not([data-screen=exam]) :is(.screen-stats>div,.home-stat){transition:transform .25s var(--mi-ease),border-color .25s,background-color .25s}
body:not([data-screen=exam]) .screen-stats>div:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--cyan) 40%,var(--hairline))}
body:not([data-screen=exam]) .screen-stats>div dd{transition:color .25s}
body:not([data-screen=exam]) .screen-stats>div:hover dd{color:var(--cyan)}

/* Keyboard focus is always visible and consistent. */
body:not([data-screen=exam]) :is(button,a,summary,[tabindex]):focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

@media (prefers-reduced-motion:reduce){body *{transition-duration:.01ms!important}}
html[data-motion=reduced] body:not([data-screen=exam]) *{transition-duration:.01ms!important}
