/* ===== Materials Stream (single Netflix-like scroller) ===== */
.ms-stream {
  margin: 64px 0 0;
  padding: 0 20px;
}

.ms-stream__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.ms-stream__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: var(--fw-bold);
  font-size: clamp(18px, 2.6vw, 24px);
  margin: 0;
}

/* progress bar (optional) */
.ms-stream__progress {
  position: relative;
  width: 140px;
  height: 3px;
  border-radius: var(--r-pill);
  background: #e9e2d8;
}

.ms-stream__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #d1b08c;
  border-radius: var(--r-pill);
  display: block;
}

/* Track */
.ms-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 28vw, 300px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding-bottom: 12px;
}

/* Card */
.ms-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e6ded4;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.ms-card:hover {
  transform: translateY(-2px);
  border-color: #d1b08c;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Media (taller) */
.ms-card__media {
  display: block;
  aspect-ratio: 3/4;
  background: #f2eee9;
}

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

/* Meta */
.ms-card__meta {
  padding: 12px 12px 14px;
}

.ms-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.2px;
  color: #6b5a3e;
  opacity: 0.75;
  margin-bottom: 6px;
}

.ms-card__title {
  font-size: 14px;
  font-weight: var(--fw-bold);
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pills */
.ms-card__pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.pill {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #e0d6c8;
  border-radius: var(--r-pill);
  white-space: nowrap;
  color: #4a412f;
  background: #f7f3ef;
}

.pill--more {
  background: #efe7dd;
  border-color: #ddc9b1;
}

/* Responsive */
@media (max-width: 640px) {
  .ms-stream__progress {
    width: 100px;
  }
  .ms-track {
    grid-auto-columns: clamp(240px, 80vw, 280px);
  }
}

/*# sourceMappingURL=materials.css.map */
