/* E-ABLE POWER - site-wide override layer.
   This is the single place for global CSS fixes. Every page loads it via:
   <link rel="stylesheet" href="/assets/css/overrides.css?v=20261123">
   Assets are cached for one month, so bump the ?v= value on the <link> tag
   whenever the rules below change.

   Rules here must be additive only: never restyle existing components,
   only fix behaviour that the page-level <style> blocks get wrong. */

/* ============================================================
   T2 - mobile menu: visible touch close control
   Markup (.hm-closebar / .hm-close) is injected by assets/js/mobile-menu.js.
   Body prefix beats the later-injected <style> from that script.
   ============================================================ */
body .hm-mobile-panel { padding: 0 26px 34px; }

.hm-closebar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 -26px 6px;
  padding: 10px 14px;
  background: #04203c;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hm-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.hm-close:focus-visible { outline: 2px solid #e8b13c; outline-offset: 2px; }

.hm-langrow { display: none; }

/* The floating WhatsApp launcher sits at z-index 999999 and covered the menu
   items in the bottom-right corner of the open panel. Hide it while open. */
body.hm-menu-open #wa-chat-root { display: none !important; }

/* ============================================================
   T3 - language switcher must not cover the logo on phones.
   The floating pill is 144px wide but only ~96px of clear space
   exists between the logo and MENU at 390px, so on <=900px the
   pill is hidden and the same four links are rendered inside the
   menu panel (.hm-langrow), which mobile-menu.js builds.
   ============================================================ */
@media (max-width: 900px) {
  .eable-langswitch { display: none !important; }

  .hm-langrow {
    display: flex;
    gap: 8px;
    padding: 12px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .hm-langrow a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    color: #dbe7f2;
    font: 700 12px/1 Manrope, Arial, sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
  }

  .hm-langrow a[aria-current="true"] {
    background: #e8b13c;
    border-color: #e8b13c;
    color: #04203c;
  }
}
