/**
 * Text content
 * Depends: design/tokens.css
 */

.text-content {
  padding: var(--section-padding-y) var(--content-gutter);
  background: var(--color-bg-alt);
}

.text-content__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.text-content__header {
  max-width: 52rem;
  margin-bottom: var(--rhythm-block-gap, var(--space-2));
}

.text-content__title {
  /* size/weight + margin följer global Site settings (design/rhythm.css) */
  color: var(--color-heading, var(--color-dark));
  margin-block-start: 0;
}

/* Första rubriken i kort — undvik extra luft upptill i boxen (flex + rhythm). */
.text-content__block > :is(h1, h2, h3, h4, h5, h6):first-of-type {
  margin-block-start: 0;
}

.text-content__lead {
  /* body + margin följer global Site settings (design/rhythm.css) */
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.text-content__lead a,
.text-content__block-body a {
  color: var(--color-link, currentColor);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-content__lead a:hover,
.text-content__block-body a:hover {
  text-decoration-thickness: 2px;
}

.text-content__lead strong,
.text-content__block-body strong {
  font-weight: 700;
}

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

.text-content__block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card, 12px);
  padding: var(--space-5);
}

.text-content__block-title {
  /* size/weight + margin följer global Site settings (design/rhythm.css) */
  color: var(--color-heading, var(--color-dark));
}

.text-content__block-body {
  /* body + margin följer global Site settings (design/rhythm.css) */
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.text-content__block-actions {
  margin-top: auto;
  padding-top: var(--space-4);
}

.text-content__block-actions .btn {
  display: inline-flex;
}

@media (min-width: 820px) {
  .text-content__blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
