
:root{
  --emc-orange:#f05a16;
  --emc-orange-dark:#c7440d;
  --emc-drawer-width:310px;
}

*{box-sizing:border-box}

body.emc-has-side-nav{
  padding-left:0!important;
}

.emc-side-nav{
  position:fixed;
  inset:0 auto 0 0;
  z-index:115;
  width:min(var(--emc-drawer-width),86vw);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(180deg,#070707 0%,#151515 100%);
  border-right:1px solid rgba(240,90,22,.55);
  box-shadow:14px 0 34px rgba(0,0,0,.28);
  transform:translateX(-105%);
  transition:transform .23s ease;
}

body.emc-mobile-nav-open .emc-side-nav{
  transform:translateX(0);
}

.emc-side-nav-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:74px;
  padding:17px 18px;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.emc-side-nav-heading strong{
  font-size:20px;
}

.emc-side-nav-close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:9px;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:22px;
}

.emc-side-nav-section-label{
  padding:18px 18px 5px;
  color:#777;
  font-size:10px;
  font-weight:900;
  letter-spacing:.13em;
}

.emc-side-nav-links{
  display:grid;
  gap:7px;
  padding:12px;
}

.emc-side-nav-link{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:52px;
  padding:11px 13px;
  border-radius:11px;
  color:#ddd;
  text-decoration:none;
  font-weight:800;
  transition:.18s ease;
}

.emc-side-nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.07);
}

.emc-side-nav-link.active{
  color:#fff;
  background:linear-gradient(90deg,var(--emc-orange),#ff7a36);
  box-shadow:0 9px 24px rgba(240,90,22,.24);
}

.emc-side-nav-icon{
  width:25px;
  min-width:25px;
  display:grid;
  place-items:center;
  font-size:20px;
}

.emc-side-nav-footer{
  margin-top:auto;
  padding:16px;
  border-top:1px solid rgba(255,255,255,.1);
}

.emc-side-nav-footer a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#ccc;
  text-decoration:none;
  font-weight:700;
}

.emc-side-nav-footer a:hover{
  color:var(--emc-orange);
}

.emc-side-nav-toggle{
  position:fixed;
  top:14px;
  left:14px;
  z-index:116;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid #d5d5d5;
  border-radius:10px;
  background:#fff;
  color:#111;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
  cursor:pointer;
  font-size:22px;
  font-weight:900;
}

.emc-mobile-nav-overlay{
  position:fixed;
  inset:0;
  z-index:114;
  display:none;
  background:rgba(0,0,0,.56);
}

body.emc-mobile-nav-open .emc-mobile-nav-overlay{
  display:block;
}

body.emc-mobile-nav-open{
  overflow:hidden;
}

/* Give existing headers room for the menu button without adding a second logo. */
body.emc-has-side-nav header,
body.emc-has-side-nav .topbar,
body.emc-has-side-nav .vs-header{
  padding-left:max(76px,4vw)!important;
}

@media(max-width:650px){
  .emc-side-nav-toggle{
    top:10px;
    left:10px;
    width:40px;
    height:40px;
  }

  body.emc-has-side-nav header,
  body.emc-has-side-nav .topbar,
  body.emc-has-side-nav .vs-header{
    padding-left:62px!important;
  }
}
