/* Crack the Case Files: the case player and the printed-case page. v3 (2026-11-13), look C:
   "the deco poster with the red pencil". Flat blocks of navy, cream and one tier color; square corners;
   no gradients, shadows or tilted panels. Josefin Sans labels, Literata for reading. Whatever the READER
   marks or writes is the red pencil (--pencil), and nothing else is red. Builds on base.css v3 tokens and
   does not redefine them. Spec: DESIGN-C.md. */

.cp { display: block; margin: 0; padding: 0; }
.cp [hidden] { display: none !important; }
.cp-body .site-foot { margin-top: 2.5rem; }

/* visually hidden text for screen readers */
.cp-vh, .cp-live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- the tier block */
.cp-head { background: var(--tier-bg, var(--navy)); color: var(--tier-fg, var(--on-navy)); padding: 1.05rem var(--pad) 1.25rem; }
.cp-head-in { max-width: var(--wide); margin: 0 auto; }
.cp-num {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab tag" "num num";
  align-items: start; gap: 0.15rem 1rem; margin: 0 0 1rem; max-width: none;
}
.cp-no { display: contents; }
.cp-meta { grid-area: tag; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: right; }
.cp-no-lab, .cp-file, .cp-meta-line {
  font-family: var(--font-show); font-weight: 700; font-size: 0.72rem; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase;
}
.cp-no-lab { grid-area: lab; align-self: start; padding-top: 0.1em; }
.cp-meta-line { font-weight: 600; letter-spacing: 0.12em; }
.cp-no-row { grid-area: num; display: flex; align-items: flex-end; gap: 0.85rem; margin-top: 0.55rem; }
.cp-no-n { font-family: var(--font-show); font-weight: 700; font-size: clamp(4.2rem, 22vw, 6.5rem); line-height: 0.8; letter-spacing: 0.01em; padding-top: 0.08em; }
.cp-bars { padding-bottom: 0.3rem; }
.cp-bars::before { width: 4.25rem; }
.cp-bars > span { width: 2.95rem; }
.cp-bars::after { width: 1.65rem; }
.cp-title { margin: 0 0 0.4rem; font-size: 1.6rem; line-height: 1.06; letter-spacing: 0.02em; text-wrap: balance; max-width: 24ch; }
@media (min-width: 600px) { .cp-title { font-size: 2.1rem; } }
@media (min-width: 1000px) { .cp-title { font-size: 2.5rem; } }
.cp-setting { margin: 0; font-family: var(--font-read); font-style: italic; font-size: 0.92rem; line-height: 1.45; max-width: 60ch; }
.cp-loading { font-family: var(--font-read); padding: 1.25rem var(--pad); max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; }
.cp-msg { padding: 1.25rem var(--pad); max-width: var(--wide); margin: 0 auto; }

/* ---------------------------------------------------------------- the step rail */
.cp-rail { position: relative; z-index: 20; background: var(--navy); padding: 0.6rem var(--pad); }
.cp-tabs { display: flex; gap: 6px; max-width: var(--wide); margin: 0 auto; }
.cp-tab {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.55rem 0.3rem 0.35rem; margin: 0;
  font-family: var(--font-show); font-weight: 700; font-size: 0.78rem; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-navy); background: var(--navy); border: 2px solid var(--on-navy); border-radius: 0;
  cursor: pointer; white-space: nowrap;
}
.cp-tab--word { flex-grow: 2; }
.cp-tab:hover { background: #222d3f; }
.cp-tab[aria-selected="true"] { background: var(--on-navy); color: var(--navy); }
.cp-tab:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; }
.cp-tab-n { font-size: 1rem; letter-spacing: 0; }
.cp-tab-tick { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; display: none; }
.cp-tab-tick.cp-tick { stroke: currentColor; stroke-width: 3; }
.cp-tab[data-done="true"] .cp-tab-tick { display: block; }
@media (max-width: 599px) {
  .cp-tab--word { letter-spacing: 0.04em; padding-right: 0.55rem; padding-left: 0.4rem; }
  .cp-tab--n .cp-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) { .cp-tab { font-size: 0.7rem; letter-spacing: 0.04em; } .cp-tabs { gap: 4px; } }
