/* ============================================================
   CB ARTICLE TEMPLATE — Canonical article styles
   Scoped to body.cb-article. 960px canonical width.
   Prefix: .cb-ar-
   ============================================================ */

body.cb-article main {
  padding-top: 0;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.cb-article footer.cb-footer { display: none !important; }
body.cb-article .cb-u-crosslinks { display: none !important; }
body.cb-article .cb-breadcrumb { display: none !important; }
body.cb-article .cb-conversion-block { display: none !important; }
body.cb-article .cb-crosslinks { display: none !important; }
body.cb-article .cb-sidebar-toplist { display: none !important; }

body.cb-article {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f4f6f9;
  -webkit-font-smoothing: antialiased;
}
body.cb-article *, body.cb-article *::before, body.cb-article *::after { box-sizing: border-box; }
body.cb-article a { text-decoration: none; color: inherit; }
body.cb-article img { max-width: 100%; height: auto; }
body.cb-article h1, body.cb-article h2, body.cb-article h3, body.cb-article h4 {
  font-family: 'Roboto', 'Inter', sans-serif; line-height: 1.25; color: #1e3a5f;
}

body.cb-article {
  --cb-bg: #f4f6f9;
  --cb-card-bg: #ffffff;
  --cb-card-border: #e2e6ec;
  --cb-card-shadow: 0 2px 16px rgba(0,0,0,0.05);
  --cb-card-radius: 14px;
  --cb-text: #1a1a2e;
  --cb-text-light: #5a6577;
  --cb-text-muted: #8a93a2;
  --cb-navy: #1e3a5f;
  --cb-navy-dark: #0f1923;
  --cb-green: #11ac84;
  --cb-green-dark: #0d9876;
  --cb-green-light: #e8f8f3;
  --cb-gold: #f5a623;
}

html { scroll-padding-top: 100px; }

/* ============================================================
   HERO
   ============================================================ */
.cb-ar-hero {
  background: linear-gradient(135deg, var(--cb-navy-dark) 0%, var(--cb-navy) 100%);
  padding: 32px 16px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.cb-article.admin-bar .cb-ar-hero { padding-top: 64px; }

.cb-ar-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(17,172,132,.10) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,180,216,.06) 0%, transparent 50%);
  pointer-events: none;
}
.cb-ar-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cb-green), #6aad38); opacity: 0.6;
}
.cb-ar-hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }

.cb-ar-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 22px; text-align: left;
}
.cb-ar-breadcrumb a { color: rgba(255,255,255,0.45); }
.cb-ar-breadcrumb a:hover { color: var(--cb-green); }
.cb-ar-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

.cb-ar-category-badge {
  display: inline-block;
  background: rgba(17,172,132,0.15);
  color: var(--cb-green);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.cb-ar-category-badge:hover { background: rgba(17,172,132,0.22); }

.cb-ar-hero h1,
body.cb-article .cb-ar-hero h1 {
  color: #ffffff !important;
  font-size: 36px; font-weight: 800;
  margin: 0 0 14px; letter-spacing: -0.01em;
}

.cb-ar-hero-meta {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 10px; font-size: 13px; color: #94a3b4;
}
.cb-ar-hero-meta .meta-sep { opacity: 0.4; }
.cb-ar-hero-meta .meta-verified {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--cb-green);
}

