/* Iron Minds identity questionnaire. Dark only.
   Palette: a rubber gym floor, chalk, and the competition plate colours.
   Each section of the questionnaire takes one plate colour (25 red, 20 blue,
   15 yellow, 10 green, 5 white) and the progress bar loads a plate per answer. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --floor: #1b1e22;
  --iron: #252a30;
  --iron-up: #2f353c;
  --edge: #444b54;
  --chalk: #ece8e0;
  --chalk-dim: #aaa69e;
  --plate-red: #d8363d;
  --plate-blue: #3a78dc;
  --plate-yellow: #e7b62a;
  --plate-green: #34a05e;
  --plate-white: #dedbd3;
  --focus: #e7b62a;
  --danger: #ff6b6b;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --gutter: 16px;
  --radius: 6px;
  --plate: var(--plate-red);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(236, 232, 224, 0.07), transparent 70%),
    var(--floor);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--chalk); text-decoration-color: var(--plate-yellow); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.dim { color: var(--chalk-dim); }
.small { font-size: 0.9375rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 8px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.masthead nav { display: flex; gap: 16px; }
.masthead nav a { color: var(--chalk-dim); font-size: 0.9375rem; }

/* ---------- buttons ---------- */

button { font: inherit; color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--chalk);
  border-radius: var(--radius);
  background: var(--chalk);
  color: var(--floor);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--edge);
}
.btn.ghost:hover { border-color: var(--chalk-dim); background: var(--iron); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.1); }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: var(--floor); }

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--chalk-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--chalk); }

/* ---------- intro ---------- */