@media (min-width: 600px) {
  .cp-tab { flex: 1 1 auto; padding-left: 0.6rem; padding-right: 0.6rem; }
  .cp-tab-n { font-size: 0.95rem; }
}

/* ---------------------------------------------------------------- the body, on cream */
.cp-sheets { position: relative; }
.cp-sheet, .pc-body { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 1.35rem var(--pad) 0.5rem; }
.cp-sheet { min-height: 40vh; }
.cp-headrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; margin: 0 0 1.05rem; }
.cp-headrow h2, .pc-body h2 { margin: 0; font-size: 1.3rem; letter-spacing: 0.04em; }
@media (min-width: 600px) { .cp-headrow h2, .pc-body h2 { font-size: 1.6rem; } }
.cp-headrow .ws-progress { margin: 0; font-family: var(--font-read); font-size: 0.88rem; }
.cp-sheet h3, .pc-body h3 { font-size: 1rem; letter-spacing: 0.08em; margin: 1.6rem 0 0.6rem; }
.cp-prose p { font-size: 1.06rem; max-width: var(--measure); }
.cp-intro { max-width: var(--measure); }
.cp-error { font-family: var(--font-read); font-weight: 600; }
.cp-next-row, .cp-start-row { margin: 1.75rem 0 0; max-width: none; }
.cp-next { width: 100%; }
@media (min-width: 600px) { .cp-next { width: auto; min-width: 20rem; } }
@media (max-width: 599px) { .cp-start { width: 100%; } }

/* small tags: plan confirmed, key opened */
.cp-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-show); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.1;
  color: var(--on-navy); background: var(--navy); padding: 0.62rem 0.85rem 0.45rem;
}
.cp-tag-tick { width: 1rem; height: 1rem; }
.cp-tag .cp-tick { stroke: currentColor; stroke-width: 3; }
.cp-tag--quiet { color: var(--navy); background: transparent; border: 2px solid var(--navy); font-size: 0.75rem; padding: 0.42rem 0.6rem 0.28rem; }

/* in-page confirmations */
.cp-confirm { border: 2px solid var(--navy); padding: 0.95rem 1rem 0.5rem; max-width: 34rem; background: var(--cream-hi); color: var(--navy); }
.cp-confirm-text { margin: 0 0 0.75rem; font-weight: 600; }
.cp-confirm-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.5rem; }

/* a hand-drawn tick: the reader's, so red pencil unless a context says otherwise */
.cp-tick { fill: none; stroke: var(--pencil); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-cross { fill: none; stroke: var(--pencil); stroke-width: 2.8; stroke-linecap: round; }

/* ---------------------------------------------------------------- briefing */
.cp-note { margin: 1.5rem 0 0.5rem; padding: 1rem 1.15rem 0.6rem; max-width: var(--measure); background: var(--navy); color: var(--on-navy); }
.cp-note-label { font-family: var(--font-show); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.45rem; }
.cp-note-text { font-style: italic; font-size: 1.06rem; margin: 0 0 0.4rem; }
.cp-sub { letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- clue lists: big numerals, the reader strikes them in pencil */
.cp-clues { list-style: none; margin: 0 0 0.5rem; padding: 0; max-width: var(--measure); counter-reset: clue; }
.cp-clues > li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); align-items: start; counter-increment: clue; border-bottom: 1px solid var(--navy); }
.cp-clues > li:first-child { border-top: 1px solid var(--navy); }
.cp-clues > li::before { content: counter(clue); font-family: var(--font-show); font-weight: 700; font-size: 1.5rem; line-height: 1; padding-top: 0.62rem; }
.cp-clue {
  display: block; width: 100%; min-height: 44px; text-align: left;
  font: inherit; color: inherit; background: none; border: 0; border-radius: 0;
  padding: 0.55rem 0.2rem 0.55rem 0; cursor: pointer;
}
.cp-clue:hover { background: rgba(23, 32, 46, 0.05); }
.cp-clue.is-struck .cp-clue-text { text-decoration: line-through; text-decoration-color: var(--pencil); text-decoration-thickness: 0.14em; color: var(--soft); }

