/* ── Blackjack variations — scoped page styles ────────────
   /blackjack/variations/, scoped under body.btf-bjv-page.

   Built 2026-10-01 in the style of the rebuilt blackjack guides: a felt hero
   card, paper sections, the rule-by-rule ledger on a tinted band, cards for
   each game's plays, 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-bjv-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;
	--give:      #3E7A5A;
	--take:      #9B3B34;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
body.btf-bjv-page .btf-th-hero-prose .hero-intro { margin: 0 0 1.3rem; }
body.btf-bjv-page .btf-th-hero-prose .bjv-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-bjv-page .bjv-quick b { color: #fff; }
body.btf-bjv-page .btf-bjv-hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; }
body.btf-bjv-page .btf-bjv-hero-cta a { min-height: 44px; }
body.btf-bjv-page .btf-bjv-hero-viz { display: flex; flex-direction: column; gap: .8rem; }
body.btf-bjv-page .btf-bjv-hero-viz-title { font-family: var( --mono ); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var( --gold-soft ); }

/* the board: four games, dealer hitting and standing on soft 17 */
body.btf-bjv-page .bjv-board { padding: 1.6rem; background: rgba( 244, 239, 230, .03 ); border: 1px solid rgba( 244, 239, 230, .16 ); border-radius: var( --radius-lg ); }
body.btf-bjv-page .bjv-board-head, body.btf-bjv-page .bjv-board-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: baseline; gap: 1rem; }
body.btf-bjv-page .bjv-board-head { align-items: end; padding-bottom: .8rem; border-bottom: 1px solid rgba( 244, 239, 230, .15 ); }
body.btf-bjv-page .bjv-board-head span { font-family: var( --mono ); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #D1C49F; text-align: right; text-wrap: balance; }
body.btf-bjv-page .bjv-board-row { padding: .95rem 0; border-bottom: 1px solid rgba( 244, 239, 230, .15 ); }
body.btf-bjv-page .bjv-board-row > span { font-family: var( --sans ); font-size: .86rem; color: #D1DAC8; }
body.btf-bjv-page .bjv-board-row.is-base > span { color: rgba( 244, 239, 230, .62 ); }
body.btf-bjv-page .bjv-board-row > strong { font-family: var( --serif ); font-weight: 400; font-size: 1.85rem; line-height: 1.1; color: var( --cream ); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.btf-bjv-page .bjv-board-row > strong.is-s17 { color: #E2CD9F; }
body.btf-bjv-page .bjv-board-row.is-base > strong { color: rgba( 244, 239, 230, .62 ); }
body.btf-bjv-page .btf-bjv-hero-viz .bjv-board .bjv-board-note { font-family: var( --sans ); font-size: .8rem; line-height: 1.7; color: #D4DDCC; margin: 1.05rem 0 .4rem; }
/* texas-holdem strips hero links to plain text at (0,6,2); this one keeps its underline */
body.btf-bjv-page .btf-bjv-hero .bjv-board a.bjv-board-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: paper, hairline between sections ───────────────────── */
body.btf-bjv-page .btf-bjv-section { padding: 3.6rem 0 3.4rem; border-bottom: 1px solid var( --hair ); scroll-margin-top: 80px; }
body.btf-bjv-page .btf-bjv-section.is-tinted { background: var( --tint ); }
body.btf-bjv-page .btf-bjv-section > .wrap > .btf-th-eyebrow { margin-bottom: .9rem; }
body.btf-bjv-page .btf-bjv-section h2.btf-th-display { margin: 0 0 .55em; font-size: clamp( 1.7rem, 3.4vw, 2.4rem ); }
body.btf-bjv-page .btf-bjv-section .btf-th-lede { margin: 0 0 1.7rem; color: var( --ink-2 ); max-width: 72ch; }
body.btf-bjv-page .btf-bjv-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-bjv-page .btf-bjv-section .wrap p:last-child { margin-bottom: 0; }
body.btf-bjv-page .btf-bjv-section .wrap p b, body.btf-bjv-page .btf-bjv-section .wrap .btf-th-lede b { color: var( --th-ink ); }
body.btf-bjv-page .btf-bjv-section .wrap p a, body.btf-bjv-page .bjv-callout a { color: var( --forest ); font-weight: 600; }
body.btf-bjv-page .btf-bjv-section .wrap .bjv-fine { font-size: .82rem; line-height: 1.6; color: var( --muted ); max-width: 95ch; }
body.btf-bjv-page .bjv-card-eyebrow { display: block; font-family: var( --mono ); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var( --gold ); }
body.btf-bjv-page .bjv-callout { border-left: 3px solid var( --gold ); background: var( --cream-2 ); padding: 1rem 1.3rem; margin: 1.4rem 0 0; font-family: var( --sans ); font-size: .95rem; line-height: 1.6; color: var( --ink-2 ); max-width: 81ch; }
body.btf-bjv-page .bjv-callout b { color: var( --th-ink ); }

/* two columns: prose and a card */
body.btf-bjv-page .bjv-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: start; }

/* ── what each game trades: tabs and the ledger ─────────────────────────── */
body.btf-bjv-page .bjv-trades { background: var( --cream-2 ); border: 1px solid var( --hair ); border-radius: var( --radius-lg ); padding: 1.6rem 1.75rem 1.5rem; }
body.btf-bjv-page .bjv-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.3rem; }
body.btf-bjv-page .bjv-tabs[hidden] { display: none; }
body.btf-bjv-page .bjv-tab { font: inherit; font-family: var( --sans ); font-size: .88rem; font-weight: 600; color: var( --forest ); background: #fff; border: 1px solid var( --line ); border-radius: 8px; padding: .55rem 1.05rem; min-height: 44px; cursor: pointer; }
body.btf-bjv-page .bjv-tab:hover { background: var( --cream ); }
body.btf-bjv-page .bjv-tab[aria-selected="true"] { background: var( --forest ); border-color: var( --forest ); color: var( --cream ); }
body.btf-bjv-page .bjv-tab:focus-visible { outline: 2px solid var( --gold ); outline-offset: 2px; }
body.btf-bjv-page .bjv-panel[hidden] { display: none; }
body.btf-bjv-page .bjv-panel + .bjv-panel { margin-top: 2rem; }
body.btf-bjv-page .bjv-trades.is-tabbed .bjv-panel + .bjv-panel { margin-top: 0; }
body.btf-bjv-page .btf-bjv-section .bjv-panel-title { font-family: var( --serif ); font-weight: 400; font-size: 1.55rem; line-height: 1.2; color: var( --forest ); margin: 0 0 .8rem; }
body.btf-bjv-page .bjv-trades.is-tabbed .bjv-panel-title { 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-bjv-page .bjv-ledger-head, body.btf-bjv-page .bjv-row { display: grid; grid-template-columns: minmax( 0, 1.7fr ) minmax( 0, 1fr ) 5.2rem 6.6rem; align-items: center; gap: 1.1rem; }
body.btf-bjv-page .bjv-ledger-head { padding-bottom: .55rem; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-ledger-head span { font-family: var( --mono ); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var( --muted ); }
body.btf-bjv-page .bjv-ledger-head span:nth-child(n+3) { text-align: right; }
body.btf-bjv-page .bjv-ledger { list-style: none; margin: 0; padding: 0; }
body.btf-bjv-page .bjv-row { padding: .8rem 0; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-row-label strong { display: block; font-family: var( --sans ); font-size: .95rem; font-weight: 600; line-height: 1.35; color: var( --th-ink ); }
body.btf-bjv-page .bjv-row-label span { display: block; font-family: var( --sans ); font-size: .8rem; line-height: 1.5; color: var( --muted ); margin-top: .15rem; }
body.btf-bjv-page .bjv-row-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: rgba( 28, 24, 20, .06 ); overflow: hidden; }
body.btf-bjv-page .bjv-row-bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: var( --w ); border-radius: 5px; }
body.btf-bjv-page .bjv-row.is-give .bjv-row-bar > span { background: var( --give ); }
body.btf-bjv-page .bjv-row.is-take .bjv-row-bar > span { background: var( --take ); }
body.btf-bjv-page .bjv-row.is-start .bjv-row-bar, body.btf-bjv-page .bjv-row.is-end .bjv-row-bar { background: none; }
body.btf-bjv-page .bjv-row-step { font-family: var( --sans ); font-size: .92rem; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.btf-bjv-page .bjv-row.is-give .bjv-row-step { color: var( --give ); }
body.btf-bjv-page .bjv-row.is-take .bjv-row-step { color: var( --take ); }
body.btf-bjv-page .bjv-run { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
body.btf-bjv-page .bjv-run strong { font-family: var( --serif ); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: var( --th-ink ); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.btf-bjv-page .bjv-run small { font-family: var( --mono ); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var( --muted ); margin-top: .2rem; white-space: nowrap; }
body.btf-bjv-page .bjv-run.is-you strong, body.btf-bjv-page .bjv-run.is-you small { color: var( --give ); }
body.btf-bjv-page .bjv-row.is-start { padding-top: .95rem; }
body.btf-bjv-page .bjv-row.is-end { border-bottom: 0; border-top: 2px solid var( --forest ); padding-top: 1rem; }
/* the total's thick rule replaces the last rule row's hairline: the total is always the ledger's last row */
body.btf-bjv-page .bjv-ledger > .bjv-row:nth-last-child(2) { border-bottom: 0; }
body.btf-bjv-page .bjv-row.is-end .bjv-row-label strong { font-family: var( --serif ); font-weight: 400; font-size: 1.3rem; color: var( --forest ); }
body.btf-bjv-page .bjv-row.is-end .bjv-run strong { font-size: 2rem; color: var( --forest ); }
body.btf-bjv-page .btf-bjv-section .wrap .bjv-panel-note { font-size: .8rem; line-height: 1.7; color: var( --muted ); max-width: 100ch; margin: 1rem 0 0; }

/* ── the cards beside the prose ─────────────────────────────────────────── */
body.btf-bjv-page .bjv-plays { background: var( --cream-2 ); border: 1px solid var( --hair ); border-radius: var( --radius-lg ); padding: 1.5rem; }
body.btf-bjv-page .bjv-play { padding: .95rem 0; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-card-eyebrow + .bjv-play { margin-top: .3rem; }
body.btf-bjv-page .bjv-play strong { display: block; font-family: var( --sans ); font-size: .95rem; font-weight: 700; color: var( --th-ink ); margin-bottom: .2rem; }
body.btf-bjv-page .bjv-play span { display: block; font-family: var( --sans ); font-size: .88rem; line-height: 1.6; color: var( --ink-2 ); }
body.btf-bjv-page .btf-bjv-section .wrap .bjv-plays-note { font-size: .76rem; line-height: 1.7; color: var( --muted ); margin: 1rem 0 0; max-width: none; }

/* Double Exposure: when to stand */
body.btf-bjv-page .bjv-de-head, body.btf-bjv-page .bjv-de-row { display: grid; grid-template-columns: 6.4rem minmax( 0, 1.2fr ) minmax( 0, 1fr ); gap: .9rem; align-items: baseline; }
body.btf-bjv-page .bjv-de-head { margin-top: .9rem; padding-bottom: .55rem; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-de-head span { font-family: var( --mono ); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var( --muted ); }
body.btf-bjv-page .bjv-de-row { padding: .7rem 0; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-de-row strong { font-family: var( --sans ); font-size: .9rem; font-weight: 700; color: var( --th-ink ); }
body.btf-bjv-page .bjv-de-row > span { font-family: var( --sans ); font-size: .84rem; line-height: 1.5; color: var( --ink-2 ); }
body.btf-bjv-page .bjv-de-lbl { 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; }

/* Switch: keep or switch */
body.btf-bjv-page .bjv-sw-row { display: grid; grid-template-columns: minmax( 0, 1fr ) auto auto; gap: .9rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid var( --line ); }
body.btf-bjv-page .bjv-card-eyebrow + .bjv-sw-row { margin-top: .3rem; }
body.btf-bjv-page .bjv-sw-deal strong { display: block; font-family: var( --sans ); font-size: .95rem; font-weight: 700; color: var( --th-ink ); }
body.btf-bjv-page .bjv-sw-deal strong span { font-weight: 400; color: var( --ink-2 ); }
body.btf-bjv-page .bjv-sw-deal > span { display: block; font-family: var( --sans ); font-size: .82rem; line-height: 1.5; color: var( --muted ); margin-top: .15rem; }
body.btf-bjv-page .bjv-sw-call { font-family: var( --mono ); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px; white-space: nowrap; }
body.btf-bjv-page .bjv-sw-call.is-switch { color: var( --cream ); background: var( --forest ); }
body.btf-bjv-page .bjv-sw-call.is-keep { color: var( --forest ); background: rgba( 62, 122, 90, .12 ); }
body.btf-bjv-page .bjv-sw-ev { display: grid; grid-template-columns: auto auto; gap: .1rem .7rem; margin: 0; }
body.btf-bjv-page .bjv-sw-ev > div { display: contents; }
body.btf-bjv-page .bjv-sw-ev dt { font-family: var( --mono ); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var( --muted ); align-self: center; }
body.btf-bjv-page .bjv-sw-ev dd { margin: 0; font-family: var( --sans ); font-size: .88rem; font-weight: 600; color: var( --th-ink ); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── the site table (felt header, stripes and radius come from base.css) ── */
body.btf-bjv-page .bjv-summary-wrap { overflow-x: auto; margin: 0 0 1rem; }
body.btf-bjv-page .bjv-summary-wrap .table-scroll-wrap { margin: 0; padding: 0; border: none; background: transparent; overflow: visible; }
body.btf-bjv-page .bjv-summary-table { width: 100%; margin: 0; font-family: var( --sans ); font-size: .92rem; }
/* caption read by screen readers; the section copy carries the same context */
body.btf-bjv-page .bjv-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-bjv-page .bjv-summary-table thead th { font-family: var( --mono ); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: rgba( 244, 239, 230, .85 ); font-weight: 600; padding: .75rem .8rem; border: none; text-align: left; vertical-align: bottom; }
body.btf-bjv-page .bjv-summary-table tbody th { text-align: left; font-family: var( --sans ); font-weight: 700; font-size: .98rem; text-transform: none; letter-spacing: 0; color: var( --th-ink ); padding: .7rem .8rem; border-bottom: 1px solid var( --hair ); }
body.btf-bjv-page .bjv-summary-table td { font-family: var( --sans ); font-size: .92rem; color: var( --ink-2 ); padding: .7rem .8rem; border-bottom: 1px solid var( --hair ); font-variant-numeric: tabular-nums; }

/* ── questions ──────────────────────────────────────────────────────────── */
body.btf-bjv-page .bjv-faq details { border-bottom: 1px solid var( --hair ); }
body.btf-bjv-page .bjv-faq details:first-child { border-top: 1px solid var( --hair ); }
body.btf-bjv-page .bjv-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-bjv-page .bjv-faq summary::-webkit-details-marker { display: none; }
body.btf-bjv-page .bjv-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-bjv-page .bjv-faq details[open] summary::after { content: '\2212'; }
body.btf-bjv-page .btf-bjv-section .wrap .bjv-faq p { font-size: .95rem; max-width: 77ch; margin: 0 0 1.3rem; padding-right: 1.5rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 1000px ) {
	body.btf-bjv-page .bjv-board { padding: 1.35rem; }
	body.btf-bjv-page .bjv-board-row > strong { font-size: 1.65rem; }
	body.btf-bjv-page .bjv-two { gap: 1.75rem; }
	body.btf-bjv-page .bjv-ledger-head, body.btf-bjv-page .bjv-row { grid-template-columns: minmax( 0, 1.6fr ) minmax( 0, .8fr ) 4.8rem 6.2rem; gap: .9rem; }
}
@media ( max-width: 800px ) {
	body.btf-bjv-page .btf-bjv-section { padding: 2.8rem 0 2.6rem; }
}
@media ( max-width: 760px ) {
	body.btf-bjv-page .bjv-board { max-width: 33rem; }
	body.btf-bjv-page .bjv-two { grid-template-columns: 1fr; gap: 1.25rem; }
	body.btf-bjv-page .bjv-plays { max-width: 36rem; }
	body.btf-bjv-page .bjv-trades { padding: 1.3rem; }
	/* the rule on its own line, then the bar, the change and the running edge */
	body.btf-bjv-page .bjv-ledger-head { display: none; }
	body.btf-bjv-page .bjv-row { grid-template-columns: minmax( 0, 1fr ) 4.6rem 6rem; gap: .5rem .8rem; }
	body.btf-bjv-page .bjv-row-label { grid-column: 1 / -1; }
	body.btf-bjv-page .bjv-row.is-start .bjv-row-bar, body.btf-bjv-page .bjv-row.is-end .bjv-row-bar { visibility: hidden; }
	body.btf-bjv-page .bjv-summary-table tbody th, body.btf-bjv-page .bjv-summary-table td { padding: .6rem .6rem; font-size: .86rem; }
	body.btf-bjv-page .bjv-summary-table thead th { padding: .6rem .6rem; }
}
@media ( max-width: 560px ) {
	body.btf-bjv-page .bjv-tabs { gap: .4rem; }
	body.btf-bjv-page .bjv-tabs .bjv-tab { flex: 1 1 auto; font-size: .82rem; padding: .5rem .6rem; }
	body.btf-bjv-page .bjv-de-head { display: none; }
	body.btf-bjv-page .bjv-de-row { grid-template-columns: 1fr; gap: .2rem; }
	body.btf-bjv-page .bjv-de-lbl { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; color: var( --muted ); }
	body.btf-bjv-page .bjv-sw-row { grid-template-columns: minmax( 0, 1fr ) auto; gap: .55rem .8rem; }
	body.btf-bjv-page .bjv-sw-deal { grid-column: 1 / -1; }
	body.btf-bjv-page .bjv-sw-call { justify-self: start; }
}
@media ( max-width: 480px ) {
	body.btf-bjv-page .bjv-board { padding: 1.2rem; }
	body.btf-bjv-page .bjv-board-head, body.btf-bjv-page .bjv-board-row { grid-template-columns: 1.3fr 1fr 1fr; gap: .6rem; }
	body.btf-bjv-page .bjv-board-head span { font-size: .56rem; letter-spacing: .06em; }
	body.btf-bjv-page .bjv-board-row > span { font-size: .8rem; }
	body.btf-bjv-page .bjv-board-row > strong { font-size: 1.45rem; }
	body.btf-bjv-page .bjv-trades { padding: 1.1rem; }
	body.btf-bjv-page .bjv-plays { padding: 1.25rem; }
	body.btf-bjv-page .bjv-row { grid-template-columns: minmax( 0, 1fr ) 4.3rem 5.6rem; }
	body.btf-bjv-page .bjv-run strong { font-size: 1.3rem; }
	body.btf-bjv-page .bjv-row.is-end .bjv-run strong { font-size: 1.7rem; }
	body.btf-bjv-page .bjv-summary-table thead th { font-size: .56rem; padding: .55rem .45rem; }
	body.btf-bjv-page .bjv-summary-table tbody th, body.btf-bjv-page .bjv-summary-table td { padding: .55rem .45rem; font-size: .8rem; }
}
@media ( max-width: 360px ) {
	body.btf-bjv-page .bjv-board-row > strong { font-size: 1.25rem; }
	body.btf-bjv-page .bjv-row { grid-template-columns: minmax( 0, 1fr ) 4rem 5.2rem; gap: .45rem .6rem; }
}
@media ( pointer: coarse ) {
	body.btf-bjv-page .bjv-faq summary { min-height: 44px; }
}
