/* =====================================================================
   REDIAL — Single Blog Post  (brand-aligned reading experience)
   Loaded only on single posts (functions.php: is_singular('post')).
   Brand System v2: red #E61E31 / black #040303 / off-white #F4F4F4.
   Satoshi (headings) + Nunito Sans (body). Exact px values.

   Fixes:
   • Global parent rule `ol,ul{list-style:none}` + a `padding:0` bug in
     `.single-post .entry-content ul` clipped every bullet. This layer
     restores reliable, brand-red list markers on ALL posts.
   • Normalises the hand-authored "Key Takeaways" block (📋 / ✓ / plain)
     into ONE branded callout box (wrapper added by js/blog-single.js).
   • Adds a Related Articles grid mirroring the treatment-page cards.

   v1.0 — 2026-06-10
   ===================================================================== */

/* ---- Fonts (blog pages don't load treatment-page.css) ---- */
@font-face { font-family:'Satoshi'; src:url('/wp-content/themes/redial-clinic-child/fonts/satoshi-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('/wp-content/themes/redial-clinic-child/fonts/satoshi-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('/wp-content/themes/redial-clinic-child/fonts/satoshi-900.woff2') format('woff2'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'Nunito Sans'; src:url('/wp-content/themes/redial-clinic-child/fonts/nunito-sans.woff2') format('woff2-variations'), url('/wp-content/themes/redial-clinic-child/fonts/nunito-sans.woff2') format('woff2'); font-weight:200 1000; font-style:normal; font-display:swap; }

:root {
  --rb-red:        #E61E31;
  --rb-red-hover:  #C81629;
  --rb-red-soft:   #FDECEE;
  --rb-black:      #040303;
  --rb-ink:        #23272E;   /* body text */
  --rb-ink-soft:   #55606B;   /* muted text */
  --rb-line:       #E7E9EC;
  --rb-surface:    #FFFFFF;
  --rb-surface-2:  #F7F8FA;
  --rb-heading:    'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rb-body:       'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rb-radius:     14px;
  --rb-shadow:     0 1px 2px rgba(4,3,3,.04), 0 8px 24px rgba(4,3,3,.06);
  --rb-shadow-lg:  0 14px 40px rgba(4,3,3,.12);
  --rb-measure:    720px;
}

/* =====================================================================
   1. PAGE FRAME + HEADER
   ===================================================================== */
body.single-post .blog-detail-wrapper {
  background: var(--rb-surface);
  padding-top: 40px;
}

/* Article header: centered, generous */
body.single-post .entry-header {
  max-width: 820px;
  margin: 0 auto 8px;
  padding: 0 20px;
}
body.single-post .entry-header .entry-title {
  font-family: var(--rb-heading) !important;
  font-weight: 900 !important;
  font-size: 42px !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em !important;
  color: var(--rb-black) !important;
  margin: 8px 0 18px !important;
}
body.single-post .blog-item-meta {
  font-family: var(--rb-body) !important;
  font-size: 15px !important;
  color: var(--rb-ink-soft) !important;
  letter-spacing: .2px;
  margin-bottom: 26px !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
body.single-post .blog-item-meta a {
  color: var(--rb-red) !important;
  font-weight: 700;
  text-decoration: none;
}
body.single-post .blog-item-meta a:hover { text-decoration: underline; }

/* Featured image — full, rounded, subtle depth */
body.single-post .entry-header img {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 6px auto 0 !important;
  border-radius: 18px;
  box-shadow: var(--rb-shadow);
  height: auto;
}

/* =====================================================================
   2. CONTENT COLUMN + TYPOGRAPHY
   ===================================================================== */
body.single-post .blog-item-detail-box {
  max-width: 100%;
}
body.single-post .entry-content {
  font-family: var(--rb-body) !important;
  font-size: 18.5px !important;
  line-height: 1.78 !important;
  color: var(--rb-ink) !important;
  max-width: var(--rb-measure);
  margin: 40px auto 0 !important;
  padding: 0 20px !important;
}
body.single-post .entry-content p {
  margin: 0 0 1.35em !important;
  color: var(--rb-ink) !important;
  letter-spacing: 0 !important;
}
/* First paragraph as a lead */
body.single-post .entry-content > p:first-of-type {
  font-size: 20px !important;
  line-height: 1.7 !important;
  color: #2C313A !important;
}

/* Headings — Satoshi, clear scale + rhythm */
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5 {
  font-family: var(--rb-heading) !important;
  color: var(--rb-black) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
}
body.single-post .entry-content h2 {
  font-size: 30px !important;
  font-weight: 700 !important;
  margin: 1.7em 0 .6em !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--rb-line) !important;
}
body.single-post .entry-content h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 12px;
  margin-bottom: -14px;
  background: var(--rb-red);
  border-radius: 2px;
}
body.single-post .entry-content h3 {
  font-size: 23px !important;
  font-weight: 700 !important;
  margin: 1.5em 0 .5em !important;
}
body.single-post .entry-content h4 {
  font-size: 19px !important;
  font-weight: 700 !important;
  margin: 1.4em 0 .4em !important;
}
body.single-post .entry-content strong,
body.single-post .entry-content b {
  /* No weight override. Authors wrap whole lead sentences in <b>; forcing any
     bold weight read too heavy. Let them render at the theme's normal weight,
     keeping only a near-black colour for a subtle, non-heavy emphasis. */
  color: var(--rb-black) !important;
}

/* Links */
body.single-post .entry-content a {
  color: var(--rb-red) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(230,30,49,.35);
  transition: border-color .15s ease, color .15s ease;
}
body.single-post .entry-content a:hover {
  color: var(--rb-red-hover) !important;
  border-bottom-color: var(--rb-red-hover);
}

/* =====================================================================
   3. LISTS — the bullet fix (defeats global list-style:none + padding:0)
   ===================================================================== */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 1.1em 0 1.5em !important;
  padding: 0 0 0 1.55em !important;   /* real indent so markers are visible */
  list-style-position: outside !important;
}
body.single-post .entry-content ul { list-style: none !important; }  /* custom marker below */
body.single-post .entry-content ol { list-style: decimal !important; }

