/* ===================================================================== */
/* Edition reader, 2026-10-28 (owner directive).                         */
/* Every article, paper, case study, study guide and book page reads     */
/* like /insight-editions/undaunted/: edition title block with cover,    */
/* sticky reading bar, chapter bands, justified two-column               */
/* Source Serif prose with bold lead sentences. Applied by               */
/* pipeline/edition_reader.py (html.rr-ed); loaded last in the head.     */
/* ===================================================================== */
:root.rr-ed{
  --e-sans:'Space Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --e-serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --e-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --e-ink:#13343b;--e-text:#23373b;--e-soft:#5f6b6d;--e-line:#e6e5df;--e-teal:#20808d;--e-teal-ink:#1a6b76;--e-paper:#fcfcf9;
  background:var(--e-paper)!important;scroll-padding-top:96px}
:root.rr-ed body{background:var(--e-paper)!important;margin:0!important;padding:0!important;max-width:none!important;display:block!important;
  color:var(--e-text);font-family:var(--e-sans)}
:root.rr-ed .rr-ed-off,:root.rr-ed .rr-art,:root.rr-ed :is(.rmeta,.rmode,.rpill,.rtoc,#rprog,.reading-progress,.progress-bar){display:none!important}

/* ---------- frame: content column at 1180px, like the Insight reader ---------- */
:root.rr-ed body .rr-ed-chain.rr-ed-chain{display:block!important;max-width:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
  grid-template-columns:none!important;grid-column:auto!important;float:none!important;position:static!important;transform:none!important;
  background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;columns:auto!important;overflow:visible!important;height:auto!important}
:root.rr-ed :not(body).rr-ed-body{display:block!important;max-width:1180px!important;width:auto!important;min-width:0!important;margin:0 auto!important;
  padding:0 clamp(1rem,3vw,2rem) 3rem!important;float:none!important;position:static!important;box-shadow:none!important;border:0!important;
  border-radius:0!important;background:transparent!important;grid-column:auto!important;columns:auto!important;transform:none!important;overflow:visible!important}
:root.rr-ed .rr-ed-body>:first-child{margin-top:0!important}
/* when the whole body is the reading root, the Maverick sheet (body) keeps its paper and gap */
:root.rr-ed body.rr-ed-body{padding:0 0 3rem!important}
:root.rr-ed body.rr-ed-body>:not(.gnav):not(.mv-front):not(.rr-ehero):not(.rr-ebar):not(.rr-econtents-wrap):not(script):not(style){
  max-width:1180px;margin-left:auto!important;margin-right:auto!important;padding-left:clamp(1rem,3vw,2rem);padding-right:clamp(1rem,3vw,2rem);box-sizing:border-box}
:root.rr-ed .rr-wide{max-width:none!important}

/* ---------- navigation ---------- */
:root.rr-ed body>nav.gnav{position:sticky!important;top:0!important}
:root.rr-ed body>.mv-front{display:none!important}
.rr-gnav{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:1rem;height:46px;box-sizing:border-box;
  padding:0 clamp(1rem,2.4vw,2.1rem);background:rgba(255,255,255,.97);border-bottom:1px solid var(--e-line);font-family:var(--e-sans)}
.rr-gnav a{text-decoration:none!important}
.rr-brand{display:inline-flex;align-items:center;gap:.6rem;color:var(--e-ink)!important;font:600 .9rem/1 var(--e-sans);letter-spacing:-.02em;white-space:nowrap}
.rr-brand em{font-style:normal}
.rr-mono{display:inline-flex;align-items:center;justify-content:center;width:1.55rem;height:1.55rem;border:1.5px solid var(--e-ink);border-radius:3px;
  font:600 .5rem/1 var(--e-mono);letter-spacing:.02em}
.rr-links{display:flex;gap:clamp(.8rem,2vw,1.55rem);margin-left:auto;align-items:center}
.rr-links a{color:var(--e-soft)!important;font:500 .8rem/1 var(--e-sans);padding:.9rem 0 .8rem;border-bottom:2px solid transparent}
.rr-links a:hover{color:var(--e-ink)!important}
.rr-links a.on{color:var(--e-ink)!important;border-bottom-color:var(--e-teal)}

/* ---------- edition title block ---------- */
.rr-ehero{padding:1.6rem 0 2rem;font-family:var(--e-sans)}
.rr-ewrap{max-width:1180px;margin:0 auto;padding:0 clamp(1rem,3vw,2rem);box-sizing:border-box}
.rr-crumb{font:500 .72rem/1.4 var(--e-sans);color:var(--e-soft)}
.rr-crumb a{color:var(--e-teal-ink)!important;text-decoration:none!important}
.rr-crumb a:hover{text-decoration:underline!important}
.rr-egrid{display:grid;grid-template-columns:minmax(0,1fr) 17rem;gap:3rem;align-items:start;margin-top:1.2rem;max-width:60rem}
:root.rr-ed .rr-ehero p{text-align:left!important;hyphens:manual!important}
:root.rr-ed .rr-ehero .rr-eno{font:600 .72rem/1.4 var(--e-sans)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--e-teal-ink)!important;margin:0 0 .6rem!important}
:root.rr-ed .rr-ehero h1.rr-eh1{font-family:var(--e-serif)!important;font-weight:600!important;font-size:clamp(2rem,4vw,2.7rem)!important;line-height:1.08!important;
  letter-spacing:-.02em!important;margin:0!important;color:#1f2a2e!important;text-transform:none!important;border:0!important;padding:0!important;background:none!important}
:root.rr-ed .rr-ehero .rr-esub{font-family:var(--e-serif)!important;font-style:italic!important;font-size:1.12rem!important;line-height:1.4!important;color:var(--e-soft)!important;margin:.55rem 0 0!important}
:root.rr-ed .rr-ehero .rr-eau{font:600 .74rem/1.4 var(--e-sans)!important;letter-spacing:.12em!important;text-transform:uppercase;color:var(--e-teal-ink)!important;margin:1rem 0 0!important}
:root.rr-ed .rr-ehero .rr-edesc{font-family:var(--e-serif)!important;font-size:1.02rem!important;line-height:1.6!important;color:#1f2a2e!important;margin:1rem 0 0!important;max-width:36rem}
.rr-elinks{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.4rem 0 0}
.rr-elinks a{display:inline-flex;align-items:baseline;gap:.35rem;padding:.55rem .95rem;border:1px solid var(--e-teal-ink);border-radius:.25rem;
  color:var(--e-teal-ink)!important;text-decoration:none!important;font:500 .88rem/1.2 var(--e-sans);background:transparent}
.rr-elinks a small{font-size:.72rem;opacity:.75}
.rr-elinks a:hover{background:rgba(32,128,141,.08)}
.rr-elinks a.primary{background:var(--e-teal-ink);color:#fff!important}
.rr-elinks a.primary:hover{background:#13545d}
.rr-etags{display:flex;flex-wrap:wrap;gap:.3rem;margin:1.1rem 0 0}
.rr-etags a{font:400 .72rem/1.2 var(--e-sans);padding:.25rem .5rem;border-radius:.3rem;background:rgba(32,128,141,.09);color:var(--e-teal-ink)!important;text-decoration:none!important}
.rr-etags a:hover{background:rgba(32,128,141,.18)}
:root.rr-ed .rr-ehero .rr-elic{font:400 .74rem/1.4 var(--e-sans)!important;color:var(--e-soft)!important;margin:.9rem 0 0!important}
.rr-ecover-img{display:block;width:100%;height:auto;border-radius:.35rem;box-shadow:0 1px 2px rgba(20,30,35,.08),0 16px 36px -14px rgba(20,30,35,.4)}
.rr-ecover-css{position:relative;aspect-ratio:2/3;width:100%;border-radius:.35rem;overflow:hidden;background:#cfc6b3 var(--art) center 68%/cover no-repeat;
  box-shadow:0 1px 2px rgba(20,30,35,.08),0 16px 36px -14px rgba(20,30,35,.4)}
.rr-cv-t{position:absolute;left:0;right:0;top:0;padding:10% 9% 18%;color:#1f2a2e;
  background:linear-gradient(180deg,rgba(236,232,221,.97) 0,rgba(236,232,221,.94) 68%,rgba(236,232,221,0) 100%)}
.rr-cv-k{display:flex;justify-content:space-between;gap:.5rem;font:500 7px/1.2 var(--e-mono);letter-spacing:.14em;padding-bottom:5px;margin-bottom:13px;border-bottom:1px solid rgba(31,42,46,.45)}
.rr-cv-k span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rr-cv-h{font-family:var(--e-serif);font-weight:600;line-height:1.06;letter-spacing:-.01em;overflow-wrap:break-word;hyphens:auto}
.rr-cv-s{font:italic 400 11px/1.3 var(--e-serif);color:#465256;margin-top:7px}
.rr-cv-a{display:inline-block;font:600 7.5px/1 var(--e-sans);letter-spacing:.16em;margin-top:13px;padding-top:6px;border-top:1px solid rgba(31,42,46,.55)}

/* ---------- sticky reading bar ---------- */
.rr-ebar{position:sticky;top:46px;z-index:30;background:color-mix(in srgb,var(--e-paper) 94%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-top:1px solid var(--e-line);border-bottom:1px solid var(--e-line);margin-bottom:1.6rem;scroll-margin-top:46px;font-family:var(--e-sans)}
.rr-ebar .rr-ewrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:.5rem;padding-bottom:.5rem;font-size:.82rem}
.rr-ebar-t{font-weight:600;color:#1f2a2e!important;text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rr-ebar span{display:flex;gap:1.1rem;flex:none}
.rr-ebar span a{color:var(--e-teal-ink)!important;text-decoration:none!important;font-weight:500}
.rr-ebar span a:hover{text-decoration:underline!important}

/* ---------- contents box ---------- */
.rr-econtents{display:block;background:#f3f3ee;border:1px solid var(--e-line);border-radius:8px;padding:1rem 1.2rem;column-width:15rem;column-gap:2rem;margin:0 0 1.6rem;font-family:var(--e-sans)}
.rr-econtents-h{column-span:all;font:600 .68rem/1 var(--e-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--e-soft);margin:0 0 .7rem}
.rr-econtents a{display:block;margin:0 0 .4rem;break-inside:avoid;text-decoration:none!important;font:400 14px/1.35 var(--e-sans);color:var(--e-teal-ink)!important}
.rr-econtents a:hover{text-decoration:underline!important}

/* ---------- reading typography ---------- */
:root.rr-ed.rr-read body .rr-ed-body :is(p,li,dd):not(:is(nav,table,figure,svg,.katex,mjx-container,.rr-econtents,[class*="card"],[class*="tldr"],[class*="grid"]) *):not([class*="caption"]){
  font-family:var(--e-serif)!important;font-size:15.5px!important;line-height:1.6!important;color:var(--e-text)!important;letter-spacing:0!important;
  text-align:justify!important;hyphens:auto!important;-webkit-hyphens:auto!important;hyphenate-limit-chars:6 3 2}
:root.rr-ed.rr-read body .rr-ed-body p{margin-top:0!important;margin-bottom:9px!important}
:root.rr-ed.rr-read body .rr-ed-body :is(strong,b):not(svg *):not(.katex *){font-weight:700!important;color:var(--e-ink)!important}
:root.rr-ed.rr-read body .rr-ed-body strong.rr-lead{font-weight:700!important;color:var(--e-ink)!important}
:root.rr-ed.rr-read body .rr-ed-body a:not(.rr-econtents a):not([class*="btn"]):not([class*="button"]){color:var(--e-teal-ink);text-decoration-color:rgba(26,107,118,.35);text-underline-offset:2px}

/* chapter bands */
:root.rr-ed.rr-read body .rr-ed-body h2.rr-band{display:block!important;position:relative;margin:2.6rem 0 1rem!important;padding:15px 18px!important;
  border:0!important;border-left:7px solid #f59e0b!important;border-radius:6px!important;color:#fff!important;font-family:var(--e-sans)!important;
  font-size:24px!important;line-height:1.2!important;font-weight:600!important;letter-spacing:-.01em!important;text-align:left!important;
  background:linear-gradient(100deg,#1e3a8a,#2563eb)!important;column-span:all;break-inside:avoid;break-after:avoid;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;grid-template-columns:none!important;box-shadow:none!important;text-transform:none!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-band::after{display:none!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-band *{color:#fff!important;background:none!important;border:0!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-band::before{content:none!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-band[data-rr-eyebrow]::before{content:attr(data-rr-eyebrow)!important;display:block!important;position:static!important;width:auto!important;height:auto!important;
  background:none!important;border:0!important;writing-mode:horizontal-tb!important;transform:none!important;color:#fff!important;padding:0!important;font:700 11px/1 var(--e-sans);letter-spacing:.16em;text-transform:uppercase;opacity:.85;margin:0 0 7px}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b2{background:linear-gradient(100deg,#0f766e,#14b8a6)!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b3{background:linear-gradient(100deg,#9d174d,#db2777)!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b4{background:linear-gradient(100deg,#5b21b6,#8b5cf6)!important;border-left-color:#14b8a6!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b5{background:linear-gradient(100deg,#b45309,#f59e0b)!important;border-left-color:#1e3a8a!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b6{background:linear-gradient(100deg,#065f46,#10b981)!important}
:root.rr-ed.rr-read body .rr-ed-body h2.rr-b7{background:linear-gradient(100deg,#0e7490,#06b6d4)!important}
:root.rr-ed.rr-read body .rr-ed-body :is(h3):not(svg *):not(.rr-econtents *):not([class*="card"] *):not(table *){font-family:var(--e-sans)!important;font-size:15px!important;line-height:1.3!important;
  text-transform:uppercase!important;letter-spacing:.05em!important;color:#be185d!important;margin:20px 0 8px!important;font-weight:600!important;break-after:avoid}
:root.rr-ed.rr-read body .rr-ed-body :is(h4):not(svg *):not([class*="card"] *):not(table *){font-family:var(--e-sans)!important;font-size:15px!important;color:#7c3aed!important;margin:15px 0 6px!important;font-weight:600!important;break-after:avoid}

/* tables, Insight style */
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *):not(svg *){border-collapse:collapse!important;width:100%;font-family:var(--e-sans)!important;font-size:13px!important;line-height:1.4!important;
  margin:18px 0!important;border:0!important;background:transparent!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) thead{background:linear-gradient(90deg,#1e3a8a,#0d9488)!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) :is(thead th,thead td,tr:first-child>th){background:transparent!important;color:#fff!important;text-align:left;padding:9px!important;border:0!important;font-weight:600!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) tbody tr:first-child:has(>th){background:linear-gradient(90deg,#1e3a8a,#0d9488)!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *):not(:has(thead)) tr:first-child:has(>th){background:linear-gradient(90deg,#1e3a8a,#0d9488)!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) td{border:1px solid #dbe4ef!important;padding:9px!important;vertical-align:top;color:var(--e-text)!important;font-size:13px!important;background:transparent!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) tbody tr:nth-child(even){background:#f1f5f9!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) td:first-child{color:#1e3a8a!important;font-weight:700!important}
:root.rr-ed.rr-read body .rr-ed-body table:not(.katex *) :is(td,th) :is(p,li){font-family:var(--e-sans)!important;font-size:13px!important;text-align:left!important;hyphens:manual!important}
:root.rr-ed.rr-read body .rr-ed-body tr{break-inside:avoid}

/* callouts, Insight style */
:root.rr-ed.rr-read body .rr-ed-body :is(div,aside,section):is(.callout,.note,.key,.model,.insight,.big-idea,.key-idea,.definition,.theorem,.box,.aside-box,.mechanism,.principle){
  background:#eff6ff!important;border:0!important;border-left:5px solid #2563eb!important;border-radius:5px!important;padding:13px 15px!important;margin:17px 0!important;break-inside:avoid;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
:root.rr-ed.rr-read body .rr-ed-body :is(div,aside,section):is(.insight,.big-idea,.key-idea,.key,.takeaway-key,.point){background:#ecfdf5!important;border-left-color:#059669!important}
:root.rr-ed.rr-read body .rr-ed-body :is(div,aside,section):is(.warning,.warn,.pitfall,.caution,.danger,.trap,.misconception){background:#fef2f2!important;border:0!important;border-left:5px solid #dc2626!important;border-radius:5px!important;padding:13px 15px!important;margin:17px 0!important}
:root.rr-ed.rr-read body .rr-ed-body :is(div,aside,section):is(.takeaway,.take,.summary,.recap,.in-practice){background:#f5f3ff!important;border:0!important;border-left:5px solid #7c3aed!important;border-radius:5px!important;padding:13px 15px!important;margin:17px 0!important}
:root.rr-ed.rr-read body .rr-ed-body :is(div,aside,section):is(.example,.exercise,.checkpoint,.challenge,.thought-experiment,.problem,.worked-example,.try){background:#fffbeb!important;border:0!important;border-left:5px solid #f59e0b!important;border-radius:5px!important;padding:13px 15px!important;margin:17px 0!important}
:root.rr-ed.rr-read body .rr-ed-body :is([class*="tldr"]){background:#ecfdf5!important;border:0!important;border-top:4px solid #059669!important;border-radius:5px!important;padding:12px 14px!important;margin:0 0 18px!important;box-shadow:none!important;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
:root.rr-ed.rr-read body .rr-ed-body :is([class*="tldr"]) :is(p,li){text-align:left!important;font-size:14.5px!important}
:root.rr-ed.rr-read body .rr-ed-body blockquote:not(svg *){border-left:3px solid var(--e-teal)!important;background:transparent!important;padding:.2rem 0 .2rem 1rem!important;margin:1rem 0!important}

/* figures */
:root.rr-ed.rr-read body .rr-ed-body figure{break-inside:avoid}
:root.rr-ed.rr-read body .rr-ed-body>:is(figure,.figure,.diagram,.plate,[class*="figure"]){max-width:980px;margin-left:auto!important;margin-right:auto!important}
:root.rr-ed .rr-ed-chain>:is(figure,section,div,aside):not(.rr-ed-body):not(.rr-ed-chain):not(.rr-ed-off):not(.rr-ewrap):not(script){max-width:1116px;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
:root.rr-ed.rr-read body .rr-ed-body figcaption:not(svg *){font-family:var(--e-sans)!important;font-size:12px!important;line-height:1.45!important;color:#64748b!important;text-align:center!important;font-style:italic!important}
:root.rr-ed.rr-read body .rr-ed-body :is(pre,code):not(.katex *){font-family:var(--e-mono)!important}
:root.rr-ed.rr-read body .rr-ed-body pre{text-align:left!important}

/* two balanced columns (house.js wraps prose runs in .rr-cols) */
.rr-cols{display:block}
@media (min-width:960px){
  :root.rr-ed .rr-cols:not(.rr-narrow){column-count:2;column-gap:2.6rem;column-rule:1px solid var(--e-line);column-fill:balance;margin:0 0 6px}
  :root.rr-ed .rr-cols.rr-solo{column-count:1!important;column-rule:none!important;max-width:calc(50% - 1.3rem)}
  :root.rr-ed .rr-cols:not(.rr-narrow)>:is(h3,h4,h5,h6){break-after:avoid;break-inside:avoid}
  :root.rr-ed .rr-cols:not(.rr-narrow) :is(li,tr){break-inside:avoid}
  :root.rr-ed .rr-cols:not(.rr-narrow)>:first-child{margin-top:0!important}
}

/* ---------- small screens ---------- */
@media (max-width:760px){
  .rr-egrid{grid-template-columns:1fr;gap:1.6rem}
  .rr-ecover-img,.rr-ecover-css{max-width:13rem;order:-1}
  .rr-ebar{top:0}
  .rr-gnav{position:relative;flex-wrap:wrap;height:auto;padding:.55rem 1rem;gap:.3rem}
  .rr-links{width:100%;margin-left:0;overflow-x:auto;gap:1rem;scrollbar-width:none}
  .rr-links a{padding:.45rem 0;white-space:nowrap}
  :root.rr-ed.rr-read body .rr-ed-body h2.rr-band{font-size:20px!important;padding:12px 14px!important}
  .rr-econtents{column-width:auto}
}

/* ---------- print and PDF ---------- */
@page{size:A4;margin:14mm 13mm 15mm}
@media print{
  :root.rr-ed,:root.rr-ed body{background:#fff!important}
  .rr-gnav,.rr-ebar,.rr-elinks,.rr-crumb,:root.rr-ed footer,:root.rr-ed .gfoot,:root.rr-ed .rr-ed-off,:root.rr-ed .rr-econtents{display:none!important}
  .rr-ehero{padding:0 0 4mm;break-after:page}
  .rr-ewrap,:root.rr-ed .rr-ed-body{max-width:none!important;padding:0!important}
  .rr-egrid{display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:8mm;max-width:none;margin-top:6mm}
  .rr-egrid>*{max-width:150mm}
  .rr-ecover-img,.rr-ecover-css{order:-1;width:78mm!important;max-width:78mm!important}
  :root.rr-ed .rr-ehero .rr-edesc{text-align:justify!important}
  .rr-etags{justify-content:center}
  :root.rr-ed .rr-ehero h1.rr-eh1{font-size:30pt!important}
  :root.rr-ed .rr-ehero .rr-edesc{font-size:11.5pt!important;max-width:none}
  .rr-cv-k{font-size:6pt}.rr-cv-a{font-size:6.5pt}
  :root.rr-ed.rr-read body .rr-ed-body :is(p,li,dd):not(:is(nav,table,figure,svg,.katex,mjx-container) *){font-size:9.6pt!important;line-height:1.48!important}
  :root.rr-ed.rr-read body .rr-ed-body h2.rr-band{font-size:15pt!important;margin:6mm 0 3mm!important;padding:3.4mm 4mm!important}
  :root.rr-ed .rr-cols{column-count:2;column-gap:7mm;column-rule:.4pt solid #ccc;column-fill:balance}
  :root.rr-ed .rr-cols.rr-solo{column-count:1;max-width:calc(50% - 3.5mm)}
  :root.rr-ed .rr-ed-body :is(figure,table,pre,img,svg){break-inside:avoid}
  :root.rr-ed *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- Maverick layer: the fixed house nav hides on scroll; the reading bar follows it */
:root.rr-ed .rr-ebar{top:var(--mv-nav,46px);transition:top .45s cubic-bezier(.2,.7,.2,1)}
:root.rr-ed.mv-navhide .rr-ebar{top:0}

/* ---------- house navigation on pages without site.css (book readers): layout only;
   maverick.css supplies the dark glass, colours and hide-on-scroll */
.rr-gnav-ed{display:flex;align-items:center;gap:1rem;box-sizing:border-box;font-family:var(--e-sans)}
.rr-gnav-ed a{text-decoration:none!important}
.rr-gnav-ed .brand{display:inline-flex;align-items:center;gap:.6rem;font-size:.92rem;white-space:nowrap}
.rr-gnav-ed .monogram{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border:1.5px solid currentColor;border-radius:3px;
  font:600 .5rem/1 var(--e-mono);letter-spacing:.02em}
.rr-gnav-ed .links{display:flex;gap:clamp(.8rem,1.8vw,1.45rem);margin-left:auto;align-items:center;flex-wrap:nowrap}
.rr-gnav-ed .links a{padding:.35rem 0;white-space:nowrap}
.rr-gnav-ed .kbd{font:500 .68rem/1 var(--e-mono);padding:.42rem .55rem;border:1px solid rgba(243,239,230,.22);background:transparent;cursor:pointer;color:inherit}
.rr-gnav-ed .kbd .index-label{display:none}
@media (max-width:900px){
  .rr-gnav-ed{flex-wrap:wrap;gap:.45rem .9rem}
  .rr-gnav-ed .links{margin-left:0;width:100%;order:3;overflow-x:auto;gap:.85rem;padding-bottom:.2rem}
  .rr-gnav-ed .kbd{display:none}
}

/* ---------- book landings: contents lists stay ragged-right with clear column gutters */
:root.rr-ed body .rr-ed-body :is(details,.rrm-vol,.rrm-vols,.toc,.contents) :is(li,a):not(#rr-none):not(#rr-none2){text-align:left!important;hyphens:manual!important;-webkit-hyphens:manual!important}
:root.rr-ed .rr-ed-body :is(details,.rrm-vol) ol{column-gap:3.4rem!important;padding-left:2.2rem!important}
:root.rr-ed .rr-ed-body :is(details,.rrm-vol) li{break-inside:avoid;margin:0 0 .3rem}

/* ===================================================================== */
/* Night edition, 2026-10-28 (owner directive: every page matches the    */
/* painted, dark homepage; make it feel current, keep it readable).      */
/* Night is the default; Day (data-read="paper") keeps the paper look    */
/* above. Bands, tables and callouts trade the bright gradients for      */
/* dark glass with one coloured edge, so the paintings stay the colour.  */
/* ===================================================================== */
:root.rr-ed:is([data-read="night"],:not([data-read])){
  --e-ink:#f6f1e6;--e-text:#d9d4c9;--e-soft:#a39e92;--e-line:rgba(243,239,230,.11);--e-teal:#e6c77f;--e-teal-ink:#e6c77f;--e-paper:rgba(10,12,18,.9);
  --n-glass:rgba(255,255,255,.035);--n-glass-2:rgba(255,255,255,.06);--n-gold:#e6c77f;--n-gold-2:#f1d89a;--n-ember:#ff9a6b;--n-violet:#c9a7ff;--n-sage:#9fd4a8;--n-sky:#8fc7e8;--n-rose:#f2a0b8;
  background:#07080c!important;color-scheme:dark}
:root.rr-ed:is([data-read="night"],:not([data-read])) body{background:var(--e-paper)!important;color:var(--e-text)}
:root.rr-ed:is([data-read="night"],:not([data-read])) body:not(.ie-page){border-radius:18px 18px 0 0;box-shadow:0 0 0 1px rgba(230,199,127,.16),0 -1px 0 rgba(230,199,127,.5),0 -60px 140px -40px rgba(0,0,0,.85)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-gnav{background:rgba(8,9,13,.86);border-bottom-color:rgba(230,199,127,.18);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-mono{border-color:var(--n-gold);color:var(--n-gold);border-radius:6px}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-links a.on{border-bottom-color:var(--n-gold)}
/* title block */
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-ehero h1.rr-eh1{color:#f6f1e6!important;font-family:var(--e-sans)!important;letter-spacing:-.03em!important;line-height:1.04!important;font-size:clamp(2.1rem,4.4vw,3.2rem)!important}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-ehero .rr-edesc{color:#e2ddd2!important;font-size:1.08rem!important}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-ehero :is(.rr-eno,.rr-eau){color:var(--n-gold)!important;font-family:var(--e-mono)!important;letter-spacing:.2em!important;font-weight:500!important}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-elinks a{border-radius:999px;border-color:rgba(230,199,127,.45);color:#f6f1e6!important;padding:.6rem 1.1rem}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-elinks a:hover{background:rgba(230,199,127,.12)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-elinks a.primary{background:linear-gradient(92deg,#f3e3b5,#e6c77f 40%,#ff9a6b);border-color:transparent;color:#14100a!important;font-weight:600}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-elinks a.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-etags a{border-radius:999px;background:rgba(230,199,127,.08);border:1px solid rgba(230,199,127,.25);color:var(--n-gold-2)!important;padding:.3rem .65rem}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-etags a:hover{background:rgba(230,199,127,.18)}
:root.rr-ed:is([data-read="night"],:not([data-read])) :is(.rr-ecover-img,.rr-ecover-css){border-radius:10px;box-shadow:0 0 0 1px rgba(230,199,127,.2),0 30px 60px -24px rgba(0,0,0,.9)}
/* bar and contents */
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-ebar{background:rgba(10,12,18,.86)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-ebar-t{color:#f6f1e6!important}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-econtents{background:var(--n-glass);border-radius:14px}
/* prose */
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(p,li,dd):not(:is(nav,table,figure,svg,.katex,mjx-container,.rr-econtents,[class*="card"],[class*="tldr"],[class*="grid"]) *):not([class*="caption"]){color:var(--e-text)!important;font-size:16px!important;line-height:1.66!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(strong,b):not(svg *):not(.katex *),
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body strong.rr-lead{color:#fbf7ee!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body a:not(.rr-econtents a):not([class*="btn"]):not([class*="button"]){color:var(--n-gold)!important;text-decoration-color:rgba(230,199,127,.4)}
/* chapter bands: glass, one gold edge, the eyebrow in mono */
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-band{background:linear-gradient(100deg,rgba(230,199,127,.16),rgba(255,255,255,.025) 70%)!important;
  border:1px solid rgba(230,199,127,.2)!important;border-left:3px solid var(--n-gold)!important;border-radius:14px!important;padding:18px 20px!important;font-size:clamp(20px,2.2vw,26px)!important;letter-spacing:-.02em!important;color:#f6f1e6!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-band *{color:#f6f1e6!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-band[data-rr-eyebrow]::before{color:var(--n-gold)!important;font-family:var(--e-mono)!important;font-weight:500!important;letter-spacing:.22em!important;opacity:1}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b2{background:linear-gradient(100deg,rgba(159,212,168,.15),rgba(255,255,255,.025) 70%)!important;border-left-color:var(--n-sage)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b3{background:linear-gradient(100deg,rgba(242,160,184,.15),rgba(255,255,255,.025) 70%)!important;border-left-color:var(--n-rose)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b4{background:linear-gradient(100deg,rgba(201,167,255,.16),rgba(255,255,255,.025) 70%)!important;border-left-color:var(--n-violet)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b5{background:linear-gradient(100deg,rgba(255,154,107,.16),rgba(255,255,255,.025) 70%)!important;border-left-color:var(--n-ember)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b6{background:linear-gradient(100deg,rgba(159,212,168,.13),rgba(255,255,255,.025) 70%)!important;border-left-color:#7fc99a!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body h2.rr-b7{background:linear-gradient(100deg,rgba(143,199,232,.15),rgba(255,255,255,.025) 70%)!important;border-left-color:var(--n-sky)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(h3):not(svg *):not(.rr-econtents *):not([class*="card"] *):not(table *){color:var(--n-gold-2)!important;letter-spacing:.08em!important;font-size:14px!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(h4):not(svg *):not([class*="card"] *):not(table *){color:var(--n-violet)!important}
/* tables */
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) thead,
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) tbody tr:first-child:has(>th),
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *):not(:has(thead)) tr:first-child:has(>th){background:rgba(230,199,127,.14)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) :is(thead th,thead td,tr:first-child>th){color:var(--n-gold-2)!important;font-family:var(--e-mono)!important;font-weight:500!important;font-size:11.5px!important;letter-spacing:.08em;text-transform:uppercase}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) td{border-color:rgba(243,239,230,.1)!important;color:var(--e-text)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) tbody tr:nth-child(even){background:rgba(255,255,255,.03)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body table:not(.katex *) td:first-child{color:#f6f1e6!important}
/* callouts: glass, one coloured edge */
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(div,aside,section):is(.callout,.note,.key,.model,.insight,.big-idea,.key-idea,.definition,.theorem,.box,.aside-box,.mechanism,.principle,.warning,.warn,.pitfall,.caution,.danger,.trap,.misconception,.takeaway,.take,.summary,.recap,.in-practice,.example,.exercise,.checkpoint,.challenge,.thought-experiment,.problem,.worked-example,.try){
  background:var(--n-glass)!important;border:1px solid rgba(243,239,230,.1)!important;border-left:3px solid var(--n-sky)!important;border-radius:12px!important;color:var(--e-text)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(div,aside,section):is(.insight,.big-idea,.key-idea,.key,.takeaway-key,.point){border-left-color:var(--n-sage)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(div,aside,section):is(.warning,.warn,.pitfall,.caution,.danger,.trap,.misconception){border-left-color:#ff7b7b!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(div,aside,section):is(.takeaway,.take,.summary,.recap,.in-practice){border-left-color:var(--n-violet)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is(div,aside,section):is(.example,.exercise,.checkpoint,.challenge,.thought-experiment,.problem,.worked-example,.try){border-left-color:var(--n-ember)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is([class*="tldr"]){background:linear-gradient(135deg,rgba(230,199,127,.09),rgba(201,167,255,.05))!important;border:1px solid rgba(230,199,127,.3)!important;border-radius:16px!important;padding:16px 18px!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is([class*="tldr"],[class*="callout"],[class*="note"],[class*="box"],[class*="card"],[class*="te"]) :is(p,li,span,div,dd,dt,h3,h4,h5){color:var(--e-text)}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :is([class*="tldr"],[class*="callout"],[class*="card"]) :is(b,strong){color:#fbf7ee!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body blockquote:not(svg *){border-left-color:var(--n-gold)!important;color:#efe9dd}
/* figures sit on calm light plates so every diagram stays legible */
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body figure.rr-plate{background:#f4f2ec!important;border-radius:16px!important;padding:14px!important;border:1px solid rgba(230,199,127,.22)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body figure.rr-plate :is(figcaption,figcaption *){color:#41494c!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body figcaption:not(svg *){color:var(--e-soft)!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body pre{background:#0b0d13!important;border:1px solid rgba(243,239,230,.1)!important;border-radius:12px!important;color:#e9e4d9!important}
:root.rr-ed.rr-read:is([data-read="night"],:not([data-read])) body .rr-ed-body :not(pre)>code:not(.katex *){background:rgba(230,199,127,.1)!important;color:var(--n-gold-2)!important;border-radius:5px;padding:.05em .35em}
:root.rr-ed:is([data-read="night"],:not([data-read])) .rr-cols:not(.rr-narrow){column-rule-color:rgba(243,239,230,.1)}
:root.rr-ed:is([data-read="night"],:not([data-read])) .katex{color:inherit}  /* follow the paragraph: light on night prose, dark on a light panel */
:root.rr-ed:is([data-read="night"],:not([data-read])) ::selection{background:rgba(201,167,255,.35);color:#fff}
@media (max-width:640px){:root.rr-ed:is([data-read="night"],:not([data-read])) body:not(.ie-page){border-radius:14px 14px 0 0}}
@media print{:root.rr-ed body{border-radius:0!important;box-shadow:none!important}}
/* painted covers keep their printed ink in night */
html:root.rr-ed body .rr-ecover-css :is(.rr-cv-t,.rr-cv-t *){color:#1f2a2e!important;-webkit-text-fill-color:#1f2a2e!important}
html:root.rr-ed body .rr-ecover-css .rr-cv-s{color:#465256!important;-webkit-text-fill-color:#465256!important}
html:root.rr-ed body .rr-ecover-css .rr-cv-t{background:linear-gradient(180deg,rgba(236,232,221,.97) 0,rgba(236,232,221,.94) 68%,rgba(236,232,221,0) 100%)!important}

/* Long books (Pure Dhamma has ~20k paragraphs): let the browser skip layout of
   chapters that are off screen, so styling and scripts finish quickly. */
html.rrm-book section.chapter{content-visibility:auto;contain-intrinsic-size:auto 2400px}

/* Books: the edition reader hides the old chapter rail, so drop the gutter it
   reserved, and paint the night colours in CSS (no white flash before the
   script sweep runs). Day keeps each book's own paper theme. */
:root.rr-ed.rrm-book:has(#reader-rail.rr-ed-off) body{padding-left:0!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])){color-scheme:dark;background:#07080c!important;
  --reader-ink:#d9d4c9;--reader-muted:#b4ad9f;--reader-paper:transparent;--reader-ground:#07080c;--reader-rule:rgba(230,199,127,.16);
  --rrm-ink:#e9e4d8;--rrm-ink2:#c9c2b4;--rrm-blue:#e6c77f;--rrm-teal:#e6c77f;--paper:transparent;--bg:transparent;--page:transparent;--page-bg:transparent}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) body{background:var(--e-paper,rgba(10,12,18,.88))!important;color:#d9d4c9!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) :is(#reader-content,.reader-shell,.toc-shell,.contents-page,.page-shell,.rrm-landing,.part-hero,section.chapter){background:transparent!important;background-image:none!important;color:#d9d4c9!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content :is(p,li,dd,td,figcaption){color:#d9d4c9}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content :is(h1,h2,h3,h4,h5,h6,strong,b,dt,th){color:#f3efe6}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content a:not(.rr-elinks a){color:#e6c77f}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content blockquote{background:rgba(255,255,255,.04)!important;color:#e2ddd2!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content blockquote *{color:inherit}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content :is(table,tbody tr,td){background:transparent!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content th{background:rgba(230,199,127,.14)!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) #reader-content tbody tr:nth-child(even){background:rgba(255,255,255,.03)!important}
:root.rr-ed.rrm-book:is([data-read="night"],:not([data-read])) .chapter-stepper a{color:#e6c77f!important;background:rgba(255,255,255,.04)!important;border-color:rgba(230,199,127,.3)!important}
:root.rr-ed.rrm-book:has(#reader-rail.rr-ed-off) #reader-nav-toggle{display:none!important}
