/* Line & splits movement: the row inside a splits game tile and its panel
   (includes/tb_movement.php, public/js/movement.js). Plain CSS, not Tailwind, so it needs
   no theme rebuild; follows the theme's .darkmode.

   Series colours were checked with the dataviz validator against the tile surface, in
   both themes: handle = green, bets = blue, both direct-labelled and in a legend, so
   colour is never the only cue. */
.tb-mv {
	--tb-mv-ink: #111111;
	--tb-mv-muted: #5f5f5f;
	--tb-mv-rule: #d6d6d6;
	--tb-mv-grid: #e4e4e4;
	--tb-mv-surface: #ffffff;
	--tb-mv-line: #111111;
	--tb-mv-handle: #2f8a12;
	--tb-mv-bets: #2a6fd6;
	--tb-mv-flag: #f3f8ee;
	/* The tile's sections (this, then the article links) share one rhythm: the markets'
	   own divider colour, 12px above it and 12px below. */
	margin-top: 12px;
	border-top: 1px solid color-mix(in srgb, var(--color-neutral-400, #dddddd) 60%, transparent);
	color: var(--tb-mv-ink);
}
.darkmode .tb-mv {
	border-top-color: color-mix(in srgb, var(--color-neutral-550, #444444) 50%, transparent);
	--tb-mv-ink: #fafafa;
	--tb-mv-muted: #b5b5b5;
	--tb-mv-rule: #3a3a3a;
	--tb-mv-grid: #2c2c2c;
	--tb-mv-surface: #141414;
	--tb-mv-line: #fafafa;
	--tb-mv-handle: #56a524;
	--tb-mv-bets: #5e8fdc;
	--tb-mv-flag: #1b2414;
}

/* The collapsed row. */
.tb-mv__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 0 0; cursor: pointer; list-style: none; font-size: 13px; }
.tb-mv__summary::-webkit-details-marker { display: none; }
.tb-mv__summary::before { content: ""; width: 7px; height: 7px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; align-self: center; }
.tb-mv[open] > .tb-mv__summary::before { transform: rotate(45deg); }
.tb-mv__title { font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--tb-mv-handle); }
.tb-mv__what { font-weight: 600; }
.tb-mv__when { color: var(--tb-mv-muted); font-size: 12px; }
.tb-mv__summary:focus-visible { outline: 2px solid var(--tb-mv-bets); outline-offset: 2px; border-radius: 3px; }

/* The panel. */
.tb-mv__body { padding: 12px 0 0; }
/* One row: the market tabs on the left, the side toggle right-aligned. On a phone the
   side wraps under, still right-aligned. */
.tb-mv__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.tb-mv__side-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; margin-left: auto; }
.tb-mv__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-mv-muted); }
.tb-mv__seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* Buttons match the site's quick nav bar (rounded px-3 py-1 text-[12px] font-bold border):
   white with a neutral-400 border, orange on hover, brand green when selected. */