body.single-post .entry-content li {
  margin: 0 0 .6em !important;
  padding-left: .2em;
  line-height: 1.7 !important;
}
body.single-post .entry-content ol li::marker {
  color: var(--rb-red);
  font-weight: 700;
}
/* Custom red bullet for UL (reliable, not clipped) */
body.single-post .entry-content ul > li {
  position: relative;
  list-style: none !important;
  padding-left: 1.55em !important;
}
body.single-post .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rb-red);
}
/* nested lists get a hollow marker */
body.single-post .entry-content ul ul > li::before {
  background: transparent;
  border: 2px solid var(--rb-red);
  top: .55em;
}
body.single-post .entry-content li > b,
body.single-post .entry-content li > strong,
body.single-post .entry-content li span > b {
  font-weight: 700 !important;
  color: var(--rb-black) !important;
}

/* =====================================================================
   4. BLOCKQUOTE, TABLE, IMAGES
   ===================================================================== */
body.single-post .entry-content blockquote {
  margin: 1.6em 0 !important;
  padding: 6px 6px 6px 22px !important;
  border-left: 4px solid var(--rb-red) !important;
  background: var(--rb-red-soft);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #2C313A;
}
body.single-post .entry-content blockquote p:last-child { margin-bottom: 0 !important; }

body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 26px auto !important;
  display: block;
  box-shadow: var(--rb-shadow);
}

body.single-post .entry-content table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--rb-line) !important;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.8em 0 !important;
  font-size: 16px;
}
body.single-post .entry-content table th {
  background: var(--rb-black);
  color: #fff;
  font-family: var(--rb-heading);
  font-weight: 700 !important;
  text-align: left;
  padding: 14px 16px !important;
  font-size: 15px;
  border: none !important;
}
body.single-post .entry-content table td {
  padding: 13px 16px !important;
  border: none !important;
  border-top: 1px solid var(--rb-line) !important;
  font-size: 16px;
  vertical-align: top;
}
body.single-post .entry-content table tr:nth-child(even) td { background: var(--rb-surface-2); }

