.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.75rem;
  margin: 0 0 2rem 0;
  padding: 1rem 0;
}

.header .container {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  gap: 1rem 1rem;
  grid-template-areas: "logo nav btn";
}

.header-skip {
  font-weight: 700;
  left: 0;
  position: absolute;
  top: -100px;
  z-index: 100;
}

.header-skip:focus {
  top: 0.5em;
}

.header-logo {
  grid-area: logo;
}
.header-logo svg {
  display: block;
  height: 20px;
  width: 152.06px;
}

.header-nav-toggle {
  display: none;
}

.header-nav {
  border-bottom: 1px solid var(--border-gray);
  display: none;
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  z-index: 999;
}

.header-nav-toggle:checked + .header-nav {
  display: block;
}

.header-nav label {
  background-color: var(--white);
  cursor: pointer;
  display: block;
  position: absolute;
  top: -42px;
  right: 0;
  padding: 16px;
  width: 52px;
  height: 52px;
}

.header-nav .vertical-list {
  background-color: var(--white);
  font-size: 1.25rem;
  line-height: 2rem;
  padding: 0 1rem 1rem 1rem;
}

.header-nav .vertical-list li {
  border-top: 1px solid var(--border-gray);
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.header-nav .vertical-list li.small {
  margin-bottom: -0.5em;
}

.header-nav .vertical-list ul {
  padding: 0 0 0 28px;
  margin: -0.25rem 0 0 0;
}

.header-nav .vertical-list ul li {
  font-size: 1rem;
  line-height: 1.5rem;
  border: 0;
  padding: 0;
}

.header-nav .vertical-list svg {
  color: var(--dark-blue-shade-5);
  margin-right: 8px;
}

.header-btn {
  align-items: center;
  display: flex;
  height: 52px;
  position: absolute;
  top: -1rem;
  right: 0;
  width: auto;
}

.header .btn.small {
  height: 26px;
  line-height: 26px;
  padding: 0 1rem;
  margin-top: -0.125rem;
}

.header-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 52px;
  height: 52px;
}

@media only screen and (min-width: 900px) {
  .header-logo svg {
    height: 30px;
    line-height: 30px;
    width: 228.11px;
  }

  .header-nav {
    border: 0;
    display: block;
    grid-area: nav;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .header-nav label {
    display: none;
  }

  .header-nav .truncate {
    display: none;
  }

  .header-nav .vertical-list {
    display: flex;
    flex-grow: 1;
    font-size: 0.875rem;
    gap: 1rem;
    justify-content: flex-end;
    line-height: 30px;
    padding: 0;
  }

  .header-nav .vertical-list li {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .header-nav .vertical-list li.small {
    margin-bottom: 0;
  }

  .header-nav .vertical-list svg {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }

  .header-nav .vertical-list ul {
    display: none;
  }

  .header-nav .vertical-list li {
    position: relative;
  }

  .header-nav .vertical-list li ul {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    display: none;
    margin: 0;
    padding: 11px 23px;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .header-nav .vertical-list li:hover ul,
  .header-nav .vertical-list li ul:hover {
    display: block;
  }

  .header-nav .vertical-list li ul:before,
  .header-nav .vertical-list li ul:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    left: 4px;
  }

  .header-nav .vertical-list li ul:before {
    border-bottom: 5px solid var(--border-gray);
    top: -5px;
  }

  .header-nav .vertical-list li ul:after {
    border-bottom: 5px solid var(--white);
    top: -4px;
  }

  .header-nav .vertical-list li ul li {
    font-size: 0.875rem;
    line-height: 1.5rem;
    border: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .header-nav .vertical-list ul li.top-divider {
    border-top: 1px solid var(--border-gray);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .header-btn .btn.small {
    display: none;
  }

  .header-toggle {
    display: none;
  }
}

@media only screen and (min-width: 1000px) {
  .header-btn {
    grid-area: btn;
    position: relative;
    top: 0;
  }

  .header-btn .btn.small {
    display: block;
  }
}

@media only screen and (min-width: 1024px) {
  .header-nav .truncate {
    display: inline;
  }
}
