/**
 * @file
 * Description atom — supplemental CSS for styles that cannot be expressed
 * as Tailwind utilities on the root element (e.g. descendant selectors on
 * CMS-rendered inner HTML inside {{ text }}).
 */

/* Underline all links inside description body copy (L-01, WCAG 1.4.1).
   Button links are excluded — they are distinguishable by shape. */
.description a:not([class*='button']) {
  @apply underline underline-offset-2;
}

/* Title spacing; two classes so it beats heading.css's unlayered `.heading { margin: 0 }`. */
.description-group > .description__title {
  margin-bottom: var(--spacing-d15);
}

/* With a title, the box fills the rest of the group so cards in a row match height. */
.description-group {
  display: flex;
  flex-direction: column;
}

.description-group > .description {
  flex-grow: 1;
}
