/* Shared editorial presentation. Article content, equations and experiments stay local. */
body.reader-page { --reader-ink:#f3efe6; --reader-muted:#aaa9a3; --reader-line:rgba(221,207,177,.15); --reader-gold:#c5a059; background:#191a1b; color:#d4d2cd; font-family:Inter,system-ui,sans-serif; line-height:1.8; }
.reader-page .navbar { background:rgba(25,26,27,.95); border-bottom:1px solid var(--reader-line); z-index:100; }
.reader-page .navbar .nav-menu { padding:0; margin:0; max-width:none; gap:32px; flex-wrap:nowrap; }
.reader-page .navbar .nav-link { margin:0; font-family:Inter,system-ui,sans-serif; font-size:12px; font-weight:500; line-height:1.5; color:var(--text-muted); text-decoration:none; }
.reader-page .navbar .nav-link:hover,.reader-page .navbar .nav-link.active { color:var(--heading-color); }
.reader-page .navbar .nav-logo { margin:0; color:var(--reader-ink); text-decoration:none; }
.reader-page .navbar .nav-contact { margin-left:6px; color:var(--heading-color); }
.reader-page main { display:block; }
.reader-page a { color:#d9bb82; }
.reader-page a:hover { color:#f3d69d; }
.reader-page .skip-link { position:fixed; top:-100px; left:20px; background:#e2bf7c; color:#191a1b; padding:10px 18px; z-index:200; }
.reader-page .skip-link:focus { top:12px; }
.reader-page :focus-visible { outline:2px solid #e2bf7c; outline-offset:5px; }
.reader-page .hero { padding:54px 28px 38px; background:radial-gradient(ellipse at 85% 0,rgba(197,160,89,.075),transparent 58%),#191a1b; border:0; }
.reader-page .hero > div { max-width:1160px; margin:0 auto; }
.reader-page .reader-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:15px; margin:0 0 45px; color:#93948e; font-size:.76rem; letter-spacing:.01em; }
.reader-page .reader-breadcrumb a { text-decoration:none; color:#c9c6be; display:inline-flex; gap:10px; }
.reader-page .reader-breadcrumb > span:last-child { max-width:100%; }
.reader-page .eyebrow { font:600 .68rem/1.6 Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:.16em; color:var(--reader-gold); }
.reader-page .hero h1 { font-family:Poppins,Inter,system-ui,sans-serif; font-weight:500; font-size:clamp(2.35rem,4.5vw,4rem); line-height:1.17; letter-spacing:-.045em; color:var(--reader-ink); margin:18px 0 25px; max-width:1040px; text-wrap:balance; }
.reader-page .deck { font:400 1.08rem/1.85 Inter,system-ui,sans-serif; color:#aaa9a3; max-width:820px; margin:0 0 25px; }
.reader-page .byline { font-size:.77rem; letter-spacing:.01em; line-height:1.8; color:#c1bbb0; margin:0; }
.reader-page .reading-meta { margin:16px 0 0; color:#999b92; gap:8px 20px; font-size:.72rem; }
.reader-page .series-links { margin-top:24px; gap:9px; }
.reader-page .series-links a { font-size:.72rem; padding:9px 13px; border-color:#514839; border-radius:4px; }
.reader-page .series-links a[aria-current="page"] { color:#191a1b; background:#c5a059; }
.reader-tools-wrap { max-width:1216px; padding:0 28px; margin:0 auto; }
.reader-tools { border-top:1px solid var(--reader-line); border-bottom:1px solid var(--reader-line); min-height:58px; display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; color:#a2a39d; font-size:.7rem; letter-spacing:.035em; }
.reader-duration { color:#d6c39e; }
.reader-tools-rule { width:1px; height:12px; background:#5a5144; }
.reader-page .reader-copy { font:500 .7rem Inter,system-ui,sans-serif; margin-left:auto; background:transparent; color:#bdb8ad; padding:12px 0 12px 14px; border:0; cursor:pointer; display:flex; align-items:center; gap:10px; }
.reader-page .reader-copy:hover { color:#efd39c; }
.reader-page .reader-copy[hidden] { display:none; }
.reader-copy-status { font-size:.68rem; color:#dbc38f; }
.reader-copy-status:empty { display:none; }
.reader-layout { max-width:1216px; padding:0 28px; margin:auto; display:grid; grid-template-columns:210px minmax(0,1fr); gap:64px; align-items:start; }
.reader-page article { width:100%; max-width:800px; padding:48px 0 82px; margin:0; min-width:0; font-size:1.025rem; line-height:1.95; color:#cfcec8; overflow-wrap:anywhere; }
.reader-page article p { margin:0 0 25px; line-height:1.95; }
.reader-page article strong { color:#ede7d9; font-weight:600; }
.reader-page article h2 { font:500 clamp(1.45rem,2.35vw,1.85rem)/1.4 Poppins,Inter,system-ui,sans-serif; color:#efeadf; margin:60px 0 22px; padding-top:28px; border-top:1px solid var(--reader-line); letter-spacing:-.025em; scroll-margin-top:110px; }
.reader-page article h3 { font:600 1.09rem/1.6 Inter,system-ui,sans-serif; color:#d7bc86; margin:33px 0 18px; scroll-margin-top:110px; }
.reader-page article :is(section,figure,span,div)[id] { scroll-margin-top:110px; }
.reader-page article section { background:none; padding:0; margin:0; }
.reader-page article section.equation-guide { margin:32px 0; padding:25px; border:1px solid #665237; border-radius:8px; background:linear-gradient(135deg,#282720,#202224); }
.reader-page article .equation-guide h3 { margin-top:0; }
.reader-page article ul,.reader-page article ol { padding-left:24px; margin:18px 0 26px; }
.reader-page article li { padding-left:3px; margin:8px 0; }
.reader-page article a:not(.next a):not(.reader-end a) { text-underline-offset:4px; text-decoration-thickness:1px; }
.reader-page article blockquote { font-family:Georgia,serif; font-size:1.4rem; line-height:1.7; border-left:2px solid #c5a059; margin:38px 0; padding:4px 0 4px 25px; color:#e2ceb0; }
.reader-page .note { background:#222321; color:#bdbeb7; padding:23px 26px; border-left:2px solid #a68b55; border-radius:0 5px 5px 0; font-size:.87rem; line-height:1.85; margin:0 0 30px; }
.reader-page article .note:not(:first-child) { margin-top:30px; }
.reader-page .reader-sidebar { position:sticky; top:108px; align-self:start; padding-top:50px; min-width:0; font-family:Inter,system-ui,sans-serif; }
.reader-page .reading-toc { background:none; border:0; padding:0; border-radius:0; margin:0; }
.reader-page .reading-toc summary { display:flex; justify-content:space-between; gap:12px; align-items:center; list-style:none; font:600 .66rem/1.5 Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:.14em; color:#c5b58d; cursor:pointer; padding:0 0 20px; }
.reader-page .reading-toc summary::-webkit-details-marker { display:none; }
.reader-page .reading-toc summary span { display:block; font-size:1.1rem; line-height:1; transition:transform .2s; }
.reader-page .reading-toc[open] summary span { transform:rotate(180deg); }
.reader-page .reading-toc ol { columns:1; list-style:none; margin:0; padding:0 7px 0 0; max-height:calc(100vh - 270px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#62543a transparent; }
.reader-page .reading-toc li { margin:0; padding:0; font-size:.74rem; line-height:1.6; break-inside:avoid; }
.reader-page .reading-toc a { display:block; border-left:1px solid #3c3d36; padding:9px 0 9px 15px; color:#95978f; text-decoration:none; transition:color .2s,border-color .2s; }
.reader-page .reading-toc a:hover,.reader-page .reading-toc a[aria-current="location"] { color:#e1c998; border-left-color:#d1ac66; }
.reader-page .reader-library-link { display:flex; align-items:center; gap:10px; text-decoration:none; font-size:.72rem; padding-top:25px; color:#c4b28d; }
.reader-progress { position:fixed; top:var(--nav-height,82px); left:0; width:100%; height:2px; z-index:101; pointer-events:none; }
.reader-progress > span { display:block; width:100%; height:100%; background:#c5a059; transform-origin:left; transform:scaleX(0); }
.reader-page .math,.reader-page .math-scroll,.reader-page .formula { max-width:100%; overflow-x:auto; border-radius:5px; }
.reader-page .math { padding:22px 14px; margin:28px 0; background:#202220; border:1px solid #454134; }
.reader-page math { font-family:"STIX Two Math","Cambria Math","Latin Modern Math",math; }
.reader-page .katex-display { max-width:100%; overflow-x:auto; overflow-y:hidden; padding-block:.25em; }
.reader-page .thought-figure { margin:35px 0; border:1px solid #424138; border-radius:8px; }
.reader-page .thought-figure img { min-height:0; }
.reader-page .thought-figure figcaption { background:#222524; padding:23px; font-size:.87rem; }
.reader-page .thought-figure .thought-explainer { font-size:.87rem; }
.reader-page .thought-figure figcaption strong { font-size:1rem; }
.reader-page .diagram svg { max-width:100%; height:auto; }
.reader-page .next { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:45px 0 20px; }
.reader-page .next a { display:block; border:1px solid #454237; background:#212321; border-radius:5px; color:#e4d7be; padding:23px; font-size:.9rem; font-weight:500; line-height:1.6; text-decoration:none; }
.reader-page .next a:hover { border-color:#a28959; background:#282923; }
.reader-page .next span { font-size:.76rem; line-height:1.7; color:#a4a69b; margin-top:10px; display:block; font-weight:400; }
.reader-page .reader-end { border-top:1px solid #454237; margin-top:55px; padding:25px 0 0; display:flex; gap:16px 25px; flex-wrap:wrap; align-items:center; font-size:.75rem; }
.reader-end > span { color:#a7a79f; margin-right:auto; }
.reader-page .reader-end a { color:#d1b780; text-decoration:none; }
.reader-page .site-footer { background:#151718; border-top:1px solid #363831; padding:45px 28px; text-align:left; }
.reader-page .site-footer .container { max-width:1160px; margin:auto; display:flex; align-items:center; flex-wrap:wrap; gap:30px 40px; }
.reader-page .site-footer .footer-name { color:#e8e3d7; font-size:.95rem; font-weight:500; text-decoration:none; margin-right:auto; }
.reader-page .footer-name span { display:block; color:#82867e; font-size:.7rem; font-weight:400; margin-top:4px; }
.reader-page .site-footer nav { padding:0; margin:0; display:flex; flex-wrap:wrap; gap:20px; }
.reader-page .site-footer nav a { color:#aaa99f; font-size:.73rem; font-weight:400; margin:0; text-decoration:none; }
.reader-page .site-footer p { flex-basis:100%; margin:0; padding-top:20px; border-top:1px solid #30332d; font-size:.66rem; color:#808478; }
@media (max-width:1000px) {
  .reader-layout { grid-template-columns:175px minmax(0,1fr); gap:35px; }
  .reader-page .hero h1 { font-size:clamp(2.35rem,5.2vw,3.5rem); }
}
@media (max-width:800px) {
  .reader-progress { top:var(--nav-height,72px); }
  .reader-page .navbar .nav-menu { gap:4px; }
  .nav-ready .reader-page .navbar .nav-menu { padding:22px 24px 30px; }
  .nav-ready .reader-page .navbar .nav-link { font-size:16px; }
  .reader-page .hero { padding:28px 22px 30px; }
  .reader-page .reader-breadcrumb { margin-bottom:30px; font-size:.67rem; gap:10px; }
  .reader-page .hero h1 { font-size:clamp(2.05rem,7.8vw,3rem); letter-spacing:-.04em; }
  .reader-page .deck { font-size:.95rem; line-height:1.8; }
  .reader-page .byline { font-size:.7rem; }
  .reader-page .reader-tools-wrap { padding:0 22px; }
  .reader-tools { gap:8px 12px; font-size:.64rem; min-height:57px; }
  .reader-page .reader-copy { font-size:.65rem; padding-left:0; }
  .reader-layout { display:block; padding:0 22px; }
  .reader-page .reader-sidebar { position:static; padding-top:24px; }
  .reader-page .reader-sidebar .reading-toc { padding:15px 18px; border:1px solid #3b3c34; border-radius:5px; }
  .reader-page .reading-toc summary { padding:0; font-size:.68rem; }
  .reader-page .reading-toc[open] summary { padding-bottom:14px; }
  .reader-page .reading-toc ol { max-height:350px; }
  .reader-page .reader-library-link { display:none; }
  .reader-page article { padding:30px 0 60px; font-size:.96rem; }
  .reader-page article h2 { margin-top:42px; font-size:1.48rem; }
  .reader-page .note { padding:19px 20px; }
  .reader-page .next { grid-template-columns:1fr; }
  .reader-page .hero .series-links a { font-size:.64rem; padding:9px 10px; }
  .reader-page article section.equation-guide { padding:20px 17px; }
  .reader-page .site-footer { padding:35px 22px; }
  .reader-page .site-footer .container { gap:22px; }
  .reader-page .site-footer nav { gap:14px; }
  .reader-page .navbar .nav-contact { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  .reader-page,.reader-page * { scroll-behavior:auto; }
  .reader-page .reading-toc a,.reader-page .reading-toc summary span { transition:none; }
}
@media print {
  body.reader-page { background:#fff; color:#111; }
  .reader-page .navbar,.reader-sidebar,.reader-tools-wrap,.reader-progress,.reader-page .site-footer,.reader-page .reader-end,.reader-page .skip-link { display:none!important; }
  .reader-page .hero { background:#fff; padding:0; }
  .reader-page .hero h1,.reader-page .deck,.reader-page .byline,.reader-page article,.reader-page article h2,.reader-page article h3,.reader-page article strong,.reader-page article a { color:#111; }
  .reader-layout { display:block; max-width:none; padding:0; }
  .reader-page article { max-width:none; padding:20px 0; font-size:10pt; }
  .reader-page .note,.reader-page .math,.reader-page .next a { background:white; color:#111; }
}
