/* Shared fixed-header spacing replaces per-page 66/124/140px assumptions. */
body.siteWithHeader {
  padding-top: var(--site-header-height, 126.5px);
}
.topAppDownload {
  display: block;
  justify-self: end;
  width: 50px;
  height: 52.174px;
  flex: 0 0 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}
.topAppDownload img {
  width: 50px;
  height: 52.174px;
  display: block;
  object-fit: contain;
}
.topAppDownload:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.internalPromoBanner {
  display: grid;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 774px;
  margin: 0 auto;
  box-sizing: border-box;
}
.internalPromoBanner.hasBanners {
  padding: 12px 0;
}
.internalPromoBanner[hidden] {
  display: none;
}
/* Collection banners share the content column below the page heading. */
.main > .internalPromoBanner {
  width: calc(100% - 26px);
  max-width: none;
  gap: 10px;
}
.main > .internalPromoBanner.hasBanners {
  padding: 0 0 18px;
}
.videoListMain > .internalPromoBanner,
.comicsListMain > .internalPromoBanner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.comicsListMain > .internalPromoBanner {
  gap: 8px;
}
.internalPromoItem {
  position: relative;
  display: block;
  width: 100%;
  height: 43px;
  overflow: hidden;
  border-radius: 6px;
  background: #252525;
  line-height: 0;
}
.videoListMain > .internalPromoBanner .internalPromoItem,
.comicsListMain > .internalPromoBanner .internalPromoItem {
  height: auto;
  aspect-ratio: 774 / 90;
}
.internalPromoItem[hidden] {
  display: none;
}
.internalPromoItem .internalPromoImage,
.internalPromoItem .internalPromoPlaceholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.internalPromoItem .internalPromoPlaceholder {
  object-fit: fill;
}
.internalPromoItem[data-load-state="ready"] .internalPromoPlaceholder,
.internalPromoItem:not([data-load-state="ready"]) .internalPromoImage {
  display: none;
}
/* Search results retain the back and hot-search controls. */
.topBox.topCompactBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 8px;
  height: 66px;
  padding: 6.913px 20px;
  box-sizing: border-box;
  background: #333;
}
.topHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topHeaderActions button,
.topHeaderActions a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 26px;
  height: 32px;
  cursor: pointer;
}
.topHeaderActions img {
  width: 24px;
  height: 24px;
}
.topCompactLogo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  justify-self: center;
  width: 95px;
  height: 30px;
}
.topCompactLogo .logo {
  flex-shrink: 0;
  width: 95.96px;
  max-width: none;
  height: 24.65px;
}
/* Keep the history page's native search field and submit behavior. */
body.siteWithHeader .mobileTopBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}
.mobileTopBox .mobileTopRow {
  position: relative;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobileTopBox .mobileTopLogoLink {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 30px;
  justify-content: flex-start;
}
.mobileTopBox .mobileTopLogo {
  flex-shrink: 0;
  width: 95.96px;
  height: 24.65px;
  max-width: none;
}
.mobileTopBox .mobileSearchBar {
  height: 40.5px;
  margin: 10px 20px;
}
/* The independent directory uses its own compact branding. */
.dhTopHeader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 20px;
  background: #212121;
}
.dhTopHeader .dhTopLogo {
  width: 123px;
  height: auto;
  display: block;
}
body.siteWithHeader .dh-biz {
  top: calc(var(--site-header-height, 60px) + 16px);
}
@media screen and (max-width: 767px) {
  .videoListMain > .internalPromoBanner,
  .comicsListMain > .internalPromoBanner {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .videoListMain > .internalPromoBanner .internalPromoItem,
  .comicsListMain > .internalPromoBanner .internalPromoItem {
    height: 42px;
    aspect-ratio: auto;
  }
  .header.moreTagsHeader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 56px;
    padding-top: 1.913px;
    padding-bottom: 1.913px;
    margin: 0;
    background: #333;
  }
  .header.moreTagsHeader .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
  }
  .moreTagsDownload {
    width: 50px;
    height: 52.174px;
  }
}
@media screen and (min-width: 768px) {
  body.siteWithHeader {
    padding-top: var(--site-header-height, 140px);
  }
  .topBox.topCompactBox,
  .moreTagsDownload .topAppDownload {
    display: none;
  }
  .moreTagsDownload {
    width: 40px;
    height: 40px;
  }
  body.siteWithHeader .mobileTopBox {
    display: none;
  }
  .internalPromoBanner {
    width: 100%;
    gap: 12px;
  }
  .internalPromoItem {
    height: 90px;
  }
  .main > .internalPromoBanner {
    width: 100%;
  }
}
