/* Explicit opt-in only. Match existing .explanation content, not a global width. */
body[data-reading-width="20261114-standard"] > .howto-card {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1152px;
  margin-inline: auto;
}
body[data-reading-width="20261114-lab"] > .howto-card {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1132px;
  margin-inline: auto;
}
@media (max-width: 820px) {
  body[data-reading-width="20261114-lab"] > .howto-card {
    width: calc(100% - 32px);
  }
}
/* Keep long plain-text formula strings inside the opted-in reading cards. */
body[data-reading-width^="20261114-"] > .howto-card {
  overflow-wrap: anywhere;
}
/* Allow CHTML to wrap between top-level atoms; fractions and scripts stay intact. */
body[data-reading-width^="20261114-"] > .howto-card mjx-container[jax="CHTML"] > mjx-math {
  white-space: normal;
  max-width: 100%;
}
