/* Solid, high-contrast category navigation. No photo or overlay. */
.nbn-category-nav {
  background: #f2f5ef;
  border-bottom: 1px solid #dce3d5;
  color: #152013;
  isolation: isolate;
}
.nbn-category-nav__inner { padding-top: 20px; padding-bottom: 22px; }
.nbn-category-nav .nbn-category-nav__label {
  display: block;
  margin: 0 0 10px;
  color: #4b5844;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nbn-category-nav .nbn-category-nav__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nbn-category-nav .nbn-category-nav__links li { margin: 0; padding: 0; min-width: 0; }
.nbn-category-nav .nbn-category-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #ccd6c5;
  border-radius: 3px;
  background: #fff;
  color: #1b2717;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.nbn-category-nav .nbn-category-nav__links a:hover {
  border-color: #5c7e29;
  background: #e7eedf;
  color: #152013;
}
.nbn-category-nav .nbn-category-nav__links a[aria-current="page"] {
  border-color: #152013;
  background: #152013;
  color: #fff;
  box-shadow: inset 4px 0 #83b735;
}
.nbn-category-nav svg { flex: 0 0 auto; }
.nbn-category-nav .nbn-category-nav__links a[aria-current="page"] svg { color: #a6d75d; }
.nbn-category-nav a:focus-visible,
.nbn-category-nav summary:focus-visible { outline: 3px solid #537624; outline-offset: 3px; }
.nbn-category-nav__mobile { display: none; }

/* Remove the excess title-banner spacing; keep all archive content and H1. */
body.nbn-category-navigation .wd-page-content .wd-content-layout { padding-top: 32px; }
body.nbn-category-navigation .wd-content-area { padding-top: 0; }
body.nbn-category-navigation .nbn-archive-heading { padding-top: 0; }

@media (max-width: 1024px) {
  /* Keep contact above the existing 55px mobile toolbar, below side drawers. */
  body.nbn-category-navigation.sticky-toolbar-on .nbn-floating-whatsapp {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 767px) {
  .nbn-category-nav__desktop { display: none; }
  .nbn-category-nav__mobile { display: block; }
  .nbn-category-nav__inner { padding-top: 12px; padding-bottom: 12px; }
  .nbn-category-nav__mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid #aab99b;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    list-style: none;
  }
  .nbn-category-nav__mobile summary::-webkit-details-marker { display: none; }
  .nbn-category-nav__mobile summary .nbn-category-nav__label { margin-bottom: 3px; font-size: 11px; }
  .nbn-category-nav__current { display: block; color: #152013; font-size: 16px; font-weight: 700; line-height: 1.4; }
  .nbn-category-nav__mobile[open] .nbn-category-nav__chevron { transform: rotate(180deg); }
  .nbn-category-nav .nbn-category-nav__links { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; }
  .nbn-category-nav .nbn-category-nav__links a { min-height: 48px; font-size: 15px; }
  body.nbn-category-navigation .wd-page-content .wd-content-layout { padding-top: 24px; }
  body.nbn-category-navigation .nbn-archive-heading,
  body.nbn-category-navigation .term-description { padding-left: 0; padding-right: 0; }
  body.nbn-category-navigation .nbn-archive-heading h1 { font-size: clamp(28px, 6.5vw, 36px); line-height: 1.12; }
}
@media (prefers-reduced-motion: reduce) {
  .nbn-category-nav .nbn-category-nav__links a { transition: none; }
}
