/* Every face belongs to the same bound pad. Use the stable viewport height so
   the edge does not move when the mobile browser's address bar retracts. */
body.notebook {
  --desk-top: 4px;
  --desk-band: 88px;
  --desk-gutter: 0px;
  --spine-height: 54px;
  --notebook-room: clamp(455px, calc(100svh - var(--desk-top) - var(--desk-band) - 44px - env(safe-area-inset-bottom,0px)), 1140px);
  --pad-width: min(1600px, calc(100% - 2 * var(--desk-gutter)));
}
html > body.notebook {
  display: flex; flex-direction: column; align-items: stretch; min-height: 100svh;
  background: url('grain.png') repeat 0 0 / 216px,
    radial-gradient(ellipse at 40% 20%,#556868,#364c4c 75%,#304342);
  background-blend-mode: multiply;
}
body.notebook main {
  box-sizing: border-box; width: var(--pad-width); max-width: none;
  margin: var(--desk-top) auto 0; height: var(--notebook-room); min-height: 0;
  flex: none; display: flex; flex-direction: column;
  border-radius: 5px 7px 6px 5px;
  box-shadow: 0 2px 0 #172d32,0 5px 9px #14222266;
}
body.notebook .episode-strip {
  flex: 0 0 var(--spine-height); height: var(--spine-height); min-height: 0;
}
.notebook .notebook-leaf { flex: 1 1 0; min-height: 0; }
.notebook-leaf > :is(.notebook-puzzle, #briefing, .quiz-page, .casebook-sheet) {
  max-height: 100%; overflow: auto; overscroll-behavior-x: contain;
}
.notebook .paper { background: transparent; box-shadow: none; }
.notebook .quiz-page { background: transparent; }
.desk-board { display: contents; }
.desk-margin { display: none; }

.reporter-desk {
  position: relative; isolation: isolate;
  width: var(--pad-width); margin-inline: auto;
  flex: 1 0 var(--desk-band); min-height: var(--desk-band);
}
.desk-dressing {
  position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);
}
.desk-dressing::before {
  content:""; position:absolute; inset:0; opacity:.54;
  background:url('tactile/desk-lint.webp') 18px 48% / clamp(185px,22vw,365px) auto repeat;
}
.desk-left, .desk-right { position:relative; min-width:0; }
.desk-right { grid-column:-2; }
.desk-dressing img {
  display:block; position:absolute; width:auto; max-width:52%; object-fit:contain;
  filter:drop-shadow(1px 3px 2px #1324239c);
}
.desk-pencils { left:30%; top:5%; height:76%; transform:rotate(-9deg); }
.desk-ashtray { left:3%; top:6%; height:105%; transform:rotate(-7deg); }
.desk-stub { right:1%; top:12%; height:91%; transform:rotate(8deg); }
.desk-vial { left:41%; top:14%; height:90%; transform:rotate(7deg); }
.desk-glass { left:2%; top:-6%; height:116%; transform:rotate(-8deg); }
.desk-coffee { right:1.5%; top:0; height:100%; transform:rotate(5deg); }
@media (min-width:740px) and (min-aspect-ratio:1/1) {
  .cipher-active:not(.briefing-open,.quiz-open,.cover-open) .desk-dressing {
    grid-template-columns:var(--machine-left,26%) var(--machine-width,34%) minmax(0,1fr);
  }
}
@media (max-width:739px), (max-aspect-ratio:1/1) {
  /* The full-width decoder keeps its own row; the desk continues below it. */
  .cipher-active:not(.briefing-open,.quiz-open,.cover-open) > .reporter-desk {
    min-height:calc(var(--desk-band) + 65px);
  }
  .cipher-active:not(.briefing-open,.quiz-open,.cover-open) > .reporter-desk .desk-dressing { top:86px; }
  .desk-dressing img { max-width:58%; }
  .desk-pencils { left:24%; top:1%; }
  .desk-stub { right:-3%; top:24%; }
  .desk-right .desk-vial { left:35%; top:22%; max-width:44%; height:76%; z-index:1; }
  .desk-right .desk-glass { left:0; top:0; max-width:50%; height:82%; }
  .desk-right .desk-coffee { right:0; top:0; max-width:34%; height:83%; z-index:2; }
}
.notebook:has(.notebook-leaf[data-turning]) > .reporter-desk #cipher-desk { visibility: hidden; }
/* The real desk remains stationary beneath the two animation sheets. */
body.notebook.turn-scene { background: transparent; min-height: 0; }
.turn-scene .desk-dressing { display:none; }

@media (min-width: 460px) {
  body.notebook {
    --desk-top: clamp(7px,1.2svh,18px);
    --desk-gutter: clamp(10px,2vw,44px);
    --desk-band: clamp(90px,12svh,145px);
    --spine-height: 54px;
  }
}
/* The cover is fastened at the same seam as each sheet inside the notebook. */
.turn-scene.cover-open { display:block; }
body.notebook.cover-open .episode-strip { display:flex; }
#opening-cover { height:100%; min-height:0; border-radius:0; overflow:auto; }
.notebook.cover-open main { background:var(--cover); }

.studio-footer {
  position:relative; z-index:21; flex:none; justify-content:center;
  margin: 0; padding:0 8px env(safe-area-inset-bottom,0px);
  background:#f4f2e9; color:#273445; box-shadow:inset 0 1px #c1c5bc;
}
.studio-footer a {
  display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:0 8px;
  color:inherit; font:13px/1.2 Arial,sans-serif; text-decoration:none;
}
.studio-footer img { display:block; width:95px; height:20px; }
.studio-footer a:hover span { text-decoration:underline; }
.studio-footer a:focus-visible { outline:2px solid var(--ink); outline-offset:-3px; border-radius:3px; }

.cover-actions:has(#cover-restart:not([hidden])) { flex-wrap: wrap; }
.cover-actions #cover-restart {
  padding: 4px; color: inherit; background: transparent; border: 0;
  text-decoration: underline; text-underline-offset: 3px; font: 13px Georgia,serif;
}
/* Unsolved proofs have no forward corner below the tray. */
body.proof-workbench:not(.cover-open,.briefing-open) .notebook-leaf { padding-bottom:8px; }

/* Briefings occupy their own full leaf. */
.notebook #briefing {
  width: min(100%,620px); margin-inline: auto;
  padding: clamp(24px,8dvh,76px) clamp(12px,4vw,42px) 46px;
}
#briefing .dispatch-card {
  padding: clamp(16px,3vw,28px); background: var(--paper);
  border-top: 3px solid var(--section); box-shadow: 0 1px 0 var(--line);
}
#brief-prev { background: transparent; color: var(--section); }