.tb-mv__seg button,
.tb-rec__pills a { display: inline-block; padding: 4px 12px; border: 1px solid var(--color-neutral-400, #dddddd); border-radius: .25rem; background: #ffffff; color: var(--color-subtitle, #333333); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.tb-mv__seg button:hover,
.tb-rec__pills a:hover { color: var(--color-brand-orange, #e47d3a); }
.tb-mv__seg button[aria-pressed="true"],
.tb-rec__pills a[aria-current="page"] { background: var(--color-brand-green, #53a318); border-color: var(--color-brand-green, #53a318); color: #ffffff; }
.darkmode .tb-mv__seg button,
.darkmode .tb-rec__pills a { background: var(--color-neutral-600, #333333); border-color: var(--color-bg, #2a2a2a); color: #ffffff; }
.darkmode .tb-mv__seg button[aria-pressed="true"],
.darkmode .tb-rec__pills a[aria-current="page"] { background: var(--color-brand-green, #53a318); border-color: var(--color-brand-green, #53a318); color: #ffffff; }
/* The side is a refinement of the market, not a second main choice, and green is the
   Handle line's colour in the chart: so the selected side takes the dark fill of the
   tile's odds chips instead (light on dark in dark mode, where black wouldn't show). */
.tb-mv__sides button[aria-pressed="true"] { background: var(--color-neutral-900, #000000); border-color: var(--color-neutral-900, #000000); color: var(--color-on-dark-strong, #fafafa); }
.darkmode .tb-mv__sides button[aria-pressed="true"] { background: var(--color-on-dark-strong, #fafafa); border-color: var(--color-on-dark-strong, #fafafa); color: var(--color-neutral-900, #000000); }
.tb-mv__seg button:focus-visible { outline: 2px solid var(--tb-mv-bets); outline-offset: 2px; }

.tb-mv__chart { position: relative; margin: 6px 0 10px; }
.tb-mv__chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 2px; font-size: 12px; font-weight: 700; }
.tb-mv__chart svg { display: block; overflow: visible; touch-action: pan-y; }
.tb-mv__key { font-weight: 600; color: var(--tb-mv-muted); }
.tb-mv__key i { display: inline-block; width: 14px; height: 2px; margin: 0 4px 3px 8px; vertical-align: middle; }
.tb-mv__key i.is-handle { background: var(--tb-mv-handle); }
.tb-mv__key i.is-bets { background: var(--tb-mv-bets); }

.tb-mv__grid { stroke: var(--tb-mv-grid); stroke-width: 1; }
.tb-mv__grid.is-ref { stroke: var(--tb-mv-muted); stroke-dasharray: 3 3; opacity: .6; }
.tb-mv__axis { fill: var(--tb-mv-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tb-mv__end { fill: var(--tb-mv-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tb-mv__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tb-mv__line.is-line { stroke: var(--tb-mv-line); }
.tb-mv__line.is-handle { stroke: var(--tb-mv-handle); }
.tb-mv__line.is-bets { stroke: var(--tb-mv-bets); }
.tb-mv__dot { stroke: var(--tb-mv-surface); stroke-width: 2; }
.tb-mv__dot.is-line { fill: var(--tb-mv-line); }
.tb-mv__dot.is-handle { fill: var(--tb-mv-handle); }
.tb-mv__dot.is-bets { fill: var(--tb-mv-bets); }
.tb-mv__cross { stroke: var(--tb-mv-muted); stroke-width: 1; }
.tb-mv__tip[hidden] { display: none; }
.tb-mv__tip { position: absolute; top: 18px; z-index: 2; display: grid; gap: 1px; min-width: 150px; padding: 6px 8px; background: var(--tb-mv-surface); border: 1px solid var(--tb-mv-rule); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }

.tb-mv__flags { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.tb-mv__flags li { padding: 7px 10px; border-left: 3px solid var(--tb-mv-handle); background: var(--tb-mv-flag); border-radius: 4px; font-size: 13px; font-weight: 600; }
.tb-mv__foot h4 { margin: 8px 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-mv-muted); }
.tb-mv__changes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.tb-mv__all { margin: 6px 0; font-size: 13px; }
.tb-mv__all summary { cursor: pointer; font-weight: 700; }
.tb-mv__scroll { overflow-x: auto; }
.tb-mv__all table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tb-mv__all th, .tb-mv__all td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--tb-mv-grid); white-space: nowrap; }
.tb-mv__muted { margin: 6px 0 0; font-size: 12px; color: var(--tb-mv-muted); }

/* The shortcode's standalone panel, in an article. */
.tb-mv-embed { margin: 20px 0; padding: 4px 14px 10px; border: 1px solid #d6d6d6; border-radius: 8px; }
.darkmode .tb-mv-embed { border-color: #3a3a3a; }
.tb-mv-embed .tb-mv { margin-top: 0; border-top: 0; }

/* [dkn_splits_record]: the public vs money record (includes/tb_record.php). */
.tb-rec { --tb-rec-ink: #111111; --tb-rec-muted: #5f5f5f; --tb-rec-rule: #e2e2e2; --tb-rec-card: #ffffff; display: grid; gap: 12px; margin: 20px 0; color: var(--tb-rec-ink); }
.darkmode .tb-rec { --tb-rec-ink: #fafafa; --tb-rec-muted: #b5b5b5; --tb-rec-rule: #333333; --tb-rec-card: #141414; }
.tb-rec__lede { margin: 0; font-size: 15px; line-height: 1.5; }
.tb-rec__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-rec__scroll { overflow-x: auto; background: var(--tb-rec-card); border: 1px solid var(--tb-rec-rule); border-radius: 8px; }
.tb-rec__table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tb-rec__table th, .tb-rec__table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--tb-rec-rule); white-space: nowrap; }
.tb-rec__table thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-rec-muted); }
.tb-rec__table tr:last-child th, .tb-rec__table tr:last-child td { border-bottom: 0; }
.tb-rec__h { margin: 8px 0 0; font-size: 16px; font-weight: 800; }
.tb-rec__empty, .tb-rec__note { margin: 0; font-size: 13px; color: var(--tb-rec-muted); }

/* DK Predictions section (includes/tb_predictions.php). Purple is Predictions' identity:
   the section label, its selected market and its chart line. The book is the grey dashed
   reference line. Checked against both card surfaces with the dataviz validator. */
.tb-pv { --tb-pv: #6250d6; }
.darkmode .tb-pv { --tb-pv: #9085e9; }
.tb-pv__title { color: var(--tb-pv); }
.tb-pv__seg button[aria-pressed="true"],
.darkmode .tb-pv__seg button[aria-pressed="true"] { background: var(--tb-pv); border-color: var(--tb-pv); color: #ffffff; }
.tb-mv__line.is-pred { stroke: var(--tb-pv); }
.tb-mv__dot.is-pred { fill: var(--tb-pv); }
.tb-mv__line.is-book { stroke: var(--tb-mv-muted); stroke-dasharray: 5 4; }
.tb-mv__dot.is-book { fill: var(--tb-mv-muted); }
.darkmode .tb-mv__line.is-book { stroke: #8a8a8a; }
.darkmode .tb-mv__dot.is-book { fill: #8a8a8a; }
.tb-mv__key i.is-pred { background: var(--tb-pv); }
.tb-mv__key i.is-book { background: repeating-linear-gradient(90deg, var(--tb-mv-muted) 0 4px, transparent 4px 7px); }
.tb-pv__now { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tb-pv__now th, .tb-pv__now td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--tb-mv-grid); white-space: nowrap; }
.tb-pv__now thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-mv-muted); }
.tb-pv__now tbody th { font-weight: 700; }
.tb-pv__diff { color: var(--tb-pv); font-weight: 700; }
.tb-mv__muted-inline { color: var(--tb-mv-muted); }

/* Player props section (includes/tb_props.php): rendered with the page, no JS. Odds are
   the tile's own black chips, linking to that exact selection on DK. */
.tb-pp__title { color: var(--tb-mv-ink); }
.tb-pp .tb-mv__body h4 { margin: 4px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-mv-muted); }
.tb-pp__table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tb-pp__table th, .tb-pp__table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--tb-mv-grid); white-space: nowrap; vertical-align: middle; }
.tb-pp__table thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-mv-muted); }
.tb-pp__table tbody th { font-weight: 700; }
.tb-pp__team th { padding-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tb-mv-muted); border-bottom: 0; }
.tb-pp__prop { display: block; font-size: 11px; font-weight: 600; color: var(--tb-mv-muted); }
.tb-pp__line { font-weight: 700; }
.tb-pp__line.is-moved { color: var(--tb-mv-handle); }
.tb-pp__was { display: block; font-size: 11px; font-weight: 600; color: var(--tb-mv-muted); }
.tb-pp__odds { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 4px; background: var(--color-neutral-900, #000000); color: var(--color-on-dark-strong, #fafafa); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.tb-pp__odds:hover { color: var(--color-brand-green, #61b510); }
.tb-pp__odds.is-plain { background: transparent; color: var(--tb-mv-ink); border: 1px solid var(--tb-mv-rule); }
.tb-pp__most { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; counter-reset: pp; }
.tb-pp__most li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--tb-mv-grid); font-size: 13px; counter-increment: pp; }
.tb-pp__most li::before { content: counter(pp); min-width: 18px; font-weight: 800; color: var(--tb-mv-muted); }
.tb-pp__what { flex: 1; font-weight: 700; }
