/* Study sections use the tokens of the surrounding product. */
article:has(.study-memory) {
  --study-accent: #2b7258;
  --study-ink: #17362c;
  --study-soft: #eef6ef;
  --study-paper: #fff;
  --study-line: #c8ded0;
  --study-muted: #405b50;
}
article.reading-article:has(.study-memory) {
  --study-accent: #9fe0c5;
  --study-ink: #effcf4;
  --study-soft: #243b35;
  --study-paper: #202f2c;
  --study-line: #4b6c60;
  --study-muted: #c5dad1;
}
article .study-memory {
  color: var(--study-ink);
  border: 1px solid var(--study-line);
  border-left: 4px solid var(--study-accent);
  border-radius: 13px;
  padding: clamp(16px, 3.6vw, 27px);
  margin-block: 1.75rem 2rem;
  background: var(--study-soft);
}
.study-memory h2 { margin: 0 0 10px; }
.study-memory details {
  padding: 0 13px;
  border: 1px solid var(--study-line);
  border-radius: 9px;
  background: var(--study-paper);
}
article .study-memory summary {
  padding: 10px 0;
  min-height: 44px;
  color: var(--study-muted);
  font-weight: 650;
  cursor: pointer;
}
article .study-verse {
  margin: 0;
  padding: 6px 0 15px;
  font-size: clamp(1rem, 1vw + .8rem, 1.2rem);
  line-height: 1.6;
}
.study-verse-line { display: block; }
.study-verse-line + .study-verse-line { margin-top: .3em; }
.study-audio { display: grid; gap: 6px; margin-top: 14px; }
.study-audio audio { width: min(100%, 23rem); height: 46px; }
.study-audio small { color: var(--study-muted); }
article:has(.study-memory) :is(.key-points, .math-reading-summary) {
  padding: clamp(16px, 3vw, 23px);
  border: 1px solid var(--study-line);
  border-block-start: 3px solid var(--study-accent);
  border-radius: 11px;
  color: var(--study-ink);
  background: var(--study-soft);
}
article:has(.study-memory) :is(.key-points, .math-reading-summary) h2 {
  margin: 0 0 10px;
  color: var(--study-ink);
}
article:has(.study-memory) :is(.key-points, .math-reading-summary) li::marker {
  color: var(--study-accent);
}
.study-figure { margin: 1rem 0; color: var(--study-muted); }
.study-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--study-line);
  border-radius: 9px;
}
.study-figure figcaption { padding: .65rem .2rem 0; font-size: .89rem; line-height: 1.55; }
.study-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.study-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  color: var(--study-ink);
  font-variant-numeric: tabular-nums;
  background: var(--study-paper);
}
.study-table-scroll caption {
  padding: .45rem .55rem;
  font-weight: 700;
  text-align: left;
}
.study-table-scroll :is(th,td) {
  text-align: left;
  padding: .45rem .55rem;
  border-bottom: 1px solid var(--study-line);
}
.study-table-scroll th { background: var(--study-soft); }
.study-depth, .study-memory { scroll-margin-top: 1.25rem; }
