.header__main { position: relative; top: 0; grid-area: nav; z-index: 9; background: #333; padding-top: 60px; width: 60px; min-height: 100vh; color: white; }
.main-footer { display: flex; position: relative; flex-direction: column; padding-right: 0; width: 100%; min-height: 100vh; }

@media (max-width: 600px) {
  .talesof { max-width: 80vw; }
}

button.menu-toggle { position: fixed; top: var(--drupal-displace-offset-top, 0); left: var(--drupal-displace-offset-left, 0); z-index: 10; cursor: pointer; border: 0; background: #333; padding: 20px 20px 19px 20px; width: 60px; height: 59px; }

/* Nav */
.nav__main {
  position: sticky;
  top: calc(60px + var(--drupal-displace-offset-top, 0px));
  background: var(--grey);

  li {
    position: relative;
    border-top: 0px solid white;
    width: 60px;
    height: 60px;
  }
  a {
    display: block;
    padding: 20px;
    width: 60px;
    height: 60px;
    ooverflow: hidden;
    line-height: 1;
    text-decoration: none;
  } 
}

.tooltip {
  display: none;
  position: absolute;
  top: 15px;
  left: 70px;
  background-color: var(--grey);
  padding: 6px 12px;
  width: auto;
  color: white;
  font-size: 2rem;
  line-height: 2rem;
  white-space: nowrap;

  &::before {
    display: block;
    position: absolute;
    top: 10px;
    left: -6px;
    border-width: 5px 6px 5px 0;
    border-style: solid;
    border-color: transparent var(--grey) transparent transparent;
    width: 0;
    height: 0;
    content: "";
  }

  /* one way to bridge the gap on hover */
  &::after {
    position: absolute;
    top: 0;
    left: -20px;
    background-color: transparent;
    width: 20px;
    height: 100%;
    content: "";
  }
}
.has-tooltip--active:hover + .tooltip,
.has-tooltip--active:focus + .tooltip {
  display: block;
}

/* make sure the .tooltip stays active on hover */
.has-tooltip--active + .tooltip:hover {
  display: block;
}

/* old */
/*
.nav__main { position: sticky; top: calc(60px + var(--drupal-displace-offset-top, 0px)); background: #333; }
.nav__main ul { margin: 0; list-style: none; }
.nav__main li { border-top: 0px solid white; width: 60px; height: 60px; }
.nav__main a { display: block; position: relative; padding: 20px; width: 60px; height: 60px; overflow: hidden; line-height: 1;text-decoration: none; }
.nav__main a:hover,
.nav__main a:focus,
.nav__main a:focus-visible {
  overflow: visible;
}
.nav__main a:focus-visible { transition: background-color linear 0.3s; background-color: Crimson; }
.nav__main span { display: block; position: absolute; top: 15px; left: 80px; opacity: 0; transition: left 0.5s, opacity 0.2s; background: #333; padding: 6px 12px; width: auto; overflow: visible; color: white; font-size: 1.4rem; line-height: 1.8rem; white-space: nowrap; }
.nav__main span:before { display: block; position: absolute; top: 10px; left: -6px; border-width: 5px 6px 5px 0; border-style: solid; border-color: transparent #333 transparent transparent; width: 0; height: 0; content: ""; }
.nav__main a:hover span, .nav__main a:focus span, .nav__main button:hover span, .nav__main button:focus span { left: 70px; opacity: 1.0; }
*/

/* Nav Icon */
/* adapted from https://codepen.io/designcouch/pen/Atyop */

#nav-icon {
  position: relative;
  margin: 0;
  width: 20px;
  height: 20px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

#nav-icon span {
  display: block;
  position: absolute;
  left: 0;
  opacity: 1;
  border-radius: 3px;
  background: #FFF;
  width: 20px;
  height: 2px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 4px;
}

#nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
  top: 10px;
}

#nav-icon span:nth-child(4) {
  top: 16px;
}

/*
body.menu #nav-icon span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

body.menu #nav-icon span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  height: 3px;
}

body.menu #nav-icon span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  height: 3px;
}

body.menu #nav-icon span:nth-child(4) {
  top: 16px;
  width: 0%;
  left: 50%;
}
*/

body.menu #nav-icon span:nth-child(1) {
  position: relative;
  top: -5px;
  left: 5px;
  border-radius: 5px;
  width: 10px;
  height: 12px;
}

body.menu #nav-icon span:nth-child(2) {
  -webkit-transform: rotate(30deg);
  -moz-transform: rotate(30deg);
  -o-transform: rotate(30deg);
  top: 13px;
  left: -2px;
  transform: rotate(30deg);
  border-radius: 3px;
  width: 24px;
  height: 3px;
}

body.menu #nav-icon span:nth-child(3) {
  -webkit-transform: rotate(-30deg);
  -moz-transform: rotate(-30deg);
  -o-transform: rotate(-30deg);
  top: 13px;
  left: -2px;
  transform: rotate(-30deg);
  border-radius: 3px;
  width: 24px;
  height: 3px;
}

body.menu #nav-icon span:nth-child(4) {
  top: 16px;
  left: 50%;
  width: 0%;
}

/* Eyes */
#nav-icon span:nth-child(1)::before {
  position: absolute;
  top: 4px;
  left: 2px;
  border-radius: 1px;
  background: white;
  width: 0px;
  height: 0px;
  content: "";
}

#nav-icon span:nth-child(1)::after {
  position: absolute;
  top: 4px;
  right: 2px;
  border-radius: 1px;
  background: white;
  width: 0px;
  height: 0px;
  content: "";
}

body.menu #nav-icon span:nth-child(1)::before {
  background: #333;
  width: 2px;
  height: 4px;
}

body.menu #nav-icon span:nth-child(1)::after {
  background: #333;
  width: 2px;
  height: 4px;
}

button.menu-toggle:focus-visible #nav-icon span:nth-child(1)::before, button.menu-toggle:focus-visible #nav-icon span:nth-child(1)::after {
  background: Crimson;
}