/* Kelbrix mega menu (desktop >1100px). Replaces the small hover dropdowns with big "scroll-down layers".
   Applications = multi-column list with descriptions. Technologies / Customers / Industries / Resources =
   intro + button | numbered list | image card. Mobile (<=1100px) keeps the normal hamburger menu. */
@media (min-width:1101px){
  html:root body:not(#kxz) #mainHeader .navitem .dropdown{display:none !important}
  html:root body:not(#kxz) #mainHeader .navitem.kxm-on > .navlink{background:rgba(201,162,39,.14) !important;border-radius:999px !important}
  html:root body:not(#kxz) #mainHeader .navitem.kxm-on > .navlink .arrow{display:inline-block;transform:rotate(180deg)}
  html:root body:not(#kxz) #mainHeader .navlink .arrow{transition:transform .2s ease}
}
html:root body:not(#kxz) #kxMega{display:none}
@media (min-width:1101px){
  html:root body:not(#kxz) #kxMega{
    display:block;position:fixed;z-index:1003;top:76px;left:50%;width:min(1120px,calc(100vw - 140px));
    background:rgba(255,253,247,.985);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
    border:1px solid rgba(201,162,39,.38);border-radius:22px;color:#1d1810;
    box-shadow:0 34px 90px rgba(29,24,16,.24),0 2px 0 rgba(255,255,255,.8) inset;
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);
    transition:opacity .18s ease,transform .22s cubic-bezier(.22,1,.36,1),visibility 0s linear .22s;
    font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important;
  }
  html:root body:not(#kxz) #kxMega.kxm-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition-delay:0s}
  html:root body:not(#kxz) #kxMega::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px} /* hover bridge */
  html:root body:not(#kxz) #kxMega a{text-decoration:none;color:inherit}

  /* ---- layout A: Cloudflare-style columns ---- */
  html:root body:not(#kxz) #kxMega .kxm-cols{display:grid;grid-template-columns:repeat(var(--kxm-n,5),1fr);padding:10px 8px 6px}
  html:root body:not(#kxz) #kxMega .kxm-col{padding:14px 12px 10px;border-left:1px solid rgba(201,162,39,.2)}
  html:root body:not(#kxz) #kxMega .kxm-col:first-child{border-left:0}
  html:root body:not(#kxz) #kxMega .kxm-ct{font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:#8c6e21;font-weight:700;margin:0 8px 8px}
  html:root body:not(#kxz) #kxMega .kxm-it{display:block;padding:9px 10px;border-radius:12px;transition:background .15s ease,transform .15s ease}
  html:root body:not(#kxz) #kxMega .kxm-it:hover,html:root body:not(#kxz) #kxMega .kxm-it:focus-visible{background:linear-gradient(135deg,#fff6dc,#f6e7b8);transform:translateX(2px);outline:0}
  html:root body:not(#kxz) #kxMega .kxm-in{display:block;font-size:14px;font-weight:700;line-height:1.25;color:#1d1810}
  html:root body:not(#kxz) #kxMega .kxm-id{display:block;font-size:12.3px;line-height:1.35;color:#6f6a5e;margin-top:2px}
  html:root body:not(#kxz) #kxMega .kxm-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 22px;border-top:1px solid rgba(201,162,39,.25);background:rgba(246,231,184,.28);border-radius:0 0 22px 22px;font-size:13px}
  html:root body:not(#kxz) #kxMega .kxm-foot a{font-weight:700;color:#8c6e21}
  html:root body:not(#kxz) #kxMega .kxm-foot a:hover{color:#1d1810}
  html:root body:not(#kxz) #kxMega .kxm-foot span a{margin-left:18px;font-weight:600;color:#6f6a5e}

  /* ---- layout B: intro | numbered list | image card ---- */
  html:root body:not(#kxz) #kxMega .kxm-b{display:grid;grid-template-columns:1.05fr 1fr 1fr;min-height:300px}
  html:root body:not(#kxz) #kxMega .kxm-b > div{padding:34px 34px;border-left:1px solid rgba(201,162,39,.25)}
  html:root body:not(#kxz) #kxMega .kxm-b > div:first-child{border-left:0}
  html:root body:not(#kxz) #kxMega .kxm-h{font-size:24px;line-height:1.18;text-transform:uppercase;letter-spacing:.01em;margin:0 0 14px;font-weight:600;color:#1d1810}
  html:root body:not(#kxz) #kxMega .kxm-p{font-size:13.5px;line-height:1.55;color:#5e584b;margin:0 0 22px;max-width:300px}
  html:root body:not(#kxz) #kxMega .kxm-btn{display:inline-block;padding:11px 20px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#1d1810 !important;border-radius:10px;background:linear-gradient(135deg,#f2dc9a,#c9a227);box-shadow:0 8px 20px rgba(201,162,39,.32);transition:transform .15s ease,box-shadow .15s ease}
  html:root body:not(#kxz) #kxMega .kxm-btn:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(201,162,39,.42)}
  html:root body:not(#kxz) #kxMega ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
  html:root body:not(#kxz) #kxMega ol a{display:flex;gap:18px;align-items:baseline;padding:8px 6px;border-radius:10px;font-size:13.5px;letter-spacing:.05em;text-transform:uppercase;font-weight:600;color:#1d1810;transition:color .15s ease,padding-left .18s ease,background .15s ease}
  html:root body:not(#kxz) #kxMega ol a i{font-style:normal;font-size:12px;color:#b59a4e;min-width:22px;letter-spacing:.04em}
  html:root body:not(#kxz) #kxMega ol a:hover,html:root body:not(#kxz) #kxMega ol a:focus-visible{color:#8c6e21;padding-left:14px;background:rgba(246,231,184,.4);outline:0}
  html:root body:not(#kxz) #kxMega .kxm-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%;min-height:232px;border-radius:16px;overflow:hidden;padding:24px;color:#fff;background-size:cover;background-position:center}
  html:root body:not(#kxz) #kxMega .kxm-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,15,5,.25),rgba(20,15,5,.78))}
  html:root body:not(#kxz) #kxMega .kxm-card > *{position:relative}
  html:root body:not(#kxz) #kxMega .kxm-card .kxm-h{color:#fff;font-size:21px;margin:0}
  html:root body:not(#kxz) #kxMega .kxm-card .kxm-btn{align-self:flex-start;background:rgba(255,255,255,.92);box-shadow:none;color:#1d1810 !important}
}

@media (min-width:1101px){
  html:root body:not(#kxz) #kxMega *{font-family:inherit !important}
  html:root body:not(#kxz) #kxMega .kxm-in,html:root body:not(#kxz) #kxMega .kxm-h,html:root body:not(#kxz) #kxMega ol a{color:#1d1810 !important;-webkit-text-fill-color:#1d1810 !important}
  html:root body:not(#kxz) #kxMega .kxm-id,html:root body:not(#kxz) #kxMega .kxm-p{color:#6f6a5e !important;-webkit-text-fill-color:#6f6a5e !important}
  html:root body:not(#kxz) #kxMega .kxm-ct{color:#8c6e21 !important;-webkit-text-fill-color:#8c6e21 !important}
  html:root body:not(#kxz) #kxMega .kxm-foot a{color:#8c6e21 !important;-webkit-text-fill-color:#8c6e21 !important}
  html:root body:not(#kxz) #kxMega .kxm-foot span a{color:#6f6a5e !important;-webkit-text-fill-color:#6f6a5e !important}
  html:root body:not(#kxz) #kxMega ol a i{color:#b59a4e !important;-webkit-text-fill-color:#b59a4e !important}
  html:root body:not(#kxz) #kxMega ol a:hover span{color:#8c6e21 !important;-webkit-text-fill-color:#8c6e21 !important}
  html:root body:not(#kxz) #kxMega .kxm-btn{background:linear-gradient(135deg,#f2dc9a,#c9a227) !important;color:#1d1810 !important;-webkit-text-fill-color:#1d1810 !important;border:0 !important}
  html:root body:not(#kxz) #kxMega .kxm-card .kxm-h{color:#fff !important;-webkit-text-fill-color:#fff !important;text-shadow:0 2px 12px rgba(0,0,0,.45)}
  html:root body:not(#kxz) #kxMega .kxm-card .kxm-btn{background:#fff !important;box-shadow:0 6px 18px rgba(0,0,0,.25) !important}
}
