.vs-numbers-track-outer {
  margin-top: -18px;
  margin-bottom: -34px;
  padding-top: 18px;
  padding-bottom: 34px;
}

.vs-numbers-card.vs-industry-card {
  width: min(720px, calc(100vw - 140px));
  container-type: inline-size;
  padding: 0;
  border: 1px solid rgba(18, 39, 71, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 22px -20px rgba(18, 39, 71, 0.45);
  overflow: hidden;
}

.vs-industry-card-name {
  margin: 0;
  padding: 24px 34px;
  border-bottom: 1px solid rgba(18, 39, 71, 0.1);
  color: var(--navy);
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.15;
}

.vs-industry-periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.vs-industry-period {
  padding: 24px 34px 30px;
  min-width: 0;
}

.vs-industry-period + .vs-industry-period {
  border-left: 1px solid rgba(18, 39, 71, 0.1);
}

.vs-industry-period-label {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.vs-industry-period-stats {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.vs-industry-period-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.vs-industry-period-stats dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.vs-industry-period-stats dd {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.vs-industry-val--alert {
  color: #d94747 !important;
}

.vs-industry-val--good {
  color: var(--green) !important;
}

.vs-industry-cats {
  padding-top: 18px;
  border-top: 1px solid rgba(18, 39, 71, 0.1);
}

.vs-industry-cats-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.vs-industry-cats-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d94747;
}

.vs-industry-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vs-industry-cats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.vs-industry-cat-name {
  color: var(--muted);
  font-weight: 600;
}

.vs-industry-cat-count {
  color: #d94747;
  font-weight: 700;
  white-space: nowrap;
}

/* The carousel JS sizes cards to half the track on desktop; below ~620px of card
   width the side-by-side MTD/YTD columns overflow, so stack them vertically. */
@container (max-width: 619px) {
  .vs-industry-periods {
    grid-template-columns: 1fr;
  }

  .vs-industry-period + .vs-industry-period {
    border-left: none;
    border-top: 1px solid rgba(18, 39, 71, 0.1);
  }
}

@media (max-width: 768px) {
  .vs-numbers-card.vs-industry-card {
    width: min(440px, calc(100vw - 90px));
  }

  .vs-industry-card-name {
    padding: 20px 24px;
  }

  .vs-industry-periods {
    grid-template-columns: 1fr;
  }

  .vs-industry-period {
    padding: 20px 24px 26px;
  }

  .vs-industry-period + .vs-industry-period {
    border-left: none;
    border-top: 1px solid rgba(18, 39, 71, 0.1);
  }
}

@media (max-width: 480px) {
  .vs-numbers-carousel {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
    padding-inline: 28px;
  }
}
