/* First paint: neutral high-legibility surface, including JS-off / AJAX.
   Server-rendered WP-upload logos override this with their actual palette.
   :has support is available in current browsers; no modification of logo pixels. */
@supports selector(:has(img)) {
  html body :is(
    .twlc24-logo-box, .twlc24-mobile-brand,
    .twtools-suggestion-logo, .tw-hf-suggestion-media,
    .tw-hf-dialog-media, .tw-home-tool-logo,
    .twtd-tool-logo, .twtd-logo-box, .twtd-logo-wrap,
    .twmv-search-suggestion__logo, .twmv-watch-local-suggestion__logo,
    .twmv-selection-logo, .twmv-card-logo, .twmv-compare-logo,
    .twmv-summary-tool-logo, .twmv-sticky-logo, .twmv-watch-list-logo,
    .twmv-picker-logo, .twmv-mobile-rating-logo
  ):has(img) {
    background:#364961!important;
    background-image:none!important;
    border-color:#2d3d53!important;
    background-clip:padding-box!important;
  }
}
/* Single softly rounded colour surface; no square inset or inner background. */
.tw-logo-surface {
  isolation:isolate!important;
  background-clip:padding-box!important;
  overflow:hidden!important;
  transition:none!important;
  box-shadow:none!important;
}
.tw-logo-surface--dark {background:#364961!important;border-color:#2d3d53!important}
.tw-logo-surface--light {background:#edf2f7!important;border-color:#d3deea!important}
.tw-logo-surface--neutral {background:#364961!important;border-color:#2d3d53!important}
.tw-logo-adaptive-img {
  opacity:1!important;visibility:visible!important;
  filter:none!important;mix-blend-mode:normal!important;
}
@media(prefers-reduced-motion:reduce){.tw-logo-surface{transition:none!important}}

/* Stabilize the first painted logo: no color or image interpolation on load. */
html body [data-tw-logo-prepaint-src] {
  transition:none!important;
  animation:none!important;
  background-clip:padding-box!important;
  overflow:hidden!important;
}
html body [data-tw-logo-prepaint-src] > img,
html body .tw-logo-surface > img.tw-logo-adaptive-img {
  transition:none!important;
  animation:none!important;
}

/* Komplettpaket 7: the measured visible logo bounds are applied on the FIRST
   paint. This changes neither the original media file nor the existing brand
   colour. Fixed frame dimensions prevent reflow across breakpoints. */
html body [data-tw-logo-prepaint-src] img[data-twlc24-logo],
html body [data-tw-logo-prepaint-src] img[data-twtd-logo],
html body [data-tw-logo-prepaint-src].tw-home-tool-logo img,
html body .tw-logo-surface.tw-logo-fit-active img.tw-logo-adaptive-img {
  transform:translate(var(--tw-logo-fit-shift-x,0%),var(--tw-logo-fit-shift-y,0%)) scale(var(--tw-logo-fit-scale,1))!important;
  transform-origin:center center!important;
  transition:none!important;
  animation:none!important;
  will-change:auto!important;
}
/* Avoid the old loader briefly hiding correctly server-prepared logos. */
html.twlc24-js body .twtools [data-tw-logo-prepaint-src] img[data-twlc24-logo] {
  opacity:1!important;
  visibility:visible!important;
}
