/* Saved-reader layers only. Baseline/PDF styles are untouched when OFF. */
.reader-expanded { --rx-a:#356f73; --rx-b:#a86244; --rx-line:#dedbd2; --rx-wash:#f5f4ef; }
.reader-expanded .rx-nav { display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--rx-line); padding:12px 0; margin:0 0 28px; background:var(--paper,#fffdf9); position:sticky; top:0; z-index:6; }
.rx-nav a { color:inherit; text-decoration:none; padding:9px 12px; border-radius:8px; font-size:14px; }
.rx-nav a[aria-current="location"] { background:var(--rx-wash); box-shadow:inset 0 -2px var(--rx-a); }
.rx-nav-downloads { display:contents; }
.reader-expanded .rx-snapshot-prose { max-width:67ch; }
.reader-expanded .rx-snapshot-prose p { font-size:18px; line-height:1.7; margin:0 0 1em; }
.reader-expanded .hero { margin-bottom:28px; padding-bottom:28px; }
.reader-expanded .hero .report-title .report-art { display:none; }
.reader-expanded .hero .art { display:none; }
.reader-expanded .hero h1 { max-width:24ch; }
.rx-patterns, .rx-questions { margin:0 0 48px; padding:30px 0; border-top:1px solid var(--rx-line); scroll-margin-top:72px; }
.rx-patterns h2, .rx-questions h2 { margin:4px 0 14px; font-size:clamp(26px,3vw,36px); line-height:1.18; max-width:24ch; }
.rx-note { color:#595c56; font-size:15px; line-height:1.6; max-width:70ch; }
.rx-chart-layout { display:grid; grid-template-columns:minmax(230px,.87fr) minmax(300px,1.13fr); gap:24px; margin:24px 0 16px; align-items:start; }
.rx-shape-panel { padding:16px 10px; border-radius:16px; background:var(--rx-wash); }
.rx-legend { display:flex; gap:8px 12px; flex-wrap:wrap; justify-content:center; min-height:44px; }
.rx-legend-fallback,.rx-series-toggle { display:inline-flex; align-items:center; gap:8px; max-width:100%; overflow-wrap:anywhere; }
.rx-series-toggle { border:1px solid var(--rx-line); background:transparent; color:inherit; padding:9px 12px; border-radius:20px; cursor:pointer; font:inherit; font-size:14px; min-height:44px; }
.rx-series-toggle[aria-pressed="false"] { background:white; color:#666; text-decoration:line-through; }
.rx-symbol { flex:none; display:inline-block; width:9px; height:9px; margin-right:2px; background:var(--rx-a); border-radius:50%; }
.rx-symbol-b { background:var(--rx-b); border-radius:0; transform:rotate(45deg); }
.rx-radar { display:block; width:100%; max-width:360px; height:auto; margin:8px auto; overflow:visible; }
.rx-grid polygon,.rx-grid line { fill:none; stroke:#d1d4ce; stroke-width:1; }
.rx-series polygon,.rx-series path { fill:var(--rx-a); fill-opacity:.16; stroke:var(--rx-a); stroke-width:2; stroke-linejoin:round; }
.rx-series circle,.rx-series rect { fill:var(--rx-a); }
.rx-series-b polygon,.rx-series-b path { fill:var(--rx-b); stroke:var(--rx-b); stroke-dasharray:5 3; }
.rx-series-b rect { fill:var(--rx-b); }
.rx-axis-labels text { font:600 11px system-ui,sans-serif; text-anchor:middle; fill:#343c36; paint-order:stroke; stroke:var(--rx-wash); stroke-width:5px; stroke-linejoin:round; }
.rx-caption { margin:6px 12px; color:#60655c; font-size:13px; line-height:1.6; text-align:center; }
.rx-shape-hidden { font-size:14px; margin:10px; text-align:center; }
.rx-scales { list-style:none; padding:0; margin:0; }
.rx-scale { border-bottom:1px solid var(--rx-line); padding:0 0 13px; margin-bottom:13px; }
.rx-scale:last-child { border-bottom:0; margin-bottom:0; }
.rx-scale h3 { display:flex; align-items:center; gap:8px; margin:0 0 8px; line-height:1.4; font-family:inherit; font-size:15px; font-weight:600; }
.rx-scale-number { flex-shrink:0; border:1px solid var(--rx-line); border-radius:50%; height:23px; width:23px; display:inline-grid; place-items:center; font-size:12px; }
.rx-scale-ends { display:flex; justify-content:space-between; gap:16px; font-size:12px; line-height:1.4; margin-bottom:6px; color:#555c54; }
.rx-scale-ends span { flex:1; }
.rx-scale-ends span:last-child { text-align:right; }
.rx-scale-person { display:grid; grid-template-columns:minmax(55px,90px) 1fr 42px; align-items:center; gap:10px; margin:6px 0; }
.rx-scale-name { display:flex; align-items:center; font-size:12px; gap:5px; overflow-wrap:anywhere; min-width:0; }
.rx-scale-value { font-size:12px; text-align:right; color:#454e48; white-space:nowrap; }
.rx-track { position:relative; height:20px; display:block; }
.rx-track:before { position:absolute; content:''; left:0; right:0; top:9px; height:2px; background:#cbd0c7; }
.rx-ticks { position:absolute; left:0; right:0; top:6px; height:8px; background:repeating-linear-gradient(to right,#cbd0c7 0 1px,transparent 1px calc(100% / 6)); border-right:1px solid #cbd0c7; }
.rx-marker { position:absolute; top:4px; width:11px; height:11px; border:2px solid #fff; background:var(--rx-a); box-shadow:0 0 0 1px var(--rx-a); border-radius:50%; transform:translateX(-50%); }
.rx-marker-b { background:var(--rx-b); box-shadow:0 0 0 1px var(--rx-b); border-radius:0; transform:translateX(-50%) rotate(45deg); width:9px; height:9px; top:5px; }
.rx-position-1{left:0}.rx-position-2{left:16.666667%}.rx-position-3{left:33.333333%}.rx-position-4{left:50%}.rx-position-5{left:66.666667%}.rx-position-6{left:83.333333%}.rx-position-7{left:100%}
.rx-unavailable { grid-column:2/4; color:#626960; font-size:12px; }
.rx-chart-fallback { padding:32px 18px; text-align:center; font-size:15px; line-height:1.6; }
.rx-empty-shape { display:block; color:#767c71; font-size:62px; margin-bottom:18px; }
.rx-detail-link,.rx-chapter-link { font-size:14px; text-underline-offset:4px; color:var(--rx-a); }
.rx-question-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; gap:9px; padding:0; margin:20px 0 12px; }
.rx-question-list li { margin:0; }
.rx-question-list a { display:flex; justify-content:space-between; align-items:center; gap:12px; height:100%; box-sizing:border-box; padding:14px 16px; border:1px solid var(--rx-line); border-radius:10px; text-decoration:none; color:inherit; font-size:15px; line-height:1.45; min-height:52px; }
.rx-question-list a span { flex:none; }
.rx-question-list a:hover { background:var(--rx-wash); }
.rx-question-list a[aria-current="true"] { border-color:var(--rx-a); background:#eff4f1; }
.rx-more { margin:6px 0 18px; }
.rx-more summary { min-height:44px; display:flex; align-items:center; gap:9px; cursor:pointer; font-size:14px; text-decoration:underline; text-underline-offset:3px; }
.rx-more-count { display:inline-grid; place-items:center; border-radius:50%; width:23px; height:23px; background:var(--rx-wash); font-size:12px; }
.rx-answer-shell { margin-top:22px; border:1px solid var(--rx-line); border-radius:14px; background:#fffefa; overflow:hidden; }
.rx-answer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px; background:var(--rx-wash); border-bottom:1px solid var(--rx-line); }
.rx-answer-toolbar button { min-height:44px; min-width:44px; border:0; background:none; color:inherit; cursor:pointer; font:inherit; font-size:13px; }
.rx-answer-toolbar button:disabled { opacity:.4; cursor:default; }
.rx-answer-toolbar>div { display:flex; align-items:center; gap:3px; font-size:12px; white-space:nowrap; }
.rx-answer { padding:24px 28px; }
.rx-answer h3 { margin:4px 0 20px; font-size:25px; line-height:1.25; max-width:35ch; }
.rx-answer p { font-size:16px; line-height:1.7; margin:0 0 1em; }
.rx-answer p.eyebrow { font-size:11px; }
.rx-answer-viewport { max-height:620px; max-height:min(620px,70vh); overflow:auto; scrollbar-gutter:stable; overscroll-behavior-y:auto; scroll-padding:24px; }
.rx-source-heading { font-weight:600; }
.rx-source-passages h3 { font-size:19px; }
.rx-source-passages summary { padding:14px 0; margin:8px 0; cursor:pointer; color:var(--rx-a); font-size:14px; }
.rx-chapter-link { display:inline-block; padding:12px 0; }
.rx-return-link { display:inline-block; margin:8px 0 22px; font-size:14px; color:var(--rx-a); text-underline-offset:4px; }
.reader-expanded [id^="book-"],.reader-expanded #full-guide,.reader-expanded #maps { scroll-margin-top:80px; }
.reader-expanded :focus-visible { outline:3px solid #346b73; outline-offset:4px; }
.reader-expanded [hidden] { display:none!important; }
@media (max-width:800px) {
 .rx-chart-layout { grid-template-columns:1fr; gap:25px; }
 .rx-shape-panel { max-width:440px; width:100%; box-sizing:border-box; justify-self:center; }
 .rx-scales { width:100%; }
 .rx-scale-person { grid-template-columns:minmax(65px,100px) 1fr 42px; }
 .rx-scale-ends { font-size:13px; }
}
@media (max-width:600px) {
 .reader-expanded .rx-nav { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:0; padding:8px 0; margin-bottom:18px; max-width:100%; }
 .reader-expanded .rx-nav > .rx-nav-secondary { display:none; }
 .rx-nav a { display:flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; min-width:0; padding:10px 4px; font-size:12px; line-height:1.35; white-space:normal; text-align:center; }
 .reader-expanded .rx-snapshot-prose p { font-size:17px; line-height:1.65; }
 .rx-patterns,.rx-questions { padding:24px 0; margin-bottom:24px; }
 .rx-question-list { grid-template-columns:1fr; gap:7px; }
 .rx-question-list a { font-size:15px; padding:12px 14px; }
 .rx-answer { padding:21px 19px; }
 .rx-answer h3 { font-size:24px; }
 .rx-answer-toolbar { padding:6px 8px; }
 .rx-answer-toolbar button { font-size:12px; }
 .rx-answer-viewport { max-height:65vh; }
}
@media (prefers-reduced-motion:reduce) { .reader-expanded * { scroll-behavior:auto!important; } }
@media print {
 .rx-nav,.rx-patterns,.rx-questions,.rx-snapshot-prose,.rx-return-link { display:none!important; }
 .reader-expanded .rx-answer-shell { display:none!important; }
}

/* The old mobile menu remains available, but no longer covers the new sticky reading links. */
@media (max-width:760px){.reader-expanded .mobile-guide-menu{position:static;top:auto;z-index:auto}}

.rx-series-off{display:none}
