/* KU English header, Online Courses template (nav.nav > .nav-inner > .nav-cta). Webster 2026-10-08.
   Digby's rule: the gold Free Class button is always fully visible, desktop and phone. Tightens progressively below 1240px. */
nav.nav .nav-inner .nav-cta{flex-shrink:0;white-space:nowrap}
nav.nav .nav-inner .nav-logo{flex-shrink:0}
nav.nav .nav-inner .ku-theme-toggle{flex-shrink:0}
nav.nav .nav-links{min-width:0}
@media(max-width:1240px){
  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-links>a,nav.nav .nav-links .nav-dropdown>button{padding-left:7px;padding-right:7px}}
@media(max-width:1180px){nav.nav .nav-links>a[href$="/book.html"]{display:none}}
@media(max-width:1023px){nav.nav .nav-links>a[href$="/blog.html"],nav.nav .nav-links>a[href$="/founder.html"]{display:none}}
/* Work With Digby header (header.site template): keep the Free Class button on the first row at 761-1366px. Webster 2026-10-08 */
@media(min-width:761px) and (max-width:1366px){
  header.site{flex-wrap:nowrap;gap:.7rem}
  header.site .brand,header.site>a.btn{flex-shrink:0;white-space:nowrap}
  header.site .nav-links{flex-wrap:nowrap;gap:.75rem;font-size:.86rem;white-space:nowrap;min-width:0}
  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}
  header.site .nav-links>a[href="book.html"]{display:none}}
@media(min-width:1024px) and (max-width:1180px){header.site .nav-links>a[href="/daily-news/"],header.site .nav-links>a[href="books.html"]{display:none}}
@media(min-width:761px) and (max-width:1023px){
  header.site{flex-wrap:wrap}
  header.site .nav-links{order:3;width:100%;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding-top:6px}}
/* Daily News home (div.nav > .home-cta) */
.nav .home-cta{flex-shrink:0;white-space:nowrap}
@media(max-width:1240px){.nav:has(.home-cta) .ku-theme-toggle .ku-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media(min-width:900px) and (max-width:1180px){.nav:has(.home-cta) .nav-links>a[href$="/book.html"]{display:none}}
/* Affiliates page: the Free Class button stays in the header when the links collapse into the Menu (<=1080px) */
@media(max-width:1080px){.affiliate-page header.site .nav>.btn{display:inline-flex!important;flex-shrink:0;white-space:nowrap;margin-left:auto}}
@media(max-width:480px){.affiliate-page header.site .nav>.btn{padding:.55em .9em;font-size:.85rem}.affiliate-page header.site .brand b span{display:none}}
/* Phones: brand + Free Class + menu button always fit (Books, Global Reach, VIP and Study Support templates). */
@media(max-width:480px){
  header .wrap.nav{gap:.45rem}
  header .wrap.nav .brand{min-width:0;flex-shrink:1}
  header .wrap.nav .brand b span{display:none}
  header .wrap.nav>.btn{white-space:nowrap;flex-shrink:0;padding:.55em .85em;font-size:.84rem;min-height:0;line-height:1.2}
  header .wrap.nav .hamburger,header .wrap.nav .ku-theme-toggle{flex-shrink:0}
}

/* Daily News phones: keep brand + Free Class + menu button inside 360px. */
@media(max-width:480px){header.site .nav:has(.home-cta){gap:.6rem}header.site .nav:has(.home-cta) .hamburger{flex-shrink:0}}
