/* v37: keep the site nav on one row at 1280px, and the mobile top bar on one row. */
@media (max-width: 899.98px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: .5rem;
  }
  .logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  .header-actions {
    flex: 0 0 auto;
    gap: .3rem;
  }
  .header-inner:has(#site-nav .nav-links.is-open) {
    flex-wrap: wrap;
  }
  .nav-links.is-open {
    flex-basis: 100%;
    width: 100%;
    order: 5;
  }
  .nav-links a {
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: .45rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    gap: 0;
    width: auto;
    flex-direction: row;
    padding-bottom: 0;
  }
  .nav-links a {
    padding: .35rem .32rem;
    font-size: .86rem;
    white-space: nowrap;
  }
  .header-actions { flex: 0 0 auto; }
}

@media (min-width: 1320px) {
  .nav-links a {
    padding: .45rem .55rem;
    font-size: .95rem;
  }
}


/* v92: chapter page map links, each on its own line with a comfortable tap size */
.hn-map-links{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;margin:1rem 0}
.hn-map-links a{display:inline-flex;align-items:center;min-height:44px;padding:.35rem 0;line-height:1.35}
.hn-map-links span{display:block;margin:.15rem 0 .35rem;line-height:1.45}
