:root{--pg-header-height:58px}.pg-site-header{position:relative!important;z-index:1000!important;width:100%!important;height:var(--pg-header-height)!important;min-height:var(--pg-header-height)!important;max-height:var(--pg-header-height)!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:0 max(16px,calc((100vw - 1100px)/2))!important;background:var(--pg-header)!important;border:0!important;border-bottom:1px solid var(--pg-line)!important;box-sizing:border-box!important;box-shadow:none!important}.pg-site-header *{box-sizing:border-box}.pg-site-header .brand{display:flex!important;align-items:center!important;gap:5px!important;font:800 17px/1 system-ui,sans-serif!important;letter-spacing:.3px!important;text-decoration:none!important;white-space:nowrap!important;color:var(--pg-text)!important}.pg-site-header .brand span{color:var(--pg-accent)!important}.pg-site-header .brand img{width:26px;height:26px;object-fit:contain}.pg-site-header .topnav{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;margin:0!important;padding:0!important;height:48px!important;min-width:0!important}.pg-site-header .pg-ai-link,.pg-site-header .pg-menu-button{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--pg-text)!important;border:0!important;border-radius:13px!important;box-shadow:none!important;line-height:1!important;cursor:pointer!important}.pg-site-header .pg-ai-link{font-size:25px!important;color:var(--pg-accent)!important;text-decoration:none!important}.pg-site-header .pg-menu-button svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}.pg-site-header .pg-menu-button:hover,.pg-site-header .pg-ai-link:hover{background:var(--pg-hover)!important}.pg-site-header .pg-menu-button:focus-visible,.pg-site-header .pg-ai-link:focus-visible{outline:2px solid var(--pg-accent);outline-offset:1px}.pg-site-header .accountmenu{position:relative!important;display:block!important;margin:0!important;padding:0!important;line-height:normal!important}.pg-site-header .accountpop{position:absolute!important;right:0!important;top:49px!important;width:min(278px,calc(100vw - 25px))!important;z-index:1005!important;padding:9px!important;display:flex!important;flex-direction:column!important;gap:2px!important;background:var(--pg-popup)!important;border:1px solid var(--pg-line)!important;border-radius:17px!important;box-shadow:0 18px 55px #0005!important;color:var(--pg-text)!important;max-height:calc(100dvh - 90px)!important;overflow-y:auto!important;font-family:system-ui,sans-serif!important}.pg-site-header .accountmenu:not([open]) .accountpop{display:none!important}.pg-site-header .accountpop a,.pg-site-header .accountpop>button{display:flex!important;align-items:center!important;text-align:left!important;padding:12px!important;min-height:41px!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--pg-text)!important;font:500 13px/1.35 system-ui,sans-serif!important;text-decoration:none!important}.pg-site-header .accountpop a:hover,.pg-site-header .accountpop>button:hover{background:var(--pg-hover)!important}.pg-site-header .who{padding:9px 12px 12px!important;font-size:11px!important;color:var(--pg-muted)!important;border-bottom:1px solid var(--pg-line)!important;overflow-wrap:anywhere}.pg-site-header .pg-theme-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;color:var(--pg-text)!important;font-size:13px!important;padding:10px 12px!important}.pg-site-header .pg-theme-toggle{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;background:none!important;border:none!important;width:62px!important;min-width:62px!important;height:34px!important;min-height:34px!important;border-radius:99px!important;box-shadow:none!important;cursor:pointer!important}.pg-toggle-track{display:block;position:relative;width:60px;height:32px;border-radius:99px;background:#313a4c;border:1px solid #5a6680;transition:background .25s,border-color .25s}.pg-toggle-knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#f8fafc;box-shadow:0 2px 5px #0005;transition:transform .25s cubic-bezier(.2,1,.2,1)}.pg-toggle-sun,.pg-toggle-moon{position:absolute;top:4px;font-size:14px;line-height:21px}.pg-toggle-sun{left:7px;color:#fbe8ab}.pg-toggle-moon{right:7px;color:#e7edf9}html[data-pg-theme="light"] .pg-toggle-track{background:#a3bff4;border-color:#7a9cda}html[data-pg-theme="light"] .pg-toggle-knob{transform:translateX(28px)}@media(prefers-reduced-motion:reduce){.pg-toggle-track,.pg-toggle-knob{transition:none!important}}
.pg-site-header [hidden]{display:none!important}.pg-site-header .accountpop .pg-theme-toggle[hidden]{display:none!important}

.pg-site-header summary.pg-menu-button{list-style:none!important;appearance:none!important;-webkit-appearance:none!important}.pg-site-header summary.pg-menu-button::-webkit-details-marker{display:none!important}.pg-site-header summary.pg-menu-button::marker{content:''!important}

/* Academy brand mark — hidden when a custom uploaded logo is configured. */
.pg-site-header .brand::before{content:'';display:block;flex:none;width:27px;height:27px;margin-right:7px;border-radius:8px;background:#16171c url('/pwa-icon.svg') center/contain no-repeat;box-shadow:0 0 0 1px #6b6b7528}
.pg-site-header .brand:has(img[data-brand-logo]:not([hidden]))::before{display:none}
@media(max-width:600px){.pg-site-header .brand::before{width:25px;height:25px;margin-right:5px}}

/* Warm Academy header and unmistakable open/close state. */
.pg-site-header{border-bottom-color:#73594970!important;background:linear-gradient(90deg,#151824,#151820)!important}
.pg-site-header .brand{letter-spacing:.6px!important}
.pg-site-header .brand span{color:#efca8f!important}
.pg-site-header .pg-ai-link{color:#e7be82!important}
.pg-site-header .pg-menu-button{transition:color .16s ease,background .16s ease!important}
.pg-site-header .pg-menu-button.is-open{color:#f3d29e!important;background:#443526!important}
.pg-site-header .accountpop{
 background:linear-gradient(160deg,#252431,#191c29)!important;
 border-color:#8b6b4b!important;
 box-shadow:0 20px 55px #0009,0 1px 0 #ffffff12 inset!important;
}
.pg-site-header .accountpop a{color:#f3eef0!important}
.pg-site-header .accountpop a:hover{background:#51403466!important;color:#f3d5a5!important}
.pg-site-header .accountpop .pg-theme-switch{border-top:1px solid #7f674455!important}
.pg-site-header .pg-menu-button:focus-visible{outline:2px solid #e8c48f!important}
html[data-pg-theme="light"] .pg-site-header{background:linear-gradient(90deg,#fffaf4,#fcf5ee)!important;border-bottom-color:#dfc4a5!important}
html[data-pg-theme="light"] .pg-site-header .brand{color:#231e1b!important}
html[data-pg-theme="light"] .pg-site-header .brand span{color:#8b5731!important}
html[data-pg-theme="light"] .pg-site-header .pg-ai-link{color:#925b33!important}
html[data-pg-theme="light"] .pg-site-header .pg-menu-button.is-open{color:#7b4a2a!important;background:#f2dfc5!important}
html[data-pg-theme="light"] .pg-site-header .accountpop{background:linear-gradient(145deg,#fffcf8,#f8eee3)!important;border-color:#d7b791!important}
html[data-pg-theme="light"] .pg-site-header .accountpop a{color:#37291f!important}
html[data-pg-theme="light"] .pg-site-header .accountpop a:hover{background:#efdecc!important;color:#71431e!important}
@media(max-width:780px){.pg-site-header .accountpop{width:min(315px,calc(100vw - 25px))!important;top:52px!important}.pg-site-header .accountpop a{min-height:48px!important;font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.pg-site-header .pg-menu-button{transition:none!important}}

/* Brand wordmark correction: never split GRIND + ERS into separate flex-spaced items. */
.pg-site-header .brand{gap:0!important;letter-spacing:.25px!important;word-spacing:0!important;white-space:nowrap!important;flex-wrap:nowrap!important}
.pg-site-header .brand span{margin:0!important;padding:0!important;letter-spacing:inherit!important}
.pg-site-header .brand::before{content:none!important;display:none!important}
.pg-site-header .brand img[data-brand-logo]{display:none!important}
@media(max-width:600px){.pg-site-header .brand{font-size:17px!important;letter-spacing:.15px!important}}

/* Keep the top bar minimal. Hide the admin entry until authorization is verified. */
.pg-site-header .pg-ai-link{display:none!important}
.pg-site-header .accountpop a.pg-admin-link[hidden]{display:none!important}
.pg-site-header .accountpop a.pg-admin-link{
  border-top:1px solid #82664675!important;
  border-radius:0!important;
  margin-top:6px!important;
  padding-top:17px!important;
  color:#f3d19a!important;
  font-weight:750!important;
}
html[data-pg-theme="light"] .pg-site-header .accountpop a.pg-admin-link{color:#88552e!important;border-top-color:#e7d0b8!important}


/* Native details outside-tap target: reliable on iOS Safari and Android. */
.pg-menu-backdrop[hidden]{display:none!important}
.pg-menu-backdrop:not([hidden]){
 position:fixed!important;inset:0!important;z-index:995!important;
 display:block!important;background:transparent!important;touch-action:manipulation!important;
 cursor:default!important
}
.pg-site-header{z-index:1000!important}
.pg-site-header .accountmenu[open]{z-index:1002!important}
.pg-site-header .accountmenu[open] .accountpop{z-index:1003!important}
