/* Osmora Academy — Research Reading Mode. Distraction-free, editorial. */
.rm-toggle{display:inline-flex;align-items:center;background:none;border:1px solid rgba(30,50,41,.18);
  border-radius:6px;padding:5px 12px;font-family:var(--font-body);font-size:.78rem;color:var(--forest-ink,#1E3229);
  cursor:pointer;transition:all .15s ease}
.rm-toggle:hover{border-color:var(--gold-soft,#B79A5B);color:var(--forest,#2C5F4F)}
.rm-toggle[aria-pressed="true"]{background:var(--forest-ink,#1E3229);color:var(--cream,#F4EFE6);border-color:var(--forest-ink,#1E3229)}

.rm-exit{position:fixed;top:18px;right:20px;z-index:1300;background:var(--forest-ink,#1E3229);color:var(--cream,#F4EFE6);
  border:none;border-radius:6px;padding:10px 18px;font-family:var(--font-body);font-size:.78rem;letter-spacing:.06em;
  cursor:pointer;box-shadow:0 6px 20px rgba(30,50,41,.22)}
.rm-exit:hover{background:var(--forest,#2C5F4F)}

/* ---- reading-mode presentation ---- */
body.reading-mode{background:var(--cream-2,#FAF7F2)}
/* minimize the main site header to a slim, quiet bar (kept accessible) */
body.reading-mode .osm-header{position:static;box-shadow:none;border-bottom:1px solid rgba(30,50,41,.08);opacity:.5;
  transition:opacity .2s ease}
body.reading-mode .osm-header:hover,body.reading-mode .osm-header:focus-within{opacity:1}
body.reading-mode .osm-nav,body.reading-mode .osm-actions{display:none}
/* hide non-reading chrome */
body.reading-mode .breadcrumb,
body.reading-mode .acr-prevnext,
body.reading-mode .acr-related,
body.reading-mode .kc-lesson,
body.reading-mode .coa-lab-callout,
body.reading-mode .evidence-explorer-callout,
body.reading-mode .methods-callout,
body.reading-mode .rec-pathlink,
body.reading-mode .osm-foot__nav{display:none}
/* optimize reading column: hide TOC sidebar visually? keep it — but narrow the column for scientific prose */
body.reading-mode .article-shell.has-toc{grid-template-columns:minmax(0,720px) 220px;justify-content:center;gap:64px}
body.reading-mode .article-main{font-size:1.06rem;line-height:1.8}
body.reading-mode .article-main p{max-width:68ch}
body.reading-mode .acr-toc{opacity:.75}
body.reading-mode .acr-toc:hover{opacity:1}
/* keep reading progress bar prominent; keep save/cite controls */
body.reading-mode .acr-progress{height:2px}
/* dim the RUO strip + footer but keep them present */
body.reading-mode .ruo-strip{opacity:.6}
body.reading-mode .osm-foot{opacity:.6}
@media(max-width:1040px){
  body.reading-mode .article-shell.has-toc{grid-template-columns:1fr}
  body.reading-mode .rm-exit{top:12px;right:12px;padding:8px 14px}
}
@media (prefers-reduced-motion:reduce){.osm-header,.rm-toggle{transition:none}}
