/* DDChallenge homepage — oversized monochrome background logo
   Works with the existing official ddchallenge.svg from the site root.
   Install next to index.html; load AFTER r8.css.
   This decorative image does not intercept clicks.
*/
:root {
  --ddc-background-logo-opacity: 0.27; /* change to 0.35 for more visible; 0.15 for subtler */
}

/* Keep the logo an overlay on the left EMPTY desktop background area.
   The z-index deliberately puts it above opaque/full-screen layout layers;
   pointer-events:none guarantees underlying controls still work. */
.tabs-container > .ddc-embedded-logo {
  display: flex !important;
  position: fixed !important;
  left: clamp(22px, 3.4vw, 70px) !important;
  top: 53% !important;
  transform: translateY(-50%) !important;
  width: min(43vw, 660px) !important;
  height: min(75vh, 750px) !important;
  max-width: none !important;
  align-items: center;
  justify-content: center;
  z-index: 12 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
  overflow: visible;
}

.tabs-container > .ddc-embedded-logo > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  /* Monochrome light relief on the dark DDChallenge background.
     Alpha/transparency of the ORIGINAL SVG is preserved. */
  filter: grayscale(1) brightness(0) invert(1) !important;
  opacity: var(--ddc-background-logo-opacity) !important;
  mix-blend-mode: normal !important;
}

/* Leave the compact/mobile layout uncluttered. */
@media (max-width: 1050px), (max-height: 480px) {
  .tabs-container > .ddc-embedded-logo {
    display: none !important;
  }
}

/* Avoid putting the decorative logo on printed documents. */
@media print {
  .tabs-container > .ddc-embedded-logo {
    display: none !important;
  }
}
