/* Race database pages */

.rf-races-index__eyebrow,
.rf-race-detail__eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.race-card--link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.race-card__cta {
  color: var(--gold);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.race-card--link:hover .race-card__cta {
  text-decoration: underline;
}

.race-grid__footer {
  margin: 2rem 0 0;
  text-align: center;
}

.rf-race-detail__breadcrumb {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.rf-race-detail__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.rf-race-detail__breadcrumb a:hover {
  color: var(--gold);
}

.rf-race-detail__hero {
  border-bottom: 1px solid rgba(var(--race-color-rgb), 0.2);
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
}

.rf-race-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

.rf-race-detail__tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 52rem;
}

.rf-race-panel {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(6, 8, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 1.75rem;
}

.rf-race-panel + .rf-race-panel {
  margin-top: 1.5rem;
}

.rf-race-panel--profile,
.rf-race-panel--classes {
  border-top: 1px solid rgba(var(--race-color-rgb), 0.22);
}

.rf-race-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
}

.rf-race-panel__intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin: -0.35rem 0 1.5rem;
  max-width: 56rem;
}

.rf-race-profile__block + .rf-race-profile__block {
  margin-top: 1.25rem;
}

.rf-race-profile__block h3 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.rf-race-profile__block p,
.rf-race-profile__block li {
  color: var(--text-muted);
  line-height: 1.7;
}

.rf-race-profile__block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.rf-race-profile__columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

/* Class path filters */
.rf-class-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.rf-class-filter__btn {
  -webkit-backdrop-filter: blur(8px);
  appearance: none;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--race-color-rgb), 0.28);
  border-radius: 6px;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.95rem;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.rf-class-filter__btn:hover,
.rf-class-filter__btn.is-active {
  background: rgba(201, 162, 39, 0.88);
  border-color: var(--gold);
  color: #111;
}

.rf-class-line-list {
  display: grid;
  gap: 2rem;
}

.rf-class-line-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
}

.rf-class-line-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.rf-class-line-group[hidden] {
  display: none;
}

.rf-class-line-group__title {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.rf-class-line-group__desc {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.rf-class-level-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rf-class-level-column__label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.rf-class-option-list {
  display: grid;
  gap: 1rem;
}

.rf-class-option__name {
  color: var(--gold);
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.rf-class-option__role {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.rf-race-detail__switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.rf-race-switch {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.rf-race-switch--accretia.is-active,
.rf-race-switch--accretia:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.rf-race-switch--bellato.is-active,
.rf-race-switch--bellato:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.rf-race-switch--cora.is-active,
.rf-race-switch--cora:hover {
  border-color: #22c55e;
  color: #22c55e;
}

.rf-race-switch.is-active {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

@media (max-width: 960px) {
  .rf-race-profile__columns,
  .rf-class-level-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rf-class-filter__btn {
    flex: 1 1 calc(50% - 0.65rem);
    text-align: center;
  }
}
