/* Widen the content column so wide tables (e.g. API reference tables with
   long enum/identifier names) have more room before wrapping, instead of
   leaving unused space in the left/right margins. */
.md-grid {
  max-width: 55rem;
}

/* Prevent long inline code values (e.g. DLSDK_UNSUCCESSFUL_NO_DEVICE) inside
   tables from wrapping onto multiple lines. */
.md-typeset table:not([class]) code {
  white-space: nowrap;
}

/* The DisplayLink Direct logo is two-tone (brand blue #0081c6 body, black
   outline). Both colors have low contrast against the theme's primary
   color used as the header background (indigo in light mode, near-black
   slate in dark mode), so give the logo a small neutral backdrop to keep
   it visible in both palettes. */
.md-header__button.md-logo {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 2px 4px;
}

/* Brand color: match the theme's primary color to the DisplayLink Direct
   logo's blue (#0081c6) instead of an approximate built-in Material swatch.
   Requires `primary: custom` in mkdocs.yml. See:
   https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-colors */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #0081c6;
  --md-primary-fg-color--light: #59addb;
  --md-primary-fg-color--dark: #005a8b;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);
}

/* Frame sample screenshots with the active primary brand color so captures
   remain visually tied to the DisplayLink Direct palette. */
.md-typeset img.sample-screenshot-frame {
  border: 4px solid var(--md-primary-fg-color);
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

/* Wheel download links toggle button and container */
#toggleWheelLinks {
  padding: 8px 16px;
  background-color: #0081c6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#toggleWheelLinks:hover {
  background-color: #005a8b;
}

#wheelLinksContainer {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border-left: 4px solid #0081c6;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  line-height: 1.6;
  color: #333;
}

#wheelLinksContainer a {
  color: #0081c6;
  text-decoration: none;
  word-break: break-all;
}

#wheelLinksContainer a:hover {
  text-decoration: underline;
  color: #005a8b;
}

#wheelLinksContainer h3 {
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  margin: 12px 0 8px 0;
  color: #333;
}

#wheelLinksContainer.visible {
  display: block;
}

