/* ============================================================
   Resource library — datasheets & reports listings
   Hero pulled from faq.css (.resources-details-section)
   ============================================================ */

.rl-grid-section {
  padding: 1.5rem 0 4rem;
  background: #fff;
}
@media (min-width: 768px) {
  .rl-grid-section { padding: 2rem 0 5rem; }
}

/* ===== Filter bar (search + count) ===== */

.rl-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.rl-search {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}
.rl-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.25rem;
}
.rl-search__input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rl-search__input:focus {
  border-color: #f26739;
  box-shadow: 0 4px 16px rgba(242, 103, 57, 0.15);
}

.rl-count {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* ===== Topic pill filter ===== */

.rl-topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.rl-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.rl-topic-pill:hover {
  border-color: #f26739;
  color: #f26739;
  background: #FFF8F1;
}
.rl-topic-pill.is-active {
  background: #f26739;
  border-color: #f26739;
  color: #fff;
}
.rl-topic-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.rl-topic-pill.is-active .rl-topic-pill__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.rl-topic-pill:hover:not(.is-active) .rl-topic-pill__count {
  background: #FEEFE2;
  color: #f26739;
}

/* ===== Card ===== */

.rl-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rl-card:hover {
  border-color: #f26739;
  box-shadow: 0 12px 32px rgba(242, 103, 57, 0.12);
  transform: translateY(-3px);
}

.rl-card__thumb-wrap {
  display: block;
  background: #fcf9ff;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.rl-card__thumb-wrap--placeholder {
  background: linear-gradient(135deg, #FFF8F1 0%, #FEEFE2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-card__thumb-wrap--placeholder i {
  font-size: 4rem;
  color: #f26739;
  opacity: 0.5;
}
.rl-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.rl-card__thumb-wrap:hover .rl-card__thumb {
  transform: scale(1.04);
}

.rl-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rl-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f26739;
  margin-bottom: 0.625rem;
}
.rl-card__type i { font-size: 1rem; }

.rl-card__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f26739;
  margin-bottom: 0.625rem;
}

.rl-card__title {
  font-family: var(--DMSans), 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111928;
  margin: 0 0 0.75rem !important;
  flex: 1;
}
.rl-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.rl-card__title a:hover { color: #f26739; }

.rl-card__desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.rl-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #FEEFE2;
  color: #f26739;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.rl-card__btn:hover {
  background: #f26739;
  color: #fff;
}
.rl-card__btn i { font-size: 1rem; }

.rl-card-col.hidden { display: none; }

/* ===== Empty state ===== */

.rl-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
}
.rl-empty i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  display: block;
}
.rl-empty h3 {
  font-size: 1.25rem;
  color: #111928;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.rl-empty p { margin: 0; font-size: 0.9375rem; }

/* Report card variant — bigger thumbnail, no eyebrow, no button */
.rl-card--report .rl-card__thumb-wrap {
  aspect-ratio: 16 / 10;
}
.rl-card--report .rl-card__body {
  padding: 1.75rem;
}
.rl-card--report .rl-card__title {
  font-size: 1.25rem;
  margin: 0 0 1rem !important;
}
.rl-card--report .rl-card__desc {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