@media (min-width: 768px) {
  .cb-ar-hero { padding: 36px 16px 56px; }
  .cb-ar-hero h1 { font-size: 42px; }
  .cb-ar-hero-meta { font-size: 14px; gap: 14px; }
}
@media (max-width: 480px) {
  .cb-ar-hero { padding: 24px 14px 38px; }
  .cb-ar-hero h1,
  body.cb-article .cb-ar-hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
  .cb-ar-hero-subtitle { font-size: 14px; }
  .cb-ar-hero-meta { font-size: 12px; gap: 6px 10px; line-height: 1.4; }
  .cb-ar-hero-meta .meta-sep { display: none; }
  .cb-ar-breadcrumb { font-size: 12px; margin-bottom: 16px; }
  .cb-ar-category-badge { font-size: 10px; padding: 3px 9px; margin-bottom: 10px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.cb-ar-layout {
  max-width: 960px;
  margin: -28px auto 0;
  padding: 28px 16px 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--cb-bg);
  border-radius: 14px 14px 0 0;
}

@media (max-width: 820px) {
  .cb-ar-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.cb-ar-sidebar {
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 821px) {
  .cb-ar-sidebar {
    position: sticky;
    top: 84px;             /* header (~64px) + 20px gap */
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 5;
  }
  .cb-ar-sidebar::-webkit-scrollbar { width: 6px; }
  .cb-ar-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
}

/* SIDEBAR TOPLIST */
.cb-ar-toplist-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 18px 16px;
  box-shadow: var(--cb-card-shadow);
}
.cb-ar-toplist-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cb-text-muted);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--cb-card-border);
}
.cb-ar-toplist-items { display: flex; flex-direction: column; gap: 4px; }
.cb-ar-toplist-item {
  display: grid; grid-template-columns: 20px 36px 1fr;
  gap: 10px; align-items: center;
  padding: 8px; border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.cb-ar-toplist-item:hover {
  background: var(--cb-green-light);
  border-color: rgba(17,172,132,0.18);
  text-decoration: none;
}
.cb-ar-toplist-rank {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--cb-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.cb-ar-toplist-rank.r2 { background: #6b7d8d; }
.cb-ar-toplist-rank.r3 { background: var(--cb-gold); }

.cb-ar-toplist-logo {
  width: 36px; height: 36px;
  background: #f4f6f9; border-radius: 6px;
  object-fit: contain; padding: 4px;
  flex-shrink: 0;
}
.cb-ar-toplist-logo-ph {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: var(--cb-navy);
}
.cb-ar-toplist-info { min-width: 0; display: flex; flex-direction: column; }
.cb-ar-toplist-name {
  font-weight: 700; font-size: 13px; color: var(--cb-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-ar-toplist-bonus {
  font-size: 11px; color: var(--cb-text-light); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-ar-toplist-cta {
  display: block; margin-top: 14px;
  padding: 11px 12px;
  background: var(--cb-green); color: #fff;
  text-align: center; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: background 0.15s;
}
.cb-ar-toplist-cta:hover { background: var(--cb-green-dark); text-decoration: none; color: #fff; }
.cb-ar-toplist-tc {
  margin-top: 8px;
  font-size: 10.5px; color: var(--cb-text-muted); text-align: center;
}

/* TOC */
.cb-ar-toc {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 16px 14px;
  box-shadow: var(--cb-card-shadow);
}
.cb-ar-toc-pending { display: none; }
.cb-ar-toc-ready { display: block; }
.cb-ar-toc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--cb-card-border);
  cursor: pointer;
}
.cb-ar-toc-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--cb-text-muted);
}
.cb-ar-toc-toggle {
  color: var(--cb-text-muted); width: 16px; height: 16px;
  transition: transform 0.2s;
}
.cb-ar-toc.collapsed .cb-ar-toc-toggle { transform: rotate(-90deg); }
.cb-ar-toc.collapsed .cb-ar-toc-list { display: none; }

.cb-ar-toc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.cb-ar-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--cb-text-light);
  font-size: 13.5px; font-weight: 500;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.cb-ar-toc-list a:hover {
  background: var(--cb-green-light); color: var(--cb-green); text-decoration: none;
}
.cb-ar-toc-list a.active {
  color: var(--cb-green); background: rgba(17,172,132,0.06);
  border-left-color: var(--cb-green); padding-left: 12px;
}
.cb-ar-toc-list a.toc-h3 { padding-left: 22px; font-size: 12.5px; }
.cb-ar-toc-list a.toc-h3.active { padding-left: 24px; }

.cb-ar-toc-list li {
  position: relative;
  counter-increment: toc-item;
}
.cb-ar-toc-list { counter-reset: toc-item; }
.cb-ar-toc-list > li > a::before {
  content: counter(toc-item) ".";
  display: inline-block;
  width: 1.6em;
  color: var(--cb-text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cb-ar-toc-list > li > a.active::before { color: var(--cb-green); }
.cb-ar-toc-list a.toc-h3::before { display: none; }

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.cb-ar-article { min-width: 0; }

.cb-ar-content h2 {
  font-size: 24px; font-weight: 800;
  margin: 32px 0 14px;
  scroll-margin-top: 100px;
}
.cb-ar-content h2:first-child { margin-top: 0; }
.cb-ar-content h3 {
  font-size: 18px; font-weight: 700;
  margin: 24px 0 8px;
  scroll-margin-top: 100px;
}
.cb-ar-content p {
  font-size: 16px; line-height: 1.75;
  margin: 0 0 14px;
  color: var(--cb-text);
}
.cb-ar-content ul, .cb-ar-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.cb-ar-content ul li, .cb-ar-content ol li {
  margin-bottom: 8px;
  font-size: 16px; line-height: 1.7;
}
.cb-ar-content ul { list-style: none; padding-left: 0; }
.cb-ar-content ul > li {
  position: relative; padding-left: 22px;
}
.cb-ar-content ul > li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cb-green);
}
.cb-ar-content a {
  color: var(--cb-green); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
  font-weight: 500;
}
.cb-ar-content a:hover { color: var(--cb-green-dark); }
.cb-ar-content strong { font-weight: 700; color: var(--cb-text); }

/* Tables — wrapped at runtime in .cb-ar-table-wrap for horizontal scroll on mobile */
.cb-ar-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  background: var(--cb-card-bg);
  position: relative;
}
.cb-ar-table-wrap::-webkit-scrollbar { height: 6px; }
.cb-ar-table-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.cb-ar-table-wrap table,
.cb-ar-content table {
  width: 100%; border-collapse: collapse;
  margin: 0; font-size: 14.5px;
  background: var(--cb-card-bg);
}
.cb-ar-table-wrap > table { min-width: 480px; }  /* force scroll on narrow screens */
.cb-ar-table-wrap th,
.cb-ar-content table th {
  background: #f4f6f9; padding: 12px 14px;
  text-align: left; font-weight: 700; color: var(--cb-navy);
  border-bottom: 1px solid var(--cb-card-border);
  white-space: nowrap;
}
.cb-ar-table-wrap td,
.cb-ar-content table td {
  padding: 12px 14px; border-top: 1px solid var(--cb-card-border);
  vertical-align: top;
}
/* Subtle right-edge fade so users can see scroll is possible */
@media (max-width: 700px) {
  .cb-ar-table-wrap::after {
    content: ''; position: sticky; right: 0; top: 0;
    display: block; width: 20px; height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 100%);
  }
  .cb-ar-table-wrap th,
  .cb-ar-table-wrap td {
    padding: 10px 12px; font-size: 13.5px;
  }
}

