/* The Paranormal Pad: single parchment look from the Stitch design (one theme by choice). */
:root {
  color-scheme: light;
  --paper: #efe8dc;
  --paper-2: #e7dfd1;
  --paper-3: #dfd6c5;
  --paper-dot: #dfd6c5;
  --card: #f7f0e4;
  --card-hi: #fcf8f0;
  --slip: #e6dcce;
  --ink: #1a1918;
  --ink-2: #3b352e;
  --ink-3: #5c5346;
  --muted: #8c8273;
  --rule: #2b2723;
  --rule-soft: #b8ab98;
  --rule-faint: #d6ccbb;
  --blood: #8b1e19;
  --blood-tint: rgba(139, 30, 25, 0.08);
  --sepia: #5c4434;
  --btn-dark: #24211e;
  --btn-dark-hi: #3d3833;

  --f-type: 'Special Elite', 'Courier Prime', 'Courier New', monospace;
  --f-mono: 'Courier Prime', 'Courier New', Courier, monospace;
  --f-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(var(--paper-dot) 1px, transparent 1px),
    radial-gradient(#e4dcce 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.55;
  border-top: 8px solid #3b342e;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rule); color: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 2px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- shared pieces ---------- */
.label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.stamp {
  display: inline-block; border: 2px solid currentColor; box-shadow: 0 0 0 1px currentColor inset;
  font-family: var(--f-type); text-transform: uppercase; letter-spacing: .16em; line-height: 1;
  padding: .3rem .6rem; font-size: 11px; transform: rotate(-1.5deg); opacity: .9; white-space: nowrap;
}
.stamp.red { color: var(--blood); }
.stamp.sepia { color: var(--sepia); }
a.stamp { text-decoration: none; transition: background-color .15s, color .15s; }
a.stamp.red:hover { background: var(--blood); color: var(--card-hi); }
.stamp.tilt-right { transform: rotate(2.4deg); }
.stamp.small { font-size: 9px; padding: .25rem .45rem; border-width: 1.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .9rem; border: 1px solid var(--rule); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn.dark { background: var(--btn-dark); color: var(--paper); border-color: #141312; }
.btn.dark:hover { background: var(--btn-dark-hi); }
.btn.light { background: var(--paper-2); color: var(--ink); border-color: #6b6254; }
.btn.light:hover { background: var(--paper-3); }
.btn.blood { background: var(--blood); color: var(--card-hi); border-color: #6e1414; }
.btn.blood:hover { background: #6e1414; }

.paperclip {
  position: absolute; top: -10px; right: 26px; width: 14px; height: 38px;
  border: 2px solid #5a544d; border-bottom: none; border-radius: 8px 8px 0 0; z-index: 2;
}
.paperclip::after {
  content: ''; position: absolute; top: 5px; left: 2px; width: 6px; height: 26px;
  border: 2px solid #736b63; border-bottom: none; border-radius: 5px 5px 0 0;
}

.sepia-photo { filter: sepia(70%) contrast(120%) brightness(90%) grayscale(25%); transition: filter .4s; }
a:hover .sepia-photo, .sepia-photo:hover { filter: sepia(15%) contrast(110%); }

.double-rule { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); height: 4px; margin: 0; }

/* ---------- masthead ---------- */
.masthead { background: #ece3d4; border-bottom: 1px solid #3d3731; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.4rem; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; text-decoration: none; }
.brand img { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--rule); padding: 3px; background: var(--card); flex: none; }
.brand h1 { font-family: var(--f-type); font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; font-weight: 400; }
.brand .tagline { font-family: var(--f-serif); font-style: italic; font-size: 13px; color: #4d463d; margin-top: .3rem; }
.brand .label { margin-bottom: .25rem; }
.query { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.query label { display: flex; align-items: center; gap: .5rem; background: #f4ede1; border: 1px solid var(--rule); padding: .45rem .7rem; box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
.query label span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #635b51; }
.query input { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); width: 13rem; max-width: 50vw; }
.query input:focus { outline: none; }
.query input::placeholder { color: #9e9485; }

/* ---------- folio tabs ---------- */
.tabs { background: var(--paper-3); border-bottom: 2px solid var(--rule); }
.tabs .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tabs .scroller { display: flex; gap: .25rem; overflow-x: auto; padding-top: .4rem; scrollbar-width: none; }
.tabs .scroller::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  padding: .55rem 1rem; color: #544d44; text-decoration: none; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px;
}
.tab:hover { color: var(--ink); background: #e6decb; }
.tab[aria-current="page"] { background: var(--paper); border-color: var(--rule); color: var(--ink); font-weight: 700; }

main { padding-block: 1.5rem 3rem; }
.view { display: grid; gap: 1.5rem; }

/* ---------- advisory slip ---------- */
.advisory { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; background: var(--slip); border: 1px solid #786e60; padding: .75rem 1rem; font-size: 12px; }
.advisory b { color: var(--blood); letter-spacing: .1em; text-transform: uppercase; }
.advisory a { text-decoration: underline; text-underline-offset: 2px; }

.new-file {
  font-size: 14px; padding: .5rem 1rem; border-width: 3px; background: rgba(139, 30, 25, .1);
  text-decoration: none; transform: rotate(-4deg); opacity: .95;
  animation: stamp-in .45s cubic-bezier(.2, .9, .3, 1.25) .5s both;
}
.new-file:hover { background: var(--blood); color: var(--card-hi); }
@keyframes stamp-in {
  from { transform: rotate(-4deg) scale(2.2); opacity: 0; }
  to { transform: rotate(-4deg) scale(1); opacity: .95; }
}

/* ---------- ledger tiles ---------- */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 760px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border: 2px solid #3d3731; background: #f5ede2; padding: .8rem .9rem; display: grid; gap: .25rem; }
.tile .num { font-family: var(--f-type); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 11px; color: var(--ink-3); }
.tile.alert .label, .tile.alert .num, .tile.alert .sub { color: var(--blood); }

/* ---------- featured dossier ---------- */
.dossier { position: relative; background: var(--card); border: 2px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); box-shadow: 4px 4px 0 0 rgba(43,39,35,.18); }
.docket { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.docket .left { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.docket .code { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4a4237; }
.docket .clear { font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; color: #736758; }
.dossier-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 900px) { .dossier-grid { grid-template-columns: minmax(0, 1fr); } }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blood); }
.dossier h2 { font-family: var(--f-type); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; margin-top: .35rem; }
.dossier h2 a { text-decoration: none; }
.dossier h2 a:hover { color: var(--blood); }
.where { font-size: 12px; color: var(--ink-3); margin-top: .4rem; }
.plate { margin: 1rem 0 0; border: 2px solid #2e2925; background: #ece3d3; padding: .6rem; }
.plate .frame { position: relative; overflow: hidden; background: #1a1714; aspect-ratio: 16 / 10; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: .5rem; }

.statement { border: 2px solid var(--rule); background: var(--card-hi); padding: 1.1rem; display: grid; gap: .9rem; }
.statement .head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.statement .head span:first-child { font-family: var(--f-type); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.statement p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #2b2725; }
.quote { border-left: 3px solid var(--blood); background: #f0e6d6; padding: .75rem .9rem; }
.quote .label { color: var(--blood); font-family: var(--f-type); font-weight: 400; margin-bottom: .3rem; }
.quote p { font-family: var(--f-serif); font-style: italic; font-size: 14px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; border-top: 1px solid #dfd5c5; padding-top: .8rem; }
.specs div { background: #efe7d8; border: 1px solid #bcb09e; padding: .4rem .5rem; color: var(--ink-3); }
.specs b { display: block; color: var(--ink); font-size: 11px; }
.specs b.red { color: var(--blood); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.actions .btn { flex: 1 1 auto; }

/* ---------- archive layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.75rem; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin-bottom: 1rem; }
.section-head h2 { font-family: var(--f-type); font-weight: 400; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
/* red square that lights up orange-red like a warning lamp */
.section-head h2::before {
  content: ''; width: 10px; height: 10px; flex: none;
  background: var(--blood);
  animation: lamp 1.6s infinite;
}
@keyframes lamp {
  0%, 49.9% { background: var(--blood); box-shadow: none; }
  50%, 100% { background: #f0552a; box-shadow: 0 0 4px 1px rgba(240, 85, 42, .75), 0 0 10px 2px rgba(240, 85, 42, .35); }
}
.section-head .count { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.drawer { border: 2px solid #332e29; background: var(--paper-2); padding: .9rem; display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.drawer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.seg button { font-family: var(--f-type); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .75rem; border: 1px solid #7a7061; background: #dfd5c4; color: var(--ink-2); cursor: pointer; }
.seg button:hover { background: #d4c9b6; }
.seg button[aria-pressed="true"] { background: #1f1d1a; color: var(--paper); border-color: #141312; }
.sort { display: flex; align-items: center; gap: .4rem; border: 1px solid #6b6254; background: #f5efe5; padding: .3rem .5rem; }
.sort span { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.sort select { border: 0; background: transparent; font: inherit; font-size: 12px; text-transform: uppercase; color: var(--ink); }
.drawer .tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
/* "Subject tags ▾": opens the tag row below; shows the tag in use when folded */
.tags-toggle { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #6b6254; background: #f5efe5; padding: .45rem .6rem; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; }
.tags-toggle:hover { background: #ebe3d5; }
.tags-toggle .tags-current { color: var(--blood); letter-spacing: .06em; }
body[data-page="reports"] .drawer .tools { margin-left: 0; }
.tags-toggle .chev { font-size: 11px; color: var(--ink); transition: transform .15s; }
.tags-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; border-top: 1px solid #c5baa8; padding-top: .7rem; }
.tags[hidden] { display: none; }
.tags button { font: inherit; font-size: 12px; padding: .15rem .5rem; border: 1px solid #8f8474; background: var(--paper); color: #2c2824; cursor: pointer; }
.tags button:hover { background: var(--ink); color: var(--paper); }
.tags button[aria-pressed="true"] { background: var(--blood-tint); border-color: var(--blood); color: var(--blood); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { position: relative; background: var(--card); border: 2px solid var(--rule); padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-right: 2.2rem; min-height: 22px; }
.card .code { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blood); }
.card h3 { font-family: var(--f-type); font-weight: 400; font-size: 18px; line-height: 1.25; text-transform: uppercase; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--blood); }
.card .meta { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px dashed var(--rule-soft); padding-bottom: .55rem; }
.card .photo { display: block; border: 1px solid var(--rule); background: #1a1714; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo span { position: absolute; left: .4rem; bottom: .4rem; background: rgba(20,19,18,.8); color: var(--paper); font-size: 9.5px; letter-spacing: .14em; padding: .2rem .4rem; text-transform: uppercase; }
.card p { margin: 0; font-size: 13px; line-height: 1.6; color: #2b2725; flex: 1; }
.card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--rule-faint); padding-top: .7rem; }
.card .foot .btn { font-size: 11px; padding: .45rem .7rem; }
.card .foot small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card:nth-child(3n+2) .stamp { transform: rotate(1.2deg); }
.card:nth-child(3n) .stamp { transform: rotate(-.6deg); }
.empty { border: 1px dashed var(--rule-soft); padding: 2rem; text-align: center; color: var(--ink-3); grid-column: 1 / -1; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1.25rem; border: 2px solid var(--rule); background: var(--paper-2); padding: .6rem .8rem; }
.pager .where-am-i { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pager .where-am-i b { color: var(--blood); }
.pager .pages { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager button { font-family: var(--f-type); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .65rem; border: 1px solid #7a7061; background: var(--card); color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { background: var(--paper-3); }
.pager button[aria-current="page"] { background: #1f1d1a; color: var(--paper); border-color: #141312; }
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------- sidebar ---------- */
aside { display: grid; gap: 1.25rem; }
.panel { position: relative; background: var(--card); border: 2px solid var(--rule); padding: 1rem; display: grid; gap: .75rem; }
.panel .head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.panel p { margin: 0; font-size: 13px; line-height: 1.6; color: #2b2725; }
.panel .who { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; align-items: center; }
.panel .who img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--rule); }
.panel .who b { font-family: var(--f-type); font-weight: 400; font-size: 18px; display: block; }
.panel .who small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.panel .btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.panel .btns .btn { flex: 1 1 auto; font-size: 11px; }
.onair { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: 10px; color: var(--blood); }
.onair::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blood); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.notice { border: 2px solid var(--blood); background: #f7e9e4; padding: 1rem; display: grid; gap: .5rem; }
.notice .label { color: var(--blood); }
.notice p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #4a2320; }

/* ---------- report (article) ---------- */
.back { font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); }
.back:hover { color: var(--blood); }
.report { position: relative; background: var(--card-hi); border: 2px solid var(--rule); box-shadow: 4px 4px 0 0 rgba(43,39,35,.18); padding: clamp(1rem, 4vw, 3rem); }
.report header { display: grid; gap: .6rem; max-width: 760px; }
.report h1 { font-family: var(--f-type); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 5vw, 48px); line-height: 1.05; }
.report .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .6rem; }
@media (max-width: 700px) { .report .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report .plate { max-width: 900px; }
.report .plate .frame { border: 0; }
/* "Listen instead": a narrated report's player, between the header and the text */
.listen { display: grid; gap: .75rem; max-width: 760px; margin-top: 1.8rem; padding: .85rem 1rem; background: #efe6d4; border: 2px solid var(--rule); border-top: 6px solid var(--blood); box-shadow: 3px 3px 0 0 rgba(43,39,35,.15); }
.listen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.listen > * { min-width: 0; }
.listen-play { flex: none; min-width: 11rem; justify-content: center; }
.listen-time { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.listen-info { display: grid; justify-items: start; gap: .3rem; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; color: var(--ink-3); }
.listen-by .platform { margin-left: .5em; vertical-align: middle; }
.listen-info a { color: var(--blood); text-underline-offset: 2px; }
/* several narrations: a tracklist, one row each (name, where it plays, length) */
.listen-choices { display: grid; gap: .4rem; max-width: 560px; }
.listen-choices > span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.listen-choices button { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .4rem .75rem; border: 1.5px solid var(--ink-2); background: transparent; color: var(--ink-2); text-align: left; cursor: pointer; }
.listen-choices button:hover { background: rgba(43, 39, 35, .08); }
.listen-choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.listen-choices .n { font-family: var(--f-type); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.listen-choices .m { display: inline-flex; align-items: center; gap: .5rem; flex: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.listen-choices .m svg { width: 16px; height: 16px; }
.listen-screen.yt { aspect-ratio: 16 / 9; max-width: 640px; background: #0f0e0d; }
.listen-screen.sp { height: 152px; }
.listen-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.also-on-tape { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.also-on-tape a { color: var(--blood); text-underline-offset: 2px; }
.listen-bar + .also-on-tape, .listen-choices + .also-on-tape, .listen-screen + .also-on-tape { border-top: 1px dashed var(--rule-soft); padding-top: .6rem; }
.prose { max-width: 66ch; margin-top: 2rem; font-size: 16px; line-height: 1.75; color: #221f1c; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--f-type); font-weight: 400; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; margin: 2.6rem 0 1rem; }
/* divider above headings: rule – red diamond – rule */
.prose h2::before {
  content: '◆'; display: block; margin-bottom: 1.4rem; text-align: center;
  font-size: 12px; line-height: 12px; color: var(--blood);
  background:
    linear-gradient(var(--rule), var(--rule)) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) right center / calc(50% - 16px) 1px no-repeat;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h2:first-child::before { display: none; }
.prose .pull { font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1.5; border-left: 3px solid var(--blood); padding: .3rem 0 .3rem 1.1rem; margin: 1.6rem 0; color: var(--ink); }
.prose { overflow-x: clip; }
/* photos: clipped prints, tilted and nudged off-centre, alternating */
.prose figure, .report .plate {
  --tilt: -1.3deg; --clip-left: 14%;
  position: relative; width: min(92%, 620px); margin: 2.6rem 0 2.2rem 2%;
  background: #fbf8f1; border: 1px solid #cfc4b2; padding: .6rem .6rem .5rem;
  box-shadow: 3px 4px 0 rgba(43, 39, 35, .18), 0 1px 3px rgba(0, 0, 0, .12);
  transform: rotate(var(--tilt));
}
.prose figure:nth-of-type(even) { --tilt: 1.1deg; --clip-left: 72%; margin-left: 7%; }
.prose figure:nth-of-type(3n) { --tilt: -.6deg; --clip-left: 40%; margin-left: 4%; }
.report .plate { --tilt: -.7deg; --clip-left: 8%; width: auto; margin: 2rem 1% 0; }
.prose figure::before, .report .plate::before,
.prose figure::after, .report .plate::after {
  content: ''; position: absolute; z-index: 2; left: var(--clip-left);
  border: 2.5px solid #6d665e; border-radius: 9px; transform: rotate(-3deg);
}
.prose figure::before, .report .plate::before { top: -20px; width: 15px; height: 46px; }
.prose figure::after, .report .plate::after { top: -13px; margin-left: 3.5px; width: 8px; height: 31px; border-color: #948c82; border-radius: 6px; }
.prose figcaption { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: .45rem; }
.prose h3 { font-family: var(--f-type); font-weight: 400; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; margin: 2rem 0 .8rem; color: var(--blood); }
.prose h3::before { content: ''; display: block; margin-bottom: 1.1rem; border-top: 1px dashed var(--rule-soft); }
.prose h2 + h3::before { display: none; }
.prose h4 { font-family: var(--f-mono); font-weight: 700; font-style: italic; font-size: 16.5px; letter-spacing: .01em; margin: 1.8rem 0 .6rem; color: var(--ink); }
.prose a { color: var(--blood); text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { font-family: var(--f-serif); font-style: italic; font-size: 18px; line-height: 1.55; border-left: 3px solid var(--blood); margin: 1.6rem 0; padding: .3rem 0 .3rem 1.1rem; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 3px double var(--rule); margin: 2rem 0; }
.prose figure img { width: 100%; height: auto; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 1.6rem 0; }
.prose .gallery .gallery-item { width: auto; margin: 1rem 0 0; }
.prose .gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
/* sketches: ink drawings in a witness's own words (brand/sketch-style/STYLE.md).
   Photos are prints clipped to the file; sketches are drawn straight onto the page, so no
   print, clip or tilt. The drawing is multiplied onto the paper and its edges feathered, so
   its off-white background disappears into the card. Each sits centred just before the
   paragraph it illustrates, on every screen, so it lands as a reveal. 520px keeps the
   900px files sharp. */
.prose figure.sketch {
  width: min(100%, 520px); margin: 2rem auto 2.2rem; padding: 0;
  background: none; border: 0; box-shadow: none; transform: none;
}
.prose figure.sketch::before, .prose figure.sketch::after { display: none; }
.prose figure.sketch img {
  display: block; mix-blend-mode: multiply; filter: brightness(1.03) blur(0);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
  transition: opacity 1s ease-out, filter 1s ease-out;
}
/* set by main.js until the sketch scrolls into view: it then develops like ink */
.prose figure.sketch.ink-pending img { opacity: 0; filter: brightness(1.03) blur(5px); }
.evidence { display: grid; gap: .4rem; justify-items: start; border: 2px solid var(--rule); background: var(--paper-2); padding: .9rem 1rem; margin: 1.6rem 0; box-shadow: 3px 3px 0 0 rgba(43,39,35,.15); }
.evidence .label { color: var(--blood); }
.evidence p { margin: 0; font-size: 14px; line-height: 1.6; }
.evidence a { font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--btn-dark); color: var(--paper); padding: .5rem .85rem; }
.evidence a:hover { background: var(--btn-dark-hi); }
.evidence[data-yt], .evidence[data-sp] { justify-items: stretch; }
.report .evidence.hero { max-width: 900px; margin: 2rem 0 0; }
.prose .side-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.15em; }
/* inline YouTube player: thumbnail + play button, swapped for the real player on click */
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #1a1714; border: 1px solid var(--rule); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.spotify { aspect-ratio: auto; height: 352px; border: 0; background: none; }   /* Spotify's full player is 352px tall */
.player-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #1a1714; cursor: pointer; display: grid; place-items: center; text-decoration: none; }
.player-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-start img.missing { display: none; }
.player-start .play { position: relative; display: grid; justify-items: center; gap: .5rem; color: var(--paper); font-family: var(--f-type); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.player-start .play::before { content: '▶'; display: grid; place-items: center; width: 64px; height: 64px; padding-left: 5px; box-sizing: border-box; border-radius: 50%; background: var(--blood); border: 3px solid var(--paper); font-size: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.5); transition: transform .15s; }
.player-start:hover .play::before, .player-start:focus-visible .play::before { transform: scale(1.08); }
.player-start:hover img { filter: sepia(15%) contrast(110%); }
.file-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.file-nav a { display: grid; gap: .2rem; border: 2px solid var(--rule); background: var(--card); padding: .9rem 1rem; text-decoration: none; }
.file-nav a:hover { background: var(--paper-2); }
.file-nav .next { text-align: right; grid-column: 2; }
.file-nav b { font-family: var(--f-type); font-weight: 400; font-size: 16px; text-transform: uppercase; }
@media (max-width: 600px) { .file-nav { grid-template-columns: minmax(0, 1fr); } .file-nav .next { text-align: left; grid-column: auto; } }

/* ---------- tapes ---------- */
.intro { max-width: 70ch; display: grid; gap: .6rem; }
.intro h1 { font-family: var(--f-type); font-weight: 400; font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; }
.intro p { margin: 0; font-family: var(--f-serif); font-size: 15px; line-height: 1.75; color: #3b352e; }
#decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.5rem; align-items: stretch; }
/* cassette shell: rounded plastic, screws near each corner */
.cassette {
  --screw: radial-gradient(circle, #8a8279 0 2.5px, #3a342d 3px 4px, transparent 4.5px);
  display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem 1.1rem 0; color: var(--paper);
  border-radius: 16px; border: 2px solid #141312; box-shadow: 4px 4px 0 rgba(43, 39, 35, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  background:
    var(--screw) 8px 8px / 12px 12px no-repeat, var(--screw) calc(100% - 8px) 8px / 12px 12px no-repeat,
    var(--screw) 8px calc(100% - 8px) / 12px 12px no-repeat, var(--screw) calc(100% - 8px) calc(100% - 8px) / 12px 12px no-repeat,
    linear-gradient(#34302b, #24201d);
  overflow: hidden;
}
/* paper label with the window cut out of it */
.cassette-label {
  /* grows to fill spare height, so cassettes side by side line up their video and buttons */
  flex: 1 0 auto;
  display: flex; flex-direction: column; border-radius: 6px 6px 4px 4px;
  background: #efe6d4;
  border-top: 8px solid var(--blood); color: var(--ink); padding: .55rem .8rem .8rem;
}
.cassette-label .side { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blood); }
.cassette-label .side span { color: var(--ink-3); }
.cassette-label .side .side-name { color: var(--blood); }
.cassette-label .narrator { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* single short lines: sit the text just above the rule at the bottom of their line */
.label-lines .narrator, .label-lines .flip-hint { box-sizing: border-box; height: var(--lh); line-height: 1; padding: 0; padding-top: calc(var(--lh) - 1em - 7px); margin: 0; }
/* narrator on the left, the YouTube / Spotify mark on the right */
.label-lines .narrator { display: flex; justify-content: space-between; align-items: baseline; gap: .8em; white-space: nowrap; }
.label-lines .narrator > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.platform { display: inline-flex; align-items: center; gap: .4em; flex: none; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.platform svg { width: 16px; height: 16px; margin: -4px 0 -3px; }
/* no narrator line: the mark sits at the end of the title's last line instead */
.cassette-label h2 { display: flex; align-items: flex-end; gap: .8rem; }
.cassette-label h2 .t { flex: 1; text-wrap: balance; }
.cassette-label h2 .platform { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; line-height: var(--lh); }
/* keep the flip line on its ruled line on narrow screens */
.label-lines .flip-hint { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sides { display: inline-flex; border: 1.5px solid var(--ink-2); }
.sides button {
  font-family: var(--f-type); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .7rem; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.sides button + button { border-left: 1.5px solid var(--ink-2); }
.sides button:hover { background: rgba(43, 39, 35, .08); }
.sides button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.flip-hint {
  align-self: flex-start; border: 0; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--blood); text-align: left;
}
.flip-hint span { text-decoration: underline; text-underline-offset: 2px; }
.flip-hint:hover span { text-decoration-thickness: 2px; }
.cassette.side-b .cassette-label { border-top-color: var(--sepia); }
.cassette.flipping { animation: flip-tape .45s ease-in-out; }
@keyframes flip-tape { 50% { transform: scaleX(0.04); } }
/* writing area: one rule per text line, continuing down to the tape window */
.label-lines {
  --lh: 28px; flex: 1; display: flex; flex-direction: column; margin: .3rem 0 .8rem;
  background: repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), rgba(139, 30, 25, .2) calc(var(--lh) - 1px) var(--lh));
  min-height: calc(var(--lh) * 2);
}
.cassette-label h2 { font-family: var(--f-type); font-weight: 400; font-size: clamp(17px, 2.2vw, 21px); line-height: var(--lh); text-transform: uppercase; margin: 0; position: relative; top: 2px; }
.cassette-window {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem;
  padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid #141312;
  background: linear-gradient(rgba(255, 255, 255, .06), transparent 40%), linear-gradient(#3b322c, #221c18);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55);
}
.cassette-window .counter { border: 1px solid #141312; background: #fbf6ed; color: var(--ink); padding: .25rem .55rem; font-family: var(--f-type); font-size: 15px; letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; min-width: 6.5ch; }
/* a spool: brown tape pack (sized by --fill) around a toothed white hub */
.spool { position: relative; width: 78px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.spool::before {
  content: ''; position: absolute; width: calc(100% * var(--fill)); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #5a3e2b 0 1px, #3e2a1d 1px 3px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
  transition: width .5s linear;
}
.reel {
  position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #efe6d4;
  background: radial-gradient(circle, #1a1714 0 5px, transparent 5.5px), repeating-conic-gradient(#efe6d4 0 40deg, #b9ad99 40deg 60deg);
}
.deck.playing .reel { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.screen { position: relative; aspect-ratio: 16 / 9; background: #0f0e0d; border: 2px solid #141312; border-radius: 4px; overflow: hidden; cursor: pointer; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.screen.has-video { cursor: auto; }
.screen.has-audio iframe { position: absolute; inset: auto 0 0; height: 152px; }   /* Spotify's compact player over the cover */
/* trapezoid head section along the bottom edge, with the two drive holes */
.cassette-head {
  position: relative; align-self: center; width: 86%;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem;
  padding: .85rem 3.4rem 1rem; background: linear-gradient(#433c36, #37312c);
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}
.cassette-head::before, .cassette-head::after {
  content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: #0f0e0d; box-shadow: 0 0 0 3px #5a534b; transform: translateY(-50%);
}
.cassette-head::before { left: 1.3rem; }
.cassette-head::after { right: 1.3rem; }
.cassette-head { flex-wrap: nowrap; }
.cassette-head .btn { min-width: 8.5rem; white-space: nowrap; }
.cassette-head .btn.light { background: #efe6d4; }
.cassette { container-type: inline-size; }
@media (max-width: 560px) { .cassette { padding: .9rem .8rem 0; } }
@container (max-width: 480px) {
  .spool { width: 60px; }
  .reel { width: 22px; height: 22px; }
  .cassette-head { width: 100%; padding-inline: 2.6rem; }
  .cassette-head::before { left: .8rem; } .cassette-head::after { right: .8rem; }
  .cassette-head .btn { min-width: 0; padding-inline: .6rem; font-size: 10.5px; letter-spacing: .06em; }
}

/* ---------- reporter ---------- */
.personnel { background: var(--card-hi); border: 2px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; position: relative; }
@media (max-width: 1100px) { .personnel { grid-template-columns: minmax(0, 1fr); } }
/* photo fills its column and stretches to the height of the bio beside it */
.personnel .mug { border: 2px solid var(--rule); background: var(--card); padding: .6rem; align-self: stretch; display: flex; flex-direction: column; }
/* the photo fills the frame to the height of the text beside it (phones: square, above the text) */
.personnel .mug img { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
@media (max-width: 1100px) { .personnel .mug { max-width: 520px; } .personnel .mug img { flex: none; aspect-ratio: 1; } }
.personnel .mug figcaption { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: .4rem; display: flex; justify-content: space-between; }
.personnel h1 { font-family: var(--f-type); font-weight: 400; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; }
.personnel .bio { font-family: var(--f-serif); font-size: 16px; line-height: 1.7; max-width: 60ch; margin: 0; }
.personnel .bio a { color: var(--blood); text-underline-offset: 2px; }
.personnel .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
@media (max-width: 560px) { .personnel .specs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.form-sheet { background: var(--card-hi); border: 2px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; position: relative; }
@media (max-width: 860px) { .form-sheet { grid-template-columns: minmax(0, 1fr); } }
.form-sheet h1 { font-family: var(--f-type); font-weight: 400; font-size: clamp(30px, 4vw, 44px); }
.form-sheet .lede { font-family: var(--f-serif); font-size: 15px; line-height: 1.75; margin: 0; }
form { display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: .35rem; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px dashed #4a433d; padding: .4rem 0; border-radius: 0;
}
.field textarea { border: 1px solid #8f8474; background: #fbf7ef; padding: .6rem; min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blood); border-bottom-style: solid; }
.field input::placeholder, .field textarea::placeholder { color: #9e9485; }
.check { display: flex; align-items: center; gap: .6rem; font-size: 13px; cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid #4a433d; background: var(--card); margin: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.check input:checked { background: var(--blood); border-color: var(--blood); }
.check input:checked::after { content: 'X'; color: var(--card-hi); font-family: var(--f-type); font-size: 12px; line-height: 1; transform: translate(1px, 0) rotate(-6deg); }
.sent { border: 1px dashed var(--blood); background: var(--blood-tint); padding: .8rem 1rem; font-size: 13px; color: #4a2320; }

/* ---------- footer ---------- */
footer.site { background: #e4dbcc; border-top: 2px solid var(--rule); font-size: 12px; }
footer.site .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 2rem; padding-block: 2rem 1.5rem; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: minmax(0, 1fr); } }
footer.site h4 { margin: 0 0 .6rem; font-family: var(--f-type); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
footer.site p { margin: 0; font-family: var(--f-serif); font-style: italic; line-height: 1.7; color: #4d463d; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
footer.site ul a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-soft); }
footer.site ul a:hover { color: var(--blood); text-decoration-color: currentColor; }
footer.site .notice p { font-family: var(--f-mono); font-style: normal; }
footer.site .base { border-top: 1px solid var(--rule-soft); padding-block: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Incident Reports page (reuses the archive list) ---------- */
.reports-intro { display: none; }
body[data-page="reports"] .reports-intro { display: grid; }
body[data-page="reports"] #view-archive :is(.advisory, .ledger, .dossier, .seg) { display: none; }

/* ---------- phone layout ---------- */
@media (max-width: 700px) {
  #view-archive .advisory { display: none; }
  .masthead .wrap { padding-block: 1.1rem; gap: .9rem; }
  .query { width: 100%; }
  .query .btn { display: none; }
  .query label { flex: 1; min-width: 0; }
  .query input { flex: 1; width: auto; min-width: 0; max-width: none; }
  /* home shows the newest file only; the Reports tab and search show the list */
  #view-archive .ledger, .reporter-panel, .side-notice { display: none; }
  body[data-page="archive"] .archive-list { display: none; }
  body[data-page="files"] #view-archive .dossier { display: none; }
}

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

/* ---------- witness statements (comments) ---------- */
.statements { background: var(--card-hi); border: 2px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1rem; box-shadow: 4px 4px 0 0 rgba(43,39,35,.12); }
.statements-intro { margin: 0; max-width: 66ch; font-family: var(--f-serif); font-size: 15px; line-height: 1.7; color: #3b352e; }
.statement-list { display: grid; gap: .8rem; }
.statements-empty { margin: 0; padding: 1rem; border: 1px dashed var(--rule-soft); color: var(--ink-3); font-size: 13px; text-align: center; }
.statement-card { background: #fbf8f1; border: 1px solid #cfc4b2; padding: .9rem 1rem; display: grid; gap: .5rem; box-shadow: 2px 2px 0 rgba(43,39,35,.1); }
.statement-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; border-bottom: 1px dashed var(--rule-soft); padding-bottom: .4rem; }
.statement-card header b { font-family: var(--f-type); font-weight: 400; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.statement-card header time { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.statement-card p { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.reporter-reply { border-left: 3px solid var(--blood); background: #f0e6d6; padding: .6rem .8rem; display: grid; gap: .25rem; }
.reporter-reply .label { color: var(--blood); font-family: var(--f-type); font-weight: 400; }
.reporter-reply p { font-family: var(--f-serif); font-style: italic; font-size: 14.5px; }
.statement-form { display: grid; gap: .9rem; border-top: 1px solid var(--rule); padding-top: 1rem; max-width: 720px; }
.statement-form textarea { min-height: 7rem; }
.st-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.statement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.statement-actions small { font-size: 11.5px; color: var(--ink-3); }
.statement-note { margin: 0; border: 1px dashed var(--rule-soft); background: rgba(43,39,35,.04); padding: .7rem .9rem; font-size: 13px; }
.statement-note.bad { border-color: var(--blood); background: var(--blood-tint); color: #4a2320; }

/* moderation desk (#moderate) */
.moderate-sheet { background: var(--card-hi); border: 2px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1rem; }
.moderate-sheet h1 { font-family: var(--f-type); font-weight: 400; font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; margin: 0; }
.moderate-sheet p { margin: 0; }
.mod-head { font-family: var(--f-type); font-weight: 400; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin: 1rem 0 0; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.mod-list { display: grid; gap: .8rem; }
.mod-card header a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blood); }
.mod-name { font-family: var(--f-type); font-weight: 400; font-size: 16px; text-transform: uppercase; }
.mod-card textarea { min-height: 4rem; }
.mod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.mod-actions .btn { font-size: 11px; padding: .45rem .75rem; }
.mod-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 12.5px; color: var(--blood); }
.mod-confirm[hidden] { display: none; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--blood); text-decoration: underline; cursor: pointer; }
.btn:disabled { opacity: .4; cursor: default; }

/* phone: shorter, centred line above the title */
@media (max-width: 700px) {
  .masthead .brand, .masthead .brand > div { width: 100%; }
  .brand-kicker, .masthead .brand h1 { text-align: center; }
  .brand-kicker .kicker-extra { display: none; }
}
.sent { border-color: var(--rule-soft); background: rgba(43,39,35,.04); color: var(--ink); }
.sent.bad { border-color: var(--blood); background: var(--blood-tint); color: #4a2320; }

/* ---------- phone comfort (≤700px): tap sizes, readable labels, no iPhone zoom ---------- */
@media (max-width: 700px) {
  /* iPhone Safari zooms into any text box under 16px — keep them all at 16px */
  input, textarea, select, .query input, .field input, .field textarea, .sort select { font-size: 16px; }
  .query label { padding-block: .6rem; padding-inline: .6rem; gap: .4rem; }
  .query .search-files { display: none; }
  .query label span { letter-spacing: .06em; }   /* "SEARCH:" on phones, "SEARCH FILES:" on desktop */

  /* buttons and links big enough for a thumb (~44px) */
  .btn { min-height: 44px; padding-inline: 1rem; }
  .cassette-head .btn { min-height: 40px; font-size: 11.5px; }
  .tags button { min-height: 38px; padding: .3rem .65rem; }
  .tags-toggle { min-height: 44px; justify-content: space-between; }
  .drawer .tools { width: 100%; margin-left: 0; }
  .drawer .tools > * { flex: 1 1 auto; min-width: 0; }
  .sort select { flex: 1; min-width: 0; }
  .sort { padding-block: .2rem; }
  .sort select { padding-block: .55rem; }
  .sides button { padding: .55rem .85rem; }
  .back { display: inline-block; padding-block: .6rem; }
  .flip-hint { padding-block: .35rem; }
  .check { padding-block: .6rem; }
  .check input { width: 22px; height: 22px; }
  .pager button { min-height: 40px; }
  footer.site ul { gap: 0; }
  footer.site ul a { display: inline-block; padding-block: .5rem; }
  footer.site .stamp { font-size: 11px; padding: .35rem .6rem; }

  /* small labels up a notch so they're readable */
  .specs { font-size: 11.5px; }
  .specs b { font-size: 12px; }
  .stamp.small { font-size: 10.5px; }
  .card .code, .card .meta, .cassette-label .side { font-size: 11px; }
  footer.site .base { font-size: 11.5px; }
  .personnel .mug figcaption, .plate figcaption { font-size: 11px; }

  /* tab menu: fade the edge that has more tabs hidden behind it */
  .tabs .scroller.more-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .tabs .scroller.more-left { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
  .tabs .scroller.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
}

/* narrow phones: a drawn magnifying glass instead of the word "SEARCH:", so the example text fits */
@media (max-width: 420px) {
  .query label > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .query label { position: relative; padding-left: 2.3rem; }
  .query label::before, .query label::after { content: ''; position: absolute; pointer-events: none; }
  .query label::before { left: .75rem; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid #635b51; border-radius: 50%; }
  .query label::after { left: 1.55rem; top: 50%; width: 7px; height: 2px; margin-top: 5px; background: #635b51; transform: rotate(45deg); transform-origin: left center; }
}

/* ---------- share buttons (report & tape pages) ---------- */
.file-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.share-btn { gap: .5rem; }
.share-btn.small { font-size: 11px; padding: .45rem .75rem; }
/* drawn "share" arrow: a box with an arrow leaving the top */
.share-icon { position: relative; width: 12px; height: 12px; border: 1.8px solid currentColor; border-top-color: transparent; flex: none; margin-top: 3px; }
.share-icon::before { content: ''; position: absolute; left: 50%; top: -8px; width: 1.8px; height: 11px; background: currentColor; transform: translateX(-50%); }
.share-icon::after { content: ''; position: absolute; left: 50%; top: -8px; width: 6px; height: 6px; border-left: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: translateX(-50%) rotate(45deg); transform-origin: center; margin-left: 0; }
.share-bar { max-width: 66ch; margin-top: 2.2rem; padding-top: 1.1rem; border-top: 3px double var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; }
.share-bar > span { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--ink-3); }

/* ---------- photo viewer (js/lightbox.js) ---------- */
.prose figure img, .prose .gallery img { cursor: zoom-in; }
.prose figure img:focus-visible { outline: 3px solid var(--blood); outline-offset: 3px; }
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) .5rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
  background: rgba(15, 14, 13, .97);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: lb-in .18s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb-print {
  grid-column: 2; justify-self: center; margin: 0; max-width: 100%;
  background: #fbf8f1; padding: .6rem .6rem .5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  display: grid; gap: .45rem;
}
.lb-print img { display: block; max-width: min(1100px, calc(100vw - 9rem)); max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lb-print figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); width: 0; min-width: 100%; overflow-wrap: anywhere; }
.lb-count { white-space: nowrap; }
.lightbox button {
  border: 1px solid rgba(239, 232, 220, .5); background: rgba(26, 25, 24, .75); color: var(--paper);
  font-family: var(--f-type); cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: var(--blood); border-color: var(--blood); }
.lightbox button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .6rem); right: .6rem; width: 46px; height: 46px; font-size: 20px; }
.lb-prev, .lb-next { width: 44px; height: 64px; font-size: 34px; line-height: 1; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
@media (max-width: 700px) {
  /* phones: photo uses the full width; arrows sit along the bottom edge */
  .lightbox { grid-template-columns: minmax(0, 1fr); padding-inline: .6rem; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem); }
  .lb-print { grid-column: 1; }
  .lb-print img { max-width: calc(100vw - 2.4rem); max-height: calc(100dvh - 13rem); }
  .lb-prev, .lb-next { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); width: 56px; height: 48px; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { left: calc(50% + 8px); }
}

/* moderation desk: tabs + incident submissions */
.desk-tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--rule); padding-bottom: .6rem; }
.desk-tabs button { font-family: var(--f-type); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: .55rem .9rem; border: 1px solid #7a7061; background: var(--paper-2); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.desk-tabs button:hover { background: var(--paper-3); }
.desk-tabs button[aria-selected="true"] { background: #1f1d1a; color: var(--paper); border-color: #141312; }
.desk-intro { font-size: 13px; color: var(--ink-3); }
.sub-card { background: #fbf8f1; border: 1px solid #cfc4b2; padding: .9rem 1rem; display: grid; gap: .5rem; box-shadow: 2px 2px 0 rgba(43,39,35,.1); }
.sub-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; border-bottom: 1px dashed var(--rule-soft); padding-bottom: .4rem; }
.sub-card header b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blood); }
.sub-card header time { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sub-who { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.sub-status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--rule-soft); padding: .15rem .45rem; color: var(--ink-3); }
.sub-email { font-size: 13px; }
.sub-email a { color: var(--blood); overflow-wrap: anywhere; }
.sub-card > p { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.sub-card textarea { min-height: 3.5rem; }
