:root {
  --paper: #ECECE8;
  --ink: #1A1A1F;
  --red: #D3201B;
  --red-ink: #FFFFFF;
  --muted: #55555C;
  --face-bg: #CFCFCA;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141418; --ink: #ECECE6; --red: #FF3B30; --red-ink: #141418; --muted: #A2A2AA; --face-bg: #2A2A30;
  }
}
:root[data-theme="dark"] {
  --paper: #141418; --ink: #ECECE6; --red: #FF3B30; --red-ink: #141418; --muted: #A2A2AA; --face-bg: #2A2A30;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Archivo, "Arial Narrow", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.5;
  font-variation-settings: "wdth" 100;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.condensed { font-variation-settings: "wdth" 62; }

/* Hero */
.hero { padding: 28px 0 40px; border-bottom: 10px solid var(--ink); }
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: .8125rem; color: var(--muted); margin: 0 0 28px; }
.masthead strong, .bar-in strong { font-family: Archivo, sans-serif; font-weight: 900; font-size: 1.25rem; color: var(--red);
  font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .02em; }
.hero h1 {
  margin: 0; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(4.25rem, 18vw, 13.5rem); font-variation-settings: "wdth" 62;
}
.red { color: var(--red); }
.lede { max-width: 40rem; font-size: clamp(1.125rem, 2.4vw, 1.5rem); line-height: 1.35; margin: 24px 0 0; font-weight: 600; }

/* Index of faces */
.faces { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
@media (min-width: 860px) { .faces { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.faces a { display: block; text-decoration: none; position: relative; background: var(--face-bg); }
.faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.3); }
.faces span { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 5px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-weight: 800; font-size: .8125rem;
  line-height: 1.05; font-variation-settings: "wdth" 70; text-transform: uppercase; }
@media (min-width: 860px) { .faces span { display: block; font-size: .8125rem; } .faces { gap: 6px; } }


/* Disclosures */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 8px; vertical-align: 1px;
  border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
details[open] > summary::before { transform: rotate(90deg); }

.legend { padding: 18px 0; border-bottom: 2px solid var(--ink); }
.legend > summary { font-weight: 800; font-size: 1.0625rem; min-height: 44px; display: flex; align-items: center; }
.legend ol { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 14px 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.legend li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 6px 12px; align-items: center; font-size: .9375rem; line-height: 1.35; }
.legend.with-counts li { grid-template-columns: 11.5rem 2.5rem 1fr; }
.legend .chip { display: block; text-align: center; white-space: nowrap; }
@media (max-width: 559px) {
  .legend li, .legend.with-counts li { grid-template-columns: 11.5rem 1fr; }
  .legend.with-counts .n { text-align: left; }
  .legend li > .d { grid-column: 1 / -1; }
}
.legend .n { font-size: 1.25rem; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }

/* Chips: solid red for a verdict or ruling, solid ink for an admission or watchdog finding, outlines for reporting */
.chip { display: inline-block; font-family: Archivo, sans-serif; font-weight: 800; font-size: .875rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px 6px; border: 2px solid var(--ink); }
.chip-convicted, .chip-liable, .chip-court { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.chip-watchdog, .chip-admitted { background: var(--ink); color: var(--paper); }
.chip-said { background: transparent; color: var(--ink); }
.chip-reported, .chip-alleged { background: transparent; color: var(--ink); border-style: dashed; border-color: var(--ink); }

/* Index rows */
.group { margin: 56px 0 0; font-weight: 900; text-transform: uppercase; color: var(--ink); line-height: .9;
  font-size: clamp(2.5rem, 9vw, 5rem); font-variation-settings: "wdth" 62; }
.row { display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; padding: 32px 0; border-bottom: 10px solid var(--ink); }
.row-photo { grid-row: 1; align-self: start; background: var(--face-bg); }
.row-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.35); }
.row-main { display: contents; }
.row h2 { grid-column: 2; margin: 0; font-weight: 900; text-transform: uppercase; line-height: .85;
  font-size: clamp(2.5rem, 12vw, 6rem); font-variation-settings: "wdth" 62; overflow-wrap: anywhere; }
