/* No scrollbars: without JS or reduced motion, display all marks in a wrapped strip. */
.credential-banner .logo-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px 40px;
  overflow: visible;
  scrollbar-width: none;
  margin-block: 26px 0;
  padding-block: 12px;
}
.logo-rail::-webkit-scrollbar {
  display: none;
}
.credential-banner .logo-rail.is-marquee {
  display: block;
  overflow: hidden;
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
}
.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex: none;
}
.logo-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 150px;
  width: 150px;
  height: 84px;
}
.logo-marquee-item > figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  max-width: 150px;
  height: 84px;
  margin: 0;
}
.logo-marquee-item img,
.logo-rail:not(.is-marquee) > img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 64px;
  object-fit: contain;
}
.logo-marquee-item .light-logo,
.logo-marquee-item img[src*="institution-eaed"] {
  background: var(--navy);
  padding: 8px 12px;
  mix-blend-mode: normal;
}
.logo-marquee-item figure.light-logo {
  padding: 8px 12px;
}
.logo-marquee-item figure.light-logo img {
  max-width: 126px;
  padding: 0;
  background: transparent;
}
.logo-marquee-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 16px;
}
.logo-marquee-controls > span {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.7;
}
.logo-marquee-toggle {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.logo-marquee-toggle:hover {
  border-color: var(--navy);
}
.logo-marquee-toggle[hidden] {
  display: none;
}
.logo-marquee-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.credential-banner .logo-rail.is-reduced-motion {
  overflow: visible;
}
.is-reduced-motion .logo-marquee-track {
  transform: none !important;
  width: 100%;
}
.is-reduced-motion .logo-marquee-group:not(.logo-marquee-copy) {
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-right: 0;
  width: 100%;
}
.is-reduced-motion .logo-marquee-copy {
  display: none;
}
@media (max-width: 620px) {
  .logo-marquee-group {
    gap: 28px;
    padding-right: 28px;
  }
  .logo-marquee-item {
    flex-basis: 132px;
    width: 132px;
    height: 76px;
  }
  .logo-marquee-item > figure {
    width: 132px;
    height: 76px;
  }
  .logo-marquee-item img {
    max-width: 132px;
    max-height: 58px;
  }
  .logo-marquee-item figure.light-logo img {
    max-width: 108px;
  }
  .is-reduced-motion .logo-marquee-group:not(.logo-marquee-copy) {
    gap: 20px;
  }
  .logo-marquee-controls {
    margin-top: 12px;
  }
}

/* Bristol's official red/black artwork needs a white tile, not the inherited
   multiply blend used by other accreditation marks. No source art changes. */
.logo-rail img[src*="institution-bristol"],
.logo-marquee-item img[src*="institution-bristol"] {
  background: #fff;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
  padding: 10px 12px;
  border: 1px solid var(--line, #d5dfe6);
  max-width: 150px;
  max-height: 70px;
}
@media (max-width: 620px) {
  .logo-marquee-item img[src*="institution-bristol"] {
    max-width: 132px;
  }
}

.logo-rail figure.light-logo:has(img[src*="institution-bristol"]),
.logo-marquee-item figure.light-logo:has(img[src*="institution-bristol"]) {
  background: #fff;
  border: 1px solid var(--line, #d5dfe6);
  mix-blend-mode: normal;
}
.logo-rail figure.light-logo img[src*="institution-bristol"],
.logo-marquee-item figure.light-logo img[src*="institution-bristol"] {
  background: #fff;
  border: 0;
  padding: 0;
  filter: none;
  mix-blend-mode: normal;
}
