/* Shared public category headings: four-character pairs with one lower rule.
   Only section headings are targeted; hero, card, dialog and game UI stay intact.
   Specificity deliberately wins over legacy skin and mobile heading overrides. */
html:root body :is(.ng-hub-section-head, .gh-section-head) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 18px 0 16px;
  text-align: center;
}

html:root body :is(.ng-hub-section-head, .gh-section-head) > div {
  width: 100%;
  min-width: 0;
}

html:root body .ng-hub-section-head .ng-hub-section-label,
html:root body .gh-section-head > div > span {
  display: none;
}

html:root body :is(.ng-hub-section-head h2, .gh-section-head h2, .pk16-category-title) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 22px 0 14px;
  padding: 0 0 12px;
  overflow: visible;
  color: var(--ng-shell-text, var(--ng-ink, #182337));
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-indent: 0;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

html:root body :is(.ng-hub-section-head h2, .gh-section-head h2) {
  margin: 0;
}

html:root body :is(.ng-hub-section-head h2, .gh-section-head h2, .pk16-category-title)::after {
  content: "";
  position: absolute;
  display: block;
  inset: auto;
  left: 50%;
  width: min(96px, 42%);
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 1;
  /* Override the old !important left-hand glowing theme marker. */
  background: linear-gradient(90deg, var(--ng-shell-primary), var(--ng-shell-accent)) !important;
  box-shadow: none !important;
  transform: translateX(-50%);
  filter: none;
  animation: none;
  pointer-events: none;
}

html:root body :is(.ng-hub-section-head h2, .gh-section-head h2, .pk16-category-title)::before {
  content: none;
  display: none;
}

html:root body :is(.ng-hub-section-head h2, .gh-section-head h2, .pk16-category-title)::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--ng-shell-primary), var(--ng-shell-accent), transparent) !important;
}

html:root body :is(.ng-hub-section-head, .gh-section-head) > p {
  /* Keep dynamic catalog summary hooks for loading/filtering code, but do not
     display another line of small text underneath the category title. */
  display: none;
}
