/* AMAADOR Academy header-unify r3c: academy shared header/footer re-cut with the HOME tokens (white/lavender, navy ink #071335, violet #6637f4/#844dff, Poppins, floating pill header). Scoped under .uh-chrome.*/
.uh-chrome{--bg:#f8faff;--surface:#fff;--ink:#071335;--muted:#596784;--line:#dce4f2;--violet:#6637f4;--violet2:#844dff;--cta2:#844dff;--cyan:#16a9eb;--green:#00a978;--on-violet:#fff;--mark:#0b1532;--shadow:0 22px 60px rgba(51,76,124,.14);--pill-shadow:0 10px 30px rgba(51,76,124,.12);--foot-bg:#071335;--foot-ink:#f8faff;--foot-mute:#c3cde4;--foot-hover:#b9a2ff;--foot-line:#071335;--font:Poppins,system-ui,sans-serif;color-scheme:light}
html[data-theme="dark"] .uh-chrome,html[data-theme="pitch"] .uh-chrome{--bg:#071021;--surface:#101b31;--ink:#f5f7ff;--muted:#aab5cc;--line:#253654;--violet:#9c7bff;--violet2:#6f50ff;--cta2:#8e6bff;--cyan:#45c8ff;--green:#37dca4;--on-violet:#071021;--mark:#0b1532;--shadow:0 28px 70px rgba(0,0,0,.35);--pill-shadow:0 12px 34px rgba(0,0,0,.4);--foot-bg:#071021;--foot-ink:#f5f7ff;--foot-mute:#aab5cc;--foot-hover:#9c7bff;--foot-line:#253654;color-scheme:dark}
.uh-chrome[dir="rtl"],.uh-chrome[lang="ar"]{--font:Tajawal,Poppins,system-ui,sans-serif}
.uh-chrome *,.uh-chrome ::before,.uh-chrome ::after{box-sizing:border-box}
.uh-chrome a,.uh-chrome button{font-family:inherit;cursor:pointer}
.uh-chrome a{color:inherit;text-decoration:none}
.uh-chrome :focus-visible{outline:3px solid color-mix(in srgb,var(--violet) 55%,transparent);outline-offset:2px}
.uh-chrome ::selection{background:var(--violet);color:var(--on-violet)}
.uh-chrome .site-head{position:sticky;top:0;z-index:1200;margin:0;padding:0 clamp(16px,4vw,72px);background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);box-shadow:none;font:400 15px/1.4 var(--font);letter-spacing:normal;text-transform:none;color:var(--ink)}
html[data-theme="dark"] .uh-chrome .site-head,html[data-theme="pitch"] .uh-chrome .site-head{background:var(--bg)}
.uh-chrome .nav-wrap{position:relative;display:flex;align-items:center;gap:clamp(16px,2.4vw,38px);width:100%;max-width:1440px;min-height:88px;margin:0 auto;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.uh-chrome .brand{display:flex;align-items:center;flex:0 0 auto;padding:0;background:none;border:0;box-shadow:none;color:var(--ink)}
.uh-chrome .brand-lockup{display:inline-flex;align-items:center;gap:12px}
.uh-chrome .brand-cap{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:46px;height:46px;padding:8px;border-radius:13px;background:var(--mark);color:#fff}
.uh-chrome .brand-cap svg{display:block;width:100%;height:100%}
.uh-chrome .brand-words{display:flex;flex-direction:column;line-height:1}
.uh-chrome .brand-main{font:700 1.35rem/1 var(--font);letter-spacing:.02em;color:var(--ink)}
.uh-chrome .brand-sub{margin-top:7px;font:800 .63rem/1 var(--font);letter-spacing:.42em;color:var(--violet)}
.uh-chrome .nav-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;margin-inline-start:auto;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:999px}
.uh-chrome .nav-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.uh-chrome .nav-toggle.on span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.uh-chrome .nav-toggle.on span:nth-child(2){opacity:0}
.uh-chrome .nav-toggle.on span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.uh-chrome .nav-links{display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:clamp(2px,.6vw,10px);min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
.uh-chrome .nav-links>a{display:inline-flex;align-items:center;min-height:42px;padding:0 clamp(8px,1vw,14px);border-radius:999px;font:600 .94rem/1 var(--font);color:var(--ink);white-space:nowrap;background:transparent;border:0;transition:color .2s,background .2s}

.uh-chrome .nav-links>a:hover,.uh-chrome .nav-links>a:focus-visible{color:var(--violet);background:transparent}
.uh-chrome .nav-links>a[aria-current="page"]{color:var(--violet);background:transparent;box-shadow:inset 0 -2px 0 var(--violet);border-radius:0}
.uh-chrome .nav-links>a.atlas-team-link{margin-inline-start:6px;padding:0 20px;background:linear-gradient(135deg,var(--violet),var(--cta2));color:var(--on-violet);box-shadow:0 8px 20px color-mix(in srgb,var(--violet) 26%,transparent)}
.uh-chrome .nav-links>a.atlas-team-link:hover,.uh-chrome .nav-links>a.atlas-team-link:focus-visible{color:var(--on-violet);background:linear-gradient(135deg,var(--violet),var(--cta2));filter:brightness(1.06)}
.uh-chrome .nav-actions{display:flex;align-items:center;gap:18px;margin-inline-start:auto;flex:0 0 auto}
.uh-chrome .theme-toggle{display:inline-grid;place-items:center;flex:0 0 auto;min-width:76px;height:42px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);transition:color .2s,border-color .2s}
.uh-chrome .theme-toggle:hover{color:var(--violet);border-color:var(--violet)}
.uh-chrome .theme-toggle .th-ic{display:none;line-height:0}
.uh-chrome .theme-toggle .th-moon{display:inline-flex}
html[data-theme="dark"] .uh-chrome .theme-toggle .th-moon,html[data-theme="pitch"] .uh-chrome .theme-toggle .th-moon{display:none}
html[data-theme="dark"] .uh-chrome .theme-toggle .th-sun,html[data-theme="pitch"] .uh-chrome .theme-toggle .th-sun{display:inline-flex}
.uh-chrome .lang-switch{display:inline-flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.uh-chrome .lang-switch a.lang-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 9px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:700 .74rem/1 var(--font);letter-spacing:normal}
.uh-chrome .lang-switch a.lang-btn:hover{color:var(--violet)}
.uh-chrome .lang-switch a.lang-btn.on{background:var(--violet);color:var(--on-violet)}
.uh-chrome .site-foot{margin:clamp(40px,6vw,80px) 0 0;padding:0;background:var(--foot-bg);color:var(--foot-ink);border:0;border-top:1px solid var(--foot-line);font:400 13px/1.6 var(--font);letter-spacing:normal;text-transform:none}
.uh-chrome .atlas-shared-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;width:min(100% - 48px,1240px);margin:0 auto;padding:26px 0;font-size:.78rem}
.uh-chrome .atlas-shared-footer p{margin:0;color:var(--foot-mute)}
.uh-chrome .atlas-shared-copy{color:var(--foot-ink)!important;font-weight:600}
.uh-chrome .atlas-shared-disc{text-align:center}
.uh-chrome .atlas-shared-footer nav{display:flex;gap:18px}
.uh-chrome .atlas-shared-footer a{color:var(--foot-ink);transition:color .2s}
.uh-chrome .atlas-shared-footer a:hover,.uh-chrome .atlas-shared-footer a:focus-visible{color:var(--foot-hover)}
@media (max-width:1120px){
.uh-chrome .nav-toggle{display:flex}
.uh-chrome .nav-links{position:absolute;z-index:1300;inset:calc(100% - 8px) 0 auto;display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;max-height:calc(100dvh - 110px);overflow:auto;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.uh-chrome .nav-links.open{display:flex}
.uh-chrome .nav-links>a{width:100%;min-height:46px;padding:0 14px;border-radius:14px}
.uh-chrome .nav-links>a[aria-current="page"]{border-radius:14px;box-shadow:none;background:color-mix(in srgb,var(--violet) 10%,var(--surface))}
.uh-chrome .nav-links>a.atlas-team-link{margin:6px 0 0;justify-content:center}
.uh-chrome .nav-actions{width:100%;margin:8px 0 0;padding:14px 0 0;border-top:1px solid var(--line);justify-content:space-between}
}
@media (max-width:980px){
.uh-chrome .atlas-shared-footer{grid-template-columns:1fr;text-align:center}
.uh-chrome .atlas-shared-footer nav{justify-content:center;flex-wrap:wrap}
}
@media (max-width:600px){
.uh-chrome .site-head{padding:0 12px}
.uh-chrome .nav-wrap{min-height:72px;gap:8px}
.uh-chrome .brand-cap{width:38px;height:38px;padding:6px}
.uh-chrome .brand-main{font-size:1rem}
.uh-chrome .brand-sub{font-size:.5rem;margin-top:5px}
.uh-chrome .nav-toggle{width:40px;height:40px}
.uh-chrome .atlas-shared-footer{width:calc(100% - 36px)}
}
@media (max-width:420px){
.uh-chrome .lang-switch{flex:1 1 auto;justify-content:space-between}
.uh-chrome .lang-switch a.lang-btn{flex:1 1 0}
}
@media (prefers-reduced-motion:reduce){.uh-chrome *,.uh-chrome ::before,.uh-chrome ::after{transition:none!important;animation:none!important}}
@media print{.uh-chrome .site-head,.uh-chrome .site-foot{display:none!important}}

/* --- AMAADOR Academy header-unify: page-level glue --- */
.uh-chrome{display:contents}
html.uh-on .uh-old{display:none!important}
/* r2 pre-hide (CSS-only, fails open): the legacy header/footer are kept in layout but invisible from first paint until the script has built the new chrome (html.uh-on, then display:none above).
   If nothing marks uh-on within 1.5s (script blocked / 404 / error / slow) the animation reveals them; html.uh-fail (script ran but built nothing) reveals them at once. Only where scripting is on and animations exist. */
@keyframes uh-reveal{to{visibility:visible}}
@media (scripting:enabled){@supports (animation-name:uh-reveal){
html:not(.uh-on):not(.uh-fail) body>header.ih,html:not(.uh-on):not(.uh-fail) body>footer.if{visibility:hidden;animation:uh-reveal 0s linear 1.5s forwards}
}}
