/* eb-site-core 0.2.3: header fit. The main menu now has 8 top items; the child theme's header
   (eb-nav.css) was sized for 6, so from 1101px to ~1500px the nav pushed the red "Talk to us"
   button off the right edge (page 1414px wide at a 1280px window). Scoped to header.site only. */

/* 1101-1279px: use the burger menu (same rules the child theme applies at <=1100px) */
@media (min-width:1101px) and (max-width:1279px){
  header.site nav.main,header.site .hdr-r .btn,header.site .hdr-r .zhsw{display:none}
  header.site .burger{display:flex;align-items:center;gap:10px;font-family:var(--head);font-weight:500;font-size:15px}
  header.site .burger i{width:22px;height:14px;border-top:2px solid var(--char);border-bottom:2px solid var(--char);position:relative}
  header.site .burger i::after{content:'';position:absolute;left:0;right:0;top:4px;border-top:2px solid var(--char)}
  header.site .wrap{height:72px}
  header.site .logo img{height:46px}
  .mobmenu:not([hidden]){display:block;position:fixed;left:0;right:0;top:72px;bottom:0;overflow:auto;z-index:50;min-height:0;box-shadow:0 -1px 0 var(--cloud)}
  .admin-bar .mobmenu:not([hidden]){top:118px}
  body.mob-open{overflow:hidden}
}

/* 1280px and wider: slightly wider header row and tighter menu spacing so all 8 items and the button fit */
@media (min-width:1280px){
  header.site > .wrap{max-width:1440px;padding-left:24px;padding-right:24px;gap:16px}
  header.site nav.main{gap:0;min-width:0}
  header.site nav.main a.top{font-size:15px;padding:8px 8px}
  header.site nav.main a.top.has::after{margin-left:3px}
}

/* eb-site-core 0.2.5: on right-to-left language pages (Arabic, Farsi) the site header, utility bar,
   mobile menu and footer are still English, so keep them left-to-right. Stops phone numbers,
   addresses and question marks reordering ("9590 396 22 64+", "?overseas"). Page content stays RTL. */
html[dir="rtl"] .util,html[dir="rtl"] header.site,html[dir="rtl"] .mobmenu,html[dir="rtl"] footer.site{direction:ltr;text-align:left}

/* eb-site-core 0.2.6: footer fit on very narrow phones (<=360px). The child theme's two-column footer grid
   (eb-theme.css: footer.site .cols 1fr 1fr, with !important at <=700px) can't shrink below its longest link,
   so at 320px the page was 324px wide (4px sideways wobble). minmax(0,1fr) lets both columns shrink; long
   link text wraps. "html body" + !important beats the theme's !important rule. */
@media (max-width:360px){
  html body footer.site .cols,html body footer.site .cols.cols-zh{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px 16px!important}
  html body footer.site .cols>*{min-width:0;overflow-wrap:break-word}
}
