/* Moffice motion polish v1 (owner 2026-12-05, from "6 premium motion details" reel):
   Success Tick (circle draws, then the tick, ~.47s) · Rolling Number (digits roll in, .1s apart) · Card Expand (ease-out .35s).
   Button Press spring lives in moffice-buttons-v1.css. */

/* 1. Success Tick */
.mf-tick{--mf-tc:#20a66f;--mf-tt:#178744;--mf-tf:rgba(32,166,111,.12);--mf-d:0s;display:inline-block;width:var(--mf-s,34px);height:var(--mf-s,34px);
 vertical-align:middle;flex:none;line-height:0}
.mf-tick svg{width:100%;height:100%;overflow:visible}
.mf-tick:not(.mf-go) svg,.mf-tick:not(.mf-go) .mf-tick-c,.mf-tick:not(.mf-go) .mf-tick-t{animation-play-state:paused}
.mf-tick-c{fill:var(--mf-tf);fill-opacity:0;stroke:var(--mf-tc);stroke-width:3.4;stroke-dasharray:145;stroke-dashoffset:145;
 transform:rotate(-90deg);transform-origin:26px 26px;animation:mf-tick-c .3s cubic-bezier(.65,0,.35,1) var(--mf-d) forwards}
.mf-tick-t{fill:none;stroke:var(--mf-tt);stroke-width:4.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:34;stroke-dashoffset:34;
 animation:mf-tick-t .22s cubic-bezier(.65,0,.35,1) calc(var(--mf-d) + .25s) forwards}
.mf-tick svg{animation:mf-tick-glow .6s ease-out calc(var(--mf-d) + .4s)}
@keyframes mf-tick-c{to{stroke-dashoffset:0;fill-opacity:1}}
@keyframes mf-tick-t{to{stroke-dashoffset:0}}
@keyframes mf-tick-glow{0%{filter:drop-shadow(0 0 0 rgba(32,166,111,0))}40%{filter:drop-shadow(0 0 8px rgba(32,166,111,.55))}100%{filter:drop-shadow(0 0 0 rgba(32,166,111,0))}}
.mf-tick--xs{--mf-s:20px;margin-right:6px}
.mf-tick--sm{--mf-s:34px}
.mf-tick--fill{--mf-s:100%}
/* hosts that used to draw their own round ✓: the tick now is the circle */
.mf-tick-host{background:none!important;box-shadow:none!important;font-size:0!important;animation:none!important}
.thank-you-card>.mf-tick-host{width:88px;height:88px;margin:0 auto 10px}
.certificate-seal.mf-tick-gold{font-size:0}
.mf-tick-gold .mf-tick{--mf-tc:#0b2344;--mf-tt:#0b2344;--mf-tf:transparent;width:70%;height:70%}
.checkpoint-answer.correct>.mf-tick{position:absolute;top:14px;right:14px}

/* 2. Rolling Number: each digit column rolls up into place (custom tags so page styles for span/i/b can't reach them) */
mf-num{display:inline;white-space:nowrap}
mf-rd{position:relative;display:inline-block}
mf-rg{color:transparent}
mf-rw{position:absolute;inset:0;overflow:hidden;display:block}
mf-rs{display:flex;flex-direction:column;height:100%;transform:translateY(0);
 transition:transform .75s cubic-bezier(.3,1.25,.5,1) var(--mf-d,0s)}
mf-ri{display:block;flex:0 0 100%;text-align:center}

/* 3. Card Expand: details panels open fast, then slow (browsers without support just open instantly) */
@supports (interpolate-size:allow-keywords){
 :root{interpolate-size:allow-keywords}
 details:not(.course-menu):not(.nav-user-menu)::details-content{block-size:0;overflow:hidden;opacity:0;
  transition:block-size .35s cubic-bezier(.22,1,.36,1),opacity .25s ease,content-visibility .35s allow-discrete}
 details:not(.course-menu):not(.nav-user-menu)[open]::details-content{block-size:auto;opacity:1}
}

@media(prefers-reduced-motion:reduce){
 .mf-tick-c,.mf-tick-t{animation:none;stroke-dashoffset:0}.mf-tick-c{fill-opacity:1}.mf-tick svg{animation:none}
 mf-rs{transition:none}
 details::details-content{transition:none!important}
}
