/* Keep the contact row vertically centered beside the taller mode switch. */
.topbar__inner {
  align-items: center;
}

html.ht-accessibility-mode .topbar {
  font-size: 1.25rem;
}

html.ht-accessibility-mode .topbar__item {
  line-height: 1.5;
}

html.ht-accessibility-mode .topbar__icon {
  width: 1.1em;
  height: 1.1em;
}

@media (max-width: 800px) {
  .topbar {
    font-size: 0.9rem;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 10px 12px;
  }

  .topbar__contact {
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    text-align: left;
  }

  .topbar__contact .topbar__item {
    justify-content: flex-start;
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
  }

  .topbar__contact .topbar__item:first-child {
    flex-basis: auto;
  }

  .topbar__contact .topbar__item > :not(.topbar__icon) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .topbar__accessibility,
  html.ht-accessibility-mode .topbar__accessibility {
    order: -1;
    align-self: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    margin-inline: 0;
    padding: 8px 12px;
    text-align: center;
    white-space: normal;
  }

  .topbar__icon {
    width: 16px;
    height: 16px;
  }
}
