/* Shared branded shell used by the landing page and the mdBook guide. */
:is(.site-header, .vanellus-global-header) {
  position: sticky;
  z-index: var(--docs-shell-z, 10);
  top: 0;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--docs-shell-height, 64px);
  padding: 0 clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--docs-shell-border);
  background: var(--docs-shell-background);
  backdrop-filter: blur(12px);
}

:is(.site-header, .vanellus-global-header) * {
  box-sizing: border-box;
}

:is(.brand, .vanellus-global-brand) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--docs-shell-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

:is(.brand-mark, .vanellus-global-brand-mark) {
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 1px solid var(--docs-shell-border);
  border-radius: 7px;
  background: var(--docs-shell-surface);
}

:is(.brand-name, .vanellus-global-brand-name) {
  font-weight: 800;
  letter-spacing: -0.03em;
}

:is(.brand, .vanellus-global-brand):is(:visited, :hover) {
  color: var(--docs-shell-text);
}

:is(.brand-section, .vanellus-global-brand-section) {
  padding-left: 10px;
  border-left: 1px solid var(--docs-shell-border);
  color: var(--docs-shell-muted);
  font-weight: 400;
}

:is(.site-header nav, .vanellus-global-nav) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

:is(.header-actions, .vanellus-global-actions) {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

:is(.site-header nav, .vanellus-global-nav) a,
:is(.site-header nav, .vanellus-global-nav) a:visited {
  position: relative;
  padding-bottom: 3px;
  color: var(--docs-shell-nav);
  font-weight: 400;
  text-decoration: none;
}

:is(.site-header nav, .vanellus-global-nav) a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--docs-shell-accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

:is(.site-header nav, .vanellus-global-nav) a:is(:hover, :focus-visible)::after,
.vanellus-global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

:is(.site-header nav, .vanellus-global-nav) a:is(:hover, [aria-current="page"]) {
  color: var(--docs-shell-text);
}

:is(.site-header nav, .vanellus-global-nav) a[aria-current="page"] {
  font-weight: 600;
}

:is(.theme-toggle, .vanellus-theme-toggle) {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--docs-shell-border);
  border-radius: 7px;
  background: var(--docs-shell-surface);
  color: var(--docs-shell-muted);
  font: inherit;
  cursor: pointer;
}

:is(.theme-toggle, .vanellus-theme-toggle):hover {
  color: var(--docs-shell-accent);
}

:is(.theme-toggle-icon, .vanellus-theme-toggle-icon) {
  font-size: 16px;
  line-height: 1;
}
