/* Main horizontal menu under the header (overrides theme .main-navigation) */
/* Header + menu stay pinned while scrolling */
.site-sticky{position:-webkit-sticky;position:sticky;top:0;z-index:999;margin-bottom:30px}
.admin-bar .site-sticky{top:32px}
/* theme's overflow:hidden on #page disables sticky; clip keeps horizontal overflow hidden without that */
#page.site{overflow:visible;overflow-x:clip}
#site-navigation.main-navigation{display:block;background-color:#2b1a66;border-top:1px solid rgba(255,255,255,.12);box-shadow:0 6px 16px rgba(0,0,0,.25);margin-bottom:0}
#site-navigation.main-navigation .main-navigation-inner{padding-left:30px;padding-right:30px}
#site-navigation.main-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;padding:0;list-style:none}
#site-navigation.main-navigation ul li{margin:0}
#site-navigation.main-navigation ul li>a{display:flex;align-items:center;min-height:46px;padding:0 22px;font-size:15px;line-height:1.2;font-weight:700;color:#fff;text-decoration:none;transition:color .2s}
#site-navigation.main-navigation ul li:first-child>a{padding-left:0}
#site-navigation.main-navigation ul li>a:before{display:none}
#site-navigation.main-navigation ul li>a:hover,
#site-navigation.main-navigation ul li>a:focus-visible{color:#1db954}
#site-navigation.main-navigation ul li>a[aria-current="page"]{color:#fff;box-shadow:inset 0 -3px 0 #1db954}
#site-navigation.main-navigation ul li>a[aria-current="page"]:hover{color:#1db954}
/* Sidebar banners: pin below the sticky header (187px) instead of the theme's JS top:20px,
   and scale the two 300px banners so the whole block (+83px button/gaps) fits the viewport */
@media (min-width:768px){
  #secondary .js-sticky-sidebar{position:-webkit-sticky!important;position:sticky!important;top:203px!important;width:auto!important;transform:none!important}
  #secondary .js-sticky-sidebar .widget_media_image img{display:block;width:min(300px,calc((100vh - 302px) / 2));min-width:160px;height:auto;margin:0 auto}
  #secondary .js-sticky-sidebar #block-33{margin-bottom:10px}
  .mobile-banners{display:none}
}
/* Mobile copy of the sidebar banners inside the article (the theme hides the sidebar on phones) */
@media (max-width:767px){
  .mobile-banners{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:300px;margin:24px auto 28px}
  .mobile-banners__img{display:block;width:100%;line-height:0}
  .mobile-banners__img img{display:block;width:100%;height:auto;border-radius:6px}
  .mobile-banners .wp-block-buttons{width:100%;margin:0 0 14px}
  .mobile-banners .wp-block-button{width:100%;margin:0}
}
/* The menu is always visible, so the (empty) theme hamburger and its mobile clone are not needed */
.js-humburger,.js-mobile-menu-placeholder{display:none!important}
@media (max-width:767px){
  /* compact one-row header so the pinned block doesn't eat a third of the screen */
  .site-sticky{margin-bottom:20px}
  #masthead{padding-top:0;padding-bottom:0}
  #masthead .site-header-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px;min-height:0}
  #masthead .site-branding{flex:0 0 auto;margin:0;padding:0;text-align:left}
  #masthead .site-logotype{margin:0}
  #masthead .site-logotype img{width:auto;height:48px;max-width:none}
  #masthead .header-html-2{flex:0 1 auto;margin:0;padding:0}
  #masthead .header-html-2 .wp-block-buttons{flex-wrap:nowrap;gap:8px;margin:0}
  #masthead .header-html-2 .wp-block-button{margin:0}
  #masthead .header-html-2 .wp-block-button__link{font-size:14px!important;padding:9px 14px;white-space:nowrap}
  #site-navigation.main-navigation .main-navigation-inner{padding-left:20px;padding-right:20px}
  #site-navigation.main-navigation ul li>a{min-height:42px;padding:0 16px;font-size:14px}
  #site-navigation.main-navigation ul li:first-child>a{padding-left:0}
}