.intro { padding-top: 7vh; }
.intro h1 { max-width: 11ch; }
.intro .lede { font-size: 1.25rem; color: var(--chalk); }
.intro .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
  color: var(--chalk-dim);
}
.intro .facts strong {
  display: block;
  font-family: var(--display);
  font-size: 2.25rem;
  color: var(--chalk);
  line-height: 1;
}
.intro .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.returning {
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 4px solid var(--plate-green);
  background: var(--iron);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.returning p { margin: 0; }

/* ---------- barbell progress ---------- */

.barbell {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 12px 0 6px;
}
.barbell .sleeve {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1px;
  width: calc(18 * 6px + 6px);
  height: 100%;
  position: relative;
}
.barbell .sleeve::before { /* the sleeve itself */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 8px;
  margin-top: -4px;
  background: linear-gradient(#8f959c, #5b6168);
  border-radius: 2px;
}
.barbell .sleeve.left { flex-direction: row-reverse; padding-right: 6px; }
.barbell .sleeve.right { padding-left: 6px; }
.barbell .collar {
  flex: 0 0 auto;
  width: 6px;
  height: 18px;
  background: #8f959c;
  border-radius: 1px;
}
.barbell .shaft {
  flex: 1 1 auto;
  height: 4px;
  min-width: 40px;
  background:
    repeating-linear-gradient(90deg, #6d737a 0 2px, #4f555c 2px 4px); /* knurling */
}
.plate {
  position: relative;
  flex: 0 0 5px;
  width: 5px;
  height: 40px;
  border-radius: 1px;
  background: var(--plate);
  box-shadow: inset -1px 0 rgba(0, 0, 0, 0.35);
}
.plate.small { height: 30px; }
.plate.fresh { animation: load 260ms cubic-bezier(.2, .9, .3, 1.2); }
@keyframes load {
  from { transform: scaleY(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--chalk-dim);
  margin-bottom: 28px;
}
.section-name { color: var(--plate); font-weight: 600; }

/* section colours */
[data-section="Technique"] { --plate: var(--plate-red); }
[data-section="Data & monitoring"] { --plate: var(--plate-blue); }
[data-section="Programming"] { --plate: var(--plate-yellow); }
[data-section="Meet"] { --plate: var(--plate-green); }
[data-section="Philosophy"] { --plate: var(--plate-white); }

/* ---------- question ---------- */

.question-text {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.6vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 28px;
  max-width: 34ch;
}
.question-text:focus { outline: none; }
.question-text .qnum {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--plate);
  margin-bottom: 8px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale button {
  aspect-ratio: 1 / 1.05;
  min-height: 56px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}
.scale button:hover { border-color: var(--chalk-dim); background: var(--iron-up); }
.scale button[aria-pressed="true"] {
  background: var(--plate);
  border-color: var(--plate);
  color: var(--floor);
}
.poles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--chalk-dim);
}
.poles span:nth-child(2) { text-align: center; }
.poles span:nth-child(3) { text-align: right; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

/* "It depends on the lifter" */
.depends-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px dashed var(--edge);
  border-radius: var(--radius);
  background: transparent;
  color: var(--chalk-dim);
  cursor: pointer;
  text-align: left;
}
.depends-toggle::before { content: "\21C4"; color: var(--plate); font-weight: 600; }
.depends-toggle:hover { border-color: var(--chalk-dim); color: var(--chalk); }
.depends-toggle.on::before { content: "\2190"; }
.depends-dims { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.depends-dims legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.depends-dims .roles span { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.25; }
.depends-dims .roles small { font-size: 0.8125rem; color: var(--chalk-dim); font-weight: 400; }
.depends-dims .roles input:checked + span small { color: var(--floor); }
/* One compact 1-5 row per combination; the pole labels sit once above the rows. */
.combo-head .poles { margin: 0 0 8px; font-size: 0.8125rem; }
.combo-rows { list-style: none; margin: 0; padding: 0; }
.combo-row { padding: 10px 0; border-top: 1px solid var(--edge); }
.combo-name { display: block; margin-bottom: 6px; font-weight: 600; color: var(--plate); line-height: 1.3; }
.scale.compact { gap: 6px; }
.scale.compact button {
  aspect-ratio: auto;
  min-height: 44px;
  height: 44px;
  font-size: 1.35rem;
}
@media (min-width: 560px) {
  .combo-head { display: grid; grid-template-columns: 1fr 17rem; gap: 12px; }
  .combo-head .poles { grid-column: 2; }
  .combo-row { display: grid; grid-template-columns: 1fr 17rem; gap: 12px; align-items: center; }
  .combo-name { margin-bottom: 0; }
}

/* skip toggle (q12, q13) */
.skip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px dashed var(--edge);
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.skip:hover { border-color: var(--chalk-dim); }
.skip[aria-pressed="true"] { border-style: solid; border-color: var(--plate); background: var(--iron); }
.skip .box {
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid var(--chalk-dim);
  border-radius: 3px;
}
.skip[aria-pressed="true"] .box { background: var(--plate); border-color: var(--plate); }

/* q12 cards */
.lifter-cards { display: grid; gap: 12px; }
@media (min-width: 620px) { .lifter-cards { grid-template-columns: 1fr 1fr; } }
.lifter {
  padding: 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}
.lifter h3 { margin-bottom: 4px; }
.lifter p { font-size: 0.9375rem; color: var(--chalk-dim); margin-bottom: 12px; }
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--edge);
}
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron-up);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover:not(:disabled) { border-color: var(--chalk-dim); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output {
  min-width: 2.2ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}
.stepper output.unset { color: var(--chalk-dim); }
.stepper-unit { font-size: 0.875rem; color: var(--chalk-dim); width: 5.5ch; }

/* q13 rows */
.range-rows { display: grid; gap: 10px; }
.range-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}
.range-row .lift { font-weight: 600; }
.range-inputs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.range-inputs label { color: var(--chalk-dim); font-size: 0.9375rem; }
@media (min-width: 520px) {
  .range-row { grid-template-columns: 7rem 1fr; align-items: center; }
}

input[type="text"], input[type="email"], input[type="number"], input[type="url"] {
  font: inherit;
  color: var(--chalk);
  background: var(--floor);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 48px;
  width: 100%;
}
input[type="number"] { width: 5.5rem; text-align: center; font-weight: 600; }
input:hover { border-color: var(--chalk-dim); }
input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger); }

/* q18 ranking */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 0;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  touch-action: pan-y;
}
.rank-item.dragging {
  border-color: var(--plate);
  background: var(--iron-up);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}
