/*
 * THE CONTROL PANEL'S STYLESHEET — index.html and screen.html only.
 *
 * WHY THIS ONE IS SHARED WHEN CANDIDATES MAY NOT SHARE ONE. The no-shared-sheet
 * rule (design-log, "What candidates are built in") exists so that a decision
 * cannot leak between two things being COMPARED. These two pages are not being
 * compared with anything; they are one instrument, and they should look
 * identical or the instrument is broken.
 *
 * These pages are deliberately NOT design candidates. Plain, monospaced, no
 * webfont request at all, and obeying design-rules §2 in front of the person
 * enforcing it: no gradient, no glass, no shadows, no emoji icons, no even card
 * grid. If this page ever starts looking designed, it has started competing
 * with the work it indexes.
 */

:root {
  --ink: #16181d;
  --dim: #6b7280;
  --faint: #9aa0a8;
  --line: #d8dbe0;
  --rule: #eceef1;
  --bg: #fbfbfa;
  --panel: #ffffff;
  --confirmed: #14602f;
  --kept: #1b4f8a;
  --killed: #8a8f98;
  --alarm: #a4161a;
}
* { box-sizing: border-box; }
body {
  font: 15px/1.55 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink); background: var(--bg);
  margin: 0; padding: 2.5rem 1.5rem 6rem;
}
main { max-width: 58rem; margin: 0 auto; }
a { color: var(--ink); }

h1 { font-size: 1.35rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
.sub { color: var(--dim); margin: 0 0 2rem; max-width: 46rem; }
.sub code { background: #fff; border: 1px solid var(--line); padding: 0 .25em; }

.crumb { font-size: .82rem; color: var(--dim); margin: 0 0 1.4rem; }
.crumb a { color: var(--dim); }

h2 {
  font-size: 1rem; margin: 2.75rem 0 .15rem;
  border-bottom: 2px solid var(--ink); padding-bottom: .3rem;
}
h2 .note { font-weight: normal; color: var(--dim); }
h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--dim); margin: 2.4rem 0 .8rem; font-weight: 600;
}

/* ── the screen list ─────────────────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; margin-top: .75rem; }
th {
  text-align: left; font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--dim);
  border-bottom: 1px solid var(--line); padding: .4rem .6rem .4rem 0;
}
td { border-bottom: 1px solid var(--line); padding: .7rem .6rem; vertical-align: top; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
tr.row-open:hover td { background: #f3f4f6; }
.screen { font-weight: 600; }
.screen a { text-decoration: none; }
.screen a:hover { text-decoration: underline; }
.caps { color: var(--dim); font-size: .82rem; margin-top: .1rem; }
.screen-note { color: var(--dim); font-size: .82rem; margin-top: .25rem; max-width: 34rem; }
.count { font-size: .82rem; color: var(--dim); white-space: nowrap; }
.count strong { color: var(--ink); font-weight: 600; }
.status { font-size: .8rem; white-space: nowrap; }
.status-unstarted { color: var(--dim); }
.status-in-round  { color: var(--ink); font-weight: 600; }
.status-confirmed { color: var(--confirmed); font-weight: 600; }

/* ── one screen: the brief and its states ────────────────────────────────── */

.brief { max-width: 46rem; color: var(--ink); margin: 0 0 .4rem; }
.states { margin-top: .5rem; font-size: .85rem; }
.states .s-row { display: flex; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.states .s-q { color: var(--dim); width: 3.2rem; flex: none; }
.states .s-n { flex: 1; }
.states .s-c { color: var(--faint); }

/* ── a version ───────────────────────────────────────────────────────────── */

.ver {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.05rem; margin-bottom: .9rem;
}
.ver-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.ver-id { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.ver-id a { text-decoration: none; }
.ver-name { color: var(--ink); }
.ver-meta { margin-left: auto; font-size: .78rem; color: var(--dim); white-space: nowrap; }
.v-open      { color: var(--ink); font-weight: 600; }
.v-kept      { color: var(--kept); font-weight: 600; }
.v-confirmed { color: var(--confirmed); font-weight: 600; }
.v-killed    { color: var(--killed); }
.v-archived  { color: var(--killed); }
.claim { color: var(--dim); font-size: .85rem; line-height: 1.5; margin: .5rem 0 0; max-width: 62ch; }
.vnote { color: var(--dim); font-size: .82rem; line-height: 1.5; margin: .55rem 0 0; max-width: 62ch;
         border-left: 2px solid var(--line); padding-left: .7rem; }
.changes { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .84rem; color: var(--ink); }
.changes li { margin-bottom: .2rem; }
.jump { margin-top: .8rem; font-size: .82rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.jump .lbl { color: var(--dim); }
.jump a {
  border: 1px solid var(--line); background: var(--bg);
  padding: .18rem .5rem; text-decoration: none;
}
.jump a:hover { border-color: var(--ink); }

/* ── the archive ─────────────────────────────────────────────────────────── */

details.arch { border-top: 1px solid var(--line); padding: .7rem 0; }
details.arch summary { cursor: pointer; font-size: .86rem; }
details.arch summary::marker { color: var(--dim); }
details.arch[open] summary { margin-bottom: .8rem; font-weight: 600; }
details.arch .ver { background: transparent; }

.none { color: var(--dim); font-size: .85rem; }
.err { border: 2px solid var(--alarm); color: var(--alarm); padding: 1rem 1.25rem; margin-top: 2rem; }
.err code { background: #fff; padding: 0 .25em; }
footer { color: var(--dim); font-size: .82rem; margin-top: 4rem;
         border-top: 1px solid var(--line); padding-top: .75rem; }
