/*
 * The odds board: [dknsc_upcoming_events_adv] (includes/tb_odds_by_league.php) on the
 * Moneyline, Total & Spread page. Plain CSS, not Tailwind, so it needs no theme rebuild;
 * uses the theme's fonts and follows its .darkmode.
 *
 * A two-up board on wide screens, one-up on phones. A card is a DraftKings-app grid
 * (team, spread, total, money) with a movement strip at its foot (NFL).
 */
.tbo {
	--tbo-green: #3f8a0c;
	--tbo-brand: #61b510;
	--tbo-orange: #e47d3a;
	--tbo-card: #ffffff;
	--tbo-line: #e1e1de;
	--tbo-soft: #f5f5f3;
	--tbo-odd: #f3f4f1;
	--tbo-odd-h: #e8f3dc;
	--tbo-ink: #161616;
	--tbo-text: #3d3d3d;
	--tbo-muted: #6b6b68;
	--tbo-hl: #f7faf3;
	--tbo-hl-line: #dbe9cc;
	color: var(--tbo-text);
	font-family: var(--font-main, "Montserrat", sans-serif);
	font-size: 15px;
	line-height: 1.5;
}
.darkmode .tbo {
	--tbo-green: #7ccd3b;
	--tbo-card: #1a1a1a;
	--tbo-line: #2e2e2e;
	--tbo-soft: #242424;
	--tbo-odd: #242424;
	--tbo-odd-h: #24321a;
	--tbo-ink: #f6f6f6;
	--tbo-text: #dcdcdc;
	--tbo-muted: #a3a3a3;
	--tbo-hl: #18200f;
	--tbo-hl-line: #2d3d1f;
}
.tbo a { color: inherit; text-decoration: none; }
.tbo :focus-visible { outline: 2px solid var(--tbo-orange); outline-offset: 2px; }
.tbo .tbo-lede { max-width: 68ch; margin: 0 0 14px; color: var(--tbo-text); font-size: 15px; }

