/* BetKalshi. Colour encodes the source (Kalshi cobalt, bet365 ochre). The kind of value
   (live or recorded) is always written out in a chip, never colour alone. */

:root {
  --paper: #f2f4f5;
  --surface: #ffffff;
  --surface-2: #e7ebed;
  --ink: #13212e;
  --ink-2: #3c4b58;
  --muted: #5b6975;
  --rule: #c5ced4;
  --rule-soft: #dbe1e4;
  --kalshi: #2346d8;
  --kalshi-wash: #dde4fb;
  --bet365: #a8650b;
  --bet365-wash: #f2e3cb;
  --alert: #b3261e;
  --alert-wash: #f9e3e0;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a22;
    --surface: #18222c;
    --surface-2: #1f2b36;
    --ink: #e6ebef;
    --ink-2: #bcc6ce;
    --muted: #8e9ba7;
    --rule: #34424f;
    --rule-soft: #26323d;
    --kalshi: #6f8df5;
    --kalshi-wash: #1f2c55;
    --bet365: #c0841f;
    --bet365-wash: #3a2b14;
    --alert: #f08a80;
    --alert-wash: #3d1f1c;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-stretch: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--kalshi);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

.masthead,
.view,
.footer {
  max-width: 74rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}

/* ------------------------------------------------------------------ masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-weight: 850;
  font-stretch: 125%;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.views {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -0.6rem;
}

.views a {
  padding: 0.4rem 0.6rem;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.views a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.views a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.view {
  padding-bottom: 4rem;
  outline: none;
}

/* ------------------------------------------------------------------ board head */

.board-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 3rem;
  padding: 2.75rem 0 1.75rem;
}

.board-title {
  margin: 0;
  font-weight: 850;
  font-stretch: 125%;
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.board-title--archive,
.board-title--about {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 0.9;
}

.board-intro {
  max-width: 62ch;
  display: grid;
  gap: 0.9rem;
}

.lede {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.freshness {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.freshness--stale {
  padding: 0.55rem 0.75rem;
  background: var(--alert-wash);
  border-left: 3px solid var(--alert);
  border-radius: 0 6px 6px 0;
}

/* ------------------------------------------------------------------ chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.1rem 0.55rem 0.12rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  font-stretch: 92%;
  white-space: nowrap;
  line-height: 1.5;
}
.chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
}
.chip--live::before {
  background: var(--kalshi);
}
.chip--delayed::before {
  background: transparent;
  border: 2px solid var(--kalshi);
}
.chip--recorded::before {
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--bet365) 0 2px, transparent 2px 4px);
  border: 1px solid var(--bet365);
}
.chip--none {
  border-style: dashed;
  color: var(--muted);
}
.chip--none::before {
  display: none;
}

/* ------------------------------------------------------------------ toolbar */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-stretch: 94%;
}
.field--search {
  flex: 1 1 16rem;
  max-width: 22rem;
}

input[type="search"],
select {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 450;
  font-stretch: 100%;
  width: 100%;
}
select {
  padding-right: 2rem;
}
input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.button {
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}
.button--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.button:hover {
  background: var(--ink);
  color: var(--paper);
}
.button:disabled {
  opacity: 0.5;
  cursor: progress;
}

.board-count {
  margin: 0 0 0.6rem auto;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toolbar .board-count:last-child {
  margin-left: auto;
}

.notices:empty {
  display: none;
}
.notice {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.8rem;
  border-left: 3px solid var(--rule);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.loading {
  color: var(--muted);
  padding: 2rem 0;
}

.empty {
  padding: 2.5rem 0;
  max-width: 60ch;
}
.empty p {
  margin: 0 0 1rem;
}
.empty--error {
  border-left: 3px solid var(--alert);
  padding-left: 1rem;
}

/* ------------------------------------------------------------------ day groups */

.day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 1.75rem 0 0;
  padding: 0.6rem 0 0.45rem;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-size: 1rem;
  font-weight: 750;
  font-stretch: 108%;
}

/* ------------------------------------------------------------------ live games */

.game {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.35rem 0 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.game-when {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding-top: 0.2rem;
}
.game-when time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tba,
.game-status {
  font-size: 0.82rem;
  color: var(--muted);
  font-stretch: 94%;
}

.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.9rem;
}

.matchup {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 750;
  font-stretch: 114%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.outcomes {
  display: grid;
  gap: 0.9rem;
}

.outcome {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) 6.75rem minmax(14rem, 1.7fr);
  grid-template-areas:
    "q price rail"
    "q price note";
  align-items: center;
  column-gap: 1.25rem;
}
.outcome .question {
  grid-area: q;
}
.outcome .price {
  grid-area: price;
}
.outcome .rail {
  grid-area: rail;
  align-self: end;
}
.outcome .quote-note {
  grid-area: note;
  align-self: start;
}

.question {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.team {
  font-weight: 700;
  font-stretch: 110%;
}

.price {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  justify-content: start;
  font-variant-numeric: tabular-nums;
}
.price .num {
  font-size: 2rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price .unit {
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: 0.08em;
}
.price .basis {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  font-weight: 600;
  font-stretch: 90%;
  color: var(--muted);
  margin-top: 0.15rem;
}
.price--none.price--withheld .basis {
  color: var(--muted);
  font-style: italic;
}
.price--none .basis {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-2);
  margin: 0;
}

.quote-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.moved .num {
  animation: moved 2.6s ease-out;
  border-radius: 4px;
}
@keyframes moved {
  from {
    background: var(--kalshi-wash);
    box-shadow: 0 0 0 4px var(--kalshi-wash);
  }
  to {
    background: transparent;
    box-shadow: 0 0 0 4px transparent;
  }
}

.game-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-stretch: 94%;
}
.game-stats b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-stretch: 100%;
}

.venue-slot {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.venue-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--ink-2);
}
.venue-key::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  border: 1.5px dashed var(--bet365);
}

