/* Shared hero frame, typography and layout contract. */
.collection-heading:has(> .rdp-hero) {
  padding-block-start: 0;
}
.rdp-hero {
  --hero-copy-gap: clamp(48px, 4vw, 80px);
  --hero-art-height: clamp(440px,34.3vw,520px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0px, 0.86fr) minmax(0px, 1.14fr);
  align-items: center;
  height: auto;
  min-height: calc(var(--hero-art-height) + 48px);
  overflow-x: visible;
  overflow-y: visible;
  margin: 0px;
  padding: 24px 0px;
  gap: 32px;
  border: 0;
}
.rdp-hero > .rdp-hero-copy {
  min-width: 0px;
  container-type: inline-size;
  align-self: center;
  padding: 0px;
}
.rdp-hero .rdp-hero-copy h1 {
  font-size: clamp(34px, 10cqi, 76px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  max-width: none;
  margin: 22px 0px;
}
/* Devanagari needs natural tracking so vowel marks and word spaces stay clear. */
html:lang(hi) .rdp-hero .rdp-hero-copy h1,
html:lang(hi) .rdp-hero .right-page h2 {
  letter-spacing: normal;
  line-height: 1.35;
}
/* Keep the short Japanese home-page emphasis together, including its particle. */
html:lang(ja) .rdp-hero[data-hero="home"] .rdp-hero-copy h1 > span {
  display: inline-block;
}
.rdp-hero .rdp-hero-copy p {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
  max-width: 42ch;
  margin: 0px;
}
.rdp-hero .rdp-hero-copy > a {
  font-size: 14px;
  margin-top: 28px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}
.rdp-hero .rdp-hero-copy > span {
  font-size: 10px;
  letter-spacing: 0.18em;
}
.rdp-hero > .rdp-hero-art {
  box-sizing: border-box;
  position: relative;
  min-width: 0px;
  width: 100%;
  max-width: 820px;
  height: var(--hero-art-height);
  max-height: var(--hero-art-height);
  align-self: center;
  margin: 0px auto;
}
.atlas-kicker {
  color: #695873;
}
.atlas-copy h1 em {
  font-style: normal;
  color: rgb(130, 65, 234);
}
.atlas-copy p {
  color: #695873;
}
.atlas-copy > a {
  font-weight: 600;
}
.atlas-pause {
  position: absolute;
  right: 14px;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 30px;
  height: 30px;
  color: rgb(124, 111, 144);
  opacity: 0.7;
  cursor: pointer;
  padding: 5px;
  background: none transparent;
  border: 0;
}
.atlas-pause svg {
  width: 16px;
  height: 16px;
}
.atlas-pause:hover {
  opacity: 1;
}
.atlas-pause:focus-visible {
  outline-color: rgb(167, 130, 210);
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 4px;
}

@media (min-width: 901px) {
  .rdp-hero:has([data-hero-boundary]) {
    --hero-copy-width: max(180px, calc(var(--hero-boundary-distance) - var(--hero-copy-gap)));
  }
  .rdp-hero:has([data-hero-boundary]) .rdp-hero-copy br {
    display: none;
  }
  .rdp-hero[data-hero="home"] {
    --copy-room: clamp(40px,9vw,160px);
  }
  .rdp-hero {
    --copy-room: 0px;
  }
  .rdp-hero > .rdp-hero-copy {
    width: var(--hero-copy-width, calc(100% + var(--copy-room)));
    position: relative;
    z-index: 1;
  }
  .rdp-hero .rdp-hero-copy p {
    max-width: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .rdp-hero {
    grid-template-columns: minmax(0px, 0.9fr) minmax(0px, 1.1fr);
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .rdp-hero {
    --hero-art-height: 350px;
    height: auto;
    min-height: 690px;
    grid-template-columns: minmax(0px, 1fr);
    grid-template-rows: minmax(280px, auto) minmax(350px, auto);
    padding: 20px 0px;
    gap: 20px;
  }
  .rdp-hero > .rdp-hero-copy {
    width: 100%;
    align-self: center;
  }
  .rdp-hero .rdp-hero-copy h1 {
    font-size: 38px;
    line-height: 1.12;
    margin: 16px 0px;
  }
  .rdp-hero .rdp-hero-copy p {
    font-size: 14px;
    line-height: 1.75;
    max-width: 48ch;
  }
  .rdp-hero .rdp-hero-copy > a {
    margin-top: 16px;
    min-height: 40px;
  }
  .rdp-hero > .rdp-hero-art {
    height: 350px;
    max-height: 350px;
    max-width: 560px;
    align-self: center;
  }
  .atlas-pause {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
}

@media (max-width: 380px) {
  .rdp-hero .rdp-hero-copy h1 {
    font-size: 34px;
  }
  .rdp-hero .rdp-hero-copy p {
    font-size: 13px;
  }
  .rdp-hero .rdp-hero-copy > span {
    font-size: 8px;
  }
}

/* The translated book may need more room than the other fixed-size scenes. */
.rdp-hero > .book-area {
  height: auto;
  max-height: none;
  min-height: var(--hero-art-height);
}

/* Stable renderer boundary, measured only at initialization and resize. */
.hero-layout-anchor {
  position: absolute;
  left: var(--hero-art-inset, 0px);
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  visibility: hidden;
}
