/* /guides/betting-strategy/ (bs- prefix). Loaded only there by mu-plugins/betadvisor-page-betting-strategy.php. Mobile first. */

/* Compact head so the tool reaches the first screen */
.tpl-guide .page-head { padding-top: 14px; padding-bottom: 10px; }
.tpl-guide .page-head h1 { margin-bottom: .2em; }
.tpl-guide .page-head .lead { margin-bottom: .4em; font-size: 1rem; }

/* ----- Bankroll tool ----- */
.bs-tool { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "out" "in" "table" "note"; margin: 0 0 22px; padding: 14px; border-radius: var(--radius); background: #fff; border: 2px solid var(--green); box-shadow: var(--shadow); }
@media (min-width: 720px) { .bs-tool { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "in out" "table table" "note note"; padding: 18px; gap: 16px; } }
.bs-tool__out { grid-area: out; align-self: start; padding: 14px; border-radius: 12px; background: var(--green); color: #dbe9e2; }
.bs-out__label { margin: 0 !important; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.bs-out__big { margin: 2px 0 10px !important; font-family: var(--font-head); font-size: 2.1rem; line-height: 1.1; font-weight: 800; color: #fff; }
.bs-out__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 720px) { .bs-out__grid { grid-template-columns: minmax(0, 1fr); } }
.bs-out__grid div { padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); min-width: 0; }
.bs-out__grid dt { font-size: .68rem; color: #a9c6b7; line-height: 1.25; }
.bs-out__grid dd { margin: 2px 0 0; font-weight: 800; color: #fff; font-size: .92rem; overflow-wrap: anywhere; }
.bs-out__verdict { margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 8px; font-size: .82rem; font-weight: 700; background: rgba(183, 227, 74, .18); color: #eaf6d1; }
.bs-out__verdict.bs-v--mid { background: rgba(242, 176, 30, .22); color: #ffe8b0; }
.bs-out__verdict.bs-v--bad { background: rgba(179, 38, 30, .35); color: #ffd9d4; }
.bs-tool__in { grid-area: in; min-width: 0; }
.bs-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.bs-tool input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 700 1.05rem/1.2 var(--font); color: var(--ink); background: #fbfaf6; }
.bs-tool input:focus { outline: 3px solid var(--gold); outline-offset: 1px; background: #fff; }
.bs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.bs-chips button { cursor: pointer; border: 1px solid var(--green-2); background: #fff; color: var(--green); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .82rem; }
.bs-field__t { margin: 0 0 6px !important; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.bs-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: #f1efe8; margin: 0 0 12px; }
.bs-seg button { flex: 1 1 auto; cursor: pointer; border: 0; background: transparent; padding: 7px 10px; border-radius: 9px; font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.bs-seg button.is-on { background: var(--green); color: #fff; }
.bs-tool__table { grid-area: table; min-width: 0; }
.bs-table__t { margin: 0 0 6px !important; font-weight: 800; color: var(--green); font-size: .9rem; }
.bs-tool__table table { margin: 0; width: 100%; font-size: .88rem; }
.bs-tool__table tr.is-zero td { background: var(--red-soft); color: #8a4415; font-weight: 700; }
.bs-tool__note { grid-area: note; margin: 0 !important; font-size: .76rem; color: var(--ink-soft); }

/* ----- Staking plans comparison ----- */
.bs-plans { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0 0 18px; }
@media (min-width: 640px) { .bs-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bs-plan { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-top: 5px solid var(--green-2); background: #fff; }
.bs-plan--mid { border-top-color: #d99a00; }
.bs-plan--bad { border-top-color: #b3261e; }
.bs-plan__name { margin: 0 0 4px !important; font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.05rem; }
.bs-plan__rule { display: block; margin: 0 0 8px; padding: 6px 8px; border-radius: 6px; background: var(--green-soft); font-family: var(--mono); font-size: .82rem; }
.bs-plan p { margin: 0 0 6px; font-size: .9rem; }
.bs-plan__tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--green-soft); color: var(--green); }
.bs-plan--mid .bs-plan__tag { background: #fff4d6; color: #7a5300; }
.bs-plan--bad .bs-plan__tag { background: var(--red-soft); color: #8a4415; }

/* ----- Martingale ladder ----- */
.bs-ladder { margin: 0 0 18px; padding: 14px; border-radius: var(--radius); background: var(--green); color: #dbe9e2; }
.bs-ladder__t { margin: 0 0 12px !important; font-weight: 800; color: #fff; }
.bs-ladder__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; align-items: end; height: 200px; padding-bottom: 2px; border-bottom: 2px solid rgba(255, 255, 255, .25); }
.bs-step { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 3px; min-width: 0; }
.bs-step__v { font-size: .62rem; font-weight: 800; text-align: center; color: #fff; white-space: nowrap; overflow: hidden; }
.bs-step__bar { display: block; border-radius: 5px 5px 0 0; background: var(--gold); min-height: 4px; }
.bs-step__bar.is-hot { background: #e2554a; }
.bs-step__n { order: 3; font-size: .62rem; text-align: center; color: #a9c6b7; margin-top: 4px; }
.bs-ladder__sum { margin: 12px 0 6px !important; font-size: .9rem; }
.bs-ladder__sum b { color: var(--lime); }
.bs-ladder figcaption { font-size: .76rem; color: #a9c6b7; }
@media (min-width: 640px) { .bs-step__v, .bs-step__n { font-size: .74rem; } }

/* ----- Streak table ----- */
.bs-streaks { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bs-streaks table { margin: 0; width: 100%; }
.bs-pill { display: inline-block; min-width: 54px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: .84rem; }
.bs-pill--hi { background: var(--red-soft); color: #8a4415; }
.bs-pill--mid { background: #fff4d6; color: #7a5300; }
.bs-pill--lo { background: var(--green-soft); color: var(--green); }
.bs-streaks__cap { margin: 0 !important; padding: 8px 12px; font-size: .76rem; color: var(--ink-soft); }

/* ----- Record sheet mock ----- */
.bs-sheet { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; background: #fff; }
.bs-sheet table { margin: 0; width: 100%; font-size: .84rem; }
.bs-sheet td.w { color: var(--green-2); font-weight: 800; }
.bs-sheet td.l { color: #b3261e; font-weight: 800; }
.bs-sheet tfoot td { background: var(--green-soft); font-weight: 800; }
.bs-sheet__cap { margin: 0 !important; padding: 8px 12px; font-size: .76rem; color: var(--ink-soft); }

/* ----- Shared callouts ----- */
.bs-formula { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fbfaf6; border: 1px solid var(--line); border-left: 4px solid var(--green-2); }
.bs-formula p { margin: 0 0 4px; font-size: .92rem; }
.bs-formula code { display: inline-block; margin: 2px 0; padding: 4px 8px; background: var(--green-soft); border-radius: 6px; }
.bs-keep { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0 0 16px; }
@media (min-width: 640px) { .bs-keep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs-keep__col { padding: 14px; border-radius: var(--radius-sm); background: #f4f9f1; border-left: 4px solid var(--green-2); }
.bs-keep__col--warn { background: var(--red-soft); border-left-color: var(--red-line); }
.bs-keep__t { margin: 0 0 6px !important; font-weight: 800; color: var(--green); }
.bs-keep__col--warn .bs-keep__t { color: #8a4415; }
.bs-keep ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.bs-myths { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.bs-myths li { margin: 0; padding: 12px 14px 12px 48px; position: relative; border: 1px solid var(--line); border-left: 4px solid var(--red-line); border-radius: var(--radius-sm); background: #fff; font-size: .92rem; }
.bs-myths li::before { content: "!"; position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: #a4511b; font-weight: 800; font-size: .8rem; }
.bs-myths strong { display: block; color: var(--ink); }
.bs-routine { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: bs; display: grid; gap: 8px; }
.bs-routine li { margin: 0; position: relative; padding: 12px 14px 12px 54px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfaf6; counter-increment: bs; font-size: .92rem; }
.bs-routine li::before { content: counter(bs); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--green); font-weight: 800; }
.bs-routine strong { color: var(--green); }
.bs-rg { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-soft); font-size: .9rem; }
