.performance-page {
  --track: #111519;
  --panel: #f2f4f3;
  --signal: #c33b32;
  --electric: #286d63;
  --text: #15191d;
  background: var(--panel);
}

.performance-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 0 5vw;
  color: #fff;
  background: var(--track);
}

.performance-logo-link {
  flex: 0 0 auto;
}

.performance-logo-link img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.performance-brand-content {
  display: grid;
  gap: 10px;
  align-content: center;
}

.performance-brand,
.performance-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.performance-header nav {
  display: flex;
  gap: 20px;
}

.performance-header nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.performance-hero {
  display: grid;
  min-height: calc(100vh - 118px);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--track);
}

.performance-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 5vw;
  color: #fff;
}

.performance-hero-copy p,
.performance-toolbar p,
.performance-results p {
  margin: 0 0 12px;
  color: #7ed3c6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.performance-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.performance-hero img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.performance-vision {
  max-width: 700px;
  padding: 24px;
  border-left: 4px solid var(--signal);
  background: rgba(255, 255, 255, 0.08);
}

.performance-vision strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.performance-vision p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.performance-list {
  padding: 80px 5vw;
}

.performance-toolbar {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.performance-row {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: 170px minmax(260px, 1fr) 270px auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto 12px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 21, 25, 0.08);
}

.performance-row img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.row-main span {
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.row-main h3 {
  margin-top: 4px;
}

.row-main p {
  margin-bottom: 0;
  color: #626d72;
}

.performance-row dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.performance-row dt {
  color: #758086;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-row dd {
  margin: 0;
  font-weight: 900;
}

.performance-row > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #fff;
  background: var(--track);
  text-decoration: none;
  font-weight: 900;
}

.performance-updates {
  padding: 82px 5vw;
  color: #fff;
  background: var(--electric);
}

.updates-heading,
.updates-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.updates-heading {
  margin-bottom: 30px;
}

.updates-heading p {
  margin: 0 0 12px;
  color: #a9efe5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.updates-heading h2 {
  max-width: 760px;
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.results-panel,
.videos-panel,
.social-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.results-panel {
  grid-column: 1 / -1;
}

.videos-panel {
  background: var(--track);
  border-color: rgba(255, 255, 255, 0.28);
}

.social-panel {
  background: rgba(17, 21, 25, 0.22);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.panel-heading span {
  font-weight: 900;
}

.panel-heading small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.results-table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.results-table th,
.results-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.results-table th {
  color: #a9efe5;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.results-table td {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.video-tile {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 21, 25, 0.56), rgba(17, 21, 25, 0.24)),
    #1e3430;
}

.video-tile-embed {
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  gap: 14px;
  padding: 0;
  background: var(--track);
}

.homepage-vimeo-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: var(--track);
}

.homepage-vimeo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-tile-embed h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0 18px 18px;
}

.play-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-tile h3,
.social-feed h3 {
  margin: 0;
  font-size: 1.02rem;
}

.social-feed {
  display: grid;
}

.social-feed article {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.social-feed article:last-child {
  border-bottom: 0;
}

.social-feed span {
  display: inline-block;
  margin-bottom: 8px;
  color: #a9efe5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-feed p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.instagram-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.instagram-item:not(:has(img)) {
  grid-template-columns: 1fr;
}

.instagram-item img {
  width: 88px;
  height: 110px;
  object-fit: cover;
}

.instagram-caption {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.social-feed a {
  color: inherit;
}

.performance-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 24px 5vw;
  color: #fff;
  background: var(--track);
}

.performance-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .performance-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .performance-header nav {
    overflow-x: auto;
  }

  .performance-hero,
  .updates-layout {
    grid-template-columns: 1fr;
  }

  .performance-hero img {
    min-height: 360px;
    order: -1;
  }

  .performance-row {
    grid-template-columns: 150px 1fr;
  }

  .performance-row dl,
  .performance-row > a {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .performance-hero-copy h1 {
    font-size: 3.1rem;
  }

  .performance-logo-link img {
    width: 78px;
    height: 78px;
  }

  .performance-row,
  .performance-row dl {
    grid-template-columns: 1fr;
  }

  .performance-row img,
  .performance-row dl,
  .performance-row > a {
    grid-column: auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .performance-row > a {
    width: 100%;
  }
}

.performance-videos {
  padding: 82px 5vw;
  color: var(--text);
  background: #fff;
}

.performance-videos .updates-heading p {
  color: var(--electric);
}

.performance-videos .videos-panel {
  border-color: #dde3e0;
}

.performance-videos .video-tile-embed {
  color: var(--text);
  background: var(--panel);
}

.performance-videos > .videos-panel,
#social > .social-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

#horses .performance-toolbar h2 {
  color: var(--text);
}

/* One large Instagram post, with unobstructed photography and carousel controls. */
.instagram-slide[hidden] { display: none; }
.social-feed .instagram-slide { padding: 28px; border: 0; }
.instagram-slide .instagram-item { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.instagram-slide .instagram-item img { width: 100%; height: 480px; object-fit: contain; background: var(--track); }
.instagram-slide .instagram-item:not(:has(img)) { grid-template-columns: 1fr; min-height: 280px; }
.instagram-slide .instagram-caption { display: block; white-space: pre-line; font-size: 1.05rem; margin-bottom: 20px; }
.instagram-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 0 28px 28px; }
.instagram-controls button { cursor: pointer; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; min-width: 48px; min-height: 44px; padding: 8px 16px; font: inherit; }
.instagram-controls button:hover { background: rgba(255,255,255,.12); }
.instagram-controls button:focus-visible { outline: 3px solid #a9efe5; outline-offset: 3px; }
.social-feed .instagram-position { margin: 0; }
@media (max-width: 700px) {
  .social-feed .instagram-slide { padding: 18px; }
  .instagram-slide .instagram-item { grid-template-columns: 1fr; gap: 20px; }
  .instagram-slide .instagram-item img { height: auto; max-height: 450px; }
}

.instagram-media { position: relative; min-height: 180px; padding-bottom: 36px; touch-action: pan-y; }
.instagram-media > a { display: block; }
.instagram-item > a { text-decoration: none; }
.instagram-media .instagram-arrow { position: absolute; top: calc((100% - 36px) / 2); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(17,21,25,.65); color: #fff; font: 32px/1 Georgia, serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.instagram-prev { left: 12px; }
.instagram-next { right: 12px; }
.instagram-media .instagram-arrow:hover { background: rgba(17,21,25,.9); }
.instagram-media .instagram-arrow:focus-visible { outline: 3px solid #a9efe5; outline-offset: 3px; }
.social-feed .instagram-media .instagram-position { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; margin: 0; }

.footer-company { display: flex; flex-direction: column; gap: 4px; }
.footer-company small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
