/* Keep the two-row site header and give the account controls their own space. */
header.topbar .aria-header-account .aria-header-actions button {
  min-height: 38px;
  height: 38px;
  max-width: none;
  flex-shrink: 0;
  padding-inline: 11px;
  font-size: 14px;
  white-space: nowrap;
}

header.topbar .aria-header-account #aria-header-signup {
  min-width: 86px;
  background: #175fa9;
  border-color: #175fa9;
  color: #fff;
  font-weight: 750;
}

header.topbar .aria-header-account #aria-header-signup:hover {
  background: #104e90;
}

@media (min-width: 761px) {
  header.topbar {
    grid-template-columns: clamp(170px, 14vw, 220px) minmax(0, 1fr) 176px;
    grid-template-rows: 38px 30px;
  }

  header.topbar .aria-header-account {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    inset: auto;
    width: 100%;
  }

  header.topbar .aria-header-account .zena-brand {
    position: absolute;
    right: 0;
    bottom: calc(100% + 2px);
  }

  header.topbar .aria-header-primary > nav {
    overflow-x: auto;
    justify-content: center;
    justify-content: safe center;
    scrollbar-width: thin;
  }
}

@media (max-width: 760px) {
  header.topbar .aria-header-account .aria-header-actions button {
    padding-inline: 8px;
    font-size: 13px;
  }

  header.topbar .aria-header-account #aria-header-signup {
    min-width: 74px;
  }
}

@media (min-width: 1101px) {
  .hero {
    min-height: calc(100vw * 9 / 19);
    height: auto;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
  }

  .hero h1 {
    font-size: clamp(40px, 4.4vw, 80px);
  }

  .hero .hero-heading .eyebrow,
  .hero .aria-introduction-tagline {
    font-size: 10px;
  }

  .hero .hero-heading .intro {
    font-size: 13px;
  }

  .hero .aria-introduction h2 {
    font-size: clamp(24px, 1.85vw, 34px);
  }

  .hero .aria-introduction-body {
    font-size: 13px;
    line-height: 1.7;
  }

  .hero .aria-introduction,
  .hero .aria-feature-card {
    padding-inline: 22px;
  }

  .hero .aria-introduction-close {
    font-size: 14px;
  }

  .hero .aria-introduction-close strong {
    font-size: 22px;
  }

  .hero > .hero-banner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 1.22fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-inline: 0;
  }

  .hero-banner .hero-heading {
    grid-column: 1 / 3;
  }

  .hero-banner .hero-download {
    grid-column: 3;
    justify-self: center;
    width: min(88%, 440px);
  }

  .hero .aria-feature-card {
    display: flex;
  }

  .hero .aria-feature-guide {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .hero .aria-feature-guide h3 {
    font-size: clamp(19px, 1.14vw, 30px);
    line-height: 1.4;
  }

  .hero .aria-feature-guide ul {
    align-content: space-between;
    gap: clamp(10px, .7vw, 18px);
  }

  .hero .aria-feature-guide li {
    font-size: clamp(14px, .84vw, 23px);
    line-height: 1.65;
  }
}

/* Share the hero's desktop side margins with the sections below it. */
@media (min-width: 1600px) {
  main > section:not(.hero) > .section-title,
  main > section:not(.hero) > .module-grid,
  main > section:not(.hero) > .aria-upgrade-grid,
  main > section:not(.hero) > .aria-upgrade-card,
  main > section:not(.hero) > ol,
  main > section:not(.hero) > .aria-shop-note,
  main > #shop > .aria-shop-showcase {
    max-width: none;
  }

  main > section:not(.hero) .aria-about-principles,
  main > section:not(.hero) .aria-about-roles,
  main > section:not(.hero) .aria-about-details-entry {
    max-width: none;
  }

  .hero .aria-introduction-body {
    font-size: clamp(14px, .76vw, 22px);
    line-height: 1.65;
  }

  .hero .aria-introduction h2 {
    font-size: clamp(26px, 1.62vw, 44px);
  }
}