/* ---------------------------------------------------------------- tools at the foot */
.cp-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-start; justify-content: space-between; max-width: calc(var(--wide) + 2 * var(--pad)); margin: 1.5rem auto 0; padding: 1.25rem var(--pad) 0; }
.cp-tools::before { content: ""; flex: 1 0 100%; height: 3px; background: var(--navy); margin-top: -1.25rem; margin-bottom: 0.5rem; }
.cp-reset-confirm { max-width: 28rem; }
@media (max-width: 420px) { .cp-tools .btn { padding-left: 0.85rem; padding-right: 0.85rem; } }

/* ---------------------------------------------------------------- Puzzle 1: word search */
.ws-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
@media (min-width: 1000px) { .ws-body { grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 1fr); align-items: start; } }
.ws-wrap { position: relative; overflow-x: auto; overflow-y: hidden; margin: 0 0 1.25rem; }
@media (max-width: 599px) { .ws-wrap { margin-left: calc(-1 * var(--pad) + 6px); margin-right: calc(-1 * var(--pad) + 6px); } }
.ws-grid {
  --cell: 30px;
  position: relative; margin: 0 auto; box-sizing: content-box;
  width: calc(var(--cell) * var(--cols)); height: calc(var(--cell) * var(--rows));
  border: 3px solid var(--navy); background: transparent;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ws-row { display: flex; position: relative; z-index: 1; }
.ws-cell {
  width: var(--cell); height: var(--cell); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--cell) * 0.07) 0 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--navy);
  font-family: var(--font-show); font-weight: 700; font-size: calc(var(--cell) * 0.56); line-height: 1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ws-cell:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--amber-hi); position: relative; z-index: 4; }
.ws-under, .ws-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ws-under { z-index: 0; }
.ws-marks { z-index: 3; }
/* a selection in progress: amber under the letters */
.ws-selpath { fill: var(--amber-hi); stroke: none; transition: opacity 0.3s ease-out; }
.ws-selpath.is-fading { opacity: 0; }
/* a found word: the red pencil loop over the letters */
.ws-loop {
  fill: none; stroke: var(--pencil); stroke-width: calc(var(--cell) * 0.045); vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .ws-loop.is-new { transform-box: fill-box; transform-origin: center; animation: ws-loop-in 150ms ease-out both; }
}
@keyframes ws-loop-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.ws-swipe { display: none; margin: 0; padding: 0.6rem 0.3rem 0; font-family: var(--font-read); font-style: italic; font-size: 0.85rem; min-height: 44px; }
.ws-wrap.is-scrolling .ws-swipe { display: block; width: var(--grid-w, 100%); }
.ws-wrap.is-scrolling .ws-grid { margin: 0; }

