/* ===== RESOURCES PAGE ===== */

.res-main { padding: 2rem 0 5rem; }

/* ---- Filters ---- */
.res-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.res-filter {
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.res-filter:hover  { border-color: rgba(139,124,248,0.4); color: var(--text); }
.res-filter.active { border-color: var(--accent); color: var(--accent); background: rgba(139,124,248,0.08); }

/* ---- Resources list ---- */
.res-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---- Section heading within list ---- */
.res-section-head {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  padding: 0.6rem 0 0.2rem;
  border-bottom: 1px solid var(--border);
  margin-top: 0.6rem;
}

/* ---- Resource card ---- */
.res-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.res-card:hover { border-color: rgba(139,124,248,0.35); transform: translateY(-2px); }

.res-card-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.res-card-body { flex: 1; min-width: 0; }
.res-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.res-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.res-card-meta { font-size: 0.7rem; color: var(--muted); margin-top: 0.4rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.res-card-cat {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  white-space: nowrap;
}

.res-card-ext {
  font-size: 0.72rem;
  color: var(--accent);
  align-self: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.res-card:hover .res-card-ext { opacity: 1; }

/* External link icon */
.res-external-note {
  max-width: 780px;
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
