/* More resources — follows FAQ section */

.mw-source-enterprises-new .ent-faq + section.hds-color-mode {
  padding-top: clamp(0.75rem, 1.5vw, 1rem);
}

.mw-source-enterprises-new .ent-faq + section .divider-wrapper {
  display: none;
}

.mw-source-enterprises-new .ent-faq + section .section-row.section-row-gap {
  --section-row-gap-mb: 0;
  --section-row-gap-tb: 0;
  --section-row-gap-dt: 0;
  gap: 0;
}

.mw-source-enterprises-new .resource-carousel__wrapper {
  gap: clamp(0.875rem, 1.5vw, 1.125rem);
}

.mw-source-enterprises-new .resource-carousel__header .hds-heading {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0a2540;
}

.mw-source-enterprises-new .resource-carousel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.mw-source-enterprises-new .resource-carousel__header .hds-heading {
  margin: 0;
}

/* Nav: tablet + mobile only (hidden desktop grid) — match ent-products buttons */
@media (min-width: 940px) {
  .mw-source-enterprises-new .resource-carousel__nav {
    display: none !important;
  }
}

@media (max-width: 939px) {
  .mw-source-enterprises-new .resource-carousel__wrapper {
    min-width: 0;
  }

  .mw-source-enterprises-new .resource-carousel {
    --carousel-card-width: min(320px, calc(100vw - 3rem));
    min-width: 0;
  }

  .mw-source-enterprises-new .resource-carousel .carousel__item {
    flex: 0 0 var(--carousel-card-width, 320px);
    width: var(--carousel-card-width, 320px);
  }

  .mw-source-enterprises-new .resource-carousel__scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    /* HDS uses negative margin-block (-40px) — overlaps nav buttons, blocks clicks */
    margin-block: 0 !important;
    padding-block: 0 !important;
  }

  .mw-source-enterprises-new .resource-carousel__nav {
    display: flex !important;
    align-items: center;
    align-self: flex-start !important;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0;
    padding-top: 0.15rem;
    position: relative;
    z-index: 3;
  }

  .mw-source-enterprises-new .resource-carousel__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    border-radius: 4px;
    background: #eef1f6;
    color: #8792a2;
    cursor: pointer;
    appearance: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .mw-source-enterprises-new .resource-carousel__nav button:not(:disabled) {
    background: #f0edff;
    color: #635bff;
  }

  .mw-source-enterprises-new .resource-carousel__nav button:not(:disabled) svg {
    fill: currentColor;
  }

  .mw-source-enterprises-new .resource-carousel__nav button:disabled {
    background: #eef1f6;
    color: #8792a2;
    cursor: default;
    pointer-events: none;
  }

  .mw-source-enterprises-new .resource-carousel__nav button:focus-visible {
    outline: 2px solid #635bff;
    outline-offset: 2px;
  }

  .mw-source-enterprises-new .resource-carousel__nav button svg {
    display: block;
    fill: currentColor;
  }
}
