/* editions.css - the premium editions: the reader's chrome (progress, drawer, prev/next), the one long page, the front door
   and the PDF's cover, contents and running heads. Same rule as book.css: every colour is one of the game's 32, by its key. */

/* ---- the reader's chrome (the paginated book and the long page) -------------------------------------------------- */
.rd-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 40; background: var(--r1); pointer-events: none; }
.rd-progress i { display: block; height: 100%; width: 0; background: var(--gd); box-shadow: 0 -1px 0 var(--y) inset; }
.rd-count { font-family: var(--pix); font-size: .62rem; letter-spacing: .1em; color: var(--gr3); white-space: nowrap; }
.bar .rd-open { display: inline-block; }
.bar-preview { font-family: var(--pix); font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: var(--w); background: var(--r2); border: 1px solid var(--r4); padding: .1rem .4rem; transform: rotate(-3deg); }
body:not(.mode-print) { padding-bottom: 3.1rem; }
.rd-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: stretch; background: var(--k); border-top: 2px solid var(--r1); font-family: var(--pix); font-size: .62rem; }
.rd-nav a, .rd-nav span.rd-nav-gap { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: .3rem .8rem; color: var(--bn1); text-decoration: none; line-height: 1.25; }
.rd-nav a:hover { color: var(--y); background: var(--d1); }
.rd-nav small { font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gr2); }
.rd-nav b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-nav .rd-next { text-align: right; }
.rd-nav .rd-mid { flex: 0 0 auto; padding: .3rem .9rem; color: var(--gd); border-left: 1px solid var(--gr0); border-right: 1px solid var(--gr0); align-items: center; }
@media (max-width: 520px) { .rd-nav a { padding: .3rem .55rem; } .rd-nav .rd-mid { padding: .3rem .5rem; } .bar-preview { display: none; } }
@media (min-width: 1240px) { .rd-nav { padding-left: 0; } }

/* the contents drawer: every chapter, by book */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-back { position: absolute; inset: 0; background: var(--k); opacity: .72; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(24rem, 92vw); overflow: auto; background: var(--k); color: var(--bn1); border-right: 3px solid var(--r1); box-shadow: 8px 0 0 var(--r0); padding: 1rem 1.1rem 3rem; font-family: var(--pix); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.drawer-top h2 { font-family: var(--goth); font-weight: 400; font-size: 1.5rem; color: var(--w); margin: 0; }
.drawer-x { font: inherit; font-size: .7rem; color: var(--bn1); background: var(--d1); border: 1px solid var(--gr1); padding: .3rem .7rem; cursor: pointer; }
.drawer-x:hover { color: var(--y); border-color: var(--gd); }
.drawer h3 { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gd); margin: 1.2rem 0 .3rem; font-weight: 400; border-bottom: 1px solid var(--gr0); padding-bottom: .25rem; }
.drawer ol { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: flex; gap: .6rem; align-items: baseline; padding: .32rem .4rem; color: var(--bn1); text-decoration: none; font-size: .68rem; line-height: 1.3; border-left: 3px solid transparent; }
.drawer li a:hover { background: var(--d1); color: var(--y); }
.drawer li a b { flex: 0 0 1.6rem; font-weight: 400; color: var(--gr2); text-align: right; }
.drawer li a[aria-current] { border-left-color: var(--r3); color: var(--w); background: var(--r0); }
.drawer li a.read::after { content: "\25C6"; margin-left: auto; color: var(--gd); font-size: .5rem; }
.drawer-links { margin-top: 1.4rem; font-size: .62rem; display: grid; gap: .3rem; }
.drawer-links a { color: var(--bn1); }