@media (min-width: 460px) {
  body.notebook main {
    --board-room: max(310px,calc(var(--notebook-room) - 244px));
    --proof-room: max(290px,calc(var(--notebook-room) - 266px));
    --proof-ratio: .714;
    padding: 4px clamp(6px,1vw,15px) 6px;
  }
  .notebook .notebook-leaf { padding-bottom: 26px; }
  .notebook .episode-strip { min-height: 46px; padding: 4px 8px 12px; }
  .notebook .edition-label select { min-height: 36px; }
  .reader-nav { padding-inline: 8px; }
  .reader-nav button { min-height: 42px; }
  .reader-nav #case-prev, .reader-nav #case-forward { min-width: 42px; }

  .notebook .paper, .notebook[data-stage="2"] .paper {
    padding: 12px clamp(12px,2.1vw,36px) 8px;
  }
  .desk-board {
    display: block; container-type: inline-size;
    width: min(100%,calc(var(--board-room)*.804)); margin-inline: auto;
  }
  .notebook #story { font-size: 5.54cqw; line-height: 1.12; }
  .notebook #story .line { height: 1.12em; line-height: 1.12; }
  .notebook[data-stage="1"] #story {
    background: repeating-linear-gradient(0deg,transparent 0 calc(1.12em - 1px),#79a2cb2b calc(1.12em - 1px) 1.12em),#f1f7fc;
  }
  .notebook #story.cut-page { font-size: calc(5.52cqw - 2.8px); }
  .notebook .shred { line-height: 1.08; }
  .proof-workbench .desk-board { width: min(100%,calc(var(--proof-room)*var(--proof-ratio))); }
  .notebook #proofs button canvas { max-height: 52px; object-fit: contain; }
  .notebook.proof-workbench .pool-rail { padding: 4px 1px; }
  .notebook #proof-footer { margin: 5px 0 0; }
  .notebook #proof-footer #read-proof { min-height: 44px; }
  #briefing { padding: 10px clamp(12px,2.1vw,36px) 0; }
  .dispatch-card { max-width: 700px; margin-inline: auto; }
  .quiz-page { max-width: 800px; margin: auto; padding: clamp(22px,4vw,50px); }
  .quiz-page h1 { font-size: clamp(34px,4vw,50px); }
  .quiz-page h2 { max-width: 38ch; font-size: 25px; }
  .reading-notes p { font-size: 19px; }
  .quiz-page button { min-height: 44px; }
}
@media (min-width:740px), (max-height:740px) {
  body.notebook main { --proof-ratio: .857; }
}

