/* Resources index (/resources/ and /resources/category/<slug>/).
   Cards come from related-resources.css (.se-related__*); this file adds the hero, filters,
   the wide featured card, pagination, empty state and the demo band.
   Theme tokens only. Base rules first, responsive overrides last. */

/* ---------- Hero ---------- */
/* Same pattern as the theme's full-bleed hero pages (header.css): drop the #page offset that
   leaves a white strip under the fixed header, and let the hero clear the header itself. */
body.blog #page.se-site,
body.category #page.se-site { padding-top: 0; }
.se-res-hero {
  padding: calc(var(--nav-h, 86px) + 64px) 0 40px;
  background: var(--se-surface-soft, #f7f7fa);
}
.se-res-hero__title {
  max-width: 820px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--se-ink, #111);
}
.se-res-hero__lead {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #555;
}
.se-res-hero__lead p { margin: 0; }

/* ---------- Topic filters ---------- */
.se-res-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.se-res-filter__chip {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--se-purple-light, #dad0ec);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--se-ink, #111);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.se-res-filter__chip:hover,
.se-res-filter__chip:focus-visible {
  border-color: var(--se-purple, #6b62ac);
  color: var(--se-purple, #6b62ac);
}
.se-res-filter__chip.is-active {
  background: var(--se-purple, #6b62ac);
  border-color: var(--se-purple, #6b62ac);
  color: #fff;
}

/* ---------- List section (cards reuse .se-related__*) ---------- */
.se-res-list { padding: 48px 0 80px; }

.se-res-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.se-res-date {
  font-size: 13px;
  color: var(--se-muted, #737373);
}

/* Featured: the newest article on page 1 spans the full row, image left / text right. */
.se-res-featured { grid-column: 1 / -1; }
.se-res-featured .se-related__link { flex-direction: row; }
.se-res-featured .se-related__media { flex: 0 0 55%; aspect-ratio: 40 / 21; }
.se-res-featured .se-related__body { justify-content: center; padding: 36px 40px; gap: 14px; }
.se-res-featured .se-related__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.se-res-featured .se-related__excerpt { font-size: 16px; -webkit-line-clamp: 4; }

/* ---------- Pagination (WordPress the_posts_pagination) ---------- */
.se-res-pagination { margin-top: 48px; }
.se-res-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.se-res-pagination .page-numbers {
  display: inline-block;
  min-width: 44px;
  padding: 10px 16px;
  border: 1px solid var(--se-purple-light, #dad0ec);
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  color: var(--se-ink, #111);
  text-decoration: none;
}
.se-res-pagination a.page-numbers:hover { border-color: var(--se-purple, #6b62ac); color: var(--se-purple, #6b62ac); }
.se-res-pagination .page-numbers.current { background: var(--se-purple, #6b62ac); border-color: var(--se-purple, #6b62ac); color: #fff; }
.se-res-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
/* The parent theme (genesis-block-theme) hides "Newer/Older" (font-size:0) and draws an icon-font
   arrow that shows as a box here; it also turns hover/current blue (#0072e5). Undo both. */
.se-res-pagination .page-numbers {
  font-size: 15px;
  text-indent: 0;
  background: #fff;
}
.se-res-pagination .next::after,
.se-res-pagination .prev::after { content: none; }
.se-res-pagination a.page-numbers:hover { background: #fff; }
.se-res-pagination .page-numbers.current,
.se-res-pagination .page-numbers.current:hover { background: var(--se-purple, #6b62ac); color: #fff; }

/* ---------- Empty state ---------- */
.se-res-empty {
  padding: 48px 32px;
  border: 1px dashed var(--se-purple-light, #dad0ec);
  border-radius: var(--radius-lg, 22px);
  text-align: center;
}
.se-res-empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.se-res-empty p { margin: 0; color: var(--se-muted, #737373); }
.se-res-empty a { color: var(--se-purple, #6b62ac); font-weight: 600; }

/* ---------- Demo band ---------- */
.se-res-cta { padding: 0 0 80px; background: #fff; }
.se-res-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 40px 48px;
  border-radius: var(--radius-xl, 28px);
  background: var(--se-navy, #0f0f25);
  color: #fff;
}
.se-res-cta__box h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; color: #fff; }
.se-res-cta__box p { margin: 0; max-width: 560px; color: var(--se-purple-light, #dad0ec); line-height: 1.6; }
.se-res-cta__btn {
  flex: 0 0 auto;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--se-purple, #6b62ac);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.se-res-cta__btn:hover,
.se-res-cta__btn:focus-visible { background: var(--se-purple-deep, #2b2868); color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .se-res-hero { padding: calc(var(--nav-h, 86px) + 48px) 0 32px; }
  .se-res-featured .se-related__body { padding: 24px 28px; }
  .se-res-cta__box { padding: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .se-res-hero { padding: calc(var(--nav-h, 72px) + 32px) 0 24px; }
  .se-res-hero__lead { font-size: 16px; }
  .se-res-filter { margin-top: 24px; gap: 8px; }
  .se-res-filter__chip { padding: 8px 14px; font-size: 13px; }
  .se-res-list { padding: 32px 0 56px; }
  .se-res-featured .se-related__link { flex-direction: column; }
  .se-res-featured .se-related__media { flex: none; }
  .se-res-featured .se-related__body { padding: 20px 20px 22px; }
  .se-res-cta { padding-bottom: 56px; }
  .se-res-cta__box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .se-res-filter__chip,
  .se-res-cta__btn { transition: none; }
}
