/* Hallmark · v2.0.0 · redesign: restyle · built: PGBET help center · theme: brand (from logo/favicon) · deal: manual (brand-driven) · palette: violet primary + 8 pixel accents on navy, mirroring the pixel-mosaic wordmark · signature: each of 8 category cards carries its own pixel accent · scope: site (18 pages) · copy: verbatim */
/* critique: the prior green/gold was a slot-casino cliche with no link to the wordmark; the restyle swaps the system for the brand's own coordinates. Floor 48 holds (tokens only), 50 holds (image grids), 10a holds (no transition: all here). Facts verbatim: none reworded. */

/* ==========================================================================
   PGBET Help Center — Stylesheet
   Sections:
     1. Reset & Base
     2. Design Tokens (CSS Variables)
     3. Typography
     4. Layout & Containers
     5. Buttons
     6. Header & Navigation
     7. Hero & Search
     8. Cards (Category, Article, Popular)
     9. Breadcrumb
    10. Article Content (TOC, callouts, tables)
    11. Helpful footer, Related
    12. Banners, Contact Widgets
    13. Footer
    14. Forms & Accordion
    15. Utilities
    16. Responsive
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Reset & Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-violet); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* -------------------------------------------------------------------------
   2. Design Tokens
   Palette extracted from logo-pgbet.png + favicon-pgbet.png:
   - Wordmark "BET" sits in pixel violet on near-black
   - Scattered pixel dots in orange, coral, cyan, teal, lime around it
   ------------------------------------------------------------------------- */
:root {
  /* Brand — primary violet (the wordmark) */
  --brand-violet: #7c5ce8;
  --brand-violet-dark: #5a3fd3;
  --brand-violet-deeper: #3a2680;
  --brand-violet-light: #9d7fe8;
  --brand-violet-pale: #c9b8ff;

  /* Brand — accent cyan (the brightest pixel in the mosaic) */
  --brand-accent: #4fd1e8;
  --brand-accent-dark: #27a9c0;

  /* 8 pixel accents — one per category card, pulled from the mosaic dots */
  --pixel-cyan:   #4fd1e8;
  --pixel-orange: #ff8c3f;
  --pixel-coral:  #e8475e;
  --pixel-teal:   #4ae0b0;
  --pixel-lime:   #7de85a;
  --pixel-amber:  #f5c842;
  --pixel-pink:   #f06ec9;
  --pixel-sky:    #6ab4ff;

  /* Surface */
  --bg: #f6f4ff;
  --bg-elevated: #ffffff;
  --text: #15102e;
  --text-muted: #605a7a;
  --border: #e4dff5;
  --card-bg: #ffffff;
  --card-hover-bg: #ffffff;
  --shadow: 0 1px 2px rgba(42, 25, 90, 0.05), 0 4px 16px rgba(42, 25, 90, 0.07);
  --shadow-lg: 0 10px 36px rgba(42, 25, 90, 0.14);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --info-bg: #eef1fe;
  --info-border: #6b7cf5;
  --warn-bg: #fff2e1;
  --warn-border: #ff8c3f;
  --success-bg: #e6faf1;
  --success-border: #4ae0b0;
  --danger-bg: #fde8ee;
  --danger-border: #e8475e;

  --nav-h: 64px;
  --container-max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0b22;                 /* mirrors logo background */
    --bg-elevated: #15123a;
    --text: #efecff;
    --text-muted: #9c94c4;
    --border: #2a2560;
    --card-bg: #15123a;
    --card-hover-bg: #1d1a4c;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
    --info-bg: #1a1f52;
    --warn-bg: #3a2415;
    --success-bg: #113a2a;
    --danger-bg: #3a1820;
    --brand-violet-pale: #4a3a8e;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0b22;
  --bg-elevated: #15123a;
  --text: #efecff;
  --text-muted: #9c94c4;
  --border: #2a2560;
  --card-bg: #15123a;
  --card-hover-bg: #1d1a4c;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
  --info-bg: #1a1f52;
  --warn-bg: #3a2415;
  --success-bg: #113a2a;
  --danger-bg: #3a1820;
  --brand-violet-pale: #4a3a8e;
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }
small, .muted { color: var(--text-muted); font-size: 0.875rem; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   4. Layout & Containers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
main { min-height: 60vh; }
section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.layout-with-sidebar {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: 1fr 280px; }
  .layout-with-sidebar.reverse { grid-template-columns: 260px 1fr; }
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-violet);
  color: #fff;
  border-color: var(--brand-violet);
}
.btn-primary:hover { background: var(--brand-violet-dark); border-color: var(--brand-violet-dark); color: #fff; }
/* .btn-gold → now the accent (cyan) call-to-action: dark violet text reads strongly on bright cyan */
.btn-gold {
  background: var(--brand-accent);
  color: #0a0820;
  border-color: var(--brand-accent);
}
.btn-gold:hover { background: var(--brand-accent-dark); color: #ffffff; border-color: var(--brand-accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
/* ghost button scoped to dark/violet surfaces (hero, help-banner) */
.btn-on-dark {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
}
.btn-on-dark:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.55); text-decoration: none; transform: translateY(-1px); }

