/* Shared VIUK-Light wordmark. Theme colors stay in each page's stylesheet. */
:root {
  --site-header-height: 88px;
}

.site-header, .docs-topbar {
  min-height: var(--site-header-height);
}

:is(.site-header, .docs-topbar, .site-footer) :is(.brand, .docs-brand, .footer-brand) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font: 650 19px/1.85 "BIZ UDPGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
}

:is(.site-header, .docs-topbar, .site-footer) :is(.brand, .docs-brand, .footer-brand) > .brand-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 28px;
  max-width: 40px;
  object-fit: contain;
}

@media (max-width: 600px) {
  :root {
    --site-header-height: 76px;
  }

  :is(.site-header, .docs-topbar, .site-footer) :is(.brand, .docs-brand, .footer-brand) {
    font-size: 17px;
  }
}

/* A single desktop presentation scale keeps type, imagery and spacing aligned. */
@media (min-width: 1024px) {
  html {
    --site-desktop-scale: .85;
    zoom: var(--site-desktop-scale);
  }

  /* Sticky reading navigation still fills the visible window after scaling. */
  .docs-layout {
    min-height: calc(100vh / var(--site-desktop-scale) - var(--site-header-height));
  }

  .docs-sidebar {
    height: calc(100vh / var(--site-desktop-scale) - var(--site-header-height));
  }
}

@media (min-width: 1200px) {
  .page-toc {
    max-height: calc(100vh / var(--site-desktop-scale) - var(--site-header-height) - 68px);
  }
}
