/*
 * base.css - Reset + typography + chrome (header/footer/nav).
 * Light Editorial Dossier. Mobile-first.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: var(--hairline); margin: var(--s-7) 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
p  { margin: 0 0 var(--s-4); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--s-3);
}
.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Layout primitives - full width unless deliberately constrained */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--prose { max-width: var(--container); }  /* prose now fills container; sidebar templates override */

/* Section divider with numbered label */
.section-rule {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-7) 0 var(--s-5);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-rule::before { content: ""; width: 32px; height: 1px; background: var(--brand); }
.section-rule__num { color: var(--brand); font-weight: 700; }
.section-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; z-index: 1000;
  font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* === Header: light + readable === */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,241,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}
.masthead__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.masthead__brand-mark {
  width: 36px; height: 36px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.masthead__brand-name { letter-spacing: -0.02em; line-height: 1; }
.masthead__brand-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  font-weight: 500;
  margin-top: 2px;
}

.masthead__nav { display: none; }
@media (min-width: 960px) {
  .masthead__nav {
    display: flex;
    gap: var(--s-3);
    align-items: center;
    justify-self: center;
  }
}
.masthead__item { position: relative; }
.masthead__link {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: var(--s-2) var(--s-3);
  border: 1px solid transparent;
  transition: color var(--dur-quick), border-color var(--dur-quick);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.masthead__link:hover { color: var(--brand); border-color: var(--rule); }
.masthead__link--current { color: var(--brand); border-bottom: 1px solid var(--brand); }
.masthead__caret { width: 8px; height: 8px; opacity: 0.7; }

/* Desktop dropdowns */
.masthead__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(26,24,20,0.08);
  list-style: none;
  padding: var(--s-2);
  margin: 0;
  z-index: 110;
}
.masthead__item:hover > .masthead__submenu,
.masthead__item:focus-within > .masthead__submenu {
  display: block;
}
.masthead__sub-item { position: relative; list-style: none; }
.masthead__sublink {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--t-small);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  justify-content: space-between;
}
.masthead__sublink:hover { background: var(--brand-soft); color: var(--brand); }
.masthead__sublink img { width: 22px !important; height: 22px !important; max-width: 22px; max-height: 22px; flex-shrink: 0; object-fit: contain; }
.masthead__sublink-name { flex: 1; }
.masthead__sublink-arrow { color: var(--ink-mute); font-family: var(--font-mono); font-size: 14px; }

/* Third-level games menu */
.masthead__games {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(26,24,20,0.08);
  list-style: none;
  padding: var(--s-2);
  margin: 0;
}
.masthead__sub-item:hover > .masthead__games,
.masthead__sub-item:focus-within > .masthead__games {
  display: block;
}
.masthead__gamelink {
  display: block;
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--t-small);
  color: var(--ink-dim);
  border-radius: 2px;
  white-space: nowrap;
}
.masthead__gamelink:hover { background: var(--brand-soft); color: var(--brand); }

.masthead__issue {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.5;
}
@media (min-width: 75rem) { .masthead__issue { display: block; } }

.masthead__menu-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  padding: 0;
}
@media (min-width: 960px) { .masthead__menu-btn { display: none; } }

/* Drawer - mobile */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--gutter);
  border-bottom: var(--hairline);
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.drawer__close {
  background: transparent; border: 1px solid var(--rule-strong);
  width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--ink);
}
.drawer__body { padding: var(--s-5) var(--gutter) var(--s-8); }
.drawer__group { margin-bottom: var(--s-6); }
.drawer__group-title {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: var(--hairline);
}
.drawer__link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink);
  font-size: var(--t-h4);
  font-family: var(--font-serif);
}
.drawer__link img { width: 28px !important; height: 28px !important; max-width: 28px; max-height: 28px; border-radius: 4px; object-fit: contain; }
.drawer__link:hover { color: var(--brand); }

