/* =========================================================
   WA Cushion — Download Categories redesign 20260729
   Paper band + editorial directory rows. Load LAST.
   ========================================================= */

html body.page-download .section.dl-cats,
html body.page-download section.dl-cats {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #ebe6dc !important;
  background-color: #ebe6dc !important;
  background-image: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  margin-top: 0 !important;
  padding-block: clamp(4.25rem, 9vw, 7rem) !important;
}

/* Paper fiber / grain wash */
html body.page-download .section.dl-cats::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.42 !important;
  background-image:
    url("../brand/bg-ambiance-brown.jpg"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E") !important;
  background-size: cover, 180px 180px !important;
  background-position: center, 0 0 !important;
  mix-blend-mode: multiply !important;
}

html body.page-download .section.dl-cats::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.55) 0%, rgba(235, 230, 220, 0.2) 40%, rgba(235, 230, 220, 0.35) 100%) !important;
}

html body.page-download .section.dl-cats > .container {
  position: relative !important;
  z-index: 1 !important;
}

html body.page-download .dl-cats .section-intro {
  max-width: 36rem !important;
  margin: 0 0 clamp(2rem, 4.5vw, 3.25rem) !important;
  text-align: left !important;
}

html body.page-download .dl-cats .section-intro h2,
html body.page-download .dl-cats .section-intro p,
html body.page-download .dl-cats .section-intro .eyebrow {
  color: #1a1510 !important;
  -webkit-text-fill-color: #1a1510 !important;
}

html body.page-download .dl-cats .section-intro p {
  color: #3a322c !important;
  -webkit-text-fill-color: #3a322c !important;
}

html body.page-download .dl-cats .section-intro .eyebrow {
  color: #7d6348 !important;
  -webkit-text-fill-color: #7d6348 !important;
}

/* Editorial directory */
html body.page-download .dl-cats__grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border-top: 1px solid rgba(26, 21, 16, 0.16) !important;
  grid-template-columns: none !important;
}

html body.page-download a.dl-cat-card {
  display: grid !important;
  grid-template-columns: 2.5rem 1.75rem minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.65rem 0.95rem !important;
  padding: 1.1rem 0.25rem 1.1rem 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  color: #1a1510 !important;
  -webkit-text-fill-color: #1a1510 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(26, 21, 16, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition:
    background-color 0.4s ease,
    padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease !important;
}

html body.page-download a.dl-cat-card:hover,
html body.page-download a.dl-cat-card:focus-visible {
  background: rgba(26, 21, 16, 0.045) !important;
  padding-left: 0.65rem !important;
  border-color: rgba(26, 21, 16, 0.22) !important;
  outline: none !important;
}

html body.page-download .dl-cat-card__index {
  font-family: var(--wa-font-body, Sora), system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  color: #a4845f !important;
  -webkit-text-fill-color: #a4845f !important;
  transition: color 0.35s ease, -webkit-text-fill-color 0.35s ease !important;
}

html body.page-download a.dl-cat-card:hover .dl-cat-card__index {
  color: #1a1510 !important;
  -webkit-text-fill-color: #1a1510 !important;
}

html body.page-download .dl-cat-card__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #5c5044 !important;
  -webkit-text-fill-color: #5c5044 !important;
  opacity: 0.85 !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
}

html body.page-download .dl-cat-card__icon svg {
  width: 1.35rem !important;
  height: 1.35rem !important;
}

html body.page-download .dl-cat-card__copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  min-width: 0 !important;
}

html body.page-download .dl-cat-card__title {
  font-family: var(--wa-font-display, "Cormorant Garamond"), Georgia, serif !important;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  color: #1a1510 !important;
  -webkit-text-fill-color: #1a1510 !important;
}

html body.page-download .dl-cat-card__desc {
  font-family: var(--wa-font-body, Sora), system-ui, sans-serif !important;
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em !important;
  color: #3a322c !important;
  -webkit-text-fill-color: #3a322c !important;
  max-width: 42ch !important;
}

html body.page-download .dl-cat-card__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 0.65rem !important;
  font-family: var(--wa-font-body, Sora), system-ui, sans-serif !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  color: #f7f1e6 !important;
  -webkit-text-fill-color: #f7f1e6 !important;
  background: #14110e !important;
  border: 1px solid #14110e !important;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    -webkit-text-fill-color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body.page-download .dl-cat-card__cta-arrow {
  display: inline-block !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body.page-download a.dl-cat-card:hover .dl-cat-card__cta,
html body.page-download a.dl-cat-card:focus-visible .dl-cat-card__cta {
  background: #f7f1e6 !important;
  color: #14110e !important;
  -webkit-text-fill-color: #14110e !important;
}

html body.page-download a.dl-cat-card:hover .dl-cat-card__cta-arrow {
  transform: translateX(5px) !important;
}

/* Table / library filter dim state */
html body.page-download .dl-table tbody tr.is-dim,
html body.page-download .dl-library__row.is-dim {
  opacity: 0.28 !important;
  transition: opacity 0.35s ease !important;
}

html body.page-download .dl-table tbody tr.is-cat-active,
html body.page-download .dl-library__row.is-cat-active {
  opacity: 1 !important;
  background: rgba(164, 132, 95, 0.08) !important;
}

html body.page-download .dl-table-section.is-filtering .dl-table__count::after {
  content: attr(data-filter-label) !important;
  display: inline !important;
  margin-left: 0.5rem !important;
  color: #7d6348 !important;
}

@media (max-width: 820px) {
  html body.page-download a.dl-cat-card {
    grid-template-columns: 2.5rem 1.5rem minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.55rem 0.75rem !important;
    padding: 1.25rem 0 !important;
  }

  html body.page-download .dl-cat-card__copy {
    grid-column: 3 / -1 !important;
  }

  html body.page-download .dl-cat-card__cta {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-top: 0.35rem !important;
  }

  html body.page-download a.dl-cat-card:hover {
    padding-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.page-download a.dl-cat-card,
  html body.page-download .dl-cat-card__cta,
  html body.page-download .dl-cat-card__cta-arrow {
    transition: none !important;
  }
}