.cb-ar-content blockquote {
  border-left: 4px solid var(--cb-green);
  background: var(--cb-green-light);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 8px;
  font-size: 15.5px;
  color: var(--cb-text);
}

.cb-ar-content img {
  border-radius: 10px;
  margin: 18px 0;
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.cb-ar-author-bio {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  padding: 22px;
  margin: 36px 0 24px;
  box-shadow: var(--cb-card-shadow);
}
.cb-ar-author-photo {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}
.cb-ar-author-body { flex: 1; }
.cb-ar-author-body h4 {
  font-size: 16px; font-weight: 700; margin: 0 0 2px;
  color: var(--cb-navy);
}
.cb-ar-author-role {
  font-size: 11.5px; color: var(--cb-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; margin-bottom: 8px;
}
.cb-ar-author-body p {
  font-size: 14px; color: var(--cb-text-light); line-height: 1.6; margin: 0;
}

/* ============================================================
   FEEDBACK
   ============================================================ */
.cb-ar-feedback { text-align: center; padding: 16px 0 8px; }
.cb-ar-feedback p { font-size: 14px; color: var(--cb-text-light); margin-bottom: 12px; }
.cb-ar-feedback-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cb-ar-feedback-btn {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 8px;
  padding: 8px 18px; font-size: 13px;
  cursor: pointer; color: var(--cb-text);
  font-family: inherit; transition: all 0.15s;
}
.cb-ar-feedback-btn:hover { border-color: var(--cb-green); color: var(--cb-green); }
.cb-ar-feedback-btn.selected { background: var(--cb-green); color: #fff; border-color: var(--cb-green); }
.cb-ar-feedback-thanks { display: none; font-size: 13px; color: var(--cb-green); margin-top: 10px; }

/* ============================================================
   FAQ
   ============================================================ */
.cb-ar-faq {
  max-width: 960px; margin: 0 auto; padding: 24px 16px;
}
.cb-ar-faq-inner { max-width: 760px; margin: 0 auto; }
.cb-ar-faq h2 {
  font-size: 22px; font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cb-card-border);
}
.cb-ar-faq-item {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--cb-card-shadow);
  margin-bottom: 8px;
}
.cb-ar-faq-q {
  width: 100%;
  padding: 16px 20px;
  font-weight: 600; font-size: 15px; color: var(--cb-navy);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: transparent; border: 0; text-align: left;
  font-family: inherit;
}
.cb-ar-faq-q svg { width: 18px; height: 18px; color: var(--cb-text-muted); flex-shrink: 0; transition: transform 0.2s; }
.cb-ar-faq-item.open .cb-ar-faq-q svg { transform: rotate(180deg); color: var(--cb-green); }
.cb-ar-faq-a {
  padding: 0 20px 16px;
  font-size: 14.5px; color: var(--cb-text); line-height: 1.7;
}
.cb-ar-faq-item:not(.open) .cb-ar-faq-a { display: none; }

/* ============================================================
   RELATED GUIDES
   ============================================================ */
.cb-ar-related {
  max-width: 960px; margin: 0 auto; padding: 24px 16px 56px;
}
.cb-ar-related-inner { width: 100%; }
.cb-ar-related h2 {
  font-size: 22px; font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cb-card-border);
}
.cb-ar-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 820px) {
  .cb-ar-related-grid { grid-template-columns: 1fr; }
}
.cb-ar-related-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  overflow: hidden;
  box-shadow: var(--cb-card-shadow);
  display: block;
  transition: all 0.2s;
}
.cb-ar-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  text-decoration: none;
}
.cb-ar-related-img {
  width: 100%; height: 150px; object-fit: cover;
  background: linear-gradient(135deg, var(--cb-navy-dark), var(--cb-navy));
}
.cb-ar-related-img-ph {
  background: linear-gradient(135deg, var(--cb-navy-dark), var(--cb-green));
}
.cb-ar-related-body { padding: 14px 16px; }
.cb-ar-related-kicker {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cb-green); margin-bottom: 6px;
}
.cb-ar-related-card h3 {
  font-size: 15px; font-weight: 700;
  margin: 0 0 6px; line-height: 1.35;
}
.cb-ar-related-meta {
  font-size: 12px; color: var(--cb-text-muted);
}

