/* /betting-sites/basketball/ blocks (bb- prefix). Loaded only on that page by mu-plugins/betadvisor-page-basketball.php. Mobile first. */

/* ----- First screen: compact head, cover image moves into the text ----- */
.bb-page .page-hero { display: none; }
.bb-page .page-head { padding: 10px 0 4px; }
.bb-page .page-head .eyebrow { margin-bottom: 2px; }
.bb-page .page-head .page-title { font-size: clamp(1.45rem, 5vw, 2.2rem); margin: .1em 0 .25em; }
.bb-page .page-head .lead { font-size: 1rem; margin-bottom: .4em; }
.bb-page .page-head .meta-line { margin: 0; font-size: .82rem; }
.bb-page .disclosure { margin: 6px 0 8px; font-size: .78rem; }
.bb-page .method-link { display: none; }
@media (max-width: 640px) { .bb-page .page-head .lead { display: none; } .bb-page .breadcrumbs { font-size: .78rem; } }

/* ----- First-screen ranking ----- */
.bb-top { margin: 0 0 24px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 2px solid var(--green); box-shadow: var(--shadow); }
.entry .bb-top { margin-top: 0; }
.bb-top__k { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.entry-content .bb-top__h, .bb-top__h { margin: 2px 0 10px; padding: 0; font-size: 1.15rem; }
.entry-content .bb-top__h::before { display: none; }
.bb-top__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bb-row { margin: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf6; }
.bb-row--first { border-color: var(--gold); background: #fffaf0; }
.bb-row__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: .8rem; }
.bb-row--first .bb-row__n { background: var(--gold); color: var(--gold-ink); }
.bb-row .rv-tile { width: 56px; height: 36px; padding: 4px 6px; }
.bb-row__main { min-width: 0; }
.bb-row__name { margin: 0; font-weight: 800; line-height: 1.25; }
.bb-row__name a { color: var(--ink); text-decoration: none; }
.bb-row__name a:hover { text-decoration: underline; }
.bb-row__score { color: var(--green-2); white-space: nowrap; }
.bb-row__score small { color: var(--ink-soft); font-weight: 600; }
.bb-row__lic { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .68rem; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.bb-row__note { margin: 2px 0 0; font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.entry .bb-row__go { margin: 0; min-height: 36px; padding: 6px 14px; font-size: .88rem; }
@media (max-width: 520px) {
	.bb-row { grid-template-columns: auto auto minmax(0, 1fr); }
	.bb-row__note { display: none; }
	.bb-row--first .bb-row__note { display: block; }
	.entry .bb-row__go { grid-column: 3; justify-self: start; min-height: 32px; padding: 4px 14px; }
	.bb-row__lic { display: none; }
}
.bb-top__mk { margin: 12px 0 6px; font-size: .78rem; font-weight: 800; color: var(--green); }
.bb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bb-chips li { margin: 0; }
.bb-chips a { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--green-2); color: var(--green); font-size: .8rem; font-weight: 700; text-decoration: none; background: #fff; }
.bb-chips a:hover { background: var(--green); color: #fff; }
.bb-top__fine { margin: 10px 0 0; font-size: .72rem; color: var(--ink-soft); }

/* ----- Numbered contents strip ----- */
.bb-carnet { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: bbc; }
@media (min-width: 760px) { .bb-carnet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-carnet li { margin: 0; counter-increment: bbc; }
.bb-carnet a { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: .82rem; font-weight: 700; text-decoration: none; line-height: 1.25; }
.bb-carnet a::before { content: counter(bbc, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--green-2); }
.bb-carnet a:hover { background: var(--green); color: #fff; }
.bb-carnet a:hover::before { color: var(--lime); }

/* ----- Section numbers on H2 ----- */
.bb-page .entry-content h2[data-n]::after { content: attr(data-n); display: block; order: -1; }
.bb-num { display: inline-block; margin-right: 8px; font-family: var(--mono); font-size: .8em; color: var(--green-2); }

/* ----- Cards and boxes ----- */
.bb-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.2em; }
@media (min-width: 700px) { .bb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bb-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bb-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; min-width: 0; }
.bb-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.bb-card p { margin: 0 0 .5em; font-size: .93rem; }
.bb-card p:last-child { margin: 0; }
.bb-card__tag { display: inline-block; margin: 0 0 6px; padding: 1px 8px; border-radius: 999px; background: var(--green); color: var(--lime); font-family: var(--mono); font-size: .74rem; font-weight: 700; }
.bb-keep, .bb-watch { margin: 0 0 1.2em; padding: 12px 14px 12px 44px; border-radius: 10px; position: relative; font-size: .95rem; }
.bb-keep { background: var(--green-soft); }
.bb-watch { background: var(--red-soft); border: 1px solid var(--red-line); }
.bb-keep::before, .bb-watch::before { position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-weight: 800; font-size: .75rem; }
.bb-keep::before { content: "\2713"; background: var(--green-2); color: #fff; }
.bb-watch::before { content: "!"; background: #fff; color: #a4511b; border: 1px solid var(--red-line); }
.bb-keep p, .bb-watch p { margin: 0 0 .4em; }
.bb-keep p:last-child, .bb-watch p:last-child { margin: 0; }
.bb-keep__h, .bb-watch__h { font-weight: 800; }

/* ----- Court SVG ----- */
.bb-court { margin: 0 0 1.4em; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.bb-court svg { display: block; width: 100%; height: auto; }
.bb-court figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.bbc-floor { fill: #e9c58e; }
.bbc-line { stroke: #fff; stroke-width: 3; }
.bbc-three { fill: rgba(13, 59, 44, .12); }
.bbc-paint { fill: rgba(20, 92, 67, .55); stroke: #fff; stroke-width: 3; }
.bbc-paint--b { fill: rgba(20, 92, 67, .25); }
.bbc-ft { stroke: var(--lime); stroke-width: 4; }
.bbc-rim { stroke: #d2461b; stroke-width: 3; }
.bbc-tag rect { fill: var(--green); }
.bbc-tag text { fill: #fff; font: 700 15px var(--font); }
.bbc-tag--two rect { fill: var(--green-2); }
.bbc-tag--one rect { fill: var(--gold); }
.bbc-tag--one text { fill: var(--gold-ink); }
.bbc-note { fill: #5a3d10; font: 600 13px var(--font); }

/* ----- Spread board ----- */
.bb-board { margin: 0 0 1.2em; }
.bb-board table { width: 100%; }
.bb-board td { font-weight: 800; text-align: center; }
.bb-win { color: var(--green-2); background: rgba(183, 227, 74, .2); }
.bb-lose { color: #a4511b; background: var(--red-soft); }
.bb-board__note { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

/* ----- Tools ----- */
.bb-tools { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.4em; }
@media (min-width: 900px) { .bb-tools { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.bb-tool { padding: 16px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--card); min-width: 0; }
.bb-tool__h { margin: 0 0 10px; font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.05rem; }
.bb-seg { display: inline-flex; border: 1px solid var(--green-2); border-radius: 999px; overflow: hidden; margin: 0 0 12px; }
.bb-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-seg label { padding: 6px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--green); }
.bb-seg input:checked + label { background: var(--green); color: #fff; }
.bb-seg input:focus-visible + label { outline: 3px solid var(--gold); }
.bb-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-f { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); min-width: 0; }
.bb-f input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); background: #fff; }
.bb-f small { font-weight: 500; font-size: .72rem; line-height: 1.3; }
.bb-f:first-child { grid-column: 1 / -1; }
.bb-out { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--green-soft); font-size: .92rem; }
.bb-out.is-win { background: rgba(183, 227, 74, .3); }
.bb-out.is-push { background: #fff5d9; }
.bb-out.is-lose { background: var(--red-soft); }
.bb-tool__fine { margin: 8px 0 0; font-size: .76rem; color: var(--ink-soft); }

/* ----- Figures ----- */
.bb-fig { margin: 0 0 1.2em; }
.bb-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.bb-fig figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.bb-ph { margin: 0 0 1.2em; display: grid; place-items: center; aspect-ratio: 16 / 9; border: 2px dashed #b9c9bf; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f1f5f2 0 12px, #e9f0eb 12px 24px); color: var(--ink-soft); text-align: center; padding: 16px; font-size: .88rem; }
.bb-ph strong { display: block; color: var(--green); }

/* ----- Time table ----- */
.bb-time td:last-child, .bb-time th:last-child { font-weight: 800; color: var(--green); }
