/* At the Races host controls: money pools, talking points and the night hand-off.
   Shared pieces (stats, leaders, highlight, action bar) live in 11_host_shell.css. */

:root {
  --gtf-hr-orange: var(--gtf-orange);
  --gtf-hr-yellow: var(--gtf-yellow);
  --gtf-hr-teal: var(--gtf-teal);
  --gtf-hr-success: var(--gtf-success);
  --gtf-hr-purple: oklch(0.74 0.12 300);
  --gtf-hr-danger: oklch(0.72 0.19 20);
}

/* Where the money is */
.gtf-hr-pools {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gtf-hr-pool {
  padding: 14px 0;
  border-top: 2px solid var(--gtf-surface-2);
}

.gtf-hr-pool__top,
.gtf-hr-pool__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gtf-hr-pool__bottom {
  margin-top: 8px;
}

.gtf-hr-pool__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c);
}

.gtf-hr-pool__name {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.gtf-hr-pool__odds {
  font-size: 15px;
  color: var(--gtf-text-2);
}

.gtf-hr-pool__amount {
  min-width: 56px;
  font-size: 18px;
  text-align: right;
}

.gtf-hr-pool__track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--gtf-surface-2);
  overflow: hidden;
}

.gtf-hr-pool__fill {
  width: calc(var(--pct) * 1%);
  height: 100%;
  background: var(--c);
  transition: width 0.4s;
}

.gtf-hr-pool__backers {
  width: 84px;
  font-size: 14px;
  color: var(--gtf-text-2);
  text-align: right;
}

/* Still deciding: the section_head already has the divider, so drop the note rule */
.gtf-hr-waiting .gtf-hc__note {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  line-height: 1.5;
}

.gtf-hr-lede {
  max-width: 28em;
}

/* Results stage */
.gtf-hr-won {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}

.gtf-hr-won__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--gtf-yellow);
}

.gtf-hr-won__text {
  font-size: 20px;
  font-weight: 800;
}

.gtf-hr-intro {
  margin-bottom: 24px;
}

.gtf-hr-point {
  padding: 20px 0;
  border-top: 2px solid var(--gtf-surface-2);
  --tone: var(--gtf-yellow);
}

.gtf-hr-point--success { --tone: var(--gtf-hr-success); }
.gtf-hr-point--danger { --tone: var(--gtf-hr-danger); }
.gtf-hr-point--teal { --tone: var(--gtf-hr-teal); }
.gtf-hr-point--orange { --tone: var(--gtf-hr-orange); }

.gtf-hr-point__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gtf-hr-point__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gtf-text-2);
}

.gtf-hr-point__figure {
  font-size: 22px;
  color: var(--tone);
}

.gtf-hr-point__head {
  margin: 4px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gtf-hr-point__detail {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gtf-text-2);
}

.gtf-hr-point__say {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gtf-surface-4);
  font-size: 17px;
  line-height: 1.45;
}

/* After: what's next in the night */
.gtf-hr-next {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 2px solid var(--gtf-surface-2);
}

.gtf-hr-next__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gtf-text-2);
}

.gtf-hr-next__name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gtf-hr-lineup {
  padding-top: 16px;
  border-top: 2px solid var(--gtf-surface-2);
}

.gtf-hr-lineup--stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
}

.gtf-hr-link {
  font-size: 18px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .gtf-hr-pool__fill { transition: none; }
}

/* Breathing room under the yellow highlight card */
.gtf-hc-highlight + .gtf-hr-lede { margin-top: 24px; }
.gtf-hc-highlight + .gtf-hc-leaders { margin-top: 12px; }
