/* ui12-lean.css: the lean view (agent uiclean12, 2026-11-17; research/ui12/uiclean12.md). Pairs with web/ui12-lean.js, which puts
   class ui12-lean on <html> while the lean view is on (the default) and takes it off for "Show everything". Every rule below but the
   switch's own is under html.ui12-lean, so with the class off the page is exactly what it was. Layout only. */

/* ---------- the spread family: what page.html's guards no longer draw, and the few fixed pieces around it ---------- */
/* a spread pick on a best-bets list stays in the page (the server's hidden visit checks every posted pick was drawn) but is not shown */
html.ui12-lean .sb-bb[data-kind="Spread"] { display: none; }
.ui12-note { margin: 0; }
html:not(.ui12-lean) .ui12-note { display: none; }
/* the line shop's Spread tab; the Spread column heads of the slate tables (their cells are not drawn) */
html.ui12-lean #ls-market button[data-v="spreads"] { display: none; }
html.ui12-lean #sb-slate-table th[data-field="spread"] { display: none; }
html.ui12-lean #lg-slate-table thead th:nth-child(5) { display: none; }
/* movement since open: the Spread column goes, and the Moneyline column a phone used to drop takes its place */
html.ui12-lean #lg-moves-table thead th:nth-child(2) { display: none; }
html.ui12-lean #lg-moves-table thead th.sb-hide-narrow { display: table-cell !important; }

/* ---------- phone alerts: paused by the owner (2026-11-17, "remove mobile alerts for now"). The alert rules panel (alert-rules.js,
   owner only, at the foot of Bets) is not shown in the lean view; it stays in the page as alert-rules.js built it, and "Show everything"
   brings it back working as before. It loads nothing until "Manage alerts" is tapped, so hiding it is all there is to save. ---------- */
html.ui12-lean #alert-rules-card { display: none; }

/* ---------- explanations longer than two lines: two lines, a tap (or Enter) opens the rest ---------- */
/* the list below is CLIP in ui12-lean.js: keep the two the same. Every one of these shows two lines; ui12-lean.js marks the ones that
   really run past two lines (class ui12-clip) and only those become a control. :where() keeps the rule weak, so a folded held card (below) still hides its explanation */
html.ui12-lean :where(.sb-bb-reason, .sb-gcard-why, .sb-held-head, .sb-bb-list > .sb-empty-note, #sb-win-note, #sb-deflist > li.sb-muted):not(.ui12-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
html.ui12-lean .ui12-clip { cursor: pointer; }
html.ui12-lean .ui12-clip:focus-visible { outline: 2px solid var(--sb-gold, #e2b23f); outline-offset: 2px; }
/* the cut edge fades, so two lines read as "there is more" */
html.ui12-lean .ui12-clip:not(.ui12-open) { -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .45)); mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .45)); }
/* 44 px to the thumb: a clear border above and below the two lines (a min-height would let the third line show under the second) */
@media (max-width: 640px), (pointer: coarse) {
  html.ui12-lean .ui12-clip:not(.ui12-open) { border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
  html.ui12-lean .ui12-clip.ui12-open { min-height: 44px; }
}

/* ---------- a held pick on a props list ("Watch: held, not a call"): name, tier, the model's chance, the price, + Slip; a tap opens
   the whole card (class ui12-card-open). Nothing is taken out of the page: the card is as the page drew it ---------- */
html.ui12-lean .sb-bb.ui12-card { cursor: pointer; }
html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-bb-meta > :nth-child(n+4),
html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-bb-main > :not(.sb-bb-pick):not(.sb-bb-sub):not(.sb-bb-meta),
html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-score,
html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-bb-side .sb-controls-row > :not(.sb-btn-primary) { display: none; }
/* on a phone + Slip takes the place of the score ring, beside the pick, instead of a row of its own */
@media (max-width: 640px) {
  html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) { grid-template-areas: 'rank main score'; }
  html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-bb-side .sb-controls-row { grid-area: score; margin-top: 0; align-self: start; }
  html.ui12-lean .sb-bb.ui12-card:not(.ui12-card-open) .sb-bb-side .sb-controls-row .sb-btn { flex: none; min-width: 64px; white-space: nowrap; }
}
html.ui12-lean .sb-bb.ui12-card .sb-bb-pick::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 2px solid var(--color-fg-muted); border-bottom: 2px solid var(--color-fg-muted); transform: translateY(-3px) rotate(45deg); }
html.ui12-lean .sb-bb.ui12-card.ui12-card-open .sb-bb-pick::after { transform: translateY(1px) rotate(-135deg); }
html.ui12-lean .sb-bb.ui12-card:focus-visible { outline: 2px solid var(--sb-gold, #e2b23f); outline-offset: 2px; }

/* ---------- the folds the lean view adds: ui11's row inside the card (ui11.css and ui11-tabs.css style the rest) ---------- */
.sb-card.ui12-fold.ui11-closed { padding: 0; }
.sb-card.ui12-fold > .ui11-row + h3, .sb-card.ui12-fold > .ui11-row + .sb-card-head > h3 { display: none; }
.sb-grid > .sb-card.ui12-fold.ui11-closed { align-self: start; }

/* ---------- the switch, at the foot of the page ---------- */
/* one line of text; the button is 44 px to the thumb (padding against a negative margin), so the footer does not grow by a button's height */
.ui12-switch { margin-top: 6px; line-height: 1.5; }
.ui12-switch-note { color: var(--color-fg-muted); }
.ui12-switch-btn { display: inline-block; min-height: 44px; min-width: 44px; padding: 12px 6px; margin: -12px -2px; border: 0; background: none; color: var(--color-fg); font: inherit; text-decoration: underline; cursor: pointer; }
.ui12-switch-btn:focus-visible { outline: 2px solid var(--sb-gold, #e2b23f); outline-offset: -6px; }
