/* FEBRY.OPS V264 — stabilized compact mobile navigation + mobile UI safety */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  *,*::before,*::after{box-sizing:border-box}
  img,picture,video,canvas,svg{max-width:100%}
  input:not([type="checkbox"]):not([type="radio"]),textarea,select{max-width:100%;min-width:0;font-size:max(16px,1em)}
  button,a,[role="button"]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  pre{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
  code{overflow-wrap:anywhere}
  .scroll,.table-wrap,.schedule-table-wrap,.ms-plan-compare-scroll,.ms-plan-matrix-scroll,.simple-preview{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}

  /* Retire every page-specific mobile drawer visually, but keep it in the DOM so old page JS does not break. */
  .mobile-drawer,.site-drawer,.febry-services-mobile,.v77-drawer,.v81-drawer,#drawer,#menu.menu{
    display:none!important;visibility:hidden!important;pointer-events:none!important
  }
  .febry-legacy-menu-button{display:none!important;visibility:hidden!important;pointer-events:none!important}

  .febry-global-menu-host{display:flex!important;align-items:center!important;min-width:0!important;max-width:100%!important}
  .febry-global-fallback-header{position:sticky!important;top:0!important;z-index:2400!important;width:100%!important;min-height:60px!important;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))!important;background:#070a08!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
  .febry-global-menu-btn{
    appearance:none!important;-webkit-appearance:none!important;
    width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;margin:0 10px 0 0!important;
    display:inline-grid!important;place-items:center!important;flex:0 0 44px!important;
    border:1px solid rgba(183,255,60,.38)!important;border-radius:14px!important;
    background:#090d0a!important;color:#B6FF40 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
    cursor:pointer!important;position:relative!important;inset:auto!important;z-index:2501!important;
    transform:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  .febry-global-menu-btn:focus-visible,.febry-global-close:focus-visible,.febry-global-links a:focus-visible,.febry-font-scale button:focus-visible{outline:2px solid #b7ff3c!important;outline-offset:2px!important}
  .febry-global-bars{width:19px;height:14px;position:relative;display:block}
  .febry-global-bars i{position:absolute;left:0;width:19px;height:2px;border-radius:99px;background:#b7ff3c;transition:.16s ease}
  .febry-global-bars i:nth-child(1){top:0}.febry-global-bars i:nth-child(2){top:6px;width:14px}.febry-global-bars i:nth-child(3){top:12px}
  .febry-global-menu-btn[aria-expanded="true"] .febry-global-bars i:nth-child(1){top:6px;transform:rotate(45deg)}
  .febry-global-menu-btn[aria-expanded="true"] .febry-global-bars i:nth-child(2){opacity:0;width:0}
  .febry-global-menu-btn[aria-expanded="true"] .febry-global-bars i:nth-child(3){top:6px;transform:rotate(-45deg)}

  .febry-global-drawer{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;z-index:2147483000!important;visibility:hidden!important;pointer-events:none!important;isolation:isolate!important}
  .febry-global-drawer.open{visibility:visible!important;pointer-events:auto!important}
  .febry-global-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.66)!important;opacity:0;transition:opacity .16s ease;touch-action:auto!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .febry-global-drawer.open .febry-global-backdrop{opacity:1}
  .febry-global-panel{
    position:absolute!important;left:max(8px,env(safe-area-inset-left))!important;top:max(8px,env(safe-area-inset-top))!important;bottom:auto!important;
    width:min(82vw,304px)!important;max-width:calc(100vw - 16px)!important;height:auto!important;max-height:calc(100dvh - 16px)!important;
    display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;scrollbar-width:thin!important;
    padding:10px 10px 9px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:20px!important;
    background:linear-gradient(160deg,#101512,#070a08)!important;box-shadow:24px 0 60px rgba(0,0,0,.50)!important;
    transform:translate3d(calc(-100% - 24px),0,0)!important;opacity:.96!important;
    transition:transform .18s cubic-bezier(.16,1,.3,1),opacity .14s ease!important;
    contain:paint!important;
  }
  .febry-global-drawer.open .febry-global-panel{transform:translate3d(0,0,0)!important;opacity:1!important}
  .febry-global-head{
    position:sticky!important;top:-10px!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
    min-height:46px!important;padding:3px 1px 7px!important;background:linear-gradient(180deg,#0d120f 80%,rgba(13,18,15,0))!important;flex:0 0 auto!important
  }
  .febry-global-eyebrow{color:#F5F9F3 !important;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.17em!important;text-transform:uppercase!important;margin-bottom:4px!important}
  .febry-global-brand{font:900 19px/1 Inter,system-ui,-apple-system,Segoe UI,sans-serif!important;letter-spacing:-.04em!important;color:#F5F9F3 !important;text-decoration:none!important;white-space:nowrap!important}
  .febry-global-brand i{font-style:normal!important;color:#B6FF40 !important}
  .febry-global-close{appearance:none!important;width:36px!important;height:36px!important;min-width:36px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:11px!important;background:#0b100d!important;color:#F5F9F3 !important;font:400 22px/1 system-ui!important;cursor:pointer!important;padding:0!important}

  .febry-global-links{display:grid!important;gap:4px!important;padding:1px 0 5px!important;flex:0 0 auto!important}
  .febry-global-links a{
    min-height:38px!important;padding:6px 8px!important;display:grid!important;grid-template-columns:25px minmax(0,1fr) 14px!important;align-items:center!important;gap:7px!important;
    border:1px solid rgba(255,255,255,.062)!important;border-radius:12px!important;background:rgba(255,255,255,.018)!important;
    color:#F5F9F3 !important;text-decoration:none!important;box-shadow:none!important;overflow:hidden!important;
  }
  .febry-global-links a.active{border-color:rgba(183,255,60,.38)!important;background:rgba(183,255,60,.075)!important;color:#B6FF40 !important}
  .febry-global-no{color:#F5F9F3 !important;font:800 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.05em!important}
  .febry-global-links a.active .febry-global-no{color:#B6FF40 !important}
  .febry-global-title{min-width:0!important;font:780 12px/1.15 Inter,system-ui,-apple-system,Segoe UI,sans-serif!important;letter-spacing:-.01em!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .febry-global-arrow{font-size:12px!important;color:#F5F9F3 !important;text-align:right!important}

  .febry-global-tools{display:grid!important;gap:5px!important;margin-top:4px!important;padding:6px 1px 3px!important;border-top:1px solid rgba(255,255,255,.065)!important;flex:0 0 auto!important}
  .febry-global-tools:empty{display:none!important}
  .febry-global-tool-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:32px!important;color:#F5F9F3 !important;font:800 8px/1.1 Inter,system-ui,sans-serif!important;text-transform:uppercase!important;letter-spacing:.06em!important}
  .febry-global-tools .febry-lang-trigger{position:static!important;width:32px!important;height:32px!important;min-width:32px!important;margin:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .febry-global-tools .febry-font-scale{display:inline-flex!important;position:static!important;margin:0!important;padding:2px!important;gap:2px!important;border-radius:8px!important;background:#09100b!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .febry-global-tools .febry-font-scale .fz-label{display:none!important}
  .febry-global-tools .febry-font-scale button{min-width:27px!important;width:auto!important;height:26px!important;padding:0 5px!important;font-size:9px!important;border-radius:6px!important}
  .febry-global-foot{margin-top:4px!important;padding:7px 2px 1px!important;border-top:1px solid rgba(255,255,255,.055)!important;display:flex!important;justify-content:space-between!important;gap:10px!important;color:#F5F9F3 !important;font:800 8px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.10em!important;text-transform:uppercase!important;flex:0 0 auto!important}
  .febry-global-foot .status{color:#B6FF40 !important}

  /* Public pages keep a consistent header: burger + brand. Other utilities live inside drawer. */
  header .febry-lang-trigger,nav .febry-lang-trigger,header .febry-font-scale,nav .febry-font-scale{display:none!important}
  .febry-global-tools .febry-lang-trigger{display:inline-grid!important}
  .febry-global-tools .febry-font-scale{display:inline-flex!important}
  body.febry-public-mobile-nav nav .navlinks,
  body.febry-public-mobile-nav nav .links,
  body.febry-public-mobile-nav header.topbar .top-actions,
  body.febry-public-mobile-nav nav .special-nav-actions,
  body.febry-public-mobile-nav .febry-services-links,
  body.febry-public-mobile-nav .febry-services-actions{display:none!important}
  body.febry-public-mobile-nav nav>.nav,
  body.febry-public-mobile-nav nav>.shell.nav,
  body.febry-public-mobile-nav .topbar-inner,
  body.febry-public-mobile-nav .febry-services-nav{
    width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
    min-height:60px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;
    padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important;
  }
  body.febry-public-mobile-nav .mobile-brand,
  body.febry-public-mobile-nav .brand-side,
  body.febry-public-mobile-nav .brand-wrap{display:flex!important;align-items:center!important;min-width:0!important}
  body.febry-public-mobile-nav .brand,body.febry-public-mobile-nav .logo{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:calc(100vw - 80px)!important}

  body.febry-universal-mobile-nav .menu-toggle:not(.febry-global-menu-btn),
  body.febry-universal-mobile-nav .menu-ghost:not(.febry-global-menu-btn),
  body.febry-universal-mobile-nav .site-menu-toggle:not(.febry-global-menu-btn),
  body.febry-universal-mobile-nav .febry-services-menu-btn:not(.febry-global-menu-btn),
  body.febry-universal-mobile-nav .hamb:not(.febry-global-menu-btn){display:none!important}

  body.febry-nav-open .febry-back-top{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

  @media(max-height:640px){
    .febry-global-panel{padding-top:8px!important;padding-bottom:7px!important}
    .febry-global-head{min-height:41px!important;padding-bottom:5px!important}
    .febry-global-links{gap:3px!important}
    .febry-global-links a{min-height:33px!important;padding:4px 7px!important}
    .febry-global-title{font-size:11px!important}
    .febry-global-tools{padding-top:4px!important}
    .febry-global-tool-row{min-height:29px!important}
    .febry-global-foot{margin-top:2px!important;padding-top:5px!important}
  }
  @media(max-width:350px){
    .febry-global-panel{width:min(86vw,286px)!important}
    .febry-global-title{font-size:11px!important}
    .febry-global-links a{grid-template-columns:23px minmax(0,1fr) 13px!important}
  }
  @media(prefers-reduced-motion:reduce){.febry-global-panel,.febry-global-backdrop,.febry-global-bars i{transition:none!important}}
}
@media(min-width:901px){.febry-global-drawer,.febry-global-menu-btn.febry-created-menu{display:none!important}.febry-legacy-menu-button{display:initial}}

.febry-global-legal{max-width:1180px;margin:0 auto;padding:24px 20px 36px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#F5F9F3;font:700 11px/1.5 Inter,system-ui,sans-serif}
.febry-global-legal div{display:flex;gap:9px;flex-wrap:wrap}.febry-global-legal a{color:#F5F9F3;text-decoration:none}.febry-global-legal i{font-style:normal;color:#F5F9F3}
.febry-back-top{position:fixed;right:max(14px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:2147481000;width:44px;height:44px;border:1px solid rgba(183,255,60,.42);border-radius:13px;background:#09100a;color:#B6FF40;display:grid;place-items:center;font:900 20px/1 Inter,system-ui;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:.16s ease;box-shadow:0 10px 24px rgba(0,0,0,.26)}
.febry-back-top.show{opacity:1;visibility:visible;transform:none}

/* V321 Safari/iOS closed drawer compositing safeguard.
   Hidden off-screen panels must not paint over the page while closed. */
@media (max-width:900px){
  .febry-global-drawer:not(.open){display:none!important}
  .febry-global-drawer.open{display:block!important}
}
