/* Text columns ---------------------------------------------------------
   Boxes of text two across, half and half: an optional icon, a heading, the
   markdown text and an optional button at the foot. One column on a phone,
   two from the tablet up; a third box starts the next row. The boxes of a row
   stretch to one height and the button sits on the box's floor, so two
   buttons in a row line up whatever the texts above them are. */

.text-columns {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .text-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.text-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.text-column__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--secondary-soft);
  color: var(--secondary);
}

/* The icon is an inline drawing with no size of its own, and base.css gives
   every svg display:block; the box above is what fixes both. */
.text-column__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.text-column__title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
}

.text-column__body > :first-child {
  margin-top: 0;
}

.text-column__cta {
  margin-top: auto;
  padding-top: var(--space-2);
}
