/* viewerscut.org: titles, changes, review. */

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split__main { flex: 1.5 1 520px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }

.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--ink-2); }
.stats strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); font-size: 14px; text-decoration: none;
}
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }

.h1__muted { font-weight: 500; color: var(--ink-3); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* The feed of changesets. */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.feed__item { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.feed__item:last-child { border-bottom: 0; }
.feed__item--review { background: var(--review-tint); gap: 6px; }
.feed__what { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.feed__what--applied { color: var(--ok-fg); }
.feed__what--pending { color: #8A3B12; }
.feed__what--rejected { color: var(--bad-fg); text-decoration: line-through; }
.feed__what--undone { color: var(--ink-3); text-decoration: line-through; }
.feed__title { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.feed__title:hover { text-decoration: underline; }

/* A title's moments along its runtime. */
.timeline { position: relative; height: 18px; margin-top: 4px; }
.timeline__track { position: absolute; inset: 7px 0 auto; height: 4px; border-radius: 2px; background: var(--line-2); }
.timeline__mark { position: absolute; top: 3px; height: 12px; border-radius: 2px; background: var(--dot); }

.word { font-family: var(--font-mono); font-size: 13px; padding: 1px 6px; border-radius: 4px; background: var(--line-2); }

/* One changeset's edits. */
.edits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.edit { padding: 14px 16px; border-left: 4px solid var(--dot, var(--line-strong)); }
.edit--review { background: var(--review-tint); }
.edit__op { font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 6px; background: var(--line-2); }
.edit__op--add { background: var(--ok-bg); color: var(--ok-fg); }
.edit__op--remove { background: var(--bad-bg); color: var(--bad-fg); }
.diff { margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.diff th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 3px 14px 3px 0; font-family: var(--font-mono); font-size: 12px; }
.diff td { padding: 3px 8px 3px 0; }
.diff__before { color: var(--bad-fg); text-decoration: line-through; text-decoration-color: rgb(138 28 28 / 0.4); }
.diff__after { color: var(--ok-fg); font-weight: 600; }
.review-why { background: var(--review-tint); border-color: #F5D2B8; }

/* Contribute tiles and principles. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--page); }
.tile h3 { margin: 0; font-size: 18px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tile__foot { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.principles > div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.principles h3 { margin: 0; font-size: 19px; }
.principles p { margin: 0; color: var(--ink-2); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 6px;
}
.steps h3 { margin: 0; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); }

.code-figure { margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1.4 1 520px; min-width: 0; }
.code-figure pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7;
  color: #C4C8CF; background: #1C2028; border-radius: var(--radius); max-height: 560px;
}