.rank-handle {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
}
.rank-handle:active { cursor: grabbing; }
.rank-handle .grip {
  width: 10px;
  height: 22px;
  background-image: radial-gradient(circle, var(--chalk-dim) 1.5px, transparent 1.8px);
  background-size: 5px 5.5px;
}
.rank-pos {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  min-width: 1.2ch;
  color: var(--plate);
}
.rank-label { flex: 1 1 auto; line-height: 1.3; font-size: 1rem; }
.rank-label small { display: block; color: var(--chalk-dim); font-size: 0.875rem; }
.rank-tools { display: flex; gap: 4px; flex: 0 0 auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron-up);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.icon-btn:hover:not(:disabled) { border-color: var(--chalk-dim); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
@media (max-width: 420px) {
  .rank-tools { flex-direction: column; }
  .rank-tools .icon-btn { width: 36px; height: 32px; }
}
.removed { margin-top: 20px; }
.removed h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--chalk-dim); }
.removed-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px dashed var(--edge);
  border-radius: 999px;
  background: transparent;
  color: var(--chalk-dim);
  cursor: pointer;
  text-align: left;
}
.chip:hover { color: var(--chalk); border-color: var(--chalk-dim); }
.chip .plus { color: var(--plate); font-weight: 600; margin-right: 4px; }

/* ---------- profile form ---------- */

.field { margin-bottom: 22px; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .help { margin: 6px 0 0; font-size: 0.9375rem; color: var(--chalk-dim); }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.with-prefix { position: relative; }
.with-prefix span {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--chalk-dim);
  pointer-events: none;
}
.with-prefix input { padding-left: 32px; }

.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roles span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 18px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron);
}
.roles label:hover span { border-color: var(--chalk-dim); }
.roles input:checked + span { border-color: var(--chalk); background: var(--chalk); color: var(--floor); font-weight: 600; }
.roles input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--iron);
}
.consent label { display: block; font-weight: 600; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--plate-green); flex: 0 0 auto; cursor: pointer; }
.consent .help { display: block; margin: 4px 0 0; font-size: 0.9375rem; color: var(--chalk-dim); }

.turnstile-slot { min-height: 70px; margin: 8px 0 20px; }

.errors {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--danger);
  background: rgba(255, 107, 107, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.errors:empty { display: none; }
.errors ul { margin: 0; padding-left: 18px; }
.errors p { margin: 0; }

/* ---------- results ---------- */

.results-head { padding-top: 32px; }
.results-head p { color: var(--chalk-dim); }

.match-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.match {
  background: var(--iron);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}
.match.guest { border-color: var(--plate-yellow); }
.match-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}
.match-toggle:hover { background: var(--iron-up); }
.match-rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--chalk-dim);
  min-width: 1.1ch;
}
.match-name { font-weight: 600; font-size: 1.125rem; line-height: 1.25; overflow-wrap: anywhere; }
.match-name .hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--chalk-dim); }
.match-score {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1;
}
.match-score small { font-size: 0.55em; color: var(--chalk-dim); margin-left: 1px; }
.match-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 14px; font-size: 0.9375rem; }
.match-meta:empty { display: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--plate-yellow);
  color: var(--floor);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.handle { color: var(--chalk-dim); }

.guest-card { margin: 0 0 32px; }
.guest-card h2 { margin-bottom: 12px; }

