/* /betting-apps/ only (mu-plugin betadvisor-page-betting-apps.php). Prefix ba-. */

/* First screen: the ranking comes right after the title; the cover image moves down into the text. */
.tpl-hub .page-hero { display: none; }
.tpl-hub .page-head--band { padding-bottom: 14px; }
@media (max-width: 640px) {
	.tpl-hub .page-head--band .page-title { font-size: 1.65rem; margin-bottom: .2em; }
	.tpl-hub .page-head--band .lead { font-size: .98rem; margin-bottom: .4em; }
	.tpl-hub .entry { padding: 14px 12px; }
}

/* ----- Ranking ----- */
.ba-cmp { margin: 0 0 22px; }
.ba-cmp__bar { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.ba-cmp__t { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--green); }
.ba-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ba-filters::-webkit-scrollbar { display: none; }
.ba-chip { flex: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fbfaf6; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ba-chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.ba-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ba-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ba-row { margin: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.ba-row:first-child { border-top: 0; }
.ba-row--top { background: linear-gradient(90deg, rgba(183, 227, 74, .14), transparent 60%); }
.ba-row[hidden] { display: none; }
.ba-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: .82rem; font-family: var(--font-head); }
.ba-row--top .ba-rank { background: var(--gold); color: var(--gold-ink); }
.ba-row__main { min-width: 0; }
.ba-row__name { margin: 0; font-weight: 800; line-height: 1.2; }
.ba-score { font-weight: 800; color: var(--green); white-space: nowrap; }
.ba-score small { color: var(--ink-soft); font-weight: 600; }
.ba-row__stores { display: flex; gap: 5px; margin: 4px 0 2px; flex-wrap: wrap; }
.ba-store { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.ba-store::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.ba-store.is-yes { background: var(--green-soft); color: var(--green); }
.ba-store.is-yes::before { background: var(--green-2); }
.ba-store.is-no { background: #f3f1ea; color: #8a8a80; text-decoration: line-through; }
.ba-store.is-no::before { background: #c9c6ba; }
.ba-store.is-unk { background: #fff7e3; color: #8a5f00; }
.ba-store.is-unk::before { background: var(--gold); }
.ba-row__meta { margin: 0; font-size: .78rem; color: var(--ink-soft); line-height: 1.35; }
.ba-row__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-btn.rv-btn { min-height: 36px; padding: 6px 12px; font-size: .86rem; margin: 0; text-align: center; justify-content: center; }
.ba-empty { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); }
.ba-cmp__note { margin: 8px 0 0; font-size: .76rem; color: var(--ink-soft); }
@media (min-width: 760px) {
	.ba-cmp__bar { flex-direction: row; align-items: center; justify-content: space-between; }
	.ba-row { grid-template-columns: auto auto minmax(0, 1fr) auto; padding: 10px 14px; }
	.ba-row__btns { grid-column: auto; display: flex; }
}

/* ----- Content blocks ----- */
.ba-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.2em; }
@media (min-width: 640px) { .ba-grid--2, .ba-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ba-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-box { background: #fbfaf6; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.ba-box h3 { margin: 0 0 6px; font-size: 1.02rem; }
.ba-box p { margin: 0 0 .5em; font-size: .94rem; }
.ba-box p:last-child { margin-bottom: 0; }
.ba-tag { display: inline-block; margin: 0 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.ba-pick__who { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; }
.ba-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.ba-steps { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; counter-reset: bastep; }
@media (min-width: 760px) { .ba-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ba-steps > li { margin: 0; position: relative; padding: 12px 14px 12px 54px; background: #fbfaf6; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: bastep; }
.ba-steps > li::before { content: counter(bastep); 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; }
.ba-steps strong { display: block; color: var(--green); }
.ba-check p { position: relative; padding-left: 24px; }
.ba-check p::before { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.ba-ok::before { content: "\2713"; background: var(--green-soft); color: var(--green-2); }
.ba-no::before { content: "!"; background: var(--red-soft); color: #a4511b; border: 1px solid var(--red-line); }
.ba-callout { margin: 0 0 1.2em; padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid var(--lime); background: var(--green-soft); }
.ba-callout p { margin: 0; }
.ba-callout--warn { border-left-color: var(--red-line); background: var(--red-soft); }
.ba-media { margin: 0 0 1.2em; }
.ba-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.ba-media figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.ba-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.ba-scroll table { margin: 0; min-width: 520px; }

/* ----- Picker ----- */
.ba-picker { display: grid; gap: 16px; margin: 0 0 1.4em; padding: 16px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--card); }
@media (min-width: 900px) { .ba-picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.ba-q { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.ba-q legend { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; font-weight: 800; color: var(--green); }
.ba-q legend span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--green); font-size: .78rem; }
.ba-q__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-q__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ba-q__opts label { cursor: pointer; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fbfaf6; font-size: .88rem; font-weight: 600; }
.ba-q__opts input:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.ba-q__opts input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.ba-picker__out { background: var(--green-soft); border-radius: var(--radius-sm); padding: 12px; }
.ba-picker__title { margin: 0 0 8px; font-weight: 800; color: var(--green); }
.ba-picker__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ba-match { margin: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; background: #fff; border-radius: 8px; padding: 8px 10px; }
.ba-match__main { min-width: 0; }
.ba-match__name { margin: 0; font-weight: 800; }
.ba-match__why { list-style: none; margin: 2px 0 0; padding: 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
.ba-match__why li { margin: 0; }
.ba-match__why li::before { content: "+ "; color: var(--green-2); font-weight: 800; }
.ba-match__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ----- Phone mockups (code-drawn) ----- */
.ba-phones { margin: 0 0 1.4em; }
.ba-phones__row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ba-phones__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba-ph { display: flex; gap: 12px; align-items: center; }
@media (min-width: 640px) { .ba-ph { flex-direction: column; text-align: center; } }
.ba-ph__frame { flex: none; position: relative; display: flex; flex-direction: column; width: 112px; height: 200px; border-radius: 22px; background: #0f1d17; padding: 10px 7px; box-shadow: var(--shadow); }
.ba-ph__notch { position: absolute; top: 5px; left: 50%; width: 34px; height: 5px; margin-left: -17px; border-radius: 4px; background: #2d3d35; }
.ba-ph__bar { margin-top: 6px; padding: 3px 6px; border-radius: 6px 6px 0 0; background: var(--green); color: #cfe2d8; font-size: .58rem; font-weight: 700; text-align: left; overflow: hidden; white-space: nowrap; }
.ba-ph__body { flex: 1; display: flex; flex-direction: column; gap: 7px; justify-content: center; padding: 8px 6px; border-radius: 0 0 10px 10px; background: #fbfaf6; }
.ba-ph__btn { display: block; padding: 6px 4px; border-radius: 7px; background: var(--gold); color: var(--gold-ink); font-size: .62rem; font-weight: 800; text-align: center; }
.ba-ph__line { display: block; height: 6px; border-radius: 3px; background: #e2dfd5; }
.ba-ph__line--s { width: 60%; }
.ba-ph__toggle { display: flex; align-items: center; gap: 5px; font-size: .56rem; font-weight: 700; color: var(--ink); text-align: left; line-height: 1.2; }
.ba-ph__toggle i { flex: none; position: relative; width: 22px; height: 12px; border-radius: 6px; background: #c9c6ba; }
.ba-ph__toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ba-ph__toggle.is-on i { background: var(--green-2); }
.ba-ph__toggle.is-on i::after { left: 12px; }
.ba-ph__warn { font-size: .55rem; font-weight: 800; color: #a4511b; }
.ba-ph__ok { display: block; padding: 5px 4px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: .6rem; font-weight: 800; text-align: center; }
.ba-ph__cap { margin: 0; font-size: .86rem; line-height: 1.45; }
.ba-ph__cap b { display: block; color: var(--green); }
.ba-phones figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
