.hp-description-ads{min-width:0;max-width:100%;min-height:0;margin:0;padding:0}
.hp-description-ads[hidden]{display:none!important}
.article-sidebar>.hp-description-ads--post{order:5!important}
.hp-pattern-reader__sidebar .article-sidebar>.hp-description-ads--reader{order:6!important}
.hp-pattern-reader__sidebar .article-sidebar:has(.hp-description-ads--reader:not([hidden]))>.interaction-message{order:7!important}
/* A pending pool contributes neither height nor an extra sidebar row gap.
   Its zero-height shells keep a full-width stage for the provider to render. */
.article-sidebar>.hp-description-ads:not([hidden]):not([data-hp-description-filled="1"]){flex:0 0 0!important;height:0!important;min-height:0!important;margin-top:calc(-1 * var(--hp-description-row-gap,20px))!important;overflow:visible!important}
.hp-post-description-ad-slot>.hp-description-ads[data-hp-description-filled="1"]:not([hidden]){margin-bottom:var(--hp-masonry-gap,16px)}
.hp-post-description-adsense-slot{display:flow-root}
.hp-description-ads>.hp-ad-shell{margin:0 0 16px}
.hp-description-ads>.hp-ad-shell:last-child{margin-bottom:0}
.hp-description-ads .hp-ad-label{text-align:center}
/* v0.5.243 — move rendered description ads down 3px from v0.5.242. */
body.single-hp_pattern .hp-description-ads[data-hp-description-filled="1"]:not([hidden]){position:relative;top:-27px}
.article-sidebar:has(>.hp-description-ads[data-hp-description-filled="1"]:not([hidden]))>.interaction-message:empty{display:none!important}
@media (min-width:1025px), (any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px){
  .hp-pattern-entry-card:has(.hp-description-ads--post[data-hp-description-filled="1"]:not([hidden])){height:var(--hp-description-frame-height,auto);min-height:0}
  .hp-pattern-sidebar-home .article-sidebar:has(.hp-description-ads--post[data-hp-description-filled="1"]:not([hidden])){display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:auto!important;box-sizing:border-box!important;padding-bottom:0!important}
  .article-sidebar:has(.hp-description-ads[data-hp-description-filled="1"]:not([hidden]))> :not(.hp-description-ads){flex-shrink:0}
  .hp-pattern-sidebar-home .hp-description-ads--post[data-hp-description-filled="1"]{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  /* Match the current top offset so the frame's lower edge stays in place. */
  body.single-hp_pattern .hp-pattern-sidebar-home .article-sidebar>.hp-description-ads--post[data-hp-description-filled="1"]:not([hidden]){margin-bottom:-27px}
}
.hp-pattern-reader.hp-reader-desktop .hp-pattern-reader__sidebar .article-sidebar:has(.hp-description-ads--reader[data-hp-description-filled="1"]:not([hidden])){display:flex!important;flex-direction:column!important;height:calc(100dvh / var(--hp-reader-scale,1))!important;min-height:0!important;max-height:calc(100dvh / var(--hp-reader-scale,1))!important;overflow:auto!important;box-sizing:border-box!important;padding-bottom:0!important}
.hp-pattern-reader.hp-reader-desktop .hp-description-ads--reader[data-hp-description-filled="1"]{order:6!important;flex:1 1 0!important;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.single-hp_pattern .hp-pattern-reader.hp-reader-desktop .article-sidebar>.hp-description-ads--reader[data-hp-description-filled="1"]:not([hidden]){margin-bottom:-27px}
.hp-pattern-reader.hp-reader-desktop .article-sidebar:has(.hp-description-ads--reader:not([hidden]))>.hp-translation-guide-sidebar{order:5!important}
.hp-pattern-reader.hp-reader-desktop .article-sidebar:has(.hp-description-ads--reader:not([hidden]))>.interaction-message{order:7!important}

/* Tablet Reader ads may use the full viewport, including the area behind
   the navigation while it is visible. Empty placements still reserve no space. */
@media (any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px){
  .hp-pattern-reader.hp-reader-desktop .hp-pattern-reader__sidebar .article-sidebar:has(.hp-description-ads--reader[data-hp-description-filled="1"]:not([hidden])){
    height:100dvh!important;
    max-height:100dvh!important;
  }
}

/* v0.5.244 — restore the v0.5.240 phone ad position only. The information
   block retains its newer 6px smaller top inset, so compensate here rather
   than moving the title, controls, creator, description or product carousel. */
@media (any-pointer:coarse) and (not ((min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.single-hp_pattern .hp-description-ads[data-hp-description-filled="1"]:not([hidden]){top:6px}
}
