.migo-language-toggle{flex:0 0 auto!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:98px;min-height:44px;padding:9px 15px!important;margin:0!important;border:2px solid #137889!important;border-radius:999px!important;background:#fff!important;color:#105869!important;font:700 1rem/1.2 system-ui,sans-serif!important;white-space:nowrap;cursor:pointer;box-shadow:none!important}
.migo-language-toggle:hover{background:#dff6f6!important}.migo-language-toggle:focus-visible{outline:3px solid #edb83b;outline-offset:3px}
body>header{flex-wrap:wrap}body>header .header-inner{flex-wrap:wrap}html[lang=es] nav{flex-wrap:wrap}
/* Keep the public account links and language switch inside the same header. */
.site-header .header-inner,body.mq-portal>.mq-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 24px}
.site-header .header-inner{min-height:84px}
.site-header .header-inner>.brand,body.mq-portal>.mq-header>.logo{grid-column:1;grid-row:1}
.site-header .header-inner>.signin-links,body.mq-portal>.mq-header>nav{grid-column:2;grid-row:1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px 20px;width:auto;min-width:0;margin:0;padding:0;border:0;order:0}
.site-header .header-inner>.migo-language-toggle,body.mq-portal>.mq-header>.migo-language-toggle{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:1000px){
 .site-header .header-inner,body.mq-portal>.mq-header{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
 .site-header .header-inner>.migo-language-toggle,body.mq-portal>.mq-header>.migo-language-toggle{grid-column:2}
 .site-header .header-inner>.signin-links,body.mq-portal>.mq-header>nav{grid-column:1/-1;grid-row:2;justify-content:center;border-top:1px solid #d8e5ea;padding-top:8px}
}
@media(max-width:600px){
 .migo-language-toggle{min-width:88px;padding:9px 12px!important}
 .site-header .header-inner>.signin-links,body.mq-portal>.mq-header>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .site-header .signin-links>a,body.mq-portal>.mq-header>nav>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;font-size:.875rem;line-height:1.35;white-space:normal;text-align:center;overflow-wrap:anywhere}
 body.mq-portal>.mq-header>.logo{font-size:1.4rem;gap:6px;min-width:0;white-space:normal}
 body.mq-portal>.mq-header .brand-migo{width:36px;height:40px;flex-shrink:0}
 body.mq-portal.student-dashboard>.mq-header>nav{display:flex}
}
@media print{.migo-language-toggle{display:none!important}}

/* Equal account-access buttons even when one label wraps to two lines. */
@media(max-width:600px){.site-header .header-inner>.signin-links,body.mq-portal>.mq-header>nav{align-items:stretch;grid-auto-rows:1fr}.site-header .signin-links>a,body.mq-portal>.mq-header>nav>a{align-self:stretch;height:100%;min-height:52px;box-sizing:border-box;border:1px solid #9cbeca;border-radius:10px;background:#fff;color:#0b6378;text-decoration:none}.site-header .signin-links>a:hover,body.mq-portal>.mq-header>nav>a:hover{background:#e7f5f8}}
