/* Kalshi baseball try page. Scoped to .mlb-try; site tokens from site.css. Three colors only (brand kit):
   Spinda's line is Naruto Pink with an Ink edge, Jev's is solid Ink, the market price is dashed Ink. */
.mlb-try { padding: 24px 0 80px; display: grid; gap: 56px; }
.mlb-try .back-to-demos { display: inline-flex; gap: 8px; font-size: 14px; margin-bottom: -32px; }
.mlb-try h1, .mlb-try h2, .mlb-try h3, .mlb-try p { margin: 0; }
.mlb-try section { display: grid; gap: 16px; min-width: 0; }
.mlb-try section > p { max-width: 70ch; }
.mlb-intro { max-width: 820px; gap: 12px; }
.mlb-intro h1 { font: 400 clamp(40px, 6vw, 72px)/1.02 var(--sp-font-display); letter-spacing: var(--sp-display-tracking); }
.mlb-try h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.mlb-try h3 { font: 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.mlb-small { font-size: 13px; }

.mlb-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.mlb-try select, .mlb-try button { font: inherit; font-size: 14px; color: var(--sp-text); background: var(--sp-bg); border: 1px solid var(--sp-ink); border-radius: 8px; padding: 8px 14px; min-height: 40px; cursor: pointer; max-width: 100%; }
.mlb-try button.mlb-primary { background: var(--sp-action); color: var(--sp-action-text); font-weight: 600; }
.mlb-try button:hover { box-shadow: 3px 3px 0 var(--sp-ink); }
.mlb-seg { display: inline-flex; justify-self: start; }
.mlb-seg button { border-radius: 0; }
.mlb-seg button:first-child { border-radius: 8px 0 0 8px; }
.mlb-seg button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.mlb-seg button[aria-pressed="true"], .mlb-btns button[aria-pressed="true"] { background: var(--sp-naruto-pink); color: var(--sp-ink); font-weight: 600; }
.mlb-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.mlb-keys { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; align-items: center; }
.mlb-keys span, .mlb-who { display: inline-flex; gap: 8px; align-items: center; }
.mlb-key { width: 22px; height: 12px; flex: none; display: inline-block; vertical-align: middle; }
.mlb-chart { position: relative; min-width: 0; }
.mlb-chart svg { display: block; width: 100%; overflow: visible; }
.mlb-chart .tick { font: 11px var(--mono); fill: var(--sp-text); }
.mlb-chart .lbl { font: 12px var(--sp-font-ui); fill: var(--sp-text); }
.mlb-chart .lbl.b { font-weight: 600; }
.mlb-tip { position: absolute; pointer-events: none; background: var(--sp-bg); color: var(--sp-text); border: 1px solid var(--sp-ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--sp-ink); padding: 8px 10px; font-size: 12.5px; width: 250px; z-index: 2; }
.mlb-tip .t { margin-bottom: 4px; font-weight: 600; }
.mlb-tip .r { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; }
.mlb-tip .r b { font-family: var(--mono); font-weight: 400; }
.mlb-ticker { min-height: 24px; font-size: 14px; font-weight: 500; }

.mlb-io { display: grid; gap: 16px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.mlb-box { border: 1px solid var(--sp-ink); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; background: var(--paper); }
.mlb-box pre { font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 360px; overflow: auto; }
.mlb-answers { display: grid; gap: 8px; }
.mlb-answers div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.mlb-answers b { font: 400 24px var(--mono); }

.mlb-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mlb-tile { border: 1px solid var(--sp-ink); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; background: var(--paper); }
.mlb-tile .big { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; }
.mlb-tile .big b { font: 400 26px var(--mono); }
.mlb-tile p { font-size: 13px; }

.mlb-tablewrap { overflow-x: auto; }
.mlb-scroll { max-height: 420px; overflow: auto; margin-top: 8px; }
.mlb-try table { border-collapse: collapse; width: 100%; font-size: 14px; }
.mlb-try th, .mlb-try td { padding: 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.mlb-try td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.mlb-try thead th { border-top: 0; font-weight: 600; font-size: 13px; white-space: normal; vertical-align: bottom; }
.mlb-try th[scope="row"], .mlb-try thead th:first-child { text-align: left; }
.mlb-scroll td:nth-child(2), .mlb-scroll th:nth-child(2) { text-align: left; }
.mlb-try details summary { cursor: pointer; font-weight: 600; font-size: 14px; }

.mlb-dials { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.mlb-dials label { display: grid; gap: 4px; font-size: 14px; }
.mlb-dials .row { display: flex; gap: 10px; align-items: center; }
.mlb-dials input[type="range"] { flex: 1; min-width: 0; accent-color: var(--sp-naruto-pink); }
.mlb-dials output { font-family: var(--mono); min-width: 5ch; text-align: right; }

.mlb-clip { margin: 0; display: grid; gap: 8px; max-width: 760px; }
.mlb-clip video { width: 100%; height: auto; border: 1px solid var(--sp-ink); border-radius: 14px; display: block; background: var(--paper); }
.mlb-clip figcaption { font-size: 13px; }

.mlb-method { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.mlb-method ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14px; }

@media (max-width: 820px) { .mlb-io { grid-template-columns: minmax(0, 1fr); } }
