/* =========================
   Research Library (Light theme + Inter)
   Scoped to .fsl-rl only
========================= */

/* Inter everywhere in this template */
.fsl-rl,
.fsl-rl *{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.fsl-rl{
  max-width: 1200px;
  margin: 32px auto;
  padding: 24px;
}

/* Header */
.fsl-rl__header{
  margin-bottom: 18px;
}

.fsl-rl__title{
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
}

/* Filters container */
.fsl-rl__filters{
  background: #ffffff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}

/* Filters grid */
.fsl-rl__filtersGrid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 980px){
  .fsl-rl__filtersGrid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  .fsl-rl{
    padding: 18px;
  }
  .fsl-rl__filtersGrid{
    grid-template-columns: 1fr;
  }
}

/* Label + inputs */
.fsl-rl__label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155; /* slate-700 */
  margin-bottom: 8px;
}

.fsl-rl__select{
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc; /* slate-50 */
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.fsl-rl__select:focus{
  border-color: #0ea5e9; /* sky-500 */
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
  background: #ffffff;
}

/* Actions */
.fsl-rl__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.fsl-rl__btn{
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fsl-rl__btn--primary{
  border-color: #0ea5e9;
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(14, 165, 233, .18);
}

.fsl-rl__btn--ghost{
  background: #ffffff;
  color: #0f172a;
}

.fsl-rl__btn:hover{
  transform: translateY(-1px);
}

.fsl-rl__btn--ghost:hover{
  background: #f8fafc;
}

/* Meta line */
.fsl-rl__meta{
  margin-top: 12px;
  color: #475569; /* slate-600 */
  font-size: 13px;
}

/* Cards grid */
.fsl-rl__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 980px){
  .fsl-rl__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .fsl-rl__grid{
    grid-template-columns: 1fr;
  }
}

/* Card */
.fsl-rl__card{
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 190px;
}

.fsl-rl__card:hover{
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, .45);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

/* Full clickable overlay */
.fsl-rl__cardOverlay{
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

/* Card meta */
.fsl-rl__cardMeta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #64748b; /* slate-500 */
  font-weight: 600;
  margin-bottom: 10px;
}

.fsl-rl__cardMeta a{
  position: relative;
  z-index: 2; /* stays clickable above overlay */
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, .2);
}

.fsl-rl__cardMeta a:hover{
  border-bottom-color: rgba(14, 165, 233, .6);
}

/* ✅ Bigger titles for ALL cards */
.fsl-rl__cardTitle{
  margin: 0 0 10px;
  font-size: 22px;       /* increased */
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  z-index: 2;
}

/* Tags */
.fsl-rl__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.fsl-rl__tag{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1px;
}

/* CTA link */
.fsl-rl__link{
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 12px;
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: none;
}

.fsl-rl__link:hover{
  text-decoration: underline;
}

/* Empty state */
.fsl-rl__empty{
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 18px;
  color: #475569;
}