.ws-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.ws-group-label { font-family: var(--font-show); font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.18em; margin: 0 0 0.4rem !important; }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 339px) { .ws-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-word {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 0.38rem 0.2rem 0.22rem; border: 2px solid var(--navy);
  font-family: var(--font-show); font-weight: 700; font-size: clamp(0.66rem, 3.1vw, 0.8rem); line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase;
}
.ws-box { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; display: none; }
.ws-tick { width: 13px; height: 13px; display: block; }
.ws-tick.cp-tick { stroke: currentColor; stroke-width: 3.2; }
.ws-word-text { overflow-wrap: anywhere; }
.ws-word[data-found="true"] { background: var(--navy); color: var(--on-navy); }
.ws-word[data-found="true"] .ws-box { display: block; }
.ws-note { margin: 1.15rem 0 0; max-width: var(--measure); }

.ws-leftover-block { margin-top: 1.4rem; }
.ws-leftover-label { font-family: var(--font-show); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.5rem; }
.ws-leftover { display: grid; grid-template-columns: repeat(var(--lo-n, 12), minmax(0, 2.5rem)); gap: 4px; max-width: 100%; }
@media (max-width: 599px) {
  .ws-leftover { grid-template-columns: repeat(var(--lo-n, 12), minmax(0, 1fr)); }
  .ws-leftover.is-long { grid-template-columns: repeat(var(--lo-half, 9), minmax(0, 1fr)); row-gap: 8px; }
}
.ws-lbox {
  height: 2.5rem; min-width: 0; background: var(--cream-hi); border-bottom: 3px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-weight: 700; color: var(--pencil); font-size: 1.35rem; line-height: 1;
  padding-top: 0.2rem;
}
.ws-progress { font-family: var(--font-read); margin: 0.3rem 0 0; }

/* ---------------------------------------------------------------- the plan (Puzzle 2, the key, the printed page) */
.pl-caption { font-style: italic; max-width: var(--measure); }
.pl-frame { margin: 0.6rem 0 1.2rem; }
.pl-head { display: flex; justify-content: flex-end; min-height: 1.5rem; }
.pl-north { font-family: var(--font-show); font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; padding: 0 0.2rem 0.25rem; }
.pl-wrap { overflow-x: auto; padding-bottom: 2px; }
@media (max-width: 599px) {
  .pl-frame { margin-left: calc(-1 * var(--pad) + 6px); margin-right: calc(-1 * var(--pad) + 6px); }
}
.pl {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(var(--room-min, 60px), 1fr));
  width: 100%; min-width: calc(var(--cols) * var(--room-min, 60px) + 6px);
  border: 3px solid var(--navy); background: transparent;
}
.pl-band {
  grid-column: 1 / -1;
  padding: 0.32rem 0.5rem 0.22rem;
  font-family: var(--font-read); font-style: italic; font-size: 0.82rem; line-height: 1.25; color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
/* when a wide plan scrolls sideways, its row captions stay in view */
.pl-band > span { position: sticky; left: 0.5rem; }
.pl-room {
  position: relative; min-height: 4.6rem; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.1rem;
  padding: 0.42rem 0.4rem 0.3rem; margin: 0; text-align: left;
  background: transparent; color: var(--navy); font: inherit; border-radius: 0;
  border: 0; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.pl-room.is-east { border-right: 0; }
.pl-room.is-south { border-bottom: 0; }
.pl-name {
  font-family: var(--font-show); font-weight: 700; font-size: 0.72rem; line-height: 1.15; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); overflow-wrap: normal; word-break: normal; hyphens: manual;
}
@media (min-width: 700px) { .pl-room { min-height: 5.2rem; padding: 0.5rem 0.55rem 0.35rem; } .pl-band { padding-left: 0.6rem; } }
/* a phone with four or five rooms across: the 11px floor, tracked less, so the rooms fit without scrolling */
@media (max-width: 599px) {
  .pl[style*="--cols: 5"] .pl-name, .pl[style*="--cols: 4"] .pl-name { font-size: 11px; font-weight: 600; letter-spacing: 0; }
  /* the type follows the screen width so the rooms keep fitting: five across is 10.2px on a 390px phone and
     never under 9px; four across stays 11px down to 355px */
  .pl[style*="--cols: 5"] .pl-name { font-size: clamp(9px, 2.62vw, 11px); }
  .pl[style*="--cols: 4"] .pl-name { font-size: clamp(9.5px, 3.1vw, 11px); }
  .pl[style*="--cols: 5"] .pl-room, .pl[style*="--cols: 4"] .pl-room { padding: 0.36rem 0.18rem 0.25rem; }
}
.pl-occ { margin-top: auto; font-family: var(--font-hand); font-weight: 700; color: var(--pencil); font-size: var(--occ-size, 1.12rem); line-height: 1.1; white-space: nowrap; }

/* Puzzle 2: rooms are buttons */
button.pl-room { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pl-room.is-target { background: var(--cream-hi); }
.pl-room.is-target:hover, .pl-room.is-over, .pl-room.is-held { background: var(--amber-hi); }
.pl-room:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--amber-hi); z-index: 2; }
.p2-plan.is-locked .pl-room { cursor: default; }
.pl-room[disabled] { color: var(--navy); opacity: 1; }

