/* Module 04: one copy shell, with an optional illustration and note.
   The transparent box leaves the original aside geometry untouched. */
.reading-box { display: contents; }

/* A linear reading sequence; its optional margin illustration stays with the
   heading, while the copy follows underneath. */
.reading[data-reading-layout="stacked"] .reading-layout { display: block; }
.reading[data-reading-layout="stacked"] .reading-heading { position: static; }
.reading[data-reading-layout="stacked"] .reading-prose { margin-top: var(--space-group); }

/* Aside: accepted introductory chapter on the Podcast page. Chapter
   padding remains with the page; these rules only govern its contents. */
.reading[data-reading-layout="aside"] .reading-layout {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 104px);
}
.reading[data-reading-layout="aside"] .reading-heading { top: 120px; }
.reading[data-reading-layout="aside"] .reading-heading h2 { margin: 0; }
.reading[data-reading-layout="aside"] .reading-mark {
  width: auto;
  height: auto;
  margin-top: 40px;
}
.reading[data-reading-layout="aside"] .reading-mark::before { display: none; }
.reading[data-reading-layout="aside"] .reading-mark .icon {
  width: 164px;
  height: 164px;
  transform: rotate(-10deg);
}
.reading[data-reading-layout="aside"] .reading-prose { max-width: 60ch; }
.reading[data-reading-layout="aside"] .reading-prose > p { margin: 0; font: inherit; }
.reading[data-reading-layout="aside"] .reading-prose > p + p { margin-top: var(--space-copy); }
.reading[data-reading-layout="aside"] .reading-prose .podcast-platform-list {
  justify-content: flex-start;
  gap: 8px 24px;
}

/* Boxed chapter: heading and paragraphs occupy one left surface. The same
   optional illustration sits outside it, in the reserved right column. */
.reading[data-reading-layout="boxed"] .reading-layout {
  --reading-box-gap: clamp(36px, 7vw, 100px);
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  align-items: center;
  gap: var(--reading-box-gap);
}
.reading[data-reading-layout="boxed"] .reading-box {
  display: block;
  grid-column: 1;
  min-width: 0;
  padding: clamp(28px, 3.5vw, 50px);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}
.reading[data-reading-layout="boxed"] .reading-heading { position: static; }
.reading[data-reading-layout="boxed"] .reading-heading h2 {
  margin: 0 0 var(--space-group);
  font: 700 var(--type-section-compact)/var(--leading-heading) Poppins, sans-serif;
  letter-spacing: -.03em;
}
.reading[data-reading-layout="boxed"] .reading-prose {
  max-width: none;
  margin: 0;
  font: 400 var(--type-body)/var(--leading-body) Inter, sans-serif;
}
.reading[data-reading-layout="boxed"] .reading-prose > p { margin: 0; font: inherit; }
.reading[data-reading-layout="boxed"] .reading-prose > p + p { margin-top: var(--space-copy); }
.reading[data-reading-layout="boxed"] .reading-mark {
  display: grid;
  place-items: center;
  position: absolute;
  left: calc(70% + var(--reading-box-gap) * .3);
  right: 0;
  top: 50%;
  width: auto;
  height: auto;
  margin: 0;
  transform: translateY(-50%);
}
.reading[data-reading-layout="boxed"] .reading-mark::before { display: none; }
.reading[data-reading-layout="boxed"] .reading-mark .icon {
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1;
  transform: rotate(12deg);
}

@media (max-width: 1050px) {
  .reading[data-reading-layout="boxed"] .reading-box { padding: 28px; }
}

@media (max-width: 700px) {
  .reading[data-reading-layout="aside"] .reading-layout { display: block; }
  .reading[data-reading-layout="aside"] .reading-prose { margin-top: 24px; }
  .reading[data-reading-layout="aside"] .reading-mark { display: none; }
  .reading[data-reading-layout="boxed"] .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .reading[data-reading-layout="boxed"] .reading-box { padding: 26px 24px 30px; }
  .reading[data-reading-layout="boxed"] .reading-mark { display: none; }
}
