/* Trading Interview Practice: one motion style for the whole app (23 Nov 2026).
   Loaded last so it can retune earlier rules. Timings:
   --mo-fast  0.15s  hover, colour, press
   --mo-base  0.25s  movement: arrows, tab pill, accordions, page rise, theme fade
   --mo-in    0.2s   pop-ups opening;  --mo-out 0.15s pop-ups closing (motion.js)
   One easing curve, --mo-ease, everywhere. */
:root { --mo-fast: .15s; --mo-base: .25s; --mo-in: .2s; --mo-ease: cubic-bezier(.3,.7,.3,1); }

/* ---- retuned from earlier today ---- */
.tf-car, .trk-chev { transition: transform var(--mo-base) var(--mo-ease) !important; }
.tip-chev { transition: transform var(--mo-base) var(--mo-ease); }
.tabs.has-pill::before { transition: transform var(--mo-base) var(--mo-ease), width var(--mo-base) var(--mo-ease), height var(--mo-base) var(--mo-ease), opacity var(--mo-fast) !important; }
.tabs.has-pill .tab { transition: color var(--mo-fast) var(--mo-ease); }
.tabs.pill-still::before { transition: none !important; }
.theme-menu, .tf-pop { animation: tm-pop var(--mo-in) var(--mo-ease) both; }
.modal-in { animation-duration: var(--mo-in); animation-timing-function: var(--mo-ease); }
.toast { animation: mo-toast var(--mo-in) var(--mo-ease) both; }
@keyframes mo-toast { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--mo-base); animation-timing-function: var(--mo-ease); }
.pills button, :root[data-theme=dark] .pills button, .tip-seg button { transition: background-color var(--mo-fast) var(--mo-ease), border-color var(--mo-fast) var(--mo-ease), color var(--mo-fast) var(--mo-ease), transform var(--mo-fast) var(--mo-ease); }

/* ---- 2, 7: hover and press ---- */
.theme-btn, .ghost, .btn, .start, .link, .tip-key-i, .qrow, .trk-accb, .trk2-h, .trk-th2, .tip-sheet-h, .theme-opt, .tf-opt, .tf-btn, .rd-star, .rd-cstar, .tcard, .card.tip-act, .rd-card {
  transition: background-color var(--mo-fast) var(--mo-ease), border-color var(--mo-fast) var(--mo-ease), color var(--mo-fast) var(--mo-ease), box-shadow var(--mo-fast) var(--mo-ease), filter var(--mo-fast) var(--mo-ease), transform var(--mo-fast) var(--mo-ease), opacity var(--mo-fast) var(--mo-ease);
}
.theme-btn:active, .ghost:active:not(:disabled), .start:active:not(:disabled), .tip-key-i:active, .theme-opt:active, .tf-opt:active { transform: scale(.96); }

/* ---- 8: solved checkbox ---- */
.check { transition: background-color var(--mo-fast) var(--mo-ease), border-color var(--mo-fast) var(--mo-ease), transform var(--mo-fast) var(--mo-ease); }
.check.on { animation: mo-check var(--mo-base) var(--mo-ease); }
.check.on svg { animation: mo-tick var(--mo-base) var(--mo-ease) both; }
@keyframes mo-check { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes mo-tick { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ---- 12: skill-area and progress bars grow ---- */
.tip-wbar i, .rd-bar i, .tip-lh-bar i { transition: width .5s var(--mo-ease); }

/* ---- 15: tracker status picker and pill colours ---- */
.tip-sel, .rd-track, .trk-st, .trk-dot { transition: background-color var(--mo-fast) var(--mo-ease), border-color var(--mo-fast) var(--mo-ease), color var(--mo-fast) var(--mo-ease); }

/* ---- 16: glossary letter jump lands with a short highlight ---- */
.mo-land { animation: mo-land .9s var(--mo-ease); }
@keyframes mo-land { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* keep the page width steady when a short page has no scrollbar, so the header (and tab pill) never jumps */
html { scrollbar-gutter: stable; }

/* page entrance is one fade of the whole page (motion.js, 24 Nov): cards no longer rise in on their own */
.tcard, .grid4 > .card { animation: none !important; }

/* Glossary: same glyph, orientation, timing and easing as FilterBar. */
#root .app .tip-gloss-sec dt::after{
 content:"\25BE";display:inline-block;top:50%;color:var(--muted);
 font-size:167%;font-weight:400;line-height:1;transform-origin:50% 50%;
 transform:translateY(calc(-50% + 1px)) rotate(-90deg);
 transition:transform var(--mo-base) var(--mo-ease);pointer-events:none;
}
#root .app .tip-gloss-sec dt[aria-expanded=true]::after{
 content:"\25BE";transform:translateY(calc(-50% - 1px)) rotate(0deg);
}
@media(prefers-reduced-motion:reduce){#root .app .tip-gloss-sec dt::after{transition:none}}


/* Firms: reuse the Lessons category buttons, without a hub or orbit. */
#root .app>.view.orb-firms-home{
 display:flex!important;flex-direction:column;align-items:stretch;gap:clamp(12px,2dvh,24px)!important;overflow-y:auto!important;overflow-x:hidden!important;
}
#root .app>.view.orb-firms-home>.firm-home-head{
 display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex:none;
 padding:clamp(14px,2vw,26px);border-radius:20px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));
 background:radial-gradient(ellipse at 95% 130%,color-mix(in srgb,var(--accent) 12%,var(--surface)),transparent 58%),var(--surface);
}
#root .app .firm-home-head h2{margin:0;font-size:clamp(22px,2.45vw,34px);line-height:1.15;letter-spacing:-.035em}
#root .app .firm-home-head p{margin:6px 0 0;line-height:1.4;color:var(--text-2)}
#root .app .firm-home-head .ghost{border-radius:999px;flex:none}
#root .app>.view.orb-firms-home>.firm-home-topics{
 display:grid;grid-template-rows:none!important;grid-auto-rows:minmax(56px,auto);height:auto!important;max-height:none!important;flex:none;gap:clamp(10px,1.7dvh,18px)!important;width:100%;max-width:850px;align-self:center;
}
#root .app .firm-home-topics>.orb-lesson-topic{min-height:64px;padding-block:14px}
#root .app>.view.rd-view>.orb-lesson-breadcrumb{position:relative;flex:none;min-height:38px}
#root .app>.view.rd-view>.orb-lesson-breadcrumb>.small{color:var(--accent);font-weight:600}
#root .app>.view.rd-view.firm-category-library>.fbar:has(>.tf-row:nth-of-type(2)):not(:has(>.tf-row:nth-of-type(3))){grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.45fr)}
#root .app>.view.rd-view.firm-category-library>.fbar:has(>.tf-row:nth-of-type(2)):not(:has(>.tf-row:nth-of-type(3)))>.search{grid-column:3;grid-row:1}
@media(max-width:999px){
 #root .app>.view.rd-view.firm-category-library>.fbar:has(>.tf-row:nth-of-type(2)):not(:has(>.tf-row:nth-of-type(3))){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #root .app>.view.rd-view.firm-category-library>.fbar:has(>.tf-row:nth-of-type(2)):not(:has(>.tf-row:nth-of-type(3)))>.search{grid-column:1/-1!important;grid-row:auto!important}
}
#root .app .grid4[data-orbit-offscreen] *,#root .app .grid4[data-orbit-offscreen] *::before,#root .app .grid4[data-orbit-offscreen] *::after{animation-play-state:paused!important}
