/* Embedded only: the main site owns branding and primary navigation. */
html[data-academy-embedded]{overscroll-behavior-y:contain;scroll-padding-top:20px;--mobile-nav-space:0px}
html[data-academy-embedded] body{padding-bottom:0}
html[data-academy-embedded] .site-header{visibility:hidden}
/* Match the ivory / warm gold palette of the shared Spinrank V2 site. */
html[data-academy-embedded]{--paper:#fcfaf5;--ink:#25231e;--muted:#777165;--line:#e9e2d5;--yellow:#efc64c;--yellow-light:#fff5d6}
html[data-academy-embedded] .lesson-stage{color:var(--ink);background:radial-gradient(ellipse at 85% 0,#f6e9c844,transparent 60%),var(--paper)}
html[data-academy-embedded] .breadcrumbs{color:#827867}
html[data-academy-embedded] .breadcrumbs a:hover{color:#8a641c}
html[data-academy-embedded] .share-button{color:#786744;border-color:#e1d6be;background:#fffdf7}
html[data-academy-embedded] .share-button:hover{background:#fff4d5;border-color:#c6a45a}
html[data-academy-embedded] .player{border-color:#e2d6be;background:#fff;box-shadow:0 7px 26px #9b7f3620}
html[data-academy-embedded] .video-stage{background:#f5f1e8}
html[data-academy-embedded] .controls{color:#493f2e;background:linear-gradient(#fffefb,#f5f0e4);border-top:1px solid #e8dfcd}
html[data-academy-embedded] .controls button:hover{color:#a07624;background:#edddb555}
html[data-academy-embedded] .controls input[type=range]{accent-color:#b38a35}
html[data-academy-embedded] .controls .speed{background:#fffdf7;border-color:#ded2ba;color:#5e5138}
html[data-academy-embedded] .video-play-overlay{background:#fffdf4ed;color:#a67b24;border-color:#d9bb73;box-shadow:0 5px 22px #72532126}
html[data-academy-embedded] .video-play-overlay:hover{background:#fff0c7}
html[data-academy-embedded] .video-error{background:#fffaf0f2;color:var(--ink)}
html[data-academy-embedded] .video-error p{color:#786f61}
html[data-academy-embedded] .chapters-panel{border-color:#e5dbc8;background:#fffefb;box-shadow:0 5px 20px #91723908}
html[data-academy-embedded] .chapter-meta{color:#8a806e}
html[data-academy-embedded] .chapter-list{scrollbar-color:#d5c39b transparent}
html[data-academy-embedded] .chapter-button{color:#696255}
html[data-academy-embedded] .chapter-button:hover{background:#f7f1e5;color:#332b20}
html[data-academy-embedded] .chapter-number{border-color:#e1d8c6;background:#f8f4eb;color:#9a8456}
html[data-academy-embedded] .chapter-copy small{color:#9a8d74}
html[data-academy-embedded] .chapter-button.active{background:linear-gradient(110deg,#fff0b8,#f2d477);color:#33270f;box-shadow:inset 0 0 0 1px #d5b15966}
html[data-academy-embedded] .chapter-button.active .chapter-number{background:linear-gradient(130deg,#d8b55f,#a67b2b);border-color:#bd963f;color:#fff}
html[data-academy-embedded] .chapter-button.active .chapter-copy small{color:#806322}
html[data-academy-embedded] .chapters-back{color:#8c7544;border-color:#e9e0cf}
html[data-academy-embedded] .chapters-back:hover{color:#5f4518}
html[data-academy-embedded] .mobile-chapters-toggle{background:#f8f1e3;color:#8b7140;border-color:#e7d7b5}
html[data-academy-embedded] .controls .play-toggle{background:linear-gradient(130deg,#f2d77e,#d4aa4d);color:#352b17}
html[data-academy-embedded] .controls .play-toggle svg{fill:currentColor}
html[data-academy-embedded] .lesson-reading{border-top:1px solid #e9e1d1}
html[data-academy-embedded] .tab{color:#8c8272}
html[data-academy-embedded] .tab[aria-selected=true]{color:#6a4e1d;border-bottom-color:#c49b42}
html[data-academy-embedded] .button.yellow,html[data-academy-embedded] .filter.active{background:linear-gradient(115deg,#f9df87,#efc849);border-color:#dfb64b;color:#34290f}
html[data-academy-embedded] dialog{color:var(--ink);background:#fffdf8;border-color:#e5d6b9}
.academy-tools{max-width:1450px;margin:0 auto;padding:22px 32px 0;color:#252622}
.academy-tools .header-inner{max-width:none;min-height:0;padding:0;display:flex;align-items:center;flex-wrap:nowrap;gap:24px}
.academy-tools .top-nav{position:static;inset:auto;z-index:auto;order:0;display:flex;flex:0 1 auto;flex-basis:auto;align-self:center;align-items:center;justify-content:flex-start;width:auto;max-width:none;min-height:0;height:auto;margin:0;padding:4px;gap:4px;border:1px solid #e9e5db;border-radius:12px;background:#eeece5;box-shadow:none;overflow:visible}
.academy-tools .top-nav a,.academy-tools .top-nav .nav-help{position:relative;display:flex;align-items:center;justify-content:center;flex:0 1 auto;flex-direction:row;gap:7px;min-width:0;min-height:36px;margin:0;padding:7px 14px;border:0;border-radius:8px;background:transparent;color:#777a7b;font-family:inherit;font-weight:600;font-size:13px;line-height:1.5;letter-spacing:0;white-space:nowrap;transition:background .16s,color .16s,box-shadow .16s}
.academy-tools .top-nav a.active{color:#252622;background:#fff;box-shadow:0 1px 4px #29271912}
.academy-tools .top-nav a.active:after{display:none}
.academy-tools .top-nav a:hover,.academy-tools .top-nav .nav-help:hover{color:#252622;background:#ffffffa8}
.academy-tools .top-nav .nav-icon{display:none}
.academy-tools .header-form{order:0;flex:0 1 330px;min-width:200px;width:330px;height:44px;margin:0 0 0 auto;gap:3px;border:1px solid #e5e2d9;border-radius:12px;box-shadow:none;background:#fff}
.academy-tools .header-form .header-search{min-height:40px;min-width:40px;padding:9px 5px 9px 12px}
.academy-tools .header-form svg{width:20px;height:20px}
.academy-tools .header-form input{padding:9px 12px 9px 3px;font-size:14px}
.academy-tools .top-nav :focus-visible{outline:2px solid #c99c1b;outline-offset:2px}
@media(max-width:780px){
 .academy-tools{padding:16px 20px 0}
 .academy-tools .header-inner{gap:12px;flex-wrap:wrap}
 .academy-tools .top-nav{flex:0 1 auto}
 .academy-tools .header-form{flex:1 1 210px;min-width:170px}
}
@media(max-width:600px){
 .academy-tools{padding:14px 16px 0}
 .academy-tools .header-inner{gap:10px}
 .academy-tools .top-nav{flex:1 0 100%;justify-content:space-between}
 .academy-tools .top-nav a,.academy-tools .top-nav .nav-help{flex:1;min-height:36px;padding:7px 8px;font-size:12px;line-height:1.5}
 .academy-tools .header-form{flex:1 0 100%;width:100%;height:44px;min-width:0}
 .academy-tools .header-form input{font-size:16px}
}