.empty {
  padding: 24px 20px;
  border: 2px dashed var(--edge);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.empty p { margin: 0; font-size: 1.125rem; }

/* comparison */
.compare { padding: 4px 16px 18px; border-top: 1px solid var(--edge); }
.compare-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; font-size: 0.9375rem; color: var(--chalk-dim); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.you { background: var(--chalk); }
.dot.them { background: transparent; border: 2px solid var(--plate-yellow); }
.cmp-item { padding: 14px 0; border-bottom: 1px solid var(--edge); }
.cmp-item:last-child { border-bottom: 0; }
.cmp-q { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.4; }
.cmp-q b { font-family: var(--display); font-size: 1.15rem; margin-right: 6px; color: var(--plate); }

.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.track span {
  position: relative;
  height: 30px;
  border-radius: 4px;
  background: var(--floor);
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--chalk-dim);
}
.track span.you { background: var(--chalk); color: var(--floor); border-color: var(--chalk); font-weight: 600; }
.track span.them { box-shadow: inset 0 0 0 3px var(--plate-yellow); }
.track span.you.them { box-shadow: inset 0 0 0 3px var(--plate-yellow); }
.split-lines { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; }
.split-lines dt { font-weight: 600; }
.split-lines dt.them { color: var(--plate-yellow); }
.split-lines dd { margin: 0; color: var(--chalk-dim); }
.combo-lines { list-style: none; margin: 0; padding: 0; }
.combo-lines li + li { margin-top: 2px; }
.track-poles { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 0.8125rem; color: var(--chalk-dim); }
.track-poles span:last-child { text-align: right; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp-table th, .cmp-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--edge); }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table thead th { color: var(--chalk-dim); font-weight: 500; }
.cmp-table td { font-weight: 600; }
.cmp-table .them-row td { color: var(--plate-yellow); }

.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-cols h4 { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--chalk-dim); }
.cmp-cols ol { margin: 0; padding-left: 20px; font-size: 0.9375rem; line-height: 1.35; }
.cmp-cols li { margin-bottom: 4px; }
.cmp-cols .them h4 { color: var(--plate-yellow); }
.cmp-cols .gone { margin: 6px 0 0; font-size: 0.8125rem; color: var(--chalk-dim); }
.cmp-none { color: var(--chalk-dim); font-style: normal; }

/* private link */
.keep {
  margin: 8px 0 32px;
  padding: 18px 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--plate-red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.keep h2 { font-size: 1.6rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; color: var(--chalk-dim); }

.danger-zone { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--edge); }
.confirm { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--danger); border-radius: var(--radius); }
.confirm .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- stats page ---------- */

.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat-item {
  padding: 16px;
  background: var(--iron);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--plate);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-big { margin: 0 0 10px; font-size: 1.0625rem; }
.stat-big strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  margin-right: 4px;
}
.dim-bars { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.dim-bars li { display: grid; gap: 4px; }
.dim-bars .dim-text { color: var(--chalk-dim); line-height: 1.35; }
.dim-bars .dim-text strong { color: var(--chalk); font-weight: 600; }
.bar { height: 10px; border-radius: 5px; background: var(--floor); border: 1px solid var(--edge); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: var(--w, 0%); background: var(--plate); }

.means { display: grid; gap: 16px; margin-top: 14px; }
.mean-row { padding-top: 12px; border-top: 1px solid var(--edge); }
.mean-title { margin: 0 0 6px; color: var(--chalk-dim); }
/* Markers sit on a 1-5 line: A above it, B below it, so equal averages never hide each other. */
.mean-track { position: relative; height: 64px; margin: 0 14px; }
.mean-track .line { position: absolute; left: 0; right: 0; top: 31px; height: 2px; background: var(--edge); }
.mean-track .tick {
  position: absolute;
  left: var(--x);
  top: 26px;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--edge);
  font-size: 0;
}
.marker {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
}
.marker.a { top: 0; background: var(--chalk); color: var(--floor); }
.marker.b { top: 38px; background: var(--floor); color: var(--plate-yellow); border: 2px solid var(--plate-yellow); }
.marker-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.75rem;
  vertical-align: 1px;
}
.marker-key.a { background: var(--chalk); color: var(--floor); }
.marker-key.b { border: 2px solid var(--plate-yellow); color: var(--plate-yellow); }
.mean-row .split-lines dd { color: var(--chalk); }

/* ---------- privacy page ---------- */

.prose { padding-top: 24px; }
.prose h2 { font-size: 1.75rem; margin-top: 1.4em; }
.prose ul { padding-left: 20px; max-width: 62ch; }
.prose li { margin-bottom: 6px; }

footer.site { margin-top: 48px; color: var(--chalk-dim); font-size: 0.875rem; }

/* ---------- utilities (no inline styles: the CSP allows style-src 'self' only) ---------- */

.loading { padding-top: 32px; }
.mt-12 { margin-top: 12px; }
.note-below { margin: 6px 0 0; }
.flush { margin: 0; }
.cmp-table td.them-val { color: var(--plate-yellow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
