/* Finisher Wall — public wall page styles. Builds on top of styles.css to
   stay aligned with the marketing site brand: Inter / Space Grotesk, primary
   #FF6B35, secondary #FFB800, dark surfaces. */

/* Defensive: any class with an explicit `display` (e.g. `.wall-hero__skeleton`
   uses `display: flex`) would otherwise out-specificity the user-agent
   `[hidden] { display: none }` rule and stay visible after wall.js toggles it
   off. Force-hide with !important so JS-driven skeleton/section toggles work
   reliably across all elements. */
[hidden] {
  display: none !important;
}

body.wall {
  background: radial-gradient(
      1200px 600px at 75% -10%,
      rgba(255, 107, 53, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 20%,
      rgba(255, 184, 0, 0.12),
      transparent 65%
    ),
    var(--bg);
}

.install-banner {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1A1A1A;
  text-decoration: none;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.install-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
}

.install-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.install-banner__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.install-banner__eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.65);
}

.install-banner__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1A1A1A;
}

.install-banner__cta {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wall-main {
  padding-bottom: 72px;
}

.wall-hero {
  position: relative;
  padding: 72px 0 74px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wall-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(760px 420px at 78% 12%, rgba(255, 107, 53, 0.18), transparent 62%),
    radial-gradient(620px 360px at 16% 78%, rgba(255, 184, 0, 0.11), transparent 66%),
    linear-gradient(135deg, #10131A 0%, #0B0D10 54%, #111018 100%);
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.wall-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), var(--bg));
}

.wall-hero__inner {
  position: relative;
  z-index: 1;
}

.wall-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.wall-hero__copy {
  max-width: 680px;
}

.wall-hero__avatar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}

.wall-hero__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #0B0D10;
  border: 2px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 0 7px rgba(255, 107, 53, 0.12);
}

.wall-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.wall-hero__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wall-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.28);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.wall-hero__content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  margin: 18px 0 16px;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 720px;
}

.wall-hero__display-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.wall-hero__location {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0;
}

.wall-hero__summary {
  max-width: 570px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.wall-hero__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  max-width: 650px;
}

.wall-highlight {
  min-height: 90px;
  padding: 15px 16px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.wall-highlight span,
.wall-showcase__label,
.wall-section-kicker {
  display: block;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wall-highlight strong {
  display: block;
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
}

.wall-highlight small {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.wall-showcase {
  align-self: end;
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #11151C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.wall-showcase__media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.24), rgba(255, 184, 0, 0.1)),
    #171B22;
  overflow: hidden;
}

.wall-showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 21, 28, 0.8));
}

.wall-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wall-showcase__placeholder,
.wall-featured__placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.22), rgba(255, 184, 0, 0.1)),
    #171B22;
}

.wall-showcase__body {
  position: relative;
  padding: 28px;
}

.wall-showcase__body h2 {
  margin: 10px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.wall-showcase__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}

.wall-hero__skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 240% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-radius: 12px;
}

.skeleton--avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
}

.skeleton--title {
  width: 280px;
  max-width: 80vw;
  height: 32px;
}

.skeleton--meta {
  width: 200px;
  max-width: 60vw;
  height: 18px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wall-stats {
  position: relative;
  z-index: 2;
  padding: 0 0 54px;
  margin-top: -34px;
}

.wall-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wall-stat {
  min-height: 136px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #171B22;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-m);
  padding: 24px 18px;
  text-align: center;
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.wall-stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
}

.wall-stat__label {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.wall-upcoming {
  padding: 22px 0 52px;
}

.wall-upcoming-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.wall-upcoming-card {
  overflow: hidden;
  border-radius: var(--radius-m);
  background:
    linear-gradient(180deg, rgba(255, 184, 0, 0.1), rgba(255, 255, 255, 0.03)),
    #151922;
  border: 1px solid rgba(255, 184, 0, 0.2);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
}

.wall-upcoming-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 184, 0, 0.18), rgba(255, 107, 53, 0.12)),
    #171B22;
}

.wall-upcoming-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-upcoming-card__placeholder {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255, 184, 0, 0.12);
  border: 2px solid rgba(255, 184, 0, 0.18);
}

.wall-upcoming-card__pill {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wall-upcoming-card__body {
  padding: 20px;
}

.wall-upcoming-card__body h3 {
  margin: 10px 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.wall-upcoming-card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.wall-races {
  padding: 22px 0 72px;
}

.wall-section-head {
  max-width: 760px;
}

.wall-section-head .section-sub {
  margin-bottom: 0;
}

.wall-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.wall-featured {
  margin-top: 28px;
}

.wall-featured__card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #151922;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.3);
}

.wall-featured__card--pr {
  border-color: rgba(255, 107, 53, 0.42);
}

.wall-featured__media {
  position: relative;
  min-height: 340px;
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.2), rgba(255, 184, 0, 0.1)),
    #171B22;
  overflow: hidden;
}

.wall-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wall-featured__body {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wall-featured__body h3 {
  margin: 12px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.wall-featured__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.wall-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
    #151922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.wall-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.wall-card--pr {
  border-color: rgba(255, 107, 53, 0.4);
}

.wall-card__media {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 107, 53, 0.18), rgba(255, 184, 0, 0.1)),
    #171B22;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wall-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-card__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.wall-card__pr {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #1A1A1A;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.wall-card__body {
  padding: 18px 20px 20px;
}

.wall-card__body h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.wall-card__meta {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.wall-card__meta--dim {
  color: var(--text-dim);
  font-weight: 500;
}

.wall-empty,
.wall-not-found {
  padding: 80px 0;
  text-align: center;
}

.wall-cta {
  padding: 64px 0 0;
  text-align: center;
}

.wall-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer__links {
  display: inline-flex;
  gap: 18px;
}

@media (max-width: 980px) {
  .wall-hero {
    padding: 54px 0 64px;
  }

  .wall-hero__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wall-showcase {
    min-height: 0;
    grid-template-rows: minmax(300px, 1fr) auto;
    max-width: 640px;
  }

  .wall-showcase__media,
  .wall-showcase__media img,
  .wall-showcase__placeholder {
    min-height: 300px;
  }

  .wall-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .wall-featured__card {
    grid-template-columns: 1fr;
  }

  .wall-featured__body {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .wall-hero {
    padding: 38px 0 52px;
  }

  .wall-hero__avatar-wrap {
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }

  .wall-hero__avatar {
    width: 96px;
    height: 96px;
  }

  .wall-hero__status {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .wall-hero__content h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .wall-hero__highlights {
    grid-template-columns: 1fr;
  }

  .wall-showcase__media,
  .wall-showcase__media img,
  .wall-showcase__placeholder {
    min-height: 240px;
  }

  .wall-showcase {
    grid-template-rows: minmax(240px, 1fr) auto;
  }

  .wall-showcase__body {
    padding: 20px;
  }

  .wall-showcase__body h2 {
    font-size: 26px;
  }

  .wall-stats {
    margin-top: -24px;
    padding-bottom: 42px;
  }

  .wall-stat {
    min-height: 116px;
    padding: 18px 12px;
  }

  .wall-stat__label {
    font-size: 10px;
  }

  .wall-featured__media,
  .wall-featured__media img,
  .wall-featured__placeholder {
    min-height: 240px;
  }

  .wall-featured__card {
    grid-template-columns: 1fr;
  }

  .wall-featured__body {
    padding: 22px;
  }

  .wall-upcoming-grid,
  .wall-grid {
    grid-template-columns: 1fr;
  }

  .install-banner__inner {
    padding: 10px 16px;
  }

  .install-banner__title {
    font-size: 13px;
  }
}
