/* =============================================================
   horse.bet Betting Tools — design system matches v2 plugins
   (.hbt- prefix to avoid collision with .hbuk- / .hbna-)
   ============================================================= */

.hbt-tool {
  max-width: 760px;
  margin: 24px auto;
  padding: 22px 22px 18px;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
.hbt-tool *, .hbt-tool *::before, .hbt-tool *::after { box-sizing: border-box; }

/* Header */
.hbt-tool-head { margin-bottom: 18px; }
.hbt-tool-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #854F0B;
  font-weight: 500;
  margin-bottom: 6px;
}
.hbt-tool-title {
  font-size: 22px !important;
  font-weight: 500 !important;
  margin: 0 0 6px !important;
  color: #1a1a1a !important;
  line-height: 1.2 !important;
}
.hbt-tool-sub {
  font-size: 13px;
  color: #6b6b66;
  margin: 0 0 4px;
  line-height: 1.5;
}

/* Form fields */
.hbt-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hbt-row-controls { background: #fafaf7; border-radius: 8px; padding: 12px; margin: 0 0 14px; }
.hbt-field { display: block; flex: 1 1 200px; min-width: 0; }
.hbt-field-narrow { flex: 0 1 180px; }
.hbt-lbl {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #6b6b66;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.hbt-lbl-sub { font-weight: 400; color: #b5b5ad; margin-left: 6px; }
.hbt-help { display: block; font-size: 11px; color: #b5b5ad; margin-top: 4px; line-height: 1.3; }
.hbt-help code { background: #f5f4ef; padding: 1px 4px; border-radius: 3px; font-size: 11px; }

.hbt-tool input[type="text"],
.hbt-tool input[type="number"],
.hbt-tool select {
  width: 100%;
  padding: 9px 10px;
  font-size: 14px;
  border: 1px solid #d8d8d2;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.hbt-tool select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.hbt-tool input:focus,
.hbt-tool select:focus {
  outline: none;
  border-color: #1d5fa5;
  box-shadow: 0 0 0 3px rgba(29, 95, 165, 0.15);
}
.hbt-input-prefix, .hbt-input-suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid #d8d8d2;
  border-radius: 6px;
  overflow: hidden;
}
.hbt-input-prefix:focus-within, .hbt-input-suffix:focus-within {
  border-color: #1d5fa5;
  box-shadow: 0 0 0 3px rgba(29, 95, 165, 0.15);
}
.hbt-prefix, .hbt-suffix {
  background: #f5f4ef;
  padding: 9px 12px;
  font-weight: 500;
  color: #6b6b66;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.hbt-input-prefix input, .hbt-input-suffix input {
  border: 0 !important;
  border-radius: 0 !important;
  flex: 1;
}
.hbt-input-prefix input:focus, .hbt-input-suffix input:focus {
  box-shadow: none !important;
}

/* Buttons */
.hbt-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.hbt-btn-primary {
  background: #0e1924;
  color: #fff;
  border-color: #0e1924;
}
.hbt-btn-primary:hover { background: #1a2a3a; }
.hbt-btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border-color: #d8d8d2;
}
.hbt-btn-secondary:hover { border-color: #1d5fa5; }

/* Results cards */
.hbt-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 18px 0 8px;
}
.hbt-result-card {
  background: #f5f4ef;
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
}
.hbt-result-card-primary {
  background: linear-gradient(135deg, #0e1924 0%, #1a2a3a 100%);
  color: #fff;
}
.hbt-result-card-primary .hbt-result-lbl,
.hbt-result-card-primary .hbt-result-val,
.hbt-result-card-primary .hbt-result-help { color: #fff; }
.hbt-result-card-primary .hbt-result-lbl,
.hbt-result-card-primary .hbt-result-help { opacity: 0.65; }
.hbt-result-lbl {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #6b6b66;
  font-weight: 500;
  text-transform: uppercase;
}
.hbt-result-val {
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
  margin-top: 4px;
  line-height: 1.1;
}
.hbt-result-help { font-size: 10px; color: #6b6b66; margin-top: 3px; }

/* Breakdown table */
.hbt-result-breakdown { background: #fafaf7; padding: 14px 16px; border-radius: 8px; margin-top: 8px; }
.hbt-result-breakdown h3 { font-size: 13px; font-weight: 500; margin: 0 0 8px; color: #6b6b66; letter-spacing: 0.5px; text-transform: uppercase; }
.hbt-bd-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr 1.5fr;
  gap: 8px;
  padding: 6px 0;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  font-size: 12px;
}
.hbt-bd-row:first-child { border-top: 0; }
.hbt-bd-lbl { font-weight: 500; color: #1a1a1a; }
.hbt-bd-mid { color: #6b6b66; font-variant-numeric: tabular-nums; }
.hbt-bd-val { color: #085041; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.hbt-bd-note { color: #b5b5ad; font-size: 11px; font-style: italic; }

/* Tool footer */
.hbt-tool-foot { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid rgba(0,0,0,0.06); }
.hbt-tool-foot-note { font-size: 10px; color: #b5b5ad; line-height: 1.5; text-align: center; }

/* =============================================================
   ODDS CONVERTER specific
   ============================================================= */
.hbt-converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.hbt-conv-field input { font-size: 18px !important; font-weight: 500; font-variant-numeric: tabular-nums; padding: 11px 12px !important; }

.hbt-converter-context {
  background: #fffaeb;
  border-left: 3px solid #BA7517;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 12px 0;
}
.hbt-context-lbl { font-size: 10px; letter-spacing: 1px; color: #854F0B; font-weight: 500; margin-bottom: 4px; }
.hbt-context-val {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: #2C2C2A;
}
.hbt-context-val strong { font-weight: 600; }

.hbt-converter-table-wrap { margin: 14px 0 4px; }
.hbt-converter-table-details summary {
  cursor: pointer;
  padding: 10px 14px;
  background: #fafaf7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  list-style: none;
}
.hbt-converter-table-details summary::-webkit-details-marker { display: none; }
.hbt-converter-table-details summary::before {
  content: '►';
  margin-right: 8px;
  font-size: 9px;
  color: #6b6b66;
  transition: transform 0.15s;
  display: inline-block;
}
.hbt-converter-table-details[open] summary::before { transform: rotate(90deg); }
.hbt-converter-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 12px;
}
.hbt-converter-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f5f4ef;
  font-weight: 500;
  color: #6b6b66;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hbt-converter-table td { padding: 7px 10px; border-bottom: 0.5px solid rgba(0,0,0,0.06); font-variant-numeric: tabular-nums; }
.hbt-converter-table tr:last-child td { border-bottom: 0; }

/* =============================================================
   PREDICTOR specific
   ============================================================= */
.hbt-pred-runners { margin: 14px 0; }
.hbt-pred-row {
  display: grid;
  grid-template-columns: 32px 1.5fr 1fr 1.5fr 28px;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  background: #fafaf7;
  border-radius: 8px;
  margin-bottom: 6px;
}
.hbt-pred-pos {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a;
  border: 0.5px solid rgba(0,0,0,0.1);
  margin-bottom: 0;
  align-self: end;
}
.hbt-pred-field { min-width: 0; }
.hbt-pred-field .hbt-lbl { font-size: 10px; }
.hbt-pred-field input[type="text"], .hbt-pred-field input[type="number"] {
  padding: 7px 9px !important;
  font-size: 13px;
}
.hbt-pred-field-odds input { font-weight: 500; font-variant-numeric: tabular-nums; }
.hbt-pred-field-conf input[type="range"] {
  width: 100%;
  height: 26px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  appearance: auto;
  -webkit-appearance: auto;
}
.hbt-pred-conf-readout { font-size: 10px; color: #6b6b66; display: block; margin-top: -2px; }
.hbt-pred-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  color: #6b6b66;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hbt-pred-remove:hover { background: #FCEBEB; color: #A32D2D; border-color: #A32D2D; }

.hbt-pred-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.hbt-pred-controls .hbt-btn-primary { margin-left: auto; }

.hbt-pred-summary { margin: 18px 0 14px; }
.hbt-pred-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hbt-pred-verdict {
  background: #fffaeb;
  border-left: 3px solid #BA7517;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 14px 0;
}
.hbt-verdict-h { font-size: 11px; letter-spacing: 1px; color: #854F0B; font-weight: 500; margin-bottom: 8px; }
.hbt-verdict-body {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: #2C2C2A;
}
.hbt-verdict-body strong { font-weight: 600; }
.hbt-verdict-byline { font-size: 11px; color: #6b6b66; margin-top: 8px; font-style: normal; font-family: inherit; }

.hbt-pred-table-wrap { margin-top: 18px; overflow-x: auto; }
.hbt-pred-table-wrap h3 { font-size: 14px; font-weight: 500; margin: 0 0 10px; color: #1a1a1a; }
.hbt-pred-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.hbt-pred-table th {
  text-align: left;
  padding: 8px 10px;
  background: #0e1924;
  color: #fff;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hbt-pred-table th:first-child { border-top-left-radius: 6px; }
.hbt-pred-table th:last-child  { border-top-right-radius: 6px; }
.hbt-pred-table td {
  padding: 9px 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.hbt-pred-table tr:hover td { background: #fafaf7; }
.hbt-ev-pos { color: #085041; font-weight: 500; }
.hbt-ev-neg { color: #A32D2D; }
.hbt-ev-neutral { color: #6b6b66; }

.hbt-verdict-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.hbt-verdict-back  { background: #1D9E75; color: #fff; }
.hbt-verdict-value { background: #E1F5EE; color: #085041; }
.hbt-verdict-fair  { background: #f5f4ef; color: #6b6b66; }
.hbt-verdict-avoid { background: #FCEBEB; color: #A32D2D; }

.hbt-pred-explainer { margin-top: 14px; }
.hbt-pred-explainer summary {
  cursor: pointer;
  padding: 10px 14px;
  background: #fafaf7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
}
.hbt-pred-explainer summary::-webkit-details-marker { display: none; }
.hbt-pred-explainer summary::before {
  content: '?';
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6b6b66;
  color: #fff;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: -3px;
}
.hbt-explainer-body { padding: 12px 14px 4px; font-size: 13px; line-height: 1.6; color: #2C2C2A; }
.hbt-explainer-body p { margin: 0 0 10px; }
.hbt-explainer-body p:last-child { margin-bottom: 0; }
.hbt-explainer-body strong { color: #1a1a1a; }

/* Compact mode (calculator only) */
.hbt-compact { padding: 16px 16px 12px; }
.hbt-compact .hbt-tool-title { font-size: 18px !important; }
.hbt-compact .hbt-result-val { font-size: 18px; }

/* Currency picker stays narrow */
.hbt-currency-picker { flex: 0 1 130px; }

/* Runner rows for calculator */
.hbt-runner-row { width: 100%; }

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 600px) {
  .hbt-tool { padding: 16px 14px 14px; margin: 16px auto; }
  .hbt-tool-title { font-size: 18px !important; }
  .hbt-row { flex-direction: column; gap: 10px; }
  .hbt-field { flex: 1 1 auto; }
  .hbt-results { grid-template-columns: 1fr 1fr; }
  .hbt-result-card-primary { grid-column: 1 / -1; }
  .hbt-result-val { font-size: 18px; }
  .hbt-bd-row { grid-template-columns: 1fr 1fr; font-size: 11px; }
  .hbt-bd-note { grid-column: 1 / -1; }
  .hbt-converter-grid { grid-template-columns: 1fr; }
  .hbt-pred-row {
    grid-template-columns: 28px 1fr 28px;
    grid-template-areas:
      "pos name remove"
      ".   odds odds"
      ".   conf conf";
    row-gap: 8px;
    padding: 10px;
  }
  .hbt-pred-pos { grid-area: pos; }
  .hbt-pred-field:nth-of-type(1) { grid-area: name; }
  .hbt-pred-field-odds { grid-area: odds; }
  .hbt-pred-field-conf { grid-area: conf; }
  .hbt-pred-remove { grid-area: remove; }
  .hbt-pred-controls .hbt-btn-primary { margin-left: 0; width: 100%; }
  .hbt-pred-controls .hbt-btn-secondary { flex: 1 1 calc(50% - 4px); }
}

/* =============================================================
   LIVE PREDICTOR (UK + NA) — race picker + analysis layout
   ============================================================= */

.hbt-tool.hbt-predictor-live { max-width: 920px; }

/* Picker */
.hbt-pred-picker {
  background: #fafaf7;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.hbt-pred-picker-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hbt-pred-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b66 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.hbt-pred-tab.is-active { color: #1a1a1a !important; border-bottom-color: #0e1924; }
.hbt-pred-picker-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hbt-pred-race-select-wrap { flex: 1 1 240px; min-width: 0; }
.hbt-pred-race-select { width: 100%; }
.hbt-pred-picker-help { font-size: 11px; color: #b5b5ad; margin: 8px 0 0; }

/* Result wrap */
.hbt-pred-result { margin-top: 4px; }
.hbt-pred-empty {
  text-align: center;
  padding: 28px 16px;
  background: #fafaf7;
  border-radius: 10px;
  color: #6b6b66;
  font-size: 14px;
}

/* Race header */
.hbt-pred-race-header {
  background: linear-gradient(135deg, #0e1924 0%, #1a2a3a 100%);
  color: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 0 0 14px;
}
.hbt-pred-race-header * { color: #fff; }
.hbt-pred-race-header-meta { font-size: 10px; letter-spacing: 1.5px; opacity: 0.65; }
.hbt-pred-race-header-title { font-size: 20px !important; font-weight: 500 !important; margin: 4px 0 10px !important; line-height: 1.25; }
.hbt-pred-class-pill {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 3px;
}
.hbt-pred-grade-pill { background: #d4b896; color: #0e1924 !important; }
.hbt-pred-race-header-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hbt-pred-race-header-pills .hbt-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
}
.hbt-pred-race-header-pills .hbt-pill-prize { background: #d4b896; color: #0e1924 !important; font-weight: 500; }

/* Top picks tiles */
.hbt-pred-top-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.hbt-tip-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 12px 14px;
}
.hbt-tip-card-prime { border-color: #1D9E75; background: linear-gradient(135deg, #f5faf8 0%, #fff 60%); }
.hbt-tip-card-value { border-color: #BA7517; background: linear-gradient(135deg, #fffaeb 0%, #fff 60%); }
.hbt-tip-card-dark  { border-color: #534AB7; background: linear-gradient(135deg, #f5f4ff 0%, #fff 60%); }
.hbt-tip-lbl { font-size: 10px; letter-spacing: 0.6px; font-weight: 500; color: #6b6b66; }
.hbt-tip-card-prime .hbt-tip-lbl { color: #085041; }
.hbt-tip-card-value .hbt-tip-lbl { color: #854F0B; }
.hbt-tip-card-dark  .hbt-tip-lbl { color: #2A2585; }
.hbt-tip-name { font-size: 16px; font-weight: 500; color: #1a1a1a; margin-top: 4px; line-height: 1.2; }
.hbt-tip-odds { font-size: 13px; font-variant-numeric: tabular-nums; color: #1a1a1a; margin-top: 4px; font-weight: 500; }
.hbt-tip-prob { font-size: 12px; color: #6b6b66; margin-top: 3px; }
.hbt-tip-prob strong { color: #1a1a1a; }
.hbt-tip-reason { font-size: 11px; color: #6b6b66; margin-top: 6px; line-height: 1.4; }

/* Verdict card (model verdict) */
.hbt-pred-verdict-card {
  background: #fffaeb;
  border-left: 3px solid #BA7517;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 0 0 14px;
}
.hbt-pred-verdict-card .hbt-verdict-h { font-size: 11px; letter-spacing: 1px; color: #854F0B; font-weight: 500; }
.hbt-pred-verdict-card .hbt-verdict-body {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: #2C2C2A;
  margin-top: 8px;
}
.hbt-pred-verdict-card .hbt-verdict-body strong { font-weight: 600; }
.hbt-pred-verdict-card .hbt-verdict-byline { font-size: 11px; color: #6b6b66; margin-top: 8px; font-style: normal; font-family: inherit; }

/* View toggle */
.hbt-pred-view-toggle {
  display: inline-flex;
  background: #f5f4ef;
  border-radius: 8px;
  padding: 3px;
  margin: 8px 0 12px;
}
.hbt-pred-view-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 0;
  color: #6b6b66;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.hbt-pred-view-btn.is-active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.hbt-pred-section-h { font-size: 14px; font-weight: 500; margin: 0 0 10px; color: #1a1a1a; letter-spacing: 0.3px; }

/* Field table */
.hbt-pred-table-wrap { overflow-x: auto; }
.hbt-pred-table-live { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 700px; }
.hbt-pred-table-live th {
  text-align: left;
  padding: 9px 10px;
  background: #0e1924;
  color: #fff;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hbt-pred-table-live th:first-child { border-top-left-radius: 6px; }
.hbt-pred-table-live th:last-child  { border-top-right-radius: 6px; }
.hbt-pred-table-live td {
  padding: 9px 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.hbt-pred-table-live tr:hover td { background: #fafaf7; cursor: pointer; }
.hbt-pred-table-note { font-size: 11px; color: #b5b5ad; margin: 8px 0 0; }

.hbt-form-string {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #f5f4ef;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.hbt-pred-headgear {
  display: inline-block;
  background: #FAEEDA;
  color: #854F0B !important;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: 1px;
  cursor: help;
}

/* Horse focus card */
.hbt-pred-horse-select-wrap { display: block; margin-bottom: 12px; max-width: 480px; }
.hbt-horse-detail {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 16px 18px;
}
.hbt-horse-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  margin-bottom: 14px;
}
.hbt-horse-silk { width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0; }
.hbt-horse-num-pp {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f5f4ef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hbt-horse-num-pp .hbt-pp-num { font-size: 16px; font-weight: 500; color: #1a1a1a; line-height: 1; }
.hbt-horse-num-pp .hbt-pp-post { font-size: 9px; color: #6b6b66; margin-top: 2px; }
.hbt-horse-detail-titleblock { flex: 1; min-width: 0; }
.hbt-horse-detail-titleblock h5 { font-size: 18px !important; font-weight: 500 !important; margin: 0 !important; color: #1a1a1a !important; line-height: 1.2; }
.hbt-horse-detail-num { font-size: 13px; color: #6b6b66; font-weight: 400; margin-left: 4px; }
.hbt-horse-detail-conn { font-size: 12px; color: #6b6b66; margin-top: 3px; }

.hbt-horse-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.hbt-horse-stat {
  background: #fafaf7;
  padding: 10px 12px;
  border-radius: 6px;
}
.hbt-horse-stat-lbl { font-size: 9px; letter-spacing: 0.5px; color: #6b6b66; text-transform: uppercase; font-weight: 500; }
.hbt-horse-stat-val { font-size: 15px; font-weight: 500; color: #1a1a1a; font-variant-numeric: tabular-nums; margin-top: 3px; }
.hbt-horse-stat-primary { color: #085041; font-size: 18px; }

.hbt-horse-spotlight {
  background: #fffaeb;
  border-left: 3px solid #BA7517;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.hbt-horse-spotlight-lbl { font-size: 10px; letter-spacing: 0.8px; color: #854F0B; font-weight: 500; }
.hbt-horse-spotlight p { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: #2C2C2A; margin: 6px 0 0; line-height: 1.55; }

.hbt-horse-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.hbt-horse-flag {
  background: #E1F5EE;
  color: #085041;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Error */
.hbt-tool-error {
  background: #FCEBEB !important;
  border-color: #f5b8b8 !important;
}
.hbt-tool-error p { color: #A32D2D; margin: 0; }
.hbt-tool-error code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; }

@media (max-width: 640px) {
  .hbt-pred-picker-row { flex-direction: column; }
  .hbt-pred-top-picks { grid-template-columns: 1fr; }
  .hbt-pred-race-header-title { font-size: 17px !important; }
  .hbt-horse-detail-grid { grid-template-columns: 1fr 1fr; }
  .hbt-horse-stat-primary { font-size: 16px; }
}

/* =============================================================
   CALCULATOR REGION TABS
   ============================================================= */
.hbt-calc-region-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  background: #f5f4ef;
  padding: 3px;
  border-radius: 8px;
}
.hbt-calc-region-tab {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 0;
  color: #6b6b66;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}
.hbt-calc-region-tab.is-active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.hbt-calc-region-tab:hover:not(.is-active) {
  background: rgba(255,255,255,0.5);
  color: #1a1a1a;
}
@media (max-width: 500px) {
  .hbt-calc-region-tab { font-size: 11px; padding: 7px 4px; }
}

/* =============================================================
   TRACK RACES WIDGET (for /uk/racetracks/[track]/ pages)
   ============================================================= */
.hbt-track-races { max-width: 880px; }
.hbt-track-meetings { display: flex; flex-direction: column; gap: 14px; }
.hbt-track-meeting {
  background: #fafaf7;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.hbt-track-meeting-today {
  border-color: #d4b896;
  box-shadow: 0 2px 8px rgba(212, 184, 150, 0.15);
}
.hbt-track-meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.hbt-track-meeting-today .hbt-track-meeting-header {
  background: linear-gradient(135deg, #fffaeb 0%, #fff 100%);
}
.hbt-track-meeting-date {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.2px;
}
.hbt-track-meeting-count {
  font-size: 11px;
  color: #6b6b66;
  font-weight: 500;
}
.hbt-track-meeting-today .hbt-track-meeting-count {
  color: #854F0B;
}
.hbt-track-races-list { display: flex; flex-direction: column; }
.hbt-track-race-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 0.5px solid rgba(0,0,0,0.05);
  text-decoration: none !important;
  color: #1a1a1a !important;
  transition: background 0.1s;
}
.hbt-track-race-row:first-child { border-top: 0; }
.hbt-track-race-row:hover { background: rgba(212, 184, 150, 0.08); }
.hbt-track-race-time {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
}
.hbt-track-race-name {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbt-track-race-meta { display: flex; gap: 4px; flex-shrink: 0; }
.hbt-track-race-pill {
  font-size: 10px;
  background: #f5f4ef;
  color: #6b6b66;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 500;
}
.hbt-track-race-cta {
  font-size: 11px;
  color: #854F0B;
  font-weight: 500;
  white-space: nowrap;
}
.hbt-track-empty {
  text-align: center;
  padding: 22px 16px;
  background: #fafaf7;
  border-radius: 10px;
  color: #6b6b66;
  font-size: 13px;
  line-height: 1.6;
}
.hbt-track-empty p { margin: 0 0 8px; }
.hbt-track-empty p:last-child { margin-bottom: 0; }
.hbt-track-empty a {
  color: #1d5fa5;
  text-decoration: underline;
}
.hbt-track-footer-cta {
  text-align: center;
  margin-top: 12px;
}
.hbt-track-cta-btn {
  display: inline-block;
  background: #0e1924;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s;
}
.hbt-track-cta-btn:hover { background: #1a2a3a; }

@media (max-width: 600px) {
  .hbt-track-race-row {
    grid-template-columns: 50px 1fr;
    grid-template-areas:
      "time name"
      ".    meta"
      ".    cta";
    row-gap: 4px;
  }
  .hbt-track-race-time { grid-area: time; }
  .hbt-track-race-name { grid-area: name; }
  .hbt-track-race-meta { grid-area: meta; flex-wrap: wrap; }
  .hbt-track-race-cta { grid-area: cta; font-size: 10px; }
}

/* =============================================================
   RACETRACK LANDING PAGE DESIGN SYSTEM
   Used by /uk/racetracks/[slug]/ pages and the parent hub.
   Components are prefixed .hbt-rt- to avoid theme collisions.
   ============================================================= */

/* CSS variables driven by track accent via inline style on root */
.hbt-rt {
  --rt-accent: #d4b896;          /* fallback gold; each page overrides via inline style */
  --rt-accent-dark: #854F0B;
  --rt-accent-bg: #fffaeb;
  --rt-navy: #0e1924;
  --rt-text: #1a1a1a;
  --rt-muted: #6b6b66;
  --rt-grey-bg: #f5f4ef;
  --rt-card-bg: #ffffff;
  --rt-border: rgba(0,0,0,0.08);
  --rt-radius: 10px;
  --rt-radius-lg: 14px;

  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rt-text);
  line-height: 1.65;
  max-width: 920px;
  margin: 0 auto;
}

/* Reset spacing in case theme is aggressive */
.hbt-rt h1, .hbt-rt h2, .hbt-rt h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--rt-text);
  letter-spacing: -0.2px;
  margin: 0;
}
.hbt-rt p { margin: 0 0 14px; }
.hbt-rt ul { margin: 0 0 14px; padding-left: 22px; }
.hbt-rt a { color: #1d5fa5; text-decoration: underline; text-underline-offset: 2px; }
.hbt-rt a:hover { color: #154677; }

/* ---------- HERO BLOCK (navy) ---------- */
.hbt-rt-hero {
  background: var(--rt-navy);
  background-image:
    radial-gradient(circle at 80% 30%, rgba(212,184,150,0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 90%, rgba(212,184,150,0.06) 0%, transparent 50%);
  color: #fff;
  border-radius: var(--rt-radius-lg);
  padding: 32px 28px;
  margin: 8px 0 24px;
  position: relative;
  overflow: hidden;
}
.hbt-rt-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: var(--rt-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hbt-rt-hero h1, .hbt-rt-hero h2.hbt-rt-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
  max-width: 600px;
  letter-spacing: -0.2px;
}
.hbt-rt-hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
  max-width: 560px;
}
.hbt-rt-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.hbt-rt-hero-badge {
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.hbt-rt-hero-badge-accent {
  background: rgba(212,184,150,0.20);
  color: var(--rt-accent);
}
.hbt-rt-hero-illustration {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 280px;
  opacity: 0.18;
  pointer-events: none;
}
@media (max-width: 600px) {
  .hbt-rt-hero { padding: 24px 20px; }
  .hbt-rt-hero h1, .hbt-rt-hero h2.hbt-rt-hero-title { font-size: 28px; }
  .hbt-rt-hero-illustration { width: 180px; right: -30px; opacity: 0.12; }
}

/* ---------- QUICK FACTS GRID ---------- */
.hbt-rt-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 26px;
}
.hbt-rt-fact {
  background: var(--rt-grey-bg);
  padding: 14px 16px;
  border-radius: var(--rt-radius);
}
.hbt-rt-fact-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rt-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hbt-rt-fact-lbl svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.hbt-rt-fact-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--rt-text);
  line-height: 1.3;
}
.hbt-rt-fact-meta {
  font-size: 12px;
  color: var(--rt-muted);
  margin-top: 2px;
}

/* ---------- SECTION HEADINGS ---------- */
.hbt-rt h2 {
  font-size: 24px;
  margin: 32px 0 14px;
  font-style: italic;
}
.hbt-rt h3 {
  font-size: 18px;
  margin: 22px 0 10px;
  font-style: italic;
}
.hbt-rt h2:first-child, .hbt-rt h3:first-child { margin-top: 0; }

/* ---------- FEATURED MEETING CALLOUT ---------- */
.hbt-rt-feature {
  background: var(--rt-accent-bg);
  border-left: 3px solid var(--rt-accent-dark);
  border-radius: 0 var(--rt-radius) var(--rt-radius) 0;
  padding: 18px 22px;
  margin: 18px 0 24px;
}
.hbt-rt-feature-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--rt-accent-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hbt-rt-feature-eyebrow svg {
  width: 12px;
  height: 12px;
}
.hbt-rt-feature h3 {
  font-style: normal;
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--rt-text);
}
.hbt-rt-feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rt-text); }

/* ---------- KEY TRENDS GRID ---------- */
.hbt-rt-trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 22px;
}
.hbt-rt-trend {
  background: var(--rt-card-bg);
  border: 0.5px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 16px;
}
.hbt-rt-trend-num {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--rt-accent-dark);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.hbt-rt-trend-desc {
  font-size: 12.5px;
  color: var(--rt-muted);
  line-height: 1.45;
}

/* ---------- BOOKMAKER CARDS ---------- */
.hbt-rt-books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
  margin: 14px 0 14px;
}
.hbt-rt-book {
  background: var(--rt-card-bg);
  border: 0.5px solid var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.hbt-rt-book-pick {
  border-color: var(--rt-accent-dark);
  box-shadow: 0 0 0 1px var(--rt-accent-dark);
}
.hbt-rt-book-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.hbt-rt-book-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--rt-text);
  text-decoration: none;
}
.hbt-rt-book-badge {
  background: #e1f5ee;
  color: #085041;
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.hbt-rt-book-offer {
  font-size: 13.5px;
  color: var(--rt-text);
  margin: 0 0 6px;
  font-weight: 500;
}
.hbt-rt-book-meta {
  font-size: 11.5px;
  color: var(--rt-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.hbt-rt-book-meta code {
  background: var(--rt-grey-bg);
  padding: 1.5px 6px;
  border-radius: 3px;
  font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  color: var(--rt-accent-dark);
  font-weight: 600;
}
.hbt-rt-book-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #1d5fa5;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
}
.hbt-rt-book-cta:hover { color: #154677; text-decoration: underline; }
.hbt-rt-book-cta svg { width: 14px; height: 14px; }

/* ---------- COURSE INSIGHTS ---------- */
.hbt-rt-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}
.hbt-rt-insight {
  background: var(--rt-grey-bg);
  padding: 14px 16px;
  border-radius: var(--rt-radius);
}
.hbt-rt-insight-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rt-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hbt-rt-insight-lbl svg { width: 14px; height: 14px; }
.hbt-rt-insight p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--rt-text); }

/* ---------- FAQ ACCORDION ---------- */
.hbt-rt-faq {
  margin: 14px 0 22px;
}
.hbt-rt-faq-item {
  border-top: 0.5px solid var(--rt-border);
  padding: 14px 0;
}
.hbt-rt-faq-item:last-child { border-bottom: 0.5px solid var(--rt-border); }
.hbt-rt-faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--rt-text);
  margin: 0 0 6px;
  cursor: default;
}
.hbt-rt-faq-a {
  font-size: 13.5px;
  color: var(--rt-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- LINK ROW (related pages) ---------- */
.hbt-rt-related {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--rt-grey-bg);
  border-radius: var(--rt-radius);
  font-size: 13px;
}
.hbt-rt-related strong { color: var(--rt-text); margin-right: 6px; }
.hbt-rt-related a { margin-right: 12px; }

/* ---------- DISCLAIMER ---------- */
.hbt-rt-disclaimer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 0.5px solid var(--rt-border);
  font-size: 12px;
  color: var(--rt-muted);
  line-height: 1.55;
  font-style: italic;
}

/* ---------- PARENT HUB GRID (the /uk/racetracks/ page) ---------- */
.hbt-rt-hub-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  margin: 22px 0 !important;
  max-width: 100% !important;
}
/* Kill wpautop empty paragraphs that WordPress inserts inside the grid */
.hbt-rt-hub-grid > p:empty,
.hbt-rt-hub-grid > br {
  display: none !important;
}
.hbt-rt .hbt-rt-hub-card,
.hbt-rt a.hbt-rt-hub-card,
a.hbt-rt-hub-card:link,
a.hbt-rt-hub-card:visited,
a.hbt-rt-hub-card:hover,
a.hbt-rt-hub-card:active {
  background: var(--rt-card-bg) !important;
  background-color: var(--rt-card-bg) !important;
  border: 0.5px solid var(--rt-border) !important;
  border-radius: var(--rt-radius-lg) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: var(--rt-text) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  background-image: none !important;
  box-shadow: none;
}
a.hbt-rt-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}
/* Kill theme underlines and link highlights on EVERY element inside hub cards */
.hbt-rt-hub-card,
.hbt-rt-hub-card *,
.hbt-rt-hub-card *::before,
.hbt-rt-hub-card *::after {
  text-decoration: none !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* Card banner (now <span>, force block) */
.hbt-rt-hub-card .hbt-rt-hub-card-banner {
  display: block !important;
  background-color: var(--rt-navy);
  padding: 22px 18px 16px !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
}
.hbt-rt-hub-card .hbt-rt-hub-card-banner svg {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 130px;
  opacity: 0.22;
  display: block;
}
.hbt-rt-hub-card .hbt-rt-hub-card-eyebrow {
  display: block !important;
  font-size: 9.5px !important;
  letter-spacing: 1.5px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  position: relative;
  z-index: 1;
  color: #fff !important;
  text-transform: uppercase !important;
  font-style: normal !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-name {
  display: block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-style: italic !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
  color: #fff !important;
  font-weight: 500 !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-body {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 18px 18px !important;
  flex: 1 !important;
  background-color: var(--rt-card-bg) !important;
  color: var(--rt-text) !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-desc {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--rt-muted) !important;
  margin: 0 0 12px !important;
  flex: 1 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-meta {
  display: flex !important;
  gap: 10px !important;
  font-size: 11px !important;
  color: var(--rt-muted) !important;
  margin-bottom: 12px !important;
  font-style: normal !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-meta > span {
  display: inline !important;
  color: var(--rt-muted) !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 13px !important;
  color: #1d5fa5 !important;
  font-weight: 500 !important;
  font-style: normal !important;
}
.hbt-rt-hub-card .hbt-rt-hub-card-cta svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

/* ---------- PRINT-SAFE & TRANSPARENT HEADER ---------- */
/* Make sure pages have top padding for fixed/transparent themes */
.hbt-rt { padding-top: 10px; }


/* =============================================================
   AMWAGER SINGLE-BOOKMAKER BANNER (US racetrack pages)
   Always navy + gold, regardless of the per-track page accent.
   ============================================================= */
.hbt-rt-amwager {
  background: linear-gradient(135deg, #0b1d3a 0%, #1a2a44 100%);
  border-radius: var(--rt-radius-lg);
  padding: 24px 28px;
  margin: 18px 0 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.hbt-rt-amwager::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(circle at right, rgba(203,161,53,0.16), transparent 70%);
  pointer-events: none;
}
.hbt-rt-amwager-logo {
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hbt-rt-amwager-logo img {
  display: block;
  max-width: 110px;
  height: auto;
}
.hbt-rt-amwager-content {
  flex: 1;
  position: relative;
  z-index: 1;
}
.hbt-rt-amwager-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #cba135 !important;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.hbt-rt-amwager-offer {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #fff !important;
  font-weight: 500;
}
.hbt-rt-amwager-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.78) !important;
  margin: 0 0 12px;
}
.hbt-rt-amwager-meta code {
  background: rgba(203,161,53,0.18) !important;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11.5px;
  color: #cba135 !important;
  font-weight: 700;
  margin: 0 2px;
  border: 1px solid rgba(203,161,53,0.4);
}
.hbt-rt-amwager-cta,
a.hbt-rt-amwager-cta,
a.hbt-rt-amwager-cta:link,
a.hbt-rt-amwager-cta:visited {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #cba135 !important;
  background-image: none !important;
  color: #0b1d3a !important;
  padding: 11px 22px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: transform 0.1s, background 0.15s;
  border: 0 !important;
  box-shadow: none !important;
}
.hbt-rt-amwager-cta:hover,
a.hbt-rt-amwager-cta:hover {
  background: #e8c97a !important;
  transform: translateY(-1px);
  text-decoration: none !important;
  color: #0b1d3a !important;
}
.hbt-rt-amwager-cta svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hbt-rt-amwager {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    gap: 14px;
  }
  .hbt-rt-amwager-offer { font-size: 19px; }
}
