/* Shared sticky header and compact policy menu used across public and account pages. */
.site-header,.header,.account-header,.student-header,.sd-header,.ap-top{position:sticky!important;top:0;z-index:80;overflow:visible}
.account-header{min-height:82px}
.account-brand img{width:min(250px,22vw)!important;height:auto!important;max-height:66px;object-fit:contain!important;border-radius:0!important}
.ag-more{position:relative;display:inline-flex;align-items:center;flex:none;color:#790000;font:600 13px Arial,sans-serif}
.ag-more>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #dfb95d;border-radius:7px;background:linear-gradient(#fffdf5,#fff3d3);color:#790000;cursor:pointer;white-space:nowrap}
.ag-more>summary::-webkit-details-marker{display:none}
.ag-more[open]>summary,.ag-more>summary:hover{background:#ffedbd}
.ag-more-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:120;min-width:220px;padding:9px;background:#fffaf0;border:1px solid #d2a33d;border-radius:9px;box-shadow:0 12px 30px #3c180033;color:#4e0700}
.ag-more-menu strong,.menu-policy-links strong{display:block;padding:8px 10px;color:#810000;font-size:13px}
.ag-more-menu a,.menu-policy-links a{display:block;padding:9px 10px;border-radius:6px;color:#4e0700;text-decoration:none;font:14px Arial,sans-serif}
.ag-more-menu a:hover,.menu-policy-links a:hover{background:#ffedbd}
.menu-policy-links{margin:12px 0;padding:8px 10px;border:1px solid #e7d2aa;border-radius:8px;background:#fffaf0}
.student-header .ag-more{font-size:12px}
.student-header .ag-more>summary{min-height:34px;padding:6px 9px}
.cd-page .sd-header .ag-more,.ap-top .ag-more{margin-inline:6px}
.policy-layout{max-width:1050px;margin:0 auto;padding:34px 20px 70px}
.policy-card{padding:clamp(20px,4vw,42px);border:1px solid #e5bf64;border-radius:18px;background:linear-gradient(145deg,#fffdf7,#fff5dc);box-shadow:0 12px 30px #63300012}
.policy-card h1,.contact-card h1{margin:0;color:#790000;font-size:clamp(30px,4vw,44px)}
.policy-card .updated,.contact-card .updated{color:#69583e;font:13px Arial,sans-serif}
.policy-card h2{margin:26px 0 8px;color:#790000;font-size:21px}
.policy-card p,.policy-card li,.contact-card p{font-size:16px;line-height:1.65}
.policy-card ul{padding-left:22px}
.policy-contact{margin-top:28px;padding:16px;border-left:4px solid #d5a233;background:#fff0ca}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.contact-card{padding:22px;border:1px solid #e5bf64;border-radius:14px;background:#fffdf7;box-shadow:0 8px 20px #6330000d}
.contact-card h2{margin:0 0 10px;color:#790000;font-size:21px}
.contact-card a{color:#790000;font-weight:700;overflow-wrap:anywhere}
.contact-action{display:inline-flex;margin:6px 8px 0 0;padding:10px 13px;border:1px solid #bd8b28;border-radius:7px;background:#fff4d1;text-decoration:none}
@media(max-width:1000px){.account-header{min-height:74px}.account-brand img{width:min(210px,34vw)!important;max-height:56px}.ag-more>summary{min-height:34px;padding:6px 8px}.contact-grid{grid-template-columns:1fr}}
@media(max-width:600px){.account-brand img{width:min(190px,43vw)!important;max-height:48px}.ag-more{font-size:12px}.ag-more-menu{position:fixed;right:10px;top:72px;width:min(270px,calc(100vw - 20px))}.policy-layout{padding:18px 12px 90px}.policy-card{padding:20px 17px}.policy-card p,.policy-card li,.contact-card p{font-size:15px}.contact-card{padding:18px}}

/* Policy dropdown matches the main navigation */
.header .ag-more>summary{border:0;background:transparent;border-radius:8px;color:#790000;font:600 14px/1.4 Arial,sans-serif;padding:10px 8px;min-height:40px}.header .ag-more>summary:hover,.header .ag-more[open]>summary{background:#f7ecd4}.header .ag-more-menu{padding:12px;border-radius:14px;background:#fffdf7;border-color:#ddc391;box-shadow:0 16px 40px #4b190026;min-width:245px}.header .ag-more-menu strong{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#9c7425;border-bottom:1px solid #eadcc2;margin-bottom:6px}.header .ag-more-menu a{padding:12px;font-weight:500;border-radius:8px}.header .ag-more-menu a:focus-visible,.header .ag-more>summary:focus-visible{outline:2px solid #b78631;outline-offset:3px}
@media(max-width:600px){.header .ag-more>summary{font-size:12px;padding:6px;min-height:34px}.header .ag-more-menu{min-width:0;width:min(280px,calc(100vw - 20px))}}

.header nav .ag-more{font:inherit}.header nav .ag-more>summary{font:inherit;padding:8px 0;background:transparent}.header nav .ag-more>summary:hover,.header nav .ag-more[open]>summary{color:#790000;text-decoration:underline;text-underline-offset:6px}.header nav .ag-more-menu{left:0;right:auto}.header .ag-more>summary::after{content:none!important}@media(max-width:767px){.header .ag-more.mobile{display:inline-flex}}

/* Policies are already available from mobile navigation. */
@media(max-width:767px){header .ag-policy-mobile,header .ag-more:has(a[href="/privacy-policy.php"]){display:none!important}}

:is(.student-header-avatar,.sd-mini-avatar,.sd-avatar){overflow:hidden}:is(.student-header-avatar,.sd-mini-avatar,.sd-avatar) .account-profile-photo{width:100%!important;height:100%!important;max-height:none!important;min-width:0!important;object-fit:cover!important;border-radius:50%;display:block}.sd-avatar:has(.account-profile-photo){background:none}

.sd-main .dash-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.sd-main .dash-quick a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 8px;text-align:center;text-decoration:none;color:#790000;background:#fff8e8;border:1px solid #e6ce98;border-radius:10px;font-size:13px}.sd-main .dash-quick svg{width:24px;height:24px}.sd-main .dash-quick a[aria-current=page]{border-color:#b78a31}@media(max-width:480px){.sd-main .dash-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:767px){
html body header.ag-site-header{align-items:center!important}
html body header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand){flex:1 1 auto!important;width:auto!important;min-width:0}
html body header.ag-site-header :is(img.foundation-logo,.brand img,.account-brand img,.sd-brand img,.student-header-brand img,.ap-top-brand img){width:min(240px,56vw)!important;max-width:100%!important;height:auto!important;max-height:64px!important;object-fit:contain}
html body header.ag-site-header :is(.ag-header-menu,.menu-toggle){display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px;flex:0 0 40px!important;padding:0!important;line-height:1}
html body header.ag-site-header :is(.ag-header-menu,.menu-toggle) svg{display:block;width:24px;height:24px;margin:0;padding:0}
}
/* Center the shared mobile logo independently of side controls. */ @media(max-width:760px){html body header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand){position:absolute!important;left:50%!important;right:auto!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;justify-content:center!important;width:min(140px,40vw)!important;max-width:40vw!important;flex:none!important}html body header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand) img{object-fit:contain!important;object-position:center!important;width:100%!important;max-width:100%!important}html body header.ag-site-header :is(.actions,.header-actions,.account-actions,.student-header-actions){margin-left:auto!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header :is(.actions,.header-actions,.account-actions,.student-header-actions){margin-left:auto!important;justify-content:flex-end!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand){width:140px!important;max-width:40vw!important;min-width:0!important}html body header.ag-site-header.ag-site-header.ag-site-header :is(.actions,.header-actions,.account-actions,.student-header-actions){position:absolute!important;right:10px!important;left:auto!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand){width:160px!important;max-width:44vw!important}html body header.ag-site-header.ag-site-header.ag-site-header :is(.brand,.account-brand,.sd-brand,.student-header-brand,.ap-top-brand) img{height:auto!important;max-height:56px!important;width:100%!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-actions{gap:4px!important}html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-actions .language{font-size:11px!important;padding:3px!important;gap:2px!important}html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-avatar{width:28px!important;height:28px!important;min-width:28px!important;flex-basis:28px!important}html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search{position:absolute!important;left:60px!important;right:auto!important;width:30px!important;min-width:30px!important;max-width:30px!important;flex-basis:30px!important}html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search button{width:30px!important;min-width:30px!important;flex-basis:30px!important}}@media(max-width:380px){html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand{width:140px!important;max-width:40vw!important}html body header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search{left:48px!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand){width:200px!important;max-width:calc(100% - 168px)!important}html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand) img{height:auto!important;max-height:68px!important;width:100%!important}html body header.ag-public-header.ag-site-header.ag-site-header{height:74px!important;min-height:74px!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand) img{max-width:100%!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand){left:calc(50% - 8px)!important}}@media(max-width:760px){html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand){width:220px!important;max-width:calc(100% - 152px)!important}html body header.ag-site-header.ag-site-header.ag-site-header:not(.student-header) :is(.brand,.account-brand,.sd-brand,.ap-top-brand) img{max-height:74px!important}html body header.ag-public-header.ag-site-header.ag-site-header{height:78px!important;min-height:78px!important}}
/* Consistent student mobile header: menu, logo, search, language, profile. */
@media(max-width:950px){
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header{display:grid!important;grid-template-columns:34px minmax(0,1fr) 32px auto!important;align-items:center!important;gap:6px!important;padding:8px 10px!important;min-height:68px!important;height:auto!important;background:#fffaf0!important;border-bottom:1px solid #d5b574!important;box-shadow:0 3px 12px #7020000a!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-menu{grid-column:1!important;grid-row:1!important;width:34px!important;min-width:34px!important;height:36px!important;border-radius:10px!important;background:#fff6e5!important;border:1px solid #e7d2a9!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand{position:static!important;inset:auto!important;transform:none!important;grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand img{width:100%!important;max-width:210px!important;height:50px!important;max-height:50px!important;object-fit:contain!important;object-position:center!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search{position:static!important;inset:auto!important;transform:none!important;grid-column:3!important;grid-row:1!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:36px!important;margin:0!important;padding:0!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search button{width:32px!important;min-width:32px!important;height:36px!important;border:1px solid #801f2c!important;border-radius:10px!important;background:#801f2c!important;color:#fff8eb!important;padding:7px!important;box-shadow:0 3px 8px #801f2c16!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-actions{position:static!important;inset:auto!important;transform:none!important;grid-column:4!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;margin:0!important;padding:0!important;min-width:0!important;width:auto!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-actions .language{font:500 10px/1.2 Arial,sans-serif!important;padding:6px 4px!important;border:1px solid #e7d4b3!important;border-radius:9px!important;background:#fffdf7!important;gap:2px!important;white-space:nowrap!important}
html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-avatar{width:28px!important;min-width:28px!important;height:28px!important;flex-basis:28px!important;font:600 12px Arial!important;background:#ffedc4!important;border:1px solid #d8b775!important;box-shadow:0 2px 6px #70400010!important}
}
@media(max-width:360px){html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header{grid-template-columns:30px minmax(0,1fr) 28px auto!important;gap:4px!important;padding:7px!important}html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-menu{width:30px!important;min-width:30px!important}html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search,html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-search button{width:28px!important;min-width:28px!important;max-width:28px!important}}
@media(max-width:950px){html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-menu{box-sizing:border-box!important;padding:0!important}}@media(max-width:950px){html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header{gap:4px!important;padding-left:8px!important;padding-right:8px!important;min-height:74px!important}html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand{justify-content:flex-start!important}html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand img{height:58px!important;max-height:58px!important;max-width:230px!important;object-position:left center!important}}@media(max-width:600px){html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header{padding-top:4px!important;padding-bottom:4px!important;min-height:78px!important}html body:has(.student-header) header.ag-site-header.ag-site-header.ag-site-header.student-header .student-header-brand img{height:68px!important;max-height:68px!important;width:100%!important;max-width:100%!important;object-fit:contain!important;object-position:left center!important}}