/* Shared header: one compact bar; a single-column navigation panel below it on smaller screens. */
.site-header .site-nav{position:relative;max-width:1600px;flex-wrap:nowrap;gap:16px;min-height:80px;padding:12px 24px}.site-header .site-brand{order:0;flex:0 0 auto;max-width:none}.site-header .brand-logo{width:210px}.site-header .site-nav>.site-menu{order:1;display:flex;flex:1 1 auto;flex-basis:0;align-items:center;border:0;padding:0;min-width:0}.site-header .site-menu .site-links{display:flex;flex-wrap:nowrap;gap:3px;align-items:center;width:auto}.site-header .site-links>a{padding:10px 8px}.site-header .module-menu{grid-row:auto}.site-header .module-menu>summary{font-size:12px;padding:10px 8px;white-space:normal;background:transparent;border:0}.site-header .module-menu>summary:hover,.site-header .module-menu[open]>summary,.site-header .module-menu:has([aria-current=page])>summary{background:var(--soft);color:var(--primary-dark)}.site-header .module-panel{position:absolute;top:calc(100% + 10px);left:0;width:270px;max-width:calc(100vw - 32px);margin:0;box-shadow:0 12px 32px #17202a18}.site-header .site-nav>.account-menu{order:2;flex:0 0 auto;width:auto;margin:0;padding:0 0 0 12px;border-top:0;border-left:1px solid #e4e7ef}.site-header .site-nav>.claim-notifications{order:3;margin-left:0}.site-header .site-nav>.menu-toggle{order:4;display:none}.site-header .account-panel{position:absolute;width:250px;max-width:calc(100vw - 32px);margin-top:0;box-shadow:0 14px 40px #1d354e18}.site-header .account-name{max-width:95px}
@media(width < 1360px){
.site-header .site-nav{gap:12px;justify-content:flex-start;min-height:74px;padding:12px 20px}.site-header .site-brand{margin-right:auto}.site-header.menu-ready .site-nav>.menu-toggle{display:inline-flex;min-height:44px}.site-header .site-nav>.site-menu{position:absolute;top:100%;right:20px;left:auto;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow-y:auto;padding:12px;box-sizing:border-box;background:white;border:1px solid #dce0ed;border-radius:0 0 14px 14px;box-shadow:0 16px 32px #17202a18;z-index:60;flex:none}.site-header.menu-ready .site-nav>.site-menu:not(.is-open){display:none}.site-header .site-menu .site-links{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:6px}.site-header .site-links>a{padding:12px;min-height:44px}.site-header .module-menu>summary{padding:12px;font-size:13px;min-height:46px;white-space:normal;background:#f6f9fb;border:1px solid #e5e8f1}.site-header .module-panel{position:static;width:auto;max-width:none;box-shadow:none;margin:6px 0 4px;border:0;border-left:2px solid #cbd7fc;border-radius:0 8px 8px 0;padding:6px 8px}.site-header .module-panel>p{margin:4px 8px 6px}.site-header .site-nav>.account-menu{border-left:0;padding:0}.site-header .account-name{max-width:120px}
}
@media(max-width:640px){.site-header .site-nav{padding:10px 12px;gap:8px;min-height:70px}.site-header .site-nav .site-brand{flex:1 1 0;min-width:0;max-width:210px;margin-right:auto}.site-header .site-nav .brand-logo{width:100%;max-width:210px}.site-header .account-name,.site-header .account-menu>summary>span:last-child{display:none}.site-header .account-menu>summary{padding:4px;min-width:44px;justify-content:center}.site-header .site-nav>.site-menu{right:12px;width:360px;max-height:calc(100dvh - 150px)}.site-header .site-nav>.menu-toggle{padding:8px;font-size:12px}.site-header .account-avatar{width:28px;height:28px}.site-header .account-avatar img{width:28px;height:28px}}

@media(width >= 1360px){.site-header.menu-ready .site-nav>.site-menu:not(.is-open){display:flex}.site-header.menu-ready .site-nav>.menu-toggle{display:none}}
/* Header popovers must remain above every page-level dropdown/sticky control. */
body>.site-header{z-index:100;isolation:isolate}
body>main{position:relative;z-index:0;isolation:isolate}
body>.skip-link:focus{z-index:200}
.site-header .claim-notification-panel{max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}


/* Account modules expand in place, including on narrow touch screens. */
.site-header .account-operations{margin:0 0 6px;border-bottom:1px solid #e4e7ef;padding-bottom:6px}
.site-header .account-operations>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;min-height:44px;white-space:normal;line-height:1.45;font-size:12px;font-weight:700;color:var(--primary-dark);background:#eef0f8;border-radius:8px;cursor:pointer}
.site-header .account-operations>summary svg{flex-shrink:0;transition:transform .15s}
.site-header .account-operations[open]>summary svg{transform:rotate(180deg)}
.site-header .account-operations nav{display:grid;gap:4px;margin:6px 0 0 12px;border-left:2px solid #cbd7fc;padding-left:6px}
.site-header .account-operations nav a{min-height:44px;display:flex;align-items:center;line-height:1.4}
.site-header .account-operations>summary:focus-visible{outline:3px solid #75bdcf;outline-offset:2px}

/* Keep installed mobile apps out of the iOS status-bar scroll-edge region. */
@media (display-mode: standalone) and (width < 1360px) {
    html { background:#fff; }
    body > .site-header {
        position:sticky;
        top:0;
        padding-top:env(safe-area-inset-top, 0px);
        background:#fff;
        opacity:1;
        -webkit-backdrop-filter:none;
        backdrop-filter:none;
    }
}

/* Client-provided school logo, with a readable wordmark at every header size. */
.site-header .site-brand{gap:10px;text-decoration:none}
.site-header .brand-symbol{display:block;flex:0 0 48px;width:48px;height:48px;object-fit:contain;border-radius:50%;background:#fff}
.site-header .brand-wordmark{display:flex;flex-direction:column;min-width:0;gap:3px}
.site-header .brand-wordmark strong{font-size:17px;line-height:1.2;color:#193c4b}
.site-header .brand-wordmark small{font-size:8px;line-height:1.4;letter-spacing:.04em;color:#617986}
@media(max-width:640px){.site-header .site-brand{gap:6px}.site-header .brand-symbol{width:36px;height:36px;flex-basis:36px}.site-header .brand-wordmark strong{font-size:12px}.site-header .brand-wordmark small{display:none}}

/* Use the available bar width for links, and keep popovers inside the viewport. */
.site-header .site-links > * { min-inline-size: 0; max-inline-size: 100%; }
.site-header .site-links a,
.site-header .module-menu > summary,
.site-header .account-panel a { white-space: normal; overflow-wrap: anywhere; }
.site-header :is(.site-menu, .module-panel, .account-panel, .claim-notification-panel) {
    scrollbar-width: thin;
}
.site-header :is(.module-panel, .account-panel, .claim-notification-panel) {
    max-height: max(0px, calc(100dvh - var(--popover-top, 140px) - var(--popover-bottom, 16px)));
    overflow-y: auto;
    overscroll-behavior: contain;
}
@media (width < 1360px) {
    .site-header .site-nav > :is(.account-menu, .claim-notifications) { position: static; }
    .site-header :is(.account-panel, .claim-notification-panel) {
        position: absolute;
        inset: 100% 20px auto auto;
    }
    .site-header .site-nav > .site-menu {
        max-height: max(0px, calc(100dvh - var(--popover-top, 140px) - var(--popover-bottom, 16px)));
        overscroll-behavior: contain;
    }
    .site-header .module-panel { max-height: none; overflow: visible; }
    .site-header:not(.menu-ready) .site-nav { flex-wrap: wrap; }
    .site-header:not(.menu-ready) .site-nav > .site-menu {
        position: static;
        order: 5;
        width: 100%;
        max-width: none;
        max-height: none;
    }
}
@media (max-width: 768px) {
    .site-header { --popover-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
    .site-header :is(.account-panel, .claim-notification-panel),
    .site-header .site-nav > .site-menu { right: 12px; }
    .site-header .claim-notification-panel { width: min(360px, calc(100% - 24px)); }
    .site-header .brand-wordmark { overflow-wrap: anywhere; }
}

/* Keep desktop navigation on one line and reserve space for account controls. */
@media (width >= 1360px) {
    .site-header .site-nav {
        gap: 12px;
        min-height: 72px;
        padding-inline: 16px;
    }
    .site-header .site-links > a,
    .site-header .module-menu > summary {
        white-space: nowrap;
    }
    .site-header .site-links > * {
        flex: 0 0 auto;
    }
    .site-header .module-menu > summary {
        min-height: 44px;
    }
    .site-header .site-nav > .account-menu {
        margin-inline-start: auto;
    }
    .site-header .account-name {
        max-inline-size: clamp(6rem, 8vw, 9rem);
    }
}

@media (1360px <= width < 1500px) {
    .site-header .site-nav { gap: 8px; }
    .site-header .site-links > a,
    .site-header .module-menu > summary { padding-inline: 6px; }
    .site-header .account-name { max-inline-size: 6rem; }
}