/* Mobile expandable brand → games */
.drawer__brand-block { border-bottom: 1px dashed var(--rule); }
.drawer__brand-block:last-child { border-bottom: 0; }
.drawer__brand-head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  font-family: var(--font-serif); font-size: var(--t-h4); color: var(--ink);
  background: transparent; border: none; width: 100%; text-align: left;
}
.drawer__brand-head img { width: 28px !important; height: 28px !important; max-width: 28px; max-height: 28px; object-fit: contain; }
.drawer__brand-name { flex: 1; }
.drawer__brand-caret {
  font-family: var(--font-mono); font-size: 14px; color: var(--brand);
  transition: transform var(--dur-quick);
}
.drawer__brand-block[data-open="true"] .drawer__brand-caret { transform: rotate(45deg); }
.drawer__games-list { display: none; padding: 0 0 var(--s-3) 40px; }
.drawer__brand-block[data-open="true"] .drawer__games-list { display: block; }
.drawer__game-link {
  display: block; padding: 8px 0; font-family: var(--font-sans);
  font-size: 14px; color: var(--ink-dim); border-bottom: 1px dotted var(--rule);
}
.drawer__game-link:last-child { border-bottom: 0; }
.drawer__game-link:hover { color: var(--brand); }
.drawer__brand-overview {
  display: block; padding: 8px 0;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
  border-bottom: 1px dotted var(--rule);
}

/* === Footer === */
.colophon {
  margin-top: var(--s-10);
  padding: var(--s-8) 0 var(--s-6);
  border-top: 2px solid var(--rule-strong);
  background: var(--paper-2);
}
.colophon__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (min-width: 700px) { .colophon__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.colophon__brand { max-width: 380px; }
.colophon__brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 var(--s-3);
}
.colophon__bio {
  font-size: var(--t-small);
  color: var(--ink-dim);
  line-height: var(--lh-base);
}
.colophon__col-title {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.colophon__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.colophon__list a {
  color: var(--ink-dim);
  font-size: var(--t-small);
  display: inline-block;
  padding: 4px 0;
}
.colophon__list a:hover { color: var(--brand); }

.colophon__bottom {
  border-top: var(--hairline);
  padding-top: var(--s-5);
  display: grid;
  gap: var(--s-3);
}
.colophon__legal {
  font-size: var(--t-tiny);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.colophon__disclaimer {
  font-size: var(--t-small);
  color: var(--ink-mute);
  line-height: var(--lh-base);
  margin: 0;
}
.colophon__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  margin-right: var(--s-3);
}

/* Breadcrumbs */
.crumbs {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-4);
}
.crumbs a { color: var(--ink-mute); border-bottom: 1px dotted var(--rule-strong); padding-bottom: 2px; }
.crumbs a:hover { color: var(--brand); border-color: var(--brand); }
.crumbs__sep { margin: 0 var(--s-2); color: var(--ink-faint); }
.crumbs__current { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--dur-quick), color var(--dur-quick), background var(--dur-quick);
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { filter: brightness(0.92); color: #fff; border-color: var(--brand); }
.btn--ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink-dim); }
.btn--quiet {
  border: none; padding: 4px 0;
  letter-spacing: 0.15em; font-size: var(--t-tiny);
  background: transparent; color: var(--brand);
  border-bottom: 1px solid var(--brand);
}

/* Prose */
.prose {
  font-size: var(--t-body);
  line-height: var(--lh-loose);
  color: var(--ink);
  /* full width by default, sidebar templates override via per-page CSS */
}
.prose h2 {
  font-size: var(--t-h2);
  margin: var(--s-7) 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  position: relative;
}
.prose h2::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 64px; height: 2px; background: var(--brand);
}
.prose h3 { margin: var(--s-5) 0 var(--s-3); color: var(--brand); }
.prose p { margin: 0 0 var(--s-4); }
.prose ul, .prose ol { margin: 0 0 var(--s-5); padding-left: var(--s-5); }
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }
.prose ul li::marker { color: var(--brand); }
.prose a { color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.prose a:hover { color: var(--brand-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-dim);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--brand);
}
.prose pre {
  background: var(--surface-2);
  padding: var(--s-4);
  overflow-x: auto;
  border: var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--t-small);
}
/* Table scroll wrapper - prevents horizontal overflow on mobile */
.md-table-wrap,
.prose .md-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--s-5) 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  /* Visual hint that table is scrollable - subtle gradient shadow on right edge */
  background-image:
    linear-gradient(to right, var(--surface), var(--surface)),
    linear-gradient(to right, var(--surface), var(--surface)),
    linear-gradient(to right, rgba(0,0,0,0.08), rgba(255,255,255,0)),
    linear-gradient(to left,  rgba(0,0,0,0.08), rgba(255,255,255,0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-color: var(--surface);
  background-size: 20px 100%, 20px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.md-table-wrap:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.md-table-wrap > table,
.md-table-wrap > .md-table {
  margin: 0;
  border: 0;
  /* No min-width: tables size to their natural content; wrapper scrolls only
     when content exceeds viewport. Tables with many columns (e.g. ledger__table)
     set their own min-width in per-page CSS. */
}
/* Mobile-only: ensure markdown tables with 4+ columns always scroll horizontally */
@media (max-width: 640px) {
  .md-table-wrap > .md-table {
    min-width: 540px;
  }
}
.prose table, .prose .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: var(--t-small);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.prose table th, .prose table td,
.prose .md-table th, .prose .md-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: var(--hairline);
  vertical-align: top;
}
.prose table th, .prose .md-table th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  border-bottom: 2px solid var(--brand);
}
.prose hr { margin: var(--s-6) 0; }

