/* Compact archive cards. Keep the bookmark beside the existing metadata,
   outside the article link, without adding another row. */
html:not(#legacy-publication) body.editorial-page[data-editorial-page='insights'] {
  .editorial-grid {
    gap: 28px 24px;
  }

  .editorial-card {
    position: relative;
    min-width: 0;
  }

  .editorial-card-image {
    aspect-ratio: 16 / 9;
    margin: 0 0 10px;
  }

  .editorial-card h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 23px !important;
  }

  .editorial-card-main > p {
    min-height: 0 !important;
    margin: 5px 0 0 !important;
    font-size: 13px;
    line-height: 19px;
    -webkit-line-clamp: 1;
  }

  .editorial-card-meta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 35px;
    margin-top: auto !important;
    padding: 7px 34px 0 0;
    font-size: 10px;
    line-height: 16px;
  }

  /* Date and category already appear on the card; topics remain in the
     archive filters. Avoid repeating them in a second footer row. */
  .editorial-card-footer {
    display: none;
  }

  .editorial-card > .reader-save-button {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 5px;
    gap: 0;
    border: 0;
    border-radius: 5px;
    color: var(--publication-muted);
    background: transparent;
  }

  .editorial-card > .reader-save-button .reader-bookmark-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .editorial-card > .reader-save-button .reader-save-label {
    display: none;
  }

  .editorial-card > .reader-save-button:is(:hover, :focus-visible, [aria-pressed='true']) {
    color: var(--publication-ink);
    background: var(--publication-wash);
  }
}

@media (max-width: 760px) {
  html:not(#legacy-publication) body.editorial-page[data-editorial-page='insights'] {
    .editorial-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px 16px;
    }

    .editorial-card h3 {
      font-size: 17px !important;
      line-height: 22px !important;
    }

    .editorial-card-meta {
      padding-right: 38px;
      min-height: 43px;
    }

    .editorial-card > .reader-save-button {
      width: 36px;
      height: 36px;
    }
  }
}

@media (max-width: 480px) {
  html:not(#legacy-publication) body.editorial-page[data-editorial-page='insights'] {
    .editorial-card-meta > span {
      display: none;
    }

    .editorial-card-meta {
      font-size: 9px;
      letter-spacing: 0;
    }
  }
}

@media (max-width: 359px) {
  html:not(#legacy-publication) body.editorial-page[data-editorial-page='insights'] .editorial-grid {
    grid-template-columns: 1fr;
  }
}
