/* ==========================================================================
   AGLA Shell  v1.0   (amazing grace learning academy)
   The parts every Hub shares: top bar, Microsoft sign-in screen, opening splash,
   idle sign-out warning, user menu and footer. Extracted from the Performance Hub.
   Load AFTER agla-brand.css.  Do not edit per hub: change it once here.
   ========================================================================== */
:root{
  --navy:var(--agla-navy,#323C6D); --navy2:#262E57; --teal:var(--agla-teal,#01B5CF); --teal-dark:var(--agla-teal-dark,#02788D);
  --yellow:var(--agla-yellow,#FED259); --pink:var(--agla-pink,#FF3D81); --ink:var(--agla-ink,#272F57);
  --muted:var(--agla-muted,#5A6E80); --line:var(--agla-line,#DCE7EE); --bg:var(--agla-bg,#F6FAFD);
  --page-gap:32px; --card-gap:24px;
}
@media(max-width:860px){:root{--page-gap:16px;--card-gap:16px}}
.app-shell{min-height:100vh;display:flex;flex-direction:column}
.app-shell>.main{flex:1 0 auto}
/* ---------- Top bar ---------- */
.topbar{height:78px;background:#fff;border-bottom:1px solid #E4ECF2;display:flex;align-items:center;padding:0 34px;gap:24px;position:relative;z-index:40}
.brand-lockup{display:flex;align-items:center;gap:13px;min-width:290px}
.brand-logo{width:58px;height:58px;object-fit:contain}
.brand-text strong{display:block;font-size:21px;color:#0E5570;line-height:1.05}
.brand-text span{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.04em}
.top-pill{margin-left:auto;background:#EFF8FB;border:1px solid #D4EAF0;color:#0E6177;border-radius:999px;padding:9px 14px;font-size:12px;font-weight:800}
@media(max-width:720px){.topbar{padding:0 16px;gap:12px}.brand-lockup{min-width:0}.top-pill{display:none}}
/* ---------- Gate and sign-in state ---------- */
body.gated{overflow:hidden}
html.needs-signin .app-shell{display:none}
html.needs-signin .sign-in-page{display:block}
html.needs-signin body{overflow:hidden}
/* ---------- Standalone sign-in screen: nothing from the app is visible until the visitor is signed in ---------- */
.sign-in-page{display:none;position:fixed;inset:0;z-index:130;overflow-x:hidden;overflow-y:auto;background:linear-gradient(115deg,#01BCD6 0%,#01B5CF 55%,#029CB9 100%)}
.sign-in-page.show{display:block}
.gate-bg{position:absolute;border-radius:50%;pointer-events:none}
.gate-bg--yellow{width:380px;height:380px;background:var(--hub-accent2,var(--yellow));left:-130px;bottom:-170px}
.gate-bg--pink{width:340px;height:340px;background:var(--hub-accent,var(--pink));right:-120px;top:-140px}
.gate-bg--soft{width:560px;height:560px;background:rgba(255,255,255,.08);right:10%;bottom:-300px}
.gate-dots{position:absolute;right:9%;top:22%;width:112px;height:112px;background-image:radial-gradient(var(--hub-accent2,var(--yellow)) 4.5px,transparent 5.5px);background-size:28px 28px;pointer-events:none}
.gate-wrap{position:relative;z-index:2;min-height:100%;display:flex;flex-direction:column;align-items:center;padding:26px 36px 24px}
.gate-org{align-self:flex-start;display:flex;align-items:center;gap:12px;color:#fff}
.gate-org-tile{width:48px;height:48px;border-radius:13px;background:#fff;display:grid;place-items:center;box-shadow:0 8px 18px rgba(4,50,80,.22);flex:0 0 48px}
.gate-org-tile img{width:40px;height:40px;object-fit:contain}
.gate-org b{display:block;font-size:15px;font-weight:800}
.gate-org small{display:block;font-size:11.5px;opacity:.92;font-style:italic}
.gate-center{flex:1;width:100%;display:grid;place-items:center;padding:28px 0}
.gate-card{width:100%;max-width:460px;background:#fff;border-radius:24px;box-shadow:0 30px 70px rgba(4,50,80,.30);overflow:hidden}
.gate-card-head{padding:38px 40px 26px;text-align:center;border-bottom:1px solid var(--line)}
.gate-app-icon{width:76px;height:76px;border-radius:21px;box-shadow:0 12px 26px rgba(38,46,87,.32)}
.gate-card-head h1{margin:18px 0 4px;font-size:26px;font-weight:800;color:var(--navy);letter-spacing:-.01em}
.gate-card-head p{margin:0;font-size:13px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.gate-card-body{padding:28px 40px 28px;text-align:center}
.gate-card-body h2{margin:0 0 6px;font-size:18px;color:var(--navy)}
.gate-message{margin:0 0 22px;color:var(--muted);font-size:14px}
.gate-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:50px;border:1.5px solid #8C99A6;border-radius:12px;background:#fff;color:var(--navy);font:700 15px 'Open Sans','Segoe UI',sans-serif;cursor:pointer;transition:background .15s ease}
.gate-btn[hidden]{display:none}
.gate-btn:hover{background:#F4F8FB}
.gate-btn:focus-visible{outline:3px solid #BFE9F1;outline-offset:2px}
.ms-logo{width:21px;height:21px}
.gate-secure{display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 0;font-size:12.5px;color:var(--muted)}
.gate-secure .ico{width:15px;height:15px;color:var(--teal-dark)}
.gate-card-foot{background:#F6FAFD;border-top:1px solid var(--line);padding:14px 24px;text-align:center;font-size:12.5px;color:var(--muted)}
.gate-card-foot b{color:var(--navy)}
.gate-legal{margin:0;text-align:center;color:#fff;font-size:12px;opacity:.92;line-height:1.7}
/* ---------- Footer ---------- */
.site-footer{flex:0 0 auto;display:flex;align-items:center;gap:24px;padding:14px 34px;background:var(--navy);color:#fff;font-size:13px}
.site-footer-help strong{font-weight:800}
.site-footer-tag{margin:0 auto;font-style:italic;font-weight:600;font-size:13.5px}
.site-footer-meta{font-size:11.5px;opacity:.75}
@media(max-width:720px){.site-footer{flex-direction:column;align-items:flex-start;gap:6px;padding:16px}.site-footer-tag{margin:0}}
/* ---------- User menu ---------- */
.user-menu[hidden]{display:none}
.user-menu{position:relative}
.user-pill{display:flex;align-items:center;gap:9px;background:#EFF8FB;border:1px solid #D4EAF0;color:var(--navy);border-radius:999px;padding:4px 12px 4px 4px;font:800 12.5px 'Open Sans',sans-serif;cursor:pointer;transition:background .15s ease}
.user-pill:hover{background:#E1F3F8}
.user-pill:focus-visible{outline:3px solid #BFE9F1}
.user-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#037F95,#02788D);color:#fff;font-size:11.5px;font-weight:800;background-size:cover;background-position:center;flex:0 0 30px}
.user-avatar.has-photo{background-color:#fff}
.user-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-chev{width:14px;height:14px;flex:0 0 14px}
.user-drop{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgba(50,60,109,.18);padding:8px;z-index:60}
.user-drop-id{padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.user-drop-id b{display:block;font-size:13.5px;color:var(--navy)}
.user-drop-id span{display:block;font-size:12px;color:var(--muted);word-break:break-all}
.user-drop-item{display:block;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:10px 12px;font:700 13px 'Open Sans',sans-serif;color:var(--navy);cursor:pointer}
.user-drop-item:hover,.user-drop-item:focus-visible{background:#EFF8FB;outline:0}
@media(max-width:720px){.user-name,.user-chev{display:none}.user-pill{padding:4px}}
/* ---------- Opening splash screen ---------- */
.splash{display:none;position:fixed;inset:0;z-index:150;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(115deg,#01BCD6 0%,#01B5CF 55%,#029CB9 100%);color:#fff;transition:opacity .45s ease}
html.splash-pending .splash,html.splash-on .splash{display:flex}
.splash.is-leaving{opacity:0;pointer-events:none}
.splash-bg{position:absolute;border-radius:50%;pointer-events:none}
.splash-bg--yellow{width:380px;height:380px;background:var(--hub-accent2,var(--yellow));left:-130px;bottom:-170px}
.splash-bg--pink{width:340px;height:340px;background:var(--hub-accent,var(--pink));right:-120px;top:-140px}
.splash-dots{position:absolute;right:9%;top:22%;width:112px;height:112px;background-image:radial-gradient(var(--hub-accent2,var(--yellow)) 4.5px,transparent 5.5px);background-size:28px 28px;pointer-events:none}
.splash-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px;width:100%;max-width:440px}
.splash-logo{width:132px;height:132px;border-radius:32px;background:#fff;display:grid;place-items:center;box-shadow:0 22px 48px rgba(4,50,80,.28);animation:splash-pop .7s cubic-bezier(.2,.9,.3,1.2) both}
.splash-logo img{width:108px;height:108px;object-fit:contain}
.splash-title{margin:26px 0 4px;font-size:34px;font-weight:800;letter-spacing:-.01em;color:#fff;animation:splash-rise .6s .15s ease both}
.splash-sub{margin:0;font-size:15px;font-weight:700;letter-spacing:.04em;opacity:.95;animation:splash-rise .6s .25s ease both}
.splash-meter{width:100%;max-width:340px;margin-top:38px;animation:splash-rise .6s .4s ease both}
.splash-track{height:10px;border-radius:999px;background:rgba(255,255,255,.3);overflow:hidden}
.splash-fill{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#FED259,#FFE9A0)}
.splash-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:12px;font-size:13px;font-weight:700}
.splash-msg{opacity:.95;text-align:left}
.splash-pct{font-weight:800;font-variant-numeric:tabular-nums}
@keyframes splash-pop{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
@keyframes splash-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:560px){.splash-logo{width:112px;height:112px;border-radius:28px}.splash-logo img{width:90px;height:90px}.splash-title{font-size:28px}.splash-dots{display:none}.splash-bg--yellow{width:300px;height:300px}.splash-bg--pink{width:260px;height:260px}}
@media(prefers-reduced-motion:reduce){.splash,.splash-logo,.splash-title,.splash-sub,.splash-meter{animation:none!important;transition:none!important}}

/* ---------- Idle sign-out warning ---------- */
.idle-warn{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:125;display:flex;align-items:center;gap:18px;width:min(560px,calc(100vw - 32px));padding:16px 18px 16px 22px;background:#fff;border:1px solid var(--line);border-left:6px solid var(--yellow);border-radius:18px;box-shadow:0 18px 44px rgba(50,60,109,.26)}
.idle-warn[hidden]{display:none}
.idle-warn-copy{flex:1;min-width:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.idle-warn-copy strong{display:block;font-size:15px;color:var(--navy);margin-bottom:2px}
.idle-warn-copy b{color:var(--navy);font-variant-numeric:tabular-nums}
.idle-warn-btn{flex:0 0 auto;min-height:44px;padding:0 20px;border:0;border-radius:13px;background:linear-gradient(90deg,#037F95,#02788D);color:#fff;font:800 13px 'Open Sans',sans-serif;cursor:pointer;white-space:nowrap}
.idle-warn-btn:focus-visible{outline:3px solid #BFE9F1;outline-offset:2px}
@media(max-width:560px){.idle-warn{flex-direction:column;align-items:stretch;gap:12px;bottom:16px}.idle-warn-btn{width:100%}}

/* ---------- Checking your sign-in: no sign-in card, just the teal screen and a spinner ---------- */
.gate-checking{display:none;align-items:center;gap:12px;color:#fff;font-weight:700;font-size:15px}
.sign-in-page.is-checking .gate-card{display:none}
.sign-in-page.is-checking .gate-checking{display:flex}
.gate-spinner{width:20px;height:20px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:gate-spin .9s linear infinite}
@keyframes gate-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gate-spinner{animation:none}}

/* ---------- Keep the brand kit's global heading rule (.agla h1/h2/h3) from changing the shell ---------- */
.agla .splash-title{color:#fff;margin:26px 0 4px;line-height:1.5}
.agla .gate-card-head h1{margin:18px 0 4px;line-height:1.5}
.agla .gate-card-body h2{margin:0 0 6px;line-height:1.5}
.agla .gate-card-head p{margin:0}

/* The loading screen shows the hub icon (the center logo is in the header of every hub). */
.splash-logo--icon{background:none;box-shadow:none}
.splash-logo--icon .splash-svg{width:132px;height:132px;display:block;filter:drop-shadow(0 22px 28px rgba(4,50,80,.28))}
@media(max-width:560px){.splash-logo--icon .splash-svg{width:112px;height:112px}}

/* ---------- v1.5 banner: bright teal, navy text (5.2 to 5.6 to 1; white on this teal was 2.5 to 1) ---------- */
.hero,.intro-hero,.intro-cover,.splash{background:linear-gradient(115deg,#01BCD6 0%,#01B5CF 100%);color:#272F57}
.sign-in-page{background:linear-gradient(115deg,#01BCD6 0%,#01B5CF 100%)}
.hero h1,.hero p,.hero .eyebrow,.hero .hero-next,.back-link,.intro-hero .intro-kicker,.intro-hero .intro-copy,.intro-hero h2,.intro-cover h1,.intro-cover p,.cover-hi,.cover-sub,.cover-note,.splash-title,.splash-sub,.splash-msg,.splash-pct,.gate-org,.gate-org b,.gate-org small,.gate-legal,.gate-checking{color:#272F57}
.gate-spinner{border-color:rgba(39,47,87,.25);border-top-color:#272F57}
/* the corner circles no longer sit on top of the text */
.hero:before{width:130px;height:130px;left:-58px;bottom:-96px}
.hero{padding-bottom:44px}
.agla .splash-title{color:#272F57}

/* ---------- v1.7 page frame: identical on every page of every hub ---------- */
@media (min-width:641px){
  .topbar{padding:0 32px}
  .main{max-width:2000px;margin:0 auto;padding:32px 32px 90px}
  .hero{padding:28px 32px 44px}
  .hero h1{font-size:30px;line-height:1.2;margin:8px 0 8px}
  .hero .eyebrow{font-size:12px}
}
.hero p{font-size:16px;line-height:1.6}
