/* RC40: shared header/footer refinement, no provider or destination changes. */
.to-header>.to-wrap,.to-footer>.to-wrap{width:min(var(--to-shell-max),calc(100% - 2 * var(--to-shell-gutter)));max-width:var(--to-shell-max);padding-inline:0;margin-inline:auto}
.to-header{position:relative;isolation:isolate;z-index:30;background:radial-gradient(ellipse at 85% 0,#244b82,transparent 65%),linear-gradient(120deg,#07162e,#102d59)}
.to-header .to-bar{min-height:84px;gap:clamp(8px,1.5vw,24px)}
.to-header .to-brand-lockup>span{color:#fff}.to-header .to-brand-lockup .to-brand-dot{color:#93c5fd}
.to-header .to-brand-lockup svg{flex:none}.to-header .to-brand img{object-fit:contain;max-width:100%}
.to-header .to-nav>ul>li>a{font-weight:650;padding:10px 8px;min-height:44px;display:flex;align-items:center}
.to-header .to-nav>ul>li>.sub-menu{max-width:100%;right:0;left:auto;overscroll-behavior:contain}
.to-header .to-nav .sub-menu a{min-height:44px;display:flex;align-items:center}
.to-header .to-nav .sub-menu .to-subtoggle{background:#eaf1fc;color:#123d83}
.to-header .to-search{max-width:100%;padding:clamp(14px,2vw,24px);border-radius:16px}
.to-header .to-search form{display:flex;flex-wrap:wrap;gap:10px}.to-header .to-search input{flex:1 1 180px;font-size:16px;min-width:0}.to-header .to-search button{background:#1758d4;color:white;min-height:48px}
.to-footer{background:radial-gradient(ellipse at 95% 0,#143c75,transparent 60%),linear-gradient(150deg,#07162e,#10274b);padding-block:clamp(28px,4vw,56px) 20px}
.to-footer .to-footer-grid{max-width:none;gap:24px clamp(20px,3vw,48px)}
.to-footer .to-footer-grid nav h2{color:#fff;font-size:17px;letter-spacing:-.02em}.to-footer .to-footer-grid nav a{min-height:44px;color:#dceaff}
.to-footer .to-footer-brand{padding-bottom:22px}.to-footer .to-footer-social a{color:#fff;border-radius:10px;min-height:44px}
.to-footer .to-footer-newsletter{border-radius:18px;min-width:0}.to-footer .to-footer-newsletter>*{min-width:0;max-width:100%}
.to-footer .to-footer-bottom{max-width:none;margin-top:24px;border-top:1px solid #ffffff30;padding-top:16px}
@media(min-width:1024px){.to-header .to-toggle{display:none}.to-header .to-nav>ul{flex-wrap:wrap;justify-content:flex-end}.to-header .to-nav>ul>li>.sub-menu{width:min(580px,100%)}.to-footer .to-footer-grid{grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr))}}
@media(max-width:1023px){.to-header .to-bar{min-height:72px}.to-header .to-nav{flex:1 0 100%;max-width:100%}.to-header .to-nav>ul>li>.sub-menu{max-width:100%;width:100%}}
@media(max-width:639px){.to-header .to-brand-lockup{font-size:18px;gap:6px}.to-header .to-bar{gap:6px}.to-header .to-search button{flex:1 0 100%}.to-footer .to-footer-grid{grid-template-columns:minmax(0,1fr);gap:8px}.to-footer .to-footer-grid nav{padding:8px 0}.to-footer .to-footer-bottom ul{gap:0 14px}.to-footer .to-footer-bottom nav a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.to-header *,.to-footer *{transition:none!important}}