.row h2 a { text-decoration: none; }
.row h2 a:hover { color: var(--red); }
.row .role { grid-column: 2; }
.row .claims, .row .all { grid-column: 1 / -1; }
.role { margin: 8px 0 0; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.claims { list-style: none; padding: 0; margin: 24px 0 0; }
.claim { padding: 18px 0; border-top: 2px solid var(--ink); }
.claim .meta { margin-top: 2px; }
.claim h3 { margin: 10px 0 6px; font-weight: 850; font-size: clamp(1.375rem, 3.4vw, 2.125rem); line-height: 1.08;
  font-variation-settings: "wdth" 85; letter-spacing: -.005em; }
.more > summary { font-size: 1rem; color: var(--ink); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.more > summary:hover { color: var(--ink); }
.more[open] { padding-bottom: 4px; }
.more .body { margin: 4px 0 10px; max-width: 42rem; }
.all { display: inline-block; margin-top: 8px; font-weight: 800;
  font-size: 1.0625rem; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.all:hover { color: var(--red); }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--muted); }
.meta time { font-family: "IBM Plex Mono", monospace; color: var(--ink); }
.meta a { text-underline-offset: 2px; }

@media (min-width: 860px) {
  .row { grid-template-columns: 280px 1fr; gap: 0 48px; padding: 48px 0; }
  .row-photo { grid-row: 1 / span 4; position: sticky; top: 24px; }
  .row .claims, .row .all { grid-column: 2; }
}

/* Person page */
.person-page { display: grid; gap: 28px; padding-bottom: 32px; }
.person-head img { width: 100%; max-width: 480px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.35); background: var(--face-bg); }
.person-head h1 { margin: 16px 0 0; font-weight: 900; text-transform: uppercase; line-height: .85;
  font-size: clamp(3.25rem, 14vw, 6rem); font-variation-settings: "wdth" 62; overflow-wrap: anywhere; }
.count { margin: 6px 0 0; font-weight: 800; font-size: 1rem; }
.items { list-style: none; padding: 0; margin: 0; }
.item { padding: 28px 0; border-bottom: 2px solid var(--ink); scroll-margin-top: 16px; }
.item:last-child { border-bottom: 0; }
.item h3 { margin: 12px 0 10px; font-weight: 850; font-size: clamp(1.5rem, 3.4vw, 2.125rem); line-height: 1.08; font-variation-settings: "wdth" 85; }
.item .body { margin: 0 0 12px; max-width: 42rem; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 56px;
  border-top: 10px solid var(--ink); font-weight: 800; }