/* ---- the one long page ------------------------------------------------------------------------------------------- */
.mode-all { background: var(--w) var(--dith-vellum); }
.all-page { max-width: none; padding: 0 0 2rem; }
.mode-all .title-page { padding-top: 4rem; padding-bottom: 3rem; }
.all-preview { display: inline-block; margin: 1.2rem 0 0; font-family: var(--pix); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--w); background: var(--r2); border: 2px solid var(--r4); padding: .2rem .7rem; transform: rotate(-3deg); }
.mode-all .print-ch { margin: 0; padding: 3.5rem 1rem; border-top: 3px double var(--br1); }
.mode-all .print-ch.mode-guide { margin: 0; border-top: 3px solid var(--r1); }
.mode-all .ch-in { max-width: calc(var(--measure) + var(--margin-col) + var(--gap)); margin: 0 auto; }
.mode-all .rail { top: 2.6rem; bottom: 3.1rem; }
.rail-part { font-family: var(--pix); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gd); margin: 1rem 0 .2rem; }
.rail li a { display: block; padding: .15rem .35rem .15rem .5rem; border-left: 2px solid transparent; }
.rail li a b { font-weight: 400; color: var(--gr2); margin-right: .25rem; }
.rail li a.on { border-left-color: var(--r3); color: var(--y); }
.mode-all .rail li a { color: var(--bn1); }
@media (min-width: 1240px) {
  .mode-all .rail { background: var(--k); color: var(--bn1); border-right: 2px solid var(--r1); }
  .mode-all .all-page { padding-left: 14.5rem; }
  .mode-all .foot { padding-left: 15.5rem; }
}
@media (max-width: 1239px) { .mode-all .rail { top: 2.6rem; } }
.mode-all .rd-nav { display: none; }
body.mode-all { padding-bottom: 0; }

/* ---- the front door ---------------------------------------------------------------------------------------------- */
body.mode-door { background: var(--n0) var(--dith-iron); color: var(--w); min-height: 100vh; padding-bottom: 0; }
.door { max-width: 56rem; margin: 0 auto; padding: 3.5rem 1.2rem 4rem; position: relative; text-align: center; }
.door-head { padding: 1rem 0 1.6rem; }
.door-ring { display: block; width: 92px; height: 92px; margin: 0 auto 1.2rem; background: var(--ring) center/contain no-repeat; }
.door .tp-game { color: var(--w); font-size: var(--s4); }
.door .tp-sub { color: var(--gd); }
.door-title { font-family: var(--goth); font-weight: 400; font-size: clamp(2.4rem, 9vw, 4.8rem); line-height: .95; margin: 0; color: var(--y); text-shadow: 3px 3px 0 var(--r2); overflow-wrap: anywhere; }
.door-kicker { font-style: italic; font-size: var(--s1); color: var(--bn1); margin: 1rem auto .4rem; max-width: 34rem; }
.door-rubric { color: var(--r4); font-style: italic; margin: .2rem 0 0; }
.door-seal { position: absolute; right: .8rem; top: 1rem; margin: 0; width: 5.2rem; height: 5.2rem; transform: rotate(9deg); }
.door-seal span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--r2); color: var(--w); border: 3px solid var(--r1); box-shadow: 0 0 0 3px var(--r3) inset, 3px 3px 0 var(--k); font-family: var(--pix); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 520px) { .door-seal { position: static; margin: 0 auto 1rem; width: 4.2rem; height: 4.2rem; transform: rotate(-6deg); } .door { padding-top: 1.6rem; } }
.door-resume { margin: 0 0 1rem; font-family: var(--pix); font-size: .78rem; }
.door-resume a { color: var(--k); background: var(--y); padding: .5rem 1rem; text-decoration: none; border: 3px solid var(--k); box-shadow: 4px 4px 0 var(--r2); display: inline-block; }
.door-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; text-align: left; margin: 1.4rem 0 2rem; }
@media (max-width: 640px) { .door-ways { grid-template-columns: 1fr; } }
.way { display: block; padding: 1.1rem 1.2rem 1.2rem; background: var(--k); border: 3px solid var(--gr1); box-shadow: 6px 6px 0 var(--r1); color: var(--bn1); text-decoration: none; position: relative; transition: transform .12s, box-shadow .12s; }
.way::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--gd); pointer-events: none; opacity: .6; }
.way:hover, .way:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--r2); border-color: var(--gd); color: var(--w); outline: none; }
.way-k { display: block; font-family: var(--pix); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--r4); }
.way-t { display: block; font-family: var(--goth); font-size: 1.75rem; line-height: 1.05; color: var(--y); margin: .3rem 0 .4rem; }
.way-d { display: block; font-size: .95rem; line-height: 1.4; font-style: italic; }
.door-note { font-style: italic; color: var(--gr3); max-width: 34rem; margin: 0 auto 1rem; }
.door-map { font-family: var(--pix); font-size: .7rem; }
.door-map a { color: var(--bn1); }
.door-map a:hover { color: var(--y); }

