/* Daily Whodunit. Layout: case-file desk — puzzle on the left, evidence board on the right; stacks on phones. Print = one clean worksheet. */
:root {
  --paper: #f8f6f2;
  --sheet: #ffffff;
  --ink: #1c1816;
  --ink-soft: #3d3532;
  --muted: #6d645d;
  --rule: #ddd6cd;
  --thin: #c9c1b7;
  --red: #a3161a;
  --red-soft: #f6e1e0;
  --select: #f6e3a6;
  --peer: #f0ebe4;
  --same: #f1d6d3;
  --entry: #23407a;
  --ok: #2f6b3a;
  --f-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --f-type: 'Special Elite', 'Courier New', monospace;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-digit: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151211; --sheet: #1d1917; --ink: #eee8e1; --ink-soft: #d3cbc3; --muted: #a59b93;
    --rule: #3a3330; --thin: #4a423e; --red: #e5484d; --red-soft: #3b1b1c;
    --select: #5a4a17; --peer: #262120; --same: #43262a; --entry: #8fb2f0; --ok: #74c486;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body.dw {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.5;
}
.wrap {
  max-width: 1140px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 48px;
}
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- header ---------- */
.mast { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.brand { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: .95; font-size: clamp(30px, 6vw, 54px); letter-spacing: .5px; text-wrap: balance; }
.brand span { color: var(--red); display: block; }
.casebar { display: flex; align-items: center; gap: 8px; }
.casebar .meta { text-align: right; font-family: var(--f-type); font-size: 14px; line-height: 1.35; min-width: 0; }
.casebar .meta b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--red); }
.navbtn { width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--sheet); border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.navbtn { color: var(--ink); text-decoration: none; }
.navbtn.off { opacity: .3; }

.brief { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: 18px 0 22px; }
.stamp { font-family: var(--f-type); color: var(--red); border: 2px solid var(--red); padding: 4px 8px; transform: rotate(-4deg); font-size: 13px; letter-spacing: 2px; white-space: nowrap; margin-top: 4px; }
@media (max-width: 560px) { .brief { grid-template-columns: minmax(0, 1fr); } .stamp { justify-self: start; } }
.brief p { margin: 0; font-family: var(--f-type); font-size: 16px; max-width: 70ch; }
.brief strong { color: var(--red); font-weight: 400; }

