/* Docket brand layer — injected by server.mjs, so React's tree stays pristine. */

a[href="/"]:has(> svg[viewBox="0 0 155 26"]) > svg[viewBox="0 0 155 26"] {
  display: none !important;
}

a[href="/"]:has(> svg[viewBox="0 0 155 26"])::after {
  content: "";
  position: absolute;
  top: 24.606px;
  left: 44.4322%;
  width: 58%;
  height: 20px;
  transform: translate(-50%, -50%);
  background: url("/images/header/docket-logo.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* Mobile logo tab */
a[href="/"]:has(> svg[viewBox="0 0 132 54"]) > svg[viewBox="0 0 155 26"] {
  display: none !important;
}

a[href="/"]:has(> svg[viewBox="0 0 132 54"])::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 56px;
  width: 83.5px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: url("/images/header/docket-logo.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* The header stays visible on scroll. This neutralises the old hide class so
   a cached copy of the previous brand script cannot make the nav vanish. */
header {
  opacity: 1;
  visibility: visible;
}

header.dk-header-hidden {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* The console's gate styles tighten the header nav gap to 1.25rem. The
   reference nav uses 1.5rem, so keep both pages on the same 12px item padding. */
@media (min-width: 1024px) {
  header nav[data-header-nav] {
    --nav-gap: 1.5rem !important;
  }
}

/* Between the lg breakpoint and 1200px the six-item nav needs tighter spacing
   so it stays clear of the fixed GitHub tab. */
@media (min-width: 1024px) and (max-width: 1199px) {
  header nav[data-header-nav] {
    --nav-gap: 0.5rem !important;
  }
  header nav[data-header-nav] a {
    font-size: 13px !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

/* The Judge Tour tab is shown on wide desktops, immediately left of GitHub.
   Below 1280px it is replaced by the sixth text-nav item so nothing overlaps. */
@media (min-width: 1280px) {
  .dk-tour-nav {
    display: none !important;
  }
}
@media (max-width: 1279px) {
  .dk-tour-tab {
    display: none !important;
  }
}