/* In a wide window the controls share the page with the board. */
@media (min-width:740px) and (min-aspect-ratio:1/1) {
  body.notebook main {
    --board-room: max(310px,calc(var(--notebook-room) - 147px));
    --proof-room: max(270px,calc(var(--notebook-room) - 143px));
    --desk-rail: clamp(190px,19vw,258px);
    --desk-gap: clamp(18px,3.5vw,58px);
    --page-pad: clamp(14px,2vw,34px);
    --board-width: calc(var(--board-room)*.804);
  }
  .notebook.proof-workbench main { --board-width: calc(var(--proof-room)*var(--proof-ratio)); }
  .notebook .notebook-leaf { padding-bottom: 8px; }
  .notebook .paper, .notebook[data-stage="2"] .paper {
    display: grid; grid-template-columns: minmax(0,var(--board-width)) var(--desk-rail);
    justify-content: center; gap: var(--desk-gap); align-items: start;
    padding: 12px var(--page-pad) 6px;
  }
  .notebook .desk-board { width: 100%; min-width: 0; margin: 0; }
  .desk-margin {
    display: block; margin-top: 2px; padding-left: clamp(14px,1.6vw,24px);
    border-left: 1px solid #c88485a0;
  }
  .desk-heading {
    display: flex; gap: 10px; align-items: center;
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--section);
  }
  #desk-art { width: clamp(36px,3.6vw,52px); height: auto; transform: rotate(-2deg); }
  #desk-issue { margin: 0 0 5px; font: 700 10px/1.4 'Courier New',monospace; color: var(--section); }
  .notebook #desk-title { margin: 0; font: 900 italic clamp(23px,2.2vw,30px)/1 'Cover Condensed',Georgia,serif; color: var(--ink); }
  .proof-workbench #desk-tools #proofs { grid-template-columns:1fr; justify-items:center; gap:6px; }
  .proof-workbench #desk-tools .pool-card { width:min(100%,calc(var(--board-width) * 8 / 30)); }
  .proof-workbench #desk-tools #proofs button canvas { max-height:none; }
  #desk-tools #proof-footer { margin-top:8px; }
  #desk-tools #sub { margin: 0 0 10px; }
  #desk-tools #sub label { width: 100%; font: 700 15px Georgia,serif; }
  #desk-tools button, #desk-tools input, .desk-margin summary { min-height: 44px; }
  #desk-notes:not(:empty) { margin-top: 14px; border-top: 1px solid var(--line); }
  #desk-notes details { border-bottom: 1px solid var(--line); }
  #desk-notes summary { cursor: pointer; padding: 11px 0; color: var(--section); font: bold 15px/1.45 Georgia,serif; }
  #desk-notes p { margin: 0 0 16px; font: 17px/1.5 Georgia,serif; white-space: pre-line; overflow-wrap: anywhere; }

  .notebook #brief-name { font-size: clamp(30px,2.7vw,40px); line-height: .98; }
  #brief-rule, #brief-note { font-size: 16px; line-height: 1.4; }
  .dispatch-actions { flex-wrap: wrap; gap: 3px 8px; }
  #brief-sound { margin-left: 0; }

  #opening-cover {
    /* Keep the faces and the lower chessboard in frame on shallow laptops. */
    --art-width: min(50%,calc((var(--notebook-room) - var(--spine-height) - 12px) * .91));
    background: repeating-linear-gradient(4deg,#93826205 0 1px,transparent 1px 4px),#eee4c9;
  }
  #opening-cover::before {
    inset: 0 auto 0 var(--art-width); width: 16px;
    background: linear-gradient(90deg,#3b352b44,transparent);
  }
  #opening-cover .cover-art { width: var(--art-width); object-fit: cover; }
  .cover-print {
    width: calc(100% - var(--art-width)); margin-left: var(--art-width);
    padding: clamp(26px,4vw,70px); color: #322f29;
  }
  .cover-mast { font-size: clamp(40px,5.4vw,96px); color: #793638; text-shadow: none; }
  #cover-title, #cover-title.long-title {
    color: #242b2b; font-size: clamp(52px,min(7.3vw,13dvh),124px); line-height: .93;
    text-shadow: 2px 2px #ddb29e; margin-bottom: 20px;
  }
  #cover-title.long-title { font-size: clamp(44px,min(6.5vw,11dvh),102px); }
  #cover-error { color: #51463b; text-shadow: none; font: 16px/1.45 Georgia,serif; }
  .cover-actions { border-color: #a7987f; }
  #cover-start { color: #fff7e4; background: #763a3b; border-color: #622e32; box-shadow: 2px 2px #bcab94; }
  #cover-sound { color: #524438; }
  #cover-issue:focus-within, .cover-actions button:focus-visible { outline-color: #763a3b; }
}

