/* A folded rules list ("How the night works", "How the draft works"): one
   mono micro-label while shut, a numbered list when open. Chrome rather than content, so it never competes with the board. */
.rules-panel {
  margin: 0 0 var(--space-md);
}

/* Two folded panels in a row read as one strip of links, not two blocks. */
.rules-panel + .rules-panel {
  margin-top: calc(-1 * var(--space-sm));
}

.rules-panel__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--dur-fast) var(--ease-out);
}

.rules-panel__toggle::-webkit-details-marker {
  display: none;
}

.rules-panel__toggle::before {
  content: "›";
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.rules-panel[open] .rules-panel__toggle::before {
  transform: rotate(90deg);
}

.rules-panel__toggle:hover {
  color: var(--text-secondary);
}

.rules-panel__body {
  max-width: 64ch;
  margin: var(--space-sm) 0 0;
  padding: var(--space-smd) var(--space-md);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.rules-panel__section + .rules-panel__section {
  margin-top: var(--space-md);
}

/* The question is what somebody scans for, so it carries the ink. */
.rules-panel__question {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.rules-panel__answers {
  margin: 0;
  padding-left: var(--space-lg);
}

.rules-panel__answer + .rules-panel__answer {
  margin-top: var(--space-2xs);
}

.rules-panel__answer::marker {
  color: var(--text-tertiary);
}
