.section-cards .section-view-content {
  display: grid;
  grid-gap: 0;
}

.section-cards.pb-0 {
  padding-bottom: 0 !important;
}

.section-cards .page-title {
  color: var(--section-title-clr, var(--clr-gray-dark));
}

/* Marker the pin/unpin IntersectionObserver watches (js/section-cards.js)
   - needs real geometry (not a collapsed 0-height empty div) for the
   observer's threshold calc to fire correctly. */
.section-cards-sentinel {
  height: 1px;
}

.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 60px;
  margin-bottom: 0;
  max-width: 1360px;
  margin: 0 auto;
  border-bottom: 1px solid var(--clr-gray-500);
}

/* Titles-only jump-nav, toggled by js/section-cards.js once the sentinel
   placed before the full card grid scrolls above the header. display:none
   by default means it takes no space in normal flow - no spacer/layout-
   jump handling needed, unlike fixing the full card grid itself would
   require. No description text in here by design, see the Twig. */
.section-cards-menu {
  display: none;
  padding-top: 10px;
  transition: all 0.5s ease 0s;
}

.section-cards-menu.is-pinned {
  display: block;
  position: fixed;
  top: var(--header-height, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-gray-500);
}

.section-cards-menu__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp8);
  padding: var(--sp5) var(--sp8);
}

.section-cards-menu__link {
  display: inline-block;
  color: var(--clr-gray-dark);
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
}

.section-cards-menu__link:hover,
.section-cards-menu__link.active {
  color: var(--clr-blue);
  border-bottom-color: var(--clr-primary);
}

.section-cards__item {
  display: flex;
}

.section-card {
  position: relative;
  display: flex;
  grid-gap: 30px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  padding: 15px 20px;
  padding-bottom: 20px;
}

.section-card.active::after,
.section-card:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--clr-primary);
}

.section-card:hover,
.section-card.active {
  background: rgba(255, 255, 255, 0.3);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.section-card__body {
  display: grid;
  grid-gap: 20px;
}

.section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp5);
}

.section-card__title {
  margin: 0;
  line-height: 1.125;
  font-weight: var(--fw-bold);
  color: var(--clr-gray-dark);
}

.section-card:hover .section-card__title,
.section-card.active .section-card__title {
  color: var(--clr-blue);
}

.section-card__description {
  font-size: var(--fs-18);
  line-height: 1.2857;
  color: var(--clr-gray-dark);
}

/* The card-wide link (see `tag`/`isLink` in the Twig) replaces this as the
   actual click target - kept in the markup but hidden rather than removed. */
.section-card__footer {
  display: none;
}

@media (max-width: 1200px) {
  .section-cards-grid {
    grid-gap: 30px;
  }
}

@media (min-width:992px) {

  /* Header slides off (see header.js's page-scroll-down toggle on <body>) -
   same convention link-list-sticky-nav--desktop.css's own stuck nav
   already follows: drop to top:0 since there's no header left to sit
   below. */
  body.page-scroll-down .section-cards-menu.is-pinned {
    top: 0;
  }

  .section-cards-grid {
    grid-gap: 20px;
  }

  .section-card__description {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .section-cards .normal-content-module.m-lg {
    margin-bottom: 0;
  }

  .section-cards-grid {
    margin-top: 20px;
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }

  .section-cards-menu__link {
    font-size: 14px;
  }

  .section-card__body {
    grid-gap: 10px;
  }

  .section-card__description {
    font-size: 16px;
  }
}
