

/* One footer layout across the academy; the surface fills the viewport, content stays aligned. */
body footer.section-wrap,.academy-pages footer.section-wrap{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(120px,1fr) minmax(200px,1.7fr) auto;width:100%;max-width:none;margin-inline:0;padding:42px max(52px,calc((100% - 1240px)/2));gap:28px;align-items:center}
body footer.section-wrap>*{min-width:0;max-width:100%}
body footer.section-wrap>p{margin:0;font-size:.875rem;line-height:1.6}
body footer.section-wrap nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px 22px;align-items:center;font-size:.875rem}
body footer.section-wrap nav a,body footer.section-wrap>a:last-child{display:inline-flex;align-items:center;min-height:44px;white-space:normal;overflow-wrap:anywhere}
body footer.section-wrap>a:last-child{width:auto;margin:0;padding:0;border:0;text-align:left;font-size:.875rem}
main>.closing-section{margin-block-end:clamp(48px,6vw,80px)}
@media(max-width:1000px){body footer.section-wrap,.academy-pages footer.section-wrap{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;padding:36px 24px;gap:24px 32px}body footer.section-wrap>a:last-child{grid-column:1/-1}}
@media(max-width:600px){body footer.section-wrap,.academy-pages footer.section-wrap{grid-template-columns:minmax(0,1fr);gap:20px;padding:32px 20px}body footer.section-wrap nav{gap:4px 24px}body footer.section-wrap .brand{justify-self:start}}


/* Menu placement is shared by phone and tablet, not tied to one breakpoint. */
.site-header .mobile-menu{position:relative;flex-shrink:0}
.site-header .mobile-menu>summary{display:grid;place-items:center;width:44px;height:44px;padding:0;list-style:none;cursor:pointer}
.site-header .mobile-menu>summary::-webkit-details-marker{display:none}
.site-header .mobile-menu>nav,.academy-pages .site-header .mobile-menu>nav{position:absolute;top:calc(100% + 8px);right:0;display:flex;flex-direction:column;gap:0;min-width:0;width:min(280px,calc(100vw - 32px));padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:10px;z-index:30}
.site-header .mobile-menu>nav a{display:flex;align-items:center;min-height:44px;padding:10px 12px;white-space:normal}
@media(max-width:1350px){.academy-pages:not(.market-preview) .site-header{width:100%;padding-inline:24px;gap:16px}.academy-pages:not(.market-preview) .site-header>nav{display:none}.academy-pages:not(.market-preview) .site-header .mobile-menu{display:block}}
@media(max-width:650px){.academy-pages .site-header{padding-inline:16px;gap:8px}.academy-pages .site-header>a.button{display:none}.academy-pages .site-header>.academy-account-button{white-space:normal;overflow-wrap:anywhere;max-width:100px;min-width:0;min-height:44px;line-height:1.2;font-size:11px;padding:8px 6px}}
@media(max-width:380px){.academy-pages .site-header{gap:4px;padding-inline:16px}.academy-pages .site-header>.academy-account-button{max-width:80px}}
