/* Shared navigation and fragment targets on the homepage and QIN pages. */
:root { --site-nav-height: 77px; }
.portrait { height: auto; }
.site-menu-toggle { display: none; }
.site-navigation a[aria-current="page"] {
  color: #806b35;
  text-decoration: underline;
  text-underline-offset: 6px;
}
main section[id] {
  scroll-margin-top: calc(var(--site-nav-height) + 24px - 86px);
}
#notes { scroll-margin-top: calc(var(--site-nav-height) + 24px); }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .nav .brand { font-size: 18px; white-space: nowrap; }
  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #aeb5bf;
    border-radius: 5px;
    background: transparent;
    color: var(--navy);
    font: bold 13px Arial, sans-serif;
    cursor: pointer;
  }
  .site-navigation { display: none; flex-basis: 100%; }
  .nav.is-menu-open .site-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    padding: 0 0 16px;
  }
  .site-navigation a:not(.nav-cta), .site-navigation .nav-cta {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
  }
  main section[id] {
    scroll-margin-top: calc(var(--site-nav-height) + 24px - 66px);
  }
}
@media (max-width: 390px) {
  .nav .brand { font-size: 16px; }
  .nav-wrap .wrap { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
