/* Opt-in reading tools for Self, Fit, Money, Learn, Motivation, Adventure and Skill.
   Research keeps its existing assets and appearance. */
.catalog-standalone-navigation[data-reading-tools] {
  position:sticky; top:calc(var(--catalog-anchor-offset,145px) - 16px);
  z-index:12; background:var(--catalog-reader-surface,var(--stud-theme-surface,#0b141c));
  margin:20px 0!important; padding:8px 0!important;
}
.catalog-standalone-navigation[data-reading-tools] > details { display:none; }
.reading-section-control { display:flex; align-items:center; gap:12px; width:100%; margin:0; }
.reading-section-control > span { flex:none; color:var(--stud-theme-muted,#c2ccd5); font:600 13px/1.3 var(--stud-theme-font-ui,var(--font-ui,system-ui)); }
.reading-section-control select {
  box-sizing:border-box; min-width:0; width:100%; min-height:var(--catalog-control-height,44px); padding:10px 32px 10px 12px;
  border:1px solid var(--catalog-reader-boundary,var(--stud-theme-control-boundary,#65798a)); border-radius:8px; background:var(--catalog-reader-raised,var(--stud-theme-raised,#14212b)); color:var(--catalog-reader-heading,var(--stud-theme-ink,#f4f8fa));
  font:600 15px/1.4 var(--stud-theme-font-ui,var(--font-ui,system-ui)); color-scheme:var(--stud-theme-color-scheme,dark);
}
.reading-section-control select:focus-visible { outline:3px solid var(--stud-theme-focus,var(--map-accent,#d5e4ed)); outline-offset:3px; }
.explain-community-group { margin:28px 0; }
.explain-community-group + .explain-community-group { padding-top:24px; border-top:1px solid var(--stud-theme-line,#31424e); }
.explain-community-group > :is(h3,h4) { margin:0 0 14px; color:var(--stud-theme-ink,#f4f8fa); font:750 20px/1.4 var(--stud-theme-font-ui,var(--font-ui,system-ui)); }
.explain-prose > p { margin:0 0 22px; color:var(--stud-theme-ink,#dce5eb); font-size:17px; line-height:1.7; }
html[data-map-product] .explain-community-group .explain-list > li > strong:first-child { display:inline; font-size:inherit; line-height:inherit; margin:0; }
/* A destination section receives focus for reading order, not as a control. */
html[data-map-product] body main[data-reading-tools] .catalog-standalone-content [data-reading-target]:focus { outline:none!important; }
/* Direct topic pages have a legacy important anchor rule. Override it only
   inside the opted-in reader, accounting for the additional sticky control. */
html[data-map-product] body main[data-reading-tools] .catalog-standalone-content :is([id],#sheet-lead) {
  scroll-margin-top:calc(var(--catalog-anchor-offset,145px) + var(--reading-tools-height,62px))!important;
}
@media(max-height:500px) {
  .catalog-standalone-navigation[data-reading-tools] { position:static; }
  html[data-map-product] body main[data-reading-tools] .catalog-standalone-content :is([id],#sheet-lead) { scroll-margin-top:var(--catalog-anchor-offset,145px)!important; }
}
@media print { .catalog-standalone-navigation[data-reading-tools] { display:none; } }