.p2-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
@media (min-width: 1000px) { .p2-body { grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 1fr); align-items: start; } .p2-side { padding-top: 0.4rem; } }
.p2-tray-block { margin: 0 0 1.4rem; }
.p2-tray { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; }
.p2-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; min-width: 44px; padding: 0.5rem 0.75rem 0.32rem;
  font-family: var(--font-show); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--navy); line-height: 1.1;
  background: transparent; border: 2px solid var(--navy); border-radius: 0;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.p2-chip:hover { background: var(--cream-hi); }
.p2-chip[aria-pressed="true"], .p2-chip[aria-pressed="true"]:hover { background: var(--navy); color: var(--on-navy); }
.p2-chip.is-placed { background: var(--cream-hi); color: var(--soft); }
.p2-chip.is-placed[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.p2-chip-tick { width: 0.95rem; height: 0.95rem; display: none; margin-top: -0.15rem; }
.p2-chip-tick.cp-tick { stroke: currentColor; stroke-width: 3; }
.p2-chip.is-placed .p2-chip-tick { display: inline-block; }
.p2-chip[disabled] { cursor: default; }
.p2-back { margin-top: 0.6rem; }
.p2-help { font-family: var(--font-read); font-style: italic; margin: 0.6rem 0 0; min-height: 1.6em; }
.p2-ghost {
  position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -120%);
  font-size: 1.3rem; font-weight: 700; padding: 0.15rem 0.6rem; background: var(--cream-hi); border: 2px solid var(--navy);
}

/* the working strip under the plan */
.p2-strip { margin: 0 0 1.5rem; max-width: 40rem; }
.p2-strip-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; margin-bottom: 0.8rem; }
@media (min-width: 600px) { .p2-strip-row { grid-template-columns: 10.5rem minmax(0, 1fr); align-items: end; gap: 0 0.75rem; } }
.p2-strip-label { font-family: var(--font-show); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0 0 0.15rem; }
@media (min-width: 600px) { .p2-strip-label { padding-bottom: 0.75rem; } }
.p2-strip-input {
  width: 100%; min-width: 0; min-height: 46px; padding: 0.35rem 0.5rem 0.1rem;
  border: 0; border-bottom: 3px solid var(--navy); background: var(--cream-hi); border-radius: 0;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; color: var(--pencil);
}

.p2-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.p2-status { margin: 0; font-family: var(--font-read); font-weight: 600; max-width: var(--measure); }
.p2-status:empty { display: none; }

