/* usbji mobile header + layout (boostmedia tmp/usbji-menu, 2026-11-16). Loaded on every Drupal rip page. */

/* 1. Text column fix (same as the theme-CSS append, for pages that do not load that file) */
@media only screen and (max-width:760px){
  body.one-sidebar .l-page .l-main .l-content,
  body.two-sidebars .l-page .l-main .l-content,
  body.not-front.one-sidebar.sidebar-first .l-main > .l-content{width:100%!important;float:none!important;display:block!important;margin-left:0!important;margin-right:0!important;margin-top:1em}
  .l-page .l-region--sidebar-first,
  .l-page aside.l-region--sidebar-second{width:100%!important;float:none!important;display:block!important;margin-left:0!important;margin-right:0!important}
  .l-page aside.l-region--sidebar-second{padding-top:1.5em}
  .l-page aside.l-region--sidebar-second p{margin-left:0!important}
  body.node-type-newsletter .l-main > .l-content div#custom-left-sidebar,
  body.node-type-newsletter .l-main > .l-content .node{width:100%!important;float:none!important}
  .l-page .l-content{overflow-wrap:anywhere}
  .l-page .l-content img{max-width:100%!important;height:auto}
  .l-page .l-content iframe,.l-page .l-content video,.l-page .l-content embed,.l-page .l-content object{max-width:100%!important}
  .l-page .l-content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* 2. New mobile header (only when the script ran: html.umx-on) */
.umx-bar,.umx-search,.umx-nav{display:none}
@media only screen and (max-width:760px){
  html.umx-on header.l-header .l-region--navigation,
  html.umx-on header.l-header .l-region--header{display:none!important}
  html.umx-on header.l-header{padding:0!important;min-height:0!important}
  html.umx-on header.l-header .l-branding{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px!important;height:auto!important;margin:0!important;float:none!important;width:auto!important}
  html.umx-on header.l-header .l-branding .site-logo{display:block;flex:0 1 190px;max-width:190px;width:auto!important;margin:0!important;float:none!important}
  html.umx-on header.l-header .l-branding .site-logo img{display:block;width:100%;height:auto;margin:0}
  html.umx-on .site-slogan{display:none!important}
  html.umx-on .umx-bar{display:flex;gap:8px;flex:0 0 auto}
  .umx-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 12px;border:1px solid rgba(255,255,255,.85);border-radius:8px;background:#2679b9;color:#fff;font:600 16px/1 "Source Sans Pro","Segoe UI",Helvetica,Arial,sans-serif;cursor:pointer;-webkit-appearance:none;appearance:none}
  .umx-btn:focus-visible{outline:3px solid #ffd54a;outline-offset:2px}
  .umx-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
  .umx-btn[aria-expanded="true"]{background:#0b4f85}
  html.umx-on .umx-search[data-open="true"]{display:block;background:#2679b9;padding:12px 16px}
  .umx-search form{display:flex;gap:8px;margin:0}
  .umx-search input[type="search"]{flex:1 1 auto;min-width:0;height:44px;padding:0 12px;border:0;border-radius:8px;font-size:17px;background:#fff;color:#222}
  .umx-search button{height:44px;padding:0 16px;border:0;border-radius:8px;background:#43beab;color:#fff;font:600 16px "Source Sans Pro","Segoe UI",Helvetica,Arial,sans-serif;cursor:pointer}
  html.umx-on .umx-nav[data-open="true"]{display:block;background:#fff;border-top:3px solid #43beab;box-shadow:0 8px 16px rgba(0,0,0,.15)}
  .umx-nav ul{list-style:none;margin:0;padding:0}
  .umx-nav li{margin:0;padding:0;border-bottom:1px solid #e3e8ef;list-style:none}
  .umx-nav li:last-child{border-bottom:0}
  .umx-row{display:flex;align-items:stretch}
  .umx-row a{flex:1 1 auto;display:flex;align-items:center;min-height:50px;padding:6px 16px;color:#1d3d5c;font:600 17px/1.25 "Source Sans Pro","Segoe UI",Helvetica,Arial,sans-serif;text-decoration:none}
  .umx-row a[aria-current="page"]{color:#0077bb;box-shadow:inset 4px 0 0 #43beab}
  .umx-sub{flex:0 0 52px;display:flex;align-items:center;justify-content:center;border:0;border-left:1px solid #e3e8ef;background:transparent;color:#2679b9;cursor:pointer}
  .umx-sub svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
  .umx-sub[aria-expanded="true"] svg{transform:rotate(180deg)}
  .umx-sub:focus-visible,.umx-row a:focus-visible{outline:3px solid #ffd54a;outline-offset:-3px}
  .umx-nav ul ul{display:none;background:#f3f7fb;border-top:1px solid #e3e8ef}
  .umx-nav ul ul[data-open="true"]{display:block}
  .umx-nav ul ul .umx-row a{padding-left:32px;font-weight:400;font-size:16px}
  .umx-nav ul ul ul .umx-row a{padding-left:48px}
  .umx-util{padding:14px 16px 18px;background:#f3f7fb;border-top:1px solid #e3e8ef}
  .umx-util a.umx-public{display:block;padding:12px 14px;margin:0 0 12px;border-radius:8px;background:#43beab;color:#fff;text-align:center;font:600 16px "Source Sans Pro","Segoe UI",Helvetica,Arial,sans-serif;text-decoration:none}
  .umx-social{display:flex;gap:10px;flex-wrap:wrap}
  .umx-social a{flex:1 1 0;display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #c9d6e3;border-radius:8px;color:#1d3d5c;background:#fff;text-decoration:none;font:600 15px "Source Sans Pro","Segoe UI",Helvetica,Arial,sans-serif}
}