/* R6 wrapper visual styles - light edition */
.cb {
  margin: var(--s-5) 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
}
.cb__title {
  font-family: var(--font-mono);
  font-size: var(--t-tiny);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--s-3);
  font-weight: 700;
}
.cb--summary-card { background: var(--highlight-pale); border-left-color: var(--gold); }
.cb--feature-box  { background: var(--surface); border-left-color: var(--steel); }
.cb--warning      { background: rgba(155,52,52,0.05); border-left-color: var(--crimson); }
.cb--callout, .cb--info-box { background: var(--surface-2); border-left-color: var(--brand); }
.cb--step         { background: var(--surface); border-left-color: var(--plum); }
.cb--pros-cons    { background: var(--surface); border-left-color: var(--forest); }
.cb--verdict      { background: var(--highlight-pale); border-left: 4px solid var(--gold); padding: var(--s-6); }
.cb--comparison   { padding: 0; background: transparent; border: var(--hairline); border-left: 3px solid var(--brand); }
.cb--comparison table, .cb--comparison .md-table { margin: 0; border: 0; }
.cb--tip          { background: rgba(72,111,72,0.05); border-left-color: var(--forest); }
.cb--note         { background: var(--surface-2); border-left-color: var(--ink-mute); }
.cb--alert        { background: rgba(155,52,52,0.06); border-left-color: var(--crimson); }
.cb--methodology-block { background: var(--surface-2); border-left-color: var(--steel); }
.cb--story        { background: var(--surface); border-left-color: var(--plum); }
.cb--quote-block  {
  background: var(--surface-2); border-left: 4px solid var(--brand);
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem;
}
.cb--cta-block    { background: var(--brand-soft); border-left-color: var(--brand); }
.cb--grid         { background: transparent; border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.cb--grid > .cb   { margin: 0; }
.cb--stat-row     { background: var(--surface-2); border-left-color: var(--brand); padding: var(--s-3) var(--s-4); }
.cb--faq          { background: var(--surface); border: 1px solid var(--rule); padding: var(--s-5); }
.cb p:last-child { margin-bottom: 0; }
.cb ul, .cb ol { margin-bottom: 0; }

.prose details {
  margin: var(--s-3) 0;
  padding: var(--s-4) var(--s-5);
  border: var(--hairline);
  background: var(--surface);
}
.prose details summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--brand);
  font-family: var(--font-mono);
}
.prose details[open] summary { margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: var(--hairline); }
.prose details[open] summary::before { content: "−"; }
.prose .faq-item__q { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.prose .faq-item__a { color: var(--ink-dim); }

/* === Mobile breakpoint (≤640px) - required by T22 MOBILE === */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.7rem); }
  h3 { font-size: 1.2rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .masthead__row { gap: 12px; min-height: 60px; }
  .prose h2 { margin: 32px 0 16px; }
  .prose blockquote { font-size: 1.05rem; padding: 16px 18px; }
  .prose table, .prose .md-table { font-size: 14px; }
  .prose table th, .prose table td,
  .prose .md-table th, .prose .md-table td { padding: 8px 10px; }
  .cb { padding: 18px; margin: 20px 0; }
  .colophon { padding: 48px 0 32px; }
  .colophon__top { gap: 32px; }
  .btn { padding: 10px 18px; font-size: 14px; }
}