/* ============================================================
   LEGACY CONTENT INTEGRATION
   Hide duplicates from old glossary template (cgl-*) and
   blanket-style embedded sections to match the new design.
   ============================================================ */
body.cb-article .cgl-breadcrumb,
body.cb-article .cgl-hero,
body.cb-article .cgl-toc { display: none !important; }

body.cb-article .cb-ar-content .cgl-section { margin-bottom: 32px; }
body.cb-article .cb-ar-content .cgl-section h2 {
  font-size: 24px; font-weight: 800; margin: 0 0 14px; color: var(--cb-navy);
}
body.cb-article .cb-ar-content .cgl-section h3 {
  font-size: 17px; font-weight: 700; margin: 16px 0 8px; color: var(--cb-navy);
}

/* Definition / callout box */
body.cb-article .cgl-definition-box {
  background: var(--cb-green-light);
  border: 1px solid rgba(17,172,132,0.18);
  border-left: 4px solid var(--cb-green);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 18px;
}
body.cb-article .cgl-def-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
body.cb-article .cgl-def-header h2 {
  font-size: 14px; font-weight: 800; color: var(--cb-green);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0;
}
body.cb-article .cgl-def-text {
  font-size: 16px; line-height: 1.65; margin: 0 0 8px; color: var(--cb-text);
}
body.cb-article .cgl-def-aka {
  font-size: 13px; color: var(--cb-text-light); margin: 0;
}

