/* Preserve the English page layouts and typography. */
html:lang(es) .site-header .nav-list{flex-wrap:nowrap}
html:lang(es) .site-header .nav-list a{overflow-wrap:normal}
html:lang(es) .study-wrap,html:lang(es) .rev-copy{overflow-wrap:break-word}
html:lang(es) .history-hero h1{max-width:850px}

/* Spanish labels need more room. Keep 14px links and switch to the compact menu before they touch the logo. */
@media screen and (max-width:1360px){
 html:lang(es) body .site-header{overflow:visible!important;}
 html:lang(es) body .site-header .nav-wrap{width:calc(100% - 32px);gap:12px!important;min-height:84px;}
 html:lang(es) body .site-header .brand{flex:0 1 auto;width:230px;max-width:calc(100% - 64px);}
 html:lang(es) body .site-header .brand img{width:230px!important;}
 html:lang(es) body .site-header .nav-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;margin-left:auto;position:relative;z-index:1002;touch-action:manipulation;}
 html:lang(es) body .site-header nav{flex:0 0 0;min-width:0;}
 html:lang(es) body .site-header .nav-list{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:auto!important;max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain;background:#f7f4ed!important;box-shadow:0 12px 24px rgba(7,63,69,.14);z-index:1001;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;gap:0!important;padding:12px 20px!important;}
 html:lang(es) body .site-header.mobile-menu-open .nav-list{display:flex!important;}
 html:lang(es) body .site-header .nav-list a{padding:12px 4px!important;font-size:14px!important;}
 html:lang(es) body .site-header .nav-list a::after{bottom:6px;}
 html:lang(es) body .site-header .learning-nav-search{width:100%;min-height:44px;font-size:14px;text-align:left;margin-top:6px;}
}