/* Pill shown on dark hero: pale violet-tinted glass with accent text */
.hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--brand-accent);
  border: 1px solid rgba(79, 209, 232, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------------
   6. Header & Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { height: 38px; }
.brand-mark {
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-dark));
  color: var(--brand-accent);
  box-shadow: 0 2px 6px rgba(90, 63, 211, .45);
}
.brand-name { color: var(--text); }
.brand-name .accent { color: var(--brand-violet); }

.nav-links {
  display: none;
  gap: 1.25rem;
  margin-left: 1rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 1024px) { .nav-links { display: inline-flex; } }

.nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.icon-btn:hover { background: var(--bg); }
.hamburger { display: inline-grid; }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-drawer a:last-child { border-bottom: 0; }

/* -------------------------------------------------------------------------
   7. Hero & Search
   ------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(145deg, var(--brand-violet-dark) 0%, var(--brand-violet-deeper) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
/* Pixel-mosaic signature: scattered dots echoing the logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, var(--pixel-orange) 0, var(--pixel-orange) 2.5px, transparent 3px),
    radial-gradient(circle at 18% 70%, var(--pixel-cyan) 0, var(--pixel-cyan) 2px, transparent 2.5px),
    radial-gradient(circle at 28% 30%, var(--pixel-coral) 0, var(--pixel-coral) 1.5px, transparent 2px),
    radial-gradient(circle at 88% 20%, var(--pixel-cyan) 0, var(--pixel-cyan) 2.5px, transparent 3px),
    radial-gradient(circle at 82% 78%, var(--pixel-lime) 0, var(--pixel-lime) 2px, transparent 2.5px),
    radial-gradient(circle at 92% 55%, var(--pixel-amber) 0, var(--pixel-amber) 1.5px, transparent 2px),
    radial-gradient(circle at 72% 12%, var(--pixel-teal) 0, var(--pixel-teal) 2px, transparent 2.5px),
    radial-gradient(circle at 8% 88%, var(--pixel-pink) 0, var(--pixel-pink) 1.5px, transparent 2px),
    radial-gradient(circle at 55% 95%, var(--pixel-sky) 0, var(--pixel-sky) 2px, transparent 2.5px),
    radial-gradient(circle at 48% 8%, var(--pixel-orange) 0, var(--pixel-orange) 1.5px, transparent 2px);
  pointer-events: none;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.hero.compact { padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.hero.compact h1 { font-size: clamp(1.5rem, 3vw, 2rem); }

.search-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.search-box input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(13, 11, 34, 0.18);
}
.search-box input:focus {
  border-color: var(--brand-accent);
  outline: none;
}
.search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  text-align: left;
  z-index: 20;
}
.search-suggestions.open { display: block; }
.search-suggestions a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover { background: var(--bg); text-decoration: none; }
.search-suggestions .cat {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.search-empty {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-violet) 40%, var(--border)); }

.card-category {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  --pix: var(--brand-violet); /* each nth-child overrides */
}
.card-category:hover { text-decoration: none; }
/* Signature: 2px pixel-accent bar at top, tinted icon chip, matching hover border */
.card-category::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pix);
}
.card-category:hover { border-color: color-mix(in srgb, var(--pix) 55%, var(--border)); }
.card-category:nth-child(1) { --pix: var(--pixel-cyan); }
.card-category:nth-child(2) { --pix: var(--pixel-orange); }
.card-category:nth-child(3) { --pix: var(--pixel-amber); }
.card-category:nth-child(4) { --pix: var(--pixel-coral); }
.card-category:nth-child(5) { --pix: var(--pixel-teal); }
.card-category:nth-child(6) { --pix: var(--pixel-lime); }
.card-category:nth-child(7) { --pix: var(--pixel-pink); }
.card-category:nth-child(8) { --pix: var(--pixel-sky); }
.card-icon {
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pix) 18%, transparent);
  color: var(--pix);
  margin-bottom: 0.8rem;
}
.card-category h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.card-category p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; flex: 1; }
.card-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--brand-accent) 25%, transparent);
  color: var(--brand-violet-dark);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}
:root[data-theme="dark"] .card-badge,
:root:not([data-theme="light"]) .card-badge {
  color: var(--brand-accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-badge { color: var(--brand-accent); }
}

.popular-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .popular-list { grid-template-columns: repeat(2, 1fr); } }

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.popular-item:hover { border-color: var(--brand-violet); background: var(--card-hover-bg); text-decoration: none; }
.popular-item .mini-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-violet) 10%, transparent);
  color: var(--brand-violet);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.popular-item h4 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.popular-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.article-list {
  display: grid;
  gap: 0.6rem;
}
.article-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: all .18s;
}
.article-link:hover { border-color: var(--brand-violet); color: var(--brand-violet); text-decoration: none; }
.article-link .meta { color: var(--text-muted); font-size: 0.82rem; }

