/* Renewal Resources — grid, dual classifiers (Type + Topic), and filtering.
   Inherits the active theme's design tokens where available, with fallbacks. */

.rnwres { display: block; }

/* --- Filter bars (one per classifier) --- */
.rnwres-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 0 0 1rem;
}
.rnwres-filter:last-of-type { margin-bottom: 2.25rem; }
.rnwres-filter-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted, #6e747a);
  margin-right: .35rem;
}
.rnwres-filter button {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: .45rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border, #e2e6e8);
  background: var(--color-surface, #fff);
  color: var(--color-muted, #6e747a);
  transition: all .2s ease;
}
.rnwres-filter button:hover { color: var(--color-text, #4b4f54); }
.rnwres-filter button.is-active {
  background: var(--color-cta, #3F6C7D);
  border-color: var(--color-cta, #3F6C7D);
  color: #fff;
}

/* --- Grid + cards --- */
.rnwres-grid {
  display: grid;
  grid-template-columns: repeat(var(--rnwres-cols, 3), 1fr);
  gap: 1.5rem;
}
.rnwres-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e6e8);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.rnwres-card:hover { box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.08)); transform: translateY(-3px); }
.rnwres-card.is-hidden { display: none; }

.rnwres-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f2; }
.rnwres-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rnwres-card:hover .rnwres-thumb img { transform: scale(1.04); }

.rnwres-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.25rem 1.5rem 1.5rem; }

/* Type + Topic line */
.rnwres-meta { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.rnwres-type {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--color-accent-alt, #D66965);
  display: inline-flex;
  align-items: center;
}
.rnwres-type-icon { font-size: .95rem; margin-right: .15rem; }
.rnwres-cat { font-size: .72rem; font-weight: 600; color: var(--color-muted, #6e747a); }
.rnwres-type + .rnwres-cat::before { content: "·"; margin: 0 .45rem; color: var(--color-muted, #6e747a); }

.rnwres-title { font-family: var(--font-display, inherit); font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
.rnwres-title a { color: var(--color-text, #4b4f54); text-decoration: none; }
.rnwres-title a:hover { color: var(--color-cta, #3F6C7D); }
.rnwres-excerpt { font-size: .9rem; line-height: 1.6; color: var(--color-muted, #6e747a); margin: 0 0 1rem; flex-grow: 1; }
.rnwres-link { font-weight: 600; font-size: .85rem; color: var(--color-cta, #3F6C7D); text-decoration: none; margin-top: auto; }
.rnwres-link:hover { text-decoration: underline; }

.rnwres-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--color-border, #e2e6e8);
  border-radius: var(--radius-lg, 8px);
  color: var(--color-muted, #6e747a);
  background: var(--color-surface, #fff);
}

@media (max-width: 1024px) { .rnwres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rnwres-grid { grid-template-columns: 1fr; } }