/* === Hover-only interaction guard - required by T22 MOBILE === */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .masthead__link:hover { color: var(--brand); border-color: var(--rule); }
  .prose a:hover { color: var(--brand-2); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Print */
@media print {
  .masthead, .colophon, .skip-link { display: none; }
  body { background: white; color: black; }
}

/* Blog CTA blocks injected by Phase 3.12 - bespoke per cluster but shared base */
.blog-cta { padding: var(--s-7) 0; border-top: 2px solid var(--brand); border-bottom: 1px solid var(--rule); background: var(--brand-soft); }
.blog-cta__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.blog-cta__eyebrow { display: block; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-3); }
.blog-cta__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 var(--s-3); color: var(--ink); }
.blog-cta__body { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.55; max-width: 680px; margin: 0 auto var(--s-4); }
.blog-cta__actions { display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }

.blog-cta--rankings    { background: rgba(161,122,28,0.08); border-top-color: #a17a1c; }
.blog-cta--fairness    { background: rgba(72,111,72,0.08);  border-top-color: #486f48; }
.blog-cta--strategy    { background: rgba(155,52,52,0.08);  border-top-color: #9b3434; }
.blog-cta--tokens      { background: rgba(110,77,140,0.08); border-top-color: #6e4d8c; }
.blog-cta--comparison  { background: rgba(61,96,144,0.08);  border-top-color: #3d6090; }
.blog-cta--default     { background: rgba(161,122,28,0.08); border-top-color: #a17a1c; }

/* T22 MOBILE fixes - overflow guard, safe-area, tap-target, srcset hints */
/* overflow-x: clip (NOT hidden) — clip prevents horizontal scroll without breaking position:sticky on .masthead */
html, body { overflow-x: clip; max-width: 100%; }
body { padding-bottom: env(safe-area-inset-bottom, 0); padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
/* Overflow guard for content blocks — does NOT include .container so desktop max-width 1280px is preserved */
main, section, article { max-width: 100%; overflow-x: clip; }
@media (max-width: 640px) {
  /* Tap targets ≥44×44 (WCAG 2.5.5) for all interactive elements */
  a, button, [role="button"], input[type="button"], input[type="submit"], .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
  /* Mobile nav stays comfortably tappable */
  .masthead__link, .drawer__link, .masthead__sublink {
    min-height: 44px;
    padding: 10px 14px;
  }
}
img { max-width: 100%; height: auto; }
/* Responsive images hint — apply width:100% ONLY to in-content images (article/prose body).
   Avatars, logos, icons with explicit width/height attributes keep their declared size. */
.prose img:not([srcset]):not([sizes]):not([width]):not([height]) { width: 100%; height: auto; }


/* T55 monetization signals - appended by step8b */
.casino-monetization { padding: var(--s-7) 0; border-top: 2px solid var(--brand); background: var(--brand-soft); }
.casino-monetization__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 var(--s-5); color: var(--ink); text-align: center; }
.casino-monetization__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); max-width: 68.75rem; margin: 0 auto; }
.rating-block, .verdict-block, .cta-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.rating-block__label, .verdict-block__label, .cta-block__hook {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.rating-block__score { font-family: var(--font-serif); font-size: 2.4rem; color: var(--brand); font-weight: 700; line-height: 1; }
.rating-block__scale { font-size: 0.9rem; color: var(--ink-dim); }
.verdict-block__text { margin: 0; line-height: 1.5; color: var(--ink); }
.cta-primary {
  display: inline-block; padding: 14px 22px; background: var(--brand); color: var(--paper);
  border: 0; border-radius: 4px; font-family: var(--font-mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
  text-align: center; text-decoration: none;
}
.cta-secondary {
  display: inline-block; padding: 14px 22px; border: 1px solid var(--brand);
  color: var(--brand); border-radius: 4px; font-family: var(--font-mono);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; text-align: center; margin-top: var(--s-2);
}

/* Shared author signoff partial - used in game + blog family templates */
.author-signoff {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.author-signoff__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-5);
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .author-signoff__row { grid-template-columns: 64px 1fr; gap: var(--s-4); }
}
.author-signoff__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--surface-2);
}
@media (max-width: 600px) {
  .author-signoff__avatar { width: 64px; height: 64px; }
}
.author-signoff__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.15;
}
.author-signoff__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.author-signoff__role a { color: var(--gold); border-bottom: 1px dashed var(--gold); }
.author-signoff__contact {
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.5;
}
.author-signoff__contact a { color: var(--brand); border-bottom: 1px solid var(--brand); }

/* Zero-edge explainer callout - prominent treatment for 100% RTP / zero-edge brand claims (Duel/Gamdom) */
.cb--zero-edge {
  background: linear-gradient(135deg, rgba(72,111,72,0.08), rgba(161,122,28,0.04));
  border-left: 4px solid var(--forest);
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5);
  margin: var(--s-5) 0;
  position: relative;
}
.cb--zero-edge::before {
  content: "0% EDGE EXPLAINER";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  background: var(--paper);
  padding: 3px 10px;
  border: 1px solid var(--forest);
  margin-bottom: var(--s-3);
}
.cb--zero-edge > p:first-of-type { margin-top: var(--s-3); }
.cb--zero-edge ul, .cb--zero-edge ol { margin-bottom: 0; }
.cb--zero-edge strong { color: var(--ink); font-weight: 700; }

/* Task 7: Game-basics educational primer for newbies (per-game) */
.cb--game-basics {
  background: linear-gradient(180deg, rgba(95,138,184,0.07), rgba(95,138,184,0.03));
  border: 1px solid var(--steel);
  border-left: 4px solid var(--steel);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-4) 0;
  position: relative;
  border-radius: 0;
}
.cb--game-basics::before {
  content: "BASICS FOR NEWBIES";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--steel);
  background: var(--paper);
  padding: 3px 10px;
  border: 1px solid var(--steel);
  margin-bottom: var(--s-3);
}
.cb--game-basics > p:first-of-type { margin-top: var(--s-3); }
.cb--game-basics p { color: var(--ink-dim); line-height: 1.6; }
.cb--game-basics strong { color: var(--ink); font-weight: 700; }