/* ---- the PDF: cover, contents, running heads and folios ----------------------------------------------------------- */
@page { @bottom-center { content: counter(page); font: 8pt "Pixelify Sans", monospace; color: #553221; } }
@page cover { margin: 0; @bottom-center { content: none; } }
@page toc { @top-left { content: none; } }
.pdf { counter-reset: none; }
.pdf-cover { page: cover; position: relative; width: 7.5in; height: 10in; margin: 0; break-after: page; overflow: hidden; color: var(--w); background: var(--n0) var(--dith-iron); display: flex; align-items: center; justify-content: center; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cv-frame { width: calc(100% - .9in); height: calc(100% - .9in); border: 3px double var(--gd); outline: 1px solid var(--r2); outline-offset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .6in; }
.cv-ring { width: 1.3in; height: 1.3in; background: var(--ring) center/contain no-repeat; margin-bottom: .5in; }
.cv-game { font-family: var(--goth); font-size: 38pt; margin: 0; line-height: 1; letter-spacing: .05em; color: var(--w); }
.cv-sub { font-family: var(--pix); font-size: 9pt; letter-spacing: .34em; text-transform: uppercase; color: var(--gd); margin: .12in 0 .4in; }
.cv-rule { display: block; width: 2.4in; height: 12px; background: var(--fleuron) center/contain no-repeat; margin: 0 0 .4in; }
.cv-title { font-family: var(--goth); font-weight: 400; font-size: 54pt; line-height: .96; margin: 0; color: var(--y); text-shadow: 3px 3px 0 var(--r2); }
.cv-kicker { font-style: italic; font-size: 13pt; max-width: 4.6in; margin: .35in 0 .15in; color: var(--bn1); }
.cv-rubric { color: var(--r4); font-style: italic; margin: 0 0 .5in; font-size: 11pt; }
.cv-preview { font-family: var(--pix); font-size: 8pt; letter-spacing: .3em; text-transform: uppercase; color: var(--w); background: var(--r2); border: 2px solid var(--r4); padding: .05in .2in; margin: 0; }
.pdf-toc { page: toc; break-after: page; padding-top: .2in; }
.pdf-toc h2 { font-family: var(--goth); font-weight: 400; font-size: 30pt; color: var(--r2); text-shadow: 2px 2px 0 var(--gd); margin: 0 0 .15in; }
.pdf-toc h3 { font-family: var(--pix); font-weight: 400; font-size: 7.5pt; letter-spacing: .2em; text-transform: uppercase; color: var(--br1); margin: .22in 0 .06in; border-bottom: 1px solid var(--bn0); padding-bottom: 2pt; }
.pdf-toc ol { list-style: none; margin: 0; padding: 0; columns: 1; font-size: 10.5pt; }
.pdf-toc li { margin: 0; }
.pdf-toc a { display: flex; align-items: baseline; gap: .08in; color: var(--n0); text-decoration: none; padding: 1.6pt 0; }
.pdf-toc a b { flex: 0 0 .32in; font-family: var(--pix); font-weight: 400; font-size: 8pt; color: var(--r2); text-align: right; }
.pdf-toc .dots { flex: 1 1 auto; border-bottom: 1.5px dotted var(--bn0); transform: translateY(-2pt); min-width: .2in; }
.pdf-toc .pg { font-family: var(--pix); font-size: 8.5pt; color: var(--br1); min-width: .3in; text-align: right; }
.pdf .print-ch .opener-plate { break-inside: avoid; }
@media print {
  .rd-progress, .rd-nav, .drawer { display: none !important; }
  body { padding-bottom: 0 !important; }
}
@media screen { .pdf-cover { margin: 1rem auto; } .pdf-toc { max-width: 38rem; margin: 0 auto; } }
html { scroll-padding-top: 3.4rem; }
.way-soon { opacity: .7; box-shadow: 6px 6px 0 var(--r0); cursor: default; }
.way-soon-tag { position: absolute; right: .8rem; top: .8rem; font-family: var(--pix); font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gd); border: 1px solid var(--gd); padding: .1rem .4rem; }

/* the margin column needs the text (38rem) plus 15rem and a gap beside it: about 1100px without the left rail, 1400px with it. Between those the notes
   sit in the text as on a phone, instead of hanging off the right edge and making the page scroll sideways (found staging /guide/, 2026-10-07) */
@media (min-width: 900px) and (max-width: 1099px), (min-width: 1240px) and (max-width: 1399px) {
  .margin, .ledger { float: none; clear: none; width: auto; margin: 1rem 0 1rem 1.2rem; }
  .plate.wide { margin-right: 0; }
}
