/* Homepage rivalry promo — Cy-Hawk corner-clash layout */
.hero--rivalry {
  --rival-cardinal: #8b1e2d;
  --rival-cardinal-deep: #5c101c;
  position: relative;
  width: 100%;
  min-height: clamp(20rem, 48vh, 30rem);
  padding: 0;
  overflow: hidden;
  background: #050506;
}

.hero--rivalry .hero-rivalry-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--rivalry .hero-rivalry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.hero--rivalry .hero-rivalry-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.82) 0%, rgba(5, 5, 6, 0.35) 42%, rgba(5, 5, 6, 0.08) 68%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.15) 0%, transparent 40%, rgba(5, 5, 6, 0.78) 100%);
}

.hero--rivalry .hero-rivalry-mid,
.hero--rivalry .hero-rivalry-bot {
  position: absolute;
  z-index: 3;
}

.hero--rivalry .hero-rivalry-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero--rivalry .hero-rivalry-mid {
  top: 50%;
  left: 50%;
  transform: translate(calc(-58% - 175px), -50%);
  width: min(24rem, 78vw);
  max-width: 92vw;
  text-align: center;
}

.hero--rivalry .hero-rivalry-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-style: italic;
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffcd00;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 8px 40px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.hero--rivalry .hero-rivalry-line {
  display: block;
  width: 100%;
}

.hero--rivalry .hero-rivalry-line--gold {
  position: relative;
  margin: 0;
  padding: 0;
  font-size: 1em;
  letter-spacing: 0.04em;
  color: #ffcd00;
  text-shadow:
    0 0 40px rgba(255, 205, 0, 0.22),
    0 6px 36px rgba(0, 0, 0, 0.75);
}

.hero--rivalry .hero-rivalry-line--gold::before {
  display: none;
}

.hero--rivalry .hero-rivalry-line--subhead {
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2.6vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: rgba(244, 244, 242, 0.95);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.hero--rivalry .hero-rivalry-sub {
  margin: 0.55rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero--rivalry .hero-rivalry-bot {
  left: 50%;
  right: auto;
  bottom: clamp(0.75rem, 2.5vh, 1.5rem);
  transform: translateX(calc(-58% - 175px));
  width: min(34rem, 88vw);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  text-align: center;
}

.hero--rivalry .hero-body {
  max-width: min(34rem, 92vw);
  margin: 0;
  color: rgba(244, 244, 242, 0.88);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.45;
  text-align: center;
}

.hero--rivalry .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hero--rivalry .btn-primary {
  background: #ffcd00;
  color: #0d0e10;
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero--rivalry .btn-ghost-rivalry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.hero--rivalry .btn-ghost-rivalry:hover {
  border-color: #ffcd00;
  color: #ffcd00;
}

@media (max-width: 640px) {
  .hero--rivalry {
    min-height: clamp(20rem, 48vh, 30rem);
  }
  .hero--rivalry .hero-rivalry-mid {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(calc(-58% - 175px), -50%);
    width: min(20rem, 88vw);
  }
  .hero--rivalry .hero-rivalry-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .hero--rivalry .hero-rivalry-bot {
    left: 50%;
    right: auto;
    bottom: clamp(0.65rem, 2vh, 1.1rem);
    transform: translateX(calc(-58% - 175px));
    gap: 0.55rem;
  }
  .hero--rivalry .hero-body {
    font-size: 0.88rem;
    line-height: 1.4;
  }
  .hero--rivalry .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero--rivalry .hero-actions > a {
    width: auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--rivalry .hero-rivalry-media img {
    transform: none;
  }
}

/* FOUC: hide the idle hero while rivalry promo is active.
   Do not hide .hero--rivalry when the attribute is missing — featureflag.js
   removes that node when showHeroRivalryPromo is false. Hiding it in CSS
   caused the promo to disappear on cached/partial deploys. */
html[data-hero-promo="rivalry"] .hero:not(.hero--rivalry) {
  display: none !important;
}