/* Task 7: Unique-feature highlight (centered, prominent for the per-game math/technical specifics) */
.cb--unique-feature {
  background: var(--paper-2);
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
  border-left: 0;
  padding: var(--s-5) var(--s-5);
  margin: var(--s-5) 0;
  text-align: left;
  position: relative;
}
.cb--unique-feature::before {
  content: "UNIQUE FEATURE";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--gold);
}
.cb--unique-feature p, .cb--unique-feature ul, .cb--unique-feature ol { color: var(--ink); }
.cb--unique-feature strong { color: var(--ink); font-weight: 700; }

/* Task 8: Relevant-casino CTA card (used in blog sidebars / inline) */
.blog-casino-cta {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: var(--hairline);
  border-top: 3px solid var(--brand);
  margin-top: var(--s-4);
}
.blog-casino-cta__head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.blog-casino-cta__mark {
  width: 64px; height: 64px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  padding: 6px;
}
.blog-casino-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 4px;
}
.blog-casino-cta__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.blog-casino-cta__verdict {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0;
}
.blog-casino-cta__stats {
  list-style: none;
  display: flex;
  gap: var(--s-4);
  margin: 0;
  padding: var(--s-2) 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  font-family: var(--font-mono);
}
.blog-casino-cta__stats li { display: flex; flex-direction: column; gap: 2px; }
.blog-casino-cta__stats strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}
.blog-casino-cta__stats span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.blog-casino-cta__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.blog-casino-cta__actions .btn { width: 100%; text-align: center; font-size: 0.8rem; padding: 9px 10px; }
.btn--sm { padding: 9px 14px; font-size: 0.8rem; }

/* Task 8: 2-column body+sidebar layout for default blog cluster */
.bd-body__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .bd-body__layout { grid-template-columns: 1fr 320px; gap: var(--s-6); align-items: start; }
}
.bd-body__sidebar { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 88px; }
@media (max-width: 959px) { .bd-body__sidebar { position: static; } }

/* Task 10: Back-to-top button (fixed bottom-right, scroll-revealed) */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--brand);
  background: var(--paper);
  color: var(--brand);
  cursor: pointer;
  font-family: var(--font-mono);
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), background var(--dur-quick), color var(--dur-quick);
}
.back-to-top[hidden] { display: none; }
.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover, .back-to-top:focus-visible {
  background: var(--brand);
  color: var(--paper);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.back-to-top__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 600px) {
  .back-to-top { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .back-to-top svg { width: 18px; height: 18px; }
  .back-to-top__label { font-size: 0.58rem; }
}

/* WCAG visually-hidden utility (for screen-reader only text on icon buttons) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
