/* After Theft, night shift.
   Layout idea: a desk at night. The page is dark; everything you can read as a record is a lit sheet of paper on it. */
@font-face { font-family: 'Chonburi'; src: url('fonts/chonburi-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Chonburi'; src: url('fonts/chonburi-thai-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 400; src: url('fonts/sarabun-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Sarabun'; font-weight: 400; src: url('fonts/sarabun-thai-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 400; font-style: italic; src: url('fonts/sarabun-latin-400-italic.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Sarabun'; font-weight: 400; font-style: italic; src: url('fonts/sarabun-thai-400-italic.woff2') format('woff2'); font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 500; src: url('fonts/sarabun-latin-500-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Sarabun'; font-weight: 500; src: url('fonts/sarabun-thai-500-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 700; src: url('fonts/sarabun-latin-700-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: 'Sarabun'; font-weight: 700; src: url('fonts/sarabun-thai-700-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  color-scheme: dark;
  --night: #1a1620;      /* the room */
  --desk: #26202f;       /* raised surfaces */
  --rule: #40374d;       /* lines on the dark */
  --smoke: #b9afc4;      /* secondary text on the dark */
  --paper: #fffaf0;      /* lit paper */
  --paper-edge: #e6dac3;
  --ink: #25212b;        /* text on paper */
  --ink-soft: #645b6e;
  --lamp: #ff8a32;       /* the light */
  --ember: #ce4400;      /* needs attention */
  --peach: #ffd3a8;
  --stamp: #2b4c8f;      /* rubber-stamp ink: searched, on record */
  --display: 'Chonburi', 'Sarabun', Georgia, serif;
  --text: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.7rem; --step-3: 2.3rem; --step-4: clamp(2.4rem, 7vw, 4.2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font-family: var(--text); font-size: var(--step-0); line-height: 1.6;
  background-image: radial-gradient(120% 60% at 78% 0%, rgba(255, 138, 50, .13), transparent 62%);
  background-repeat: no-repeat;
}
:lang(th) body, html:lang(th) body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; line-height: 1.12; }
html:lang(th) h1, html:lang(th) h2 { line-height: 1.4; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--stamp); }

.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--ink); padding: .5rem 1rem; z-index: 10; }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(8px); }
.masthead-row { display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .7rem; }
.wordmark { font-family: var(--display); font-size: 1.45rem; text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark span { color: var(--lamp); }
.wordmark.small { font-size: 1.1rem; }
.masthead-tools { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.mainnav { display: flex; gap: .25rem 1.25rem; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { text-decoration: none; color: var(--smoke); white-space: nowrap; padding: .3rem 0; border-bottom: 2px solid transparent; font-size: var(--step--1); font-weight: 500; }
.mainnav a:hover { color: var(--paper); }
.mainnav a[aria-current] { color: var(--paper); border-color: var(--lamp); }
.lang { background: none; border: 0; color: var(--smoke); font: inherit; font-size: var(--step--1); cursor: pointer; padding: .4rem .2rem; text-decoration: underline; text-underline-offset: 3px; }
.lang:hover { color: var(--paper); }
@media (min-width: 60rem) {
  .mainnav { order: 0; width: auto; flex: 1; justify-content: center; }
  .masthead-tools { margin-left: 0; }
}

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid var(--lamp); background: var(--lamp); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.button:hover { background: var(--peach); border-color: var(--peach); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 2.4rem; padding: .3rem 1rem; font-size: var(--step--1); }
.button.ghost { background: transparent; color: var(--paper); border-color: var(--rule); }
.button.ghost:hover { border-color: var(--paper); background: transparent; }
.button.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.dark:hover { background: var(--stamp); border-color: var(--stamp); }
.button[disabled] { opacity: .35; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.textlink { color: var(--lamp); font-weight: 700; text-underline-offset: 4px; }
.textlink.dark { color: var(--ink-soft); font-weight: 500; }

/* hero */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) 0; overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; }
.hero-copy { display: grid; gap: 1.2rem; align-content: center; max-width: 36rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--paper); max-width: 34rem; }
html:lang(th) .lede { line-height: 1.75; font-size: 1.15rem; }
.hint { color: var(--smoke); font-size: var(--step--1); max-width: 30rem; }
.hero-art { position: relative; min-height: 27rem; margin-inline: -1rem; }
.detective { position: absolute; right: -6.5rem; bottom: 0; height: 100%; width: auto; max-width: none; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(75% 75% at 55% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(75% 75% at 55% 45%, #000 62%, transparent 100%); }
.hero-report { position: absolute; left: 1rem; bottom: 1.25rem; width: min(15.5rem, 62%); transform: rotate(-3deg); animation: settle .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-tags .tag { position: absolute; width: 5.6rem; display: none; }
.hero-tags .t1 { left: 1.75rem; top: .75rem; transform: rotate(-8deg); animation: settle .7s .12s cubic-bezier(.2, .8, .2, 1) both; --r: -8deg; }
.hero-tags .t2 { left: 8rem; top: 2.2rem; transform: rotate(7deg); animation: settle .7s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes settle { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-report, .hero-tags .tag { animation: none; } .button { transition: none; } }
@media (min-width: 56rem) { .hero-tags .tag { display: grid; } }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; }
  .hero-art { min-height: 38rem; margin-inline: 0; }
  .detective { right: -5rem; }
  .hero-report { left: 0; bottom: 2.5rem; width: 19.5rem; }
  .hero-tags .t2 { left: 9.5rem; top: 0; }
  .hero-tags .tag { width: 6.6rem; }
  .report.compact .report-head { display: flex; padding-top: 0; }
  .report.compact .stamp { position: static; margin: .35rem .3rem 0 0; font-size: .62rem; }
  .hero-tags .t1 { left: .5rem; top: 2rem; }
}

/* paper */
.paper { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 1.25rem; box-shadow: 0 0 0 1px var(--paper-edge), 0 1.4rem 2.8rem -1rem rgba(0, 0, 0, .7), 0 0 5rem -1.5rem rgba(255, 138, 50, .35); }
.paper p + p, .paper h4 + p { margin-top: .5rem; }
.paper h4 { font-size: var(--step-0); margin-top: 1.1rem; }
.doc-kind { font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }
.report-head, .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.report-head h3 { margin-top: .1rem; }
.report-verdict { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; margin-block: .9rem .7rem; }
html:lang(th) .report-verdict { line-height: 1.5; }
.stamp { flex: none; display: inline-block; border: 2px solid var(--stamp); outline: 1px solid var(--stamp); outline-offset: 2px; color: var(--stamp); padding: .1rem .5rem; border-radius: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(4deg); white-space: nowrap; margin: .35rem .3rem 0 0; }
.stamp.ember { border-color: var(--ember); outline-color: var(--ember); color: var(--ember); }
.sources { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sources caption { text-align: left; color: var(--ink-soft); padding-bottom: .35rem; }
.sources th, .sources td { text-align: left; font-weight: 400; padding: .42rem 0; border-top: 1px dashed var(--paper-edge); vertical-align: top; }
.sources td { text-align: right; padding-left: .75rem; white-space: nowrap; }
.res.quiet { color: var(--ink-soft); }
.res.finding { color: var(--ember); font-weight: 700; }
.res.unchecked { font-style: italic; }
.not-covered, .more-rows, .report-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: .8rem; }
.report-note a { color: var(--ember); font-weight: 700; }
.not-covered { border-top: 1px solid var(--paper-edge); padding-top: .7rem; }
.report.compact { padding: 1rem; }
.report.compact .report-verdict { font-size: var(--step-1); margin-block: .5rem .4rem; }
.report.compact h3 { font-size: 1rem; }
.report.compact .sources { font-size: .8rem; }
.report.compact .sources th, .report.compact .sources td { padding: .26rem 0; }
.report.compact .sources caption { display: none; }
.report.compact .stamp { font-size: .6rem; position: absolute; right: .6rem; top: .7rem; margin: 0; }
.report.compact { position: relative; }
.report.compact .report-head { display: block; padding-top: 1.5rem; }
.report.compact .more-rows { margin-top: .4rem; font-size: .8rem; }

/* tags */
.tag { display: grid; justify-items: center; gap: .15rem; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 13px; padding: 1.1rem .5rem .55rem; position: relative; font: inherit; text-align: center; box-shadow: 0 .9rem 1.6rem -.6rem rgba(0, 0, 0, .75); }
.tag::before { content: ''; position: absolute; top: .38rem; left: 50%; width: .62rem; height: .62rem; margin-left: -.31rem; border-radius: 50%; background: var(--night); border: 2px solid var(--ink); }
.tag img { width: 74%; }
.tag b { font-size: .85rem; line-height: 1.2; }
.tag-id { font-size: .68rem; letter-spacing: .06em; color: var(--ink-soft); border-top: 1.5px dashed var(--ink); width: 100%; padding-top: .2rem; display: flex; gap: .3rem; justify-content: center; align-items: center; }
.tag-id i { display: inline-block; width: 2.1rem; height: .55rem; background: var(--ink); border-radius: 1px; }
.tag.still { box-shadow: none; width: 5.2rem; flex: none; }
.tag.small { width: 4.4rem; }
.tag.still .tag-id i { width: 1.3rem; }
button.tag { cursor: pointer; transition: transform .15s ease; width: 100%; }
button.tag:hover { transform: rotate(-3deg) translateY(-3px); }
button.tag.on { background: var(--peach); outline: 3px solid var(--lamp); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { button.tag { transition: none; } button.tag:hover { transform: none; } }
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.4rem; max-width: 46rem; }
.picker.tight { margin-top: 0; }
@media (min-width: 44rem) { .picker { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* bands */
.band { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-top: 1px solid var(--rule); }
.band h2 + .prose { margin-top: .7rem; }
.prose { color: var(--smoke); max-width: 38rem; }
.prose.long { color: var(--paper); display: grid; gap: 1rem; font-size: var(--step-1); line-height: 1.6; }
.cadence { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.slip h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin-block: .1rem .5rem; }
@media (min-width: 48rem) {
  .cadence { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .slip:nth-child(1) { transform: rotate(-1.2deg); }
  .slip:nth-child(2) { transform: translateY(.9rem) rotate(.6deg); }
  .slip:nth-child(3) { transform: rotate(-.5deg); }
}
.split { display: grid; gap: 2rem; }
.split .textlink { display: inline-block; margin-top: 1rem; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; } }
.scope-mini { display: grid; gap: .9rem; }
.scope-mini li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.scope-mini b { font-family: var(--display); font-weight: 400; font-size: var(--step-1); }
.scope-mini span { color: var(--smoke); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.scope-mini i { grid-column: 1 / -1; height: .5rem; border-radius: 99px; background: var(--desk); position: relative; overflow: hidden; }
.scope-mini i::after { content: ''; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--ember), var(--lamp)); border-radius: 99px; }
.story-teaser { display: grid; gap: 1rem; }
.story-teaser .prose { font-family: var(--display); color: var(--paper); font-size: var(--step-2); line-height: 1.3; max-width: 46rem; }
html:lang(th) .story-teaser .prose { line-height: 1.6; }

/* inner pages */
.page { padding-block: 1.5rem 4rem; display: grid; gap: 1.6rem; }
.page.narrow { max-width: 44rem; }
.page-head { display: grid; gap: .6rem; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.big-line { font-family: var(--display); font-size: var(--step-1); color: var(--peach); line-height: 1.3; }
.sample-badge { justify-self: start; font-size: var(--step--1); color: var(--peach); border: 1px dashed var(--rule); border-radius: 99px; padding: .15rem .8rem; }
.warning { color: var(--paper); background: color-mix(in srgb, var(--ember) 32%, var(--night)); border-left: 4px solid var(--lamp); padding: .7rem 1rem; border-radius: 4px; max-width: 40rem; font-weight: 500; }
.apptabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
.apptabs::-webkit-scrollbar { display: none; }
.apptabs a { flex: none; text-decoration: none; padding: .45rem 1rem; border-radius: 99px; border: 1px solid var(--rule); color: var(--smoke); font-size: var(--step--1); font-weight: 500; }
.apptabs a[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 700; }
.two { display: grid; gap: 1.6rem; align-items: start; }
.two > aside { display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .two { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.section-head h2, .panel h2 { font-size: var(--step-1); }
.count { color: var(--smoke); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.panel { background: var(--desk); border: 1px solid var(--rule); border-radius: 10px; padding: 1.15rem; display: grid; gap: .6rem; justify-items: start; }
.panel .section-head { width: 100%; margin: 0; }

.items { display: grid; gap: .9rem; }
.item { display: flex; gap: 1rem; align-items: flex-start; background: var(--desk); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; }
.item h3 { font-size: var(--step-0); }
.serial { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--peach); font-size: var(--step--1); margin-top: .15rem; }
.marks { color: var(--smoke); font-size: var(--step--1); margin-top: .3rem; }
.item-photo, .photo-preview img { margin-top: .6rem; border-radius: 6px; max-height: 9rem; }
.steps { display: grid; width: 100%; }
.steps li + li { border-top: 1px solid var(--rule); }
.steps label { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; cursor: pointer; font-size: var(--step--1); line-height: 1.5; }
.steps input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--lamp); flex: none; }
.steps input:checked + span { color: var(--smoke); }

/* form on paper */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 700; font-size: var(--step--1); }
.form input:not([type=file]), .form textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff; border: 0; border-bottom: 2px solid var(--ink); border-radius: 3px 3px 0 0; padding: .6rem .5rem; width: 100%; }
.form input[type=file] { font: inherit; font-weight: 400; }
.form ::placeholder { color: #8d8496; }

/* watch */
.desk { background: var(--desk); border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem; display: grid; gap: .9rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; max-width: 30rem; }
@media (min-width: 48rem) { .calendar { grid-template-columns: repeat(17, minmax(0, 1fr)); max-width: none; } }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; border: 0; background: var(--paper); color: var(--stamp); font: inherit; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; position: relative; }
.day::after { content: ''; position: absolute; inset: 3px; border: 1.5px solid var(--stamp); border-radius: 50%; opacity: .55; }
.day.kept { background: var(--lamp); color: var(--ink); }
.day.kept::after { border-color: var(--ink); }
.day.missed { background: transparent; color: var(--smoke); box-shadow: inset 0 0 0 1.5px var(--smoke); }
.day.missed::after { border-style: dashed; border-color: var(--smoke); }
.day[aria-pressed=true] { outline: 3px solid var(--lamp); outline-offset: 2px; }
.day.kept[aria-pressed=true] { outline-color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: var(--step--1); color: var(--smoke); }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend .day { width: 1.1rem; cursor: default; }
.legend .day::after { inset: 2px; }
.tabs { display: inline-flex; background: var(--desk); border: 1px solid var(--rule); border-radius: 99px; padding: .25rem; justify-self: start; }
.tabs button { font: inherit; font-size: var(--step--1); font-weight: 700; color: var(--smoke); background: none; border: 0; border-radius: 99px; padding: .45rem 1.1rem; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--paper); color: var(--ink); }
.reports { display: grid; gap: 1.2rem; max-width: 40rem; }
.day-nav { display: flex; gap: .6rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .8rem; margin-block: 1rem; padding-block: .8rem; border-block: 1px dashed var(--paper-edge); }
.figures dt { font-size: var(--step--1); color: var(--ink-soft); }
.figures dd { font-family: var(--display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.recap-list li { padding: .4rem 0; border-top: 1px dashed var(--paper-edge); display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); }
.recap-list span { color: var(--ink-soft); white-space: nowrap; }

/* findings */
.finding-list { display: grid; gap: 1.1rem; max-width: 52rem; }
.finding { display: grid; gap: 1rem; background: var(--desk); border: 1px solid var(--rule); border-left: 5px solid var(--smoke); border-radius: 10px; padding: 1.1rem; }
.finding.police-file { border-left-color: var(--lamp); }
.finding.watching { border-left-color: var(--peach); }
.finding.ruled-out { opacity: .78; }
@media (min-width: 40rem) { .finding { grid-template-columns: auto 1fr; } }
.finding-meta { color: var(--smoke); font-size: var(--step--1); }
.finding h2 { font-family: var(--text); font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin-block: .15rem .8rem; }
.compare { display: grid; gap: .9rem; }
@media (min-width: 40rem) { .compare { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.compare h3 { font-size: var(--step--1); color: var(--peach); font-weight: 700; }
.compare p { font-size: var(--step--1); color: var(--paper); }
.verdict { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.verdict button { font: inherit; font-size: var(--step--1); font-weight: 700; padding: .45rem .95rem; border-radius: 99px; border: 1.5px solid var(--rule); background: transparent; color: var(--paper); cursor: pointer; }
.verdict button:hover { border-color: var(--paper); }
.verdict button[aria-pressed=true] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* police file */
.document { max-width: 46rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.document h2 { font-size: var(--step-2); margin-top: .1rem; }
.document h3 { font-size: var(--step-0); margin-top: 1.5rem; margin-bottom: .4rem; padding-bottom: .25rem; border-bottom: 1.5px solid var(--ink); }
.doc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.doc-facts dt { font-size: var(--step--1); color: var(--ink-soft); }
.doc-facts dd { font-weight: 700; }
.doc-facts .blank { font-weight: 400; font-style: italic; color: var(--ink-soft); border-bottom: 1px dotted var(--ink-soft); }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.doc-table th { text-align: left; color: var(--ink-soft); font-weight: 500; padding: .3rem .6rem .3rem 0; }
.doc-table td { padding: .5rem .6rem .5rem 0; border-top: 1px dashed var(--paper-edge); vertical-align: top; }
.doc-table .serial { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc-list li { display: grid; gap: .1rem; padding: .5rem 0; border-top: 1px dashed var(--paper-edge); font-size: var(--step--1); }
.doc-list span { color: var(--ink-soft); }
@media (max-width: 34rem) {
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; padding: .5rem 0; border-top: 1px dashed var(--paper-edge); }
  .doc-table td { border: 0; padding: .05rem 0; white-space: normal; }
}

/* scope */
.scope-choice { display: grid; gap: .6rem; }
@media (min-width: 44rem) { .scope-choice { grid-template-columns: repeat(3, 1fr); } }
.scope-choice button { text-align: left; font: inherit; color: var(--paper); background: var(--desk); border: 1.5px solid var(--rule); border-radius: 10px; padding: .9rem 1rem; cursor: pointer; display: grid; gap: .1rem; }
.scope-choice b { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.scope-choice span { color: var(--smoke); font-size: var(--step--1); }
.scope-choice button[aria-checked=true] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.scope-choice button[aria-checked=true] span { color: var(--ink-soft); }
.source-list { margin-top: .8rem; }
.source-list li { padding: .42rem 0; border-top: 1px dashed var(--paper-edge); font-size: var(--step--1); color: var(--ink-soft); }
.source-list li.added { color: var(--ink); font-weight: 700; }

/* guide */
.guide-steps { counter-reset: s; display: grid; }
.guide-steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--rule); font-size: var(--step-1); line-height: 1.4; }
.guide-steps li::before { content: counter(s); font-family: var(--display); color: var(--lamp); font-size: var(--step-2); }

/* footer */
.footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; color: var(--smoke); font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; }
.footer .wordmark { color: var(--paper); }

/* in use */
.avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--desk); border: 1.5px solid var(--lamp); color: var(--peach); font-weight: 700; font-size: var(--step--1); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); margin: 0; background: var(--paper); color: var(--ink); font-weight: 700; padding: .7rem 1.2rem; border-radius: 99px; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .6), 0 0 0 2px var(--lamp); z-index: 20; max-width: calc(100% - 2rem); text-align: center; }
.case-ref { color: var(--smoke); font-size: var(--step--1); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.live { display: flex; align-items: center; gap: .6rem; color: var(--paper); font-weight: 500; }
.live i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 0 rgba(255, 138, 50, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgba(255, 138, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 50, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.lit-panel { border-color: var(--lamp); box-shadow: 0 0 3.5rem -1.5rem rgba(255, 138, 50, .55); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { font-size: .8rem; padding: .12rem .65rem; border-radius: 99px; border: 1px solid var(--rule); color: var(--smoke); text-decoration: none; }
a.chip { color: var(--peach); border-color: var(--peach); }
.chip.lit { background: var(--lamp); color: var(--ink); border-color: var(--lamp); font-weight: 700; }
.section-head.spaced { margin-top: 2rem; }
.activity li { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.activity time { color: var(--smoke); font-variant-numeric: tabular-nums; }
.paper-actions { margin-top: 1.1rem; }
.button.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.outline:hover { background: var(--peach); border-color: var(--ink); }
.listing { background: var(--paper); color: var(--ink); border-radius: 8px; padding: .6rem; width: 9.5rem; display: grid; gap: .3rem; align-content: start; transform: rotate(-1.5deg); box-shadow: 0 .9rem 1.8rem -.7rem rgba(0, 0, 0, .8); }
.listing-shot { background: var(--peach); border-radius: 5px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.listing-shot img { width: 62%; }
.listing-price { font-family: var(--display); font-size: var(--step-1); line-height: 1.1; }
.listing-meta { font-size: .76rem; color: var(--ink-soft); line-height: 1.35; }
.scope-choice em { font-style: normal; font-family: var(--display); font-size: var(--step-1); margin-top: .4rem; }
.scope-choice small { font-family: var(--text); font-size: .8rem; opacity: .7; }
.plan { justify-items: stretch; }
.plan-items { display: grid; }
.plan-items li { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--rule); }
.plan-items p { grid-column: 1 / -1; font-size: var(--step--1); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 99px; padding: .15rem; justify-self: start; }
.seg button { font: inherit; font-size: .82rem; font-weight: 700; color: var(--smoke); background: none; border: 0; border-radius: 99px; padding: .3rem .7rem; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--paper); color: var(--ink); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--paper); padding-top: .7rem; }
.total b { font-family: var(--display); font-weight: 400; font-size: var(--step-3); font-variant-numeric: tabular-nums; }
.plan .button { justify-self: stretch; }
.section-head .textlink { white-space: nowrap; }
@media (max-width: 30rem) { #open-casebook { display: none; } }

/* phone hero: her face and the glass must be in frame; the report sits below her hand */
@media (max-width: 55.99rem) {
  .hero-art { min-height: 0; height: 37rem; margin-top: -.5rem; }
  .detective { width: 132%; height: auto; left: -32%; right: auto; top: -3.5rem; bottom: auto;
    -webkit-mask-image: linear-gradient(#000 70%, transparent 96%); mask-image: linear-gradient(#000 70%, transparent 96%); }
  .hero-report { left: 1rem; bottom: 1rem; width: min(15rem, 60%); transform: rotate(-2.5deg); }
}
.mainnav { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
@media (min-width: 60rem) { .mainnav { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 55.99rem) {
  .hero { padding-top: 0; }
  .hero-art { order: -1; height: 26.5rem; margin-top: 0; }
  .hero-report .sources tr:nth-child(n+4) { display: none; }
  .hero-copy { margin-top: -.5rem; padding-bottom: 2.5rem; }
}
@media (max-width: 55.99rem) {
  .hero-art { overflow: hidden; }
  .detective { -webkit-mask-image: linear-gradient(#000 46%, transparent 61%); mask-image: linear-gradient(#000 46%, transparent 61%); }
  .hero-copy { margin-top: 0; }
}

/* the report as it arrived */
.report-row { display: grid; gap: 1.6rem; align-items: start; }
.reports:has(.report-row) { max-width: none; }
.report-row > .report { max-width: 40rem; }
@media (min-width: 60rem) { .report-row { grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 2.5rem; } }
.msg-side { display: grid; gap: .8rem; max-width: 24rem; }
.msg-side h2 { font-size: var(--step-1); }
.msg { background: var(--desk); border: 1px solid var(--rule); border-radius: 4px 18px 18px 18px; padding: .9rem 1.1rem; display: grid; gap: .5rem; font-size: var(--step--1); line-height: 1.55; }
.msg-from { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--peach); }
.msg-from span { font-weight: 400; color: var(--smoke); font-variant-numeric: tabular-nums; }
.msg-link { color: var(--lamp); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.toast { bottom: auto; top: 7.25rem; border-radius: 14px; }
@media (min-width: 60rem) { .toast { top: 5rem; } }
.toast { width: max-content; }


/* ---------- the report in its real shape: photos first, what was ruled out and why, what could not be checked ---------- */
.report-lede { color: var(--ink-soft); max-width: 34rem; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.1rem; padding-top: .8rem; border-top: 2px solid var(--ink); }
.tally div { display: flex; flex-direction: column; }
.tally dd { font-family: var(--display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.tally dt { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.3; margin-top: .25rem; }
.report.compact .tally { margin-top: .5rem; padding-top: .5rem; gap: .4rem; border-top-width: 1.5px; }
.report.compact .tally dd { font-size: var(--step-1); }
.report.compact .tally dt { font-size: .68rem; line-height: 1.2; }
.rsec { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px dashed var(--paper-edge); }
.paper .rsec h4 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; margin-top: 0; }
.rsub { color: var(--ink-soft); font-size: var(--step--1); }
.proof-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-block: .9rem .7rem; }
.proof-photos img, .shot.photo img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--paper-edge); }
.serials { display: grid; gap: .15rem; font-variant-numeric: tabular-nums; margin-top: .6rem; }
.serials div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; }
.serials dt { color: var(--ink-soft); font-size: var(--step--1); }
.serials dd { font-weight: 700; letter-spacing: .05em; font-size: var(--step-1); overflow-wrap: anywhere; }
.serials mark { background: var(--peach); color: inherit; padding: 0 .1em; border-radius: 2px; }
.rcards { display: grid; gap: 2rem; margin-top: 1.1rem; }
.rcard { display: grid; gap: .6rem; }
.shot.photo { display: block; }
.shot.photo.tiny { width: 7.4rem; }
.rcard .shot.drawn { background: var(--peach); border-radius: 5px; display: grid; place-items: center; padding: 1.2rem; max-width: 12rem; }
.rcard .shot.drawn img { width: 60%; }
.rcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.rcard h5 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; margin: 0; }
.rprice { font-family: var(--display); font-size: var(--step-1); white-space: nowrap; }
.rwhere { color: var(--ink-soft); font-size: var(--step--1); }
.rpair { display: grid; gap: .6rem 1.5rem; font-size: var(--step--1); }
@media (min-width: 36rem) { .rpair { grid-template-columns: 1fr 1fr; } }
.rpair b { display: block; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ember); }
.rask, .ask { border: 1.5px solid var(--ink); border-radius: 4px; padding: .65rem .85rem; background: #fff; color: var(--ink); font-size: var(--step-0); line-height: 1.45; }
.rask b, .ask b { display: block; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.ask { margin-top: 1rem; max-width: 34rem; }
.rlist { list-style: none; margin: .6rem 0 0; padding: 0; font-size: var(--step--1); }
.rlist li { padding: .45rem 0; border-top: 1px dashed var(--paper-edge); }
.sources th small { display: block; color: var(--ink-soft); }
.rsec .sources { margin-top: .6rem; }

/* findings: a real photo is the card */
.listing .shot.drawn { background: var(--peach); border-radius: 5px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.listing .shot.drawn img { width: 62%; }
.finding.has-photo { grid-template-columns: 1fr; }
.finding.has-photo .listing { width: 100%; max-width: 30rem; transform: rotate(-.5deg); padding: .5rem .5rem .7rem; }
.finding.has-photo .listing .shot.tiny { width: 7.4rem; }
@media (min-width: 60rem) { .finding.has-photo { grid-template-columns: minmax(0, 24rem) 1fr; gap: 1.6rem; } }
.proofbox { padding: .7rem .9rem .9rem; margin-bottom: 1rem; max-width: 30rem; box-shadow: none; }
.proofbox .proof-photos { margin-top: 0; }
.finding-link { margin-top: .9rem; font-size: var(--step--1); }
.finding-link a { color: var(--smoke); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-top: .8rem; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 1; background: var(--paper-edge); border-radius: 3px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; display: block; }
.proof-row { padding-block: .7rem; border-top: 1px dashed var(--paper-edge); }
.proof-row:first-of-type { border-top: 0; padding-top: .3rem; }
.proof-row .serials { margin-top: .2rem; }
.auto-note { margin-top: 1.2rem; font-size: var(--step--1); color: var(--ink-soft); font-style: italic; }
.recap-list span { white-space: normal; text-align: right; }

.preview-note { margin: 0; padding: .45rem 1rem; background: var(--peach); color: var(--ink); font-size: .82rem; line-height: 1.4; text-align: center; }
.preview-note span { display: block; }
