header {
  background-color: #27192E;
  display: flex;
  justify-content: space-between;
  min-height: 3.5em;
  height: 7.2vh;
}

.logo {
  display: block;
  width: auto;
  height: 100%;
}
.logo img {
  width: auto;
  height: 100%;
}

.hamburger {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  justify-content: center;
  position: relative;
  right: .4em;
  transform: rotate(0);
  transition: transform 250ms ease;
  min-width: 3.8em;
  z-index: 1000;
}
@media (min-width: 67.5em) {
  .hamburger {
    display: none;
  }
}
.hamburger.is-open {
  transform: rotate(90deg);
  position: fixed;
  top: 1.5em;
}
.hamburger > span {
  background-color: var(--badge-03);
  margin: 0 .8em;
  opacity: 1;
  transition: transform 250ms ease,
    opacity 250ms ease;
  height: .25em;
}
.hamburger > span + span {
  margin-top: .25em;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(.5em) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-.5em) rotate(-45deg);
}

.top-nav {
  background-color: #27192E;
  box-shadow: 0 -.5em 1em .2em hsl(280, 30%, 14%);
  color: var(--badge-03);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  opacity: .9;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: transform 250ms ease-out;
  visibility: hidden;
  min-width: 20em;
  width: 40%;
  height: 100%;
  z-index: 100;
}
@media (min-width: 67.5em) {
  .top-nav {
    background-color: transparent;
    box-shadow: unset;
    display: block;
    flex-direction: initial;
    justify-content: initial;
    opacity: initial;
    position: static;
    top: unset;
    right: unset;
    transform: unset;
    transition: unset;
    visibility: initial;
    min-width: unset;
    width: initial;
    max-width: unset;
    height: initial;
    z-index: initial;
  }
}
.top-nav__language {
  cursor: pointer;
}
.top-nav__language svg {
  width: auto;
  height: .5lh;
}
.top-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.top-nav > ul {
  font-size: 1.6rem;
  margin-right: .2em;
}
@media (min-width: 67.5em) {
  .top-nav > ul {
    align-items: center;
    display: flex;
    font-size: 1.3rem;
    margin: 0;
    margin-right: 1em;
    height: 100%;
  }
}
.top-nav > ul > li {
  letter-spacing: .04em;
  line-height: 1.5;
  margin-left: .5em;
  padding: .6em;
  text-align: right;
  text-transform: uppercase;
}
@media (min-width: 67.5em) {
  .top-nav > ul > li {
    letter-spacing: initial;
    line-height: initial;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}
.top-nav > ul > li + li {
  border-top: 1px solid var(--background-light);
}
@media (min-width: 67.5em) {
  .top-nav > ul > li + li {
    border-top: none;
    margin-left: 1em;
  }
}
.top-nav > ul a {
  display: block;
  font-size: inherit;
  text-decoration: none;
}
@media (min-width: 67.5em) {
  .top-nav > ul a::after {
    background-color: var(--foreground);
  }
}
.top-nav .top-nav__highlight a {
  color: var(--foreground);
  display: inline-block;
  border: 1px solid var(--foreground);
  border-radius: .4em;
  padding: .2em .7em;
}
.top-nav .top-nav__highlight a::after {
  background-color: unset;
}
.top-nav .top-nav__highlight:hover a,
.top-nav .top-nav__highlight a:focus-visible {
  border-color: var(--badge-02);
  color: var(--badge-02);
}

.top-nav__dropdown:is(li) {
  display: flex;
  flex-direction: row-reverse;
  padding-left: 0;
}
@media (min-width: 67.5em) {
  .top-nav__dropdown:is(li) {
    flex-direction: column;
  }
}
.top-nav__dropdown > * {
  flex: 1;
}
.top-nav__dropdown .user {
  align-self: flex-start;
  display: flex;
  margin-left: .75em;
  max-width: 2em;
  overflow: hidden;
  height: auto;
}
@media (min-width: 67.5em) {
  .top-nav__dropdown .user {
    align-items: center;
    cursor: pointer;
    margin-left: 0;
    max-width: initial;
  }
}
.top-nav__dropdown .user__icon {
  fill: var(--badge-03);
  width: 100%;
  height: auto;
}
.top-nav__dropdown .user__name {
  display: none;
}
@media (min-width: 67.5em) {
  .top-nav__dropdown .user__icon {
    width: 2em;
    height: auto;
  }
  .top-nav__dropdown:hover .user__icon {
    fill: var(--foreground);
  }
  .top-nav__dropdown .user__name {
    display: block;
    padding-left: .25em;
    transition: all 250ms ease;
    width: 0;
  }
  .top-nav__dropdown:hover .user__name {
    color: var(--foreground);
  }
}

.dropdown {
  overflow: hidden;
  position: relative;
  z-index: 100;
}
@media (min-width: 67.5em) {
  .dropdown {
    overflow: visible;
  }
}
.dropdown li {
  margin: 0;
  padding: .5em 0;
}
@media (min-width: 67.5em) {
  .dropdown li {
    padding: 0;
  }
}
.dropdown .dropdown__drawer {
  transform: translateX(105%);
  transition: all 250ms ease;
  height: auto;
}
@media (min-width: 67.5em) {
  .dropdown .dropdown__drawer {
    background-color: #27192E;
    display: flex;
    flex-direction: column;
    margin-right: 0;
    opacity: .9;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    visibility: hidden;
    height: 0;
    transform: translateX(0);
  }
}
.dropdown.is-open .dropdown__drawer {
  transform: translateX(0);
  transition: all 250ms ease;
}
@media (min-width: 67.5em) {
  .dropdown.is-open .dropdown__drawer {
    visibility: visible;
  }
}
.dropdown .dropdown__drawer > li > a {
  border: none;
  color: var(--badge-03);
  font-size: 1.2rem;
  text-align: right;
  white-space: nowrap;
}
@media (min-width: 67.5em) {
  .dropdown .dropdown__drawer > li > a {
    padding: 1em;
  }
  .dropdown .dropdown__drawer > li > a:hover {
    color: var(--foreground);
  }
  .dropdown .dropdown__drawer > li + li > a {
    padding-top: 0;
  }
}