/* Points grid */
body.cb-article .cgl-points-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 0 0 18px;
  align-items: stretch;
}
@media (max-width: 600px) {
  body.cb-article .cgl-points-grid { grid-template-columns: 1fr; }
}
body.cb-article .cgl-point-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--cb-card-shadow);
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 130px;
}
body.cb-article .cgl-point-card h3 {
  font-size: 15px; font-weight: 700; margin: 6px 0 4px; color: var(--cb-navy);
}
body.cb-article .cgl-point-card p {
  font-size: 13.5px; color: var(--cb-text-light); line-height: 1.55; margin: 0;
}
body.cb-article .cgl-point-icon { font-size: 22px; }

/* Examples */
body.cb-article .cgl-example {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--cb-card-shadow);
  margin: 0 0 14px;
}
body.cb-article .cgl-example-num,
body.cb-article .cgl-example-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cb-green); color: #fff;
  font-weight: 700; font-size: 13px; margin-right: 8px;
}
body.cb-article .cgl-example-result {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--cb-card-border);
  font-size: 13.5px;
}
body.cb-article .cgl-example-result strong { color: var(--cb-green); }

/* Related-terms / tip cards — uniform sizing */
body.cb-article .cgl-related-grid,
body.cb-article .cgl-tips-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 0 0 18px;
  align-items: stretch;
}
@media (max-width: 700px) {
  body.cb-article .cgl-related-grid,
  body.cb-article .cgl-tips-grid { grid-template-columns: 1fr; }
}
body.cb-article .cgl-related-card,
body.cb-article .cgl-tip-card {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--cb-card-shadow);
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 130px;
}
body.cb-article .cgl-related-card h3,
body.cb-article .cgl-related-card h4,
body.cb-article .cgl-tip-card h3,
body.cb-article .cgl-tip-card h4 {
  font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--cb-navy);
}
body.cb-article .cgl-related-card p,
body.cb-article .cgl-tip-card p {
  font-size: 13px; color: var(--cb-text-light); line-height: 1.5; margin: 0;
  flex: 1;
}

/* Browse-grid — "Utforsk flere begreper": de-emphasize as secondary footer */
body.cb-article .cb-ar-content .cgl-section:has(.cgl-browse-grid) {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--cb-card-border);
}
body.cb-article .cb-ar-content .cgl-section:has(.cgl-browse-grid) h2 {
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-text-muted);
  margin: 0 0 12px;
}
body.cb-article .cgl-browse-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 18px;
}
body.cb-article .cgl-browse-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f4f6f9;
  color: var(--cb-text-light);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}
body.cb-article .cgl-browse-link:hover {
  background: var(--cb-green-light);
  color: var(--cb-green);
  border-color: rgba(17,172,132,0.2);
  text-decoration: none;
}
body.cb-article .cgl-browse-link > span { font-size: 12px; }

