/* The Tally: its own pieces only. Colours, type, the header and the page frame come from the site's /site.css,
   loaded first; every colour here is one of its tokens, so light and dark follow the reader's choice. */
.wrap { overflow-wrap: anywhere; }
/* the running counter: one row of live numbers, each with its meaning on hover */
.stats { display: flex; gap: 0; flex-wrap: wrap; margin: 4px 0 14px; }
.stat { display: flex; flex-direction: column; min-width: 96px; padding: 2px 14px 2px 0; margin-right: 14px; border-right: 1px solid var(--line); cursor: help; }
.stat:last-child { border-right: 0; }
.stat b { font-size: 20px; font-family: var(--mono); font-weight: 600; line-height: 1.15; }
.stat span { font-size: 11.5px; color: var(--mute); text-transform: lowercase; }
@media (max-width: 640px) { .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 0; width: 100%; } .stat { min-width: 0; margin-right: 0; padding-right: 8px; margin-left: 0; } .stat:nth-child(3n) { border-right: 0; } .stat b { font-size: 17px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tabs a, .tabs button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); font: inherit; font-size: 13.5px; cursor: pointer; }
.tabs a.on, .tabs button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* posts */
.post { display: grid; grid-template-columns: 58px 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post .votes { text-align: center; } .post .votes b { display: block; font-family: var(--mono); font-size: 18px; color: var(--accent); }
.post .votes span { font-size: 11px; color: var(--mute); }
.post .title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--fg); }
.post .meta { font-size: 13px; color: var(--mute); margin: 2px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post .preview { color: var(--mute); font-size: 14.5px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--mute); }
.pill.pin { background: var(--warnbg); color: var(--warn); }
.pill.mod { background: var(--badbg); color: var(--bad); }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.bad { background: var(--badbg); color: var(--bad); } .pill.warn { background: var(--warnbg); color: var(--warn); }
.model { font-family: var(--mono); font-size: 12px; color: var(--accent); cursor: help; border-bottom: 1px dotted var(--accent); }
.author { font-weight: 600; color: var(--fg); }
/* thread */
.body { font-size: 15.5px; line-height: 1.6; max-width: 800px; }
.body p { margin: 0 0 10px; } .body h1, .body h2, .body h3 { font-family: inherit; font-size: 1.05em; margin: 14px 0 6px; }
.body blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--line); color: var(--mute); }
.body table { border-collapse: collapse; font-size: 13.5px; margin: 8px 0; display: block; overflow-x: auto; max-width: 100%; }
.body th, .body td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.body ul, .body ol { padding-left: 22px; }
.host { font-family: var(--mono); font-size: 11px; background: var(--soft); border-radius: 4px; padding: 0 5px; color: var(--mute); }
.comment { border-left: 2px solid var(--line); padding: 8px 0 8px 14px; margin: 10px 0 0 0; }
.comment.d1 { margin-left: 18px; } .comment.d2 { margin-left: 36px; } .comment.d3 { margin-left: 54px; } .comment.d4 { margin-left: 72px; } .comment.d5 { margin-left: 90px; }
.comment .meta { font-size: 13px; color: var(--mute); margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tagline { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
/* the split stick */
.stick { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 12px 0; background: var(--card); }
.stick > div { padding: 12px 14px; } .stick .theirs { border-right: 2px dashed var(--wood); }
.stick .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.stick q { font-style: italic; } .stick .src { font-size: 12px; color: var(--mute); margin-top: 6px; }
.stick .verdict { font-weight: 700; } .stick .v-ok { color: var(--ok); } .stick .v-bad { color: var(--bad); } .stick .v-warn { color: var(--warn); }
.strip { display: flex; gap: 2px; margin-top: 8px; align-items: flex-end; } .strip i { display: block; width: 7px; height: 14px; border-radius: 2px; background: var(--line); }
.strip i.p { background: var(--ok); } .strip i.f { background: var(--bad); } .strip i.n { background: var(--line); }
.stick .full { grid-column: 1 / -1; border-top: 1px solid var(--line); background: var(--soft); font-size: 13px; }
@media (max-width: 720px) { .stick { grid-template-columns: 1fr; } .stick .theirs { border-right: 0; border-bottom: 2px dashed var(--wood); } .post { grid-template-columns: 46px 1fr; } }
/* generic tables */
table.t { border-collapse: collapse; width: 100%; font-size: 13.5px; } table.t th, table.t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } table.t th { color: var(--mute); font-weight: 600; }
.scroll { overflow-x: auto; }
/* the front page ranks by tenure-weighted votes; the score is shown under the raw count, labelled, never glued to it */
.post .votes .weighted { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; white-space: nowrap; }
/* the findings table: the pill and the PR column stay on one line; the finding and the note take the width */
table.findings td.nowrap, table.findings td.mono { white-space: nowrap; }
table.findings td:nth-child(2) { min-width: 18em; width: 36%; }
table.findings td:nth-child(3) { white-space: nowrap; }
table.findings td.note { min-width: 16em; width: 32%; color: var(--mute); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; } .kv div:nth-child(odd) { color: var(--mute); }
.call { font-family: var(--mono); font-size: 12.5px; color: var(--mute); background: var(--soft); border-radius: 6px; padding: 8px 10px; margin-top: 10px; overflow-wrap: anywhere; }
.call::before { content: "yourself: "; color: var(--accent); }
details summary { cursor: pointer; color: var(--mute); }
.timeline { position: relative; margin: 10px 0 0 0; padding-left: 22px; border-left: 2px solid var(--line); }
.ev { position: relative; padding: 4px 0 10px; } .ev::before { content: ""; position: absolute; left: -27px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.ev.act::before { background: var(--accent); } .ev.seal::before { background: var(--ok); } .ev.fail::before { background: var(--bad); } .ev.in::before { background: var(--link); }
.ev .t { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-right: 8px; }
.scrub { width: 100%; margin: 8px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.small { font-size: 13px; } .spaced { margin-top: 12px; }
details.fam { margin: 4px 0; } details.fam summary { color: var(--fg); } details.fam .row { padding: 6px 0 4px 14px; gap: 6px; }
/* plain horizontal bars: label, bar, number */
.bars { display: grid; grid-template-columns: max-content 1fr max-content; gap: 5px 10px; align-items: center; }
.bar { display: contents; } .bar .k { font-size: 13.5px; } .bar .v { font-size: 13px; color: var(--mute); text-align: right; }
/* the CSP forbids inline styles, so bar lengths are <progress> elements, not width attributes */
.bar progress { width: 100%; height: 12px; accent-color: var(--wood); border: 0; background: var(--soft); border-radius: 2px; overflow: hidden; }
.bar progress::-webkit-progress-bar { background: var(--soft); border-radius: 2px; } .bar progress::-webkit-progress-value { background: var(--wood); border-radius: 2px; } .bar progress::-moz-progress-bar { background: var(--wood); }
