/* Home editorial carousel refinements.
   Kept separate from the legacy design sheet so this feature can evolve without
   making the global stylesheet harder to maintain. */
.home-editorial-section .content-article {
  width: min(100%, 1140px);
  max-width: 1140px;
}

.home-editorial-section .article-carousel {
  width: 100%;
  margin: 2rem 0 2.35rem;
  padding: 1.15rem 1rem 1rem;
  border: 1px solid rgba(221, 201, 170, .92);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(250, 239, 220, .82)),
    repeating-linear-gradient(0deg, rgba(21, 19, 15, .035) 0 1px, transparent 1px 5px);
  box-shadow: 0 24px 42px -30px rgba(21, 19, 15, .62), inset 0 1px rgba(255, 255, 255, .86);
}

.home-editorial-section .article-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(250, 94, 7, .055) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(21, 19, 15, .035) 50%, transparent 50.2%);
  background-size: 34px 34px;
  opacity: .35;
  mask-image: linear-gradient(110deg, #000, transparent 72%);
}

.home-editorial-section .article-carousel-head,
.home-editorial-section .article-carousel-viewport,
.home-editorial-section .article-carousel-progress {
  position: relative;
  z-index: 1;
}

.home-editorial-section .article-carousel-head {
  padding: 0 .05rem .05rem;
  margin-bottom: 1rem;
}

.home-editorial-section .article-carousel-count {
  color: var(--brand-dark);
  letter-spacing: .1em;
}

.home-editorial-section .article-carousel-controls { gap: .55rem; }
.home-editorial-section .article-carousel-nav {
  width: 40px;
  height: 40px;
  border-color: rgba(202, 177, 137, .72);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 5px 12px -9px rgba(21, 19, 15, .85);
}

.home-editorial-section .article-carousel-track {
  gap: 1.2rem;
  padding: .25rem .1rem .8rem;
}

.home-editorial-section .article-carousel-card {
  flex-basis: clamp(360px, 39vw, 470px);
  min-height: 314px;
  padding: 1.35rem 1.35rem 3.25rem;
  border-radius: 19px;
}

.home-editorial-section .article-carousel-card .article-section-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 1.25rem;
}

.home-editorial-section .article-carousel-card .industrial-icon {
  width: 21px;
  height: 21px;
}

.home-editorial-section .article-carousel-card h3 {
  max-width: 360px;
  font-size: clamp(1.04rem, 1.7vw, 1.26rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.home-editorial-section .article-carousel-card p.lede {
  max-width: 410px;
  font-size: .86rem;
  line-height: 1.7;
}

.home-editorial-section .article-carousel-index {
  right: 1.35rem;
  bottom: 1.25rem;
  color: var(--brand);
}

.home-editorial-section .article-carousel-progress {
  margin: .1rem .05rem 0;
  width: calc(100% - .1rem);
  height: 4px;
  background: rgba(202, 177, 137, .36);
}

.home-editorial-section .article-carousel-progress span {
  background: linear-gradient(90deg, var(--brand), #ffae76);
}

@media (min-width: 1200px) {
  .home-editorial-section .article-carousel-card {
    flex-basis: 455px;
  }
}

@media (max-width: 767px) {
  .home-editorial-section .content-article { width: 100%; }
  .home-editorial-section .article-carousel {
    margin-top: 1.35rem;
    padding: .9rem .65rem .8rem;
    border-radius: 19px;
  }
  .home-editorial-section .article-carousel-track { gap: .85rem; }
  .home-editorial-section .article-carousel-card {
    flex-basis: min(84vw, 360px);
    min-height: 300px;
    padding: 1.2rem 1.15rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-editorial-section .article-carousel-card::before,
  .home-editorial-section .article-carousel-card::after,
  .home-editorial-section .article-carousel-card,
  .home-editorial-section .article-carousel-nav {
    transition: none;
  }
}