/* When width is the limit, use spare height for the lines of print. */
@media (max-width:459px) {
  .reader-nav:has(#case-notes:not([hidden])) { gap:0; }
  .reader-nav:has(#case-notes:not([hidden])) button { padding-inline:4px; }
  .reader-nav:has(#case-notes:not([hidden])) #theme-play { min-width:28px; font-size:0; }
  .reader-nav:has(#case-notes:not([hidden])) #theme-play::before { content:'♪'; font-size:17px; }
  body.notebook {
    /* A short phone may scroll the desk below the frame. Keep the last ink
       row, the three impressions and the proof button together on the paper. */
    --notebook-room: max(calc(100vw * 1.17 + 225px),calc(100svh - var(--desk-top) - var(--desk-band) - 44px - env(safe-area-inset-bottom,0px)));
  }
  .notebook .notebook-leaf { padding-bottom: 20px; }
  .notebook .paper, .notebook[data-stage="2"] .paper { padding-inline:4px; }
  .notebook.proof-workbench .paper { padding-inline:2px; }
  .notebook #play .actions { gap:4px; }
  .notebook #play .actions button { padding-inline:6px; }
  .notebook #story:not(.overprinted) {
    --row: clamp(1.18em,calc((var(--notebook-room) - 248px) / 20),1.65em);
  }
  .notebook #story .line { height: var(--row); line-height: var(--row); }
  .notebook #story.cut-page .shred {
    line-height: clamp(1.14em,calc((var(--notebook-room) - 270px) / 20),1.65em);
  }
}

/* Cast-metal body, maker's plate and a single row of working controls. */
.notebook #sub.cipher-machine {
  container-type: inline-size; box-sizing: border-box; position: relative; display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(46px,.8fr) minmax(63px,.94fr) minmax(42px,.55fr);
  align-items: center; gap: clamp(5px,1.2vw,10px);
  width: min(88%,360px); margin: 0 auto; height: 74px; padding: 7px 13px 10px;
  border: 1px solid #1e2929; border-radius: 7px 7px 5px 5px;
  background:
    repeating-linear-gradient(165deg,#d1dbca09 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#a4af9a 0,#6c7a70 3px,#4b5e56 7px,#344840 60%,#304339 calc(100% - 6px),#1c2924 calc(100% - 5px),#586658 calc(100% - 2px),#2c372f);
  box-shadow: inset 1px 0 #c1c4ad62,inset -2px 0 #18282085,0 2px 0 #29352d,0 4px 4px #29382d47;
}
.cipher-machine::before, .cipher-machine::after {
  content: ''; position: absolute; top: 5px; bottom: 7px; width: 7px; pointer-events: none;
  --head: radial-gradient(circle,#8e9284 0 1.5px,#c7c8b2 2px,#50594d 2.7px,#26342d 3.1px,transparent 3.5px);
  --slot: linear-gradient(-35deg,transparent 39%,#384137 42% 53%,#c4c6b1 56% 62%,transparent 65%);
  background: var(--slot) center 1px/5px 5px,var(--head) center top/7px 7px,
              var(--slot) center calc(100% - 1px)/5px 5px,var(--head) center bottom/7px 7px;
  background-repeat: no-repeat;
}
.cipher-machine::before { left: 3px; }
.cipher-machine::after { right: 3px; }
.maker-plate {
  position: relative; min-width: 0; justify-self: stretch; text-align: center;
  border: 1px solid #8b8b73; border-radius: 3px; padding: 4px 1px 5px;
  color: #e5d5a5; background: linear-gradient(160deg,#35403b,#212e28);
  box-shadow: 0 1px 0 #1d2c24,inset 0 0 0 2px #28352f;
}
.maker-plate b {
  display: block; white-space: nowrap; font: 900 italic clamp(14px,5.7cqw,26px)/1 Georgia,serif;
  letter-spacing: -.06em; text-shadow: 0 1px #101a15;
}
.maker-plate b span { font-size: .88em; }
.maker-plate small {
  display: block; margin-top: 3px; font: 700 clamp(6px,2.2cqw,9px)/1.1 'Courier New',monospace;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.wheel-socket {
  position: relative; padding: 3px; border: 1px solid #242a25; background: #242823;
  border-radius: 4px; box-shadow: inset 0 2px 4px #0e160f,0 1px #a4a68e;
}
.wheel-socket::before, .wheel-socket::after {
  content: ''; position: absolute; top: 50%; z-index: 1; width: 9px; height: 6px;
  transform: translateY(-50%); background: #b84c30; pointer-events: none;
}
.wheel-socket::before { left: -1px; clip-path: polygon(0 0,100% 50%,0 100%); }
.wheel-socket::after { right: -1px; clip-path: polygon(100% 0,0 50%,100% 100%); }
.alphabet-wheel {
  position: relative; height: 46px; overflow: hidden;
  border-radius: 4px; touch-action: none; user-select: none; cursor: ns-resize;
  background: url('tactile/cipher-wheel.webp') center / 100% 100% no-repeat,
    linear-gradient(#2c302b,#d8d8c4 46%,#adb0a3 65%,#30372f);
}
.alphabet-wheel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg,#edf0e82b 0 1px,transparent 1px 3px,#10181055 3px 4px);
  background-position: 0 var(--grip-offset,0px); mask-image: linear-gradient(90deg,#000,transparent 17%,transparent 83%,#000);
}
.alphabet-wheel:focus-visible { outline: 2px solid #f1c276; outline-offset: 3px; }
.wheel-band { position: absolute; inset: 0 17%; overflow: hidden; }
.wheel-band span {
  position: absolute; left: 50%; width: 100%; text-align: center; color: #19241f;
  font: bold 15px/1 'Courier New',monospace; text-shadow: 0 .7px #f2efda;
}
.cipher-register {
  cursor: text; display: grid; grid-template-columns: minmax(0,1fr) 8px minmax(0,1.2fr);
  align-items: center; min-width: 0; height: 44px; padding: 0 3px;
  border: 2px solid #25312a; border-radius: 3px; color: #e6dcb5;
  background: linear-gradient(165deg,#303b32,#232d26 53%,#384034);
  box-shadow: inset 0 2px 4px #141e16,0 1px #95a18d;
  font: bold clamp(16px,5.7cqw,23px)/1 'Courier New',monospace; text-align: center;
}
.register-arrow { color: #b2ac90; font-size: 13px; }
.notebook #sub.cipher-machine input {
  width: 100%; min-width: 0; height: 44px; margin: -2px 0; padding: 0;
  font: inherit; font-size: clamp(18px,6.3cqw,25px); text-align: center; color: #ffe7a5;
  background: transparent; border: 0; border-radius: 1px; caret-color: #ffc274;
}
.notebook #sub.cipher-machine input:disabled { opacity: .62; -webkit-text-fill-color: #d9d0ae; }
.notebook #cipher-desk input:focus-visible { outline: 1px solid #d7b176; outline-offset: -4px; }
.notebook #sub.cipher-machine button {
  position: relative; align-self: center; width: 100%; height: 44px; min-height: 44px;
  border: 2px solid #242e29; border-radius: 5px; padding: 2px 0 4px;
  color: #312d24; background: linear-gradient(#efe5c8,#d8caab 55%,#c9b99a 87%,#9b8d75 90%);
  box-shadow: inset 1px 1px #fff2d8,inset -1px -2px #8f826d,0 2px #1f2b23;
  font: 800 12px/1 'Courier New',monospace; letter-spacing: .085em; text-transform: uppercase;
}
.notebook #sub.cipher-machine button:active:not(:disabled) {
  transform: translateY(1px); box-shadow: inset 0 1px 2px #786c56,0 1px #1f2b23;
}
.notebook #sub.cipher-machine button:disabled { color: #6a6250; opacity: 1; }

@container (min-width: 440px) {
  .maker-plate { width: min(100%,170px); justify-self: center; }
  .wheel-socket { width: min(100%,92px); justify-self: center; }
  .cipher-register { width: min(100%,120px); justify-self: center; }
  .notebook #sub.cipher-machine button { max-width: 78px; justify-self: center; }
}
/* Both ends of the casting line up with the printed telegram at every window size. */
#cipher-desk {
  position: relative; z-index: 1; pointer-events: none;
  padding: 8px 0 max(6px,env(safe-area-inset-bottom));
}
#cipher-desk form { pointer-events: auto; }
#cipher-desk[hidden], .cover-open #cipher-desk,
.briefing-open #cipher-desk, .quiz-open #cipher-desk { display: none; }
@media (max-width:459px) {
  .cipher-active #story:not(.overprinted) {
    --row: clamp(1.18em,calc((var(--notebook-room) - 185px) / 20),1.65em);
  }
  .cipher-active #play { min-height: 20px; }
  .cipher-active #play #message { margin: 0; padding: 1px; font: 14px/18px Georgia,serif; }
}
.casebook-sheet {
  width: min(100%,760px); margin-inline: auto; padding: clamp(16px,4.5vw,48px);
  color: var(--ink); touch-action: pan-y;
}
.casebook-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 5px; padding-block: 5px; border-bottom: 1px solid var(--line);
  font: bold 12px/1.4 'Courier New',monospace; color: var(--section);
}
.casebook-nav button, .casebook-sheet>button {
  min-height: 44px; padding: 4px 8px; font: bold 15px Georgia,serif;
}
.casebook-nav button { justify-self: start; background: transparent; border: 0; color: var(--section); }
.casebook-nav button:last-child { justify-self: end; }
.casebook-sheet h2 { margin: 23px 0 14px; color: var(--ink); font: bold italic clamp(25px,3.5vw,37px)/1.08 Georgia,serif; }
.casebook-text { font: clamp(17px,2.25vw,20px)/1.5 Georgia,serif; }
.casebook-text .operator-note { font-style: italic; }
.casebook-sheet>button { margin-block: 10px; background: var(--section); color: var(--paper); border: 0; border-radius: 2px; }

@media (max-width:355px) {
  body.notebook { --spine-height:48px; }
  .notebook .reader-nav { padding-right:40px; }
  .reader-nav #case-position { white-space:nowrap; padding-inline:2px; font-size:10px; }
  .reader-nav:has(#case-notes:not([hidden])) #case-prev,
  .reader-nav:has(#case-notes:not([hidden])) #case-forward { min-width:28px; }
  .reader-nav:has(#case-notes:not([hidden])) #case-sound { white-space:nowrap; font-size:12px; }
}

.episode-strip .edition-label { max-width:calc(100% - 110px); }
.episode-strip .edition-label[hidden] { display:none; }
.chapter-caption { padding-left:7px; font:700 10px/1.2 'Courier New',monospace; text-transform:uppercase; }
.episode-strip .edition-label select { flex:1; min-width:0; }
@media (max-width:459px) {
  .episode-strip .chapter-caption { display:none; }
  .episode-strip .edition-label select { text-overflow:ellipsis; }
}
.archive-link { margin-left:12px; }
body:not(.cover-open) .archive-link, .archive-open .page-corner { display:none; }
#story-archive { max-width:650px; height:100%; overflow:auto; padding:20px; margin:auto; }
#story-archive h1 { color:var(--section); font:bold italic 32px/1 Georgia,serif; }
#story-archive ol { columns:2 200px; padding-left:2em; }
#story-archive li { break-inside:avoid; color:var(--muted); }
#story-archive a { display:inline-block; padding:9px 3px; color:var(--section); font:16px/1.3 Georgia,serif; }