/* Data table with <b> header cells instead of <th> (class added by JS) */
body.single-post .entry-content table.rb-table tr.rb-table__head td {
  background: var(--rb-black) !important;
  color: #fff !important;
  font-family: var(--rb-heading);
  font-weight: 700 !important;
  border-top: none !important;
}
body.single-post .entry-content table.rb-table tr.rb-table__head td b,
body.single-post .entry-content table.rb-table tr.rb-table__head td strong { color: #fff !important; }

/* Single-cell layout table → soft callout card (CTA / vignette / note).
   Overrides the generic data-table borders above. */
body.single-post .entry-content table.rb-callout {
  display: block;
  border: 1px solid var(--rb-line) !important;
  border-left: 4px solid var(--rb-red) !important;
  border-radius: var(--rb-radius);
  background: var(--rb-surface-2);
  margin: 1.8em 0 !important;
  overflow: hidden;
}
body.single-post .entry-content table.rb-callout tbody,
body.single-post .entry-content table.rb-callout tr { display: block; }
body.single-post .entry-content table.rb-callout td {
  display: block;
  border: none !important;
  background: transparent !important;
  padding: 20px 24px !important;
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: var(--rb-ink) !important;
}
body.single-post .entry-content table.rb-callout td > b:first-child,
body.single-post .entry-content table.rb-callout td > strong:first-child {
  display: block;
  font-family: var(--rb-heading);
  font-size: 17px;
  color: var(--rb-black) !important;
  margin-bottom: 6px;
}

/* CTA callout (single-cell table containing a link, e.g. "Book a consult").
   Distinct dark branded card so it reads as an action, not a Key-Takeaways box. */
body.single-post .entry-content table.rb-callout.rb-cta {
  background: linear-gradient(135deg, #1c0b0d 0%, var(--rb-black) 60%);
  border: none !important;
  border-left: 4px solid var(--rb-red) !important;
  box-shadow: var(--rb-shadow);
}
body.single-post .entry-content table.rb-callout.rb-cta td {
  color: #EDEEF0 !important;
  padding: 22px 26px !important;
}
body.single-post .entry-content table.rb-callout.rb-cta td > b:first-child,
body.single-post .entry-content table.rb-callout.rb-cta td > strong:first-child {
  color: #fff !important;
}
/* Link on the dark card: colour-based (no background dependency, so it's
   robust even where a browser extension strips author background-colors). */
body.single-post .entry-content table.rb-callout.rb-cta a {
  color: #FF7480 !important;
  font-weight: 700;
  border: none !important;
  border-bottom: 1px solid rgba(255,116,128,.5) !important;
  padding: 0;
  transition: color .15s ease, border-color .15s ease;
}
body.single-post .entry-content table.rb-callout.rb-cta a:hover {
  color: #fff !important;
  border-bottom-color: #fff !important;
}

/* =====================================================================
   5. KEY TAKEAWAYS callout  (wrapper injected by blog-single.js)
   ===================================================================== */
.rb-kt {
  margin: 2em auto 2.2em !important;
  background: linear-gradient(180deg, #FFF 0%, var(--rb-red-soft) 100%);
  border: 1px solid #F6D3D8;
  border-left: 5px solid var(--rb-red);
  border-radius: var(--rb-radius);
  padding: 24px 26px 20px;
  box-shadow: var(--rb-shadow);
}
.rb-kt__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--rb-heading) !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  letter-spacing: .01em !important;
  color: var(--rb-black) !important;
  margin: 0 0 14px !important;
  text-transform: none;
}
.rb-kt__title::before {
  content: "";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--rb-red);
  -webkit-mask: center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
          mask: center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  box-shadow: 0 2px 6px rgba(230,30,49,.35);
}
/* NOTE: prefixed with .entry-content so these out-rank the generic
   `.entry-content ul>li::before` red-dot rule inside the callout. */
