/* SRD page-section navigation, aligned with the landing content. */
body.srd-section.srd-landing .srd-page-nav {
  display: block;
  padding: 0;
  min-height: 56px;
  overflow: visible;
  background: #4b2e83;
}

body.srd-section.srd-landing .srd-page-nav-inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

body.srd-section.srd-landing .srd-page-nav a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  font-family: "SRD Section Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .05em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

body.srd-section.srd-landing .srd-page-nav a:hover,
body.srd-section.srd-landing .srd-page-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
body.srd-section.srd-landing .srd-page-nav a:focus-visible { outline: 2px solid #b7a57a; outline-offset: -3px; }
body.srd-section.srd-landing :is(#about, #services, #why-srd, #projects, #partners, #contact) { scroll-margin-top: 16px; }

@media (min-width: 768px) and (max-width: 1023px) {
  body.srd-section.srd-landing .srd-page-nav-inner { padding: 0 24px; }
  body.srd-section.srd-landing .srd-page-nav a { padding: 0 10px; }
}

@media (max-width: 767px) {
  body.srd-section.srd-landing .srd-page-nav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 12px;
  }
  body.srd-section.srd-landing .srd-page-nav a { min-width: 0; min-height: 50px; padding: 0 8px; font-size: 14px; }
  /* Keep the parent theme's mobile menu button below this navigation. */
  body.srd-section.srd-landing .srd-welcome-section #mobile-relative.frontpage .uw-mobile-menu-toggle { top: 12px; color: #4b2e83; }
}

@media (max-width: 480px) {
  body.srd-section.srd-landing .srd-page-nav-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
