/* Shared portal header, including the first HTML paint. */
.portal-top{background:#f6f8fc;border-bottom:1px solid #edf1f7;color:#6c7f99}.portal-top>.wrap{min-height:29px}.portal-top .wrap>span{font-size:10px;letter-spacing:.055em}.portal-top .wrap>div{gap:21px}.portal-top button{font-size:10px;color:#6b7f9a}.portal-top .lang{border:0;border-left:1px solid #dbe4f0;border-radius:0;padding:0 0 0 18px;font-weight:600;min-height:16px;color:#31537d}.header{background:#fff;border-bottom:1px solid #dce6f3;box-shadow:0 2px 9px #123b7003;position:relative;z-index:35}.header>.nav{display:grid;grid-template-columns:minmax(240px,1fr) auto;grid-template-rows:74px 48px;gap:0 24px;align-items:center;min-height:0;padding-top:0;flex-wrap:unset}.header .brand{grid-column:1;grid-row:1;gap:11px;min-width:0;width:max-content}.header .brand img{width:46px;height:46px;filter:drop-shadow(0 3px 4px #0d4c9b14)}.header .brand>span{display:flex;flex-direction:column;gap:5px}.header .brand strong{font-size:26px;font-weight:750;line-height:1;letter-spacing:-.7px;color:#17365d}.header .brand b{font-size:17px;font-weight:650;letter-spacing:1.1px;margin-left:8px;vertical-align:2px}.header .brand small{font-size:8px;font-weight:600;color:#7e94b0;letter-spacing:2.2px;line-height:1.2}.header .navactions{grid-column:2;grid-row:1;margin:0;padding:0;display:flex;justify-content:flex-end;min-width:0}.header .account-actions{display:flex;align-items:center;gap:14px;font-size:12px;min-width:0}.header .account-message,.header .account-application{border:0;background:none;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 0;color:#546e91;font-size:12px;line-height:1.3;white-space:nowrap;position:relative;border-radius:0}.header .account-message .icon,.header .account-application .icon{width:18px;height:18px;stroke-width:1.6}.header .account-application{padding-right:15px;border-right:1px solid #e2e8f3}.header .account-message.active,.header .account-application.active{color:#1761d4}.header .account-message:hover,.header .account-application:hover{color:#1761d4;background:none}.header .account-auth{display:flex;align-items:center;gap:9px;margin-left:1px}.header .account-login,.header .account-register{border-radius:8px;font-size:12px;min-height:34px;padding:8px 13px}.header .account-login{background:none;color:#28466f;border:0}.header .account-register{background:#185fd0;color:white;border:1px solid #185fd0}.header .account-user{border:1px solid #e4ebf5;background:#f9fbfe;border-radius:22px;padding:5px 10px 5px 5px;display:flex;align-items:center;gap:8px;cursor:pointer;min-height:38px;color:#2a4669;font-size:12px;list-style:none}.header .account-user::-webkit-details-marker{display:none}.header .account-user .account-avatar{width:28px;height:28px;background:#e4edfc;color:#1657bc;border:1px solid #d5e4fb;border-radius:50%;font-size:12px;display:grid;place-items:center;font-weight:700}.header .account-user .account-username{max-width:110px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-weight:600}.account-chevron{width:15px;height:15px;fill:none;stroke:#7991b0;stroke-width:1.8}.account-dropdown{position:relative}.account-dropdown[open] .account-chevron{transform:rotate(180deg)}.account-dropdown-panel{position:absolute;right:0;top:calc(100% + 12px);width:235px;border:1px solid #dde6f3;border-radius:13px;padding:15px 8px 8px;background:white;box-shadow:0 12px 36px #1c3e6b20;z-index:90}.account-dropdown-panel>span,.account-dropdown-panel>strong{display:block;margin:0 10px}.account-dropdown-panel>span{font-size:10px;color:#7890ab}.account-dropdown-panel>strong{font-size:13px;margin-block:6px 12px;overflow-wrap:anywhere}.account-dropdown-panel>button{display:block;text-align:left;font-size:12px;padding:11px 10px;border:0;border-radius:6px;background:none;width:100%;color:#325174}.account-dropdown-panel>button:hover{background:#f0f5fe;color:#175fd0}.account-dropdown-panel>button:last-child{color:#778ba3;border-top:1px solid #edf1f6;border-radius:0;margin-top:3px}.header .navlinks{grid-column:1/-1;grid-row:2;display:flex;order:unset;width:100%;height:48px;gap:0;justify-content:space-between;align-items:stretch;margin:0;border-top:1px solid #f0f3f8;overflow:visible}.header .navlink{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;font-size:12px;font-weight:550;line-height:1.25;color:#536c8e;border:0;border-radius:0;background:none;white-space:nowrap}.header .navlink:first-child{padding-left:0}.header .navlink:last-child{padding-right:0}.header .navlink:hover{color:#145dc9;background:none}.header .navlink.active{color:#145dc9;background:none;font-weight:700}.header .navlink.active:after{content:"";position:absolute;height:3px;left:10px;right:10px;bottom:0;border-radius:3px 3px 0 0;background:#1761d4}.header .navlink:first-child.active:after{left:0}.header .nav-menu-toggle{display:none}.header .unread-badge{font-size:9px;min-width:16px;height:16px;padding:1px 4px}.admission-consult{align-self:flex-start;font-size:12px;margin:0 0 2px}
@media(min-width:1450px){.header .navlink{font-size:13px}.header .account-actions{font-size:13px;gap:18px}.header .account-message,.header .account-application,.header .account-user{font-size:13px}}
@media(max-width:1000px){.header .navlink{font-size:11px;padding-inline:6px}.header>.nav{gap:0 14px}.header .account-actions{gap:12px}.header .account-application{padding-right:12px}}
@media(max-width:900px){.portal-top .wrap>span{max-width:46%;font-size:8px;letter-spacing:0}.portal-top .wrap>div{gap:13px}.portal-top button{font-size:9px}.header>.nav{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:70px;gap:0 11px;padding-bottom:0}.header .brand{gap:9px}.header .brand img{width:39px;height:39px}.header .brand strong{font-size:23px}.header .brand b{font-size:14px;margin-left:4px;letter-spacing:0;vertical-align:1px}.header .brand small{font-size:7px;letter-spacing:1.5px}.header .navactions{grid-column:2}.header .nav-menu-toggle{display:inline-flex;grid-column:3;grid-row:1;align-items:center;justify-content:center;border:1px solid #dfe7f3;border-radius:8px;background:#fff;min-height:37px;width:39px;padding:8px;font-size:0;color:#31587f;gap:0}.header .nav-menu-toggle .icon{width:19px;height:19px}.header .navlinks{display:none;grid-column:1/-1;grid-row:2;height:auto;max-height:70vh;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:12px 0 16px;border-top:1px solid #e9eff8}.header .navlinks.is-open{display:grid}.header .navlink{height:auto;min-height:44px;font-size:13px;padding:10px 12px!important;text-align:left;justify-content:flex-start;border-radius:7px;white-space:normal}.header .navlink.active{background:#edf4ff}.header .navlink.active:after{display:none}.header .account-application{display:none}.header .account-actions{gap:10px}.header .account-message>span:not(.unread-badge){display:none}.header .account-message{min-width:29px;justify-content:center;padding:6px}.header .account-message .unread-badge{position:absolute;right:-4px;top:-1px}.header .account-user{min-height:34px;padding:3px 6px 3px 3px;gap:5px}.header .account-user .account-avatar{width:25px;height:25px;font-size:11px}.header .account-user .account-username{font-size:11px;max-width:70px}.header .account-auth{gap:2px}.header .account-login,.header .account-register{font-size:11px;padding:7px 9px}.header .account-login{padding-inline:3px}}
@media(max-width:440px){.portal-top>.wrap{min-height:27px}.portal-top .wrap>span{font-size:7px;max-width:50%}.portal-top .wrap>div>button:first-child{display:none}.header>.nav{grid-template-rows:66px;gap:0 7px}.header .brand strong{font-size:21px}.header .brand b{font-size:12px;vertical-align:1px;margin-left:2px}.header .brand small{font-size:6px;letter-spacing:1.1px}.header .brand img{width:35px;height:35px}.header .brand{gap:7px}.header .account-actions{gap:5px}.header .account-user .account-username{max-width:54px;font-size:10px}.account-chevron{width:11px}.header .account-message{min-width:24px;padding:3px}.header .nav-menu-toggle{width:33px;min-height:34px;padding:6px}.header .account-register{padding:7px 8px;font-size:10px}.header .account-login{font-size:10px}.account-dropdown-panel{right:-35px}.header .account-user{padding-right:5px}.header .account-auth{gap:4px}}
@media(max-width:355px){.header>.nav{gap:0 5px}.header .brand img{width:30px;height:30px}.header .brand strong{font-size:19px}.header .brand b{font-size:10px}.header .brand small{font-size:5px}.header .account-user .account-username{max-width:42px}.header .account-auth{gap:1px}.header .account-register{padding-inline:6px}.header .account-actions{gap:3px}.header .account-user .account-avatar{width:22px;height:22px}}

@media(max-width:355px){.header .brand b{display:none}}
/* Footer: small, quiet typography with one alignment edge for each column. */
.footer{padding:30px 0}.footer .footer-inner{display:grid;grid-template-columns:minmax(215px,.9fr) minmax(0,1.65fr) minmax(135px,.55fr);column-gap:45px;row-gap:22px;align-items:start}.footer .brand{margin:0;align-items:center;gap:11px;min-width:0}.footer .brand strong{font-size:19px;line-height:1.3}.footer .brand b{font-size:13px}.footer .brand img{width:37px;height:37px;flex-shrink:0}.footer .brand small{font-size:7px;line-height:1.5;letter-spacing:2px;margin-top:5px}.footer .footer-inner>p{max-width:none;font-size:10px;line-height:1.9;margin:0;padding-top:1px;overflow-wrap:anywhere}.footer .footer-inner>nav{display:flex;flex-direction:column;align-items:flex-start;justify-self:end;gap:8px;margin:0;padding:0;min-width:0}.footer .footer-inner>nav>a,.footer .footer-inner>nav>button{display:block;width:auto;min-height:0;margin:0;padding:0;border:0;font-family:inherit;font-size:11px;font-weight:400;line-height:1.9;text-align:left;white-space:normal;color:#b5c8e4;text-decoration:none}.footer .footer-inner>nav>a:hover,.footer .footer-inner>nav>button:hover{color:white;text-decoration:underline}
@media(max-width:760px){.footer{padding:25px 0}.footer .footer-inner{grid-template-columns:1fr;gap:18px}.footer .footer-inner>p{font-size:9px;line-height:1.9;padding:0}.footer .footer-inner>nav{justify-self:start;flex-direction:row;flex-wrap:wrap;gap:10px 22px}.footer .footer-inner>nav>a,.footer .footer-inner>nav>button{font-size:10px;line-height:1.9}.footer .brand strong{font-size:18px}}

/* StudyLink wordmark: keep the full aspect ratio at every header size. */
.header .brand img.brand-wordmark{width:216px;height:72px;object-fit:contain;filter:none;max-width:100%}
.footer .brand-on-dark{color:#fff;gap:12px}.footer .brand-on-dark img{width:48px;height:48px;object-fit:contain}.footer .brand-on-dark strong{color:#fff;font-size:23px;letter-spacing:2px}.footer .brand-on-dark small{color:#c8d9eb;font-size:8px;letter-spacing:1.3px;margin-top:4px}
@media(max-width:900px){.header .brand img.brand-wordmark{width:162px;height:54px}.portal-top .wrap>span{line-height:1.5}}
@media(max-width:355px){.header .brand img.brand-wordmark{width:138px;height:46px}.footer .brand-on-dark strong{font-size:21px}}

/* On narrow screens give the wordmark its own row; long Vietnamese account
   actions must never squeeze it into the remaining fraction of the grid. */
@media(max-width:600px){
 .header>.nav{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:66px auto;gap:0 10px}
 .header .brand{grid-column:1;grid-row:1;width:max-content;max-width:100%}
 .header .brand img.brand-wordmark{width:180px;height:60px;max-width:none}
 .header .nav-menu-toggle{grid-column:2;grid-row:1}
 .header .navactions{grid-column:1/-1;grid-row:2;width:100%;justify-content:flex-end;border-top:1px solid #f0f3f8;padding:5px 0 7px}
 .header .account-actions{gap:12px}.header .account-message>span:not(.unread-badge){display:inline}
 .header .account-message{font-size:11px;gap:5px}.header .account-login,.header .account-register{font-size:11px;padding:7px 10px}
 .header .account-user .account-username{max-width:140px}.header .navlinks{grid-row:3}
}

/* The primary site now has two tools and one external learning entrance. */
@media(min-width:901px){.header .navlinks{display:flex;justify-content:center;gap:58px}.header .navlink{flex:0 1 auto;min-width:110px;text-align:center}}
