.rab-section {
  margin: 2rem 0;
}

.rab-section-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.rab-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rab-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d0d7de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.rab-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rab-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.rab-card::before,
.rab-card::after,
.rab-card-body::before,
.rab-card-body::after {
  pointer-events: none;
}

.rab-card-community {
  margin: 0;
  color: #975a16;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rab-card-title {
  margin: 0;
  font-size: 1.1rem;
}

.rab-card-title a,
.rab-card-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  color: #12416b;
  text-decoration: none;
}

.rab-card-title a:hover,
.rab-card-link:hover {
  text-decoration: underline;
}

.rab-card-summary,
.rab-empty {
  margin: 0;
  color: #334155;
}

.rab-card-link {
  margin-top: auto;
  font-weight: 600;
}

.rab-search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.rab-search-form input[type="search"] {
  min-width: 280px;
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

.rab-search-form button {
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: #12416b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.rab-error {
  padding: 1rem 1.25rem;
  border-left: 4px solid #b91c1c;
  background: #fef2f2;
  color: #7f1d1d;
}
