/* In-article MGID windows. Provider markup stays mounted in its original slot. */
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame:not(.ehr-mgid-inread-ready) {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame.ehr-mgid-inread-ready {
  display: flow-root;
  position: relative;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  margin: 28px auto 34px;
  padding: 32px 8px 12px;
  overflow: visible;
  background: #edf0f3;
  border: 1px solid #e1e6eb;
  border-radius: 4px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
  isolation: isolate;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-ready::before {
  content: 'Advertisement';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  color: #697481;
  font: normal 10px/12px Arial, Helvetica, sans-serif;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-ready > :not(script):not(style):not(link) {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-ready iframe,
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-ready img,
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-ready video {
  max-width: 100%;
}
/* Native page scrolling reveals the entire tall creative through this window.
   No nested scrolling, iframe resizing, vendor reparenting or fixed overlay. */
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame.ehr-mgid-inread-window {
  height: calc(var(--ehr-inread-height) + 46px);
  overflow: hidden;
}
.ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-window > .ehr-mgid-inread-creative {
  translate: 0 calc(-1 * var(--ehr-inread-offset, 0px));
  clip-path: inset(var(--ehr-inread-offset, 0px) 0 var(--ehr-inread-clip-bottom, 0px) 0);
}
/* A focused ad remains fully reachable with a keyboard, without hidden links. */
.ds-single-shell .ds-article-card .ehr-entry-content.ehr-inread-keyboard .ehr-mgid-inread-window:focus-within {
  height: auto;
  overflow: visible;
}
.ds-single-shell .ds-article-card .ehr-entry-content.ehr-inread-keyboard .ehr-mgid-inread-window:focus-within > .ehr-mgid-inread-creative {
  translate: none;
  clip-path: none;
}
@media (max-width: 600px) {
  .ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame.ehr-mgid-inread-ready {
    margin-top: 24px;
    margin-bottom: 28px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 3px;
  }
}
@media print, (prefers-reduced-motion: reduce) {
  .ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-frame.ehr-mgid-inread-window {
    height: auto;
    overflow: visible;
  }
  .ds-single-shell .ds-article-card .ehr-entry-content .ehr-mgid-inread-window > .ehr-mgid-inread-creative {
    translate: none;
    clip-path: none;
  }
}
