/* CineQC — reliability study page. Layered on top of cineqc.css (qcg-*, arena-*,
   batch-table), so this file only holds what the study page adds. */

/* The shared hero h1 clamps up to 72px in a ~470px column, so any word longer
   than ~8 characters overflows the column and runs under .qcg-hero-art — the
   word gets visually clipped and reads as a typo. Copy avoids long words, this
   is the guard so it can't happen again. */
.qcg-hero h1 { overflow-wrap: break-word; }

.as-tiles { margin: 28px 0 8px; }

.as-readout,
#as-readout .as-readout {
  font-family: var(--font-body, 'Hanken Grotesk', sans-serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text, #d7deea);
  max-width: 74ch;
  margin: 18px 0 6px;
  padding: 20px 22px;
  /* Matches .explain-verdict in cineqc.css — same accented-card treatment the
     tool already uses for a verdict block. */
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--accent, #ff7338);
  border-radius: 12px;
}
.as-readout b { color: #fff; }

.as-h3 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: .01em;
  color: #fff;
  margin: 42px 0 6px;
}

/* Results table — kappa column carries the band colour. */
.as-table th,
.as-table td { white-space: nowrap; }
.as-table td.as-band {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .75;
}
.as-table .as-good { color: #4ade80; font-weight: 700; }
.as-table .as-ok   { color: #a3e635; font-weight: 700; }
.as-table .as-warn { color: #fbbf24; font-weight: 700; }
.as-table .as-bad  { color: var(--accent2, #ff2d78); font-weight: 700; }
.as-flag { color: var(--accent, #ff7338); }

/* Protocol — numbered, because the order is the method. */
.as-protocol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  max-width: 82ch;
}
.as-protocol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 58px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  line-height: 1.65;
  color: var(--text-dim, #9fb0c6);
}
.as-protocol li b { color: #fff; }
.as-protocol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent, #ff7338);
}

/* Collector */
.as-form {
  max-width: 720px;
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.as-form label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim, #9fb0c6);
  margin-top: 10px;
}
.as-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 8, 16, .6);
  color: #fff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .85rem;
}
.as-form input:focus-visible {
  outline: 2px solid var(--accent, #ff7338);
  outline-offset: 1px;
  border-color: transparent;
}
.as-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.as-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .9rem; color: var(--accent, #ff7338); }

.as-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.as-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .82rem;
  color: var(--text, #d7deea);
}
.as-list .as-empty { justify-content: flex-start; color: var(--text-dim, #9fb0c6); opacity: .7; }
.as-del {
  background: none;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text-dim, #9fb0c6);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .72rem;
  cursor: pointer;
}
.as-del:hover { color: var(--accent2, #ff2d78); border-color: var(--accent2, #ff2d78); }

/* This page doubles as a portfolio artifact — the collector is scaffolding, not evidence. */
@media print {
  .as-collect, .qcg-cta-row, .grain-overlay, .dvp-orb { display: none !important; }
  .as-readout { border-color: #000; background: none; }
}

@media (max-width: 640px) {
  .as-protocol li { padding-left: 20px; padding-top: 40px; }
  .as-protocol li::before { top: 14px; left: 20px; }
}
