/* =========================================================
   WHY IT MATTERS SECTION
========================================================= */
.wimSection {
  box-sizing: border-box;

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: clamp(64px, 8vw, 110px) 0;

  background-color: #f3f0ec;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(13, 27, 62, 0.1) 1px,
    transparent 0
  );
  background-size: 22px 22px;
}
.wimSection__calloutTitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e06b1f;
  margin-bottom: 10px;
}

.wimSection__calloutBody {
  color: rgba(255, 255, 255, 0.8);
}
.wimSection__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(32px, 4.8vw, 80px);

  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);

  align-items: stretch; /* IMPORTANT */
}

.wimSection__side {
  min-width: 0;
  position: relative;
  align-items: stretch;
}

.wimSection__sideInner {
  position: sticky;
  top: 120px;
  align-self: start;
}

@media (max-width: 820px) {
  .wimSection__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .wimSection__sideInner {
    position: relative;
    top: auto;
  }
}

@media (max-width: 991px) {
  .wimSection__sideInner {
    position: static;
  }
}

@media (max-width: 991px) {
  .wimSection__sideInner {
    position: relative;
    top: auto;
  }
}

/* =========================================================
   MAIN COLUMN
========================================================= */
.wimSection__main {
  min-width: 0;
}

.wimSection__intro {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;

  color: #555;
}

.wimSection__intro p {
  margin: 0 0 12px;
}

.wimSection__intro p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   CALLOUT — orange left rule
========================================================= */
.wimSection__callout {
  border-left: 2px solid #f07b2f;
  padding-left: 22px;
  margin-top: 34px;
}

.wimSection__calloutLabel {
  display: block;

  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;

  color: #e06b1f;
  margin-bottom: 12px;
}

.wimSection__calloutBody {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  max-width: 56ch;
  color: #111;
}

.wimSection__calloutBody p {
  margin: 0 0 10px;
}

.wimSection__calloutBody p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   CARDS GRID
========================================================= */
.wimSection__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;

  margin-top: 42px;
}

.wimSection__cards > astro-slot,
.wimSection__cards astro-slot {
  display: contents;
}

  /* =========================================================
   MOBILE
========================================================= */
@media (max-width: 820px) {
  .wimSection__inner {
    padding: 0 30px;
  }

  .wimSection__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .wimSection__callout {
    padding-left: 18px;
    margin-top: 28px;
  }
}

/* =========================================================
   EDITOR MODE — drop targets when slots are empty
========================================================= */
.wimSection__cards:empty {
  min-height: 160px;
  border: 1px dashed rgba(13, 27, 62, 0.25);
}

.wimSection__side:empty {
  min-height: 120px;
  border: 1px dashed rgba(13, 27, 62, 0.25);
}
@media (min-width: 768px) and (max-width: 1024px) {
  .wimSection__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Last card becomes full width when it's the 3rd, 5th, etc. */
  .wimSection__cards > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
