/* Keep the avatar inside the account link at both menu sizes. */
#header #block-oculama-main-menu .account-link {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

#header #block-oculama-main-menu .account-avatar {
  border-radius: 50%;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

@media (width >= 870px) {
  /* Mirror the logo's visible circle and inset across the header. */
  #header .content-container {
    position: relative;
  }

  #header #block-oculama-main-menu > ul > li:has(> .account-link) {
    position: static;
  }

  /* Reserve room for the avatar without changing the original row height. */
  #header #block-oculama-main-menu .account-link {
    display: inline;
    padding-inline-end: 56px;
  }

  #header #block-oculama-main-menu .account-avatar {
    inset-block-start: 50%;
    inset-inline-end: 10px;
    position: absolute;
    transform: translateY(-50%);
  }
}

@media (width < 870px) {
  #header #block-oculama-main-menu .account-avatar {
    height: 30px;
    width: 30px;
  }
}
