:root {
  --docs-header-h: 84px;
  --docs-sidebar-w: 300px;
}

body.docs-app-body .docs-app-main {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.docs-portal-wrapper {
  padding-top: var(--docs-header-h);
  width: 100%;
  background: transparent !important;
  color: #E2E8F0;
  position: relative;
}

.docs-portal-container {
  display: grid;
  grid-template-columns: var(--docs-sidebar-w) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Documentation pages (generated by scripts/build.mjs). Moved out of the former inline <style> of documentation.html. */

/* ==========================================================================
   COLONNE GAUCHE : SOMMAIRE COLLÉ À GAUCHE + BARRE DE RECHERCHE STICKY
   ========================================================================== */
.docs-sidebar-dock {
  height: calc(100vh - var(--docs-header-h));
  position: sticky !important;
  top: var(--docs-header-h) !important;
  background: rgba(10, 13, 24, 0.85);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Empêche la barre de recherche de bouger */
  padding: 0;
  gap: 0;
}

/* Conteneur Sticky de la barre de filtre en haut du sommaire */
.docs-search-sticky-box {
  flex-shrink: 0;
  padding: 16px 18px;
  background: rgba(10, 13, 24, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 5;
}

.docs-search-card {
  position: relative;
  margin: 0;
}

.docs-search-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.docs-search-input {
  width: 100%;
  box-sizing: border-box;
  padding-block: 10px;
  padding-inline: 38px 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.docs-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.12);
}

.docs-search-clear {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.18s ease;
}
.docs-search-clear:hover {
  color: #FFFFFF;
}

/* Zone scrollable des catégories sous la barre de recherche */
.docs-categories-nav {
  flex: 1;
  overflow-y: auto;
  padding-block: 14px 48px;
  padding-inline: 18px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.docs-categories-nav::-webkit-scrollbar {
  width: 6px;
}
.docs-categories-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

/* Séparateurs de catégories façon Google Developers */
.docs-nav-category {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.docs-nav-category:last-child {
  border-bottom: none;
}

.docs-cat-heading {
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  padding: 6px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-nav-subgroup {
  margin-bottom: 12px;
}

.docs-subgroup-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-subgroup-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-nav-item {
  margin: 0;
  padding: 0;
}

/* Article Link Pill */
.docs-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  color: #94A3B8;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  background: transparent;
  box-shadow: none;
}

.docs-article-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.docs-article-link.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.docs-soon-tag {
  font-size: 10px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   COLONNE DROITE : ZONE DE CONTENU SCROLLABLE INDÉPENDAMMENT
   ========================================================================== */
.docs-main-scroll {
  min-height: calc(100vh - var(--docs-header-h));
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.docs-main-scroll::-webkit-scrollbar {
  width: 8px;
}
.docs-main-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.docs-content-layout {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 230px;
  gap: 40px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 80px 48px;
  box-sizing: border-box;
  align-items: start;
}

/* Feuille d'article épurée */
.docs-reader-pane {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 44px 52px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

/* Rail "On this page" (Style Google Developers) */
.docs-toc-rail {
  position: sticky;
  top: calc(var(--docs-header-h) + 32px);
}

.docs-toc-inner {
  border-inline-start: 2px solid rgba(255, 255, 255, 0.1);
  padding-inline-start: 16px;
}

.docs-toc-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
}

.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-toc-link {
  font-size: 12.5px;
  color: #94A3B8;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: all 0.15s ease;
  cursor: pointer;
}

.docs-toc-link:hover,
.docs-toc-link.is-active {
  color: #93C5FD;
}

.docs-toc-link.is-active {
  font-weight: 600;
  transform: translateX(2px);
}

/* Breadcrumbs */
.docs-reader-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  color: #94A3B8;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.docs-crumb-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Article Header */
.docs-reader-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.docs-badge-pill {
  font-size: 11.5px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.docs-readtime-pill {
  font-size: 12px;
  color: #64748B;
}

.docs-reader-title {
  font-family: var(--rc-font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #FFFFFF;
  margin: 0;
}

/* Article Content Typography */
.docs-article-body {
  color: #94A3B8;
  font-size: 15.5px;
  line-height: 1.75;
  flex-grow: 1;
}

.docs-article-body .docs-lead {
  font-size: 17px;
  color: #E2E8F0;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 400;
}

.docs-article-body h2 {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.docs-article-body section {
  scroll-margin-top: calc(var(--docs-header-h) + 24px);
}

.docs-article-body section:first-of-type h2 {
  margin-top: 8px;
}

.docs-article-body h3,
.docs-article-body h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 24px 0 10px;
}

.docs-article-body p {
  margin-bottom: 18px;
}

.docs-article-body strong {
  color: #FFFFFF;
  font-weight: 600;
}

.docs-step-list {
  padding-inline-start: 20px;
  margin-bottom: 22px;
}

.docs-step-list li {
  margin-bottom: 10px;
  padding-inline-start: 4px;
}

.docs-step-list li::marker {
  color: #93C5FD;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-size: 12px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  margin: 0 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Callout Tip Box */
.docs-callout-tip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-inline-start: 3px solid #93C5FD;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
  color: #CBD5E1;
  font-size: 14.5px;
  line-height: 1.6;
}

.docs-callout-tip strong {
  color: #FFFFFF;
}

/* Reference Table (Google Developers Style) */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 24px 0 28px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 24, 0.6);
}

.docs-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.docs-ref-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-ref-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  vertical-align: middle;
}

.docs-ref-table tr:last-child td {
  border-bottom: none;
}

.docs-ref-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.docs-ref-table td strong {
  color: #FFFFFF;
}

.docs-ref-table td code {
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #93C5FD;
}

/* Coming Soon Card (For Installation Guide) */
.docs-coming-soon-card {
  background: rgba(13, 17, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  margin: 16px 0;
}

.docs-status-pill-wrap {
  margin-bottom: 18px;
}

.docs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93C5FD;
  box-shadow: none;
}

.coming-soon-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.coming-soon-desc {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 720px;
}

.coming-soon-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.coming-soon-system-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* Article Footer Navigation */
.docs-reader-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.docs-feedback-prompt {
  font-size: 14px;
  color: #94A3B8;
}

.docs-feedback-btns {
  display: flex;
  gap: 10px;
}

.docs-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-feedback-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.docs-nav-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  max-width: 45%;
}

.docs-pager-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.docs-pager-label {
  font-size: 11px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  color: #94A3B8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.docs-pager-title {
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Mobile Quick Topic Selector Bar */
.docs-mobile-bar {
  display: none;
  margin-bottom: 20px;
}

.docs-mobile-select-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.docs-mobile-drawer {
  display: none;
  background: rgba(13, 17, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.docs-mobile-drawer.is-open {
  display: block;
}

@media (max-width: 1280px) {
  .docs-content-layout {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .docs-toc-rail {
    display: none !important;
  }
}

@media (max-width: 992px) {
  body.docs-app-body {
    height: auto !important;
    overflow: auto !important;
    display: block !important;
  }
  .docs-portal-wrapper,
  .docs-main-scroll {
    height: auto !important;
    overflow: visible !important;
  }
  .docs-portal-container {
    grid-template-columns: 1fr !important;
  }
  .docs-sidebar-dock {
    display: none !important; /* Remplacé par .docs-mobile-bar sur mobile */
  }
  .docs-mobile-bar {
    display: block !important;
  }
  .docs-content-layout {
    grid-template-columns: 1fr !important;
    padding: 24px 18px 60px 18px !important;
    gap: 24px !important;
  }
  .docs-reader-pane {
    padding: 28px 20px !important;
    min-height: auto;
  }
  .docs-toc-rail {
    display: none !important;
  }
}

/* ==========================================================================
   SECTIONS REPLIABLES (menus déroulants par section)
   ========================================================================== */
button.docs-cat-heading {
  width: 100%;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: start;
}
button.docs-cat-heading:hover { background: rgba(255, 255, 255, 0.04); }
button.docs-cat-heading:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.docs-cat-chevron { flex-shrink: 0; opacity: 0.8; transition: transform 0.2s ease; }
.docs-nav-category.is-collapsed .docs-cat-chevron { transform: rotate(-90deg); }
.docs-nav-category.is-collapsed:not(.is-searching) .docs-cat-subsections { display: none; }
.docs-nav-category.is-collapsed { padding-bottom: 8px; margin-bottom: 8px; }

/* ==========================================================================
   BARRE DU HAUT DE L'ARTICLE : fil d'Ariane + bouton thème
   ========================================================================== */
.docs-tools-rail {
  position: sticky;
  top: calc(var(--docs-header-h) + 32px);
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
@media (max-width: 992px) {
  .docs-tools-rail { position: static; justify-content: flex-end; padding-top: 0; }
}

.docs-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.docs-reader-topbar .docs-reader-breadcrumbs { margin-bottom: 0; }

/* Interrupteur comme dans l'app : piste + pastille (lune en sombre, soleil en clair) */
.docs-theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1A1F30;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.docs-theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3563c9;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
}
.docs-theme-knob svg { width: 14px; height: 14px; }
.docs-theme-knob .docs-ico-sun { display: none !important; }
.docs-theme-knob .docs-ico-moon { display: block !important; }
.docs-theme-toggle:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
html[data-docs-theme="light"] .docs-theme-toggle { background: #FFFFFF; border-color: rgba(10, 14, 26, 0.14); }
html[data-docs-theme="light"] .docs-theme-knob { transform: translateX(26px); background: #0A0E1A; color: #FFFFFF; }
html[data-docs-theme="light"] .docs-theme-knob .docs-ico-moon { display: none !important; }
html[data-docs-theme="light"] .docs-theme-knob .docs-ico-sun { display: block !important; }

/* ==========================================================================
   MODE CLAIR (fond crème + cartes blanches, comme les zones claires du site)
   ========================================================================== */
html[data-docs-theme="light"] body.docs-app-body,
html[data-docs-theme="light"] .docs-portal-wrapper { background: var(--bg-cream, #EBE4DD) !important; color: #0A0E1A; }
html[data-docs-theme="light"] .docs-sidebar-dock { background: rgba(255, 255, 255, 0.55); border-inline-end-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-search-sticky-box { background: rgba(255, 255, 255, 0.6); border-bottom-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-search-input { background: #FFFFFF; border-color: rgba(10, 14, 26, 0.12); color: #0A0E1A; }
html[data-docs-theme="light"] .docs-search-input:focus { border-color: #3563c9; box-shadow: 0 0 0 3px rgba(53, 99, 201, 0.15); }
html[data-docs-theme="light"] .docs-search-icon,
html[data-docs-theme="light"] .docs-search-clear { color: #5A657D; }
html[data-docs-theme="light"] .docs-categories-nav { scrollbar-color: rgba(10, 14, 26, 0.18) transparent; }
html[data-docs-theme="light"] .docs-nav-category { border-bottom-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-cat-heading { color: #1E3A6E; }
html[data-docs-theme="light"] button.docs-cat-heading:hover { background: rgba(10, 14, 26, 0.04); }
html[data-docs-theme="light"] .docs-subgroup-title { color: #64748B; }
html[data-docs-theme="light"] .docs-article-link { color: #475569; }
html[data-docs-theme="light"] .docs-article-link:hover { color: #0A0E1A; background: rgba(10, 14, 26, 0.04); border-color: rgba(10, 14, 26, 0.06); }
html[data-docs-theme="light"] .docs-article-link.is-active { color: #0A0E1A; background: #FFFFFF; border-color: rgba(10, 14, 26, 0.10); box-shadow: 0 2px 8px rgba(10, 14, 26, 0.06); }
html[data-docs-theme="light"] .docs-soon-tag { color: #5A657D; background: rgba(10, 14, 26, 0.04); border-color: rgba(10, 14, 26, 0.1); }
html[data-docs-theme="light"] .docs-reader-pane { background: #FFFFFF; border-color: rgba(10, 14, 26, 0.08); box-shadow: 0 16px 40px rgba(10, 14, 26, 0.06); }
html[data-docs-theme="light"] .docs-reader-breadcrumbs { color: #5A657D; }
html[data-docs-theme="light"] .docs-crumb-sep { color: rgba(10, 14, 26, 0.25); }
html[data-docs-theme="light"] .docs-reader-header { border-bottom-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-reader-title { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-article-body { color: #475569; }
html[data-docs-theme="light"] .docs-article-body .docs-lead { color: #1E293B; }
html[data-docs-theme="light"] .docs-article-body h2,
html[data-docs-theme="light"] .docs-article-body h3,
html[data-docs-theme="light"] .docs-article-body strong,
html[data-docs-theme="light"] .docs-article-body h4 { color: #0A0E1A !important; }
html[data-docs-theme="light"] .docs-article-body a:not(.rc-btn-primary):not(.rc-btn-secondary):not(.docs-cat-card):not(.docs-card-link) { color: #3563c9; }
html[data-docs-theme="light"] .docs-step-list li::marker { color: #3563c9; }
html[data-docs-theme="light"] kbd { color: #1E293B; background: #EEF1F6; border-color: #E2E6EE; box-shadow: 0 2px 0 rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-callout-tip { color: #475569; background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); border-left-color: #3563c9; }
html[data-docs-theme="light"] .docs-table-wrapper { background: #FFFFFF; border-color: rgba(10, 14, 26, 0.10); }
html[data-docs-theme="light"] .docs-ref-table th { color: #0A0E1A; background: #F4F5F8; border-bottom-color: rgba(10, 14, 26, 0.10); }
html[data-docs-theme="light"] .docs-ref-table td { color: #475569; border-bottom-color: rgba(10, 14, 26, 0.06); }
html[data-docs-theme="light"] .docs-ref-table tr:hover td { background: rgba(10, 14, 26, 0.02); }
html[data-docs-theme="light"] .docs-ref-table td code { color: #1E3A6E; background: #EEF1F6; }
html[data-docs-theme="light"] .docs-coming-soon-card { background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); box-shadow: none; }
html[data-docs-theme="light"] .coming-soon-title { color: #0A0E1A; }
html[data-docs-theme="light"] .coming-soon-desc { color: #5A657D; }
html[data-docs-theme="light"] .coming-soon-system-box { border-top-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-status-pill { color: #5A657D; background: #FFFFFF; border-color: rgba(10, 14, 26, 0.10); }
html[data-docs-theme="light"] .status-dot { background: #3563c9; }
html[data-docs-theme="light"] .docs-article-body .rc-btn-secondary { color: #0A0E1A; background: #FFFFFF; border-color: rgba(10, 14, 26, 0.14); }
html[data-docs-theme="light"] .docs-reader-footer { border-top-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-feedback-prompt { color: #5A657D; }
html[data-docs-theme="light"] .docs-feedback-btn { color: #1E293B; background: #F4F5F8; border-color: rgba(10, 14, 26, 0.10); }
html[data-docs-theme="light"] .docs-feedback-btn:hover { color: #0A0E1A; background: #EEF1F6; border-color: rgba(10, 14, 26, 0.18); }
html[data-docs-theme="light"] .docs-pager-btn { color: #0A0E1A; background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-pager-btn:hover { background: #EEF1F6; border-color: rgba(10, 14, 26, 0.14); box-shadow: 0 8px 24px rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-pager-label { color: #5A657D; }
html[data-docs-theme="light"] .docs-pager-title { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-toc-inner { border-inline-start-color: rgba(10, 14, 26, 0.12); }
html[data-docs-theme="light"] .docs-toc-heading { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-toc-link { color: #5A657D; }
html[data-docs-theme="light"] .docs-toc-link:hover,
html[data-docs-theme="light"] .docs-toc-link.is-active { color: #3563c9; }
html[data-docs-theme="light"] .docs-mobile-select-btn { color: #0A0E1A; background: #FFFFFF; border-color: rgba(10, 14, 26, 0.12); }
html[data-docs-theme="light"] .docs-mobile-drawer { background: #FFFFFF; border-color: rgba(10, 14, 26, 0.12); }

/* ==========================================================================
   GENERATED PAGES: sidebar category row, article content, listings
   ========================================================================== */
[hidden] { display: none !important; }

.docs-cat-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.docs-cat-link {
  flex: 1;
  min-width: 0;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.docs-cat-link:hover,
.docs-cat-link.is-active { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.docs-cat-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.docs-cat-toggle:hover { background: rgba(255, 255, 255, 0.05); color: #FFFFFF; }
.docs-cat-toggle:focus-visible,
.docs-cat-link:focus-visible,
.docs-article-link:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
[dir="rtl"] .docs-nav-category.is-collapsed .docs-cat-chevron { transform: rotate(90deg); }

.docs-no-results {
  font-size: 13px;
  color: #94A3B8;
  padding: 8px 10px;
}

.docs-reader-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.docs-reader-breadcrumbs a:hover { color: #93C5FD; text-decoration: underline; }
.docs-reader-breadcrumbs [aria-current="page"] {
  color: #CBD5E1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.docs-updated {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #64748B;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
}

/* Article content */
.docs-article-body ul,
.docs-article-body ol {
  margin: 0 0 20px;
  padding-inline-start: 22px;
}
.docs-article-body ul { list-style: disc; }
.docs-article-body ol { list-style: decimal; }
.docs-article-body li {
  margin-bottom: 8px;
  padding-inline-start: 4px;
}
.docs-article-body li::marker { color: #93C5FD; }
.docs-article-body a:not(.rc-btn-primary):not(.rc-btn-secondary):not(.docs-cat-card):not(.docs-card-link) {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.docs-article-body a:not(.rc-btn-primary):not(.rc-btn-secondary):not(.docs-cat-card):not(.docs-card-link):hover { color: #FFFFFF; }
.docs-article-body .warning-box,
.docs-article-body .info-box,
.docs-article-body .note {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-inline-start: 3px solid #93C5FD;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
  color: #CBD5E1;
}
.docs-article-body .warning-box { border-inline-start-color: #F59E0B; }
.docs-article-body .sub-title { font-weight: 700; color: #FFFFFF; }

/* Documentation home: category cards */
.docs-article-body .docs-cat-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.docs-cat-grid li { margin: 0; padding: 0; }
.docs-cat-grid li::marker { content: none; }
.docs-cat-card {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.docs-cat-card:hover { transform: translateY(-2px); border-color: rgba(147, 197, 253, 0.45); background: rgba(255, 255, 255, 0.07); }
.docs-cat-card-title { font-size: 17px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.docs-cat-card-desc { font-size: 14px; line-height: 1.6; color: #94A3B8; flex: 1; }
.docs-cat-card-count {
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93C5FD;
}

/* Category pages: article list */
.docs-card-list {
  list-style: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.docs-card-list li { margin: 0; padding: 0; }
.docs-card-list li::marker { content: none; }
.docs-article-body .docs-card-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.docs-article-body .docs-card-link:hover { border-color: rgba(147, 197, 253, 0.45); background: rgba(255, 255, 255, 0.06); }
.docs-card-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #FFFFFF; }
.docs-card-desc { font-size: 13.5px; line-height: 1.55; color: #94A3B8; }
.docs-card-link.is-soon .docs-card-title { color: #94A3B8; }

/* Pager */
[dir="rtl"] .docs-pager-arrow { transform: scaleX(-1); }
.docs-feedback-btn.is-chosen { border-color: #93C5FD; color: #FFFFFF; }
.docs-feedback-btn:disabled { cursor: default; transform: none; }

/* Light theme for the additions */
html[data-docs-theme="light"] .docs-cat-link { color: #1E3A6E; }
html[data-docs-theme="light"] .docs-cat-link:hover,
html[data-docs-theme="light"] .docs-cat-link.is-active { color: #0A0E1A; background: rgba(10, 14, 26, 0.05); }
html[data-docs-theme="light"] .docs-cat-toggle { color: #5A657D; }
html[data-docs-theme="light"] .docs-cat-toggle:hover { color: #0A0E1A; background: rgba(10, 14, 26, 0.05); }
html[data-docs-theme="light"] .docs-reader-breadcrumbs [aria-current="page"] { color: #1E293B; }
html[data-docs-theme="light"] .docs-reader-breadcrumbs a:hover { color: #3563c9; }
html[data-docs-theme="light"] .docs-article-body li::marker { color: #3563c9; }
html[data-docs-theme="light"] .docs-article-body a:not(.rc-btn-primary):not(.rc-btn-secondary):not(.docs-cat-card):not(.docs-card-link):hover { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-article-body .warning-box,
html[data-docs-theme="light"] .docs-article-body .info-box,
html[data-docs-theme="light"] .docs-article-body .note { color: #475569; background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); border-inline-start-color: #3563c9; }
html[data-docs-theme="light"] .docs-article-body .warning-box { border-inline-start-color: #D97706; }
html[data-docs-theme="light"] .docs-article-body .sub-title { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-cat-card { background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-cat-card:hover { background: #FFFFFF; border-color: rgba(53, 99, 201, 0.4); }
html[data-docs-theme="light"] .docs-cat-card-title,
html[data-docs-theme="light"] .docs-card-title { color: #0A0E1A; }
html[data-docs-theme="light"] .docs-cat-card-desc,
html[data-docs-theme="light"] .docs-card-desc,
html[data-docs-theme="light"] .docs-no-results,
html[data-docs-theme="light"] .docs-updated { color: #5A657D; }
html[data-docs-theme="light"] .docs-cat-card-count { color: #3563c9; }
html[data-docs-theme="light"] .docs-article-body .docs-card-link { background: #F4F5F8; border-color: rgba(10, 14, 26, 0.08); }
html[data-docs-theme="light"] .docs-article-body .docs-card-link:hover { background: #FFFFFF; border-color: rgba(53, 99, 201, 0.4); }
html[data-docs-theme="light"] .docs-card-link.is-soon .docs-card-title { color: #5A657D; }
html[data-docs-theme="light"] .docs-feedback-btn.is-chosen { border-color: #3563c9; color: #0A0E1A; }

@media (max-width: 600px) {
}

/* ==========================================================================
   PREVIOUS / NEXT ARTICLE: two equal columns, arrow always visible,
   long titles wrap on two lines instead of overflowing the card
   ========================================================================== */
.docs-nav-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.docs-pager-btn {
  max-width: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.docs-pager-arrow { flex-shrink: 0; width: 16px; height: 16px; }
.docs-pager-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.docs-pager-label { margin: 0; }
.docs-pager-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.docs-pager-prev { grid-column: 1; text-align: start; }
.docs-pager-next { grid-column: 2; text-align: end; }
.docs-pager-next .docs-pager-text { align-items: flex-end; }
.docs-pager-spacer { display: block; }
@media (max-width: 600px) {
  .docs-nav-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager-prev, .docs-pager-next { grid-column: 1; }
  .docs-pager-spacer { display: none; }
}

/* ==========================================================================
   Poker guides (documentation > poker-tools-*): visual components
   Cards, table scenes, range grids, callouts, stat tiles, bars, cheat sheets.
   ========================================================================== */
.docs-article-body {
  --pk-accent: #93C5FD;
  --pk-gold: #F5B544;
  --pk-green: #4ADE80;
  --pk-red: #F87171;
  --pk-violet: #C4B5FD;
  --pk-surface: rgba(255, 255, 255, 0.035);
  --pk-surface-2: rgba(255, 255, 255, 0.06);
  --pk-line: rgba(255, 255, 255, 0.09);
  --pk-strong: #FFFFFF;
  --pk-muted: #94A3B8;
  /* range colors (same palette as the Range Craft app) */
  --rg-raise: #E8734A;
  --rg-raise-2: #F2A48A;
  --rg-call: #5CC96B;
  --rg-3bet: #6D5BD0;
  --rg-4bet: #4B2A7B;
  --rg-pink: #E27FE0;
  --rg-shove: #D9473F;
  --rg-push2: #E8C547;
  --rg-fold: #2B2F38;
  --rg-text: rgba(255, 255, 255, 0.92);
}
html[data-docs-theme="light"] .docs-article-body {
  --pk-accent: #3563c9;
  --pk-gold: #B7791F;
  --pk-green: #15803D;
  --pk-red: #DC2626;
  --pk-violet: #6D28D9;
  --pk-surface: #F7F8FB;
  --pk-surface-2: #EEF1F6;
  --pk-line: rgba(10, 14, 26, 0.09);
  --pk-strong: #0A0E1A;
  --pk-muted: #5A657D;
  --rg-fold: #D9DDE5;
  --rg-text: #0A0E1A;
}

.docs-article-body h3.pk-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; letter-spacing: 0.01em; margin: 26px 0 12px;
}
.docs-article-body h3.pk-sub::before {
  content: ""; width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, var(--pk-gold), var(--rg-raise));
}

/* ---------- lists ---------- */
.docs-article-body ul { padding-inline-start: 22px; margin-bottom: 20px; }
.docs-article-body ul li { margin-bottom: 8px; }
.docs-article-body ul li::marker { color: var(--pk-accent); }

.docs-article-body ul.pk-terms {
  list-style: none; padding: 0; margin: 18px 0 26px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
}
@media (min-width: 760px) {
  .docs-article-body ul.pk-terms.pk-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.docs-article-body ul.pk-terms > li {
  margin: 0; padding: 12px 16px 13px;
  background: var(--pk-surface);
  border: 1px solid var(--pk-line);
  border-inline-start: 3px solid var(--pk-tone, var(--pk-accent));
  border-radius: 12px;
  line-height: 1.6; font-size: 14.5px;
}
.docs-article-body ul.pk-terms > li > strong:first-child {
  display: block; margin-bottom: 2px;
  color: var(--pk-strong); font-size: 15px; font-weight: 700;
}
.docs-article-body ul.pk-terms > li:nth-child(4n+2) { --pk-tone: var(--pk-gold); }
.docs-article-body ul.pk-terms > li:nth-child(4n+3) { --pk-tone: var(--pk-green); }
.docs-article-body ul.pk-terms > li:nth-child(4n+4) { --pk-tone: var(--pk-violet); }

.docs-article-body ul.pk-list { list-style: none; padding: 0; margin: 16px 0 24px; }
.docs-article-body ul.pk-list > li {
  position: relative; padding-block: 10px; padding-inline: 44px 14px; margin-bottom: 8px;
  background: var(--pk-surface); border: 1px solid var(--pk-line); border-radius: 12px;
}
.docs-article-body ul.pk-list > li::before {
  position: absolute; inset-inline-start: 14px; top: 10px; font-size: 15px; line-height: 1.6;
}
.docs-article-body ul.pk-bad > li::before { content: "❌"; font-size: 12px; top: 13px; }
.docs-article-body ul.pk-good > li::before { content: "✅"; font-size: 13px; top: 12px; }
.docs-article-body ul.pk-bad > li { border-inline-start: 3px solid var(--pk-red); }
.docs-article-body ul.pk-good > li { border-inline-start: 3px solid var(--pk-green); }

/* ---------- callouts ---------- */
.pk-callout {
  margin: 20px 0 24px; padding: 14px 18px 4px;
  border-radius: 14px; border: 1px solid var(--pk-line);
  border-inline-start: 4px solid var(--pk-tone, var(--pk-accent));
  background: linear-gradient(90deg, color-mix(in srgb, var(--pk-tone, var(--pk-accent)) 10%, transparent), var(--pk-surface) 60%);
}
.pk-callout > p { margin-bottom: 12px !important; }
.pk-callout .pk-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pk-tone, var(--pk-accent));
}
.pk-ex { --pk-tone: var(--pk-gold); }
.pk-tip { --pk-tone: var(--pk-accent); }
.pk-key { --pk-tone: var(--pk-green); }
.pk-warn { --pk-tone: var(--pk-red); }
.pk-fix { --pk-tone: var(--pk-green); }

/* ---------- cheat sheet ---------- */
.pk-cheat {
  position: relative; margin: 14px 0 8px; padding: 22px 22px 8px;
  border-radius: 18px; background: var(--pk-surface);
  --pk-ring: linear-gradient(135deg, var(--pk-gold), var(--rg-raise) 40%, var(--rg-3bet));
}
.pk-cheat::before, .pk-formula::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--pk-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pk-cheat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px !important; font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--pk-gold);
}
.pk-cheat-head img { width: 42px; height: auto; opacity: 0.9; }
html[data-docs-theme="light"] .pk-cheat-head img { filter: invert(1); opacity: 0.55; }
.pk-cheat ul.pk-list > li { background: transparent; }

/* ---------- figures ---------- */
.pk-fig {
  margin: 26px 0 30px; padding: 22px 20px 18px;
  border-radius: 18px; background: var(--pk-surface);
  border: 1px solid var(--pk-line); text-align: center;
}
.pk-fig > figcaption {
  margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--pk-muted);
}
.pk-fig > figcaption strong { color: var(--pk-strong); }
.pk-fig-title {
  margin: 0 0 16px !important; font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pk-muted);
}

/* ---------- playing cards ---------- */
.pk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-cards { direction: ltr; display: inline-flex; gap: 3px; vertical-align: middle; position: relative; }
.pk-cards img {
  display: block; height: 1.9em; width: auto; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.pk-hand { direction: ltr; display: inline-flex; gap: 6px; justify-content: center; flex-wrap: nowrap; }
.pk-hand img {
  display: block; height: 78px; width: auto; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.pk-hand.pk-sm img { height: 52px; border-radius: 4px; }
.pk-hand img.is-dim { opacity: 0.32; filter: grayscale(0.6); }
.pk-hand img.is-hi { outline: 2px solid var(--pk-gold); outline-offset: 2px; }
html[data-docs-theme="light"] .pk-hand img,
html[data-docs-theme="light"] .pk-cards img { box-shadow: 0 2px 8px rgba(10, 14, 26, 0.18), 0 0 0 1px rgba(10, 14, 26, 0.08); }

.pk-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
.pk-street { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pk-street-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pk-muted); padding: 3px 10px; border-radius: 999px; background: var(--pk-surface-2);
}
.pk-street.is-hero .pk-street-label { color: #0A0E1A; background: var(--pk-gold); }
.pk-vs { align-self: center; font-weight: 800; color: var(--pk-muted); font-size: 13px; }
.pk-verdict {
  display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--pk-surface-2); color: var(--pk-strong);
}
.pk-verdict.is-win { background: color-mix(in srgb, var(--pk-green) 22%, transparent); color: var(--pk-green); }

/* ---------- hand ranking ladder ---------- */
.pk-ladder { display: grid; gap: 8px; margin: 18px 0 26px; }
.pk-rung {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 12px; background: var(--pk-surface); border: 1px solid var(--pk-line);
  text-align: start;
}
.pk-rung-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #0A0E1A; background: var(--pk-gold);
}
.pk-rung:nth-child(n+4) .pk-rung-n { background: var(--pk-accent); }
.pk-rung:nth-child(n+7) .pk-rung-n { background: var(--pk-surface-2); color: var(--pk-strong); }
.pk-rung-name { color: var(--pk-strong); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.pk-rung-name small { display: block; font-weight: 500; color: var(--pk-muted); font-size: 12.5px; }
.pk-rung .pk-hand img { height: 40px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.pk-rung .pk-hand { gap: 3px; }
@media (max-width: 560px) {
  .pk-rung { grid-template-columns: 30px minmax(0, 1fr); }
  .pk-rung .pk-hand { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- table scene (inspired by the Range Craft trainer) ---------- */
.pk-scene {
  direction: ltr;
  position: relative; container-type: inline-size;
  width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 16 / 10.4;
}
.pk-scene-felt {
  position: absolute; left: 6%; right: 6%; top: 15%; bottom: 13%;
  background: url("assets/docs/poker/table.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
html[data-docs-theme="light"] .pk-scene-felt { filter: drop-shadow(0 12px 22px rgba(10, 14, 26, 0.25)); }
.pk-seat {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6cqw; z-index: 2;
}
.pk-seat-cards { display: flex; gap: 0.5cqw; margin-bottom: -2.2cqw; position: relative; z-index: 1; }
.pk-seat-cards img { height: 10.5cqw; width: auto; border-radius: 0.7cqw; box-shadow: 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.5); }
.pk-seat.is-hero .pk-seat-cards img { height: 13cqw; }
.pk-seat-name {
  position: relative; z-index: 2;
  min-width: 9.5cqw; padding: 1.4cqw 1.6cqw; border-radius: 999px;
  background: #2A2D33; color: #E5E7EB; border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: max(10px, 2.4cqw); font-weight: 700; line-height: 1; text-align: center;
}
.pk-seat.is-hero .pk-seat-name { background: #F3F4F6; color: #0A0E1A; }
.pk-seat.is-out { opacity: 0.45; }
.pk-seat-sub {
  position: relative; z-index: 3; margin-top: -0.6cqw;
  padding: 0.6cqw 1.4cqw; border-radius: 999px; background: #FFFFFF; color: #0A0E1A;
  font-size: max(9px, 1.8cqw); font-weight: 600; white-space: nowrap;
}
.pk-seat-sub.is-act { background: #D9473F; color: #FFFFFF; }
.pk-seat-sub.is-call { background: #5CC96B; color: #0A0E1A; }
.pk-seat-sub.is-raise { background: #E8734A; color: #FFFFFF; }
.pk-chip {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  display: flex; align-items: center; gap: 0.8cqw;
  font-size: max(9px, 1.9cqw); font-weight: 700; color: #F3F4F6; white-space: nowrap;
}
.pk-chip img { width: 4.6cqw; height: auto; }
.pk-dealer { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 3.6cqw; height: auto; z-index: 2; }
.pk-pot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.4cqw;
}
.pk-pot-pill {
  padding: 0.9cqw 2cqw; border-radius: 1cqw; background: #8E1F1F; color: #FFFFFF;
  font-size: max(10px, 2.2cqw); font-weight: 700; white-space: nowrap;
}
.pk-pot .pk-seat-cards { margin: 0; gap: 0.6cqw; }
.pk-scene.is-9 .pk-seat-cards img { height: 8cqw; }
.pk-scene.is-9 .pk-seat.is-hero .pk-seat-cards img { height: 11cqw; }
.pk-scene.is-9 .pk-seat-name { min-width: 8cqw; padding: 1.1cqw 1.3cqw; font-size: max(9px, 2.1cqw); }
.pk-scene.is-9 .pk-seat-sub { font-size: max(8px, 1.6cqw); }
.pk-pot .pk-seat-cards img { height: 9.5cqw; }

/* ---------- range grid (13x13, like the Range Craft builder) ---------- */
.pk-range-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.pk-range-box { flex: 1 1 230px; max-width: 420px; }
.pk-range-title { margin: 0 0 10px !important; font-size: 13px; font-weight: 700; color: var(--pk-strong); text-align: start; }
.pk-range {
  direction: ltr; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 1px;
  padding: 1px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.35);
  container-type: inline-size;
}
html[data-docs-theme="light"] .pk-range { background: rgba(10, 14, 26, 0.12); }
.pk-range > span {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: max(6.5px, 2.15cqw); font-weight: 600; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.35); background: var(--rg-fold);
}
html[data-docs-theme="light"] .pk-range > span { color: rgba(10, 14, 26, 0.38); }
.pk-range > span.pp { filter: brightness(1.12); }
.pk-range > span[class*="a-"] { color: var(--rg-text); }
.pk-range > .a-raise { background: var(--rg-raise); }
.pk-range > .a-raise2 { background: var(--rg-raise-2); }
.pk-range > .a-call { background: var(--rg-call); }
.pk-range > .a-3bet { background: var(--rg-3bet); }
.pk-range > .a-4bet { background: var(--rg-4bet); }
.pk-range > .a-pink { background: var(--rg-pink); }
.pk-range > .a-shove { background: var(--rg-shove); }
.pk-range > .a-push2 { background: var(--rg-push2); }
html[data-docs-theme="light"] .pk-range > span[class*="a-"] { color: #FFFFFF; }
html[data-docs-theme="light"] .pk-range > .a-push2,
html[data-docs-theme="light"] .pk-range > .a-call,
html[data-docs-theme="light"] .pk-range > .a-raise2 { color: #0A0E1A; }
.pk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--pk-muted); }
.pk-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pk-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--rg-fold); }
.pk-legend b { color: var(--pk-strong); font-weight: 700; }

/* ---------- stat tiles ---------- */
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 26px; }
.pk-stat {
  padding: 16px 16px 14px; border-radius: 14px; text-align: start;
  background: var(--pk-surface); border: 1px solid var(--pk-line);
  border-top: 3px solid var(--pk-tone, var(--pk-accent));
}
.pk-stat:nth-child(4n+2) { --pk-tone: var(--pk-gold); }
.pk-stat:nth-child(4n+3) { --pk-tone: var(--pk-green); }
.pk-stat:nth-child(4n+4) { --pk-tone: var(--pk-violet); }
.pk-stat-ico { font-size: 20px; line-height: 1; display: block; margin-bottom: 10px; }
.pk-stat-val { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--pk-strong); line-height: 1.15; }
.pk-stat-lbl { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--pk-muted); }

/* ---------- bars ---------- */
.pk-bars { display: grid; gap: 12px; text-align: start; }
.pk-bar { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) 58px; align-items: center; gap: 12px; font-size: 13.5px; }
.pk-bar-lbl { color: var(--pk-strong); font-weight: 600; line-height: 1.3; }
.pk-bar-lbl small { display: block; font-weight: 500; color: var(--pk-muted); font-size: 12px; }
.pk-bar-track { height: 12px; border-radius: 999px; background: var(--pk-surface-2); overflow: hidden; }
.pk-bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--pk-tone, var(--pk-accent)); }
.pk-bar-val { font-weight: 800; color: var(--pk-strong); text-align: end; font-variant-numeric: tabular-nums; }
.pk-bar.t-gold { --pk-tone: var(--pk-gold); }
.pk-bar.t-green { --pk-tone: var(--pk-green); }
.pk-bar.t-red { --pk-tone: var(--pk-red); }
.pk-bar.t-violet { --pk-tone: var(--pk-violet); }
.pk-bar.t-orange { --pk-tone: var(--rg-raise); }
@media (max-width: 520px) { .pk-bar { grid-template-columns: minmax(0, 1fr) 52px; } .pk-bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- formula ---------- */
.pk-formula {
  position: relative; margin: 20px 0 24px; padding: 20px 22px; border-radius: 16px; text-align: center;
  background: var(--pk-surface);
  --pk-ring: linear-gradient(120deg, var(--pk-accent), var(--pk-violet));
}
.pk-formula-eq {
  display: block; font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(15px, 2.2vw, 19px); font-weight: 700; color: var(--pk-strong); line-height: 1.5;
}
.pk-formula-eq em { font-style: normal; color: var(--pk-gold); }
.pk-formula-note { display: block; margin-top: 8px; font-size: 13px; color: var(--pk-muted); }

/* ---------- compare columns ---------- */
.pk-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 26px; text-align: start; }
.pk-col {
  padding: 16px 16px 6px; border-radius: 14px; background: var(--pk-surface); border: 1px solid var(--pk-line);
  border-top: 3px solid var(--pk-tone, var(--pk-accent));
}
.pk-col:nth-child(2) { --pk-tone: var(--pk-gold); }
.pk-col:nth-child(3) { --pk-tone: var(--pk-green); }
.pk-col:nth-child(4) { --pk-tone: var(--pk-violet); }
.pk-col.t-red { --pk-tone: var(--pk-red); }
.pk-col.t-green { --pk-tone: var(--pk-green); }
.pk-col-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; color: var(--pk-strong); font-weight: 800; font-size: 15px; }
.pk-col-head span { font-size: 22px; }
.pk-col ul { padding-inline-start: 18px !important; margin-bottom: 10px !important; font-size: 14px; }
.pk-col ul li { margin-bottom: 6px !important; }
.pk-col p { font-size: 14px; margin-bottom: 10px !important; }

/* ---------- steps / timeline ---------- */
.docs-article-body ol.pk-steps, .pk-steps { list-style: none !important; padding: 0 !important; margin: 18px 0 26px; counter-reset: pkstep; text-align: start; }
.pk-steps > li {
  counter-increment: pkstep; position: relative; padding: 0 0 18px 0 !important; padding-inline-start: 50px !important; margin: 0 !important;
}
.pk-steps > li::before {
  content: counter(pkstep); position: absolute; inset-inline-start: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #0A0E1A;
  background: linear-gradient(135deg, var(--pk-gold), var(--rg-raise));
}
.pk-steps > li::marker { content: none; }
.pk-steps > li::after {
  content: ""; position: absolute; inset-inline-start: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px;
  background: var(--pk-line);
}
.pk-steps > li:last-child::after { display: none; }
.pk-steps > li > strong:first-child { display: block; color: var(--pk-strong); font-size: 15px; margin: 4px 0 2px; }
.pk-steps > li > span { display: block; font-size: 14px; line-height: 1.6; }

/* ---------- 2x2 matrix ---------- */
.pk-matrix { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; text-align: start; font-size: 13.5px; }
.pk-matrix-ax { display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pk-muted); }
.pk-matrix-ax.v { writing-mode: vertical-rl; transform: rotate(180deg); }
.pk-cell { padding: 14px; border-radius: 14px; background: var(--pk-surface-2); border: 1px solid var(--pk-line); border-top: 3px solid var(--pk-tone, var(--pk-accent)); }
.pk-cell b { display: block; color: var(--pk-strong); font-size: 14.5px; margin-bottom: 4px; }
.pk-cell .e { font-size: 22px; display: block; margin-bottom: 6px; }

/* ---------- HUD mock ---------- */
.pk-hud {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; padding: 12px 16px;
  border-radius: 10px; background: #0D0F14; border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace); text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.pk-hud-name { grid-column: 1 / -1; text-align: start; color: #E5E7EB; font-size: 12px; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 4px; }
.pk-hud b { display: block; font-size: 20px; color: #FFFFFF; }
.pk-hud b.g { color: #5CC96B; } .pk-hud b.o { color: #E8734A; } .pk-hud b.y { color: #E8C547; } .pk-hud b.v { color: #A78BFA; }
.pk-hud small { color: #9CA3AF; font-size: 10.5px; letter-spacing: 0.06em; }

/* ---------- reference table ---------- */
.pk-table-wrap { overflow-x: auto; margin: 18px 0 26px; border-radius: 14px; border: 1px solid var(--pk-line); }
.pk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: start; }
.pk-table th { padding: 11px 14px; text-align: start; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pk-strong); background: var(--pk-surface-2); }
.pk-table td { padding: 10px 14px; border-top: 1px solid var(--pk-line); color: var(--pk-muted); }
.pk-table td:first-child { color: var(--pk-strong); font-weight: 600; white-space: nowrap; }
.pk-table td.hl { color: var(--pk-gold); font-weight: 800; }
