/* YouTrained. One 880px column. The verdict is a full-width tinted band; the evidence is a dense
   ledger below it. Yellow is for the primary action only; red and green are result states. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/public-sans.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/public-sans-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --bg: #fbfaf6;
  --fg: #1b1915;
  --muted: #6c675d;
  --line: #e4e0d5;
  --panel: #f2efe7;
  --accent: #ffc400;
  --accent-ink: #1b1915;
  --listed: #a81e15;
  --listed-tint: rgba(168, 30, 21, 0.3);
  --clear: #1f7a3f;
  --clear-tint: rgba(31, 122, 63, 0.16);
  --error: #a81e15;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141310; --fg: #f1ede4; --muted: #a49e91; --line: #2d2a24; --panel: #1d1b16;
    --listed: #ff6b5e; --listed-tint: rgba(255, 107, 94, 0.16);
    --clear: #74d094; --clear-tint: rgba(116, 208, 148, 0.14);
    --error: #ff6b5e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--body); }
.wrap { max-width: 880px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.85em; }
.muted, .meta { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.error { color: var(--error); font-weight: 600; margin-top: 10px; }

/* header and footer */
header.site .wrap { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { background: var(--accent); color: var(--accent-ink); padding: 0 5px; border-radius: 3px; }
nav.main { margin-left: auto; display: flex; gap: 2px; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
nav.main a:hover { color: var(--fg); background: var(--panel); }
nav.main a[aria-current="page"] { color: var(--fg); }
@media (max-width: 600px) {
  header.site .wrap { flex-wrap: wrap; gap: 8px; }
  nav.main { margin-left: 0; width: 100%; overflow-x: auto; gap: 0; }
  nav.main a { padding: 6px 8px; font-size: 14px; }
}
footer.site { margin-top: 56px; border-top: 1px solid var(--line); }
footer.site .wrap { padding-block: 20px 40px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* page sections */
main > section, main > .wrap > section { padding-block: 44px 0; }
.sect { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 40px; align-items: start; }
.sect > div:first-child h2 { position: sticky; top: 16px; }
.sect .intro { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 24em; }
@media (max-width: 720px) { .sect { grid-template-columns: 1fr; } .sect > div:first-child h2 { position: static; } }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* home */
.hero { padding-block: 36px 0; display: grid; gap: 16px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 32em; }
form.check { display: grid; gap: 8px; margin-top: 8px; max-width: 560px; }
form.check .field { display: flex; gap: 8px; }
form.check input { flex: 1; min-width: 0; font: inherit; padding: 13px 14px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
form.check input:focus { outline: none; border-color: var(--fg); }
.checks { font-size: 14px; color: var(--muted); }
.checks b { font-weight: 600; color: var(--fg); }
.browse-row { font-size: 15px; color: var(--muted); }
.browse-row a { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.browse-row a:hover { text-decoration-color: currentColor; }

/* buttons */
.btn, form.check button, form.search button, form.inline button {
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; padding: 11px 18px; border-radius: 6px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.btn.quiet { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--fg); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
form.inline { margin-top: 10px; }

/* verdict band */
.verdict { padding-block: 40px 44px; }
.verdict.listed { background: var(--listed-tint); }
.verdict.clear { background: var(--clear-tint); }
.verdict .wrap { display: grid; gap: 18px; }
.subject { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.subject a { font-weight: 600; text-decoration: none; }
.subject a:hover { text-decoration: underline; }
.verdict h1 { font-size: clamp(32px, 6vw, 50px); max-width: 14em; }
.verdict.listed h1 .yn { color: var(--listed); }
.verdict.clear h1 .yn { color: var(--clear); }
.verdict .lede { font-size: 20px; max-width: 34em; }
.verdict .lede strong { font-weight: 600; }

/* dataset tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiles.one { grid-template-columns: minmax(0, 1fr); }
.tile { padding: 22px 20px 22px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.tile + .tile { padding-left: 20px; border-left: 1px solid var(--line); }
.tile .n { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .of { font-weight: 600; line-height: 1.3; }
.tile .of span { color: var(--muted); font-weight: 400; }
.role { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--listed); }
.role.test::before { background: var(--muted); }
.tile .plain { font-size: 15px; color: var(--muted); }
.tile .eg { font-size: 14px; }
.tile .eg span { color: var(--muted); }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 18px 0; }
  .tile + .tile { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* evidence ledger */
.evidence { border-top: 2px solid var(--fg); margin-top: 44px; }
.group { padding: 22px 0 28px; }
.group header { display: grid; gap: 4px; padding-bottom: 12px; }
.group header h3 { font-size: 20px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.group header h3 .count { font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--muted); }
.group header .desc { font-size: 14px; color: var(--muted); max-width: 70ch; }
.hits { display: grid; }
.hit { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.hit:last-child { border-bottom: 1px solid var(--line); }
.player { width: 112px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; background: #15130f; position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.player:hover img { opacity: 1; }
.player .play { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.hit iframe { width: 112px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 4px; }
.hit .body { display: grid; gap: 2px; min-width: 0; }
.hit .t { font-weight: 600; overflow-wrap: anywhere; margin: 0; font-size: 17px; }
.hit .m { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.hit .m a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hit .ids { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.hit .side { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; padding-top: 2px; }
.hit .side .split { display: block; font-family: var(--mono); font-size: 11px; }
.hit .caption { font-size: 14px; font-style: italic; max-width: 60ch; }
.more { font-size: 14px; color: var(--muted); padding-top: 10px; }
@media (max-width: 560px) {
  .hit { grid-template-columns: 112px minmax(0, 1fr); }
  .hit .side { grid-column: 2; text-align: left; white-space: normal; padding-top: 0; }
}

/* context, routes, downloads, provenance */
.context p { max-width: 62ch; }
.context .ruling { padding: 14px 16px; background: var(--panel); border-radius: 6px; font-size: 15px; margin-top: 12px; }
.sources { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.sources a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.sources a:hover { text-decoration-color: currentColor; }
.routes { margin: 0; padding: 0; list-style: none; display: grid; }
.routes li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; max-width: 62ch; }
.routes li:last-child { border-bottom: 1px solid var(--line); }
.routes b { font-weight: 600; }
.downloads { display: grid; gap: 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.share code { background: var(--panel); padding: 4px 8px; border-radius: 4px; color: var(--fg); overflow-wrap: anywhere; }
.provenance { font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
.provenance summary { cursor: pointer; }
.provenance .tbl { overflow-x: auto; }
.provenance table { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 8px; }
.provenance th, .provenance td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal { max-width: 70ch; }

/* browse: search box, ranked lists, label tree, video rows, pager */
.browse { padding-block: 36px 0; display: grid; gap: 14px; }
.browse > p { max-width: 62ch; }
form.search { display: flex; gap: 8px; max-width: 560px; }
form.search input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
form.search input:focus { outline: none; border-color: var(--fg); }
ol.ranked, ul.tree { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
ol.ranked li, ul.tree li { display: flex; align-items: baseline; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
ol.ranked li:hover, ul.tree li:hover { background: var(--panel); }
ol.ranked .rank { flex: 0 0 2.6em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
ol.ranked .name, ul.tree .name { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
ol.ranked .name:hover, ul.tree .name:hover { text-decoration: underline; }
ol.ranked .count, ul.tree .count, .children .count, h2 .count { flex: 0 0 auto; color: var(--muted); font-size: 14px; font-weight: 400; font-family: var(--body); font-variant-numeric: tabular-nums; }
ul.tree li { padding-left: calc(6px + var(--depth, 0) * 22px); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 24px 0 0; font-size: 15px; }
.results h2 { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.none { padding: 18px 20px; background: var(--panel); border-radius: 6px; display: grid; gap: 8px; max-width: 62ch; margin-top: 16px; }
.alt-check { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* about */
.prose { padding-block: 36px 0; display: grid; gap: 14px; max-width: 66ch; }
.prose h2 { font-size: 22px; margin-top: 18px; }
