/* Kerr University PT/ES header (2026-10-08). Loaded last in <head> on /pt-br/ and /es-co/ pages only.
   Goal: the gold free-class button is always fully visible at every desktop width (1024-1920). */
header.site .nav .btn,header.site .nav [class*="btn"]{white-space:nowrap;flex-shrink:0}
header.site .nav-links a{white-space:nowrap}
header.site .ku-theme-toggle .ku-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* globe language dropdown */
.ku-lang-dd{position:relative;flex-shrink:0;margin-right:.5rem}
.ku-lang-dd>summary{list-style:none;display:inline-flex;align-items:center;gap:.3rem;cursor:pointer;padding:.38rem .6rem;border:1px solid var(--line,rgba(28,23,20,.14));
  border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.04em;color:var(--ink-soft,#3a322c);user-select:none}
.ku-lang-dd>summary::-webkit-details-marker{display:none}
.ku-lang-dd>summary::after{content:"";width:.38em;height:.38em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:.15rem}
.ku-lang-dd>summary:hover,.ku-lang-dd[open]>summary{color:var(--crimson,#7d1418);border-color:var(--crimson,#7d1418)}
.ku-lang-dd>summary:focus-visible{outline:2px solid var(--crimson,#7d1418);outline-offset:2px}
.ku-lang-dd .ku-lang-switch,.nav .ku-lang-dd .ku-lang-switch,header .nav .ku-lang-dd .ku-lang-switch{display:flex!important;flex-direction:column;align-items:stretch;gap:2px;position:absolute;right:0;top:calc(100% + 8px);
  min-width:9.5rem;margin:0;padding:.35rem;border:1px solid var(--line,rgba(28,23,20,.14));border-radius:12px;background:var(--paper,#fbf7ef);box-shadow:0 14px 34px rgba(20,14,12,.18);z-index:60}
.ku-lang-dd .ku-lang-switch a{display:block;padding:.5em .8em;border-radius:8px;text-align:left;font-size:.85rem}
.ku-lang-dd .ku-lang-switch a[hreflang="en"]::after{content:" · English";font-weight:500;opacity:.75}
.ku-lang-dd .ku-lang-switch a[hreflang="es"]::after,.ku-lang-dd .ku-lang-switch a[hreflang="es"]::after{content:" · Español";font-weight:500;opacity:.75}
.ku-lang-dd .ku-lang-switch a[hreflang="pt-BR"]::after{content:" · Português";font-weight:500;opacity:.75}
html[data-theme="dark"] .ku-lang-dd>summary{color:rgba(247,241,227,.85)}
html[data-theme="dark"] .ku-lang-dd .ku-lang-switch{background:#1d1a17;border-color:rgba(227,201,135,.25)}
/* spacing: tighten progressively */
@media(max-width:1440px){header.site .nav{gap:.9rem}header.site .nav-links>a[href="/pt-br/"],header.site .nav-links>a[href="/es-co/"]{display:none}}
@media(max-width:1366px){header.site .nav-links>a,header.site .nav-links .has-sub>button,header.site .nav-links>.has-sub>a{padding-left:.5em;padding-right:.5em}
  header.site .nav-links>a[href$="/book.html"]:not([class*="btn"]){display:none}}
@media(max-width:1240px){header.site .nav{gap:.6rem}header.site .nav-links>a,header.site .nav-links .has-sub>button,header.site .nav-links>.has-sub>a{padding-left:.4em;padding-right:.4em;font-size:.9rem}
  header.site .nav-links .ku-en-tag{display:none}}
/* phones/tablets: the language choice lives in the mobile menu; keep brand + CTA + menu button inside the screen */
@media(max-width:760px){body:has(#mobileMenu) .ku-lang-dd,body:has(#navMobile) .ku-lang-dd{display:none!important}}
@media(max-width:480px){
  header.site .nav,header.site .wrap.nav{gap:.45rem}
  header.site .brand{min-width:0;flex-shrink:1}
  header.site .nav .btn,header.site .nav [class*="btn"]{padding:.55em .85em;font-size:.82rem;min-height:0}
  header.site .ku-theme-toggle{flex-shrink:0}
  header.site .hamburger{flex-shrink:0}
}
@media(max-width:440px){header.site .brand b span,header.site .brand small,header.site .brand .tag{display:none}}
/* language switch pill in menus of templates that shipped without one (VIP, Global Reach, Study Support, Online Courses) */
:is(.mobile-menu,.nav-mobile) .ku-lang-switch[data-ku-built]{display:inline-flex;align-self:flex-start;align-items:center;gap:.15rem;width:auto;margin:.9rem 0 .3rem;border:1px solid var(--line,rgba(28,23,20,.14));border-radius:999px;padding:.2rem;font-size:.82rem;font-weight:700;letter-spacing:.04em}
:is(.mobile-menu,.nav-mobile) .ku-lang-switch[data-ku-built] a{display:inline-block;text-decoration:none;color:var(--ink-soft,#3a322c);padding:.35em .8em;border-radius:999px;border:0;margin:0}
:is(.mobile-menu,.nav-mobile) .ku-lang-switch[data-ku-built] a[aria-current]{background:var(--crimson,#7d1418);color:#fff}
html[data-theme="dark"] :is(.mobile-menu,.nav-mobile) .ku-lang-switch[data-ku-built] a:not([aria-current]){color:rgba(247,241,227,.82)}
/* menu built for templates that had a menu button but no menu (Study Support) */
.ku-mm{display:none}
@media(max-width:1180px){
  .ku-mm.open{display:flex;flex-direction:column;gap:.2rem;position:fixed;left:0;right:0;bottom:0;top:75px;z-index:999;overflow-y:auto;
    background:var(--paper,#fbf7ef);padding:1.2rem clamp(1.1rem,4vw,2.5rem) 3rem}
  .ku-mm a,.ku-mm .mlabel{padding:.8em .4em;border-bottom:1px solid var(--line,rgba(28,23,20,.12));font-weight:600;font-size:1.02rem;text-decoration:none;color:var(--ink,#1c1714)}
  .ku-mm .mlabel{color:var(--crimson,#7d1418);font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;border:none;margin-top:.8rem}
  .ku-mm .sub{display:flex;flex-direction:column}
  .ku-mm .sub a{padding-left:1.2em;font-weight:400;font-size:.97rem;border-bottom:1px dashed var(--line,rgba(28,23,20,.12))}
  .ku-mm .btn{margin-top:1.2rem;text-align:center;border-bottom:0;justify-content:center}
  html[data-theme="dark"] .ku-mm.open{background:#1d1a17}
  html[data-theme="dark"] .ku-mm a{color:rgba(247,241,227,.9)}
}
@media(min-width:1181px){.ku-mm{display:none!important}}
/* phones: keep decorative/third-party layers from widening the page */
@media(max-width:760px){
  .hero:has(>.ku-crest-halo){position:relative;overflow-x:clip}
  .ti-modal-container{max-width:100vw!important}
}
.nav-inner .ku-lang-dd{margin-right:0}
/* Online Courses template (nav.nav > .nav-inner, .nav-cta): keep the free-class pill on screen at 961-1440px */
nav.nav .nav-inner .nav-cta{flex-shrink:0;white-space:nowrap}
nav.nav .nav-inner .nav-logo{flex-shrink:0}
nav.nav .ku-theme-toggle .ku-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
nav.nav .nav-inner .ku-theme-toggle{flex-shrink:0}
@media(max-width:1440px){nav.nav .nav-links>a[href="/pt-br/"],nav.nav .nav-links>a[href="/es-co/"]{display:none}}
@media(max-width:1366px){nav.nav .nav-links>a[href$="/book.html"]{display:none}}
@media(max-width:1180px){nav.nav .nav-links>a[href$="/blog.html"],nav.nav .nav-links>a[href$="/founder.html"]{display:none}
  nav.nav .nav-links>a,nav.nav .nav-links .nav-dropdown>button{padding-left:7px;padding-right:7px}}
