/**
 * Shared sidebar category list — blogs + FAQ.
 * Markup: .nw-side-box > h2 + .nw-side-cats > a|button > span + b
 */

.nw-side-box {
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--nw-border);
  border-radius: 8px;
}

.nw-side-box > h2,
.nw-side-box > .nw-side-box__title {
  margin: 0 0 14px;
  font-size: var(--nw-fs-body);
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: var(--ink, #171c29);
}

.nw-side-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nw-side-cats > a,
.nw-side-cats > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #f4f6fb;
  color: #3a4256;
  font: inherit;
  font-size: var(--nw-fs-secondary);
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nw-side-cats > a b,
.nw-side-cats > button b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff;
  font-size: var(--nw-fs-meta);
  font-weight: 550;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #8b95a8;
}

.nw-side-cats > a:hover,
.nw-side-cats > button:hover,
.nw-side-cats > a.is-active,
.nw-side-cats > button.is-active,
.nw-side-cats > a[aria-current="true"],
.nw-side-cats > button[aria-current="true"] {
  background: #e8eeff;
  color: var(--main-color);
}

.nw-side-cats > a.is-active,
.nw-side-cats > button.is-active,
.nw-side-cats > a[aria-current="true"],
.nw-side-cats > button[aria-current="true"] {
  font-weight: 550;
}

.nw-side-cats > a:hover b,
.nw-side-cats > button:hover b,
.nw-side-cats > a.is-active b,
.nw-side-cats > button.is-active b,
.nw-side-cats > a[aria-current="true"] b,
.nw-side-cats > button[aria-current="true"] b {
  background: var(--main-color);
  color: #fff;
}

@media (max-width: 960px) {
  .nw-side-cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
  }

  .nw-side-cats > a,
  .nw-side-cats > button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 44px;
    white-space: nowrap;
  }
}
