/* ── Blackjack side bets — scoped page styles ─────────────
   /blackjack/side-bets/, scoped under body.btf-bjsb-page.

   Built 2026-10-01 in the style of the rebuilt blackjack guides: a felt hero
   card ranking what each bet keeps, the calculator on a tinted band, a
   ledger of the bets, the site table. Hero chrome shared with
   texas-holdem.css; serif for headings and display figures, Outfit for body
   and component text, mono for eyebrows and micro-labels. page.php wraps the
   content in .section-paper, so prose rules carry three classes to outrank
   base.css's `.section-paper > .wrap p:not([class])`.

   NOTE: do NOT alias --ink (circular with texas-holdem's --th-ink).
   ──────────────────────────────────────────────────────────────────────── */
body.btf-bjsb-page {
	--forest:    var( --th-forest );
	--gold:      var( --th-gold );
	--gold-soft: var( --th-gold-soft );
	--cream:     var( --th-cream );
	--cream-2:   var( --th-cream-2 );
	--ink-2:     var( --th-ink-2 );
	--muted:     var( --th-muted );
	--hair:      var( --th-hair );
	--line:      rgba( 28, 24, 20, .14 );
	--red:       var( --th-red );
	--serif:     var( --th-serif );
	--sans:      var( --th-sans );
	--mono:      var( --th-mono );
	--radius:    var( --th-radius );
	--radius-lg: var( --th-radius-lg );
	--tint:      #ECE6DA;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
body.btf-bjsb-page .btf-th-hero-prose .hero-intro { margin: 0 0 1.3rem; }
body.btf-bjsb-page .btf-th-hero-prose .bjsb-quick { font-family: var( --sans ); font-size: .95rem; line-height: 1.7; color: rgba( 244, 239, 230, .85 ); max-width: 52ch; margin: 0 0 1.8rem; }
body.btf-bjsb-page .bjsb-quick b { color: #fff; }
body.btf-bjsb-page .btf-bjsb-hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; }
body.btf-bjsb-page .btf-bjsb-hero-cta a { min-height: 44px; }
body.btf-bjsb-page .btf-bjsb-hero-viz { display: flex; flex-direction: column; gap: .8rem; }
body.btf-bjsb-page .btf-bjsb-hero-viz-title { font-family: var( --mono ); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var( --gold-soft ); }

/* the ranking: what each bet keeps of every $100 */
body.btf-bjsb-page .bjsb-rank { padding: 1.4rem 1.6rem 1.5rem; background: rgba( 244, 239, 230, .03 ); border: 1px solid rgba( 244, 239, 230, .16 ); border-radius: var( --radius-lg ); }
body.btf-bjsb-page .bjsb-rank-row { display: grid; grid-template-columns: minmax( 0, 1.35fr ) minmax( 0, 1fr ) 4.4rem; align-items: center; gap: .9rem; padding: .62rem 0; border-bottom: 1px solid rgba( 244, 239, 230, .13 ); }
body.btf-bjsb-page .bjsb-rank-name { font-family: var( --sans ); font-size: .84rem; color: #D1DAC8; }
body.btf-bjsb-page .bjsb-rank-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: rgba( 244, 239, 230, .08 ); overflow: hidden; }
body.btf-bjsb-page .bjsb-rank-bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: var( --w ); border-radius: 4px; background: #C88A7E; }
body.btf-bjsb-page .bjsb-rank-row > strong { font-family: var( --serif ); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var( --cream ); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.btf-bjsb-page .bjsb-rank-row.is-main .bjsb-rank-name, body.btf-bjsb-page .bjsb-rank-row.is-main > strong { color: #E2CD9F; }
body.btf-bjsb-page .bjsb-rank-row.is-main .bjsb-rank-bar > span { background: var( --gold-soft ); }
body.btf-bjsb-page .btf-bjsb-hero-viz .bjsb-rank .bjsb-rank-note { font-family: var( --sans ); font-size: .78rem; line-height: 1.65; color: #D4DDCC; margin: 1rem 0 .4rem; }
/* texas-holdem strips hero links to plain text at (0,6,2); this one keeps its underline */
body.btf-bjsb-page .btf-bjsb-hero .bjsb-rank a.bjsb-rank-link:not(.rc-cta):not(.btn-primary):not(.btn-ghost) { display: flex; align-items: center; gap: .3rem; min-height: 44px; padding-top: .6rem; border-top: 1px solid rgba( 244, 239, 230, .15 ); font-family: var( --sans ); font-size: .78rem; color: var( --cream ); text-decoration: underline; text-underline-offset: 3px; }

/* ── section rhythm ─────────────────────────────────────────────────────── */
body.btf-bjsb-page .btf-bjsb-section { padding: 3.6rem 0 3.4rem; border-bottom: 1px solid var( --hair ); scroll-margin-top: 80px; }
body.btf-bjsb-page .btf-bjsb-section.is-tinted { background: var( --tint ); }
body.btf-bjsb-page .btf-bjsb-section > .wrap > .btf-th-eyebrow { margin-bottom: .9rem; }
body.btf-bjsb-page .btf-bjsb-section h2.btf-th-display { margin: 0 0 .55em; font-size: clamp( 1.7rem, 3.4vw, 2.4rem ); }
body.btf-bjsb-page .btf-bjsb-section .btf-th-lede { margin: 0 0 1.7rem; color: var( --ink-2 ); max-width: 72ch; }
body.btf-bjsb-page .btf-bjsb-section .wrap p { font-family: var( --sans ); font-size: 1rem; line-height: 1.7; color: var( --ink-2 ); max-width: 68ch; margin: 0 0 1.15em; }
body.btf-bjsb-page .btf-bjsb-section .wrap p:last-child { margin-bottom: 0; }
body.btf-bjsb-page .btf-bjsb-section .wrap p a { color: var( --forest ); font-weight: 600; }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-fine { font-size: .82rem; line-height: 1.6; color: var( --muted ); max-width: 95ch; margin-top: 1rem; }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-fallback { padding: 1rem 1.2rem; background: var( --cream ); border: 1px solid var( --hair ); border-radius: var( --radius ); font-size: .95rem; margin-top: 1rem; }
body.btf-bjsb-page .bjsb-nw { white-space: nowrap; }

/* ── the calculator ─────────────────────────────────────────────────────── */
body.btf-bjsb-page .bjsb-tool { background: var( --cream-2 ); border: 1px solid var( --hair ); border-radius: var( --radius-lg ); padding: 1.75rem; }
body.btf-bjsb-page .bjsb-controls { display: grid; grid-template-columns: 1.25fr 1.6fr .8fr .9fr .9fr; gap: 1.1rem .95rem; align-items: end; }
body.btf-bjsb-page .bjsb-field { display: flex; flex-direction: column; gap: .45rem; font-family: var( --sans ); font-size: .84rem; color: var( --ink-2 ); min-width: 0; }
/* a set height: WebKit ignores min-height on a native select */
body.btf-bjsb-page .bjsb-field select { width: 100%; min-width: 0; font: inherit; font-family: var( --sans ); font-size: .95rem; color: var( --th-ink ); background: #fff; border: 1px solid var( --line ); border-radius: 7px; padding: 0 .7rem; height: 44px; box-sizing: border-box; }
body.btf-bjsb-page .bjsb-field select:focus { outline: 2px solid var( --gold ); outline-offset: 1px; }
body.btf-bjsb-page .bjsb-field select:disabled { color: var( --th-ink ); opacity: 1; background: var( --cream ); }
body.btf-bjsb-page .bjsb-out { display: grid; grid-template-columns: minmax( 0, .85fr ) minmax( 0, 1.15fr ); gap: 1.4rem; margin-top: 1.5rem; align-items: start; }
body.btf-bjsb-page .bjsb-figure { background: #fff; border: 1px solid var( --line ); border-radius: 10px; padding: 1.2rem 1.4rem 1.3rem; min-width: 0; }
body.btf-bjsb-page .bjsb-figure-name { display: block; font-family: var( --serif ); font-size: 1.6rem; line-height: 1.2; color: var( --forest ); }
body.btf-bjsb-page .bjsb-figure > strong { display: block; font-family: var( --serif ); font-weight: 400; font-size: 3.1rem; line-height: 1.2; color: var( --red ); margin: .45rem 0 0; font-variant-numeric: tabular-nums; }
body.btf-bjsb-page .bjsb-figure-sub { display: block; font-family: var( --sans ); font-size: .76rem; color: var( --muted ); margin-bottom: .9rem; }
body.btf-bjsb-page .bjsb-rows { margin: 0; }
body.btf-bjsb-page .bjsb-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var( --hair ); }
body.btf-bjsb-page .bjsb-rows dt { font-family: var( --sans ); font-size: .82rem; font-weight: 400; color: var( --ink-2 ); }
body.btf-bjsb-page .bjsb-rows dd { margin: 0; font-family: var( --sans ); font-size: .92rem; font-weight: 600; color: var( --th-ink ); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.btf-bjsb-page .bjsb-verdict { border-top: 1px solid var( --line ); margin-top: 1.4rem; padding-top: 1.35rem; }
body.btf-bjsb-page .btf-bjsb-section .bjsb-verdict h3 { font-family: var( --serif ); font-weight: 400; font-size: 1.7rem; line-height: 1.25; color: var( --forest ); margin: 0 0 .7rem; }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-verdict p { font-size: .95rem; max-width: 86ch; margin: 0; }
body.btf-bjsb-page .bjsb-notes { margin-top: 1.45rem; padding-top: .4rem; border-top: 1px solid var( --line ); }
body.btf-bjsb-page .bjsb-notes > summary { cursor: pointer; width: fit-content; min-height: 44px; padding: .75rem 0; box-sizing: border-box; font-family: var( --sans ); font-size: .84rem; font-weight: 600; color: var( --forest ); }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-notes p { font-size: .76rem; line-height: 1.75; color: var( --muted ); max-width: 100ch; margin: .6rem 0; }

/* ── tables: the pay-table ledger and the big prizes (felt header, stripes and radius from base.css) ── */
body.btf-bjsb-page .bjsb-paytable-wrap, body.btf-bjsb-page .bjsb-summary-wrap { overflow-x: auto; margin: 0; }
body.btf-bjsb-page .bjsb-paytable-wrap .table-scroll-wrap, body.btf-bjsb-page .bjsb-summary-wrap .table-scroll-wrap { margin: 0; padding: 0; border: none; background: transparent; overflow: visible; }
body.btf-bjsb-page .bjsb-paytable, body.btf-bjsb-page .bjsb-summary-table { width: 100%; margin: 0; font-family: var( --sans ); font-size: .9rem; }
/* captions read by screen readers; the section copy carries the same context */
body.btf-bjsb-page .bjsb-paytable caption, body.btf-bjsb-page .bjsb-summary-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect( 0 0 0 0 ); clip-path: inset( 50% ); white-space: nowrap; border: 0; }
body.btf-bjsb-page .bjsb-paytable thead th, body.btf-bjsb-page .bjsb-summary-table thead th { font-family: var( --mono ); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: rgba( 244, 239, 230, .85 ); font-weight: 600; padding: .7rem .75rem; border: none; text-align: left; vertical-align: bottom; }
body.btf-bjsb-page .bjsb-paytable tbody th, body.btf-bjsb-page .bjsb-summary-table tbody th, body.btf-bjsb-page .bjsb-paytable tfoot th { text-align: left; font-family: var( --sans ); font-weight: 600; font-size: .88rem; line-height: 1.4; text-transform: none; letter-spacing: 0; color: var( --th-ink ); padding: .6rem .75rem; border-bottom: 1px solid var( --hair ); }
body.btf-bjsb-page .bjsb-paytable td, body.btf-bjsb-page .bjsb-summary-table td { font-family: var( --sans ); font-size: .88rem; color: var( --ink-2 ); padding: .6rem .75rem; border-bottom: 1px solid var( --hair ); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.btf-bjsb-page .bjsb-paytable td:last-child { text-align: right; }
body.btf-bjsb-page .bjsb-paytable tfoot th, body.btf-bjsb-page .bjsb-paytable tfoot td { font-weight: 700; color: var( --th-ink ); border-bottom: 0; background: var( --cream ); }
body.btf-bjsb-page .bjsb-summary-table tbody th { font-weight: 700; font-size: .95rem; }
body.btf-bjsb-page .bjsb-summary-table td:last-child { font-weight: 700; color: var( --red ); }

/* ── the ledger ─────────────────────────────────────────────────────────── */
body.btf-bjsb-page .bjsb-ledger { border-top: 1px solid var( --line ); margin-top: .4rem; }
/* the section's own border closes the list, so the last bet draws none */
body.btf-bjsb-page .bjsb-ledger > .bjsb-rule:last-child { border-bottom: 0; }
body.btf-bjsb-page .bjsb-rule { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.25rem; padding: 1.45rem 0; border-bottom: 1px solid var( --line ); }
body.btf-bjsb-page .btf-bjsb-section .bjsb-rule h3 { font-family: var( --sans ); font-weight: 700; font-size: 1.06rem; line-height: 1.4; color: var( --th-ink ); margin: 0 0 .3rem; }
body.btf-bjsb-page .bjsb-rule-how { display: block; font-family: var( --sans ); font-size: .86rem; color: var( --ink-2 ); margin-bottom: .45rem; }
body.btf-bjsb-page .bjsb-rule-impact { display: block; font-family: var( --mono ); font-size: .7rem; line-height: 1.7; color: var( --gold ); }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-rule p { font-size: .95rem; margin: 0; }

/* ── questions ──────────────────────────────────────────────────────────── */
body.btf-bjsb-page .bjsb-faq details { border-bottom: 1px solid var( --hair ); }
body.btf-bjsb-page .bjsb-faq details:first-child { border-top: 1px solid var( --hair ); }
body.btf-bjsb-page .bjsb-faq summary { position: relative; list-style: none; cursor: pointer; font-family: var( --sans ); font-size: 1.02rem; font-weight: 600; line-height: 1.5; color: var( --th-ink ); padding: 1.15rem 2.4rem 1.15rem 0; }
body.btf-bjsb-page .bjsb-faq summary::-webkit-details-marker { display: none; }
body.btf-bjsb-page .bjsb-faq summary::after { content: '+'; position: absolute; right: .2rem; top: .9rem; font-family: var( --serif ); font-size: 1.6rem; line-height: 1; color: var( --gold ); }
body.btf-bjsb-page .bjsb-faq details[open] summary::after { content: '\2212'; }
body.btf-bjsb-page .btf-bjsb-section .wrap .bjsb-faq p { font-size: .95rem; max-width: 77ch; margin: 0 0 1.3rem; padding-right: 1.5rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 1000px ) {
	body.btf-bjsb-page .bjsb-rank { padding: 1.25rem 1.3rem 1.35rem; }
	body.btf-bjsb-page .bjsb-controls { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
	body.btf-bjsb-page .bjsb-controls > .bjsb-field:nth-child(2) { grid-column: span 2; }
	body.btf-bjsb-page .bjsb-out { grid-template-columns: 1fr; }
	body.btf-bjsb-page .bjsb-figure { max-width: 30rem; }
}
@media ( max-width: 800px ) {
	body.btf-bjsb-page .btf-bjsb-section { padding: 2.8rem 0 2.6rem; }
}
@media ( max-width: 760px ) {
	body.btf-bjsb-page .bjsb-rank { max-width: 33rem; }
	body.btf-bjsb-page .bjsb-tool { padding: 1.3rem; }
	body.btf-bjsb-page .bjsb-rule { grid-template-columns: 1fr; gap: .75rem; padding: 1.35rem 0; }
	body.btf-bjsb-page .btf-bjsb-section .bjsb-verdict h3 { font-size: 1.5rem; }
}
@media ( max-width: 560px ) {
	/* bet and pay table get a row each; decks, stake and pace share one */
	body.btf-bjsb-page .bjsb-controls { grid-template-columns: repeat( 6, minmax( 0, 1fr ) ); }
	body.btf-bjsb-page .bjsb-controls > .bjsb-field { grid-column: span 2; }
	body.btf-bjsb-page .bjsb-controls > .bjsb-field:nth-child(-n+2) { grid-column: 1 / -1; }
	body.btf-bjsb-page .bjsb-figure > strong { font-size: 2.7rem; }
}
@media ( max-width: 480px ) {
	body.btf-bjsb-page .bjsb-rank { padding: 1.1rem 1.1rem 1.2rem; }
	body.btf-bjsb-page .bjsb-rank-row { grid-template-columns: minmax( 0, 1.5fr ) minmax( 0, .8fr ) 3.9rem; gap: .6rem; }
	body.btf-bjsb-page .bjsb-rank-name { font-size: .78rem; }
	body.btf-bjsb-page .bjsb-rank-row > strong { font-size: 1.15rem; }
	body.btf-bjsb-page .bjsb-tool { padding: 1.1rem; }
	body.btf-bjsb-page .bjsb-controls { gap: .95rem .6rem; }
	body.btf-bjsb-page .bjsb-paytable thead th, body.btf-bjsb-page .bjsb-summary-table thead th { font-size: .56rem; padding: .55rem .5rem; }
	body.btf-bjsb-page .bjsb-paytable tbody th, body.btf-bjsb-page .bjsb-paytable td, body.btf-bjsb-page .bjsb-paytable tfoot th, body.btf-bjsb-page .bjsb-summary-table tbody th, body.btf-bjsb-page .bjsb-summary-table td { padding: .55rem .5rem; font-size: .8rem; }
	/* five columns do not fit a phone: keep the hand, the odds against it and what it pays */
	body.btf-bjsb-page .bjsb-summary-table th:nth-child(2), body.btf-bjsb-page .bjsb-summary-table td:nth-child(2), body.btf-bjsb-page .bjsb-summary-table th:nth-child(3), body.btf-bjsb-page .bjsb-summary-table td:nth-child(3) { display: none; }
}
@media ( max-width: 360px ) {
	/* four columns do not fit: the pay ledger drops how often each hand comes (the next section has the big ones) */
	body.btf-bjsb-page .bjsb-paytable th:nth-child(3), body.btf-bjsb-page .bjsb-paytable td:nth-child(3) { display: none; }
	body.btf-bjsb-page .bjsb-controls { grid-template-columns: 1fr; }
	body.btf-bjsb-page .bjsb-controls > .bjsb-field, body.btf-bjsb-page .bjsb-controls > .bjsb-field:nth-child(-n+2) { grid-column: auto; }
	body.btf-bjsb-page .bjsb-rank-row { grid-template-columns: minmax( 0, 1fr ) 3.7rem; }
	body.btf-bjsb-page .bjsb-rank-bar { display: none; }
}
@media ( pointer: coarse ) {
	body.btf-bjsb-page .bjsb-field select { font-size: 16px; }
	body.btf-bjsb-page .bjsb-faq summary { min-height: 44px; }
}
