/* The challenge pages (docs/challenge.md), on the site's Modernist system
   (site.css): numbered rows between 2px rules, flat surface cards, the maroon
   poster to close. Phone first. Fairness: the two sides share every class. */
.challenge .section-hero { padding-bottom: 56px; }
.challenge .btn svg { flex: none; }
.challenge .btn-lg { gap: 10px; }

/* 01: the question reads like the thing you'll paste */
.challenge-question {
  margin: 0; padding: 24px 24px 24px 28px; background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
  font-size: clamp(19px, 2vw, 22px); line-height: 1.45; font-weight: 600; max-width: 52ch;
}
.challenge-question + .actions { margin-top: 20px; }

/* 02 and 04: two sides, side by side, equal */
.challenge-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; }
.challenge-card {
  display: flex; flex-direction: column; padding: 24px 24px 28px;
  background: var(--color-surface); border-top: 2px solid var(--color-divider);
}
.challenge-card .h3 { font-size: 22px; margin-bottom: 8px; }
.challenge-card p { margin: 0 0 28px; }
.challenge-open { width: 100%; margin-top: auto; justify-content: space-between; align-items: center; min-height: 56px; text-align: left; }

/* 03: the three rounds */
.challenge-rounds { display: flex; gap: 2px; margin: 0 0 28px; padding: 0; list-style: none; }
.challenge-rounds li {
  flex: 1; max-width: 120px; padding: 14px 16px; background: var(--color-surface);
  border-top: 2px solid var(--color-accent);
  font-family: var(--font-heading); font-weight: 800; font-size: 28px; line-height: 1; color: var(--color-accent);
}

.challenge-vote {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  min-height: clamp(96px, 12vw, 132px); padding: 22px 24px; text-align: left; cursor: pointer;
  background: var(--color-surface); color: var(--color-text);
  border: 0; border-top: 2px solid var(--color-divider); border-radius: 0;
  font: inherit; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.01em;
}
.challenge-vote .kicker { font-family: var(--font-body, inherit); font-weight: 400; }
.challenge-vote:hover { background: var(--color-accent-100); border-top-color: var(--color-accent); }
.challenge-vote:active { background: var(--color-accent-200); }
.challenge-vote:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.challenge-vote:disabled { opacity: 0.55; cursor: progress; }
.challenge-voted {
  display: flex; gap: 12px; align-items: center; margin: 0; padding: 22px 24px;
  background: var(--color-surface); border-top: 2px solid var(--color-accent);
  font-size: 19px; font-weight: 600;
}
.challenge-voted svg { color: var(--color-accent); flex: none; }

.challenge-disclaimer { margin: 0; padding: 28px 0 84px; border-top: 2px solid var(--color-divider); max-width: none; }
.challenge + .poster .lead { margin-top: 20px; }
.challenge + .poster .actions { margin-top: 36px; }

/* display:grid and flex above would beat [hidden] */
.challenge [hidden] { display: none; }

/* one sentence to a line: "Same question." / "Two AIs." / "You pick." */
.challenge-h1 { max-width: none; }
.challenge-h1 span { display: block; }
/* the rows give the work two thirds of the width, so the two sides have room */
@media (min-width: 900px) { .challenge-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

/* /challenge: the four topics, then how it works */
.challenge-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; }
.challenge-topic {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px;
  background: var(--color-surface); border-top: 2px solid var(--color-divider);
  color: var(--color-text); text-decoration: none;
}
.challenge-topic .kicker { margin-bottom: 6px; }
.challenge-topic-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.challenge-topic-q { font-size: 15px; line-height: 24px; color: var(--color-neutral-700); margin-bottom: 20px; }
.challenge-topic-go {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  font-size: 15px; font-weight: 600; color: var(--color-accent);
}
.challenge-topic:hover { color: var(--color-text); background: var(--color-accent-100); border-top-color: var(--color-accent); }
.challenge-topic:hover .challenge-topic-go svg { transform: translateX(3px); }
.challenge-topic:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.challenge-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px clamp(24px, 3vw, 42px); }
.challenge-steps .step .h3 { margin-bottom: 8px; }
