/**
 * @file
 * Highlighted content paragraph — compact related campaigns.
 *
 * Scoped to .sml-highlighted-content so global Olivero teaser styles
 * used elsewhere are unchanged.
 *
 * Tokens (css/base/variables.css):
 *   --sml-black, --sml-link, --sml-link-hover, --sml-font-jost,
 *   --sml-font-code-pro-bold, --sml-font-display-heading.
 */

.sml-highlighted-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
  margin-block: 2rem 1.5rem;
}

.sml-highlighted-content__header {
  min-width: 0;
}

/* Shared .component-header uses a bottom rule; keep it on stacked layouts. */
.sml-highlighted-content .component-header {
  margin-bottom: 0;
}

.sml-highlighted-content .component-header-text {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: wrap;
}

.sml-highlighted-content__cta {
  margin-block-start: 0.75rem;
}

.sml-highlighted-content__items {
  min-width: 0;
}

.sml-highlighted-content__grid,
.sml-highlighted-content__items .field__items.sml-highlighted-content__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
}

.sml-highlighted-content__item {
  min-width: 0;
}

@media (min-width: 48rem) {
  /* Title column + three campaign columns (production col-md-3 / col-md). */
  .sml-highlighted-content {
    grid-template-columns: minmax(min-content, 1fr) minmax(0, 3fr);
    align-items: start;
  }

  .sml-highlighted-content__header,
  .sml-highlighted-content .component-header-text {
    min-width: min-content;
  }

  .sml-highlighted-content__header {
    padding-inline-end: 1.5rem;
    border-inline-end: 4px solid var(--sml-orange);
  }

  .sml-highlighted-content .component-header {
    border-bottom: 0;
    padding-block: 0.75rem;
  }

  .sml-highlighted-content__grid,
  .sml-highlighted-content__items .field__items.sml-highlighted-content__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Compact teasers inside this paragraph only. */
.sml-highlighted-content .teaser {
  padding-block-end: 0;
}

.sml-highlighted-content .teaser::after {
  content: none;
  border: 0;
}

.sml-highlighted-content .teaser__top {
  margin-block-end: 0.5rem;
  gap: 0.5rem;
}

.sml-highlighted-content .teaser__image:empty {
  display: none;
}

.sml-highlighted-content .teaser__content {
  gap: 0.5rem;
}

.sml-highlighted-content .teaser__title,
.sml-highlighted-content .node__title.teaser__title {
  flex-basis: auto;
  margin: 0;
  color: var(--sml-black);
  font-family: var(--sml-font-code-pro-bold);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.sml-highlighted-content .teaser__title a,
.sml-highlighted-content .node__title.teaser__title a {
  color: var(--sml-black);
  text-decoration: underline;
}

.sml-highlighted-content .teaser__title a:hover,
.sml-highlighted-content .teaser__title a:focus,
.sml-highlighted-content .node__title.teaser__title a:hover,
.sml-highlighted-content .node__title.teaser__title a:focus {
  color: var(--sml-link-hover);
  text-decoration: underline;
}

.sml-highlighted-content .sml-page-summary {
  margin-block-end: 0;
}

.sml-highlighted-content .sml-page-summary__text,
.sml-highlighted-content .sml-page-summary__text .text-content {
  color: var(--sml-black);
  font-family: var(--sml-font-jost);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sml-highlighted-content .sml-page-summary__subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}
