@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-regular.woff") format("woff");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic.woff") format("woff");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --cream: #f7f5ef;
  --paper: #fffefa;
  --sage: #28312c;
  --deep: #28312c;
  --ink: #28312c;
  --muted: #60695f;
  --line: #d9ded5;
  --pale: #e9ede5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: var(--serif);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: var(--sage);
  color: #fff;
  border: 1px solid var(--sage);
  padding: 14px 24px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  min-height: 48px;
}
button:hover,
.button:hover {
  background: var(--deep);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button.light {
  background: var(--cream);
  color: var(--deep);
  border-color: var(--cream);
}
.button.small {
  padding: 9px 18px;
}
.text-link {
  display: inline-block;
  font-size: 14px;
  padding: 10px 0;
  color: var(--deep);
}
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #a67628;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--deep);
  color: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.topline {
  background: var(--deep);
  color: #e3e9df;
  padding: 6px 6vw;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
header {
  position: relative;
  padding: 8px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  width: max-content;
}
.brand-logo {
  display: block;
  width: 156px;
  height: auto;
}
footer .brand-logo {
  width: 180px;
  /* Blend the existing white-backed artwork into the cream footer. */
  mix-blend-mode: multiply;
}
.brand-name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.16em;
}
.brand-description {
  font-size: 8px;
  letter-spacing: 0.2em;
  margin-top: 5px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.desktop-nav > a {
  font-size: 12px;
  text-decoration: none;
}
.desktop-nav a[aria-current] {
  text-decoration: underline;
}
.mobile-nav {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 660px;
  padding: 70px 6vw 55px;
  gap: 5vw;
  align-items: center;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 24px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 24px;
}
h1 {
  font-size: clamp(44px, 4.7vw, 74px);
  letter-spacing: -0.045em;
  max-width: 950px;
}
h1 em,
h2 em {
  color: var(--sage);
  font-weight: 400;
}
h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 25px;
  margin-bottom: 16px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}
.hero-note {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 40px;
}
.hero-art {
  background: #fff;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 var(--pale);
  width: 100%;
  max-width: 700px;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.editorial-figure {
  position: relative;
  margin: 0 0 65px;
  overflow: hidden;
  background: var(--pale);
  border: 1px solid var(--line);
}
.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.editorial-figure figcaption {
  padding: 10px 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}
.editorial-figure-wide {
  max-width: 1408px;
  margin: 0 auto 25px;
}
.programme-visual {
  max-width: 1150px;
}
.art-caption {
  display: block;
  padding: 10px 14px;
  background: var(--paper);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.principles {
  padding: 22px 6vw;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  color: var(--sage);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.section {
  padding: 90px 6vw;
  max-width: 1600px;
  margin: auto;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: start;
}
.large-copy {
  font-size: 22px;
  font-family: var(--serif);
  line-height: 1.6;
  margin-top: 0;
}
.soft {
  background: var(--pale);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 70px;
  margin-bottom: 45px;
}
.section-heading > p {
  max-width: 360px;
  font-size: 14px;
  color: var(--muted);
}
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
}
.stage {
  padding: 28px 0;
  border-top: 1px solid #cbd3c8;
}
.number {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--sage);
  display: block;
}
.stage h3 {
  font-size: 23px;
}
.stage p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.empty {
  padding: 48px;
  max-width: 900px;
  margin: auto;
  border: 1px solid var(--line);
  text-align: center;
  background: var(--paper);
}
.empty p {
  max-width: 580px;
  margin: 18px auto;
}
.racing-panel {
  background: var(--deep);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
}
.racing-panel .eyebrow,
.band .eyebrow {
  color: #c2d0bf;
}
.racing-panel p {
  max-width: 520px;
}
.quote {
  padding: 0 20px;
  border-left: 1px solid #667767;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote > span {
  font-family: var(--serif);
  font-size: 70px;
  line-height: 0.8;
  color: #acbba7;
}
.quote p {
  font: italic 36px/1.35 var(--serif);
}
.quote small {
  font-size: 11px;
  color: #c2d0bf;
}
.band {
  background: var(--sage);
  color: white;
  padding: 65px 6vw;
  display: flex;
  gap: 50px;
  justify-content: space-between;
  align-items: center;
}
.band h2 {
  font-size: 38px;
  margin-bottom: 15px;
}
.band p {
  margin: 0;
}
.band .text-link {
  color: white;
}
.band .actions {
  margin: 0;
}
.page-intro {
  padding: 80px 6vw 60px;
  max-width: 1600px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  max-width: 970px;
  font-size: clamp(42px, 4.5vw, 64px);
}
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.three-columns .number {
  margin-bottom: 25px;
}
.three-columns p {
  font-size: 15px;
}
.note {
  padding: 35px;
  background: var(--pale);
  margin: 45px 0;
}
.note p:last-child {
  margin-bottom: 0;
}
.reading {
  max-width: 800px;
  margin: auto;
}
.reading h2 {
  font-size: 32px;
  margin-top: 40px;
}
.notice {
  padding: 20px;
  border-left: 3px solid var(--sage);
  background: var(--pale);
  margin: 20px 0;
  font-size: 14px;
}
.team-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: center;
}
.team-card + .team-card {
  margin-top: 70px;
}
.team-portrait {
  display: block;
  width: 100%;
  height: auto;
}
.photo-space {
  aspect-ratio: 4/3;
  background: #e6eae1;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 20px;
  color: var(--sage);
  text-align: center;
}
.photo-space span {
  font: italic 36px var(--serif);
}
.photo-space small {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.photo-space.tall {
  aspect-ratio: 4/5;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-inner {
  padding: 28px;
  background: var(--paper);
}
.card-inner .eyebrow {
  margin-bottom: 15px;
}
.card-inner p {
  font-size: 14px;
}
#horse-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
#horse-results .card-grid {
  display: block;
}
#horse-results > .empty {
  grid-column: 1/-1;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}
.filters button {
  background: transparent;
  color: var(--sage);
  font-size: 12px;
  padding: 8px 16px;
}
.filters button[aria-pressed="true"] {
  background: var(--sage);
  color: white;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
dt {
  font-weight: bold;
}
dd {
  margin: 0;
}
.update {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  max-width: 750px;
}
.update time {
  font-size: 12px;
  color: var(--muted);
}
.form-section {
  max-width: 1000px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field {
  margin-bottom: 24px;
}
label,
legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #a7b5a8;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  min-height: 48px;
  margin-bottom: 20px;
}
textarea {
  resize: vertical;
}
fieldset {
  border: 1px solid var(--line);
  padding: 20px;
  margin: 20px 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: start;
  font-weight: 400;
  line-height: 1.6;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--sage);
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.steps a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-decoration: none;
}
.steps [aria-current] {
  background: var(--sage);
  color: white;
}
.review {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.review summary {
  cursor: pointer;
}
.review dl {
  font-size: 13px;
}
.review dd {
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.portal-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.portal-list {
  list-style: none;
  padding: 0;
}
.portal-list li {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.small-copy {
  font-size: 12px;
  color: var(--muted);
}
.alert {
  color: #7c3929;
  border-color: #7c3929;
}
footer {
  padding: 65px 6vw 22px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.footer-top > div > p {
  font: 24px/1.4 var(--serif);
}
.footer-top > div > p.small-copy {
  font: 12px/1.8 var(--sans);
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  font-size: 12px;
  align-content: start;
}
.footer-links a {
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
p {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body:has(.page-intro) .section {
  padding-top: 60px;
}
@media (min-width: 1600px) {
  header,
  footer,
  .band,
  .topline {
    padding-left: calc((100vw - 1408px) / 2);
    padding-right: calc((100vw - 1408px) / 2);
  }
}
@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .desktop-nav > a {
    font-size: 11px;
  }
  .hero {
    min-height: 550px;
    padding-block: 50px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-art {
    box-shadow: 10px 10px 0 var(--pale);
  }
}
@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
  }
  .mobile-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    z-index: 10;
    padding: 20px 6vw;
    box-shadow: 0 10px 20px #28312c1a;
  }
  .mobile-nav a {
    display: block;
    padding: 9px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 55px 6vw;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-art {
    width: 100%;
    max-width: 720px;
    margin: auto;
  }
  .editorial-figure-wide {
    margin-inline: 6vw;
  }
  .hero h1 {
    font-size: 55px;
  }
  .principles {
    gap: 20px;
    font-size: 10px;
    text-align: center;
  }
  .split,
  .racing-panel,
  .team-card {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section {
    padding: 60px 6vw;
  }
  .section-heading {
    gap: 30px;
    align-items: start;
  }
  .section-heading > p {
    max-width: 280px;
  }
  .three-columns {
    gap: 25px;
  }
  .band {
    display: block;
    padding: 45px 6vw;
  }
  .band .actions {
    margin-top: 25px;
  }
  .card-grid,
  #horse-results {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .topline {
    font-size: 8px;
  }
  .topline {
    gap: 8px;
    letter-spacing: 0.015em;
  }
  .topline > span {
    flex-shrink: 0;
    letter-spacing: 0.04em;
  }
  header {
    padding-block: 18px;
  }
  .brand-name {
    font-size: 27px;
  }
  .mobile-nav nav {
    top: 100%;
  }
  .hero h1 {
    font-size: 43px;
  }
  .lede {
    font-size: 16px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-art {
    width: 100%;
  }
  .editorial-figure {
    margin-bottom: 35px;
  }
  .hero .actions {
    gap: 18px;
  }
  .principles {
    flex-direction: column;
    gap: 8px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .stage-grid,
  .three-columns,
  .form-grid,
  .card-grid,
  #horse-results {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 6vw;
  }
  .page-intro {
    padding: 50px 6vw 35px;
  }
  .page-intro h1 {
    font-size: 41px;
  }
  .empty {
    padding: 30px 22px;
  }
  .racing-panel .quote {
    padding-left: 25px;
  }
  .quote p {
    font-size: 30px;
  }
  .note {
    padding: 25px;
    margin: 30px 0;
  }
  .band h2 {
    font-size: 32px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-links {
    gap: 12px;
  }
  .photo-space.tall {
    aspect-ratio: 4/3;
  }
  .form-section {
    padding: 40px 6vw;
  }
  .facts {
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  button,
  .button {
    padding: 12px 18px;
  }
  .actions {
    gap: 15px;
  }
  .steps a {
    font-size: 10px;
    padding: 7px;
  }
  .team-card {
    gap: 30px;
  }
}

/* Homepage-only photographic hero. Shared pages and lower content retain their styles. */
.home-page .home-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  min-height: 96px;
  padding: 23px 6vw;
  background: transparent;
  border-bottom: 1px solid rgb(255 255 255 / 38%);
  color: #fff;
}
.home-page .home-brand {
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.home-page .home-brand-mark {
  display: block;
  width: 56px;
  height: 51px;
  flex-shrink: 0;
  overflow: hidden;
}
.home-page .home-brand-wordmark {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.17em;
  line-height: 1;
}
.home-page .home-header .desktop-nav {
  gap: clamp(20px, 2.3vw, 40px);
}
.home-page .home-header .desktop-nav > a {
  font-size: 14px;
  color: #fff;
}
.home-page .home-header .desktop-nav > a:not(.button):hover {
  text-decoration: underline;
}
.home-page .home-header .button {
  padding: 12px 25px;
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 82%);
}
.home-page .home-header .button:hover {
  background: rgb(255 255 255 / 14%);
}
.home-page .hero-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: clamp(700px, 44vw, 920px);
  min-height: 0;
  margin: 0;
  padding: 175px 6vw 66px;
  overflow: hidden;
  background: #28312c;
  color: #fff;
}
.home-page .hero-background {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  /* Fade the full photograph into the existing grey-green hero background. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgb(0 0 0 / 25%) 12%,
    rgb(0 0 0 / 60%) 24%,
    rgb(0 0 0 / 88%) 39%,
    rgb(0 0 0 / 97%) 64%,
    rgb(0 0 0 / 98%) 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgb(0 0 0 / 25%) 12%,
    rgb(0 0 0 / 60%) 24%,
    rgb(0 0 0 / 88%) 39%,
    rgb(0 0 0 / 97%) 64%,
    rgb(0 0 0 / 98%) 100%
  );
}
.home-page .hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgb(40 49 44 / 58%) 0,
    rgb(40 49 44 / 38%) 96px,
    rgb(40 49 44 / 0%) 180px
  );
}
.home-page .hero-copy {
  width: min(59%, 850px);
}
.home-page .hero-copy .eyebrow {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin: 0 0 27px;
}
.home-page .hero-copy h1 {
  color: #fff;
  font-size: clamp(54px, 4.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.home-page .hero-copy h1 em {
  color: inherit;
}
.home-page .hero-copy .lede {
  max-width: 650px;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.65;
  color: #f4f5f0;
  margin: 0;
}
.home-page .hero-copy .actions {
  gap: 22px;
  margin-top: 29px;
}
.home-page .hero-copy .button {
  min-height: 56px;
  padding: 15px 27px;
  font-size: 14px;
  letter-spacing: 0;
  background: #606956;
  border-color: #606956;
  color: #fff;
  gap: 30px;
}
.home-page .hero-copy .hero-button-outline {
  background: transparent;
  border-color: #fff;
}
.home-page .hero-copy .button:hover {
  background: #28312c;
}
.home-page .hero-copy .hero-button-outline:hover {
  background: rgb(255 255 255 / 14%);
}
.home-page .principles {
  background: var(--cream);
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1.5;
  padding: 31px 6vw;
  gap: 0;
  border-top: 0;
}
.home-page .principles span {
  width: 33.333%;
  text-align: center;
  padding: 0 18px;
}
.home-page .principles span + span {
  border-left: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .home-page .home-header .desktop-nav {
    display: none;
  }
  .home-page .home-header .mobile-nav {
    display: block;
  }
  .home-page .home-header .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 10px 15px;
    cursor: pointer;
    font-size: 14px;
    list-style: none;
  }
  .home-page .home-header .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .home-page .menu-lines {
    width: 21px;
    height: 13px;
    border-block: 1px solid currentColor;
  }
  .home-page .home-header .mobile-nav nav {
    position: absolute;
    inset: 96px 0 auto;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    padding: 20px 6vw 27px;
    background: var(--deep);
    color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / 35%);
    box-shadow: 0 15px 25px rgb(0 0 0 / 20%);
  }
  .home-page .home-header .mobile-nav nav > a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
  }
  .home-page .home-header .mobile-nav nav > .button {
    display: inline-flex;
    padding: 11px 20px;
    margin-top: 13px;
  }
}
@media (max-width: 1100px) {
  .home-page .home-header {
    min-height: 78px;
    padding: 17px 6vw;
    gap: 15px;
  }
  .home-page .home-brand {
    gap: 10px;
  }
  .home-page .home-brand-mark {
    width: 44px;
    height: 40px;
  }
  .home-page .home-brand-wordmark {
    font-size: 19px;
  }
  .home-page .home-header .mobile-nav nav {
    top: 78px;
    max-height: calc(100svh - 78px);
  }
  .home-page .hero-photo {
    display: block;
    height: auto;
    padding: 134px 6vw 430px;
  }
  .home-page .hero-background {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 455px;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home-page .hero-photo::before {
    background:
      linear-gradient(
        180deg,
        #28312c 0%,
        #28312c calc(100% - 465px),
        rgb(40 49 44 / 80%) calc(100% - 420px),
        rgb(40 49 44 / 12%) calc(100% - 335px),
        rgb(40 49 44 / 0%) 100%
      ),
      linear-gradient(90deg, rgb(40 49 44 / 28%), rgb(40 49 44 / 0%) 68%);
  }
  .home-page .hero-copy {
    width: 100%;
    max-width: none;
  }
  .home-page .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 23px;
  }
  .home-page .hero-copy h1 {
    font-size: clamp(26px, 5.3vw, 56px);
    line-height: 1.07;
    letter-spacing: -0.035em;
    margin-bottom: 23px;
  }
  .home-page .hero-copy .lede {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.65;
  }
  .home-page .hero-copy .actions {
    gap: 12px;
    margin-top: 25px;
  }
  .home-page .hero-copy .button {
    padding: 12px 17px;
    min-height: 49px;
    font-size: 12px;
    gap: 17px;
  }
  .home-page .principles {
    flex-direction: column;
    padding: 23px 6vw;
    gap: 9px;
    font-size: 16px;
  }
  .home-page .principles span {
    width: 100%;
    padding: 0;
  }
  .home-page .principles span + span {
    border: 0;
  }
}

@media (max-width: 700px) {
  .home-page .hero-copy h1 {
    font-size: clamp(26px, 8vw, 54px);
  }
  .home-page .home-header .mobile-nav summary {
    gap: 10px;
    padding-left: 8px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .home-page .hero-background {
    object-position: center bottom;
  }
}

/* Shared cream header: original symbol alone, without a backing box. */
.cream-header {
  padding-block: 16px;
}
.cream-header .brand {
  flex-shrink: 0;
}
.header-brand-mark {
  display: block;
  width: 110px;
  height: auto;
  aspect-ratio: 1231 / 1112;
}
@media (max-width: 560px) {
  .header-brand-mark {
    width: 84px;
  }
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.media-gallery figure {
  margin: 0;
}
.media-gallery img,
.media-gallery video,
.media-preview,
.note video {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #eef0e8;
}
.media-preview,
.note video {
  max-width: 600px;
}
.media-gallery figcaption {
  padding-top: 0.75rem;
}

.photo-space.horse-portrait {
  display: block;
  aspect-ratio: auto;
  align-self: start;
  padding: 0;
  border: 0;
  background: transparent;
}
.horse-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.horse-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.horse-card .photo-space {
  aspect-ratio: 1;
  width: 100%;
  flex-shrink: 0;
}
.horse-card .horse-portrait {
  position: relative;
  overflow: hidden;
}
.horse-card .horse-portrait img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.horse-card .card-inner {
  flex: 1;
}
#horse-results .card-grid {
  height: 100%;
}

/* Private portal: shared role-aware dashboard and section pages. */
.portal-dashboard {
  background: var(--cream);
}
.portal-topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 24px;
}
.portal-brand .header-brand-mark {
  width: 46px;
  height: 46px;
}
.portal-label {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  color: var(--muted);
}
.portal-website {
  margin-left: auto;
  text-decoration: none;
}
.portal-identity {
  font-size: 15px;
  color: var(--muted);
}
.portal-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}
.portal-sidebar {
  background: var(--deep);
  color: white;
  padding: 24px 16px;
}
.portal-sidebar nav {
  position: sticky;
  top: 24px;
}
.portal-sidebar a,
.portal-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  text-decoration: none;
  font-size: 17px;
}
.portal-sidebar a {
  color: white;
}
.portal-sidebar a[aria-current],
.portal-sidebar a:hover {
  background: rgb(255 255 255 / 10%);
}
.portal-sidebar svg,
.portal-mobile-menu svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.portal-sidebar form {
  margin-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 30%);
  padding-top: 14px;
}
.portal-sidebar button {
  background: transparent;
  border: 0;
  text-align: left;
}
.portal-main {
  --portal-gutter: clamp(22px, 4vw, 68px);
  padding: 44px var(--portal-gutter) 64px;
  min-width: 0;
}
.portal-main h1 {
  font-size: clamp(32px, 3.6vw, 58px);
  margin: 8px 0 16px;
}
.portal-main.portal-main-overview {
  padding-top: 0;
}
.portal-welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(320px, calc(26.7vw - 64px), 500px);
  margin: 0 calc(-1 * var(--portal-gutter)) 30px;
  padding: 54px var(--portal-gutter);
  background: var(--deep);
  color: var(--cream);
}
.portal-welcome-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.portal-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(40 49 44 / 100%) 0%,
    rgb(40 49 44 / 96%) 20%,
    rgb(40 49 44 / 65%) 36%,
    rgb(40 49 44 / 18%) 50%,
    rgb(40 49 44 / 0%) 64%
  );
}
.portal-welcome-copy {
  max-width: 54%;
}
.portal-welcome .portal-eyebrow {
  color: var(--cream);
  margin: 0 0 16px;
}
.portal-welcome h1 {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.portal-welcome-tagline {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  margin: 0;
}
.portal-main h2 {
  font-size: 32px;
}
.portal-main h3 {
  font-size: 24px;
}
.portal-eyebrow,
.portal-main .portal-section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.portal-eyebrow {
  color: var(--muted);
}
.portal-lede {
  color: var(--muted);
  margin-bottom: 36px;
}
.portal-back {
  display: inline-block;
  margin: 0 0 24px;
}
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.portal-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  min-height: 148px;
}
.portal-card:hover {
  border-color: var(--sage);
}
.portal-card-primary {
  background: var(--deep);
  color: white;
}
.portal-card-icon {
  background: rgb(96 105 95 / 9%);
  padding: 10px;
}
.portal-card-primary .portal-card-icon {
  background: rgb(255 255 255 / 10%);
}
.portal-card-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}
.portal-card-copy {
  flex: 1;
  min-width: 0;
}
.portal-card-title {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.portal-card-description {
  display: block;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
}
.portal-card-primary .portal-card-description {
  color: #e0e6df;
}
.portal-card-arrow {
  align-self: center;
  font-size: 22px;
}
.portal-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--deep);
  background: #e6ece3;
  border-radius: 20px;
}
.portal-record-note {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.portal-record-note h2 {
  font-size: 26px;
  margin-bottom: 4px;
}
.portal-record-note p {
  margin: 0;
  color: var(--muted);
}
.portal-main .note,
.portal-main .review {
  overflow-wrap: anywhere;
}
.portal-main .media-preview,
.portal-main video {
  max-width: 100%;
}
.portal-mobile-menu {
  display: none;
}
.portal-dashboard a:focus-visible,
.portal-dashboard button:focus-visible,
.portal-dashboard summary:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
}
@media (max-width: 1250px) {
  .portal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-identity {
    display: none;
  }
}
@media (max-width: 760px) {
  .portal-topbar {
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .portal-brand {
    font-size: 19px;
  }
  .portal-label {
    display: none;
  }
  .portal-website {
    font-size: 15px;
  }
  .portal-frame {
    display: block;
  }
  .portal-sidebar {
    display: none;
  }
  .portal-mobile-menu {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    background: var(--paper);
  }
  .portal-mobile-menu summary {
    cursor: pointer;
  }
  .portal-mobile-menu form {
    margin-top: 12px;
  }
  .portal-main {
    --portal-gutter: 18px;
    padding: 28px var(--portal-gutter) 40px;
  }
  .portal-welcome {
    display: block;
    min-height: 0;
    padding: 0;
    margin-bottom: 24px;
  }
  .portal-welcome-photo {
    position: static;
    display: block;
    width: 100%;
    height: clamp(170px, 48vw, 260px);
    object-position: center 35%;
  }
  .portal-welcome::after {
    display: none;
  }
  .portal-welcome-copy {
    max-width: none;
    padding: 26px var(--portal-gutter) 30px;
  }
  .portal-welcome h1 {
    font-size: clamp(30px, 7vw, 40px);
  }
  .portal-cards {
    grid-template-columns: 1fr;
  }
  .portal-card {
    min-height: 0;
    padding: 20px 16px;
  }
}

/* Approved Our Programme photograph with an overlapping text panel. */
.programme-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  padding: 40px 0;
}
.programme-hero-copy {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  margin-left: -2.0833vw;
  margin-right: 2.7778vw;
  padding: 32px 40px;
  background: #34443a;
  color: var(--paper);
}
.programme-hero h1 {
  font-size: clamp(34px, 3.82vw, 70px);
  line-height: 1.05;
  margin: 20px 0;
}
.programme-hero .eyebrow,
.programme-hero .lede {
  color: inherit;
}
.programme-hero .eyebrow {
  margin: 0;
}
.programme-hero .lede {
  max-width: 440px;
  margin: 0;
  font-size: clamp(20px, 1.74vw, 28px);
  line-height: 1.4;
}
.programme-rule {
  width: 70px;
  height: 3px;
  background: #a5b196;
  margin: 18px 0;
}
.programme-hero-note {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 32px 0 0;
  text-transform: uppercase;
}
.programme-hero > img {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1000px) {
  .programme-hero {
    grid-template-columns: 1fr;
    padding: 25px 0 0;
  }
  .programme-hero > img {
    grid-column: 1;
    grid-row: 1;
  }
  .programme-hero-copy {
    grid-column: 1;
    grid-row: 2;
    margin: 0 6vw;
    padding: 32px 6vw;
  }
  .programme-hero h1 {
    font-size: clamp(36px, 7vw, 58px);
  }
  .programme-hero-note {
    font-size: 11px;
  }
}