/* ------------------------------------------------------------------ the price rail */

.rail {
  position: relative;
  height: 24px;
  margin: 0 1.9rem 0 1.1rem;
}
.rail::before,
.rail::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rail::before {
  content: "0";
  right: calc(100% + 0.45rem);
}
.rail::after {
  content: "100";
  left: calc(100% + 0.45rem);
}

.rail-track {
  position: absolute;
  inset: 11px 0 auto;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
}
.rail-scale i {
  position: absolute;
  top: 7px;
  height: 10px;
  width: 1px;
  background: var(--rule);
}
.rail-scale i:nth-child(2) {
  top: 4px;
  height: 16px;
}

.rail-band {
  position: absolute;
  top: 6px;
  height: 12px;
  border: 1.5px solid var(--kalshi);
  background: var(--kalshi-wash);
  border-radius: 3px;
}
.rail-band--recorded {
  background: transparent;
  border-style: dashed;
}

.rail-mark {
  position: absolute;
  top: 1px;
  height: 22px;
  width: 4px;
  margin-left: -2px;
  background: var(--kalshi);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--paper);
}
.rail-mark--bet365 {
  background: var(--bet365);
}

.rail-side {
  position: absolute;
  top: 6px;
  height: 12px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--kalshi);
  opacity: 0.55;
  border-radius: 2px;
}

.rail-last {
  position: absolute;
  bottom: -5px;
  margin-left: -4px;
  border: 4px solid transparent;
  border-bottom: 5px solid var(--ink-2);
}

/* ------------------------------------------------------------------ details */

details.more {
  margin-top: 0.75rem;
}
details.more > summary,
.table-view > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-2);
  padding: 0.2rem 0;
}
details.more > summary::-webkit-details-marker,
.table-view > summary::-webkit-details-marker {
  display: none;
}
details.more > summary::before,
.table-view > summary::before,
.mkt-toggle .question::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: none;
}
details[open] > summary::before,
.mkt-toggle[aria-expanded="true"] .question::before {
  transform: rotate(45deg);
}
details.more > summary:hover,
.table-view > summary:hover {
  color: var(--ink);
}

.details-body {
  padding: 0.75rem 0 0.25rem;
}

