.ts-navigation-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-inline-end: 6px;
  vertical-align: middle;
}

body.ts-hybrid-active .ts-hybrid-sidebar nav details a:has(> .ts-hybrid-nav-icon) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-page-title-icon {
  width: 1em;
  height: 1em;
  margin-inline-end: 0.34em;
  vertical-align: -0.12em;
}

body[data-ts-hybrid-theme="dark"] .ts-page-title-icon,
body[data-ts-hybrid-theme="dark"] .ts-navigation-icon {
  filter: brightness(0) invert(1);
}

body.ts-hybrid-active .ts-hybrid-topnav nav a[aria-current="page"] > .ts-hybrid-nav-icon {
  filter: brightness(0) invert(1);
}

/* Shared Hybrid top-level labels; preserve submenu sizing and compact padding. */
body.ts-hybrid-active .ts-hybrid-topnav nav > ul > li > a {
  font-size: calc(16px * var(--hy-font-scale, 1));
}
body.ts-hybrid-active .ts-hybrid-topnav nav :is(a, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* On wrapped mobile bars, place dropdowns below every top-level label row. */
@media (max-width: 850px) {
  body.ts-hybrid-active .ts-hybrid-topnav nav { position: relative; order: 2; flex: 1 0 100%; }
  body.ts-hybrid-active .ts-hybrid-topnav nav > ul > li > details { position: static; }
  body.ts-hybrid-active .ts-hybrid-topnav nav > ul > li > details > ul {
    top: 100%;
    left: 0;
    right: 0;
    min-width: 0;
    max-height: 60dvh;
    overflow: auto;
  }
}