/* -------------------------------------------------------------------------
   9. Breadcrumb
   ------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-violet); }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* -------------------------------------------------------------------------
   10. Article content
   ------------------------------------------------------------------------- */
.article-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.article-meta .dot { opacity: 0.5; }

.prose { font-size: 1rem; line-height: 1.75; }
.prose h2 { margin-top: 2.25rem; padding-top: 0.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--brand-violet); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}
.toc h5 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc li { counter-increment: toc; margin: 0.2rem 0; }
.toc li a {
  display: block;
  padding: 0.3rem 0.5rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  font-size: 0.88rem;
}
.toc li a:hover { color: var(--brand-violet); background: var(--bg); text-decoration: none; }
.toc li a.active { color: var(--brand-violet); border-left-color: var(--brand-violet); font-weight: 500; }
.toc li.h3 a { padding-left: 1.25rem; font-size: 0.82rem; }

.callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.callout-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info-border) 40%, var(--border)); }
.callout-warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-border) 40%, var(--border)); }
.callout-success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success-border) 40%, var(--border)); }
.callout-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger-border) 40%, var(--border)); }
.callout-icon { flex-shrink: 0; margin-top: 2px; }
.callout strong { display: block; margin-bottom: 0.25rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table thead th {
  background: color-mix(in srgb, var(--brand-violet) 8%, transparent);
  color: var(--brand-violet-dark);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
:root[data-theme="dark"] .data-table thead th,
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .data-table thead th}{ color: var(--brand-accent); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 50%, transparent); }

.code-block {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--brand-violet);
  border-radius: var(--radius);
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--brand-violet);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.8rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--brand-violet);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   11. Helpful / Related
   ------------------------------------------------------------------------- */
.helpful {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.helpful h4 { margin-bottom: 1rem; }
.helpful-buttons { display: inline-flex; gap: 0.75rem; }
.helpful-btn {
  background: var(--brand-violet);
  color: #fff;
  border: 1px solid var(--brand-violet);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all .18s;
}
.helpful-btn svg { stroke: currentColor; }
.helpful-btn:hover { background: var(--brand-violet-dark); border-color: var(--brand-violet-dark); color: #fff; }
.helpful-btn.active {
  background: var(--brand-violet-dark);
  border-color: var(--brand-violet-light);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-violet) 35%, transparent);
}
.helpful-thanks {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 1.4em;
}

.related-articles {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* -------------------------------------------------------------------------
   12. Banners & Contact widgets
   ------------------------------------------------------------------------- */
.help-banner {
  background: linear-gradient(120deg, var(--brand-violet-deeper), var(--brand-violet-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.help-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 48%, rgba(79, 209, 232, 0.28), transparent 55%),
    radial-gradient(circle at 10% 20%, var(--pixel-orange) 0, var(--pixel-orange) 2.5px, transparent 3px),
    radial-gradient(circle at 18% 78%, var(--pixel-cyan) 0, var(--pixel-cyan) 2px, transparent 2.5px),
    radial-gradient(circle at 88% 85%, var(--pixel-lime) 0, var(--pixel-lime) 1.5px, transparent 2px),
    radial-gradient(circle at 70% 18%, var(--pixel-coral) 0, var(--pixel-coral) 2px, transparent 2.5px);
  pointer-events: none;
}
.help-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.25rem; }
.help-banner p { color: rgba(255,255,255,0.86); margin: 0; }
.help-banner .banner-content { position: relative; z-index: 1; }
.help-banner .banner-actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
@media (min-width: 768px) {
  .help-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.contact-widget h5 { margin-bottom: 0.75rem; font-size: 0.95rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.contact-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.contact-list a:hover { background: var(--bg); color: var(--brand-violet); text-decoration: none; }
.contact-list svg { color: var(--brand-violet); }

.sidebar-section + .sidebar-section { margin-top: 1rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.sidebar-links a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.sidebar-links a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.sidebar-links a.active { background: color-mix(in srgb, var(--brand-violet) 10%, transparent); color: var(--brand-violet); font-weight: 500; }

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h5 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--brand-violet); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   14. Forms & Accordion
   ------------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1rem 1.1rem;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; color: var(--text-muted); }
.accordion-panel {
  padding: 0 1.1rem 1.1rem;
  display: none;
  color: var(--text-muted);
}
.accordion-panel.open { display: block; }

/* -------------------------------------------------------------------------
   15. Utilities
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-muted); }
.pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: color-mix(in srgb, var(--brand-violet) 10%, transparent);
  color: var(--brand-violet);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   16. Responsive helpers
   ------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 640px) {
  .show-mobile { display: none !important; }
}

/* Wide tables in articles: scroll horizontally on phones instead of widening the page */
@media (max-width: 640px) {
  .prose .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose .data-table th, .prose .data-table td { padding: 0.6rem 0.75rem; }
}
