.horse-detail-page {
  background: #fff;
}

.horse-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 118px);
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--track);
}

.horse-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.horse-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 21, 25, 0.86), rgba(17, 21, 25, 0.28) 62%, rgba(17, 21, 25, 0.1)),
    linear-gradient(0deg, rgba(17, 21, 25, 0.72), rgba(17, 21, 25, 0.04) 54%);
}

.horse-hero-copy {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 0 5vw 9vw;
}

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

.horse-hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 9vw, 8rem);
}

.horse-hero-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  font-weight: 800;
}

.horse-overview,
.horse-results,
.horse-videos {
  padding: 82px 5vw;
}

.horse-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.horse-story h2,
.horse-section-heading h2 {
  color: var(--text);
}

.horse-story p:not(.section-label) {
  color: #626d72;
  font-size: 1.05rem;
}

.horse-facts {
  padding: 26px;
  background: var(--panel);
  border-top: 4px solid var(--signal);
}

.horse-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
}

.horse-facts div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid #d4dbd8;
}

.horse-facts .horse-fact-wide {
  grid-column: 1 / -1;
}

.horse-facts dt {
  color: #758086;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.horse-facts dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}


.horse-results {
  color: #fff;
  background: var(--electric);
}

.horse-results .horse-section-heading,
.horse-results .horse-table-wrap,
.horse-videos .horse-section-heading,
.showcase-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.horse-results h2 {
  color: #fff;
}

.horse-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.horse-table-wrap table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

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

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

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

.horse-videos {
  background: #fff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.showcase-grid article {
  background: var(--panel);
}

.video-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 21, 25, 0.56), rgba(17, 21, 25, 0.28)),
    var(--track);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vimeo-embed {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  background: var(--track);
}

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

.showcase-grid h3 {
  margin: 0;
  padding: 18px;
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .horse-overview,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .horse-hero {
    min-height: 680px;
  }
}

@media (max-width: 560px) {
  .horse-hero-copy h1 {
    font-size: 3.4rem;
  }

  .horse-facts dl {
    grid-template-columns: 1fr;
  }

  .horse-facts {
    padding: 20px;
  }
}

.horse-hero-copy #horse-pedigree {
  margin: 0;
  color: #b4d6cf;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: none;
}

.horse-details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.horse-details-heading h2 { margin: 0; }

.horse-enquiry-action {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 100%;
  border: 1px solid var(--signal);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.horse-status,
.horse-enquiry-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
}

.horse-status { color: var(--text); background: var(--panel); }
.horse-status[hidden] { display: none; }
.horse-enquiry-label { color: #fff; background: var(--signal); }
.horse-enquiry-action:hover .horse-enquiry-label { filter: brightness(0.9); }
.horse-enquiry-action:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