body.single-post .entry-content .rb-kt ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.single-post .entry-content .rb-kt ul li {
  position: relative;
  margin: 0 0 11px !important;
  padding: 0 0 0 30px !important;
  font-size: 16.5px !important;
  line-height: 1.6 !important;
  color: #2A2F37 !important;
}
body.single-post .entry-content .rb-kt ul li:last-child { margin-bottom: 0 !important; }
body.single-post .entry-content .rb-kt ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(230,30,49,.12);
}
/* red check drawn on top of the soft disc */
body.single-post .entry-content .rb-kt ul li::after {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  -webkit-mask: center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
          mask: center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background: var(--rb-red);
}
/* Neutralise inline colors the authors baked into KT text */
body.single-post .entry-content .rb-kt ul li span { color: inherit !important; }
body.single-post .entry-content .rb-kt ul li b,
body.single-post .entry-content .rb-kt ul li strong { color: var(--rb-black) !important; font-weight: 700 !important; }

/* =====================================================================
   6. TABLE OF CONTENTS  (wrapper injected by blog-single.js)
   ===================================================================== */
.rb-toc {
  margin: 1.6em auto 2em !important;
  background: var(--rb-surface-2);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 20px 24px;
}
.rb-toc__title {
  font-family: var(--rb-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: var(--rb-ink-soft) !important;
  margin: 0 0 12px !important;
}
body.single-post .entry-content .rb-toc ul,
body.single-post .entry-content .rb-toc ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  columns: 2;
  column-gap: 34px;
}
body.single-post .entry-content .rb-toc li {
  margin: 0 0 9px !important;
  padding: 0 !important;
  break-inside: avoid;
  font-size: 15.5px !important;
  line-height: 1.5 !important;
}
body.single-post .entry-content .rb-toc li::before { display: none !important; content: none !important; }
body.single-post .entry-content .rb-toc a {
  color: var(--rb-ink) !important;
  border: none !important;
  text-decoration: none;
  transition: color .15s ease;
}
body.single-post .entry-content .rb-toc a:hover { color: var(--rb-red) !important; }
@media (max-width: 640px) {
  body.single-post .entry-content .rb-toc ul,
  body.single-post .entry-content .rb-toc ol { columns: 1; }
}

/* =====================================================================
   7. AUTHOR BOX
   ===================================================================== */
body.single-post .author-box-wrapper {
  max-width: var(--rb-measure);
  margin: 46px auto 0 !important;
  padding: 0 20px;
}
body.single-post .author-profile-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--rb-surface-2);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 24px 26px;
}
body.single-post .author-profile-avatar {
  width: 104px !important;
  height: 104px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--rb-line);
  flex: 0 0 auto;
}
body.single-post .author-profile-name {
  font-family: var(--rb-heading) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
  letter-spacing: 0 !important;
}
body.single-post .author-profile-name a { color: var(--rb-black) !important; text-decoration: none; }
body.single-post .author-profile-name a:hover { color: var(--rb-red) !important; }
body.single-post .author-profile-bio {
  font-family: var(--rb-body) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--rb-ink-soft) !important;
  margin: 0 0 12px !important;
}
body.single-post .author-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
body.single-post .author-profile-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rb-ink) !important;
  text-decoration: none;
}
body.single-post .author-profile-social a:hover { color: var(--rb-red) !important; }
body.single-post .author-social-icon { width: 16px; height: 16px; }

/* =====================================================================
   8. RELATED ARTICLES  (mirrors treatment-page tp-blog-card)
   ===================================================================== */
.rb-related {
  padding: 64px 0 72px;
  margin-top: 56px;
  background: var(--rb-surface-2);
  border-top: 1px solid var(--rb-line);
}
.rb-related__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.rb-related__h2 {
  font-family: var(--rb-heading) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--rb-black) !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}
