/* Section accents are limited to the navigation, leaving hero actions untouched. */
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1200px;
  width: calc(100% - 64px);
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a {
  --nav-accent: #98d9c3;
  min-height: 50px;
  padding: 6px 12px;
  gap: 12px;
  justify-content: flex-start;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 25%, #83929c1a) !important;
  border-radius: 8px !important;
  background: #10171ed1 !important;
  color: #eef2f5 !important;
  box-shadow: 0 8px 20px #00000040, 0 2px 5px #00000026, inset 0 1px #effaff0d !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 650 14px/20px Inter, sans-serif;
  letter-spacing: 0;
  isolation: isolate;
  overflow: visible;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#servers"] { --nav-accent: #ef9b9f; }
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#features"] { --nav-accent: #93c9ed; }
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#deploy"] { --nav-accent: #98d9c3; }
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#discord"] { --nav-accent: #c3b6ec; }
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#downloads"] { --nav-accent: #8dd8e0; }
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#feed"] { --nav-accent: #e7cb91; }

/* Decorative photo layers never participate in button sizing. */
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#servers"] {
  --nav-photo: url('/assets/cs-art-20260911/zombie-survival.webp');
  --nav-photo-position: 80% 48%;
}
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#features"] {
  --nav-photo: url('/assets/player-hub-20260912/panel.webp');
  --nav-photo-position: 78% 46%;
}
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#deploy"] {
  --nav-photo: url('/assets/hero-links-20260912/connect.webp');
  --nav-photo-position: 82% 58%;
}
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#discord"] {
  --nav-photo: url('/assets/player-hub-20260912/community.webp');
  --nav-photo-position: 80% 38%;
}
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#downloads"] {
  --nav-photo: url('/assets/services-screen-20260911/launcher.webp');
  --nav-photo-position: 80% 45%;
}
body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[href="#feed"] {
  --nav-photo: url('/assets/hero-links-20260912/activity.webp');
  --nav-photo-position: 82% 45%;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #101920 0%, #101920 30%, #101920f5 42%, #0b141dc4 70%, #07111ba3 100%),
    linear-gradient(110deg, color-mix(in srgb, var(--nav-accent) 10%, transparent), transparent 75%), var(--nav-photo, none);
  background-size: cover;
  background-position: center, center, var(--nav-photo-position, center);
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: none;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: auto 18px 0;
  width: auto;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: var(--nav-accent);
  opacity: .6;
  transform: scaleX(.24);
  transform-origin: left;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s ease;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 4px;
  background: transparent !important;
  color: var(--nav-accent);
  box-shadow: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host > svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  color: inherit;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a .vector-label {
  min-width: 0;
  overflow-wrap: normal;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a:is(:hover, :focus-visible) {
  color: #ffffff !important;
  background: #1c2933ed !important;
  border-color: color-mix(in srgb, var(--nav-accent) 60%, transparent) !important;
  box-shadow: 0 10px 24px #0000004d, 0 2px 6px #00000033, inset 0 1px #effaff14 !important;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a:is(:hover, :focus-visible) > .vector-host {
  color: var(--nav-accent);
  background: color-mix(in srgb, var(--nav-accent) 12%, transparent) !important;
  transform: translateY(-1px);
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[aria-current="location"] {
  color: #ffffff !important;
  background: #1c2933ed !important;
  border-color: color-mix(in srgb, var(--nav-accent) 75%, transparent) !important;
  box-shadow: 0 8px 20px #00000040, 0 2px 5px #00000026, inset 0 1px #c5f7e414 !important;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[aria-current="location"] > .vector-host {
  color: #10181e;
  background: var(--nav-accent) !important;
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a:is(:hover, :focus-visible, [aria-current="location"])::after {
  opacity: 1;
  transform: scaleX(1);
}

body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a:focus-visible {
  outline: 2px solid var(--nav-accent) !important;
  outline-offset: -3px !important;
}

@media (min-width: 1101px) and (max-width: 1250px) {
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a {
    padding: 6px 10px;
    gap: 8px;
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

@media (max-width: 1100px) {
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a {
    min-height: 50px;
    padding: 6px 10px;
  }
}

@media (max-width: 600px) {
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a {
    min-height: 46px;
    padding: 8px;
    gap: 8px;
    justify-content: flex-start;
    font-size: 12px !important;
    line-height: 18px !important;
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 4px;
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host > svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a,
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a::after,
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a > .vector-host {
    transition: none;
  }
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a:is(:hover, :focus-visible) > .vector-host {
    transform: none;
  }
}

@media (forced-colors: active) {
  body.sc-network[data-net-page="home"] #top:has(#hero) .ex-section-nav.section > a[aria-current="location"] {
    outline: 2px solid Highlight !important;
    outline-offset: -4px !important;
  }
}
