.nav-category-browser {
  position: relative;
}

.nav-category-browser > .nav-category-browser-panel {
  width: min(860px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 210px));
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(17, 24, 39, .19);
}

.nav-category-browser:not([open]) > .nav-category-browser-panel {
  display: none;
}

.nav-category-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 13px;
  border-bottom: 1px solid #ebe6dd;
  background: linear-gradient(135deg, #fffaf0, #fff);
}

.nav-category-browser-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.nav-category-browser-head strong {
  color: #171b22;
  font-size: 13px;
  font-weight: 900;
}

.nav-category-browser-head span {
  color: #7a8390;
  font-size: 10px;
  font-weight: 750;
}

.nav-category-browser-head > a {
  min-height: 28px !important;
  padding: 6px 9px !important;
  border: 1px solid #e6d5a6;
  border-radius: 8px !important;
  background: #fff8df !important;
  color: #72530f !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.nav-category-browser-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 390px;
  max-height: min(466px, calc(100vh - 262px));
}

.nav-category-main-list {
  display: block;
  min-width: 0;
  padding: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  border-right: 1px solid #ebe6dd;
  background: #faf9f6;
  scrollbar-gutter: stable;
}

.nav-category-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 2px;
  padding: 7px 8px 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #283141;
  font: 790 10.5px/1.2 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav-category-main-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-category-main-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: inherit;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-category-main-copy em {
  overflow: hidden;
  color: #7a8390;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-category-main small {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ece9e2;
  color: #697383;
  font-size: 8.5px;
  font-weight: 900;
}

.nav-category-main:hover,
.nav-category-main:focus-visible {
  background: #fff;
  color: #111827;
  outline: 0;
  box-shadow: inset 0 0 0 1px #e8dfce;
}

.nav-category-main.is-selected {
  background: #fad200;
  color: #111827;
  box-shadow: 0 5px 13px rgba(112, 82, 13, .14);
}

.nav-category-main.is-selected small {
  background: rgba(255, 255, 255, .76);
  color: #60470d;
}

.nav-category-main.is-selected .nav-category-main-copy em {
  color: #6d5314;
}

.nav-category-subarea {
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.nav-category-subpanel {
  height: 100%;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.nav-category-subpanel[hidden] {
  display: none !important;
}

.nav-category-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece7de;
}

.nav-category-subhead > div {
  min-width: 0;
}

.nav-category-subhead span {
  display: block;
  margin-bottom: 2px;
  color: #8a6b24;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-category-subhead strong {
  display: block;
  overflow: hidden;
  color: #171b22;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-category-subhead > a {
  min-height: 29px !important;
  padding: 7px 9px !important;
  border: 1px solid #ddd5c8;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4a5361 !important;
  font-size: 9.5px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.nav-category-child-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.nav-category-child-grid > a {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px !important;
  padding: 8px 9px !important;
  border: 1px solid #ece7de;
  border-radius: 9px !important;
  background: #fff !important;
  color: #303947 !important;
  font-size: 10.5px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.nav-category-child-grid > a span {
  min-width: 0;
}

.nav-category-child-grid > a small {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #556176;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
}

.nav-category-child-grid > a:hover small,
.nav-category-child-grid > a.active small {
  background: #fff0b8;
  color: #73550d;
}

.nav-category-child-grid > a:hover,
.nav-category-child-grid > a.active {
  border-color: #e3c66f;
  background: #fff9e6 !important;
  color: #111827 !important;
}

.nav-category-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #ddd5c8;
  border-radius: 12px;
  background: #fbfaf7;
  color: #747d8a;
  text-align: center;
}

.nav-category-empty a {
  min-height: 30px !important;
  padding: 7px 10px !important;
  background: #fff5cf !important;
  color: #72530f !important;
}

@media (max-width: 900px) and (min-width: 761px) {
  .nav-category-browser > .nav-category-browser-panel {
    width: min(760px, calc(100vw - 24px));
  }

  .nav-category-browser-layout {
    grid-template-columns: 235px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-category-browser > .nav-category-browser-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 6px;
    border-radius: 12px;
    box-shadow: none;
  }

  .nav-category-browser-head {
    min-height: 46px;
    padding: 8px 9px;
  }

  .nav-category-browser-head > div {
    display: grid;
    gap: 0;
  }

  .nav-category-browser-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
  }

  .nav-category-main-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    max-height: 250px;
    border-right: 0;
    border-bottom: 1px solid #ebe6dd;
  }

  .nav-category-main {
    min-height: 38px;
    margin: 0;
    padding: 7px;
    font-size: 10px;
  }

  .nav-category-main-copy strong,
  .nav-category-main-copy em {
    white-space: normal;
  }

  .nav-category-subpanel {
    max-height: 310px;
    padding: 10px;
  }

  .nav-category-subhead {
    align-items: flex-start;
    min-height: 0;
  }

  .nav-category-subhead strong {
    font-size: 13px;
    white-space: normal;
  }

  .nav-category-child-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nav-category-child-grid > a {
    min-height: 36px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 430px) {
  .nav-category-browser-head > a {
    font-size: 9px !important;
  }

  .nav-category-main-list {
    grid-template-columns: 1fr;
    max-height: 230px;
  }
}
