/*
  @file Theming for the tabs region.

  We are theming this in a very generic manner so no site should need to
  override it.
*/

.lgd-region--tabs {
  background-color: black;
}

.lgd-region--tabs h2 {
  background-color: white;
}

.lgd-region--tabs .tabs > ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.lgd-region--tabs .tabs > ul > li a {
  display: inline-block;
  padding: 1rem;
  text-decoration: none;
  color: black;
  background-color: lightgrey;
  font-family: sans-serif;
  font-weight: bold;
}

.lgd-region--tabs .tabs > ul > li a.is-active {
  color: white;
  background-color: green;
}

.lgd-region--tabs .tabs > ul > li a:focus,
.lgd-region--tabs .tabs > ul > li a:hover {
  text-decoration: underline;
  color: black;
  background-color: white;
}
.lgd-region--tabs .tabs > ul > li a:focus {
  position: relative; /* So the outline doesn't hide behind the next item */
  outline: 2px dotted;
}

/*
  Make the tabs region sticky for editors, so they do not have to
  scroll to the top of the page to find the edit link.
*/
.user-logged-in .lgd-region--tabs {
  position: sticky;
  z-index: 100;
  top: var(--drupal-displace-offset-top);
}
