/* Lab: links to the apps published under this domain (chess/, globe/, ...) */

#header .lab {
  max-width: 100%;
  border: solid 1px #dce0e2;
  border-radius: 4px;
}

#header .lab .lab-title {
  margin: 0;
  padding: 0.75rem 1.5rem;
  border-bottom: solid 1px #dce0e2;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

#header .lab .lab-title span {
  opacity: 0.6;
}

#header .lab ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .lab li {
  padding-left: 0;
  border-left: solid 1px #dce0e2;
}

#header .lab li:first-child {
  border-left: 0;
}

#header .lab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  padding: 1.25rem 1rem;
  border-bottom: 0;
}

#header .lab a:hover {
  background-color: rgba(255, 255, 255, 0.075);
}

#header .lab a:active {
  background-color: rgba(255, 255, 255, 0.175);
}

#header .lab .lab-icon {
  font-size: 1.5rem;
  line-height: 1;
}

#header .lab .lab-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#header .lab .lab-name {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
}

#header .lab .lab-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.7;
}

@media screen and (max-width: 736px) {

  #header .lab {
    width: 100%;
    max-width: 24rem;
  }

  #header .lab ul {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  #header .lab li {
    border-left: 0;
    border-top: solid 1px #dce0e2;
  }

  #header .lab li:first-child {
    border-top: 0;
  }

  #header .lab a {
    flex-direction: row;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    text-align: left;
  }

  #header .lab .lab-icon {
    width: 1.75rem;
    text-align: center;
  }

}
