[data-dose-skeleton], [data-dose-ad-slot], .dose-skeleton-rows, .ajaxwrap, [data-dose-viewport-animation], .dose-viewport-placeholder {
  --dose-skeleton-fill: color-mix(in srgb, var(--colorBlack, #111) 10%, var(--colorWhite, #fff));
}
[data-theme="dark"] :is([data-dose-skeleton], [data-dose-ad-slot], .dose-skeleton-rows, .ajaxwrap, [data-dose-viewport-animation], .dose-viewport-placeholder) {
  --dose-skeleton-fill: color-mix(in srgb, var(--colorWhite, #fff) 25%, var(--colorBlack, #111));
}

/* Native Dose slots reserve space even before artwork is assigned. Publisher sizes win. */
[data-dose-ad-slot][data-no-height] {
  aspect-ratio: var(--dose-ad-aspect, 1 / 1);
  background: var(--dose-skeleton-fill);
}
:is([data-dose-ad-slot="top_left"], [data-dose-ad-slot="top_right"],
    [data-dose-ad-slot="bottom_left"], [data-dose-ad-slot="bottom_right"],
    [data-dose-ad-slot="after_content"], [data-dose-ad-slot="resident_evil_header"],
    [data-dose-ad-slot="legacy_header"], [data-dose-ad-slot="legacy_before_content"],
    [data-dose-ad-slot="legacy_after_content"], [data-dose-ad-slot="legacy_footer"]) {
  --dose-ad-aspect: 577 / 128;
}
[data-dose-ad-slot] > .haloads-placeholder {
  border: 0;
  border-radius: 0;
  background: var(--dose-skeleton-fill);
}
[data-dose-ad-slot] > .haloads-placeholder .haloads-placeholder-loader { display: none; }

/* Runtime only: server output and editor previews always remain visible. */
.dose-viewport-pending { opacity: 0 !important; }
.dose-viewport-placeholder {
  position: fixed;
  pointer-events: none;
  background: var(--dose-skeleton-fill);
  z-index: 2147483646;
}
@media print, (prefers-reduced-motion: reduce) {
  .dose-viewport-pending { opacity: revert !important; }
  .dose-viewport-placeholder { display: none !important; }
}
.dose-skeleton-loading { background-color: var(--dose-skeleton-fill) !important; }
.dose-ad-loading-region.dose-skeleton-loading { background-color: transparent !important; }
.dose-ad-loading-region::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(255 255 255 / 18%);
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.dose-ad-loading-region.dose-skeleton-loading::before {
  opacity: 1;
  animation: dose-ad-pulse 1600ms ease-in-out infinite paused;
}
.dose-ad-loading-region.dose-skeleton-visible::before { animation-play-state: running; }
.dose-ad-loading-region:where(a, picture) { display: block; }
.banner_side > [data-haloads-runtime][data-place] { display: block; max-width: 100%; }
/* Keep floating ads below Quick Menu and its panels (layer 40). */
html:has(.dose-mobile-bar) :is(
  .hw-slot-sticky-header, .hw-slot-sticky-footer, .hw-slot-anchor, .hw-slot-popup, .hw-slot-exit-intent, .hw-slot-interstitial,
  .haloads-slot-sticky-header, .haloads-slot-sticky-footer, .haloads-slot-anchor, .haloads-slot-popup, .haloads-slot-exit-intent, .haloads-slot-interstitial
) { z-index: 39; }

/* Follow Quick Menu visibility without changing the provider's reveal/close motion. */
html:has(.dose-mobile-bar) :is(.hw-slot-sticky-footer, .haloads-slot-sticky-footer) {
  transition: bottom 160ms ease-out,
    opacity var(--haloads-motion-duration, 300ms) var(--haloads-motion-easing, ease),
    transform var(--haloads-motion-duration, 300ms) var(--haloads-motion-easing, ease);
}
html.dose-has-mobile-bar :is(.hw-slot-sticky-footer, .haloads-slot-sticky-footer) {
  bottom: max(calc(var(--haloads-sticky-offset, 0px) + env(safe-area-inset-bottom)), calc(var(--dose-mobile-bar-clearance, 0px) + 2px));
  margin-block: 0;
}
html.dose-has-mobile-bar:has(.dose-mobile-bar[data-hidden="true"]) :is(.hw-slot-sticky-footer, .haloads-slot-sticky-footer) {
  bottom: calc(var(--haloads-sticky-offset, 0px) + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: reduce) {
  html:has(.dose-mobile-bar) :is(.hw-slot-sticky-footer, .haloads-slot-sticky-footer) { transition: none !important; }
}
html:has(.dose-share-set-composition.is-header-attached:not(.is-scroll-hidden)) :is(.hw-slot-sticky-header, .haloads-slot-sticky-header) {
  top: calc(var(--dose-header-bottom, 8px) - 8px + var(--dose-article-toolbar-height, 0px) + 2px);
  margin-block: 0;
}
.dose-ad-loading-region > :not(noscript) { transition: opacity 300ms ease-out; }
.dose-ad-loading-region.dose-skeleton-loading > :not(noscript, button, [role="button"], .but) { opacity: 0; }
@keyframes dose-ad-pulse { 50% { opacity: .45; } }
@media print, (prefers-reduced-motion: reduce) {
  .dose-ad-loading-region::before,
  .dose-ad-loading-region.dose-skeleton-loading::before { animation: none; transition: none; }
  .dose-ad-loading-region > :not(noscript) { transition: none; }
}
@media print {
  .dose-ad-loading-region.dose-skeleton-loading::before { display: none; }
  .dose-ad-loading-region.dose-skeleton-loading > :not(noscript, button, [role="button"], .but) { opacity: 1; }
}
#slide_popular:not(.dose-skeleton-eligible) .popular-skeleton { display: none; }
#slide_popular.is-popular-ready :is(.popular-skeleton, .popular-loading) { display: none; }
#slide_popular .popular-skeleton { transition: none !important; }
#slide_popular.swiper-initialized .swiper-wrapper {
  opacity: 1 !important;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
@media print, (prefers-reduced-motion: reduce) {
  #slide_popular .swiper-wrapper { transition-duration: 0ms !important; }
}
@supports (content-visibility: auto) and (contain-intrinsic-block-size: auto 500px) {
  .dose-lazy-render {
    content-visibility: auto;
    contain-intrinsic-block-size: auto var(--dose-lazy-height, 500px);
  }
}
:is(.editor-styles-wrapper, header, nav, footer, .dose-site-header, .menu_expand, .is-position-sticky, .dose-sticky-panel, .dose-sticky-panel-wrap, .dose-sticky-panel-detail, .dose-managed-floating, .dose-mobile-bar, .dose-reading-progress, .dose-account-menu, .dose-search-results__input, .dose-toc-float, .dose-sticky-actions, .dose-share-set-composition, .share-set, .dose-rer-lightbox) .dose-lazy-render {
  content-visibility: visible;
  contain-intrinsic-block-size: none;
}
@media print {
  .dose-lazy-render {
    content-visibility: visible;
    contain-intrinsic-block-size: none;
  }
}
#slide_popular .popular-fallback { color: var(--colorBlack, #111); }
[data-theme="dark"] #slide_popular .popular-fallback { color: var(--colorWhite, #fff); }
.infinite-scroll-request .dose-skeleton-rows { display: block; }
.dose-skeleton-row__media.img { display: block; background: var(--dose-skeleton-fill); }
.dose-skeleton-row__copy { flex: 1; min-width: 0; padding-top: 0; }
.dose-skeleton-row__copy span { display: block; height: 20px; margin-bottom: 8px; width: 90%; background: var(--dose-skeleton-fill); }
.dose-skeleton-row__copy span:nth-child(2) { width: 75%; }
.dose-skeleton-row__copy span:last-child { width: 50%; height: 12px; margin-top: 24px; margin-bottom: 0; }
.infinite-scroll-request { animation: dose-archive-reveal 160ms ease-out; }
.infinite-scroll-request > p { margin-block: 16px; }
.dose-skeleton-row :is(.dose-skeleton-row__media, .dose-skeleton-row__copy) { animation: dose-archive-pulse 1600ms ease-in-out infinite; }
.ajaxwrap .dose-archive-media-pending { background-color: var(--dose-skeleton-fill); }
.ajaxwrap .img img { transition: opacity 180ms ease-out; }
.ajaxwrap .dose-archive-media-pending img { opacity: 0; }
.dose-archive-enter { animation: dose-archive-reveal 240ms cubic-bezier(.2, .7, .2, 1) var(--dose-archive-delay, 0ms) backwards; }
@keyframes dose-archive-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dose-archive-pulse {
  50% { opacity: .55; }
}
@media print, (prefers-reduced-motion: reduce) {
  .dose-archive-enter, .infinite-scroll-request, .dose-skeleton-row :is(.dose-skeleton-row__media, .dose-skeleton-row__copy) { animation: none; }
  .ajaxwrap .img img { transition: none; }
}
