/* YARLSRI WEATHER mobile menu: button belongs to header, never floats over forecast */
.yb-mobile-menu-btn,.yb-mobile-menu{display:none}
@media(max-width:900px){
 html,body{overflow-x:hidden}
 body>header{position:relative!important;z-index:1001!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px 14px!important;box-sizing:border-box!important;height:auto!important;min-height:0!important}
 body>header .brand{flex:1 1 100%!important;min-width:0!important}
 body>header nav{display:none!important}
 body>header .langs{flex:1 1 auto!important;min-width:0!important}
 .yb-mobile-menu-btn{display:inline-flex!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:#ffd12c!important;color:#09274a!important;border:1px solid #f8d75d!important;border-radius:12px!important;padding:11px 14px!important;font-size:16px!important;font-weight:800!important;line-height:1.2!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap!important;margin:0!important;max-width:100%!important}
 .yb-mobile-menu-btn[aria-expanded="true"]{background:#fff0ad!important}
 .yb-mobile-menu[hidden]{display:none!important}
 .yb-mobile-menu:not([hidden]){display:flex!important;flex-direction:column!important;position:absolute!important;top:calc(100% - 1px)!important;right:12px!important;left:12px!important;bottom:auto!important;width:auto!important;max-height:min(65dvh,480px)!important;overflow-y:auto!important;z-index:1002!important;background:#082c55!important;border:1px solid #3d7ca9!important;border-radius:0 0 14px 14px!important;padding:10px!important;box-shadow:0 16px 45px #000b!important}
 .yb-mobile-menu a{display:block!important;padding:13px 12px!important;color:#fff!important;text-decoration:none!important;font-size:16px!important;font-weight:650!important;border-bottom:1px solid #ffffff20!important}
 .yb-mobile-menu a:last-child{border-bottom:0!important}
 .yb-mobile-menu a:focus-visible,.yb-mobile-menu-btn:focus-visible{outline:3px solid #fff!important;outline-offset:2px!important}
 body>.layout{padding-top:0!important;margin-top:0!important}
}
@media(min-width:901px){.yb-mobile-menu-btn,.yb-mobile-menu{display:none!important}}

/* 2026-11-11: compact mobile header, language switcher and menu on one row */
@media (max-width:900px){
 body>header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:8px!important;
  row-gap:7px!important;
  align-items:center!important;
  padding:9px 12px!important;
 }
 body>header .brand{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
 }
 body>header .langs{
  grid-column:1!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:space-around!important;
  gap:2px!important;
  padding:3px!important;
  box-sizing:border-box!important;
 }
 body>header .langs button,body>header .langs a{
  min-width:0!important;
  padding:7px 5px!important;
  font-size:clamp(11px,3.2vw,15px)!important;
  line-height:1.25!important;
  white-space:nowrap!important;
 }
 body>header .yb-mobile-menu-btn{
  grid-column:2!important;
  justify-self:end!important;
  align-self:center!important;
  padding:10px 9px!important;
  font-size:clamp(12px,3.4vw,15px)!important;
  gap:4px!important;
  border-radius:10px!important;
  width:auto!important;
  min-width:0!important;
 }
 body>header .yb-mobile-menu:not([hidden]){
  grid-column:1/-1!important;
  left:10px!important;
  right:10px!important;
 }
}

/* Mobile header final: language group and menu button share one row */
@media(max-width:900px){
 body>header{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 8px!important;padding:9px 12px!important;align-items:center!important;min-height:0!important;height:auto!important}
 body>header .brand{grid-column:1/-1!important;grid-row:1!important;margin:0!important;min-width:0!important}
 body>header .langs{grid-column:1!important;grid-row:2!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important}
 body>header .langs .language-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important;gap:2px!important;padding:3px!important;box-sizing:border-box!important}
 body>header .langs button{font-size:clamp(11px,3vw,15px)!important;padding:7px 5px!important;min-width:0!important;white-space:nowrap!important}
 body>header #ybMobileMenuBtn{grid-column:2!important;grid-row:2!important;display:inline-flex!important;position:static!important;justify-self:end!important;align-self:center!important;margin:0!important;padding:9px 10px!important;white-space:nowrap!important;font-size:clamp(12px,3.4vw,15px)!important;z-index:2!important}
 body>header #ybMobileMenu{grid-column:1/-1!important;grid-row:3!important;position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;max-height:55dvh!important;overflow:auto!important;box-sizing:border-box!important;margin:0!important;border-radius:12px!important;box-shadow:0 12px 26px #0006!important}
 body>header #ybMobileMenu[hidden]{display:none!important}
 body>header #ybMobileMenu:not([hidden]){display:flex!important;flex-direction:column!important}
 body>.layout{margin-top:0!important;padding-top:0!important}
 main .search{display:flex!important;align-items:stretch!important;gap:8px!important;margin-top:0!important;margin-bottom:12px!important;min-height:0!important}
 main .search input{min-width:0!important;flex:1 1 auto!important;width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;font-size:15px!important;box-sizing:border-box!important}
 main .search button{flex:0 0 auto!important;height:44px!important;min-height:44px!important;padding:8px 14px!important;font-size:15px!important;box-sizing:border-box!important}
}
@media(max-width:360px){body>header{padding:8px!important;column-gap:5px!important}body>header .langs button{font-size:11px!important;padding:7px 3px!important}body>header #ybMobileMenuBtn{font-size:12px!important;padding:8px!important}}

/* Language buttons closer together on mobile; leave menu/search unchanged */
@media (max-width:900px){
 body>header .langs .language-switch{
  justify-content:flex-start!important;
  gap:clamp(3px,1vw,8px)!important;
 }
 body>header .langs .language-switch button{
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  padding-left:clamp(5px,1.8vw,9px)!important;
  padding-right:clamp(5px,1.8vw,9px)!important;
 }
}

/* 2026-11-11: slightly larger language text and breathing room above search */
@media (min-width:361px) and (max-width:900px){
 body>header .langs .language-switch button,
 body>header .langs .language-switch a{font-size:clamp(15px,3.9vw,18px)!important;font-weight:700!important;line-height:1.3!important;padding:8px 6px!important;}
 body>header .langs .language-switch{gap:clamp(2px,.7vw,6px)!important;}
}
@media (max-width:900px){
 body>.layout main .search,main .search{margin-top:12px!important;}
}
@media (max-width:360px){
 body>header .langs .language-switch button,body>header .langs .language-switch a{font-size:13px!important;padding:7px 3px!important;}
}