/* League pills: one row that scrolls sideways, sticking under the top as you scroll. */
.tbo-leagues { position: sticky; top: 0; z-index: 5; margin: 0 0 6px; padding: 8px 0; background: var(--color-bg-light, #f1f1f1); border-bottom: 1px solid var(--tbo-line); }
.darkmode .tbo-leagues { background: var(--color-bg-dark, #111111); }
.tbo-pills { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tbo-pills::-webkit-scrollbar { display: none; }
.tbo .tbo-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 6px; color: var(--tbo-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tbo .tbo-pill:hover { background: var(--tbo-soft); }
.tbo .tbo-pill.is-on { background: var(--tbo-ink); color: var(--tbo-card); }
.tbo-pill span { font: 700 11px/1 var(--font-inter, "Inter", sans-serif); color: var(--tbo-brand); }
.tbo .tbo-empty { margin: 18px 0; color: var(--tbo-muted); }

/* Days. */
.tbo-day h2 { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 10px; }
.tbo-day h2 span { color: var(--tbo-ink); font: 400 1.7rem/1 var(--font-babas, "Bebas Neue", sans-serif); letter-spacing: .02em; }
.tbo-day h2 small { color: var(--tbo-muted); font: 600 12px/1 var(--font-inter, "Inter", sans-serif); }
.tbo-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* A game. */
.tbo-g { display: grid; align-content: start; overflow: hidden; background: var(--tbo-card); border: 1px solid var(--tbo-line); border-radius: 10px; }
.tbo-g header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 4px; }
.tbo-g time { color: var(--tbo-muted); font: 700 12px/1 var(--font-inter, "Inter", sans-serif); letter-spacing: .04em; text-transform: uppercase; }
.tbo-cols, .tbo-r { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 84px); gap: 6px; align-items: center; padding: 0 14px; }
.tbo-cols span { padding-bottom: 4px; color: var(--tbo-muted); font: 700 10px/1 var(--font-inter, "Inter", sans-serif); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.tbo-r { padding-block: 4px; }
.tbo-r:last-of-type { padding-bottom: 12px; }
.tbo-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbo-mono { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--tbo-soft); color: var(--tbo-ink); font: 800 12px/1 var(--font-inter, "Inter", sans-serif); }
.tbo-t.is-fav .tbo-mono { background: var(--tbo-ink); color: var(--tbo-card); }
.tbo-nm { display: grid; min-width: 0; }
.tbo-nm b { overflow: hidden; color: var(--tbo-ink); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tbo-nm small { color: var(--tbo-muted); font: 600 11.5px/1.2 var(--font-inter, "Inter", sans-serif); }
.tbo-t.is-fav .tbo-nm small { color: var(--tbo-green); }
.tbo .tbo-odd { display: grid; place-items: center; align-content: center; gap: 1px; height: 50px; border-radius: 8px; background: var(--tbo-odd); font-family: var(--font-inter, "Inter", sans-serif); font-variant-numeric: tabular-nums; transition: background-color .12s, box-shadow .12s; }
.tbo a.tbo-odd:hover { background: var(--tbo-odd-h); box-shadow: inset 0 0 0 1px var(--tbo-green); }
.tbo-odd__l { color: var(--tbo-muted); font-size: 11.5px; font-weight: 600; }
.tbo-odd b { color: var(--tbo-ink); font-size: 15px; font-weight: 800; }
.tbo-odd.is-ml b { font-size: 16px; }
.tbo-odd.is-empty { color: var(--tbo-muted); }

/* The movement strip (NFL), linking to the splits page. */
.tbo-mv { display: grid; gap: 6px; padding: 10px 14px 12px; background: var(--tbo-hl); border-top: 1px solid var(--tbo-hl-line); }
.tbo .tbo-mv__v { margin: 0; color: var(--tbo-ink); font-size: 13px; font-weight: 800; }
.tbo-mv__v::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--tbo-green); vertical-align: 1px; }
.tbo-mv__m { display: grid; grid-template-columns: 52px 84px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; font-family: var(--font-inter, "Inter", sans-serif); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbo-mv__k { color: var(--tbo-muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tbo-mv__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbo-mv__t b { color: var(--tbo-ink); font-weight: 800; }
.tbo-mv__ar, .tbo-mv__mu { color: var(--tbo-muted); }
.tbo-spark { display: block; overflow: visible; }
.tbo-spark path { fill: none; stroke: var(--tbo-ink); stroke-width: 1.6; stroke-linejoin: round; }
.tbo-spark circle { fill: var(--tbo-green); stroke: var(--tbo-hl); stroke-width: 1.5; }
.tbo-bar { position: relative; display: block; width: 84px; height: 8px; border-radius: 4px; background: var(--tbo-line); }
.tbo-bar__now { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--tbo-green); }
.tbo-bar__was { position: absolute; top: -3px; z-index: 1; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--tbo-ink); opacity: .55; }
.tbo-mv__f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.tbo .tbo-mv__f a { color: var(--tbo-green); font-size: 12.5px; font-weight: 800; }
.tbo-mv__f span { color: var(--tbo-muted); font: 600 11px/1 var(--font-inter, "Inter", sans-serif); }

.tbo .tbo-rg { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--tbo-line); color: var(--tbo-muted); font-size: 11.5px; max-width: 90ch; }

@media (max-width: 900px) {
	.tbo-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.tbo-cols, .tbo-r { grid-template-columns: minmax(0, 1fr) repeat(3, 66px); gap: 5px; padding: 0 12px; }
	.tbo-mono { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
	.tbo-t { gap: 8px; }
	.tbo-nm b { font-size: 14px; }
	.tbo .tbo-odd { height: 46px; }
	.tbo-odd b { font-size: 14px; }
	.tbo-mv { padding: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.tbo .tbo-odd { transition: none; }
}
