/* How the rating works, read by players rather than admins: prose width, and
   the arithmetic set in mono so it reads as something you could check. */
.guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--measure-mid);
  margin: 0 auto;
}

.guide__title {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

.guide__lede {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.guide__section {
  padding-top: var(--space-lg);
  border-top: var(--border-width) solid var(--border-default);
}

.guide__heading {
  margin: 0 0 var(--space-smd);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.guide__section p {
  margin: 0 0 var(--space-smd);
  line-height: 1.6;
}

.guide__note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.guide__list {
  margin: 0 0 var(--space-smd);
  padding-left: var(--space-md);
  line-height: 1.7;
}

.guide__list--mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  list-style: none;
  padding-left: 0;
}

/* Tables are the one thing allowed to scroll sideways on a phone. */
.guide__table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-smd);
}

.guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.guide__table th {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: var(--border-width) solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: left;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.guide__table td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: var(--border-width) solid var(--border-default);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.guide__table td:not(:first-child) {
  font-family: var(--font-mono);
}

.guide__formula {
  margin-bottom: var(--space-md);
}

.guide__formula-title,
.guide__example-title {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.guide__code {
  margin: 0 0 var(--space-xs);
  padding: var(--space-smd);
  overflow-x: auto;
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-sunk);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: pre-wrap;
}

.guide__example {
  margin-top: var(--space-md);
  padding: var(--space-smd);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
}

/* On the ladder, pointing at the explanation. */
.members-page__guide-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--dur) var(--ease-out);
}

.members-page__guide-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.members-page__guide-arrow {
  margin-left: var(--space-2xs);
}
