.rap-shell {
  width: min(calc(100% - 48px), var(--rap-container));
  margin-inline: auto;
}

.rap-section {
  padding-block: var(--rap-section-space);
}

.rap-section-title {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  color: var(--rap-red);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.rap-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rap-border);
  border-radius: var(--rap-radius-md);
  background: var(--rap-surface);
  box-shadow: var(--rap-shadow);
  transition:
    box-shadow var(--rap-transition),
    transform var(--rap-transition);
}

.rap-card:hover {
  box-shadow: var(--rap-shadow-hover);
  transform: translateY(-2px);
}

.rap-card__media {
  display: block;
  overflow: hidden;
  width: 100%;
}

.rap-card__media > img,
.rap-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--rap-radius-md) var(--rap-radius-md) 0 0;
  object-fit: cover;
  transition: transform 320ms ease;
}

.rap-card:hover .rap-card__media > img {
  transform: scale(1.025);
}

.rap-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--rap-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.rap-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--rap-radius-sm);
  background: var(--rap-yellow);
  color: var(--rap-ink);
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color var(--rap-transition),
    transform var(--rap-transition);
}

.rap-button:hover {
  background: #ffda5e;
  color: var(--rap-ink);
  transform: translateY(-2px);
}

.rap-ad-slot {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 16px;
  border-radius: var(--rap-radius-sm);
  background: #fff3d5;
  color: var(--rap-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.rap-ad-banner,
.rap-ad-banner__link {
  display: block;
  width: 100%;
}

.rap-ad-banner__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--rap-radius-sm);
}

.rap-empty-state {
  padding: 48px 24px;
  color: var(--rap-muted);
  text-align: center;
}

.rap-home :focus-visible,
.rap-archive :focus-visible,
.rap-single :focus-visible,
body.rap-events-archive :focus-visible {
  outline: 3px solid var(--rap-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rap-card,
  .rap-card__media,
  .rap-button {
    scroll-behavior: auto;
    transition: none;
  }

  .rap-card:hover,
  .rap-card:hover .rap-card__media,
  .rap-button:hover {
    transform: none;
  }
}
