/* =========================================================
   STADIUM DAYLIGHT — Rules (/rules)
   Long-form prose page. Reads like a Sunday-paper explainer:
   generous whitespace, serif headings, hairline rules between
   sections. No card chrome — the text is the surface.
   Tokens: tokens.css. Conventions: BEM, mobile-first.
   ========================================================= */

.rules {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  color: var(--ink);
}

.rules__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.rules__heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
.rules__lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

.rules__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.rules__section-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 32;
  margin: 0;
  color: var(--ink);
}

/* Prose blocks — p, ol/ul, strong. Comfortable measure, calm rhythm. */
.rules__prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.rules__prose p { margin: 0; }
.rules__prose strong { font-weight: 600; }
.rules__prose ol,
.rules__prose ul {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rules__prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rules__prose a:hover { text-decoration-thickness: 2px; }
.rules__prose--quiet {
  font-size: 14px;
  color: var(--slate);
}

/* Bullet list outside .rules__prose (used in the pot section). Same
   shape as the prose list but standalone so callers don't need to
   wrap in a prose container. */
.rules__list {
  margin: 0;
  padding-left: 1.4em;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules__list strong { font-weight: 600; }

/* Callout — pitch-soft strip for the regulation-time clarification. */
.rules__callout {
  background: var(--pitch-soft);
  border-left: 3px solid var(--pitch-deep);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.rules__callout p { margin: 0; }
.rules__callout strong { font-weight: 600; }

/* ----- Points table -----------------------------------------------
   Three columns: result label, points pill, "when" description.
   Mobile-first: the table stays as a table (3 columns), but the
   "when" column wraps naturally — no horizontal scroll.
*/
.rules__table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.rules__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.rules__table thead {
  background: var(--border-soft);
}
.rules__table th,
.rules__table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.rules__row:last-child .rules__cell,
.rules__row:last-child th { border-bottom: 0; }

.rules__col--result,
.rules__col--points,
.rules__col--when {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.rules__col--points,
.rules__cell--points {
  width: 64px;
  text-align: center;
}
.rules__cell--result { font-weight: 600; white-space: nowrap; }
.rules__cell--when { color: var(--ink-soft); line-height: 1.55; }

/* Points pills — same palette mapping as the form-dots: pitch for 5,
   pitch-soft for 3, sky for 1, error-soft for 0. Mono so the digit
   reads as a number, not a word. */
.rules__points-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.rules__points-pill--exact   { background: var(--pitch);      color: var(--ink);       border-color: var(--pitch-deep); }
.rules__points-pill--good    { background: var(--pitch-soft); color: var(--pitch-deep); border-color: var(--pitch-deep); }
.rules__points-pill--outcome { background: var(--sky);        color: var(--ink);       border-color: var(--sky-deep); }
.rules__points-pill--miss    { background: var(--error-soft); color: var(--error-deep); border-color: var(--error-deep); }

/* ----- FAQ -------------------------------------------------------- */
.rules__faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.rules__faq-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-soft);
}
.rules__faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rules__faq-q {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.rules__faq-a {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ----- Wider screens --------------------------------------------- */
@media (min-width: 640px) {
  .rules { padding: var(--space-2xl) var(--space-lg) var(--space-3xl); }
  .rules__lead { font-size: 19px; }
  .rules__section-heading { font-size: 28px; }
  .rules__table { font-size: 16px; }
}
