/**
 * Results 2026 — grid + the card additions the homepage card does not have.
 *
 * The card shell itself (.sfs-card and friends) comes from css/sfs-card.css,
 * which is loaded site-wide. Only what is specific to the results page —
 * the grid, and the excerpt / hide button the homepage card does not have —
 * lives here.
 */

/* Match the homepage container. results.css caps the page at 1440px with 50px
   side padding and clamps the card column to 830px; both are widened here so
   the sidebar + cards together span the same width as a homepage strip. */
.page-template-page-results-2026 .ast-container {
  background-color: rgb(249, 249, 249) !important;
}

@media screen and (min-width: 920px) {
  .results-page--2026 {
    max-width: var(--container-width);
    padding-inline: 0;
    margin-inline: auto;
  }
  .results-page--2026 .content .main-cards,
  .results-page--2026 .content .cards.results-2026__grid {
    max-width: none;
  }
}

.results-page--2026 .content {
  max-width: var(--container-width);
  margin-inline: auto;
  width: 100%;
}

.results-page--2026 .top {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 48px 0 24px;
  text-align: center;
}
.results-page--2026 .top .header {
  font-family: "SimplerPro", "Heebo", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #191919;
  background: none;
  margin-bottom: 12px;
}
.results-page--2026 .top .second-header {
  font-family: Heebo, sans-serif;
  font-size: 18px;
  color: #4d4e53;
}

/* ─── Card grid ──────────────────────────────────────────────────── */
/* 3 per row on desktop and tablet, 2 on mobile. The 4-class selector beats
   results.css's `.results-page .content .cards { display: flex }`. */
.results-page--2026 .content .cards.results-2026__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  width: 100%;
}
.results-2026__item {
  height: 100%;
  min-width: 0;
}
/* A hidden post stays in the DOM so the button can toggle back. */
.results-2026__item.is-removed {
  opacity: 0.45;
}

@media (max-width: 767px) {
  .results-page--2026 .content .cards.results-2026__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .results-page--2026 .top .header {
    font-size: 28px;
  }

  /* Two cards to a row leaves each one narrow, so the card's type scale is
     stepped down here. Scoped to this page — the homepage card is unchanged. */
  .results-page--2026 .sfs-card__link {
    padding-inline: 8px;
  }
  .results-page--2026 .sfs-card__format {
    font-size: 12px;
  }
  .results-page--2026 .sfs-card__title {
    font-size: 14px;
  }
  .results-page--2026 .sfs-card__meta,
  .results-page--2026 .sfs-card__excerpt {
    font-size: 10px;
  }
  .results-page--2026 .sfs-card__tag {
    font-size: 8px;
  }
}

/* ─── Card additions over the homepage design ────────────────────── */
/* The homepage card has no body copy; the results card does. Clamped so a long
   excerpt cannot push the tag row out of alignment across a grid row. */
.results-2026__item .sfs-card__excerpt {
  margin: 8px 0 0;
  font-family: Heebo, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #87868e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bookmark + hide sit together over the poster. On the homepage the bookmark is
   inside the card link; here both are real buttons outside it. */
.results-2026__item .sfs-card {
  position: relative;
  overflow: visible;
}

.results-2026__item .sfs-card__actions .sfs-card__bookmark {
  position: absolute;
  left: 8px;
  top: 8px;
}

.results-2026__item .sfs-card__hide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background-color 150ms ease;
  position: absolute;
  top: -12px;
  right: -12px;
}
.results-2026__item .sfs-card__hide:hover {
  background: #ffffff;
}
.results-2026__item .sfs-card__hide img {
  width: 14px;
  height: 14px;
}
/* Once hidden, the button reads as "restore". */
.results-2026__item .sfs-card__hide.removed {
  background: #009aff;
}
.results-2026__item .sfs-card__hide.removed img {
  filter: brightness(0) invert(1);
}