/* ---------- layout ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 880px) { .desk { grid-template-columns: minmax(0, 1fr); } .board-col { max-width: 560px; } }

/* ---------- grid ---------- */
.gridwrap { width: 100%; max-width: 540px; }
.grid { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); aspect-ratio: 1; max-width: 100%; border: 2.5px solid var(--ink); background: var(--sheet); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.cell { position: relative; border: 0; border-right: 1px solid var(--thin); border-bottom: 1px solid var(--thin); background: var(--sheet); padding: 0; display: grid; place-items: center; font-family: var(--f-digit); font-weight: 500; font-size: clamp(18px, 5.2vw, 27px); color: var(--entry); min-width: 0; min-height: 0; }
.cell.c2, .cell.c5 { border-right: 2.5px solid var(--ink); }
.cell.c8 { border-right: 0; }
.cell.r2, .cell.r5 { border-bottom: 2.5px solid var(--ink); }
.cell.r8 { border-bottom: 0; }
.cell.given { color: var(--ink); font-weight: 600; }
.cell.peer { background: var(--peer); }
.cell.same { background: var(--same); }
.cell.sel { background: var(--select); }
.cell.conflict { color: var(--red); }
.cell.conflict::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed var(--red); pointer-events: none; }
.cell.wrong { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.cell.ans { box-shadow: inset 0 0 0 2.5px var(--red); }
.cell.ans::before { content: attr(data-tag); position: absolute; top: 1px; left: 3px; font-family: var(--f-type); font-size: clamp(8px, 1.9vw, 11px); color: var(--red); line-height: 1.1; font-weight: 400; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 2px; font-size: clamp(7px, 1.8vw, 10.5px); color: var(--muted); font-weight: 500; }
.notes span { display: grid; place-items: center; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.timer { font-family: var(--f-digit); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; margin-right: auto; min-width: 64px; }
.tool { border: 1.5px solid var(--ink); background: var(--sheet); padding: 7px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tool.danger { border-color: var(--red); color: var(--red); }
.pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 10px; }
.pad button { aspect-ratio: 1 / 1.15; max-width: 100%; border: 1.5px solid var(--ink); background: var(--sheet); border-radius: 6px; font-family: var(--f-digit); font-size: clamp(16px, 4.6vw, 22px); font-weight: 600; display: grid; place-items: center; padding: 0; position: relative; }
.pad button small { position: absolute; bottom: 1px; right: 4px; font-size: 10px; color: var(--muted); font-weight: 500; }
.pad button:disabled { opacity: .28; cursor: default; }
.status { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.status.good { color: var(--ok); font-weight: 600; }
.status.bad { color: var(--red); }

/* ---------- evidence board ---------- */
.board-col { display: grid; gap: 22px; min-width: 0; }
.section h2 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 19px; letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.section h2::after { content: ""; flex: 1; border-bottom: 2px solid var(--red); transform: translateY(-5px); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.roster li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 3px 0; }
.num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-digit); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.roster li.hit .num { background: var(--red); }
.roster li.hit { font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.three .roster { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1080px) { .three { grid-template-columns: minmax(0, 1fr); } .three .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .three .roster, .roster { grid-template-columns: minmax(0, 1fr); } }

.casefile { background: var(--sheet); border: 1.5px solid var(--rule); border-left: 0; padding: 16px 18px; position: relative; }
.casefile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.casefile ol { margin: 0; padding-left: 22px; font-family: var(--f-type); font-size: 15px; display: grid; gap: 6px; }
.casefile li::marker { color: var(--red); }
.casefile .tag { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--red); border: 1px solid var(--red); border-radius: 3px; padding: 0 4px; margin-right: 4px; vertical-align: 1px; }
.casefile .sub { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }

.accuse { border: 2px solid var(--ink); padding: 16px 18px; background: var(--sheet); }
.accuse h2 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--red); }
.accuse p.small { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.fields { display: grid; gap: 10px; }
.field { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; }
.field label { font-family: var(--f-type); font-size: 15px; }
.field select { width: 100%; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.go { margin-top: 14px; width: 100%; padding: 11px 14px; background: var(--red); color: #fff; border: 0; border-radius: 6px; font-family: var(--f-display); font-size: 17px; letter-spacing: .5px; }
.go:disabled { opacity: .45; cursor: default; }
.verdict { margin-top: 14px; font-size: 15px; }
.verdict .headline { font-family: var(--f-display); font-size: 22px; margin: 0 0 4px; }
.verdict.win .headline { color: var(--ok); }
.verdict.lose .headline { color: var(--red); }
.verdict p { margin: 0 0 10px; }
.sharebox { display: flex; gap: 8px; flex-wrap: wrap; }
.sharebox textarea { flex: 1 1 100%; min-height: 64px; resize: none; font-family: var(--f-digit); font-size: 13px; padding: 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }

.howto { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.howto h3 { margin: 0 0 2px; color: var(--ink); font-family: var(--f-type); font-weight: 400; font-size: 15px; }
.howto p { margin: 0; }
@media (max-width: 700px) { .howto { grid-template-columns: minmax(0, 1fr); } }

/* ---------- print worksheet: case-file dossier ---------- */
#printSheet { display: none; }
@media print {
  @page { size: auto; margin: 0; }
  html, body.dw { margin: 0 !important; background: #fff !important; }
  .wrap, #wpadminbar { display: none !important; }
  #printSheet { display: block; box-sizing: border-box; width: 100%; padding: 8mm 13mm 6mm; color: #111; font-family: var(--f-body); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printSheet * { box-sizing: border-box; }
  #printSheet h1, #printSheet h3, #printSheet h4, #printSheet p, #printSheet dl, #printSheet dd { margin: 0; }

  .ps-top { display: flex; justify-content: space-between; align-items: flex-end; }
  .ps-brand { font-family: var(--f-display); font-size: 18pt; line-height: 1; }
  .ps-brand span { color: #a3161a; }
  .ps-file { font-family: var(--f-type); font-size: 8.5pt; letter-spacing: 2px; text-transform: uppercase; }
  .ps-file b { margin-left: 2mm; font-family: var(--f-display); font-weight: 400; font-size: 20pt; letter-spacing: 0; color: #a3161a; }

  .ps-strip { display: flex; justify-content: space-between; gap: 4mm; margin-top: 2.5mm; padding: 1.5mm 3mm; background: #141110; color: #f4efe8; font-family: var(--f-type); font-size: 7.5pt; letter-spacing: 1.5px; text-transform: uppercase; }
  .ps-conf { color: #ff6b6f; }

  .ps-title { margin: 3.2mm 0 2mm !important; font-family: var(--f-display); font-weight: 400; font-size: 26pt; line-height: 1.02; letter-spacing: .2px; }

  .ps-report { display: grid; grid-template-columns: 1fr 1.7fr .6fr; margin-bottom: 3.2mm !important; border-top: 1.2pt solid #111; border-bottom: 1.2pt solid #111; }
  .ps-report div { padding: 1.6mm 3mm 1.8mm 0; }
  .ps-report div + div { padding-left: 3mm; border-left: .6pt solid #aaa; }
  .ps-report dt { font-family: var(--f-type); font-size: 6.8pt; letter-spacing: 1.5px; text-transform: uppercase; color: #a3161a; }
  .ps-report dd { margin-top: .6mm !important; font-size: 9.2pt; font-weight: 500; line-height: 1.3; }

  .ps-main { display: grid; grid-template-columns: 110mm minmax(0, 1fr); gap: 7mm; align-items: start; }
  .ps-board { display: grid; grid-template-columns: 5mm 105mm; grid-template-rows: 5mm 105mm; }
  .ps-cols { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(9, 1fr); }
  .ps-rows { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(9, 1fr); }
  .ps-cols span, .ps-rows span { display: grid; place-items: center; font-family: var(--f-digit); font-size: 7pt; color: #8a8a8a; }
  .ps-grid { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); border: 2.2pt solid #111; }
  .ps-grid div { position: relative; display: grid; place-items: center; border-right: .5pt solid #a5a5a5; border-bottom: .5pt solid #a5a5a5; font-family: var(--f-digit); font-weight: 600; font-size: 17pt; }
  .ps-grid div.c2, .ps-grid div.c5 { border-right: 1.6pt solid #111; }
  .ps-grid div.c8 { border-right: 0; }
  .ps-grid div.r2, .ps-grid div.r5 { border-bottom: 1.6pt solid #111; }
  .ps-grid div.r8 { border-bottom: 0; }
  .ps-grid div.ans { background: #fbeceb; box-shadow: inset 0 0 0 1.6pt #a3161a; }
  .ps-grid div.ans::before { content: attr(data-tag); position: absolute; top: .7mm; left: 1.1mm; font-family: var(--f-type); font-size: 7pt; font-weight: 400; color: #a3161a; }

  .ps-side h3 { margin-bottom: .6mm !important; padding-bottom: .8mm; border-bottom: .9pt solid #111; font-family: var(--f-type); font-weight: 400; font-size: 7.8pt; letter-spacing: 2px; text-transform: uppercase; color: #a3161a; }
  .ps-side ol { list-style: none; margin: 0 0 2.4mm; padding: 0; }
  .ps-side li { display: grid; grid-template-columns: 3.2mm 3.6mm minmax(0, 1fr); align-items: center; gap: 1.6mm; padding: .5mm 0; border-bottom: .4pt dotted #bbb; font-size: 8.4pt; line-height: 1.15; }
  .ps-side li i { width: 3.2mm; height: 3.2mm; border: .8pt solid #111; }
  .ps-side li b { font-family: var(--f-digit); font-weight: 600; font-size: 8.5pt; color: #a3161a; }
  .ps-tip { font-size: 7.5pt; font-style: italic; color: #666; }

  .ps-lower { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6mm; margin-top: 4mm; }
  .ps-evidence, .ps-accuse { position: relative; padding: 3mm 3.5mm 3.2mm; border: 1.2pt solid #111; }
  .ps-lower h3 { margin-bottom: 2mm !important; font-family: var(--f-display); font-weight: 400; font-size: 13pt; line-height: 1.1; }
  .ps-evidence ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-type); font-size: 8.6pt; line-height: 1.35; }
  .ps-evidence li { display: flex; gap: 2mm; margin-bottom: 1.1mm; }
  .chip { flex: none; display: inline-grid; place-items: center; width: 4.2mm; height: 4.2mm; border: 1pt solid #a3161a; color: #a3161a; font-size: 7pt; line-height: 1; }
  .ps-evidence h4 { margin: 2.4mm 0 1.2mm !important; font-family: var(--f-type); font-weight: 400; font-size: 6.8pt; letter-spacing: 1.5px; text-transform: uppercase; color: #777; }
  .ps-evidence .facts li::before { content: "\2014"; flex: none; width: 4.2mm; color: #a3161a; text-align: center; }
  .ps-accuse { border: 1.6pt solid #a3161a; }
  .ps-accuse h3 { color: #a3161a; }
  .ps-line { display: flex; align-items: flex-end; gap: 2mm; margin-top: 3.4mm !important; font-family: var(--f-type); font-size: 9pt; }
  .ps-line span { flex: none; width: 17mm; }
  .ps-line i { flex: 1; height: 4mm; border-bottom: .8pt solid #111; }
  .ps-line.sm { margin-top: 5mm !important; font-size: 7.8pt; color: #555; }
  .ps-line.sm span { width: auto; }
  .ps-line.sm i.short { flex: 0 0 16mm; }
  .ps-stamp { position: absolute; top: -6mm; right: 4mm; background: #fff; width: 17mm; height: 17mm; display: grid; place-items: center; border: 1.2pt dashed #a3161a; border-radius: 50%; font-family: var(--f-type); font-size: 6.5pt; letter-spacing: 1px; line-height: 1.25; text-align: center; text-transform: uppercase; color: #a3161a; transform: rotate(-12deg); }

  .ps-foot { display: grid; grid-template-columns: 18mm minmax(0, 1fr) auto; gap: 4mm; align-items: center; margin-top: 4mm; padding-top: 2.6mm; border-top: 2.2pt solid #111; }
  .ps-qr svg { display: block; width: 18mm; height: 18mm; }
  .ps-qr:empty { width: 0; }
  .ps-cta b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 11.5pt; line-height: 1.15; }
  .ps-cta span { display: block; margin-top: .8mm; font-family: var(--f-type); font-size: 8.5pt; }
  .ps-cta em { display: block; margin-top: .8mm; font-size: 7.2pt; color: #666; }
  .ps-key { max-width: 52mm; font-size: 6.8pt; line-height: 1.3; color: #888; text-align: right; transform: rotate(180deg); }
}
/* ---------- site chrome ---------- */
:where(body.dw) a { color: inherit; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.logo { font-family: var(--f-display); font-size: 22px; line-height: 1; text-decoration: none; letter-spacing: .3px; }
.logo span { color: var(--red); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; font-weight: 500; }
.topbar nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { border-bottom-color: var(--red); }

.sitefoot { margin-top: 64px; padding-top: 28px; border-top: 3px solid var(--ink); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; font-size: 14px; color: var(--muted); }
.sitefoot .logo { font-size: 20px; color: var(--ink); }
.ft-brand p { margin: 10px 0 0; max-width: 36ch; line-height: 1.55; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.ft-col h2 { margin: 0 0 4px; font-family: var(--f-type); font-weight: 400; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.ft-col a { text-decoration: none; color: var(--ink); }
.ft-col a:hover { color: var(--red); }
.ft-base { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; }
@media (max-width: 640px) { .sitefoot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ft-brand { grid-column: 1 / -1; } }
/* ---------- archive ---------- */
.lede { font-family: var(--f-type); font-size: 16px; max-width: 70ch; margin: 16px 0 8px; }
.month h2 { margin: 26px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: baseline; gap: 10px; }
.month h2::after { content: ""; flex: 1; border-bottom: 2px solid var(--red); transform: translateY(-5px); }
.caselist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 16px; }
.caselist a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "no set lvl" "no date state"; gap: 0 10px; align-items: center; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; }
.caselist a:hover { border-color: var(--ink); }
.cno { grid-area: no; font-family: var(--f-digit); font-weight: 600; font-size: 16px; color: var(--red); }
.cset { grid-area: set; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdate { grid-area: date; font-size: 13px; color: var(--muted); }
.lvl { grid-area: lvl; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--thin); color: var(--muted); justify-self: end; }
.lvl-hard, .lvl-tricky { border-color: var(--red); color: var(--red); }
.cstate { grid-area: state; font-size: 12px; font-weight: 600; justify-self: end; }
.cstate.win { color: var(--ok); }
.cstate.lose { color: var(--red); }
.cstate.wip { color: var(--muted); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- pages and articles (note: WordPress puts .page on <body>, so never style .page) ---------- */
.dw-page { max-width: 700px; margin: 0 auto; padding-top: 44px; }
.page-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.eyebrow { margin: 0 0 10px; font-family: var(--f-type); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.ptitle { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.04; letter-spacing: .3px; text-wrap: balance; }
.pmeta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose h2 { margin: 44px 0 10px; font-family: var(--f-body); font-weight: 600; font-size: 25px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--red); margin-bottom: 14px; }
.prose h3 { margin: 28px 0 6px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin: 10px 0; }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.prose ol { padding-left: 24px; }
.prose ol li { margin: 8px 0; }
.prose ol li::marker { color: var(--red); font-weight: 600; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.cta { margin-top: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--red); }
.cta .eyebrow { margin-bottom: 6px; }
.cta-title { margin: 0; font-family: var(--f-display); font-size: 22px; line-height: 1.2; text-wrap: balance; }
.cta-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.btn { display: inline-block; padding: 12px 24px; background: var(--red); color: #fff !important; text-decoration: none; border-radius: 6px; font-family: var(--f-display); font-size: 17px; letter-spacing: .5px; white-space: nowrap; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }

/* ---------- home guide ---------- */
.guide { margin-top: 56px; padding-top: 36px; border-top: 3px solid var(--ink); }
.guide-head { max-width: 640px; margin-bottom: 28px; }
.guide-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.08; text-wrap: balance; }
.guide-lede { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.guide h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.guide h3.sec { margin-bottom: 14px; font-family: var(--f-type); font-weight: 400; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 20px 20px 22px; background: var(--sheet); border: 1.5px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step); display: block; margin-bottom: 12px; font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--red); }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.cellchip { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--red); color: var(--red); font-family: var(--f-type); font-size: 11px; line-height: 1; vertical-align: 1px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; margin-bottom: 48px; align-items: start; }
.tiplist { list-style: none; margin: 0; padding: 0; counter-reset: tip; }
.tiplist li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.tiplist li:last-child { border-bottom: 1px solid var(--rule); }
.tiplist li::before { counter-increment: tip; content: "0" counter(tip); grid-row: span 2; padding-top: 2px; font-family: var(--f-digit); font-weight: 600; font-size: 14px; color: var(--red); }
.tiplist strong { font-weight: 600; font-size: 16.5px; }
.tiplist span { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.week { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week li { padding: 10px 2px 9px; text-align: center; background: var(--sheet); border: 1.5px solid var(--rule); }
.week li.is-today { border-color: var(--ink); box-shadow: 3px 3px 0 var(--red); }
.week b { display: block; font-family: var(--f-digit); font-size: 13px; font-weight: 600; }
.meter { display: flex; justify-content: center; align-items: flex-end; gap: 2px; height: 16px; margin: 8px 0 6px; }
.meter i { width: 5px; background: var(--rule); }
.meter i:nth-child(1) { height: 6px; } .meter i:nth-child(2) { height: 9px; } .meter i:nth-child(3) { height: 12px; } .meter i:nth-child(4) { height: 16px; }
.meter i.on { background: var(--red); }
.week small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.week-note { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.week-note strong { color: var(--ink); font-weight: 600; }
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 16px 44px 16px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-digit); font-size: 24px; font-weight: 500; line-height: 1; color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.faq a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { .steps { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; } .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-bottom: 40px; } }
@media (max-width: 420px) { .week { gap: 3px; } .week b { font-size: 11.5px; } .week small { font-size: 8.5px; letter-spacing: 0; } }
@media (max-width: 880px) { .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 16px 18px; } .steps li::before { grid-row: span 2; margin: 0; font-size: 34px; } }

/* ---------- phone refinements ---------- */
@media (max-width: 560px) {
  .wrap { padding-block: 12px 40px; }
  .topbar { flex-wrap: nowrap; gap: 12px; padding-bottom: 10px; }
  .logo { font-size: 19px; white-space: nowrap; }
  .topbar nav { flex-wrap: nowrap; gap: 14px; font-size: 13px; }
  .topbar nav a { white-space: nowrap; }
  .nav-long { display: none; }
  .mast { margin-top: 14px; padding-bottom: 12px; gap: 12px; }
  .brand { font-size: 30px; }
  .brand span { display: inline; }
  .casebar { width: 100%; justify-content: space-between; }
  .casebar .meta { text-align: center; font-size: 12.5px; }
  .casebar .meta b { font-size: 19px; }
  .navbtn { width: 36px; height: 36px; font-size: 16px; }
  .brief { margin: 14px 0 16px; gap: 8px; }
  .stamp { margin-top: 0; padding: 2px 6px; font-size: 11px; }
  .brief p { font-size: 14px; line-height: 1.55; }
  .desk { gap: 28px; }
  .toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
  .toolbar .tool { padding: 9px 0; font-size: 13.5px; text-align: center; }
  .timer { grid-row: 2; grid-column: 1 / 3; margin: 0; align-self: center; font-size: 16px; }
  #revealBtn { grid-row: 2; grid-column: 3; }
  #printBtn { grid-row: 2; grid-column: 4; }
  #revealBtn, #printBtn { padding: 6px 0; font-size: 12.5px; border-color: var(--rule); }
  .pad { gap: 4px; margin-top: 8px; }
  .pad button { aspect-ratio: 1 / 1.3; font-size: 20px; }
  .status { margin-top: 6px; min-height: 20px; }
  .board-col { gap: 20px; }
  .three { gap: 18px; }
  .three .roster, .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 14px; }
  .roster li { gap: 8px; }
  .num { width: 22px; height: 22px; font-size: 12px; }
  .section h2 { margin-bottom: 8px; font-size: 17px; }
  .casefile { padding: 14px 14px 14px 16px; }
  .casefile ol { font-size: 14px; }
  .accuse { padding: 14px; }
  .field { grid-template-columns: 72px minmax(0, 1fr); }
}
/* ---------- article listings ---------- */
.dw-list .pmeta { max-width: 60ch; font-size: 16px; line-height: 1.6; }
.postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.postlist a { display: grid; gap: 6px; padding: 20px 22px; background: var(--sheet); border: 1.5px solid var(--rule); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.postlist a:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--red); }
.pl-meta { font-family: var(--f-type); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.pl-title { font-family: var(--f-display); font-size: 24px; line-height: 1.15; text-wrap: balance; }
.pl-ex { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.pl-more { font-size: 14px; font-weight: 600; }
.dw-list .navigation { margin-top: 20px; display: flex; gap: 16px; }
@media (max-width: 560px) { .topbar nav a.nav-howto { display: none; } }
