/* Latest Word manuscripts: retain source formatting on the shared reading cards. */
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel :is(h2, h3, h4, h5, h6) {
  color: var(--ui-ink, #183247);
  line-height: 1.4;
  margin: 1.5rem 0 .8rem;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}
#main-content .word-manuscript :is(.word-paragraph, .word-reference, .word-reference-list) {
  overflow-wrap: anywhere;
}
#main-content .word-manuscript .word-reference-list {
  margin-block: .5rem;
  padding-inline-start: 1.7rem;
}
#main-content .word-manuscript .word-reference-list li {
  margin-block: .75rem;
  line-height: 1.75;
}
#main-content .word-manuscript .word-reference-list--literal {
  list-style: none;
  padding-inline-start: 0;
}
#main-content .word-manuscript :is(.word-anchor, .word-legacy-anchor) {
  display: block;
  height: 0;
  scroll-margin-top: 125px;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel .word-source-figure {
  min-width: 0;
  max-width: 100%;
  margin: 1.4rem 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel .word-source-figure > a {
  display: block;
  line-height: 0;
  border-radius: 5px;
  background: transparent;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel .word-source-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel .word-source-figure figcaption {
  padding: .8rem 0 0;
  color: var(--ui-muted, #526573);
  background: transparent;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html[data-theme] body[data-theme] #main-content .word-manuscript .reading-panel .word-source-figure > a:focus-visible {
  outline: 3px solid #664681;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  #main-content .word-manuscript .word-reference-list { padding-inline-start: 1.4rem; }
  #main-content .word-manuscript .word-reference-list--literal { padding-inline-start: 0; }
}
