  :root {
    --head: 'Playfair Display', Georgia, serif;
    --body: 'Source Serif 4', Georgia, serif;
    --label: 'Oswald', 'Arial Narrow', sans-serif;
  }
  /* ---------- Colours: Turf & Gold (dark turf green, gold, white and black) ---------- */
  :root {
    --paper: #ffffff; --paper-2: #eef3ef; --card: #ffffff;
    --ink: #0d0d0d; --ink-soft: #3f4a43; --rule: #0d0d0d; --hair: #c9d3cc;
    --red: #0b4a2b; --on-accent: #ffffff; --gold: #d4af37;
    --foot-bg: #0b4a2b; --foot-text: #ffffff; --foot-line: #2c6a4a; --foot-muted: #c4d8cb;
    --field: #ffffff; --field-text: #0d0d0d;
    --win-bg: #e2f1e6; --win-fg: #0b4a2b; --lose-bg: #f6e0dc; --lose-fg: #9b2a1c; --star-bg: #f7ecc6; --star-fg: #6f5300;
    --shadow: rgba(0, 0, 0, .35); --photo-filter: saturate(1.1);
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.7 var(--body); }
  a { color: var(--red); }
  img { max-width: 100%; display: block; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
  .label { font: 600 13px/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }

  /* Masthead */
  .topbar { border-bottom: 1px solid var(--rule); font: 500 13px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
  .topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .masthead { text-align: center; padding: 26px 0 14px; }
  .masthead h1 { margin: 0; font: 900 clamp(44px, 8vw, 92px)/1 var(--head); letter-spacing: -.01em; }
  .masthead p { margin: 10px 0 0; font: italic 400 20px/1.4 var(--body); color: var(--ink-soft); }
  html { scroll-behavior: smooth; }
  nav.main { position: sticky; top: 0; z-index: 50; background: var(--paper); border-top: 3px double var(--rule); border-bottom: 3px double var(--rule); box-shadow: 0 4px 10px -6px var(--shadow); }
  [id] { scroll-margin-top: 70px; }
  nav.main ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; max-width: 1160px; }
  nav.main a { display: block; padding: 13px 20px; font: 600 16px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
  nav.main a:hover, nav.main a.on { background: var(--ink); color: var(--paper); }
  nav.main a.cta { color: var(--red); }

  .warning { background: var(--red); color: var(--on-accent); text-align: center; padding: 12px 20px; font: 600 17px/1.4 var(--label); letter-spacing: .06em; text-transform: uppercase; }
  .warning a { color: var(--on-accent); }

  /* Front page grid */
  .front { display: grid; grid-template-columns: 2fr 1fr; gap: 0; margin-top: 30px; border-bottom: 1px solid var(--rule); padding-bottom: 34px; }
  .lead-story { padding-right: 34px; border-right: 1px solid var(--rule); }
  .lead-story h2 { margin: 0 0 14px; font: 900 clamp(34px, 4.6vw, 54px)/1.08 var(--head); }
  .byline { font: 500 14px/1.4 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; margin-bottom: 18px; }
  .photo { aspect-ratio: 16/8; background: url('/images/hero-home.jpg') center 65%/cover; filter: var(--photo-filter); margin-bottom: 6px; }
  .caption { font: italic 15px/1.4 var(--body); color: var(--ink-soft); margin: 0 0 18px; }
  .card-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 18px; }
  .card-table caption { text-align: left; font: 600 15px/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 8px; }
  .card-table td { padding: 11px 8px; border-top: 1px solid var(--hair); vertical-align: top; }
  .card-table td.n { font: 700 24px/1 var(--head); color: var(--red); width: 40px; }
  .card-table .race { font-weight: 700; }
  .card-table .race small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; }
  .recs { margin-top: 18px; padding: 16px 20px; border: 2px solid var(--ink); background: var(--paper-2); }
  .recs p { margin: 0; }
  .courtesy { margin: 12px 0 0; font-style: italic; color: var(--ink-soft); }

  .sidebar { padding-left: 30px; }
  .box { border: 2px solid var(--ink); padding: 20px 22px 24px; margin-bottom: 26px; background: var(--card); }
  .box h3 { margin: 0 0 10px; font: 900 28px/1.15 var(--head); }
  .box p { margin: 0 0 12px; }
  .btn { display: inline-block; padding: 14px 24px; background: var(--red); color: var(--on-accent); font: 600 16px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--red); }
  .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
  .ratio { font: 900 64px/1 var(--head); color: var(--red); margin: 6px 0; }

  /* Sections */
  section.band { padding: 54px 0; border-bottom: 1px solid var(--rule); }
  .section-head { text-align: center; margin-bottom: 30px; }
  .section-head h2 { margin: 0; font: 900 clamp(32px, 4.4vw, 48px)/1.1 var(--head); }
  .section-head p { margin: 10px auto 0; max-width: 640px; color: var(--ink-soft); font-style: italic; }

  .clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .clip { display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .tag { align-self: flex-start; padding: 5px 12px; border-radius: 30px; font: 600 13px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); color: var(--ink); }
  .tag.win { background: var(--win-bg); color: var(--win-fg); }
  .tag.lose { background: var(--lose-bg); color: var(--lose-fg); }
  .tag.star { background: var(--star-bg); color: var(--star-fg); }
  .clip h3 { margin: 12px 0 0; font: 700 26px/1.15 var(--head); }
  .clip .date { font: 500 14px/1.4 var(--label); letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; margin: 6px 0 14px; }
  .clip audio { width: 100%; margin-bottom: 14px; }
  .clip .res { margin: auto 0 0; padding: 12px 14px; border-radius: 10px; background: var(--win-bg); color: var(--ink); font-size: 17px; line-height: 1.45; }

  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); }
  .plan { padding: 30px 26px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; background: var(--card); }
  .plan:last-child { border-right: 0; }
  .plan.star { background: var(--foot-bg); color: var(--foot-text); }
  .plan.star .label { color: var(--gold); }
  .plan h3 { margin: 0; font: 900 30px/1.15 var(--head); }
  .price { font: 700 40px/1 var(--head); margin: 16px 0 4px; }
  .price small { font: 400 17px var(--body); }
  .plan ul { margin: 16px 0 24px; padding-left: 20px; flex: 1; }
  .plan li { margin-bottom: 6px; }
  .plan.star .btn { background: var(--gold); border-color: var(--gold); color: var(--foot-bg); }
  .ph { background: #ffe680; color: var(--ink); padding: 0 6px; }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
  .courses li { padding: 14px 0; border-bottom: 1px solid var(--hair); list-style: none; }
  .courses ul { padding: 0; margin: 0 0 22px; border-top: 1px solid var(--hair); }
  .courses a { color: var(--ink); font-weight: 700; text-decoration: none; }
  .courses a:hover { color: var(--red); }
  .courses span { display: block; font-size: 16px; color: var(--ink-soft); }
  .profile p { margin: 0 0 14px; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 22px; }
  .facts div { border-top: 3px solid var(--ink); padding-top: 8px; }
  .facts b { display: block; font: 900 34px/1 var(--head); color: var(--red); }
  .facts span { font-size: 15px; color: var(--ink-soft); }

  .team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
  .team img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 2px solid var(--ink); }
  .team b { display: block; margin-top: 10px; font: 600 18px/1.2 var(--label); letter-spacing: .14em; }
  .team span { font-size: 16px; color: var(--ink-soft); }

  footer { background: var(--foot-bg); color: var(--foot-text); padding: 54px 0 30px; }
  footer h2 { margin: 0 0 22px; font: 900 clamp(30px, 4vw, 44px)/1.15 var(--head); text-align: center; }
  form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
  form label { display: block; font: 500 14px/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
  form input, form textarea { width: 100%; padding: 13px 14px; font: 18px var(--body); background: var(--field); border: 0; color: var(--field-text); }
  form textarea { min-height: 120px; }
  form .full { grid-column: 1 / -1; }
  footer .btn { background: var(--red); }
  .foot-info { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--foot-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 17px; }
  footer a { color: var(--foot-text); }
  .disclaimer { font-size: 15px; color: var(--foot-muted); margin-top: 18px; }

  @media (max-width: 900px) {
    .front, .two-col { grid-template-columns: 1fr; }
    .lead-story { padding-right: 0; border-right: 0; }
    .sidebar { padding-left: 0; margin-top: 30px; }
    .clips { grid-template-columns: 1fr 1fr; }
    .plans { grid-template-columns: 1fr; }
    .plan { border-right: 0; border-bottom: 1px solid var(--ink); }
    .team { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    body { font-size: 20px; }
    .clips { grid-template-columns: 1fr; }
    nav.main ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    nav.main ul::-webkit-scrollbar { display: none; }
    nav.main a { padding: 14px 14px; font-size: 16px; white-space: nowrap; }
    form { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr 1fr; }
    .facts b { font-size: 26px; }
  }
  .plan-one { display: grid; grid-template-columns: 1fr 1.2fr; max-width: 940px; margin: 0 auto; background: var(--foot-bg); color: var(--foot-text); border-top: 6px solid var(--gold); box-shadow: 6px 6px 0 var(--gold); }
  .po-left { padding: 36px 34px; border-right: 1px solid var(--foot-line); }
  .po-left .label { color: var(--gold); }
  .po-left h3 { margin: 0; font: 900 34px/1.15 var(--head); }
  .po-list { list-style: none; margin: 0; padding: 30px 34px; align-self: center; }
  .po-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--foot-line); }
  .po-list li:last-child { border-bottom: 0; }
  .po-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--gold); font-weight: 700; font-size: 20px; }
  .po-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 940px; margin: 34px auto 0; padding: 0; }
  .po-steps li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--ink); background: var(--card); }
  .po-steps b { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--foot-bg); color: var(--gold); font: 700 18px var(--head); }
  .po-note { text-align: center; margin: 22px 0 0; color: var(--ink-soft); }
  @media (max-width: 760px) {
    .plan-one { grid-template-columns: 1fr; }
    .po-left { border-right: 0; border-bottom: 1px solid var(--foot-line); padding: 28px 22px; }
    .po-list { padding: 20px 22px 26px; }
    .po-steps { grid-template-columns: 1fr; }
  }
  .clip-lbl { margin: 0 0 6px; font: 600 13px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
  .clip .res { margin: 0 0 12px; }
  .clip-btns { display: flex; gap: 8px; margin-top: auto; }
  .cbtn { flex: 1; padding: 12px 8px; border: 2px solid var(--foot-bg); background: var(--foot-bg); color: var(--gold); font: 600 14px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .cbtn:hover, .cbtn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: var(--foot-bg); }
  .cbtn.result { background: transparent; color: var(--foot-bg); }
  .clip-video { margin-top: 12px; }
  .clip-video video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; }
  .credit { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
  .clips-src { text-align: center; margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
  .result-dialog { width: min(760px, 94vw); height: min(640px, 86vh); padding: 0; border: 3px solid var(--gold); background: #fff; }
  .result-dialog::backdrop { background: rgba(0, 0, 0, .6); }
  .rd-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--foot-bg); color: var(--gold); font: 600 15px/1.3 var(--label); letter-spacing: .06em; text-transform: uppercase; }
  .rd-bar button { background: var(--gold); color: var(--foot-bg); border: 0; padding: 8px 14px; font: 700 15px var(--label); cursor: pointer; }
  .result-dialog iframe { width: 100%; height: calc(100% - 46px); border: 0; }
  /* ---------- Turf & Gold accents (must stay last so they win) ---------- */
  nav.main { background: #0b4a2b; border-top: 3px solid #d4af37; border-bottom: 3px solid #d4af37; }
  nav.main a { color: #ffffff; }
  nav.main a.cta { color: #d4af37; }
  nav.main a:hover, nav.main a.on { background: #d4af37; color: #0d0d0d; }
  .warning { background: #0d0d0d; }
  .warning a { color: #d4af37; }
  .card-table td.n, .facts b { color: #b8941f; }
  .clip { box-shadow: 4px 4px 0 #d4af37; }
  .plan.star { border-top: 6px solid #d4af37; }
  .btn:not(.alt), .courses a.btn { color: #d4af37; }
  .btn:not(.alt):hover, .courses a.btn:hover { background: #d4af37; border-color: #d4af37; color: #0b4a2b; }
  footer .btn:not(.alt) { background: #d4af37; border-color: #d4af37; color: #0d0d0d; }
  .plan-one .btn:not(.alt) { background: #d4af37; border-color: #d4af37; color: #0b4a2b; }
  .plan-one .btn:not(.alt):hover { background: #ffffff; border-color: #ffffff; }
  /* Clip titles: big full-width banners that catch the eye */
  .clip { overflow: hidden; }
  .clip .tag { align-self: stretch; display: block; margin: -22px -22px 16px; padding: 14px 22px; border-radius: 0; font: 600 24px/1.1 var(--label); letter-spacing: .12em; text-align: center; background: #0d0d0d; color: #d4af37; }
  .clip .tag.lose { background: #9b2a1c; color: #ffffff; }
  .clip .tag.win { background: #0b4a2b; color: #d4af37; }
  .clip .tag.star { background: #d4af37; color: #0d0d0d; }
  .clip .tag::before { margin-right: 10px; }
  .clip .tag:not(.lose):not(.win):not(.star)::before { content: "🎯"; }
  .clip .tag.lose::before { content: "✖"; }
  .clip .tag.win::before { content: "✔"; }
  .clip .tag.star::before { content: "★"; }
  .say-red { color: #d62828; }

/* ---------- Sticky menu bar: name + picture appear once the big masthead scrolls away ---------- */
nav.main .navbar { display: flex; align-items: center; justify-content: center; max-width: 1160px; margin: 0 auto; padding: 0 12px; }
nav.main .navbar ul { margin: 0; }
nav.main a.nav-brand { display: none; align-items: center; gap: 10px; padding: 6px 18px 6px 4px; margin-right: auto; background: none; color: #ffffff; font: 700 22px/1 var(--head); letter-spacing: .01em; text-transform: none; white-space: nowrap; }
nav.main a.nav-brand:hover { background: none; color: var(--gold); }
nav.main.stuck a.nav-brand { display: flex; }
/* "For Horse-Owners" always stands out: white on deep maroon (gold when you are on that page) */
nav.main ul a.owners { background: #7a1f1f; color: #ffffff; }
nav.main ul a.owners:hover { background: #962828; color: #ffffff; }
nav.main ul a.owners.on { background: var(--gold); color: #0d0d0d; }
/* The menu ALWAYS stays on one line: it tightens on narrower screens, then scrolls sideways */
nav.main .navbar ul { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.main .navbar ul::-webkit-scrollbar { display: none; }
nav.main ul a { white-space: nowrap; }
@media (max-width: 1240px) {
  nav.main ul a { padding-left: 13px; padding-right: 13px; font-size: 15px; letter-spacing: .1em; }
  nav.main a.nav-brand { font-size: 19px; padding-right: 10px; }
}
@media (max-width: 1040px) {
  nav.main ul a { padding-left: 10px; padding-right: 10px; font-size: 14px; letter-spacing: .06em; }
  nav.main a.nav-brand span { display: none; }  /* photo only, so the menu items keep their room */
}
.avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; display: grid; place-items: center; background: var(--gold); color: #0b4a2b; font: 700 16px/1 var(--label); letter-spacing: .04em; }

/* Big masthead: photo + name + "Inventor of..." as one group; the tagline spans
   exactly from the photo's left edge to the end of "Gosavi", evenly spaced */
.mast-group { display: inline-flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; text-align: left; }
.mast-top { display: flex; align-items: center; gap: 22px; }
.mast-text { display: flex; flex-direction: column; }
.masthead .mast-text h1 { white-space: nowrap; font-size: clamp(30px, 8vw, 88px); }
.mast-sub { width: 0; min-width: 100%; margin-top: 6px; font: italic 400 clamp(13px, 1.9vw, 21px)/1.3 var(--body); color: var(--ink-soft); }
.mast-tag { width: 0; min-width: 100%; display: flex; justify-content: space-between; align-items: center; font: 600 clamp(12px, 1.7vw, 18px)/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.mast-tag i { font-style: normal; color: var(--gold); font-weight: 500; }
.mast-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); background: #fff; }
img.avatar { background: #fff; }

/* ---------- Membership: two plans (Race Day / Annual) ---------- */
.perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; max-width: 940px; margin: 0 auto 30px; padding: 0; }
.perks li { position: relative; padding-left: 26px; }
.perks li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plans2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; max-width: 940px; margin: 0 auto; align-items: stretch; }
.p2 { position: relative; display: flex; flex-direction: column; padding: 32px 30px; border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--gold); }
.p2 h3 { margin: 0; font: 900 34px/1.1 var(--head); }
.p2-price { margin: 14px 0 0; font: 900 52px/1 var(--head); color: var(--red); font-variant-numeric: lining-nums; }
.p2-per { margin: 6px 0 0; color: var(--ink-soft); }
.p2 ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.p2 li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--hair); }
.p2 li::before { content: "\2713"; position: absolute; left: 0; top: 9px; color: var(--gold); font-weight: 700; font-size: 19px; }
.p2 .btn { text-align: center; }
.p2.annual { background: var(--foot-bg); color: #fff; border-color: var(--gold); border-top-width: 6px; }
.p2.annual .label { color: var(--gold); }
.p2.annual .p2-price { color: var(--gold); font-size: 60px; }
.p2.annual .p2-per { color: #e4ede7; }
.p2.annual li { border-top-color: var(--foot-line); }
.p2.annual .btn:not(.alt) { background: var(--gold); border-color: var(--gold); color: #0b4a2b; }
.p2.annual .btn:not(.alt):hover { background: #fff; border-color: #fff; color: #0b4a2b; }
.p2-bonus { margin: 0 0 24px; padding: 16px 18px; border: 2px dashed var(--gold); background: rgba(212, 175, 55, .12); }
.p2-bonus p { margin: 0; font-size: 17px; line-height: 1.5; color: #e4ede7; }
.p2-bonus .p2-bonus-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; background: var(--gold); color: #0d0d0d; font: 600 14px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.p2-bonus .p2-bonus-head { margin-bottom: 6px; font: 700 21px/1.25 var(--head); color: var(--gold); }
.p2-option { align-self: flex-start; margin: 0 0 14px; padding: 5px 16px; background: #d62828; color: #fff; font: 600 20px/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.p2-ribbon { position: absolute; top: -17px; right: 22px; margin: 0; padding: 6px 16px; background: var(--gold); color: #0d0d0d; font: 600 14px/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; }

.android-note { max-width: 940px; margin: 30px auto 0; padding: 14px 18px; border: 2px solid #d62828; background: #fdf0ee; font-size: 18px; text-align: center; }
.android-note b:first-child { color: #d62828; }

/* ---------- Owners' Advisory ---------- */
.page-hero .label + h1 { margin-top: 4px; }
.page-hero p.label:first-child { font-size: 18px; letter-spacing: .22em; }
.oa-tagline { margin: 14px auto 0; font: 700 clamp(20px, 2.6vw, 28px)/1.3 var(--head); color: var(--gold); }
.prose ul.oa-list { list-style: none; padding: 18px 22px; }
.prose ul.oa-list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.prose ul.oa-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 20px; }
.oa-private { margin: 0 0 1.4em; padding: 22px 24px; background: var(--foot-bg); color: #fff; border-top: 5px solid var(--gold); box-shadow: 5px 5px 0 var(--gold); }
.oa-private p { margin: 0; }
.oa-private .oa-badge { margin-bottom: 10px; font: 600 20px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.oa-contact { font-size: 20px; line-height: 1.9; }
form.oa-form { max-width: 740px; margin: 6px auto 60px; padding: 26px; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 6px 6px 0 var(--gold); }
.oa-form label { color: var(--ink); }
.oa-form input, .oa-form textarea, .oa-form select { width: 100%; padding: 12px 14px; font: 18px var(--body); color: var(--ink); background: #fff; border: 2px solid var(--hair); }
.oa-form input:focus, .oa-form textarea:focus, .oa-form select:focus { outline: none; border-color: var(--red); }
.oa-form textarea { min-height: 0; }
.oa-form .form-status { color: var(--red); }
/* footer on pages without the student form: no empty band or divider at the top */
footer .wrap > .foot-info:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Play responsibly (footer line, membership note, page) ---------- */
.play-safe { margin: 30px 0 0; padding: 14px 18px; border: 1px solid var(--gold); color: #fff; font-size: 17px; }
.play-safe a { color: var(--gold); font-weight: 600; }
.po-safe { max-width: 940px; margin: 22px auto 0; text-align: center; color: var(--ink-soft); font-size: 17px; }
.po-safe a { color: var(--red); font-weight: 600; }
.prose ul.signs { list-style: none; padding: 18px 22px; border-left-color: #d62828; }
.prose ul.signs li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.prose ul.signs li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #d62828; color: #fff; font: 700 14px/20px var(--label); text-align: center; }
.help-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 14px; }
.help-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--foot-bg); color: #fff; text-decoration: none; border-top: 5px solid var(--gold); box-shadow: 5px 5px 0 var(--gold); }
.prose a.help-card { color: #fff; font-weight: 400; }
.help-card:hover { background: #0d5c35; }
.hc-name { font: 700 23px/1.2 var(--head); color: var(--gold); }
.hc-what { font-size: 17px; line-height: 1.5; color: #e4ede7; }
.hc-link { margin-top: auto; font: 600 16px/1.3 var(--label); letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.hc-site { font-size: 17px; }

/* ---------- First-visit welcome note ---------- */
.welcome { width: min(520px, 92vw); padding: 30px 30px 26px; border: 0; border-top: 6px solid var(--gold); background: var(--foot-bg); color: #fff; box-shadow: 8px 8px 0 var(--gold); font-size: 19px; line-height: 1.6; }
.welcome::backdrop { background: rgba(0, 0, 0, .7); }
.welcome .label { color: var(--gold); }
.welcome h2 { margin: 0 0 12px; font: 900 34px/1.15 var(--head); color: #fff; }
.welcome p { margin: 0 0 12px; }
.welcome-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }
.welcome .btn.welcome-ok { background: var(--gold); border-color: var(--gold); color: #0b4a2b; }
.welcome .btn.welcome-ok:hover { background: #fff; border-color: #fff; }
.welcome-more { color: var(--gold); font-weight: 600; }

/* ---------- Inner pages (About, Warning, Team, 404) ---------- */
.page-hero { background: var(--foot-bg); color: #fff; text-align: center; padding: 46px 20px 50px; border-bottom: 4px solid var(--gold); }
.page-hero .label { color: var(--gold); }
.page-hero h1 { margin: 0 auto; max-width: 900px; font: 900 clamp(34px, 5.4vw, 60px)/1.1 var(--head); }
.page-hero p.sub { margin: 16px auto 0; max-width: 680px; font: italic 400 21px/1.5 var(--body); color: #e4ede7; }
.hero-img { height: clamp(200px, 32vw, 380px); background: center 35%/cover no-repeat; border-bottom: 4px solid var(--gold); }

.prose { max-width: 740px; margin: 46px auto 0; font-size: 20px; line-height: 1.8; }
.prose h2 { margin: 1.7em 0 .5em; padding-bottom: 8px; border-bottom: 2px solid var(--gold); font: 900 32px/1.2 var(--head); color: var(--red); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--red); font-weight: 600; }
.prose ul { margin: 0 0 1.4em; padding: 18px 22px 18px 44px; background: var(--paper-2); border-left: 4px solid var(--gold); }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 1.4em; padding: 18px 24px; border-left: 5px solid var(--gold); background: var(--paper-2); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }

.trait-yes, .trait-no { display: inline-block; padding: 2px 14px; color: #fff; font: 600 .9em/1.4 var(--label); letter-spacing: .08em; }
.trait-yes { background: var(--red); }
.trait-no { background: #d62828; }
.ratio-box { margin: 0 0 1.4em; padding: 24px 28px; text-align: center; background: var(--foot-bg); color: #fff; border-top: 5px solid var(--gold); box-shadow: 5px 5px 0 var(--gold); }
.ratio-box .ratio { margin: 0 0 6px; font: 900 72px/1 var(--head); color: var(--gold); }
.ratio-box p { margin: 0; }
.ratio-box .hl { color: #f7ecc6; }

.page-cta { max-width: 940px; margin: 54px auto 0; padding: 34px 30px; text-align: center; border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--gold); }
.page-cta h2 { margin: 0 0 8px; font: 900 34px/1.15 var(--head); }
.page-cta p { margin: 0 0 18px; color: var(--ink-soft); }
.page-cta .btn { margin: 4px; }

.examples-band { margin-top: 56px; padding-top: 50px; border-top: 3px double var(--rule); }
.team-page { margin-top: 46px; }
.team-page .team b { font-size: 20px; }
.notfound { text-align: center; margin: 50px auto 0; max-width: 640px; font-size: 21px; }

.contact-form .hp { display: none; }
.form-status { margin: 12px 0 0; font-size: 18px; color: var(--gold); }
.form-status a { color: var(--gold); }

@media (max-width: 760px) {
  .plans2 { grid-template-columns: 1fr; gap: 34px; }
  .help-cards { grid-template-columns: 1fr; }
  .p2 { padding: 28px 22px; }
  .perks { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  nav.main .navbar { flex-direction: column; align-items: stretch; padding: 0; }
  nav.main.stuck a.nav-brand { justify-content: center; margin: 0; padding: 7px 10px 5px; font-size: 20px; border-bottom: 1px solid rgba(212, 175, 55, .5); }
  .avatar { width: 32px; height: 32px; font-size: 13px; }
  .mast-top { gap: 12px; }
  .mast-avatar { width: 64px; height: 64px; border-width: 3px; }
  /* name fills the space left after the photo: (screen - side margins - photo - gap) / name length */
  .masthead .mast-text h1 { font-size: clamp(20px, calc((100vw - 120px) / 7.5), 44px); }
  .mast-sub { font-size: clamp(11px, calc((100vw - 120px) / 19), 17px); }
  .mast-tag { font-size: clamp(10px, calc((100vw - 32px) / 30), 15px); }
  .mast-tag { letter-spacing: .04em; }
  .prose { font-size: 20px; margin-top: 34px; }
  .prose h2 { font-size: 28px; }
  .page-hero { padding: 34px 16px 38px; }
  .page-cta { padding: 26px 18px; }
  .ratio-box .ratio { font-size: 58px; }
}

/* Top bar: the current racing season in red */
.topbar .season { color: #d62828; font-weight: 600; }

/* Membership heading: "MOST POPULAR FEATURE" rubber-stamp band on the left, heading right-aligned */
.mem-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 940px; margin-left: auto; margin-right: auto; }
.mem-text { text-align: right; flex: 1; }
.mem-head .mem-text p { margin-right: 0; }
.stamp { flex-shrink: 0; transform: rotate(-12deg); padding: 5px; border: 4px solid #c41e1e; border-radius: 6px; color: #c41e1e; opacity: .92; }
.stamp-in { display: block; padding: 10px 22px; border: 2px solid #c41e1e; border-radius: 3px; font: 600 26px/1.15 var(--label); letter-spacing: .14em; text-transform: uppercase; text-align: center; white-space: nowrap; }
@media (max-width: 760px) {
  .mem-head { gap: 14px; }
  .stamp { border-width: 3px; padding: 3px; }
  .stamp-in { padding: 7px 10px; font-size: 17px; letter-spacing: .08em; white-space: normal; width: 118px; }
}

/* Small capital labels above headings ("NEW · MEMBERS ONLY", "LEARN ONLINE" ...): larger for easier reading */
.label { font-size: 16px; letter-spacing: .14em; }
@media (max-width: 600px) { .label { font-size: 15px; } }

/* Side boxes on the home page: labels as tags (gold; red for the warning box) */
.sidebar .box .label { display: inline-block; padding: 4px 10px; background: var(--gold); color: #0d0d0d; }
.sidebar .box#warning .label { background: #d62828; color: #ffffff; }

/* "Listen to free samples" button under the MOST POPULAR stamp: jumps up to the Clips section */
.stamp-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.sample-btn { display: inline-block; padding: 11px 18px; background: var(--foot-bg); color: var(--gold); border: 2px solid var(--gold); font: 600 16px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.sample-btn:hover { background: var(--gold); color: #0b4a2b; }
@media (max-width: 760px) {
  .stamp-col { gap: 16px; }
  .sample-btn { padding: 8px 8px; font-size: 13px; white-space: normal; text-align: center; width: 128px; }
}

/* About / Our Team tabs under the page heading */
.about-tabs { display: flex; justify-content: center; gap: 0; background: var(--paper-2); border-bottom: 1px solid var(--hair); }
.about-tabs a { padding: 14px 28px; font: 600 17px/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent; }
.about-tabs a:hover { color: var(--red); }
.about-tabs a.on { color: var(--red); border-bottom-color: var(--gold); background: #fff; }

/* "Back to top" button: appears after scrolling down */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--foot-bg); color: var(--gold); border: 2px solid var(--gold); font: 700 22px/1 var(--label); text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #0b4a2b; }
@media (max-width: 600px) {
  .about-tabs a { padding: 12px 16px; font-size: 15px; }
  .to-top { right: 12px; bottom: 12px; width: 50px; height: 50px; }
}

/* About / Our Team tabs: soft-gold band, selected tab solid green with gold letters */
.about-tabs { background: #f3e3b3; border-bottom: 3px solid var(--gold); gap: 6px; padding-top: 8px; }
.about-tabs a { color: #0b4a2b; border-bottom: 0; border-radius: 4px 4px 0 0; }
.about-tabs a:hover { background: #e9d494; color: #0b4a2b; }
.about-tabs a.on, .about-tabs a.on:hover { background: #0b4a2b; color: var(--gold); }

/* Full-disclosure note under the race-day column */
.disclosure { margin-top: 18px; padding: 14px 18px; border-left: 5px solid var(--gold); background: #fbf3dc; font-size: 17px; line-height: 1.55; }
.disclosure b { color: #0b4a2b; }

/* Contact (menu) scrolls the green footer right up to the menu: no white gap */
footer#contact { scroll-margin-top: 0; }

/* Contact area at least one screen tall, so jumping to Contact never shows white page space above it */
footer#contact { min-height: calc(100vh - 48px); }
@supports (height: 100svh) { footer#contact { min-height: calc(100svh - 48px); } }

/* Space between the "Learn from the inventor" box and the green contact area */
.page-cta { margin-bottom: 64px; }

/* "Download" in red on the app button */
.btn .dl { color: #d62828; }
.btn:hover .dl { color: inherit; }

/* Race card: race name on line 1 and class/distance on line 2, never broken up.
   Computers: the race column takes just the width it needs; selections fill the rest.
   Phones: selections move under the race details, full width. */
.card-table td.race { width: 1%; white-space: nowrap; padding-right: 26px; }
.card-table td.race small { white-space: nowrap; }
@media (max-width: 700px) {
  .card-table tr { display: grid; grid-template-columns: 34px 1fr; }
  .card-table td { border-top: 0; }
  .card-table tr { border-top: 1px solid var(--hair); }
  .card-table td.race { width: auto; white-space: normal; padding: 11px 8px 2px; }
  .card-table td.n { grid-row: span 2; }
  .card-table td:last-child { grid-column: 2; padding: 2px 8px 12px; font-weight: 600; }
}

/* Top button: clear of the iPhone home bar */
.to-top { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .to-top { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }

/* Phones: nothing may be wider than the screen (it pushed the Top button off-screen) */
.po-steps li { min-width: 0; }
.po-steps a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) { .po-steps { grid-template-columns: minmax(0, 1fr); } }
dialog.welcome { box-sizing: border-box; max-width: calc(100vw - 24px); }
.po-steps li > span { flex: 1; min-width: 0; }

/* Phones: the bar has its own row for the brand, so show the name beside the photo again */
@media (max-width: 600px) { nav.main a.nav-brand span { display: inline; } }

/* Membership: the "play responsibly" line, a little larger */
.po-safe { font-size: 20px; }
@media (max-width: 600px) { .po-safe { font-size: 19px; } }

/* "Download" in red in the Learn DH course list too */
.courses .dl { color: #d62828; font-style: normal; }
.po-safe a { white-space: nowrap; }
