/* Open cluster layout using the site's background, type and feature components. */
.horse-racing-page { --horse-line: var(--glass-border-muted); --horse-surface: var(--code-bg); --horse-muted: var(--muted); --horse-sand: var(--accent); color: var(--text); }
.horse-racing-page .shell { width: min(1180px, calc(100% - 48px)); }
.horse-hero { padding: 56px 0 24px; }
.horse-hero .sportsbet-hero-copy { max-width: 920px; gap: 18px; }
.horse-hero h1 { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 1100px; margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.horse-hero-mark { display: block; width: 56px; height: 56px; object-fit: contain; }
.horse-hero .sportsbet-hero-intro { max-width: 610px; color: var(--horse-muted); font-size: 17px; line-height: 1.65; }
.horse-hero .hero-email-cta { width: min(100%, 560px); margin: 8px auto 0; padding: 0; border: 0; }
.horse-hero .hero-email-cta input { border-color: #687780; }
.horse-hero .sportsbet-hero-links { gap: 4px 24px; font-size: 14px; font-weight: 500; }
.horse-hero .sportsbet-hero-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--horse-muted); text-decoration: none; }
.horse-hero .sportsbet-hero-links a:hover { color: var(--accent); text-decoration: underline; }
.horse-section { padding: 64px 0; scroll-margin-top: 96px; }
.horse-section-ruled { border-top: 0; }
.horse-section-heading { margin-bottom: 32px; }
.horse-section-heading h2, .horse-final h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.horse-section-heading p, .horse-racing-page li p, .horse-final p { max-width: 75ch; color: var(--horse-muted); margin: 0 0 16px; line-height: 1.65; }
.horse-overview-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.6fr); gap: 64px; align-items: center; }
.horse-directory-heading .horse-section-heading { margin-bottom: 12px; }
.horse-bookmakers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.horse-bookmakers li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; text-align: center; }
.horse-bookmakers img { display: block; width: 52px; height: 52px; border-radius: 6px; object-fit: contain; }
.horse-product-facts .us-ops-card-head h2 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.horse-product-facts .us-ops-card { min-width: 0; }
.horse-product-facts .us-ops-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.horse-product-facts .horse-status-time { font-size: 12px; margin: 8px auto 0; }
.horse-market-details { margin-top: auto; max-width: 32ch; }
.horse-market-details summary { display: flex; align-items: center; min-height: 44px; justify-content: center; gap: 8px; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.horse-market-details summary::after { content: "+"; }
.horse-market-details[open] summary::after { content: "−"; }
.horse-market-details summary::-webkit-details-marker { display: none; }
.horse-status-time { margin: 10px 0 24px; color: var(--horse-muted); font-size: 12px; line-height: 1.5; }
.horse-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.horse-table-scroll { overflow-x: auto; max-width: 100%; }
.horse-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; line-height: 1.65; }
.horse-table th, .horse-table td { padding: 20px 24px; border-bottom: 1px solid var(--horse-line); vertical-align: top; }
.horse-table thead th { color: var(--horse-muted); font-size: 13px; font-weight: 500; }
.horse-table tbody tr:last-child > * { border-bottom: 0; }
.horse-table tbody tr:hover { background: var(--horse-surface); }
.horse-table tbody th { width: 20%; font-weight: 600; }
.horse-table td { color: var(--horse-muted); }
.horse-racing-page code { color: var(--horse-sand); font-family: var(--font-mono); font-size: .85em; overflow-wrap: anywhere; }
.horse-fields-table td:nth-child(2) { width: 32%; }
.horse-fields-table td code { display: inline-block; margin: 0 10px 4px 0; }
.horse-market-note, .horse-measurement-note { color: var(--horse-muted); font-size: 14px; line-height: 1.7; }
.horse-market-note { margin: 20px 0 0; }
.horse-data-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.horse-data-strip > p { padding: 0; }
.horse-data-strip p { margin: 0; color: var(--horse-muted); font-size: 14px; line-height: 1.65; }
.horse-data-strip strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 16px; }
.horse-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 16px 0 32px; margin: 0; }
.horse-countdown li { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.horse-countdown-window { color: var(--horse-muted); font-size: 14px; }
.horse-countdown strong { color: var(--horse-sand); font-family: var(--font-heading); font-size: clamp(1.3rem, 2.3vw, 1.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.horse-countdown-track { position: relative; display: block; height: 1px; margin: 8px 0; background: var(--accent); }
.horse-countdown-track::before { content: ""; position: absolute; top: -4px; left: 0; height: 9px; width: 9px; border: 1px solid var(--accent); border-radius: 50%; background: var(--bg); }
.horse-countdown li:last-child .horse-countdown-track { background: transparent; }
.horse-countdown li:last-child .horse-countdown-track::before { background: var(--horse-sand); }
.horse-countdown-caption { margin: 16px 0 32px; color: var(--horse-muted); font-size: 14px; line-height: 1.65; }
.horse-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; }
.horse-split .horse-section-heading { margin-bottom: 0; }
.horse-refresh-list { margin: 0; padding-left: 20px; }
.horse-refresh-list li { padding: 0 0 16px 8px; }
.horse-refresh-list strong { display: block; margin-bottom: 8px; font-size: 16px; }
.horse-measurement-note { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--horse-line); }
.horse-example-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.horse-example-label { font-size: 13px; }
.horse-runner-example { margin: 32px 0 16px; padding: 0; }
.horse-runner-name { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.horse-runner-name > span { display: grid; place-items: center; width: 44px; height: 48px; color: var(--code-bg); background: var(--accent); clip-path: polygon(25% 0,38% 8%,62% 8%,75% 0,100% 25%,83% 42%,75% 34%,75% 100%,25% 100%,25% 34%,17% 42%,0 25%); font-weight: 700; }
.horse-runner-name > strong { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.horse-runner-example table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.horse-runner-example table th { text-align: left; font-weight: 500; }
.horse-runner-example thead th { padding: 12px 0; border-bottom: 1px solid var(--horse-line); color: var(--horse-muted); font-size: 12px; }
.horse-runner-example tbody th { display: flex; align-items: center; gap: 8px; padding: 16px 0; }
.horse-runner-example tbody img { width: 24px; height: 24px; border-radius: 3px; object-fit: contain; }
.horse-runner-example th + th, .horse-runner-example td { width: 22%; text-align: right; }
.horse-runner-example td { color: var(--plan-value-accent); font-size: 24px; font-weight: 600; }
.horse-runner-example td:last-child { color: var(--accent-secondary); }
.horse-code-panel { min-width: 0; width: 100%; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.horse-code-panel .code-feed-endpoint { background: transparent; border: 0; border-radius: 0; }
.horse-code-panel .code-window-head { min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--horse-line); }
.horse-code-panel .code-feed-endpoint { min-width: 0; font-size: 11px; overflow-wrap: anywhere; white-space: normal; }
.horse-code-panel pre { height: auto; max-height: 540px; margin: 0; padding: 24px; overflow: auto; font-size: 13px; line-height: 1.7; }
.horse-code-panel pre code { color: var(--text); font-size: inherit; overflow-wrap: normal; white-space: pre; }
.horse-country-filters { margin-top: 32px; }
.horse-country-filters h3 { margin: 0 0 16px; font-size: 18px; }
.horse-country-filters ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 16px 0; }
.horse-country-filters li { display: grid; gap: 8px; color: var(--horse-muted); font-size: 14px; }
.horse-related-racing { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.horse-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin: 0; padding: 0; list-style: none; }
.horse-workflow li { display: flex; gap: 16px; min-width: 0; padding-top: 24px; border-top: 1px solid var(--horse-line); }
.horse-step-number { flex: 0 0 24px; color: var(--horse-sand); font-size: 20px; font-weight: 500; line-height: 1.2; }
.horse-workflow h3 { font-size: 18px; margin: 0 0 10px; line-height: 1.4; }
.horse-workflow li > div { min-width: 0; }
.horse-workflow code { display: block; }
.horse-tutorial-link { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 32px; padding: 16px 0; }
.horse-tutorial-link h3 { margin: 0 0 8px; font-size: 20px; }
.horse-tutorial-link p { margin: 0; color: var(--horse-muted); font-size: 14px; line-height: 1.6; }
.horse-tutorial-link .button { min-height: 48px; font-size: 14px; }
.horse-final-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.horse-final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.horse-racing-page .faq-list { gap: 0; }
.horse-racing-page .faq-item { padding-inline: 0; border: 0; border-bottom: 1px solid var(--horse-line); border-radius: 0; background: transparent; box-shadow: none; }
.horse-racing-page #sources { padding-block: 32px; }
.horse-racing-page #sources h2 { font-size: 20px; }
.horse-racing-page #data-model, .horse-racing-page #quickstart { padding-block: 24px; }
.horse-reference > summary, .horse-technical > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; cursor: pointer; list-style: none; border-bottom: 1px solid var(--horse-line); }
.horse-reference > summary::-webkit-details-marker, .horse-technical > summary::-webkit-details-marker { display: none; }
.horse-reference > summary::after, .horse-technical > summary::after { content: "+"; color: var(--horse-muted); font-size: 24px; }
.horse-reference[open] > summary::after, .horse-technical[open] > summary::after { content: "−"; }
.horse-reference > summary h2 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.horse-technical > summary { justify-content: flex-start; width: fit-content; color: var(--horse-muted); font-size: 14px; }
.horse-details-body { padding-top: 24px; }
.horse-racing-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 980px) {
  .horse-overview-grid, .horse-example-layout, .horse-split { gap: 32px; }
  .horse-bookmakers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .horse-example-layout { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 680px) {
  .horse-racing-page .shell { width: calc(100% - 32px); }
  .horse-hero { padding: 40px 0 24px; }
  .horse-hero .sportsbet-hero-copy { gap: 16px; }
  .horse-hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .horse-hero .sportsbet-hero-intro { font-size: 16px; }
  .horse-section { padding: 48px 0; }
  .horse-overview-grid, .horse-split, .horse-example-layout, .horse-workflow { grid-template-columns: 1fr; gap: 32px; }
  .horse-bookmakers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 12px; }
  .horse-bookmakers li { font-size: 14px; }
  .horse-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .horse-countdown strong { font-size: 18px; white-space: nowrap; }
  .horse-countdown li:nth-child(2) .horse-countdown-track { background: transparent; }
  .horse-countdown-window { font-size: 13px; }
  .horse-table { min-width: 560px; }
  .horse-table th, .horse-table td { padding: 16px; }
  .horse-market-table { min-width: 0; }
  .horse-market-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .horse-market-table tbody, .horse-market-table tr { display: block; }
  .horse-market-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--horse-line); }
  .horse-market-table tbody tr:last-child { border-bottom: 0; }
  .horse-market-table tbody th, .horse-market-table tbody td { width: auto; padding: 0; border-bottom: 0; }
  .horse-market-table tbody td:nth-child(2) { text-align: right; }
  .horse-market-table tbody td:last-child { grid-column: 1 / -1; font-size: 14px; }
  .horse-data-strip { grid-template-columns: 1fr; gap: 20px; }
  .horse-country-filters ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-code-panel pre { padding: 16px; max-height: 440px; }
  .horse-final-actions { width: 100%; }
}