/* ---------------------------------------------------------------- Puzzle 3: elimination */
.p3-roster { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--navy); max-width: 46rem; }
@media (min-width: 600px) { .p3-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
.p3-item { border-bottom: 1px solid var(--navy); }
.p3-tick { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; cursor: pointer; padding: 0.3rem 0.2rem; }
.p3-name { font-family: var(--font-read); font-weight: 600; font-size: 1.06rem; }
.cp-check-wrap { position: relative; display: inline-flex; width: 30px; height: 30px; flex: 0 0 auto; }
.cp-check {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 30px; height: 30px; border: 2px solid var(--navy); background: var(--cream-hi); border-radius: 0; cursor: pointer;
}
.cp-check-mark { position: absolute; left: 1px; top: -9px; width: 36px; height: 36px; pointer-events: none; display: none; }
.cp-check:checked + .cp-check-mark { display: block; }
.cp-strikeable { position: relative; }
.is-crossed .cp-strikeable { color: var(--soft); }
.is-crossed .cp-strikeable::after {
  content: ""; position: absolute; left: -0.2em; right: -0.25em; top: 50%; height: 0.14em; background: var(--pencil);
  transform: rotate(-1.6deg);
}
.p3-left { font-family: var(--font-show); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0.9rem 0 0; }

/* ---------------------------------------------------------------- the killer */
.ac-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 0.9rem; margin: 1.1rem 0 1.5rem; max-width: 36rem; }
.ac-label { font-family: var(--font-show); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.16em; padding-bottom: 0.7rem; }
.ac-write {
  flex: 1 1 14rem; min-height: 3.6rem; background: var(--cream-hi); border-bottom: 3px solid var(--navy);
  font-size: 1.75rem; font-weight: 700; line-height: 1.2; padding: 0.7rem 0.6rem 0.2rem;
}
@media (min-width: 700px) { .ac-write { font-size: 2rem; } }
.ac-options { border: 0; margin: 0; padding: 0; max-width: 36rem; }
.ac-row { display: flex; align-items: center; gap: 0.8rem; min-height: 52px; padding: 0.3rem 0.2rem; border-bottom: 1px solid var(--navy); cursor: pointer; }
.ac-row:first-of-type { border-top: 2px solid var(--navy); }
.ac-name { font-weight: 600; font-size: 1.04rem; }
.cp-radio {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 auto;
  width: 26px; height: 26px; border: 2px solid var(--navy); border-radius: 50%; background: var(--cream-hi); cursor: pointer; position: relative;
}
.cp-radio:checked { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--cream-hi), inset 0 0 0 13px var(--pencil); }
.cp-radio[disabled] { cursor: default; }
.ac-actions { margin: 1.35rem 0 0; }
.ac-verdict { margin-top: 1.35rem; max-width: 36rem; }
.ac-verdict:focus { outline: none; }
.ac-verdict:empty { display: none; }
.ac-wrong { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-size: 1.08rem; font-weight: 600; }
.ac-wrong .cp-cross { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; margin-top: 0.05rem; }
.ac-closed { margin: 0.5rem 0 0; max-width: none; }
.cp-tag--stamp {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--tier-bg, var(--navy)); color: var(--tier-fg, var(--on-navy));
  font-size: clamp(1.5rem, 7vw, 2.1rem); letter-spacing: 0.1em; padding: 1.15rem 1.2rem 0.95rem;
}
.cp-tag--stamp .ac-bars::before { width: 3.6rem; }
.cp-tag--stamp .ac-bars > span { width: 2.5rem; }
.cp-tag--stamp .ac-bars::after { width: 1.4rem; }
.cp-tag--stamp .ac-bars { margin-top: -0.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .cp-tag--stamp.is-landing { animation: cp-land 220ms ease-out both; }
}
@keyframes cp-land { from { opacity: 0; } to { opacity: 1; } }
.key-open-row { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 3px solid var(--navy); max-width: 36rem; }

