/* Reading Foundations v1.0: opt-in, surface-neutral long-form typography. */
.rs-reading-content {
  --rs-reading-measure: 68ch;
  --rs-reading-leading: 1.7;
  color: var(--rs-text-secondary);
  font-size: var(--rs-text-md);
  line-height: var(--rs-reading-leading);
  overflow-wrap: break-word;
  min-width: 0;
}
.rs-reading-content > :first-child { margin-block-start: 0; }
.rs-reading-content > :last-child { margin-block-end: 0; }
.rs-reading-content p { margin: 0 0 1em; }
.rs-reading-content :is(h2,h3,h4) { color:var(--rs-text-primary); line-height:1.3; margin:1.6em 0 .6em; text-wrap:pretty; }
.rs-reading-content :is(ul,ol) { padding-inline-start:1.5em; margin:0 0 1em; }
.rs-reading-content li + li { margin-block-start:.35em; }
.rs-reading-content blockquote { border-inline-start:3px solid var(--rs-border-strong); padding-inline-start:1rem; margin:1.25em 0; color:var(--rs-text-secondary); }
.rs-reading-content a { color:var(--rs-info); text-decoration:underline; text-underline-offset:.16em; }
.rs-reading-content a:hover { color:var(--rs-text-primary); }
.rs-reading-content a:focus-visible { outline:2px solid var(--rs-border-focus); outline-offset:3px; }
.rs-reading-content :is(img,video,iframe) { max-width:100%; height:auto; }
.rs-reading-content pre { max-width:100%; overflow-x:auto; }
.rs-reading-measure { max-width:var(--rs-reading-measure,68ch); min-width:0; }
/* Optional contextual surface, never mandatory for an article or description. */
.rs-reading-surface { background:var(--rs-surface-1); border:1px solid var(--rs-border-subtle); border-radius:var(--rs-radius-lg); padding:clamp(1rem,3vw,2rem); }
.rs-reading-surface--open { background:transparent; border:0; border-radius:0; padding:0; }
@media (max-width:600px) { .rs-reading-content { line-height:1.65; } }
