/* boost-switch.css: the Profit Boosts switch and the bar it sits in
 * (prompt 391). Palette variables only, so the light theme follows the
 * page's own :root overrides with no hard-coded dark colors here. 44 px
 * taps; the bar wraps instead of scrolling sideways (no sideways scroll at
 * 320 px). Shared by the Middle Finder and Sharp Lotto; the follow-up
 * prompt reuses it on the other boards.
 */
.bsw { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bsw-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px;
  background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bsw-btn[aria-checked="true"] { border-color: var(--gold); }
.bsw-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--border); flex-shrink: 0; transition: background .15s; }
.bsw-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.bsw-btn[aria-checked="true"] .bsw-track { background: var(--gold); border-color: var(--gold); }
.bsw-btn[aria-checked="true"] .bsw-knob { transform: translateX(16px); background: var(--bg); }
.bsw-state { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 22px; }
.bsw-btn[aria-checked="true"] .bsw-state { color: var(--gold); }
.bsw-note { font-size: 12px; color: var(--muted); }
.bsw-none a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; }

/* The bar: one compact block that stays in view. --mbar-top is set from the
   page's own sticky header height in JS. */
.mbar { position: sticky; top: var(--mbar-top, 0px); z-index: 999; background: var(--bg); padding: 4px 0 6px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
/* The bar's controls are the shared set (static/controls.css, prompt 397). */
.mbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mbar-pair { display: inline-flex; align-items: center; gap: 2px; }
.mbar-dd { min-width: 170px; }
.mbar-dd .book-dropdown-item { width: 100%; background: transparent; border: 0; font: inherit; font-size: 14px; text-align: left; min-height: 44px; }
.mbar-dd .book-dropdown-item[aria-checked="true"] { color: var(--gold); font-weight: 700; }
.mbar-help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.mbar-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.mbar-note b { color: var(--text); }
.mbar-note .mbar-use { display: block; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .mbar-row { gap: 4px 6px; }
  .bsw-btn { padding: 4px 10px 4px 6px; }
}

/* Every row's risk and reward, in the same spot (Dan, Nov 10): "Risk $10
   to Win $200 · 20 to 1", Sharp Lotto's own words and type. A boosted
   figure wears the bolt and the gold of the wallet's boosted prices, so it
   is never read as the book's own price (the book prices sit in the legs
   below, on the same row). */
.mrr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.mrr-main { font-size: 17px; font-weight: 900; color: var(--text); }
.mrr-ratio { font-size: 14px; font-weight: 800; color: var(--green); }
.mrr-size { font-size: 12px; color: var(--muted); }
.mrr.boosted .mrr-main { color: var(--gold-lt, var(--gold)); }
.mrr .mrr-bolt { color: var(--gold); font-weight: 900; }
.mbx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 6px; }
.mbx .mb-chip { min-height: 44px; margin: 0; }
.mbx-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.mbx-more { background: transparent; border: 0; color: var(--gold); font: inherit; font-size: 12.5px; font-weight: 700; min-height: 44px; padding: 0 4px; cursor: pointer; }
.mbx-other { flex-basis: 100%; font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.mbx-other b { color: var(--text); }

/* A boosted row's books'-price plan, one tap away (Book Prices). */
.mbook { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 6px; }
.mbook-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.mbook[hidden] { display: none; }