/* the key, in the book's key format, opened on a well */
.key { margin-top: 2rem; }
.key:focus { outline: none; }
.key[data-open="false"]:empty { display: none; }
.key[data-open="true"] { background: var(--cream-hi); border-top: 3px solid var(--navy); padding: 1.1rem var(--pad) 1.2rem; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
@media (min-width: 700px) { .key[data-open="true"] { margin-left: 0; margin-right: 0; padding-left: 1.4rem; padding-right: 1.4rem; } }
.key-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.key-title { margin: 0 !important; font-size: 1.3rem !important; letter-spacing: 0.06em !important; }
.key .pl-frame { margin-left: 0; margin-right: 0; }
.key-plan .pl-room { min-height: 3.1rem; }
@media (min-width: 700px) { .key-plan .pl-room { min-height: 3.6rem; } }
@media (min-width: 1100px) { .key-plan-frame { max-width: 36rem; } }
.key-plan .pl-occ { font-family: var(--font-read); font-weight: 600; font-size: min(var(--occ-size, 0.95rem), 0.95rem); color: var(--navy); }
.key-plan .is-scene { background: var(--navy); }
.key-plan .is-scene .pl-name, .key-plan .is-scene .pl-occ { color: var(--on-navy); }
.key-legend { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-read); font-style: italic; font-size: 0.88rem; margin: -0.6rem 0 1rem; }
.key-swatch { display: inline-block; width: 1.4rem; height: 1rem; background: var(--navy); }
.key-line { margin: 0 0 0.65rem; }
.key-line strong { font-family: var(--font-show); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 0.15em; }
.key-ws { overflow-wrap: anywhere; }
.key-foot { margin-top: 1.2rem; }
.key-tag { margin: 0 0 0.3rem; text-align: right; max-width: none; font-style: italic; font-size: 0.9rem; }
.key-killer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; margin: 0; max-width: none; border-bottom: 3px solid var(--navy); padding-bottom: 0.25rem; }
.key-killer-label { font-family: var(--font-show); font-weight: 700; letter-spacing: 0.16em; font-size: 1.05rem; }
.key-killer-name { font-family: var(--font-show); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------------------------------------------------------------- the printed-case page */
.pc-where { margin: 0 0 1.6rem; font-family: var(--font-read); font-weight: 600; font-size: 1.04rem; padding: 0.8rem 1rem 0.7rem; background: var(--cream-hi); border-left: 0; border-bottom: 3px solid var(--navy); max-width: var(--measure); }
.pc-sheet { margin: 0 0 1.5rem; }
.pc-sheet > h2 { margin-bottom: 0.9rem; }
.pc-pending { font-style: italic; }
.pc-plan-head { margin-top: 2rem !important; }
.pc-plan .pl-room { min-height: 3.2rem; }
@media (min-width: 700px) { .pc-plan .pl-room { min-height: 3.8rem; } }
@media (min-width: 1100px) { .pc-sheet .pl-frame { max-width: 48rem; } }
.pc-fold { margin: 2rem 0 1rem; padding-top: 1.1rem; border-top: 3px solid var(--navy); max-width: 46rem; }
.pc-fold > h2 { margin-bottom: 0.6rem; }
.pc-fold-note { margin-bottom: 1rem; }
.pc-fold-body:focus { outline: none; }
.pc-fold-body:not(:empty) { margin-top: 0.4rem; background: var(--cream-hi); padding: 0.4rem var(--pad) 0.8rem; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
@media (min-width: 700px) { .pc-fold-body:not(:empty) { margin-left: 0; margin-right: 0; padding-left: 1.4rem; padding-right: 1.4rem; } }
.pc-motive-label { font-size: 0.85rem !important; letter-spacing: 0.16em !important; margin: 1rem 0 0.35rem !important; }
.pc-motive, .pc-role { margin: 0 0 0.5rem; }

/* focus on cream: the amber ring is edged in navy so it holds 3:1 against the page */
.cp-sheets :focus-visible, .cp-tools :focus-visible, .pc-body :focus-visible {
  outline: 3px solid var(--amber-hi); outline-offset: 1px; box-shadow: 0 0 0 1px var(--navy), 0 0 0 5px var(--navy);
}
.cp-sheets .ws-cell:focus-visible, .cp-sheets .pl-room:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--amber-hi); }
.cp-sheets .cp-note :focus-visible { outline-color: var(--on-navy); }