.quote-table,
.tick-table {
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  width: 100%;
  max-width: 44rem;
}
.quote-table th,
.quote-table td,
.tick-table th,
.tick-table td {
  text-align: left;
  padding: 0.35rem 1rem 0.35rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.quote-table thead th,
.tick-table thead th {
  font-weight: 700;
  border-bottom-color: var(--rule);
}
.quote-table tbody th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ticker {
  display: block;
  word-break: break-all;
}
.data-link {
  font-size: 0.78rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

.fine {
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 70ch;
}

.facts {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
  max-width: 52rem;
  font-size: 0.88rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
}
.facts dt {
  font-weight: 650;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rules-head {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.rules {
  margin: 0 0 0.5rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.86rem;
  max-width: 72ch;
}
.rules p {
  margin: 0.35rem 0;
}

.source-note {
  margin-top: 2.5rem;
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ archive */

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-game {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  padding: 0.8rem 0.5rem;
  margin-inline: -0.5rem;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  border-radius: 4px;
}
.archive-game:hover {
  background: var(--surface-2);
}
.archive-when {
  display: grid;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.archive-when span {
  color: var(--muted);
  font-size: 0.8rem;
}
.archive-title {
  font-weight: 650;
  font-stretch: 108%;
  font-size: 1.05rem;
}
.archive-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.crumbs {
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.game-head {
  padding: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.game-title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 850;
  font-stretch: 120%;
  letter-spacing: -0.025em;
  line-height: 0.95;
  max-width: 22ch;
}
.game-sub {
  margin: 0;
  color: var(--ink-2);
}

.toolbar--game {
  align-items: end;
}

.segments {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.segments a {
  padding: 0.42rem 0.8rem;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.segments a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.segments a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.group-head {
  margin: 1.75rem 0 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  font-stretch: 110%;
}

.mkt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mkt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 19rem);
  column-gap: 1.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.mkt-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mkt-toggle .question {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.mkt-toggle .question::before {
  position: relative;
  top: -0.1rem;
}
.mkt-toggle:hover .question {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.mkt-toggle .price .num {
  font-size: 1.45rem;
}
.mkt .quote-note {
  grid-column: 1 / -1;
  padding-left: 1rem;
}
.mkt-detail {
  grid-column: 1 / -1;
  padding: 0.75rem 0 0.5rem 1rem;
}
.mkt--open {
  background: linear-gradient(var(--surface), var(--surface)) no-repeat 0 0 / 100% 100%;
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
  border-radius: 6px;
}
.button--more {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------------ chart */

.history {
  margin: 0.25rem 0 0.5rem;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.key::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 1px;
}
.key--bet365::before {
  background: var(--bet365);
}
.key--kalshi::before {
  width: 2px;
  height: 12px;
  background: var(--kalshi);
}

.chart {
  position: relative;
  max-width: 52rem;
}
.chart svg {
  display: block;
  overflow: visible;
}
.chart text {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chart .grid {
  stroke: var(--rule-soft);
  stroke-width: 1;
}
.chart .axis {
  stroke: var(--rule);
}
.chart .line {
  fill: none;
  stroke: var(--bet365);
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart .end-dot {
  fill: var(--bet365);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart .tipoff {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.chart .tipoff-label {
  fill: var(--ink-2);
}
.chart .cmp line {
  stroke: var(--kalshi);
  stroke-width: 2;
}
.chart .crosshair {
  stroke: var(--ink-2);
  stroke-width: 1;
}
.chart .hover-dot {
  fill: var(--surface);
  stroke: var(--bet365);
  stroke-width: 2;
}
.chart-tip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0.05rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.chart-tip strong {
  font-size: 0.95rem;
}

.table-view {
  margin: 0.5rem 0;
}
.table-view .tick-table {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------ propositions (contract v2) */

.prop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem minmax(15rem, 1.25fr);
  grid-template-areas:
    "q head lanes"
    "detail detail detail"
    "more more more";
  column-gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--rule-soft);
}
.prop-q {
  grid-area: q;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}
.prop-q .question {
  font-size: 1.02rem;
  font-weight: 650;
}
.prop-headline {
  grid-area: head;
}
.prop .lanes {
  grid-area: lanes;
}
.hl-detail {
  grid-area: detail;
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: 70ch;
}
.prop-more {
  grid-area: more;
}

.hl-value {
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hl-value .num {
  font-size: 1.7rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hl-value .unit {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0.06em;
}
.hl-value--none {
  font-size: 1.05rem;
  font-weight: 750;
  font-stretch: 108%;
  color: var(--ink-2);
}
.hl-label {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  font-stretch: 92%;
  color: var(--muted);
  line-height: 1.3;
}
.hl-label--alert {
  color: var(--alert);
}
.hl-label--alert::before {
  content: "≠ ";
  font-weight: 800;
}
.prop--disagree .prop-headline {
  border-left: 3px solid var(--alert);
  padding-left: 0.6rem;
}
.prop--blend .hl-value .num {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--ink);
}

.grade {
  display: inline-block;
  padding: 0 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 92%;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.55;
}
.grade--A {
  border-color: var(--ink);
  color: var(--ink);
}
.grade--C {
  border-style: dashed;
  color: var(--muted);
}

/* two-lane rail: both venues on one 0–100¢ scale */
.lanes {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.2rem;
  align-items: center;
}
.lane-names {
  display: grid;
  grid-template-rows: 14px 14px;
  row-gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 14px;
  text-align: right;
}
.lanes-plot {
  position: relative;
  display: grid;
  grid-template-rows: 14px 14px;
  row-gap: 5px;
  background:
    linear-gradient(var(--rule-soft), var(--rule-soft)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--rule-soft), var(--rule-soft)) 75% 0 / 1px 100% no-repeat;
}
.lane {
  position: relative;
}
.lane-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--rule);
}
.band {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
}
.band--raw {
  border: 1.5px solid var(--bet365);
  background: var(--bet365-wash);
}
.band--fair {
  top: 4px;
  bottom: 4px;
  background: var(--bet365);
  box-shadow: 0 0 0 1px var(--paper);
}
.band--kalshi {
  border: 1.5px solid var(--kalshi);
  background: var(--kalshi-wash);
}
.band--indicative {
  background: repeating-linear-gradient(135deg, var(--kalshi) 0 1.5px, var(--kalshi-wash) 1.5px 4.5px);
}
.tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 1px;
}
.tick--ask {
  background: var(--bet365);
}
.tick--kalshi {
  background: var(--kalshi);
}
.lane-note {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 0.35rem;
  background: var(--paper);
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
}
.bracket {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  margin-left: -2px;
  padding-right: 4px;
  box-sizing: content-box;
}
.gap {
  position: absolute;
  top: calc(50% - 1px);
  border-top: 2px dotted var(--alert);
}
.lane-scale--zoomed {
  font-weight: 650;
  color: var(--ink-2);
}
.lane-scale {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* venue quote table */
.venues {
  width: 100%;
  max-width: 52rem;
  margin-top: 0.6rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.venues th,
.venues td {
  text-align: left;
  vertical-align: top;
  padding: 0.4rem 1rem 0.4rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.venues thead th {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
  border-bottom-color: var(--rule);
}
.venues tbody th {
  font-weight: 700;
  white-space: nowrap;
}
.venues tbody th::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.45rem;
  border-radius: 2px;
  vertical-align: 0.02rem;
}
.venue--bet365 th::before {
  background: var(--bet365);
}
.venue--kalshi th::before {
  background: var(--kalshi);
}
.sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.explain h4 {
  margin: 1.1rem 0 0.3rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.explain p,
.explain li {
  font-size: 0.86rem;
  max-width: 72ch;
}
.explain p {
  margin: 0.3rem 0;
}
.reasons {
  margin: 0.3rem 0;
  padding-left: 1.1rem;
}

.prop-recorded {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.prop--old .prop-headline,
.prop--old .lanes {
  opacity: 0.5;
}
.prop-recorded--old {
  font-style: italic;
}
.grade--inplay {
  border-color: var(--alert);
  color: var(--alert);
}
.facts--rules dd p {
  margin: 0 0 0.35rem;
}

/* ladders */
.ladder {
  margin-top: 0.25rem;
}
.ladder-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.prop--compact {
  grid-template-columns: 7rem 8.5rem minmax(0, 1fr);
  padding: 0.55rem 0 0.45rem;
}
.prop--compact .question {
  font-size: 0.95rem;
}
.prop--compact .hl-value .num {
  font-size: 1.15rem;
}
.prop--compact .hl-value--none {
  font-size: 0.9rem;
}
.prop--compact .hl-label {
  font-size: 0.7rem;
}
.prop--compact .grade {
  font-size: 0.66rem;
}
.prop--compact .prop-more {
  margin-top: 0.35rem;
}
.prop--compact .prop-more > summary {
  font-size: 0.78rem;
}

/* replay */
.replay {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.replay-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}
.replay-at {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.after-tip {
  font-weight: 750;
}
.replay-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-button {
  height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.chip-button:hover {
  border-color: var(--ink);
}
.chip-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.scrub {
  margin: 0.8rem 0 0.4rem;
}
.scrub input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--ink);
}
.scrub-axis {
  position: relative;
  height: 1.4rem;
  margin: 0.15rem 8px 0;
}
.scrub-axis i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 6px;
  background: var(--muted);
  opacity: 0.55;
}
.scrub-axis b {
  position: absolute;
  top: -1.55rem;
  height: 2.2rem;
  border-left: 2px dashed var(--ink-2);
  pointer-events: none;
}
.scrub-axis b span {
  position: absolute;
  top: 1.65rem;
  left: 0.3rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ about */

.prose {
  max-width: 66ch;
}
.prose h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 750;
  font-stretch: 110%;
}
.prose li {
  margin-bottom: 0.5rem;
}
.kinds {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}
.kinds > div {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
}
.kinds dd {
  margin: 0;
}

.funnel {
  margin: 1rem 0 0.5rem;
}
.funnel-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.funnel-step {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-areas:
    "count label"
    "count bar"
    "count note";
  column-gap: 1rem;
  align-items: baseline;
}
.funnel-count {
  grid-area: count;
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.1;
}
.funnel-step--zero .funnel-count {
  color: var(--alert);
}
.funnel-label {
  grid-area: label;
  font-weight: 600;
}
.funnel-bar {
  grid-area: bar;
  height: 6px;
  background: var(--rule-soft);
  border-radius: 3px;
  overflow: hidden;
}
.funnel-bar i {
  display: block;
  height: 100%;
  background: var(--bet365);
  border-radius: 3px;
}
.funnel-note {
  grid-area: note;
  font-size: 0.82rem;
  color: var(--muted);
}
.funnel-gates {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.funnel-gates li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.gate-status {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.gate--passed .gate-status::before {
  content: "✓ ";
}
.gate--failed .gate-status {
  color: var(--alert);
}
.gate--failed .gate-status::before {
  content: "✕ ";
}
.gate--pending .gate-status {
  color: var(--muted);
}
.gate--pending .gate-status::before {
  content: "○ ";
}

/* ------------------------------------------------------------------ footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer p {
  margin: 0;
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 960px) {
  .game {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .views a {
    padding-inline: 0.45rem;
  }
  .board-head {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .game {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
  .game-when {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding-top: 0;
  }
  .outcome {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "q price"
      "rail rail"
      "note note";
    row-gap: 0.2rem;
  }
  .outcome .price {
    justify-items: end;
    text-align: right;
  }
  .outcome .rail {
    margin-top: 0.3rem;
  }
  .board-count {
    margin-left: 0;
  }
  .toolbar .button {
    margin-left: auto;
  }
  .field--search {
    max-width: none;
  }
  .archive-game {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .archive-when {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
  }
  .mkt {
    grid-template-columns: minmax(0, 1fr);
  }
  .mkt .rail {
    margin-top: 0.35rem;
  }
  .mkt .quote-note,
  .mkt-detail {
    padding-left: 0;
  }
  .prop {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "q"
      "head"
      "lanes"
      "detail"
      "more";
    row-gap: 0.45rem;
  }
  .prop--compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-areas:
      "q head"
      "lanes lanes"
      "detail detail"
      "more more";
    row-gap: 0.35rem;
  }
  .prop--compact .prop-headline {
    text-align: right;
  }
  .prop-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.75rem;
  }
  .prop--compact .prop-headline {
    display: block;
  }
  .prop--disagree .prop-headline {
    border-left: 0;
    padding-left: 0;
  }
  .venues thead {
    display: none;
  }
  .venues tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .venues th,
  .venues td {
    border: 0;
    padding: 0;
  }
  .venues tbody th {
    grid-column: 1 / -1;
  }
  .facts > div,
  .kinds > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .quote-table,
  .tick-table {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .rail-mark,
  .rail-band,
  .rail-side {
    forced-color-adjust: none;
    background: CanvasText;
    border-color: CanvasText;
  }
}
