/* wbg-20261014 — Read as book (wb2_book) · wbbook1-20261015 modes + Export PDF */
body.bk-open{overflow:hidden}
.bk-root{position:fixed;inset:0;z-index:2000;background:radial-gradient(ellipse at 50% 0%,#0b2433 0%,#000F17 70%);color:#EDE3CF;font-family:"Source Sans 3","Source Sans Pro",system-ui,sans-serif;display:flex;padding:16px;box-sizing:border-box}
.bk-frame{flex:1;display:flex;flex-direction:column;min-width:0;border:1px solid rgba(201,162,90,.45);border-radius:8px;padding:12px 16px;gap:12px;background:rgba(0,15,23,.6)}
.bk-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.bk-title{margin:0;font-family:Cinzel,"Palatino Linotype",serif;font-size:18px;font-weight:600;letter-spacing:.06em;color:#F2D7AC}
.bk-sub{font-size:13px;color:#A99C86}
.bk-acts{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.bk-root button.bk-btn{all:unset;box-sizing:border-box;cursor:pointer;min-height:32px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid rgba(201,162,90,.45);border-radius:6px;font-size:13px;color:#F2D7AC;background:rgba(0,15,23,.6)}
.bk-root button.bk-btn:hover,.bk-root button.bk-btn:focus-visible{border-color:#E0B25E;outline:none}
.bk-root button.bk-btn.is-on,.bk-root button.bk-btn[aria-pressed=true]{background:rgba(201,162,90,.2)}
.bk-banner{margin:0;padding:8px 16px;border:1px solid rgba(180,138,214,.5);border-radius:6px;background:rgba(180,138,214,.12);color:#E4D6F2;font-size:13px}
.bk-body-wrap{flex:1;min-height:0;display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px}
.bk-body-wrap.no-toc{grid-template-columns:minmax(0,1fr)}
.bk-body-wrap.no-toc .bk-toc{display:none}
.bk-toc{overflow:auto;border:1px solid rgba(201,162,90,.35);border-radius:6px;padding:12px 8px}
.bk-tock{margin:0 8px 8px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#A99C86}
.bk-toc ol{list-style:none;margin:0;padding:0}
.bk-toc button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;gap:8px;width:100%;min-height:28px;padding:4px 8px;font-size:13px;color:#EDE3CF;border-left:2px solid transparent}
.bk-toc .lv1 button{padding-left:20px;color:#CFC3AE}
.bk-toc .lv0 button{font-weight:600;color:#F2D7AC}
.bk-toc button i{font-style:normal;color:#A99C86}
.bk-toc button:hover,.bk-toc button:focus-visible{background:rgba(201,162,90,.12);outline:none}
.bk-toc li.is-cur>button{border-left-color:#C9773B;background:rgba(201,162,90,.1)}
.bk-stage{display:flex;align-items:center;gap:12px;min-width:0;min-height:0}
.bk-root button.bk-nav{all:unset;box-sizing:border-box;cursor:pointer;flex:0 0 32px;height:44px;border:1px solid rgba(201,162,90,.45);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#F2D7AC}
.bk-root button.bk-nav:disabled{opacity:.3;cursor:default}
.bk-book{flex:1;align-self:stretch;min-width:0;position:relative;border-radius:4px;padding:40px 24px 40px;box-sizing:border-box;background:linear-gradient(90deg,#d9c39b 0%,#ead8b4 6%,#ead8b4 44%,#c9b088 49.6%,#9c8460 50%,#c9b088 50.4%,#ead8b4 56%,#ead8b4 94%,#d9c39b 100%);box-shadow:0 12px 40px rgba(0,0,0,.6);color:#2b2118;overflow:hidden;display:flex;flex-direction:column}
.bk-book.is-single{background:linear-gradient(90deg,#d9c39b 0%,#ead8b4 8%,#ead8b4 92%,#d9c39b 100%)}
.bk-flow{flex:1;min-height:0;overflow:hidden;column-fill:auto;font-family:Georgia,"Source Serif 4","Times New Roman",serif;font-size:15px;line-height:1.6}
.bk-flow p{margin:0 0 8px}
.bk-ch{break-before:column}
.bk-ch:first-child{break-before:auto}
.bk-kick{text-align:center;font-family:Cinzel,serif;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:#8A683C;margin:0 0 4px!important}
.bk-cht{text-align:center;font-family:Cinzel,serif;font-size:28px;font-weight:500;color:#3a2a1a;margin:0 0 4px;line-height:1.2}
.bk-orn{text-align:center;color:#8A683C;margin:0 0 16px!important}
.bk-et{font-family:Cinzel,serif;font-size:18px;font-weight:500;color:#5a3a1e;margin:16px 0 4px;break-after:avoid}
.bk-e.is-first .bk-et{margin-top:0}
.bk-meta{font-size:13px;font-style:italic;color:#7a6345;margin:0 0 8px!important}
.bk-e.is-secret .bk-et::after{content:" ◐";color:#7a4f9a}
.bk-e.is-first .bk-body>p:first-child::first-letter{float:left;font-family:Cinzel,serif;font-size:46px;line-height:.9;padding:4px 8px 0 0;color:#9c4a1c}
.bk-fig{margin:0 0 12px;break-inside:avoid}
.bk-fig img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:2px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.bk-fig figcaption{text-align:center;font-size:13px;font-style:italic;color:#7a6345;margin-top:4px}
.bk-body img{max-width:100%;max-height:300px}
.bk-body h1,.bk-body h2,.bk-body h3,.bk-body h4{font-family:Cinzel,serif;font-weight:500;color:#5a3a1e;font-size:17px;margin:12px 0 4px}
.bk-body blockquote{margin:8px 16px;font-style:italic;color:#4a3a28}
.bk-body aside{margin:8px 0;padding:8px 12px;border-left:3px solid #7a4f9a;background:rgba(122,79,154,.1);break-inside:avoid}
.bk-body aside::before{content:"◐ DM secret";display:block;font-family:"Source Sans 3",sans-serif;font-size:13px;color:#7a4f9a}
.bk-body a{color:#7a3a10}
.bk-empty{color:#7a6345;font-style:italic}
.bk-tl{margin:0;padding-left:20px}
.bk-tl li{margin:0 0 4px}
.bk-tl em{color:#7a6345}
.bk-folios{display:flex;justify-content:space-around;font-size:13px;color:#7a6345;padding-top:8px}
.bk-foot{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#A99C86;flex-wrap:wrap}
@media (max-width:820px){
  .bk-root{padding:0}
  .bk-frame{border-radius:0;padding:8px}
  .bk-body-wrap{grid-template-columns:minmax(0,1fr)}
  .bk-body-wrap:not(.no-toc) .bk-stage{display:none}
  .bk-root button.bk-btn,.bk-toc button{min-height:44px}
  .bk-root button.bk-nav{flex-basis:44px}
  .bk-stage{gap:4px}
  .bk-book{padding:24px 16px}
  .bk-acts{margin-left:0}
}
@media print{
  /* wbbook1: only the print copy (#bk-printcopy) prints; the on-screen reader and the site stay off the paper */
  body.bk-printing>*:not(#bk-printcopy){display:none!important}
  body.bk-open:not(.bk-printing)>*:not(.bk-root){display:none!important}
}

html body .bk-root .bk-body aside,html body .bk-root .bk-body aside[data-dm]{color:#3a2a4a!important;background:rgba(122,79,154,.1)!important;border-left:3px solid #7a4f9a!important}
.bk-et,.bk-body h1,.bk-body h2,.bk-body h3,.bk-body h4,.bk-body aside,.bk-fig{clear:both}
.bk-body::after{content:"";display:block;clear:both}

/* wbbook1: modes */
.bk-seg{display:inline-flex;gap:0}
.bk-seg .bk-btn{border-radius:0!important;margin-left:-1px}
.bk-seg .bk-btn:first-child{border-radius:6px 0 0 6px!important;margin-left:0}
.bk-seg .bk-btn:last-child{border-radius:0 6px 6px 0!important}
.bk-modenote{margin:0;padding:8px 16px;border:1px solid rgba(201,162,90,.4);border-radius:6px;background:rgba(201,162,90,.08);color:#EDE3CF;font-size:13px}
.bk-body .bk-rev{margin:8px 0;padding:8px 12px;border-left:3px solid #9c6a1c;background:rgba(156,106,28,.1);break-inside:avoid}
.bk-body .bk-rev::before{content:"Revealed";display:block;font-family:"Source Sans 3",sans-serif;font-size:13px;letter-spacing:.08em;color:#8A5a1c}
/* export dialog */
.bk-exp{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:rgba(0,8,12,.7);padding:16px}
.bk-exp-card{width:min(460px,100%);max-height:100%;overflow:auto;box-sizing:border-box;border:1px solid rgba(201,162,90,.55);border-radius:8px;background:#071a25;padding:16px 18px;color:#EDE3CF}
.bk-exp-card h2{margin:0 0 6px;font-family:Cinzel,serif;font-size:18px;font-weight:600;color:#F2D7AC;letter-spacing:.05em}
.bk-exp-sub{margin:0 0 12px;font-size:14px;color:#CFC3AE;line-height:1.45}
.bk-exp fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.bk-exp legend{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#A99C86;margin-bottom:6px}
.bk-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid rgba(201,162,90,.3);border-radius:6px;cursor:pointer;min-height:44px;box-sizing:border-box}
.bk-opt:has(input:checked){border-color:#E0B25E;background:rgba(201,162,90,.12)}
.bk-opt input{margin-top:3px;accent-color:#C9773B}
.bk-opt span{display:flex;flex-direction:column;gap:2px;font-size:14px}
.bk-opt small{font-size:13px;color:#A99C86;line-height:1.4}
.bk-exp .bk-opt,.bk-exp .bk-opt span,.bk-exp .bk-opt b,.bk-exp .bk-opt small{text-transform:none!important;letter-spacing:normal!important;font-family:"Source Sans 3","Source Sans Pro",system-ui,sans-serif!important}
.bk-exp .bk-opt b{font-weight:600;color:#F2D7AC;font-size:14px}
.bk-exp .bk-opt input[type=radio]{all:revert;flex:none;width:16px;height:16px;margin:3px 0 0;accent-color:#C9773B}
.bk-exp .bk-opt span{flex:1;min-width:0;text-align:left}
.bk-exp-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.bk-root button.bk-btn.is-primary{background:#C9773B;border-color:#C9773B;color:#170c04;font-weight:600}
@media (max-width:820px){.bk-seg .bk-btn{padding:0 10px}.bk-exp-acts .bk-btn{min-height:44px}}
/* the print copy: hidden on screen, the only thing on paper */
#bk-printcopy{display:none}
@media print{
  @page{size:A4;margin:18mm 16mm 20mm}
  @page{@bottom-center{content:counter(page);font-family:Georgia,serif;font-size:10pt;color:#7a6345}}
  html,body.bk-printing{background:#fff!important;overflow:visible!important;height:auto!important}
  body.bk-printing #bk-printcopy{display:block;color:#2a1e12;font-family:Georgia,"Source Serif 4","Times New Roman",serif;font-size:11pt;line-height:1.55}
  #bk-printcopy .bk-pflow{overflow:visible;columns:auto;width:auto;height:auto;font-size:11pt}
  #bk-printcopy .bk-pcover{text-align:center;padding-top:70mm;break-after:page}
  #bk-printcopy .bk-pcover h1{font-family:Cinzel,"Palatino Linotype",serif;font-size:30pt;font-weight:500;color:#3a2a1a;margin:6pt 0}
  #bk-printcopy .bk-pby,#bk-printcopy .bk-pmeta{color:#7a6345;font-style:italic;margin:4pt 0}
  #bk-printcopy .bk-pwarn{margin:18pt auto 0;max-width:110mm;padding:6pt 10pt;border:1pt solid #7a4f9a;color:#4a2f6a;font-family:"Source Sans 3",sans-serif;font-size:10pt}
  #bk-printcopy .bk-ptoc{break-after:page}
  #bk-printcopy .bk-ptoc ol{list-style:none;margin:12pt 0 0;padding:0}
  #bk-printcopy .bk-ptoc li{margin:0 0 3pt}
  #bk-printcopy .bk-ptoc li.lv0{font-weight:600;margin-top:8pt}
  #bk-printcopy .bk-ptoc li.lv1{padding-left:14pt}
  #bk-printcopy .bk-ptoc a{color:#3a2a1a;text-decoration:none}
  #bk-printcopy .bk-ch{break-before:page}
  #bk-printcopy .bk-cht{text-align:center;font-family:Cinzel,serif;font-size:22pt;font-weight:500;color:#3a2a1a;margin:0 0 4pt}
  #bk-printcopy .bk-kick{text-align:center;font-family:Cinzel,serif;font-size:9pt;letter-spacing:.2em;text-transform:uppercase;color:#8A683C;margin:0 0 4pt}
  #bk-printcopy .bk-orn{text-align:center;color:#8A683C;margin:0 0 12pt}
  #bk-printcopy .bk-et{font-family:Cinzel,serif;font-size:14pt;font-weight:500;color:#5a3a1e;margin:14pt 0 3pt;break-after:avoid}
  #bk-printcopy .bk-meta{font-size:9.5pt;font-style:italic;color:#7a6345;margin:0 0 6pt}
  #bk-printcopy .bk-e{break-inside:auto}
  #bk-printcopy .bk-fig{margin:0 0 10pt;break-inside:avoid}
  #bk-printcopy .bk-fig img{display:block;width:100%;max-height:65mm;object-fit:cover}
  #bk-printcopy .bk-fig figcaption{text-align:center;font-size:9pt;font-style:italic;color:#7a6345}
  #bk-printcopy .bk-body p{margin:0 0 6pt}
  #bk-printcopy .bk-body img{max-width:100%;max-height:90mm}
  #bk-printcopy .bk-body aside{margin:6pt 0;padding:6pt 10pt;border-left:2pt solid #7a4f9a;background:#f1ebf6;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #bk-printcopy .bk-body aside::before{content:"◐ DM secret";display:block;font-family:"Source Sans 3",sans-serif;font-size:9pt;color:#7a4f9a}
  #bk-printcopy .bk-body .bk-rev{margin:6pt 0;padding:6pt 10pt;border-left:2pt solid #9c6a1c;background:#f6eedd;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #bk-printcopy .bk-body .bk-rev::before{content:"Revealed";display:block;font-family:"Source Sans 3",sans-serif;font-size:9pt;color:#8A5a1c}
  #bk-printcopy .bk-e.is-secret .bk-et::after{content:" ◐";color:#7a4f9a}
  #bk-printcopy .bk-tl{padding-left:16pt}
  #bk-printcopy a{color:#5a2a0a}
}
