/* Betting leans, tested (app/lib/leans.php, Nov 28, 2026): /answers/betting-leans and each lean's page. On top of answers.css
   (and learn.css on a lean's page, for its video). Phones first: the league table turns into a card a league under 576px. */

/* the verdicts: held up (green), up not proven (amber), no edge (grey), the other side won (red), too few (dashed) */
.pp-ln-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 650; line-height: 1.3;
  background: var(--pp-card-2); color: var(--pp-soft); border: 1px solid transparent; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-ln-pill b { font-weight: 800; color: var(--pp-hi); letter-spacing: .02em; }
.pp-ln-pill em { font-style: normal; font-weight: 700; }
.pp-ln-pill.is-edge { background: rgba(var(--pp-ok-rgb), .16); color: var(--pp-ok-text); border-color: rgba(var(--pp-ok-rgb), .35); }
.pp-ln-pill.is-edge b { color: var(--pp-ok-text); }
.pp-ln-pill.is-maybe { background: rgba(224, 164, 58, .14); color: var(--pp-warn-text); border-color: rgba(224, 164, 58, .3); }
.pp-ln-pill.is-other { background: rgba(var(--pp-bad-rgb), .12); color: var(--pp-bad-text); border-color: rgba(var(--pp-bad-rgb), .28); }
.pp-ln-pill.is-few { background: none; border: 1px dashed var(--pp-line-2); color: var(--pp-dim); }
.pp-ln-pill.is-big { padding: 6px 12px; font-size: .84rem; text-decoration: none; }
.pp-ln-pill.is-big:hover { filter: brightness(1.12); }
.pp-ln-pill .is-up { color: var(--pp-ok-text); } .pp-ln-pill .is-down { color: var(--pp-bad-text); }
.pp-ln-vi.is-edge { color: var(--pp-ok-text) !important; } .pp-ln-vi.is-maybe { color: var(--pp-warn-text) !important; } .pp-ln-vi.is-other { color: var(--pp-bad-text) !important; }

.pp-ln h2.pp-my-h { font-size: .95rem; line-height: 1.3; font-family: inherit; }
.pp-ln-verdicts { display: flex; flex-wrap: wrap; gap: 8px; }

/* the hub's lists */
.pp-ln-what { color: var(--pp-dim); font-size: .84rem; margin: -6px 0 6px; }
.pp-ln-list { list-style: none; margin: 0; padding: 0; }
.pp-ln-list li + li { border-top: 1px solid var(--pp-line); }
.pp-ln-list a { display: flex; flex-direction: column; gap: 4px; padding: 11px 0; text-decoration: none; color: inherit; }
.pp-ln-li-h { display: flex; align-items: baseline; gap: 8px; }
.pp-ln-li-h > i { color: var(--pp-dim); width: 16px; text-align: center; font-size: .8rem; flex: none; }
.pp-ln-li-h > b { min-width: 0; }
.pp-ln-list.is-sm .pp-ln-li-h { flex-wrap: wrap; align-items: center; }
.pp-ln-li-h b { font-weight: 700; color: var(--pp-hi); }
.pp-ln-list a:hover .pp-ln-li-h b { text-decoration: underline; }
.pp-ln-li-q { color: var(--pp-dim); font-size: .86rem; line-height: 1.4; }
.pp-ln-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.pp-ln-list.is-sm a { padding: 9px 0; }
.pp-ln-kinds { margin: 0; }
.pp-ln-busy { margin: 0; }

/* in plain words */
.pp-ln-plain h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pp-dim); font-weight: 700; margin: 14px 0 4px; }
.pp-ln-plain h3:first-of-type { margin-top: 0; }
.pp-ln-plain p { margin: 0 0 6px; line-height: 1.5; font-size: .93rem; }
.pp-ln-plain ul { margin: 4px 0 6px; padding-left: 1.1rem; font-size: .9rem; line-height: 1.45; }
.pp-ln-plain li { margin-bottom: 3px; }
.pp-ln-fine { color: var(--pp-dim); font-size: .8rem !important; margin-top: 8px !important; }

/* the video */
.pp-ln-v .pp-wv { margin: 0; }

/* league by league */
.pp-ln-t th[scope=row] b { display: block; }
.pp-ln-t th[scope=row] small, .pp-ln-t td small { display: block; font-size: .72rem; color: var(--pp-dim); font-weight: 500; }
.pp-ln-t td.is-up small, .pp-ln-t td.is-down small { color: inherit; opacity: .85; }
.pp-ln-h { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .84rem; }
.pp-ln-h small { display: block !important; }
.pp-ln-h em { font-style: normal; font-weight: 700; }
.pp-ln-t .pp-qa-tot th small { display: inline; }

