.htha-subject-archive .htha-container {
  width: min(100% - 48px, 1440px);
}

.htha-subject-intro {
  padding: var(--htha-space-48) 0 var(--htha-space-80);
}

.htha-subject-intro__grid {
  display: grid;
  gap: var(--htha-space-48);
  align-items: center;
}

.htha-subject-intro__grid--split {
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
}

.htha-subject-intro__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--htha-surface);
}

.htha-subject-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.htha-subject-intro__text h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 var(--htha-space-16);
}

.htha-subject-intro__text p {
  color: var(--htha-text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 40rem;
}

.htha-subject-section {
  padding: var(--htha-space-80) 0;
}

.htha-subject-section--warm {
  background: #f7f3ed;
}

.htha-subject-section--tint {
  background: #f0ebe4;
}

.htha-subject-cards,
.htha-subject-guide {
  display: grid;
  gap: 24px 22px;
}

.htha-subject-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.htha-subject-cards[data-count="1"] {
  grid-template-columns: minmax(240px, 360px);
}

.htha-subject-cards[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}

.htha-subject-cards[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.htha-subject-guide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.htha-subject-guide__item h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.htha-subject-guide__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--htha-text-muted);
}

.htha-subject-discovery {
  padding-top: var(--htha-space-64);
}

.htha-subject-archive .htha-collection-chip.is-active {
  background: var(--htha-dark);
  color: #fff;
  border-color: var(--htha-dark);
}

@media (max-width: 1023px) {
  .htha-subject-archive .htha-container {
    width: min(100% - 32px, 1440px);
  }
  .htha-subject-intro__grid--split,
  .htha-subject-cards,
  .htha-subject-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .htha-subject-section {
    padding: var(--htha-space-64) 0;
  }
}

@media (max-width: 767px) {
  .htha-subject-intro__grid--split,
  .htha-subject-guide {
    grid-template-columns: 1fr;
  }
  .htha-subject-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
