/* Only the article-owned marker activates this stylesheet; PJAX removal deactivates it. */
html:has([data-wuwa-memorial="solar5-younuo"]) {
  --color-accent: #999 !important;
  --color-accent-rgb: 153, 153, 153 !important;
  --color-accent-secondary: #aaa !important;
  --color-accent-secondary-rgb: 170, 170, 170 !important;
  --color-bg: #1e1e1e !important;
  --color-bg-soft: #191919 !important;
  --color-bg-mute: #242424 !important;
  --color-text: #f5f5f5 !important;
  --memorial-border: rgb(160 160 160 / 32%);
}
html[data-theme="light"]:has([data-wuwa-memorial="solar5-younuo"]) {
  --color-accent: #666 !important;
  --color-accent-rgb: 102, 102, 102 !important;
  --color-accent-secondary: #777 !important;
  --color-bg: #f7f7f7 !important;
  --color-bg-soft: #f2f2f2 !important;
  --color-bg-mute: #ebebeb !important;
  --color-text: #262626 !important;
}
/* Desaturate only branches without images. No image sits beneath a grayscale ancestor. */
html:has([data-wuwa-memorial="solar5-younuo"]) :is(body, body *):has(img) > :not(img):not(:has(img)) {
  filter: grayscale(1) !important;
}
html:has([data-wuwa-memorial="solar5-younuo"]) img:not(.wuwa-video-card-cover):not(.wuwa-emote-media img):not(.post-hero-bg img):not(.lg-image):not(.lg-object) {
  filter: grayscale(1) !important;
}
/* Image-bearing containers need neutral paint, not a filter that would affect their pixels. */
html:has([data-wuwa-memorial="solar5-younuo"]) :is(body, body *):has(img) {
  border-color: var(--memorial-border) !important;
  background-image: none !important;
}
html:has([data-wuwa-memorial="solar5-younuo"]) :is(body, body *):has(img)::before,
html:has([data-wuwa-memorial="solar5-younuo"]) :is(body, body *):has(img)::after {
  filter: grayscale(1) !important;
}
html:has([data-wuwa-memorial="solar5-younuo"]) :is(.wuwa-video-card, .wuwa-video-card-media, .wuwa-emote-card, .wuwa-emote-media) {
  background: var(--color-bg-soft) !important;
  border-color: var(--memorial-border) !important;
  box-shadow: 0 0.65rem 1.8rem rgb(0 0 0 / 12%) !important;
}
html:has([data-wuwa-memorial="solar5-younuo"]) .wuwa-video-card:is(:hover, :focus-visible) {
  border-color: var(--color-accent) !important;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 22%) !important;
}