.rb-related__h2 em { color: var(--rb-red); font-style: normal; }
.rb-related__sub {
  font-family: var(--rb-body);
  font-size: 16px;
  color: var(--rb-ink-soft);
  margin: 0 0 34px !important;
}
.rb-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rb-card {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  overflow: hidden;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rb-shadow-lg);
  border-color: var(--rb-red);
}
.rb-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--rb-surface-2);
  overflow: hidden;
}
.rb-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rb-card:hover .rb-card__thumb img { transform: scale(1.05); }
.rb-card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.rb-card__cat {
  font-family: var(--rb-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--rb-red);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rb-card__title {
  font-family: var(--rb-heading) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--rb-black) !important;
  margin: 0 0 12px !important;
  line-height: 1.35 !important;
}
.rb-card__excerpt {
  font-family: var(--rb-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--rb-ink-soft);
  margin-bottom: 16px;
  flex: 1;
}
.rb-card__meta { font-family: var(--rb-body); font-size: 13px; color: #8A929C; }

/* =====================================================================
   9. RESPONSIVE
   ===================================================================== */
@media (max-width: 1023px) {
  .rb-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body.single-post .entry-header .entry-title { font-size: 30px !important; }
  body.single-post .entry-content { font-size: 17.5px !important; }
  body.single-post .entry-content > p:first-of-type { font-size: 18px !important; }
  body.single-post .entry-content h2 { font-size: 25px !important; }
  body.single-post .entry-content h3 { font-size: 20px !important; }
  .rb-related__grid { grid-template-columns: 1fr; }
  .rb-related__h2 { font-size: 26px !important; }
  body.single-post .author-profile-box { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  body.single-post .author-profile-social { justify-content: center; }
  .rb-kt { padding: 20px 18px 16px; }
}

/* =====================================================================
   10. DESKTOP TOC SIDEBAR (≥1200px) — sticky left rail
   (grid + .rb-toc-side built by blog-single.js; below 1200px the TOC
   stays inline in the content, so this whole block is desktop-only.)
   ===================================================================== */
@media (min-width: 1200px) {
  .rb-blog-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 820px);
    justify-content: center;
    column-gap: 60px;
    max-width: 1200px;
    margin: 40px auto 0;
    align-items: start;
  }
  .rb-blog-grid > .rb-toc-side  { grid-column: 1; }
  .rb-blog-grid > .entry-content {
    grid-column: 2;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    min-width: 0;
  }

  .rb-toc-side {
    position: sticky;
    top: 100px;               /* clear the fixed header */
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .rb-toc-side::-webkit-scrollbar { width: 6px; }
  .rb-toc-side::-webkit-scrollbar-thumb { background: var(--rb-line); border-radius: 6px; }

  /* Brand-style the Easy-TOC box inside the sidebar */
  .rb-toc-side .ez-toc-container,
  .rb-toc-side #ez-toc-container {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: var(--rb-surface-2) !important;
    border: 1px solid var(--rb-line) !important;
    border-radius: var(--rb-radius) !important;
    box-shadow: none !important;
  }
  /* Keep it expanded; hide the collapse toggle in the rail */
  .rb-toc-side .ez-toc-title-toggle { display: none !important; }
  .rb-toc-side nav,
  .rb-toc-side .ez-toc-list { display: block !important; }

  .rb-toc-side .ez-toc-title {
    font-family: var(--rb-heading) !important;
    font-size: 12px !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: var(--rb-ink-soft) !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
  }
  .rb-toc-side ul.ez-toc-list,
  .rb-toc-side .ez-toc-list ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .rb-toc-side .ez-toc-list li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  .rb-toc-side .ez-toc-list li::before { display: none !important; content: none !important; }
  /* Drop ez-toc's counter numbers (they don't increment cleanly in the rail) */
  .rb-toc-side a.ez-toc-link::before,
  .rb-toc-side .ez-toc-list a::before { content: none !important; }
  .rb-toc-side a.ez-toc-link,
  .rb-toc-side .ez-toc-list a {
    display: block;
    font-family: var(--rb-body) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: var(--rb-ink-soft) !important;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    text-decoration: none !important;
    transition: color .15s ease, border-color .15s ease;
  }
  /* Nested (h3) items indented a touch */
  .rb-toc-side .ez-toc-list ul a { padding-left: 24px; font-size: 13.5px !important; }
  .rb-toc-side a.ez-toc-link:hover,
  .rb-toc-side .ez-toc-list a:hover,
  .rb-toc-side a.ez-toc-link.active,
  .rb-toc-side .ez-toc-heading-highlight > a {
    color: var(--rb-red) !important;
    border-left-color: var(--rb-red) !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rb-card, .rb-card__thumb img { transition: none !important; }
}
