.tc-w-insights {
  padding: 0 0 120px;
}

.tc-w-insights__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tc-w-insights__filter {
  display: inline-flex;
  padding: 6px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
}

.tc-w-insights__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--tc-gutter, 24px);
  align-items: stretch;
  padding: 40px 0;
  border-top: 1px solid currentColor;
}

.elementor-widget-tc-insights-list .tc-w-insights__go {
  color: inherit;
  text-decoration: none;
}

.tc-w-insights__copy {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.tc-w-insights__kicker {
  margin: 0 0 12px;
}

.tc-w-insights__title {
  margin: 0 0 auto;
}

.tc-w-insights__text {
  margin: 16px 0;
  max-width: var(--tc-read, 432px);
}

.tc-w-insights__link {
  margin-top: auto;
  text-decoration: none;
}

.tc-w-insights__media {
  position: relative;
  min-height:375px;
  overflow: hidden;
}

.tc-w-insights__media > .tc-w-insights__go {
  display: block;
  height: 100%;
}

.tc-w-insights__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet & phone — Content → "Tablet & phone layout" adds .tc-insights-mobile-{overlay|stacked|card}
   to the widget. Overlay colours and card height: Style → "Tablet & phone overlay". */
@media (max-width: 900px) {
  .tc-w-insights {
    padding-bottom: 72px;
  }

  /* Text below the image (default): image block, then kicker / title / link, no keylines. */
  .tc-w-insights__row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 40px;
    border-top: 0;
  }

  .tc-w-insights__copy {
    min-height: 0;
  }

  .tc-w-insights__kicker {
    margin-bottom: 8px;
  }

  .tc-w-insights__title {
    margin-bottom: 4px;
  }

  .tc-w-insights__media {
    order: -1;
    min-height: 0;
    aspect-ratio: var(--tc-insights-ratio, 1.54);
  }

  /* Overlay: the image fills the card and the text sits on its bottom edge. */
  .tc-insights-mobile-overlay .has-media {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--tc-insights-card-h, 440px);
    margin-bottom: 12px;
    padding: 0;
    border-top: 0;
    overflow: hidden;
    isolation: isolate;
  }

  .tc-insights-mobile-overlay .has-media .tc-w-insights__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    aspect-ratio: auto;
  }

  .tc-insights-mobile-overlay .has-media .tc-w-insights__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--tc-insights-shade, rgba(38, 38, 38, 0.72)) 0%, transparent 70%);
    pointer-events: none;
  }

  .tc-insights-mobile-overlay .has-media .tc-w-insights__copy {
    padding: 24px;
  }

  .tc-insights-mobile-overlay .has-media .tc-w-insights__title {
    margin-bottom: 0;
  }

  /* Beats the desktop text colours from the Style tab, only inside the overlay. */
  .elementor-widget.tc-insights-mobile-overlay .has-media .tc-w-insights__copy > :is(.tc-w-insights__kicker, .tc-w-insights__title, .tc-w-insights__text, .tc-w-insights__link) {
    color: var(--tc-insights-ink, #fff9f5);
  }

  /* Card: the earlier grey text card, image hidden. */
  .tc-insights-mobile-card .tc-w-insights__row {
    min-height: 280px;
    padding: 24px;
    border-top: 0;
    background: #d5d5d5;
    margin-bottom: 12px;
  }

  .tc-insights-mobile-card .tc-w-insights__media {
    display: none;
  }

  .tc-insights-mobile-card .tc-w-insights__copy {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  /* Phone Figma: the four pills stay on one row. */
  .tc-w-insights__filters {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tc-w-insights__filter {
    flex: none;
    padding: 6px 12px;
  }

  .tc-insights-mobile-overlay .has-media {
    margin-bottom: 8px;
  }

  .tc-insights-mobile-overlay .has-media .tc-w-insights__copy {
    padding: 20px;
  }

  .tc-insights-mobile-card .tc-w-insights__row {
    min-height: 240px;
    padding: 20px;
    margin-bottom: 8px;
  }

  .tc-w-insights__text {
    max-width: none;
  }
}

.tc-w-insights__empty {
  padding: 40px 0;
  border-top: 1px solid currentColor;
}

/* Filter buttons set [hidden]; the row's own display rules would otherwise keep it visible. */
.tc-w-insights__list > .tc-w-insights__row[hidden] {
  display: none;
}
