.header {
  display: grid;
  grid-template-areas:
    "header-start left-wing center-nav right-wing header-end";
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: var(--op-space-2x-small);
  column-gap: var(--op-space-medium);
  position: sticky;
  top: 0;
  z-index: 2;

  .header__label {
    grid-area: center-nav;
    z-index: 1;

    font-weight: var(--op-font-weight-semi-bold);
    font-size: var(--op-font-3x-large);
    text-decoration: none;

    /* --op-breakpoint-small */
    @media only screen and (max-width: 768px) {
      border-radius: var(--op-radius-small);
    }
  }

  @media only screen and (max-width: 768px) {
    grid-template-areas: "left-wing center-nav right-wing header-end";
    grid-template-columns: auto auto auto 1fr;
  }

  .header__year {
    display: flex;
    gap: var(--op-space-2x-small);
    margin-bottom: -3px;
    color: var(--op-color-primary-plus-one);

    span {
      color: var(--op-color-primary-original);

      @media only screen and (max-width: 768px) {
        display: none;
      }
    }
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--op-space-x-small);

    /* --op-breakpoint-small */
    @media only screen and (max-width: 768px) {
      gap: var(--op-space-3x-small);
    }

    &.header__nav-start {
      grid-area: header-start;
    }

    &.header__nav--left {
      grid-area: left-wing;
      justify-self: end;

      @media only screen and (max-width: 768px) {
        justify-self: start;
      }
    }

    &.header__nav--right {
      grid-area: right-wing;
      justify-self: start;
    }
  }

  .header__profile {
    grid-area: header-end;
    display: flex;
    gap: var(--op-space-small);
    justify-content: flex-end;
  }
}

.header__logo {
  max-width: 40px;
}

.header__logo-word {
  max-width: 200px;
}

.header__logo-square {
  max-width: 60px;
  border-radius: var(--op-radius-large);
}


.year-highlights {
  display: grid;
  padding: var(--op-space-small);
  border-radius: var(--op-radius-2x-large);
  gap: var(--op-space-x-small);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  background: var(--op-color-neutral-plus-six);
  box-shadow: var(--op-border-all) var(--op-color-neutral-plus-five);

  @media only screen and (max-width: 800px) {
    display: flex;
    gap: var(--op-space-2x-small);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
    margin: 0 auto;

    .year-highlights__label,
    .year-highlights__lists {
      display: none;
    }
  }
}

.year-highlights__label {
  font-weight: 500;
  justify-self: center;
}

.year-highlights__handle {
  --width: 10rem;
  width: var(--width);
  position: absolute;
  left: calc(50% - var(--width) / 2);
  top: calc(100% + var(--op-border-width));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--op-space-x-small);
  background-color: var(--op-color-neutral-plus-six);
  border-bottom-left-radius: var(--op-radius-large);
  border-bottom-right-radius: var(--op-radius-large);
  padding: var(--op-space-x-small) var(--op-space-x-small);
  box-shadow: var(--op-border-all) var(--op-color-neutral-plus-five);
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
  transition: background-color 150ms ease;

  &:hover {
    background-color: var(--op-color-neutral-plus-five);
  }
}

.year-highlights__handle-label {
  font-size: var(--op-font-small);
  font-weight: var(--op-font-weight-medium);
  color: var(--op-color-primary-minus-four);
}

.year-highlights__handle--hiding {
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.18s ease;
}

.year-highlights__handle--hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

