/* Blackjack Trainer strategy pages. Generated by tools/sitegen. */
:root {
  --deep: #124232;
  --panel: #17503C;
  --felt: #1F6F52;
  --ivory: #FAF8F4;
  --ink: #12241C;
  --gold: #E7C784;
  --muted: #C4D9CF;
  --hair: #3A7B63;
  --k-h: #FFE08A;
  --k-s: #F4A9A0;
  --k-d: #9CCBF2;
  --k-p: #A8E0B5;
  --k-r: #D3BFEE;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ivory);
  background: var(--deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ivory); text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { text-decoration-color: var(--ivory); }
a:focus-visible, summary:focus-visible, .scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ivory); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 56px; }

header.site { background: linear-gradient(180deg, var(--felt), var(--deep)); border-bottom: 1px solid var(--hair); }
header.site .bar { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.brand { font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
header.site nav { display: flex; gap: 18px; font-size: 15px; }

footer.site { border-top: 1px solid var(--hair); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }
footer.site p { margin: 0 0 8px; }
footer.site a { color: var(--ivory); }

h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 8px 0 14px; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 20px; margin: 0 0 10px; color: var(--gold); letter-spacing: 0.01em; }
h3 { font-size: 17px; margin: 18px 0 6px; }
p { margin: 0 0 14px; }
section { margin-top: 32px; }
.sub { color: var(--muted); margin: 0 0 18px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.answer { background: var(--panel); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 18px 6px; margin-top: 18px; }
.lede { font-size: 19px; margin-bottom: 12px; }
.lede strong { color: var(--gold); }
ul.plays { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
ul.plays li { display: grid; grid-template-columns: 1fr; gap: 2px 14px; padding: 10px 12px; background: var(--deep); border-radius: 10px; border: 1px solid var(--hair); }
ul.plays .rule { color: var(--muted); font-size: 14px; }
ul.plays .move { font-weight: 800; font-size: 20px; }
ul.plays .alt { color: var(--muted); font-size: 15px; }
@media (min-width: 640px) {
  ul.plays li { grid-template-columns: 220px 1fr; align-items: baseline; }
  ul.plays .alt { grid-column: 2; }
}
.defs { color: var(--muted); font-size: 15px; margin: 0 0 14px; padding-left: 18px; }

ul.facts, ul.rules { margin: 0 0 14px; padding-left: 20px; }
ul.facts li, ul.rules li { margin-bottom: 6px; }
.note { color: var(--muted); font-size: 15px; }

table.data { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
table.data caption { text-align: left; color: var(--muted); font-size: 15px; padding: 0 0 8px; caption-side: top; }
table.data th, table.data td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--hair); font-size: 15px; }
table.data thead th { color: var(--gold); font-weight: 700; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
td.best { font-weight: 800; }
td.best .tag { color: var(--ink); background: var(--gold); border-radius: 6px; padding: 1px 6px; font-size: 12px; margin-left: 6px; font-weight: 700; }
.scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.faq h3 { margin-top: 20px; }
.faq p { color: var(--ivory); }

nav.related { margin-top: 32px; }
nav.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
nav.related li a { display: block; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--panel); text-decoration: none; }
nav.related li a:hover { border-color: var(--gold); }
nav.related .lab { display: block; color: var(--muted); font-size: 13px; }
@media (min-width: 640px) { nav.related ul { grid-template-columns: 1fr 1fr; } }

.cta { margin-top: 36px; padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--gold); }
.cta h2 { margin-bottom: 8px; }
.cta .fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
a.appstore { display: inline-flex; flex-direction: column; text-decoration: none; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; padding: 8px 18px 9px; line-height: 1.1; }
a.appstore .small { font-size: 11px; letter-spacing: 0.02em; }
a.appstore .big { font-size: 20px; font-weight: 600; }
a.appstore:hover { border-color: #fff; }

/* Charts: an ivory sheet so every cell color sits on a light surface with dark text. */
.sheet { background: var(--ivory); color: var(--ink); border-radius: 14px; padding: 14px; margin: 0 0 8px; }
.sheet h2 { color: var(--ink); }
table.chart { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 440px; font-size: 14px; }
table.chart caption { text-align: left; font-size: 14px; padding-bottom: 6px; color: var(--ink); }
table.chart th { font-weight: 700; padding: 5px 6px; background: #E8E3D8; color: var(--ink); border-radius: 4px; white-space: nowrap; }
table.chart th[scope="row"] { text-align: left; }
table.chart td { padding: 0; text-align: center; border-radius: 4px; color: var(--ink); }
table.chart td a { display: block; padding: 6px 2px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 4px; }
table.chart td a:hover { text-decoration: underline; }
table.chart td a:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
table.chart td.diff a { box-shadow: inset 0 0 0 2px var(--ink); }
.k-h { background: var(--k-h); }
.k-s { background: var(--k-s); }
.k-d, .k-ds { background: var(--k-d); }
.k-p, .k-ph, .k-pd { background: var(--k-p); }
.k-rh, .k-rs, .k-rp { background: var(--k-r); }
ul.key { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); font-size: 14px; }
ul.key li { display: flex; gap: 8px; align-items: baseline; }
ul.key .sw { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.sheet .note { color: #3b4a43; }
.linkgrid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.linkgrid a { display: block; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--panel); text-decoration: none; }
.linkgrid a:hover { border-color: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pills a { display: inline-block; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--panel); text-decoration: none; }
.pills a:hover { border-color: var(--gold); }
@media (max-width: 480px) {
  .sheet { padding: 10px; }
  table.chart { font-size: 12.5px; min-width: 0; border-spacing: 1px; }
  table.chart th { padding: 5px 3px; }
  table.chart td a { padding: 7px 0; }
}
@media print { body { background: #fff; color: #000; } a { color: #000; } }
