/* v1.2.84 — requested screenshot-matched replacement for the five article cards.
   Scope every rule to the magazine homepage; remaining theme sections stay intact. */
.bw-magazine-site .dh-home-refresh .dh-categories {
  background: #15212b;
  color: #f7f5f3;
  padding: clamp(36px, 4.15vw, 65px) 0 clamp(36px, 4.35vw, 69px);
}
.bw-magazine-site .dh-home-refresh .dh-categories .dh-container {
  max-width: 1370px;
}
.bw-magazine-site .dh-home-refresh .dh-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(20px, 2.25vw, 35px);
}
.bw-magazine-site .dh-home-refresh .dh-categories .dh-eyebrow {
  color: #ef765b;
  font-family: var(--bw-font, "Inter", Arial, sans-serif);
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .22em;
  margin: 0 0 11px;
}
.bw-magazine-site .dh-home-refresh .dh-category-heading h2 {
  color: #fff;
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(33px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.bw-magazine-site .dh-home-refresh .dh-category-heading .dh-minor-link {
  flex-shrink: 0;
  color: #f8f7f5;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  font-size: clamp(12px, .93vw, 15px);
  text-decoration: none;
  margin: 20px 0 0;
}
.bw-magazine-site .dh-home-refresh .dh-category-heading .dh-minor-link:hover { color: #ef765b; }
.bw-magazine-site .dh-home-refresh .dh-category-heading .dh-minor-link span { color: #f2775b; }
.bw-magazine-site .dh-home-refresh .dh-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 30px);
  align-items: start;
}
.bw-magazine-site .dh-home-refresh .dh-category-card { min-width: 0; }
.bw-magazine-site .dh-home-refresh .dh-category-photo {
  display: block;
  aspect-ratio: 1.58;
  overflow: hidden;
  background: #22313d;
}
.bw-magazine-site .dh-home-refresh .dh-category-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.bw-magazine-site .dh-home-refresh .dh-category-card .dh-card-label {
  color: #f0785c;
  font-family: var(--bw-font, "Inter", Arial, sans-serif);
  font-size: clamp(9px, .73vw, 11px);
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.5;
  margin: 12px 0 5px;
}
.bw-magazine-site .dh-home-refresh .dh-category-card h3 { margin: 0 0 7px; }
.bw-magazine-site .dh-home-refresh .dh-category-desc {
  color: #f6f4f2;
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.16vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}
.bw-magazine-site .dh-home-refresh .dh-category-photo:focus-visible,
.bw-magazine-site .dh-home-refresh .dh-category-heading .dh-minor-link:focus-visible {
  outline: 3px solid #ef765b;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .bw-magazine-site .dh-home-refresh .dh-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 20px; }
  .bw-magazine-site .dh-home-refresh .dh-category-heading h2 { font-size: clamp(33px, 4.6vw, 43px); }
  .bw-magazine-site .dh-home-refresh .dh-category-desc { font-size: 16px; }
}
@media (max-width: 600px) {
  .bw-magazine-site .dh-home-refresh .dh-categories { padding: 44px 0 51px; }
  .bw-magazine-site .dh-home-refresh .dh-category-heading { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
  .bw-magazine-site .dh-home-refresh .dh-category-heading h2 { font-size: clamp(32px, 8vw, 40px); }
  .bw-magazine-site .dh-home-refresh .dh-category-heading .dh-minor-link { margin: 0; }
  .bw-magazine-site .dh-home-refresh .dh-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 13px; }
  .bw-magazine-site .dh-home-refresh .dh-category-card .dh-card-label { font-size: 9px; }
  .bw-magazine-site .dh-home-refresh .dh-category-desc { font-size: 14px; }
}
@media (max-width: 390px) {
  .bw-magazine-site .dh-home-refresh .dh-category-grid { grid-template-columns: 1fr; gap: 25px; }
  .bw-magazine-site .dh-home-refresh .dh-category-photo { aspect-ratio: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-magazine-site .dh-home-refresh .dh-category-photo img { transition: none; }
}

/* Maintain the exact four-category reference layout while preventing inherited overrides. */
.bw-magazine-site .dh-home-refresh #dh-categories .dh-category-photo { border-radius: 0; }
.bw-magazine-site .dh-home-refresh #dh-categories .dh-category-card .dh-card-label { text-transform: uppercase; }
.bw-magazine-site .dh-home-refresh #dh-categories .dh-category-grid img { display: block; }

/* Explicit visual adjacency: place the dark panel directly below the dual CTA. */
.bw-magazine-site .dh-home-refresh .dh-engagement-hub + #dh-categories {
  margin-top: 0 !important;
  clear: both;
}
