/**
 * Text half-list — 50/50 text only, premium list (no card boxes).
 * Depends: design/tokens.css, design/rhythm.css (optional)
 */

.section-text-half-list {
  --text-half-list-divider-space: clamp(var(--space-5), 3vw, var(--space-8));
  --text-half-list-column-gap: clamp(var(--space-8), 6vw, var(--space-16));
  padding: var(--section-padding-y) var(--content-gutter);
  background: var(--color-bg);
  color: var(--color-text);
}

.section-text-half-list__inner {
  width: 100%;
  max-width: var(--content-width, min(1200px, 100vw - 2rem));
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-10));
  align-items: start;
}

@media (min-width: 900px) {
  .section-text-half-list__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--text-half-list-column-gap);
  }
}

.section-text-half-list__intro {
  min-width: 0;
  max-width: 42rem;
}

@media (min-width: 900px) {
  .section-text-half-list__intro {
    position: sticky;
    top: var(--space-8);
  }
}

.section-text-half-list__label {
  margin: 0 0 var(--rhythm-column-heading-after);
  font-size: var(--text-label, var(--text-xs, 0.75rem));
  font-weight: var(--font-weight-label, 600);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted, var(--color-text));
  opacity: 0.72;
}

.section-text-half-list__label::before {
  content: "";
  display: var(--label-stroke, block);
  width: 4.5rem;
  height: 3px;
  margin-bottom: var(--space-2, 8px);
  background: var(--color-accent);
}

.section-text-half-list__label:empty {
  display: none;
}

.section-text-half-list__heading {
  margin: 0 0 var(--rhythm-h2-after);
  color: var(--color-heading, var(--color-dark));
  font-weight: var(--font-weight-h2, 600);
  line-height: var(--leading-tight, 1.2);
  overflow-wrap: break-word;
}

.section-text-half-list__lead {
  margin: 0;
  max-width: 42ch;
  font-size: var(--text-lg, 1.125rem);
  line-height: var(--leading-relaxed, 1.65);
  color: var(--color-text);
}

.section-text-half-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.section-text-half-list__item {
  margin: 0;
  padding: var(--text-half-list-divider-space) 0;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.section-text-half-list__item + .section-text-half-list__item {
  border-top: 1px solid var(--color-border);
}

.section-text-half-list__item:first-child {
  padding-top: 0;
}

.section-text-half-list__item:last-child {
  padding-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .section-text-half-list__item:hover {
    background-color: color-mix(in srgb, var(--color-heading) 5%, transparent);
    border-color: color-mix(in srgb, var(--color-border) 70%, var(--color-heading));
  }
}

.section-text-half-list__item-title {
  margin: 0 0 var(--rhythm-h3-after);
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-heading, var(--color-dark));
  line-height: var(--leading-snug, 1.35);
  overflow-wrap: break-word;
}

.section-text-half-list__item-text {
  margin: 0;
  font-size: var(--text-base, 1rem);
  line-height: var(--leading-relaxed, 1.65);
  color: var(--color-text);
  max-width: 48ch;
  overflow-wrap: break-word;
}

@media (max-width: 899px) {
  .section-text-half-list {
    --text-half-list-divider-space: var(--space-6);
  }

  .section-text-half-list__intro,
  .section-text-half-list__lead,
  .section-text-half-list__item-text {
    max-width: none;
  }

  .section-text-half-list__items {
    width: 100%;
  }

  .section-text-half-list__item:first-child {
    border-top: 1px solid var(--color-border);
    padding-top: var(--text-half-list-divider-space);
  }
}

@media (max-width: 560px) {
  .section-text-half-list__inner {
    gap: var(--space-6);
  }

  .section-text-half-list__lead {
    font-size: var(--text-base, 1rem);
  }

  .section-text-half-list__item-title {
    font-size: var(--text-base, 1rem);
  }
}