/* ---------------------------------------------------------------- print: all five steps, the reader's marks, black on white */
@media print {
  .cp { --pencil: #000; --tier-bg: #fff; --tier-fg: #000; }
  body { color: #000; }
  .cp-head { background: #fff; color: #000; padding: 0 0 0.6rem; border-bottom: 3px solid #000; }
  .cp-no-n { font-size: 3.6rem; }
  .cp-rail, .cp-tools, .no-print, .cp-loading, .p2-help, .ws-swipe, .p2-back, .cp-confirm, .key-open-row { display: none !important; }
  .cp-sheet[hidden] { display: block !important; }
  .cp-sheet, .pc-body { min-height: 0; padding: 0; margin: 0 0 1rem; max-width: none; }
  .cp-sheet--p1, .cp-sheet--p2, .cp-sheet--p3, .cp-sheet--accuse { break-before: page; page-break-before: always; }
  .ws-body, .p2-body { display: block; }
  .ws-wrap, .pl-wrap, .pl-frame { overflow: visible; margin-left: 0 !important; margin-right: 0 !important; }
  .ws-grid { --cell: 10.5mm !important; margin: 0; border-color: #000; }
  .ws-under { display: none; }
  .ws-cell, .pl, .pl-room { background: #fff; color: #000; }
  .ws-word[data-found="true"] { background: #fff; color: #000; text-decoration: line-through; }
  .ws-lbox, .p2-strip-input, .ac-write, .cp-check, .cp-radio, .p2-chip.is-placed { background: #fff; }
  .cp-note { background: #fff; color: #000; border: 2px solid #000; }
  .pl { min-width: 0; max-width: 100%; }
  .p2-chip.is-placed { display: none; }
  .cp-clue { min-height: 0; padding: 0.2rem 0; }
  .ac-verdict[data-state="none"], .ac-verdict[data-state="wrong"] { display: none; }
  .key[data-open="false"], .pc-fold[data-open="false"] { display: none; }
  .key[data-open="true"], .pc-fold-body:not(:empty) { background: #fff; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .key-plan .is-scene { background: #fff; box-shadow: inset 0 0 0 4px #000; }
  .key-plan .is-scene .pl-name, .key-plan .is-scene .pl-occ { color: #000; }
  .key-swatch { background: #fff; box-shadow: inset 0 0 0 3px #000; }
  .cp-tag, .cp-tag--stamp { color: #000; background: #fff; border: 2px solid #000; }
}

/* ---- S17 2026-11-22: where am I (breadcrumb, inside the tier band) and what next (pager, under the page) ---- */
.cp-crumbs { font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.55rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.45rem; }
.cp-crumbs a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cp-crumbs a:hover { box-shadow: inset 0 -3px 0 currentColor; }
.cp-crumbs a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.cp-crumb-sep { opacity: 0.75; }
.cp-pager { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 2.2rem auto 0; padding: 0 var(--pad); }
.cp-pager-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; border-top: 3px solid var(--navy); padding-top: 1rem; }
.cp-pager-link { display: flex; flex-direction: column; gap: 0.3rem; min-height: 44px; padding: 0.7rem 0.85rem 0.6rem; background: var(--cream-hi); border: 2px solid var(--navy); color: var(--navy); text-decoration: none; }
.cp-pager-link:hover, .cp-pager-link:focus-visible { background: var(--amber-hi); }
.cp-pager-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.cp-pager-link.is-next { text-align: right; align-items: flex-end; }
.cp-pager-lab { font-family: var(--font-show); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; }
.cp-pager-ttl { font-family: var(--font-read); font-size: 1rem; line-height: 1.3; }
.cp-pager-num { font-family: var(--font-show); font-weight: 700; }
@media (max-width: 480px) { .cp-pager-in { grid-template-columns: 1fr; } .cp-pager-gap { display: none; } .cp-pager-link.is-next { text-align: left; align-items: flex-start; } }

/* S19 (2026-11-22): the print-format PDFs of the ten online files */
.cp-print { margin: 0.7rem 0 0; font-family: var(--font-show); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cp-print a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.key-pdf { margin: 1rem 0 0; font-family: var(--font-show); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
