/* components/style-guide.css — the labels between sections on
   page-style-guide.hbs. Deliberately plain so they're never mistaken for a
   section's own chrome. */

/* Space above, tight below, so the label belongs to the section under it. */
.style-guide__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-block: var(--space-20) var(--space-4);
  padding-block-end: var(--space-2);
  border-block-end: var(--border-width) solid var(--color-border-soft);
}

.style-guide__intro + .style-guide__label {
  margin-block-start: var(--space-10);
}

.style-guide__name {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
}

/* Mono: tag and path are literals to copy. */
.style-guide__meta {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-fg-tone);
}

.style-guide__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: var(--container-content);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-fg-tone);
}

/* The query rules under each label: term | plain-language detail. */
.style-guide__rules {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
  max-width: var(--container-content);
  margin-block-end: var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.style-guide__rules dt {
  color: var(--color-fg-tone);
}

.style-guide__rules dd {
  margin: 0;
}

/* nowrap: a tag broken at its hyphen reads as two tags. */
.style-guide__rules code {
  font-family: var(--font-mono);
  white-space: nowrap;
}