@media (min-width: 860px) {
  .person-page { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
  .person-head { position: sticky; top: 24px; }
  .person-head h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
}

/* About */
.prose { max-width: 46rem; padding-bottom: 64px; }
.prose h1 { font-weight: 900; text-transform: uppercase; line-height: .9; font-size: clamp(2.75rem, 10vw, 5rem); font-variation-settings: "wdth" 62; margin: 0 0 20px; }
.prose h2 { font-weight: 900; text-transform: uppercase; font-size: 1.5rem; font-variation-settings: "wdth" 75; margin: 40px 0 8px; }
.credits { padding-left: 1.1em; color: var(--muted); }

footer { padding-top: 40px; padding-bottom: 64px; font-size: .9375rem; color: var(--muted); }
footer p { max-width: 46rem; }

@media print {
  .faces, details > summary { display: none; }
  details > * { display: block; }
  .row-photo, .person-head { position: static; }
  body { background: #fff; color: #000; }
}

/* Evidence photos: real photos tied to a finding, shown in full colour so nothing reads as altered */
.evidence { margin: 12px 0 10px; max-width: 760px; }
.evidence img { width: 100%; height: auto; background: var(--face-bg); }
.evidence figcaption { margin-top: 6px; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.evidence figcaption a { color: var(--muted); }
.evidence video { width: 100%; height: auto; display: block; background: var(--face-bg); }
.embed-box { border: 2px solid var(--ink); padding: 16px; }
.embed-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.embed-what { margin: 0 0 12px; font-weight: 700; }
.embed-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.embed-box[data-kind] .embed-actions a { font-weight: 700; }
.embed-load { font: inherit; font-weight: 800; font-size: 1rem;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 16px; min-height: 44px; cursor: pointer; }
.embed-load:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Index: keep each finding's headline the biggest thing in its row */
@media (min-width: 860px) { .row .evidence { max-width: 440px; } }
/* Person pages: strength tiers */
.tier { margin: 40px 0 0; padding-top: 16px; border-top: 6px solid var(--ink); font-weight: 900; text-transform: uppercase;
  font-size: 1.5rem; font-variation-settings: "wdth" 75; }
.tier span { color: var(--muted); font-weight: 700; }
.legend + .tier { margin-top: 24px; }
.bar-all { font-family: Archivo, sans-serif; font-weight: 800; color: var(--ink); font-size: 1rem; }
@media (max-width: 859px) {
  .person-head { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: start; }
  .person-head img { grid-row: 1 / span 3; max-width: 112px; }
  .person-head h1 { margin: 0; font-size: clamp(2.25rem, 11vw, 3.5rem); }
}
.prose h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-watchdog, :root:not([data-theme="light"]) .chip-admitted { background: var(--muted); border-color: var(--muted); color: var(--paper); } }
:root[data-theme="dark"] .chip-watchdog, :root[data-theme="dark"] .chip-admitted { background: var(--muted); border-color: var(--muted); color: var(--paper); }
.tally { display: block; }
.hero h1 { font-size: clamp(2.75rem, 13vw, 9rem); }
.civil { padding: 24px 0 28px; border-bottom: 2px solid var(--ink); max-width: 46rem; }
.civil h2 { margin: 0 0 10px; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; font-variation-settings: "wdth" 75; }
.civil p { margin: 0 0 12px; }
.epigraph { margin: 0 0 28px; max-width: 40rem; }
.epigraph blockquote { margin: 0; }
.epigraph p { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.25; font-weight: 600; font-style: italic; }
.epigraph figcaption { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.epigraph figcaption a { color: var(--muted); }

/* Portraits come into colour under the pointer, on devices that can hover */
@media (hover: hover) {
  .faces img, .row-photo img { transition: filter .25s ease; }
  .faces a:hover img, .faces a:focus-visible img, .row:hover .row-photo img { filter: none; }
}
@media (prefers-reduced-motion: reduce) { .faces img, .row-photo img { transition: none; } }
.embed-box.loaded { border: 0; padding: 0; }
/* Back to top: fixed corner button, shown once the reader is well down the page */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); border: 2px solid var(--paper); text-decoration: none; z-index: 10;
  transition: opacity .2s ease; }
.js .to-top:not(.show) { opacity: 0; pointer-events: none; }
.to-top:focus-visible { opacity: 1; pointer-events: auto; outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }
/* Person, about and 404 pages: the top bar stays put so home is always one tap away */
.bar { position: -webkit-sticky; position: sticky; top: 0; z-index: 5; background: var(--paper); margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: .8125rem; color: var(--muted); }
.bar-in a { text-decoration: none; }
@media (min-width: 860px) { .person-head { top: 88px; } }
.item { scroll-margin-top: 80px; }
/* The hero counts are the red-label categories (convicted, liable, court), so their numbers take the verdict red */
.hero h1 .num { color: var(--red); }

/* Final polish pass */
.prose { max-width: 1180px; }
.prose > * { max-width: 46rem; }
.person-page .legend { border-bottom: 0; padding-bottom: 0; }
.pager-wrap { border-top: 10px solid var(--ink); }
.pager { border-top: 0; padding-bottom: 88px; }
@media (max-width: 559px) {
  .pager { display: grid; grid-template-columns: 1fr 1fr; }
  .pager a:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .pager a:nth-child(3) { text-align: right; }
  .bar-in > span { display: none; }
}
.bar-in strong { white-space: nowrap; }
.embed-box.loading { min-height: 200px; }
.civil { max-width: none; }
.civil p, .civil h2 { max-width: 46rem; }
@media (min-width: 600px) and (max-width: 859px) {
  .row { grid-template-columns: 160px 1fr; gap: 0 24px; }
  .row h2 { font-size: clamp(2.5rem, 9vw, 5rem); }
}
@media (min-width: 600px) {
  .faces { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .faces span { display: block; font-size: .8125rem; }
}
.epigraph p, .hero h1, .row h2, .person-head h1, .prose h1 { text-wrap: balance; }
.claim h3, .item h3 { text-wrap: pretty; }
.person-foot { padding-top: 0; }
/* The most egregious findings (verdicts and their own words only) carry the verdict red in the headline */
h3.hot { color: var(--red); }
