/* Massimobility v1.32 | Institutional visual-system pass
   Presentation-only adjustments: learning content, questions, evidence, and mechanics unchanged.
   Consistent UI typography, spacing, surfaces, focus, motion, and fullscreen presentation.
*/
:root{
  --mm-ui:'DM Sans',Arial,sans-serif;
  --mm-heading:'Space Grotesk','DM Sans',Arial,sans-serif;
  --mm-ease:cubic-bezier(.22,.7,.18,1);
  --mm-timing-fast:180ms;
  --mm-timing-regular:300ms;
  --mm-radius-control:13px;
  --mm-radius-card:21px;
  --mm-radius-feature:27px;
  --mm-border:#dae6ed;
  --mm-shadow-small:0 4px 18px rgba(7,32,49,.055);
  --mm-shadow-card:0 16px 42px rgba(7,32,49,.075);
  --mm-focus:#36b8e8;
}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--mm-ui)!important;line-height:1.67;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
main{min-width:0}
:is(h1,h2,h3,h4,h5,h6),
:is(.region-expansion-hero h1,.region-expansion-block h2,.region-expansion-quiz h2,.region-evidence-expansion h2,.signature-path-heading h2,.signature-path h3,.about-copy h1,.about-copy h2,.pt-highlight strong,.source-card>b,.region-memory-cue strong,.life-row>strong,.life-row b){
  font-family:var(--mm-heading)!important;
  letter-spacing:-.032em;
  text-wrap:balance;
}
h1{line-height:1.06}h2{line-height:1.13}h3,h4{line-height:1.22}
:where(p,li,blockquote){overflow-wrap:break-word}
:where(p,li){line-height:1.72}
:where(.section,.anatomy-wrap,.movement-browser,.movement-context,.movement-evidence,.region-expansion-block){scroll-margin-top:95px}
:where(.section,.signature-pathways,.game-feature-section){max-width:1500px}
/* Preserve the actual Massimobility serif wordmark as the sole typographic exception. */
:where(.site-header .brand-name,.brand-name,.footer-brand .footer-wordmark,.mm-game-brand){font-family:var(--mm-display-font,Georgia,serif)!important}
.brand-name>span,.footer-brand .footer-wordmark>span{color:#42bdea}
/* Refined site header and predictable focus treatment. */
.site-header{border-bottom:1px solid rgba(173,221,239,.17);box-shadow:0 8px 30px rgba(0,14,26,.12)}
:where(.nav a,.nav-dropdown-toggle,.nav-home-expand,.nav-cta){font-family:var(--mm-ui)!important}
:where(button,input,select,textarea){font-family:var(--mm-ui)!important}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--mm-focus)!important;outline-offset:3px!important}
:where(a,button){-webkit-tap-highlight-color:transparent}
/* Readable learning surfaces: limit small type without ballooning dense data views. */
:where(.section-kicker,.eyebrow,.signature-overline,.atlas-overline,.region-expansion-eyebrow,.region-expansion-kicker){font-size:12px;line-height:1.55;letter-spacing:.115em}
:where(.section p,.section li,.region-expansion-block p,.region-expansion-block li,.anatomy-wrap p,.life-row p,.flashcard-question,.flashcard-answer){line-height:1.73}
:where(.pt-card p,.pt-early p,.pt-early li,.myth-grid p,.process-grid p,.condition-card p,.source-card span,.source-card small,.red-flags p,.red-flags a,.quiz-head p,.quiz-q>p,.quiz-q button,.quiz-feedback,.quiz-source-note,.quiz-question-source){font-size:max(13px, 0.875rem);line-height:1.62}
:where(.section-quiz .quiz-q>p,.section-quiz .quiz-q button){font-size:14px;line-height:1.58}
:where(.quiz-q button,.quiz-restart,.take-quiz,.quiz-next){min-height:44px}
:where(.quiz-q button):hover:not(:disabled){transform:none;box-shadow:inset 0 0 0 1px #78bacb}
:where(.quiz-q button:disabled){transform:none;animation:none;transition:none}
:where(.quiz-feedback,.quiz-result){line-height:1.55}
:where(.source-card small,.pt-source-line,.quiz-source-note,.quiz-question-source,.publisher-credit){font-size:12px}
/* Consistent panel system. Do not touch canvas, anatomy image, or 3D transforms. */
:where(.human-card,.instructions-card,.mm-3d-stage-card,.mm-3d-side-card,.anatomy-key,.section-quiz,.pt-card,.pt-early,.myth-grid article,.pt-process,.condition-card,.source-card,.movement-feature,.movement-context-grid>div,.movement-source-grid>a,.region-expansion-card,.region-expansion-block,.study-track-panel){
  border-radius:var(--mm-radius-card);
  box-shadow:var(--mm-shadow-small);
}
:where(.human-card,.instructions-card,.mm-3d-stage-card,.mm-3d-side-card,.section-quiz,.movement-feature){border-color:var(--mm-border)}
:where(.section-quiz,.movement-feature,.movement-context-grid>div,.movement-source-grid>a){background-color:#fff}
:where(.anatomy-wrap,.mm-3d-layout,.movement-feature-grid,.movement-context-grid,.signature-path-grid){min-width:0}
:where(.section-quiz,.movement-feature,.human-card,.instructions-card){padding:clamp(19px,2.5vw,30px)}
:where(.source-card,.pt-card,.condition-card,.mm-3d-side-card){padding:clamp(18px,2vw,26px)}
/* One control language: squared-round buttons, steady tab rows, consistent states. */
:where(.button,.nav-cta,.filter,.open-guide,.mm-view-switch-buttons button,.mm-3d-toolbar button,.atlas-zoom-controls button,.movement-mode-button,.movement-region-button,.quiz-q button,.take-quiz,.quiz-next,.quiz-restart,.region-expansion-quiz button,.mm-3d-orient button,.mm-3d-region-grid button,.mm-3d-structure-list button){
  border-radius:var(--mm-radius-control);
  font-family:var(--mm-ui)!important;
  letter-spacing:normal;
  transition:background-color var(--mm-timing-fast) ease,border-color var(--mm-timing-fast) ease,color var(--mm-timing-fast) ease,box-shadow var(--mm-timing-regular) var(--mm-ease),transform var(--mm-timing-regular) var(--mm-ease);
}
:where(.button,.nav-cta,.open-guide,.take-quiz,.quiz-next,.quiz-restart){min-height:44px;display:inline-flex;align-items:center;justify-content:center}
:where(.mm-view-switch-buttons,.mm-3d-orient,.movement-mode-switch){position:relative;gap:5px}
:where(.mm-view-switch-buttons button,.mm-3d-orient button,.movement-mode-button){min-height:44px}
:where(.mm-view-switch-buttons button,.mm-3d-orient button,.movement-mode-button):hover{transform:none}
:where(.mm-3d-orient button[aria-pressed=true],.mm-view-switch-buttons button[aria-pressed=true],.movement-mode-button[aria-pressed=true]){box-shadow:0 3px 13px rgba(4,37,56,.14)}
/* Restrained surfaces: layered color/depth, no noisy texture on reading panels. */
body[data-page="index.html"] .hero,body[data-page="movement.html"] .movement-hero,.anatomy-hero{
  background-image:radial-gradient(ellipse at 88% 14%,rgba(78,171,206,.16),transparent 48%),linear-gradient(120deg,#061b2a,#0c3047 74%,#123d53);
}
:where(.signature-pathways,.game-feature-section,.movement-browser,.movement-context,.movement-evidence){position:relative}
:where(.signature-path,.game-feature-panel,.hero-slideshow,.mm-3d-viewport,.atlas-viewport){isolation:isolate}
:where(.signature-path,.game-feature-panel){border-radius:var(--mm-radius-feature);overflow:hidden}
:where(.signature-path,.game-feature-panel)::before{pointer-events:none}
:where(.signature-path,.game-feature-panel,.source-card,.pt-card,.movement-source-grid>a){transition:box-shadow var(--mm-timing-regular) ease,border-color var(--mm-timing-regular) ease,transform var(--mm-timing-regular) var(--mm-ease)}
@media(hover:hover) and (pointer:fine){
  :where(.signature-path,.source-card,.pt-card,.movement-source-grid>a):hover{transform:translateY(-2px);box-shadow:var(--mm-shadow-card)}
}
/* Anatomy: consistent controls, legible instruction panel and disciplined panels. */
body[data-page="anatomical-mode.html"] .anatomy-wrap{max-width:1380px}
body[data-page="anatomical-mode.html"] :where(.mm-3d-chip,.mm-3d-top-overlay,.mm-3d-viewport-bottom,.mm-3d-facing-label){letter-spacing:.065em}
body[data-page="anatomical-mode.html"] :where(.mm-3d-region-grid button,.mm-3d-structure-list button){font-size:13px;line-height:1.48;min-height:43px}
body[data-page="anatomical-mode.html"] :where(.mm-3d-region-note,.mm-3d-hint,.mm-3d-learning-note,.atlas-hint){font-size:13px;line-height:1.65}
body[data-page="anatomical-mode.html"] :where(.mm-3d-viewport,.atlas-viewport){border-radius:17px}
body[data-page="anatomical-mode.html"] .mm-3d-region-grid{scrollbar-gutter:stable}
body[data-page="anatomical-mode.html"] .mm-3d-toolbar{gap:8px}
body[data-page="anatomical-mode.html"] .mm-3d-toolbar button{min-height:44px}
body[data-page="anatomical-mode.html"] .anatomy-dialog{width:min(1080px,100%);border-radius:23px;animation:mm-modal-enter .26s var(--mm-ease) both}
@keyframes mm-modal-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
body[data-page="anatomical-mode.html"] .zoom-visual :is(img,svg){object-fit:contain}
/* Fullscreen is a focused viewing surface; model remains visible without overlay clutter. */
:is(.atlas-viewport,.mm-3d-viewport):fullscreen{
  box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;
}
.atlas-viewport:fullscreen{background:radial-gradient(ellipse at center,#eef3f5,#cfdce1)!important}
.mm-3d-viewport:fullscreen{background:#071b2a!important;box-shadow:none!important}
.mm-3d-viewport:fullscreen :is(.mm-3d-aura,.mm-3d-top-overlay,.mm-3d-viewport-bottom,.mm-3d-facing-label,.mm-3d-crosshair,.mm-3d-direction-guide,.mm-3d-focus-banner,.mm-3d-focus-lens,.mm-3d-focus-veil,.mm-3d-visual-labels){display:none!important}
.mm-3d-viewport:fullscreen:before,.mm-3d-viewport:fullscreen:after{display:none!important}
.mm-3d-viewport:fullscreen :is(canvas,img,.cinematic-picture,.mm-3d-detail-frame){max-width:100%;max-height:100%;object-fit:contain}
.atlas-viewport:fullscreen :is(.atlas-pins,.atlas-zone,.atlas-corner-note){display:none!important}
/* Always-visible exit control is INSIDE the fullscreen element, not in the toolbar below it. */
.mm-fullscreen-exit{display:none!important;position:absolute;z-index:10000;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));
  align-items:center;justify-content:center;gap:7px;min-height:45px;min-width:124px;padding:10px 15px;
  border-radius:var(--mm-radius-control);border:1px solid rgba(159,212,229,.5);background:rgba(6,27,42,.93);color:#fff;
  font:700 14px/1.25 var(--mm-ui);box-shadow:0 5px 24px rgba(0,0,0,.25);cursor:pointer;
}
:is(.atlas-viewport,.mm-3d-viewport):fullscreen > .mm-fullscreen-exit{display:inline-flex!important}
.mm-fullscreen-exit:hover{background:#124b66}
/* Movement: stable tab row and an optional immersive reading view. */
body[data-page="movement.html"] .movement-mode-switch{align-items:stretch}
body[data-page="movement.html"] .movement-mode-button{min-height:48px;font-size:14px}
body[data-page="movement.html"] .movement-regions{gap:8px}
body[data-page="movement.html"] .movement-region-button{font-size:13px;line-height:1.4;min-height:43px}
body[data-page="movement.html"] .movement-feature h3{line-height:1.18}
body[data-page="movement.html"] .movement-feature :is(p,li){font-size:15px;line-height:1.7}
body[data-page="movement.html"] .movement-feature :is(.movement-claim-source,.movement-feature-footer span){font-size:12px;line-height:1.55}
body[data-page="movement.html"] .movement-feature-top{gap:16px}
.mm-movement-focus-enter,.mm-movement-focus-exit{border:1px solid #bed7e3;background:#fff;color:#125a78;min-height:43px;
  border-radius:var(--mm-radius-control);padding:10px 14px;font:700 13px/1.3 var(--mm-ui);cursor:pointer;flex:none}
.mm-movement-focus-enter{display:none}
#movement-feature.mm-focus-available .mm-movement-focus-enter{display:inline-flex}
.mm-movement-focus-enter:hover,.mm-movement-focus-exit:hover{background:#ecf6f9}
.mm-movement-focus-exit{display:none;background:#0c344a;border-color:#0c344a;color:#fff}
#movement-feature:fullscreen{box-sizing:border-box;display:block;overflow:auto;overscroll-behavior:contain;width:100%;height:100%;max-width:none;max-height:none;
  border:0;border-radius:0;padding:clamp(24px,5vw,76px);background:#f6fafc;color:#102b3c}
#movement-feature:fullscreen .movement-feature-grid{max-width:1400px;margin:24px auto 0;gap:clamp(16px,3vw,34px)}
#movement-feature:fullscreen .movement-feature-top,#movement-feature:fullscreen .movement-feature-footer{max-width:1400px;margin-left:auto;margin-right:auto}
#movement-feature:fullscreen .mm-movement-focus-enter{display:none}
#movement-feature:fullscreen .mm-movement-focus-exit{display:inline-flex;position:sticky;top:0;float:right;z-index:10;box-shadow:0 7px 24px rgba(8,35,53,.12)}
#movement-feature:fullscreen .movement-feature-grid section{padding:clamp(19px,3vw,38px)}
/* No ambient animations during learning, reading or playing the study games. */
body[data-page="flashcards.html"] :where(.quiz-q,.flashcard,.flashcard-option,.quiz-panel),
body[data-page="movement.html"] :where(.movement-feature,.movement-feature-grid,.movement-region-button),
body[data-page="anatomical-mode.html"] :where(.mm-3d-region-grid,.mm-3d-structure-list){animation-duration:0s}
/* Main typography system also extends to the standalone game route. */
body.mm-institutional-game :where(h1,h2,h3,h4,h5,h6){font-family:var(--mm-heading)!important;letter-spacing:-.027em}
body.mm-institutional-game :where(button,.topbar a,.site-shell p,.site-shell li){font-family:var(--mm-ui)!important}
body.mm-institutional-game :where(button){border-radius:var(--mm-radius-control)}
body.mm-institutional-game :where(.topbar,.game-panel,.game-card){box-shadow:var(--mm-shadow-small)}
@media(max-width:760px){
  :where(.section){padding-left:5vw;padding-right:5vw}
  :where(.section-quiz,.movement-feature,.human-card,.instructions-card){padding:19px}
  body[data-page="anatomical-mode.html"] .mm-3d-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-page="anatomical-mode.html"] .mm-3d-toolbar button{margin:0!important;width:100%}
  body[data-page="movement.html"] .movement-feature-top{flex-wrap:wrap}
  body[data-page="movement.html"] .movement-feature :is(p,li){font-size:14px}
  #movement-feature:fullscreen .movement-feature-grid{display:grid;grid-template-columns:1fr}
  .mm-fullscreen-exit{right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top))}
}
@media(max-width:420px){
  body[data-page="anatomical-mode.html"] .mm-3d-region-grid{grid-template-columns:1fr}
  body[data-page="movement.html"] .movement-mode-switch{width:100%}
  body[data-page="movement.html"] .movement-mode-button{font-size:13px}
  .mm-movement-focus-enter{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* v1.80: The new Anatomical Analogies top-level tab should not overflow the navigation. */
@media(min-width:1121px){.site-header .nav{gap:clamp(8px,1.1vw,17px)}.site-header .nav a,.site-header .nav-dropdown-toggle{font-size:clamp(10px,.8vw,12px)}}
@media(min-width:761px) and (max-width:1120px){.site-header{height:auto;min-height:76px;flex-wrap:wrap;gap:9px;padding:12px 4vw}.site-header .nav{order:3;width:100%;flex:0 0 100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px 17px;padding:3px 0 5px}.site-header .nav a,.site-header .nav-dropdown-toggle{font-size:11px}.site-header .nav-cta{margin-left:auto}}
