.l-sidebar {
  position: fixed;
  top: 0;
  left: calc(var(--sidebar-width) * -1);
  width: var(--sidebar-width);
  height: 100vh;
  padding: calc(var(--vertical-rhythm) / 2) 1rem;
  z-index: 300;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--light-color);
  border-right: 1px solid var(--medium-dark-color);
  transition: left 0.2s ease-in-out;
  -webkit-overflow-scrolling: touch;
}

.l-sidebar.is-opened {
  left: 0;
}

.l-sidebar.is-opened ~ .l-main {
  padding-left: var(--sidebar-width);
}

.l-sidebar.is-opened ~ .l-main > .l-swipeable-edge {
  left: var(--sidebar-width);
}

.l-main {
  position: relative;
  width: 100%;
  transition: padding 0.2s ease-in-out;
}

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: inherit;
  z-index: 100;
  background-color: var(--transparent-color);
  backface-visibility: hidden;
}

.l-content {
  padding-top: calc(var(--vertical-rhythm) * 2);
  background-color: var(--x-light-color);
  box-shadow: 0 -1px var(--medium-dark-color) inset;
}

.l-content::before,
.l-content::after {
  content: '';
  display: table;
}

.l-notifications {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: inherit;
  z-index: 200;
}

.l-instant-notifications {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-left: inherit;
  z-index: 200;
  text-align: center;
}

.l-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  color: var(--backdrop-color);
  background-color: var(--backdrop-background-color);
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.2s, opacity 0.2s linear;
  backface-visibility: hidden;
}

.l-backdrop:not(:empty) {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.l-overlay {
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 200;
  opacity: 0;
  background-color: var(--backdrop-background-color);
  transition: visibility 0s linear 0.2s, opacity 0.2s linear;
  backface-visibility: hidden;
}

.l-swipeable-edge {
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 100%;
  z-index: 200;
}

.l-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.l-root.is-swiping > .l-sidebar,
.l-root.is-swiping > .l-main,
.l-root.is-swiping > .l-notifications,
.l-root.is-swiping > .l-instant-notifications,
.l-root.is-swiping > .l-overlay {
  transition: none;
}

@media (--md-viewport) {
  .l-sidebar,
  .l-main {
    transition: none;
  }

  .l-main,
  .l-header,
  .l-notifications,
  .l-instant-notifications {
    box-sizing: border-box;
  }
}

@media not all and (--md-viewport) {
  .l-sidebar.is-opened ~ .l-main > .l-overlay {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
}
