/* Resources (e-books & whitepapers): featured card, category filter, resource grid */

/* ───── Hero ───── */
.res-hero { padding-bottom: 0; }
.res-hero::before { display: none; }

/* ───── Featured ───── */
.res-featured-section { padding-top: 80px; padding-bottom: 112px; }
.res-featured-section::before { /* mint wash behind the featured card (moved from the hero so it is not clipped) */
  content: ""; position: absolute; left: 50%; top: -40px; width: 1100px; max-width: 100%; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(19,233,137,.14), rgba(34,211,238,.04) 55%, transparent 75%); filter: blur(30px);
}
.res-featured-section .container { position: relative; }
#all { padding-top: 120px; }
.res-featured {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 20px 56px 20px 20px;
  border-color: rgba(19,233,137,.28);
  background: radial-gradient(80% 120% at 100% 0%, rgba(19,233,137,.09), transparent 60%), linear-gradient(180deg, var(--card-a), var(--card-b));
}
.res-featured:hover { transform: none; border-color: rgba(19,233,137,.45); }
.res-featured-text { display: flex; flex-direction: column; align-items: flex-start; }
.res-featured h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 560; }
.res-featured p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.res-featured .link { margin-top: 28px; }

/* ───── Shared thumbnail ───── */
.res-thumb { display: block; aspect-ratio: 1024 / 536; border-radius: 12px; overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); }
.res-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.res:hover .res-thumb img, .res-featured:hover .res-thumb img { transform: scale(1.03); }

/* ───── Category filter ───── */
.res-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -32px 0 48px; }
.res-chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; color: var(--fg-2);
  transition: color .2s, border-color .2s, background .2s;
}
.res-chip:hover { color: var(--fg); border-color: rgb(var(--ink) / .3); }
.res-chip.is-active { color: #000; background: var(--accent); border-color: var(--accent); }

/* ───── Resource grid ───── */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.res { display: flex; flex-direction: column; padding: 14px 14px 26px; }
.res[hidden] { display: none; }
.res-meta { margin: 22px 10px 0; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.res h3 { margin: 10px 10px 0; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; }
.res p { margin: 10px 10px 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.res .link { margin: auto 10px 0; padding-top: 20px; font-size: 14.5px; }

/* ───── Final CTA (shared closing CTA, as on /customers/) ───── */
.eyebrow-ai { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-ai img { width: 16px; height: 15px; }
.cx-facts b { font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-featured { gap: 40px; padding-right: 40px; }
}
@media (max-width: 960px) {
  .res-featured-section { padding-top: 64px; padding-bottom: 88px; }
  #all { padding-top: 96px; }
  .res-featured { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 16px 16px 36px; }
  .res-featured-text { padding: 0 16px; }
}
@media (max-width: 560px) {
  .res-featured-section { padding-top: 48px; padding-bottom: 72px; }
  #all { padding-top: 80px; }
  .res-featured-text { padding: 0 8px; }
  .res-featured p { font-size: 16px; }
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .res-filter { margin: -24px 0 32px; }
}
