/* Wikipedia Header Component */

.wiki-header {
  background: #fff;
  border-bottom: 1px solid #a2a9b1;
  padding: 0;
  margin: 0;
}

.wiki-header-top {
  background: #f8f9fa;
  border-bottom: 1px solid #a2a9b1;
  padding: 0.5em 1em;
  font-size: 0.8em;
}

.wiki-header-top ul:not(.contextual-links) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.wiki-header-top li {
  margin-left: 1em;
}

.wiki-header-top a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-header-main {
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  justify-content: space-between;
}

.wiki-header-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wiki-logo {
  margin-right: 1em;
}

.wiki-logo img {
  height: 50px;
  width: auto;
}

.wiki-nav-tabs {
  background: #f8f9fa;
  border-bottom: 1px solid #a2a9b1;
  margin: 0;
  padding: 0 1em;
}

.wiki-nav-tabs ul:not(.contextual-links) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.wiki-nav-tabs li {
  margin-right: 0.5em;
}

.wiki-nav-tabs a {
  display: block;
  padding: 0.5em 1em;
  color: #0645ad;
  text-decoration: none;
  font-size: 0.9em;
  border: 1px solid transparent;
  border-bottom: none;
  background: #f8f9fa;
}

.wiki-nav-tabs a:hover {
  background: #fff;
}

.wiki-nav-tabs .active a {
  background: #fff;
  border-color: #a2a9b1;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

@media (max-width: 768px) {
  .wiki-header-main {
    flex-direction: column;
    align-items: stretch;
  }
  
  .wiki-nav-tabs ul {
    flex-wrap: wrap;
  }
}