/* Site header + footer, shared by the school website and the rank-testing app (/belt-test/).
   Every rule is scoped to .sh (header), .sf (footer) or .skip so it cannot change the app's own styles.
   Brand: red #EB1C23, charcoal #1B1D1B. Strict CSP: no inline styles. */
@font-face{font-family:"Oswald";src:url("/assets/fonts/oswald-latin.woff2") format("woff2");font-weight:400 700;font-display:swap}
.sh,.sf,.skip{
  --sc-red:#EB1C23; --sc-red-btn:#D9141B; --sc-red-deep:#A80F14;
  --sc-text:#E9EAE9; --sc-muted:#B9BCB9; --sc-brd:rgba(255,255,255,.14);
  --sc-display:"Oswald","Arial Narrow",Arial,sans-serif;
  --sc-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font:400 16px/1.65 var(--sc-body);color:var(--sc-text);-webkit-font-smoothing:antialiased;text-align:left}
.sh *,.sh *::before,.sh *::after,.sf *,.sf *::before,.sf *::after{box-sizing:border-box}
.sh img,.sf img{display:block;max-width:100%;height:auto}
.sh .i,.sf .i{flex:none}
.sh .sr-only,.sf .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sh :focus-visible,.sf :focus-visible{outline:3px solid #FF6A6F;outline-offset:3px}
.sh .wrap,.sf .wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:#fff;color:#1B1D1B;padding:10px 14px;border-radius:10px;font-weight:700}
.skip:focus{top:12px}

/* header */
.sh{position:sticky;top:0;z-index:50;background:rgba(27,29,27,.78);border-bottom:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}
.sh .glass{border:1px solid var(--sc-brd);border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
.sh .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:999px;border:1px solid transparent;
  font:600 16px/1.2 var(--sc-body);text-decoration:none;text-align:center;cursor:pointer;transition:background-color .15s}
.sh .btn-red{background:var(--sc-red-btn);color:#fff;box-shadow:0 8px 24px rgba(235,28,35,.35)}
.sh .btn-red:hover{background:var(--sc-red-deep)}
.sh .btn-sm{min-height:42px;padding:8px 16px;font-size:15px}
.sh-in{display:flex;align-items:center;gap:16px;min-height:68px}
.sh-brand{display:flex;align-items:center;flex:none;margin-right:auto}
.sh-brand img{height:48px;width:auto}
.sh-nav{display:none;align-items:center;gap:4px}
.sh-nav>a,.sh .sh-drop>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;border-radius:10px;color:var(--sc-text);text-decoration:none;font-weight:600;font-size:15px;cursor:pointer;list-style:none}
.sh-nav>a:hover,.sh .sh-drop>summary:hover{background:rgba(255,255,255,.08)}
.sh-nav a[aria-current="page"],.sh .sh-drop>summary[aria-current]{color:#fff;box-shadow:inset 0 -2px 0 var(--sc-red)}
.sh .sh-drop>summary::-webkit-details-marker,.sh-m>summary::-webkit-details-marker{display:none}
.sh .sh-drop{position:relative}
.sh .sh-drop[open]>summary .i{transform:rotate(180deg)}
.sh .sh-drop-panel{position:absolute;top:calc(100% + 8px);left:-8px;width:300px;padding:8px;display:grid;gap:2px;background:rgba(34,37,35,.94)}
.sh .sh-drop-link{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;text-decoration:none;font-weight:600;color:var(--sc-text)}
.sh .sh-drop-link small{color:var(--sc-muted);font-weight:500;font-size:13px}
.sh .sh-drop-link:hover,.sh .sh-drop-link[aria-current="page"]{background:rgba(255,255,255,.08)}
.sh .nav-belt{color:#fff}
.sh .nav-belt .i{color:var(--sc-red)}
.sh-call{flex:none}
.sh-call span{display:none}
.sh-m{flex:none}
.sh-m>summary{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;border:1px solid var(--sc-brd);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;list-style:none}
.sh-m>summary .i:last-child,.sh-m[open]>summary .i:first-child{display:none}
.sh-m[open]>summary .i:last-child{display:block}
.sh-m-panel{position:absolute;left:12px;right:12px;top:calc(100% + 8px);max-height:calc(100dvh - 96px);overflow:auto;padding:10px;display:grid;gap:2px;background:rgba(34,37,35,.96)}
.sh-m-panel>a:not(.btn){display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border-radius:10px;text-decoration:none;font-weight:600;color:var(--sc-text)}
.sh-m-panel>a small{color:var(--sc-muted);font-weight:500;font-size:13px}
.sh-m-panel>a[aria-current="page"]{background:rgba(255,255,255,.08)}
.sh-m-panel>a.nav-belt{justify-content:flex-start}
.sh .m-sub>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border-radius:10px;font-weight:600;color:var(--sc-text);cursor:pointer;list-style:none}
.sh .m-sub>summary::-webkit-details-marker{display:none}
.sh .m-sub>summary .i{transition:transform .2s;color:var(--sc-muted)}
.sh .m-sub[open]>summary .i{transform:rotate(180deg)}
.sh .m-sub>summary[aria-current],.sh .m-sub[open]>summary{background:rgba(255,255,255,.06)}
.sh .m-sub-list{display:grid;gap:2px;margin:4px 0 6px 12px;padding-left:10px;border-left:2px solid rgba(235,28,35,.55)}
.sh .nav-group{margin:8px 10px 2px;font:700 12px/1.2 var(--sc-body);letter-spacing:.12em;text-transform:uppercase;color:#FF5A60}
.sh .nav-group:first-child{margin-top:4px}
.sh .m-sub-list>a{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:8px 10px;border-radius:10px;text-decoration:none;font-weight:600;font-size:15px;color:var(--sc-text)}
.sh .m-sub-list>a small{color:var(--sc-muted);font-weight:500;font-size:13px}
.sh .m-sub-list>a[aria-current="page"]{background:rgba(255,255,255,.08)}
.sh .m-cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.sh .m-cta .btn{min-height:48px;padding:10px 12px}
.sh .m-mail{background:rgba(255,255,255,.08);color:#fff;border-color:var(--sc-brd)}
.sh-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:999px;border:1px solid var(--sc-brd);background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.sh-icon:hover{background:rgba(255,255,255,.16)}
@media (max-width:559px){.sh-brand img{height:38px}.sh .sh-call{width:42px;padding:0}.sh-in{gap:8px}}
@media (max-width:379px){.sh-brand img{height:30px}.sh .sh-call,.sh-icon{width:40px;height:40px;min-height:40px}.sh-m>summary{width:44px;height:44px}}
@media (min-width:560px){.sh-call span{display:inline}}
@media (min-width:1040px){.sh-nav{display:flex}.sh-m{display:none}}

/* Menu panels are solid: iPhone Safari cannot blur through a panel inside the (already blurred) header,
   and see-through menus are unreadable over busy pages. A dim layer covers the page behind the phone menu. */
.sh .sh-m-panel,.sh .sh-drop-panel{background:#232624;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.sh-m[open]>summary::before{content:"";position:fixed;left:0;right:0;bottom:0;top:68px;background:rgba(0,0,0,.6);cursor:default}
.sh-m-panel{z-index:1}

/* footer */
.sf{background:#141514;border-top:1px solid rgba(255,255,255,.08);padding:56px 0 26px;font-size:15px}
.sf-grid{display:grid;gap:30px}
.sf-brand img{height:auto;width:100%;max-width:320px;margin-bottom:14px}
.sf p{margin:0 0 1em}
.sf-tag{font:600 20px/1.2 var(--sc-display);text-transform:uppercase;color:#fff;margin-bottom:8px}
.sf-small{color:var(--sc-muted);font-size:14px}
.sf .sf-h{margin:0 0 12px;font:700 13px/1.2 var(--sc-body);letter-spacing:.12em;text-transform:uppercase;color:var(--sc-muted)}
.sf ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.sf ul a{display:inline-flex;align-items:center;gap:8px;min-height:36px;color:var(--sc-text);text-decoration:none;overflow-wrap:anywhere}
.sf ul a:hover{color:#fff;text-decoration:underline}
.sf-contact .i{color:var(--sc-red)}
.sf .sf-social{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:10px}
.sf-bottom{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:36px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);color:var(--sc-muted);font-size:14px}
.sf-bottom a{color:var(--sc-muted)}
.sf-group>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:44px}
.sf-group>summary::-webkit-details-marker{display:none}
.sf-group[open]>summary .i{transform:rotate(180deg)}
@media (max-width:759px){.sf-grid{gap:6px}.sf-brand{margin-bottom:18px}.sf-group{border-top:1px solid rgba(255,255,255,.08)}.sf-group>ul{padding-bottom:12px}}
@media (min-width:760px){.sf-grid{grid-template-columns:1.4fr 1fr 1fr 1.3fr}.sf-group>summary{cursor:default;pointer-events:none;min-height:0}.sf-group>summary .i{display:none}}
@media (max-width:520px){.sh .wrap,.sf .wrap{padding:0 16px}}
@media (prefers-reduced-transparency:reduce){.sh,.sh .glass{-webkit-backdrop-filter:none;backdrop-filter:none;background:#222523}}
@media print{.sh,.sf,.skip{display:none!important}}
