/* The live leaderboard card, the long-form document layer (privacy, terms,
 * support), and the help renderer's pieces. */

/* --------------------------------------------------------------- board --- */

.proof {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: clamp(20px, 3.4vw, 34px);
}
.proof-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair-soft);
}
.proof-where { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.proof-when { font-family: var(--mono); font-size: .74rem; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }

.board { list-style: none; margin: 18px 0 0; padding: 0; }
.board li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--hair-soft);
}
.board li:first-child { border-top: 0; }
.board .who { min-width: 0; }
.board .who b { display: block; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .who span { display: block; font-size: .82rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .score { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.boards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.boards button {
  font: inherit;
  font-size: .84rem;
  padding: 8px 15px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--hair);
  transition: background .15s, color .15s;
}
.boards button:hover { color: var(--text); background: rgba(139, 92, 246, .1); }
.boards button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 700; }

.pulse {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 5px rgba(248, 113, 113, .16);
  margin-right: 8px; vertical-align: middle;
}

/* ----------------------------------------------------------- documents --- */

.doc { max-width: var(--measure); }
.doc h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 54px 0 14px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 30px 0 8px; font-size: 1.04rem; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { margin: 0 0 1em; padding-left: 22px; }
.doc li { margin-bottom: .45em; }
.doc strong { color: var(--text); font-weight: 700; }

.doc-date { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

/* The pulled-aside block: a summary, a caveat, an address. Two states —
   ordinary, and the gold one that is genuinely a warning. */
.panel { border: 1px solid var(--hair); background: var(--ink-2); padding: clamp(20px, 2.6vw, 30px); margin: 28px 0; }
.panel p { color: var(--text-2); }
.panel p + p { margin-top: 0; }
.panel--warn { border-color: rgba(252, 211, 77, .4); background: rgba(252, 211, 77, .07); }
.panel--warn strong { color: var(--gold); }

/* The one form on the site: sign in to delete. Danger is the live red, not
   gold — gold is a podium, and this is not a warning to read but an act. */
.form { display: grid; gap: 18px; max-width: 440px; margin: 26px 0 8px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.field input {
  background: var(--ink-2); border: 1px solid var(--hair); border-radius: 3px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 1rem; outline: none;
}
.field input:focus { border-color: var(--violet); }
.field input:disabled { opacity: .5; }
.cta--danger { background: var(--live); border: 0; cursor: pointer; font-family: inherit; }
.cta--danger:hover { background: var(--live-hi); }
.cta--danger:disabled { opacity: .5; cursor: default; }

/* Progress of the two remote steps, in order, so a half-finished run says
   exactly which half. */
.steps { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 8px; }
.steps li { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--text-3); }
.steps li::before { content: "○  "; }
.steps li[data-state="busy"] { color: var(--text); }
.steps li[data-state="busy"]::before { content: "◐  "; }
.steps li[data-state="done"] { color: var(--violet-hi); }
.steps li[data-state="done"]::before { content: "●  "; }
.steps li[data-state="failed"] { color: var(--live); }
.steps li[data-state="failed"]::before { content: "✕  "; }

/* ---------------------------------------------------------------- help --- */

.search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hair); border-radius: 3px;
  padding: 12px 16px; margin-bottom: 34px;
  background: var(--ink-2);
}
.search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.search input::placeholder { color: var(--text-3); }
.topic { border-top: 1px solid var(--hair-soft); }
.topic:first-child { border-top: 0; }
.topic summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  display: flex; align-items: baseline; gap: 12px;
  font-weight: 700; letter-spacing: -.015em;
}
.topic summary::-webkit-details-marker { display: none; }
.topic summary::after { content: "+"; margin-left: auto; color: var(--violet-hi); font-weight: 400; }
.topic[open] summary::after { content: "\2013"; }
.topic p { padding: 0 0 18px; color: var(--text-2); max-width: 72ch; }
.sec { margin-bottom: 44px; }
.empty { color: var(--text-3); padding: 40px 0; }
