/* gtg-mobile-fix.css - phone-width layout fixes (stage plat/_dev/mobile_fix.py, linked last in <head> of every page).
   Layout only. Every visual rule sits under max-width:1023px, so the desktop design is untouched. */

/* 1) navigation drawer of the unified header - same rules as assets/gtg-band.css, which pages using gtg.css never load */
.gtg-mnav{position:fixed;inset:0;z-index:9999;font-family:Cairo,Tahoma,sans-serif}
.gtg-mnav[hidden]{display:none}
.gtg-mnav-bg{position:absolute;inset:0;background:#081812b3;opacity:0;transition:opacity .25s}
.gtg-mnav-panel{position:absolute;top:0;bottom:0;inset-inline-end:0;width:min(330px,86vw);background:#fbfbfb;box-shadow:0 0 40px #0005;padding:16px;display:flex;flex-direction:column;gap:4px;overflow:auto;transform:translateX(100%);transition:transform .3s ease}
[dir=rtl] .gtg-mnav-panel{transform:translateX(-100%)}
.gtg-mnav.in .gtg-mnav-bg{opacity:1}
.gtg-mnav.in .gtg-mnav-panel{transform:none}
.gtg-mnav-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#123629;font-size:18px}
.gtg-mnav-top button{width:38px;height:38px;border-radius:50%;border:1px solid #d6dbd9;background:#fff;color:#123629;font-size:22px;cursor:pointer}
.gtg-mnav-panel a{display:block;text-decoration:none;color:#123629;font-weight:700;font-size:15.5px;padding:11px 12px;border-radius:12px}
.gtg-mnav-panel a:hover{background:#e9e9e9}
.gtg-mnav-panel a.cta{background:#d51128;color:#fff;text-align:center;margin-top:10px}
.gtg-mnav-panel a.acc{border:1.5px solid #123629;text-align:center;margin-top:6px}
.gtg-mnav-panel a.lang{text-align:center;color:#cf1127;margin-top:6px}

@media (max-width:1023px){
  /* 2) header: comfortable tap targets (language switch, menu button, drawer close) */
  div.gtg-uh .uh-act a.uh-lang{min-width:40px;min-height:40px;justify-content:center}
  div.gtg-uh .uh-act button.uh-menu{min-width:42px;min-height:42px;justify-content:center}
  header.isnad-launch-nav button[aria-controls="public-mobile-navigation"]{min-width:42px;min-height:42px}
  .gtg-mnav-top button{width:42px;height:42px;flex:none}
  .gtg-mnav-panel{overscroll-behavior:contain;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .gtg-mnav{z-index:2147483600}   /* above the floating WhatsApp / assistant buttons, which covered the drawer's last links */
  /* 3) company pages: the hidden "skip to content" link sat 999px outside the page and widened it on browsers without overflow:clip */
  .co-skip:not(:focus){inset-inline-start:0!important;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

@media (max-width:760px){
  /* 4) home - tenders showcase: the side panels row grew to its content (519px on a 390px screen) and was cut by the page */
  #gcc-tenders-showcase .gt-layout>*{min-width:0!important;max-width:100%!important}
  #gcc-tenders-showcase .gt-sidebar{align-self:stretch!important;max-width:calc(100% + 8px)!important;box-sizing:border-box}
  #gcc-tenders-showcase .gt-panel{overflow:hidden}
  #gcc-tenders-showcase .gt-panel *{min-width:0;overflow-wrap:anywhere}
  /* 5) home - hero search card: type tabs wrap inside the card, sector / region selects take the full row */
  .gcc-search-row-new>*{min-width:0;max-width:100%}
  .gcc-search-types{flex:1 1 100%!important;max-width:100%!important;flex-wrap:wrap!important;justify-content:flex-start}
  .gcc-search-row-new select{flex:1 1 100%!important;width:100%!important;max-width:100%!important}
  /* 6) home - market cards (2 per row on phones): the caption no longer runs under the arrow */
  .market-card [class*="justify-between"]{gap:8px}
  .market-card [class*="justify-between"]>span:first-child{min-width:0;letter-spacing:.02em;font-size:11px;line-height:1.35}
  .market-card [class*="justify-between"]>span:last-child{flex:none}
  .market-card .p-5{padding:14px}
}
