/* New donor categories strip under header */
.ndb {
  --ndb-h: 64px;
  --ndb-gap: 10px;
  position: relative;
  z-index: 20;
  background:
    linear-gradient(90deg, #1e3a6e 0%, #2a4a8c 42%, #3b6fd9 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ndb__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: var(--ndb-h);
}

.ndb__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

.ndb__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #1e3a6e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

.ndb__label-text {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}

.ndb__viewport {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
}

.ndb__track {
  display: flex;
  gap: var(--ndb-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 4px 2px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ndb__track::-webkit-scrollbar {
  display: none;
}

.ndb__tile {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  max-width: 240px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ndb__tile:hover,
.ndb__tile:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.ndb__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ndb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ndb__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ndb__title {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ndb__sub {
  font-size: 11px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ndb__controls {
  display: none;
  gap: 6px;
}

.ndb__nav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ndb__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ndb__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 768px) {
  .ndb {
    --ndb-h: 70px;
  }
  .ndb__controls {
    display: inline-flex;
  }
  .ndb__tile {
    min-width: 204px;
  }
  .ndb__title {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .ndb__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px 10px;
  }
  .ndb__label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .ndb__label-text {
    font-size: 12px;
  }
  .ndb__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .ndb__tile {
    min-width: 168px;
    max-width: 200px;
    padding: 5px 10px 5px 5px;
  }
  .ndb__thumb {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .ndb__title {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndb__track {
    scroll-behavior: auto;
  }
  .ndb__tile {
    transition: none;
  }
}
