html:has(body.dark-site) {
  color-scheme: dark;
  background: #0b111c;
}
body.dark-site {
  --ink: #edf3ff;
  --accent: #ffc08b;
  --accent-soft: #ffe0c3;
  --accent-pale: #302418;
  --muted: #aab9d1;
  --on-ink: #c5d4ed;
  --line: #74583f;
  color: var(--ink);
  background: #0b111c;
  color-scheme: dark;
}
.dark-site .preview {
  background: #172339;
  color: #c9d6ec;
  border-bottom: 1px solid #74583f;
  flex-wrap: wrap;
}
.dark-site .preview .dark-preview-context {
  color: #edf3ff;
  font-size: 12px;
}
.dark-site .preview small { font-size: 12px; line-height: 1.5; }
.dark-site .preview a { color: #ffe0c3; }
.dark-site .masthead { border-color: #74583f; }
.dark-site .mark,
.dark-site .intro h1 span,
.dark-site .library-note > span { color: #ffc08b; }
.dark-site .family summary {
  background: #121c2c;
  border-color: #a27a53;
  color: #edf3ff;
}
.dark-site .family > div {
  background: #33281d;
  border-color: #a27a53;
  color: #edf3ff;
}
.dark-site .family a:hover,
.dark-site .family a:focus-visible { background: #4e3825; color: #fff; }
.dark-site .button {
  background: #9f4b13;
  color: #fff;
}
.dark-site .button:hover { background: #803707; color: #fff; }
.dark-site .feature {
  background: #332416;
  color: #edf3ff;
  border: 0;
  box-shadow: inset 0 0 0 1px #83654d;
}
.dark-site .feature-top,
.dark-site .feature-bottom { border-color: #947455; }
.dark-site .feature-top .eyebrow,
.dark-site .feature-bottom,
.dark-site .feature-copy > p,
.dark-site .feature .deal-label,
.dark-site .feature .deal figcaption { color: #c5d4ed; }
.dark-site .feature .pill { border-color: #d8ae81; color: #edf3ff; }
.dark-site .feature-grid h2 em { color: #ffce9e; }
.dark-site .feature .button { background: #ffe0c3; color: #361e0b; }
.dark-site .feature .button:hover { background: #ffecd8; color: #361e0b; }
.dark-site .card {
  background: #f5f7fb;
  color: #14253a;
  border-color: #c5d0e0;
  box-shadow: 0 3px 0 #080e18;
}
.dark-site .card.red { color: #b3233a; }
.dark-site .feature .card { box-shadow: none; }
.dark-site .sponsor-panel {
  background: #292016;
  border-color: #977652;
  border-left-color: #e1a267;
  color: #edf3ff;
}
.dark-site .sponsor-label { color: #bac9e1; }
.dark-site .sponsor-link {
  background: #9f4b13;
  border-color: #d9aa78;
  color: #fff;
}
.dark-site .sponsor-link:hover {
  background: #803707;
  border-color: #ffd7b0;
  color: #fff;
}
.dark-site .path {
  background: #292016;
  border-color: #a07a50;
}
.dark-site .path:hover { background: #3b2a1c; }
.dark-site .number { background: #4a3321; color: #ffe0c3; }
.dark-site .more { border-color: #97734f; }
.dark-site .library-note { border-color: #97734f; }
.dark-site .topic-nav a {
  background: #302418;
  border-color: #a27a53;
  color: #ffe4c9;
}
.dark-site .topic-nav a:hover { background: #4e3825; color: #fff; }
.dark-site footer { background: #211a13; border-color: #97734f; }
.dark-site .masthead nav a:hover,
.dark-site footer nav a:hover,
.dark-site .text-link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffc08b;
}
.dark-site a:focus-visible,
.dark-site summary:focus-visible,
.dark-site [tabindex]:focus-visible,
.dark-site .sponsor-link:focus-visible {
  outline: 3px solid #ffd7b0;
  outline-offset: 5px;
}
.dark-site .skip { background: #ffe0c3; color: #361e0b; }
@media (max-width: 700px) {
  .dark-site .preview { gap: 9px 14px; }
  .dark-site .preview small { flex-basis: 100%; }
}

/* Shared reading and interactive surfaces; game accents come from the site palette. */
.dark-site { --surface:var(--accent-pale); --button-bg:#3265ce; --button-hover:#244ca4; }
.dark-site.game-omaha { --button-bg:#713caa; --button-hover:#532987; }
.dark-site.game-stud { --button-bg:#9f4b13; --button-hover:#803707; }
.dark-site a { color:var(--accent); }
.dark-site .brand,.dark-site .masthead nav a,.dark-site .path,.dark-site .feature a,.dark-site .topic-nav a { color:var(--ink); }
.dark-site .button,.dark-site input[type=submit],.dark-site button { background:var(--button-bg);color:#fff; }
.dark-site .button:hover,.dark-site input[type=submit]:hover,.dark-site button:hover {background:var(--button-hover);color:#fff;}
.dark-site .feature .button {background:var(--accent-soft);color:#14253a;}
.dark-site .feature .button:hover {background:#fff;color:#14253a;}
.dark-site .related,.dark-site .article-heading,.dark-site .reading-links,.dark-site .roadmap-note,.dark-site .model-note,.dark-site .library-controls,.dark-site .legacy-content .sidebar {border-color:var(--line);}
.dark-site .reading-links,.dark-site .roadmap-note,.dark-site .model-note,.dark-site .library-controls {background:var(--surface);color:var(--ink);}
.dark-site .legacy-content,.dark-site .legacy-content p,.dark-site .legacy-content li,.dark-site .legacy-content font {color:var(--ink)!important;}
.dark-site .legacy-content table,.dark-site table {background:var(--surface);color:var(--ink);border-color:var(--line);}
.dark-site .legacy-content th,.dark-site th {background:var(--button-bg)!important;color:#fff!important;border-color:var(--line);}
.dark-site .legacy-content td,.dark-site td {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line);}
.dark-site .legacy-content tr:nth-child(even) td,.dark-site tr:nth-child(even) td {background:#182235!important;}
.dark-site.game-omaha tr:nth-child(even) td {background:#2c223b!important;}
.dark-site.game-stud tr:nth-child(even) td {background:#382b1e!important;}
.dark-site .starting-chart,.dark-site .odds-table-frame {background:var(--surface);border-color:var(--line);border-top-color:var(--accent);}
.dark-site .starting-chart h2,.dark-site .odds-table caption {color:var(--ink)!important;background:var(--surface)!important;}
.dark-site .starting-chart table,.dark-site .odds-table {background:var(--surface)!important;}
.dark-site .starting-chart .chart-group-heading,.dark-site .odds-table thead th {background:var(--button-bg)!important;color:#fff!important;}
.dark-site .starting-chart .sh_type,.dark-site .starting-chart .chart-type-cell,.dark-site .odds-table tbody th {background:var(--surface)!important;color:var(--ink)!important;}
.dark-site .starting-chart .chart-spacer td,.dark-site .odds-table .odds-hint {background:var(--surface)!important;color:var(--muted)!important;}
.dark-site .odds-table tbody td:last-child {color:var(--accent-soft)!important;}
.dark-site .odds-description,.dark-site .odds-table .odds-description {color:var(--muted)!important;}
.dark-site .legacy-content .starting-callout {--callout-ink:var(--accent-soft);--callout-bg:var(--surface);--callout-line:var(--line);color:var(--ink);}
.dark-site .legacy-content .starting-callout[data-kind=tip] {--callout-ink:#a8e4c6;--callout-bg:#142c24;--callout-line:#537966;}
.dark-site .legacy-content .starting-callout[data-kind=warning] {--callout-ink:#ffdaa2;--callout-bg:#302619;--callout-line:#8d7149;}
.dark-site .starting-callout .callout-body,.dark-site .starting-callout .callout-body p {color:var(--ink)!important;}
.dark-site input:not([type=submit]):not([type=button]),.dark-site select,.dark-site textarea {background:var(--surface);color:var(--ink);border-color:var(--line);}
.dark-site input::placeholder,.dark-site textarea::placeholder {color:var(--muted);opacity:1;}
.dark-site input:focus-visible,.dark-site select:focus-visible,.dark-site textarea:focus-visible,.dark-site button:focus-visible {outline:3px solid var(--accent-soft);outline-offset:4px;}
.dark-site .legacy-content .card,.dark-site .card {background:#f5f7fb!important;color:#14253a!important;}
.dark-site .legacy-content .card.red,.dark-site .card.red {color:#b3233a!important;}
.dark-site .card span {color:inherit!important;}
.dark-site .legacy-content .cardexample,.dark-site .legacy-content .deal {background:var(--surface);}
.dark-site .legacy-content .cardexample *:not(.card):not(.card *) {color:var(--ink);}
.dark-site .table-scroll:focus-visible {outline:3px solid var(--accent-soft);outline-offset:4px;}
.dark-site .legacy-content .odds-draw-frame {background:var(--surface);border-color:var(--line);border-top-color:var(--accent);}
.dark-site .legacy-content .odds-draw-table,.dark-site .legacy-content .odds-draw-table caption {background:var(--surface);color:var(--ink);}
.dark-site .legacy-content .odds-draw-table thead th {background:var(--button-bg)!important;color:#fff!important;}
.dark-site .legacy-content .odds-draw-table tbody th,.dark-site .legacy-content .odds-draw-table tbody td {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;}
.dark-site .legacy-content .odds-draw-table tbody tr:nth-child(even)>th,.dark-site .legacy-content .odds-draw-table tbody tr:nth-child(even)>td {background:#182235!important;}
.dark-site .legacy-content .odds-draw-table tbody td:last-child {color:var(--accent-soft)!important;}
.dark-site .odds-draw-table .odds-out-description,.dark-site .legacy-content .odds-draw-frame .odds-scroll-hint {color:var(--muted)!important;background:var(--surface);}
.dark-site .odds-draw-scroll:focus {outline-color:var(--accent-soft);}
.dark-site .legacy-content .starting-chart {background:var(--surface);border-color:var(--line);border-top-color:var(--accent);box-shadow:none;}
.dark-site .legacy-content .starting-chart h2 {color:var(--ink)!important;}
.dark-site .legacy-content .starting-chart table.poker_hand {background:var(--surface);border-color:var(--line);}
.dark-site .legacy-content .starting-chart table.poker_hand th,.dark-site .legacy-content .starting-chart table.poker_hand td {color:var(--ink)!important;background:var(--surface)!important;border-color:var(--line)!important;}
.dark-site .legacy-content .starting-chart table.poker_hand th[colspan] {background:var(--button-bg)!important;color:#fff!important;}
.dark-site .legacy-content .starting-chart table.poker_hand th.sh_type {background:var(--surface)!important;}
.dark-site .legacy-content .starting-chart tbody+tbody th[colspan] {border-top-color:var(--surface)!important;}
.dark-site main div[style*="background"],.dark-site main p[style*="background"],.dark-site main aside[style*="background"] {background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;}

/* Approved homepage mascot placement; originals remain unchanged. */
/* Separate image-editor derivative, with genuine alpha transparency. TEST preview only. */
.dark-site.game-stud .masthead nav { gap: 20px; }
.dark-site.game-stud .intro {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: end;
}
.dark-site.game-stud .hero-mascot {
  width: 156px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.dark-site.game-stud .intro > div { grid-column: 2; grid-row: 1; }
.dark-site.game-stud .hero-mascot img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1100px) {
  .dark-site.game-stud .intro { grid-template-columns: 140px minmax(0, 1fr); }
  .dark-site.game-stud .hero-mascot { width: 140px; }
  .dark-site.game-stud .intro-copy { grid-column: 2; grid-row: 2; max-width: 620px; margin: 0; }
}
@media (max-width: 700px) {
  .dark-site.game-stud .masthead nav { gap: 10px 18px; }
  .dark-site.game-stud .intro { grid-template-columns: 72px minmax(0, 1fr); gap: 24px 16px; align-items: center; }
  .dark-site.game-stud .intro h1 { font-size: 36px; }
  .dark-site.game-stud .hero-mascot { width: 72px; padding: 0; }
  .dark-site.game-stud .intro-copy { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 0; }
}
@media (max-width: 360px) {
  .dark-site.game-stud .intro { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .dark-site.game-stud .hero-mascot { width: 64px; }
  .dark-site.game-stud .intro h1 { font-size: 32px; }
}