/* Embedded cgl-faq — match my faq design */
body.cb-article .cgl-faq-item {
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--cb-card-shadow);
}
body.cb-article .cgl-faq-q {
  width: 100%;
  padding: 16px 20px;
  font-weight: 600; font-size: 15px; color: var(--cb-navy);
  cursor: pointer;
  background: transparent; border: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
body.cb-article .cgl-faq-arrow {
  color: var(--cb-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
body.cb-article .cgl-faq-item.open .cgl-faq-arrow {
  transform: rotate(180deg);
  color: var(--cb-green);
}
body.cb-article .cgl-faq-a {
  padding: 0 20px 16px;
  font-size: 14.5px; color: var(--cb-text); line-height: 1.7;
}
body.cb-article .cgl-faq-a p { margin: 0; color: var(--cb-text); }
/* Default-collapsed: hide answer until item gets .open class via JS click */
body.cb-article .cgl-faq-item:not(.open) .cgl-faq-a { display: none; }

/* Hide legacy clutter we don't want */
body.cb-article .cgl-explore-tags,
body.cb-article .cgl-tag-cloud,
body.cb-article .cgl-cta-box,
body.cb-article .cgl-author-block,
body.cb-article .article-toc,
body.cb-article .cbm-bc,
body.cb-article .cbm-hero { display: none !important; }

/* Style cbg-gcard game cards (from cb_mechanic_page_template) */
body.cb-article .cbg-glist,
body.cb-article .cbm-glist {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
  list-style: none;
  padding: 0;
}
@media (max-width: 600px) {
  body.cb-article .cbg-glist,
  body.cb-article .cbm-glist { grid-template-columns: 1fr; }
}
body.cb-article .cbg-gcard {
  display: flex !important;
  flex-direction: column;
  background: var(--cb-card-bg);
  border: 1px solid var(--cb-card-border);
  border-radius: var(--cb-card-radius);
  overflow: hidden;
  box-shadow: var(--cb-card-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s;
  margin: 0;
}
body.cb-article .cbg-gcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
body.cb-article .cbg-gcard-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--cb-navy-dark), var(--cb-navy));
  overflow: hidden;
}
body.cb-article .cbg-gcard-rank {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--cb-green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
}
body.cb-article .cbg-gcard-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.cb-article .cbg-gcard-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  flex: 1;
}
body.cb-article .cbg-gcard-title {
  font-family: 'Roboto','Inter',sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--cb-navy);
  margin: 0 0 4px;
  line-height: 1.3;
}
body.cb-article .cbg-gcard-provider {
  font-size: 12px;
  color: var(--cb-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
body.cb-article .cbg-gcard-desc {
  font-size: 13.5px;
  color: var(--cb-text-light);
  line-height: 1.55;
  margin-bottom: 10px;
  flex: 1;
}
body.cb-article .cbg-gcard-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}
body.cb-article .cbg-gcard-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f4f6f9;
  color: var(--cb-text);
  font-weight: 600;
}
body.cb-article .cbg-gcard-tag.rtp { background: var(--cb-green-light); color: var(--cb-green); }
body.cb-article .cbg-gcard-tag.vol { background: #fff8ec; color: #b07410; }

/* Hero h1 — ensure white wins over any parent-theme h1 rules */
body.cb-article .cb-ar-hero h1,
body.cb-article main .cb-ar-hero h1 { color: #ffffff !important; }

/* Legacy CTA card — restyle for readability */
body.cb-article .cgl-footer-cta {
  background: linear-gradient(135deg, var(--cb-navy-dark) 0%, var(--cb-navy) 100%);
  border-radius: var(--cb-card-radius);
  padding: 36px 28px;
  text-align: center;
  margin: 36px 0 24px;
  position: relative;
  overflow: hidden;
}
body.cb-article .cgl-footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(17,172,132,0.20) 0%, transparent 60%);
  pointer-events: none;
}
body.cb-article .cgl-footer-cta > * { position: relative; z-index: 1; }
body.cb-article .cgl-footer-cta h2 {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
}
body.cb-article .cgl-footer-cta p {
  color: #c5cfdb !important;
  font-size: 15px;
  margin: 0 0 22px;
  line-height: 1.5;
}
body.cb-article .cgl-footer-cta-btn,
body.cb-article .cgl-footer-cta a {
  display: inline-block;
  background: var(--cb-green) !important;
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s;
}
body.cb-article .cgl-footer-cta-btn:hover,
body.cb-article .cgl-footer-cta a:hover {
  background: var(--cb-green-dark) !important;
  color: #ffffff !important;
}

/* FAQ text contrast — legacy cgl-faq answers were rendering too light */
body.cb-article .cgl-faq-a,
body.cb-article .cgl-faq-a p,
body.cb-article .cgl-faq-a li {
  color: var(--cb-text) !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
}