/* Portrait variant of the approved overlapping programme layout. */
.programme-hero.racing-hero {
  grid-template-columns: 43% 57%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 60px;
}
.racing-hero > img {
  width: 100%;
  max-width: 480px;
  justify-self: end;
}
.racing-hero .programme-hero-copy {
  margin-left: -20px;
  margin-right: 0;
  padding: 42px 50px;
}
.racing-hero h1 {
  font-size: clamp(34px, 4.03vw, 58px);
}
.racing-hero .lede {
  max-width: 660px;
}
@media (max-width: 1000px) {
  .programme-hero.racing-hero {
    grid-template-columns: 1fr;
    padding: 25px 6vw 0;
  }
  .racing-hero > img {
    justify-self: center;
  }
  .racing-hero .programme-hero-copy {
    margin: 0;
    padding: 32px 6vw;
  }
  .racing-hero h1 {
    font-size: clamp(32px, 6vw, 52px);
  }
}

/* Approved grey-green biography panels for every team member. */
.team-card-panel {
  grid-template-columns: 38% 62%;
  gap: 0;
}
.team-card-panel > .team-portrait {
  padding-right: 20px;
}
.team-card-panel > div {
  position: relative;
  margin-left: -20px;
  padding: 42px 50px;
  background: #34443a;
  color: var(--paper);
}
.team-card-panel .eyebrow,
.team-card-panel .large-copy {
  color: inherit;
}
.team-card-panel h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 24px;
  background: #a5b196;
}
@media (max-width: 1000px) {
  .team-card-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .team-card-panel > .team-portrait {
    max-width: 600px;
    padding: 0;
    margin: 0 auto;
  }
  .team-card-panel > div {
    margin: 0;
    padding: 32px 6vw;
  }
}