/* season by season: scrolls inside its card on a phone, the season column stays */
.pp-ln-gw { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.pp-ln-gw:focus-visible { outline: 2px solid var(--pp-ring, var(--pp-link)); outline-offset: 2px; }
.pp-ln-grid { min-width: max-content; }
.pp-ln-grid th, .pp-ln-grid td { padding: 7px 10px; }
.pp-ln-grid thead th:first-child, .pp-ln-grid tbody th { position: sticky; left: 0; background: var(--pp-card); z-index: 1; }
.pp-ln-grid td small { display: block; font-size: .72rem; font-weight: 650; }
.pp-ln-grid td.pp-ln-na { color: var(--pp-line-2); }
.pp-ln-grid td.pp-ln-0 { color: var(--pp-dim); }
.pp-ln-grid .pp-ln-all { font-weight: 700; border-left: 1px solid var(--pp-line-2); }

/* one league's seasons: a bar for each season's return, from the middle (red left, green right) */
.pp-ln-one-t th, .pp-ln-one-t td { padding: 6px 8px; }
.pp-ln-one-t th[scope=row] { white-space: nowrap; }
.pp-ln-barh { width: 42%; }
.pp-ln-barc { position: relative; }
.pp-ln-barc::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--pp-line-2); }
.pp-ln-bar { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 3px; }
.pp-ln-bar.is-up { left: 50%; background: rgba(var(--pp-ok-rgb), .75); }
.pp-ln-bar.is-down { right: 50%; background: rgba(var(--pp-bad-rgb), .7); }
.pp-ln-one-t td.pp-ln-0 { color: var(--pp-dim); text-align: left; font-size: .82rem; }

/* the games that fit now (the System tester's rows, backtest.css isn't loaded here) */
.pp-ln .pp-bt-list { display: flex; flex-direction: column; }
.pp-ln .pp-bt-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--pp-line); min-width: 0; }
.pp-ln .pp-bt-list > .pp-bt-row:first-child { border-top: 0; }
.pp-ln .pp-bt-lg .pp-logo { width: 26px; height: 26px; margin: 0; vertical-align: middle; }
.pp-ln .pp-bt-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-ln .pp-bt-who b { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ln .pp-bt-who b a { color: inherit; text-decoration: none; } .pp-ln .pp-bt-who b a:hover { text-decoration: underline; }
.pp-ln .pp-bt-who small { font-size: .72rem; color: var(--pp-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ln .pp-bt-pick { font-size: .82rem; font-weight: 700; text-align: right; white-space: nowrap; }
.pp-ln .pp-bt-act .pp-ply-add { margin: 0; }

/* how it was tested */
.pp-ln-test { margin: 6px 0 0; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pp-ln-test span { color: var(--pp-dim); }
.pp-ln-test a { font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--pp-line-2); text-decoration: none; color: var(--bs-body-color); }
.pp-ln-test a:hover { border-color: var(--pp-dim); }

/* phones: each league a card (its label beside each number) */
@media (max-width: 575.98px) {
  .pp-ln-t thead { display: none; }
  .pp-ln-t, .pp-ln-t tbody { display: block; }
  .pp-ln-t tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--pp-line); }
  .pp-ln-t td[data-h=Record] { order: 1; } .pp-ln-t td[data-h=Return] { order: 2; } .pp-ln-t td[data-h=Hit] { order: 3; } .pp-ln-t td[data-h=Needed] { order: 4; }
  .pp-ln-t td[data-h="Older half"] { order: 5; } .pp-ln-t td[data-h="Newer half"] { order: 6; }
  .pp-ln-t tbody tr:last-child { border-bottom: 0; }
  .pp-ln-t th, .pp-ln-t td { border: 0 !important; padding: 0 !important; text-align: left !important; }
  .pp-ln-t th[scope=row] { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .pp-ln-t th[scope=row] b, .pp-ln-t th[scope=row] small { display: inline; white-space: nowrap; }
  .pp-ln-t td[data-h=Verdict] { grid-column: 2; grid-row: 1; text-align: right !important; }
  .pp-ln-t td small { display: inline !important; margin-left: 6px; }
  .pp-ln-t td[data-h]::before { content: attr(data-h); display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pp-dim); font-weight: 650; }
  .pp-ln-t td[data-h=Verdict]::before { display: none; }
  .pp-ln-t td.pp-ln-hc .pp-ln-h { white-space: normal; }
  .pp-ln-t td.pp-ln-hc .pp-ln-h small { display: block !important; margin: 0; }
  .pp-ln-t td.pp-ln-hc:empty { display: none; }
  .pp-ln-barh { width: 34%; }
  .pp-ln-one-t th, .pp-ln-one-t td { padding: 6px 4px; }
  .pp-ln-t .pp-qa-tot { border-top: 1px solid var(--pp-line-2); }
  .pp-ln-t .pp-qa-tot > * { border-top: 0; }
  .pp-ln-t .pp-ln-pill { font-size: .72rem; padding: 2px 8px; }
  .pp-ln-pill.is-big { font-size: .78rem; padding: 5px 10px; }
  .pp-ln-grid th, .pp-ln-grid td { padding: 6px 7px; }
}