/* Approved original portal photographs, with full-image framing. */
.portal-welcome {
  aspect-ratio: 12 / 5;
  min-height: 320px;
}
.portal-welcome-photo {
  inset: auto 0 auto auto;
  top: 50%;
  transform: translateY(-50%);
  width: 62.5%;
  height: auto;
  object-fit: contain;
}
.portal-welcome::after {
  display: none;
}
.portal-welcome-copy {
  max-width: 38%;
}
.portal-record-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.portal-record-copy {
  padding: 34px 40px;
  margin-right: -20px;
  background: #34443a;
  color: var(--paper);
}
.portal-record-copy h2 {
  margin: 0 0 24px;
}
.portal-record-copy h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 24px;
  background: #a5b196;
}
.portal-record-copy p {
  color: inherit;
}
.portal-record-note > img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .portal-welcome {
    aspect-ratio: auto;
    min-height: 0;
  }
  .portal-welcome-photo {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
  }
  .portal-welcome-copy {
    max-width: none;
  }
  .portal-record-note {
    grid-template-columns: 1fr;
  }
  .portal-record-copy {
    margin: 0;
    padding: 28px 24px;
  }
  .portal-record-note > img {
    max-width: 340px;
    margin: 0 auto;
  }
}

.contract-reading {
  max-width: 850px;
  overflow-wrap: anywhere;
  margin: 32px 0;
}
.contract-reading h3 {
  margin-top: 32px;
}
.contract-reading code {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.enquiry-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.enquiry-message {
  white-space: pre-wrap;
}
.enquiry-item .actions form {
  margin: 0;
}
