/* Public blog post — hero + styled body (matches CMS editor classes) */

.blog-post-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  color: #fff;
  overflow: hidden;
}

.blog-post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 10% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(15, 112, 80, 0.55), transparent 50%),
    linear-gradient(155deg, var(--brand-700, #0b5e42) 0%, var(--brand-800, #084c36) 48%, var(--brand-900, #063d2b) 100%);
}

.blog-post-hero__inner {
  width: 100%;
  text-align: center;
}

.blog-post-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 0.85rem;
}
.blog-post-hero .breadcrumb__list {
  justify-content: center;
}
.blog-post-hero .breadcrumb__item a,
.blog-post-hero .breadcrumb__item span,
.blog-post-hero .breadcrumb__item.is-current {
  color: rgba(255, 255, 255, 0.88);
}
.blog-post-hero .breadcrumb__item a:hover {
  color: #fff;
}
.blog-post-hero .breadcrumb__item + .breadcrumb__item::before {
  color: rgba(255, 255, 255, 0.45);
}

.blog-post-hero__preview {
  margin-bottom: 0.75rem;
}

.blog-post-hero__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
  max-width: min(72rem, 100%);
  margin-inline: auto;
}

.blog-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  justify-content: center;
  align-items: center;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}
.blog-post-hero__meta > * + *:before {
  content: "·";
  margin-inline-end: 0.85rem;
  opacity: 0.55;
}
.blog-post-hero__chip {
  display: inline-flex;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 0.82rem;
}
.blog-post-hero__chip:before {
  content: none !important;
}

.blog-post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.blog-post-tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-100, #d6f0e5) 80%, #fff);
  color: var(--brand-800, #084c36);
  font-size: 0.85rem;
  font-weight: 700;
}

.blog-post-section {
  padding-top: 1.75rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.blog-post-container {
  width: 100%;
  max-width: min(92rem, 96vw);
}

.blog-post {
  width: 100%;
  max-width: none;
}

/* —— Body typography & CMS effect classes —— */
.prose--blog {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text, #1e293b);
  max-width: none;
  width: 100%;
}

.prose--blog > *:first-child {
  margin-top: 0;
}

.prose--blog h2,
.prose--blog h3 {
  color: var(--brand-800, #084c36);
  line-height: 1.4;
  margin: 1.85rem 0 0.8rem;
  font-weight: 700;
}

.prose--blog h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid color-mix(in srgb, var(--brand-400, #2fa77e) 35%, transparent);
}

.prose--blog h3 {
  font-size: 1.15rem;
}

.prose--blog p {
  margin: 0 0 1.05rem;
}

.prose--blog strong {
  color: var(--brand-900, #063d2b);
  font-weight: 700;
}

.prose--blog ul,
.prose--blog ol {
  margin: 0 0 1.2rem;
  padding-inline-start: 1.4rem;
}

/* Persian / Arabic list markers (browser default is Latin 1,2,3…) */
@counter-style persian-digits {
  system: numeric;
  symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
  suffix: ". ";
}

@counter-style arabic-indic-digits {
  system: numeric;
  symbols: "٠" "١" "٢" "٣" "٤" "٥" "٦" "٧" "٨" "٩";
  suffix: ". ";
}

html[lang="fa"] .prose--blog ol,
html[lang^="fa-"] .prose--blog ol {
  list-style-type: persian-digits;
}

html[lang="ar"] .prose--blog ol,
html[lang^="ar-"] .prose--blog ol {
  list-style-type: arabic-indic-digits;
}

.prose--blog li {
  margin-bottom: 0.45rem;
}

.prose--blog li::marker {
  color: var(--brand-500, #148a63);
  font-weight: 700;
}

.prose--blog img {
  max-width: 100%;
  height: auto;
  border-radius: 0.85rem;
  display: block;
}

.prose--blog > img {
  margin: 1.25rem auto;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.prose--blog .cms-figure,
.prose .cms-figure,
.prose__body .cms-figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

.prose--blog .cms-figure img,
.prose .cms-figure img,
.prose__body .cms-figure img {
  width: 100%;
  margin: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cms-media--sm { width: min(100%, 16.5rem); }
.cms-media--md { width: min(100%, 26rem); }
.cms-media--lg { width: min(100%, 40rem); }
.cms-media--xl { width: 100%; }
.cms-media--center { margin-inline: auto; clear: both; }
.cms-media--start {
  float: inline-start;
  margin-inline-end: 1.25rem;
  margin-block: 0.2rem 1.1rem;
}
.cms-media--end {
  float: inline-end;
  margin-inline-start: 1.25rem;
  margin-block: 0.2rem 1.1rem;
}

.cms-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.cms-video iframe,
.cms-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cms-figcaption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
  font-weight: 600;
}

.prose--blog .cms-figcaption:empty,
.prose .cms-figcaption:empty,
.prose__body .cms-figcaption:empty {
  display: none;
}

.prose--blog::after,
.prose::after,
.prose__body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .cms-media--start,
  .cms-media--end {
    float: none;
    width: 100%;
    margin-inline: auto;
  }
}

.prose--blog a {
  color: var(--brand-700, #0b5e42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose--blog a:hover {
  color: var(--brand-500, #148a63);
}

.prose--blog hr {
  border: 0;
  height: 1px;
  margin: 1.85rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand-400, #2fa77e) 55%, #cbd5e1),
    transparent
  );
}

.cms-text-brand,
.prose--blog .cms-text-brand {
  color: var(--brand-700, #0b5e42);
  font-weight: 700;
}

.cms-text-accent,
.prose--blog .cms-text-accent {
  color: #b45309;
  font-weight: 700;
}

.cms-text-muted,
.prose--blog .cms-text-muted {
  color: #64748b;
}

.cms-highlight,
.prose--blog .cms-highlight {
  background: color-mix(in srgb, var(--brand-200, #a7ddc8) 70%, #fff);
  color: #063d2b;
  padding: 0.05em 0.3em;
  border-radius: 0.25em;
}
.cms-highlight *,
.prose--blog .cms-highlight * {
  color: inherit !important;
}

.cms-highlight-warm,
.prose--blog .cms-highlight-warm {
  background: #fef3c7;
  color: #78350f;
  padding: 0.05em 0.3em;
  border-radius: 0.25em;
}
.cms-highlight-warm *,
.prose--blog .cms-highlight-warm * {
  color: inherit !important;
}

.cms-quote,
.prose--blog blockquote,
.prose--blog .cms-quote,
.cms-callout,
.prose--blog .cms-callout {
  margin: 1.45rem 0;
  padding: 1rem 1.2rem;
  border-radius: 0.35rem 0.85rem 0.85rem 0.35rem;
  border: 1px solid transparent;
  border-inline-start-width: 5px;
  border-inline-start-style: solid;
  box-shadow: none;
  font-style: normal;
}

.cms-quote,
.prose--blog blockquote,
.prose--blog .cms-quote {
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 88%, #fff);
  border-color: color-mix(in srgb, var(--brand-300, #6fc4a0) 55%, #e2e8f0);
  border-inline-start-color: var(--brand-500, #148a63);
  color: var(--brand-900, #063d2b);
}

.cms-callout,
.prose--blog .cms-callout,
.cms-callout--tip,
.prose--blog .cms-callout--tip {
  background: #fffbeb;
  border-color: #fde68a;
  border-inline-start-color: #d97706;
  color: #78350f;
}

[dir="ltr"] .cms-quote,
[dir="ltr"] .prose--blog blockquote,
[dir="ltr"] .prose--blog .cms-quote,
[dir="ltr"] .cms-callout,
[dir="ltr"] .prose--blog .cms-callout {
  border-radius: 0.85rem 0.35rem 0.35rem 0.85rem;
}

.cms-clinic-note,
.prose--blog .cms-clinic-note {
  margin: 1.6rem 0;
  padding: 1.15rem 1.3rem;
  border-radius: 0.2rem;
  background: #fff;
  border: 2px dashed color-mix(in srgb, var(--brand-500, #148a63) 55%, #94a3b8);
  border-inline-start: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-100, #d8f3e8) 80%, transparent);
  color: var(--brand-900, #063d2b);
}

/* Hide legacy "پیام کلینیک دانش" label — box alone is enough */
.cms-clinic-note > strong:first-child,
.prose--blog .cms-clinic-note > strong:first-child {
  display: none !important;
}

.cms-clinic-note > strong:first-child + br,
.prose--blog .cms-clinic-note > strong:first-child + br {
  display: none !important;
}

.prose--blog table,
.cms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0;
  font-size: 0.98em;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--brand-300, #6fc4a0) 40%, #e2e8f0);
}

.prose--blog thead th,
.cms-table thead th {
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 90%, #fff);
  color: var(--brand-900, #063d2b);
  font-weight: 700;
  text-align: start;
}

.prose--blog th,
.prose--blog td,
.cms-table th,
.cms-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 35%, #e2e8f0);
  vertical-align: top;
}

.prose--blog tbody tr:nth-child(even) td,
.cms-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 45%, #fff);
}

.cms-lead,
.prose--blog .cms-lead {
  font-size: 1.14em;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 1.25rem;
}

.blog-post-featured {
  margin: 0 0 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.blog-post-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post .author-card {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 45%, #e2e8f0);
}

.blog-related {
  margin-top: 2.25rem;
  padding: 1.35rem 1.2rem 1.3rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--brand-50, #eef8f3) 92%, #fff) 0%, #fff 58%);
  border: 1px solid color-mix(in srgb, var(--brand-300, #6fc4a0) 32%, #e2e8f0);
  box-shadow: 0 16px 40px rgba(6, 61, 43, 0.05);
}

.blog-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
}

.blog-related__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--brand-900, #063d2b);
}

.blog-related__lead {
  margin: 0.3rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5b6b63;
}

.blog-related__all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-800, #084c36);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-300, #6fc4a0) 45%, #e2e8f0);
  transition: background 0.18s ease, transform 0.18s ease;
}

.blog-related__all:hover {
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 80%, #fff);
}

.blog-related__all-arrow {
  width: 0.42rem;
  height: 0.42rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

html[dir="ltr"] .blog-related__all-arrow {
  transform: rotate(-45deg);
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.blog-related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-300, #6fc4a0) 22%, #e2e8f0);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(6, 61, 43, 0.1);
  border-color: color-mix(in srgb, var(--brand-400, #2fa77e) 45%, #e2e8f0);
}

.blog-related-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--brand-700, #0b5e42), var(--brand-400, #2fa77e) 70%);
}

.blog-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-related-card:hover .blog-related-card__media img {
  transform: scale(1.04);
}

.blog-related-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.blog-related-card__cat {
  align-self: flex-start;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-800, #084c36);
  background: color-mix(in srgb, var(--brand-100, #d8f3e8) 85%, #fff);
}

.blog-related-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: #14352a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-related-card:hover .blog-related-card__title {
  color: var(--brand-700, #0b5e42);
}

.blog-related-card__excerpt {
  color: #5f6f67;
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-related-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.blog-related-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-related-card__author img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-related-card__go {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-700, #0b5e42);
}

.blog-related-card__go::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-inline-start: 0.28rem;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.12em;
}

html[dir="ltr"] .blog-related-card__go::after {
  transform: rotate(-45deg);
}

/* In-body “keep reading” block (was a yellow tip callout) */
.prose--blog [data-seo-related],
.prose--blog .cms-callout[data-seo-related],
.prose--blog .cms-callout--tip[data-seo-related] {
  margin: 2.1rem 0 0.4rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--brand-50, #eef8f3) 88%, #fff), #fff 62%);
  border: 1px solid color-mix(in srgb, var(--brand-300, #6fc4a0) 38%, #e2e8f0);
  border-inline-start-width: 1px;
  border-inline-start-style: solid;
  border-inline-start-color: color-mix(in srgb, var(--brand-300, #6fc4a0) 38%, #e2e8f0);
  box-shadow: 0 10px 28px rgba(6, 61, 43, 0.04);
  color: var(--brand-900, #063d2b);
}

.prose--blog [data-seo-related] > strong {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-700, #0b5e42);
}

.prose--blog [data-seo-related] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.prose--blog [data-seo-related] li {
  margin: 0;
}

.prose--blog [data-seo-related] li::marker {
  content: none;
}

.prose--blog [data-seo-related] a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-200, #a7ddc8) 55%, #e2e8f0);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
  color: #14352a;
  box-shadow: none;
}

.prose--blog [data-seo-related] a:hover {
  color: var(--brand-800, #084c36);
  border-color: color-mix(in srgb, var(--brand-400, #2fa77e) 50%, #e2e8f0);
  background: color-mix(in srgb, var(--brand-50, #eef8f3) 70%, #fff);
}

.prose--blog [data-seo-related] a::after {
  content: "";
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-inline-end: 2px solid var(--brand-600, #0f704f);
  border-bottom: 2px solid var(--brand-600, #0f704f);
  transform: rotate(45deg);
}

html[dir="ltr"] .prose--blog [data-seo-related] a::after {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .blog-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-post-hero {
    padding-block: 2rem 2.25rem;
  }
  .blog-related {
    padding: 1.1rem 0.85rem 1rem;
  }
  .blog-related__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Dark theme —— */
[data-theme="dark"] .blog-post-hero {
  color: var(--text);
}
[data-theme="dark"] .blog-post-hero__bg {
  background:
    radial-gradient(ellipse 70% 55% at 15% 15%, rgba(111, 196, 163, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgba(15, 112, 80, 0.22), transparent 52%),
    linear-gradient(155deg, #102820 0%, #0c1c16 48%, #081410 100%);
}
[data-theme="dark"] .blog-post-hero__title {
  color: var(--gray-900, #f2f7f4);
}

[data-theme="dark"] .prose--blog {
  color: var(--text);
}
[data-theme="dark"] .prose--blog h2,
[data-theme="dark"] .prose--blog h3 {
  color: var(--brand-800, #9fe0c2);
}
[data-theme="dark"] .prose--blog h2 {
  border-bottom-color: color-mix(in srgb, var(--brand-400, #2fa77e) 40%, transparent);
}
[data-theme="dark"] .prose--blog strong {
  color: var(--brand-900, #d6f0e5);
}
[data-theme="dark"] .prose--blog a {
  color: var(--brand-300, #6bc4a3);
}
[data-theme="dark"] .prose--blog a:hover {
  color: var(--brand-200, #a7ddc8);
}
[data-theme="dark"] .prose--blog > img,
[data-theme="dark"] .prose--blog .cms-figure img {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .cms-figcaption {
  color: var(--text-muted);
}
[data-theme="dark"] .cms-video {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .prose--blog hr {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand-400, #2fa77e) 45%, var(--border)),
    transparent
  );
}

[data-theme="dark"] .cms-text-brand,
[data-theme="dark"] .prose--blog .cms-text-brand {
  color: var(--brand-300, #6bc4a3);
}
[data-theme="dark"] .cms-text-accent,
[data-theme="dark"] .prose--blog .cms-text-accent {
  color: #fbbf24;
}
[data-theme="dark"] .cms-text-muted,
[data-theme="dark"] .prose--blog .cms-text-muted {
  color: var(--text-muted);
}

[data-theme="dark"] .cms-highlight,
[data-theme="dark"] .prose--blog .cms-highlight {
  background: color-mix(in srgb, #245744 70%, #1a2e26);
  color: #d6f0e5;
}
[data-theme="dark"] .cms-highlight-warm,
[data-theme="dark"] .prose--blog .cms-highlight-warm {
  background: #5b4512;
  color: #fde68a;
}

[data-theme="dark"] .cms-quote,
[data-theme="dark"] .prose--blog blockquote,
[data-theme="dark"] .prose--blog .cms-quote {
  background: color-mix(in srgb, var(--brand-100, #183a2c) 80%, var(--surface));
  border-color: var(--border-strong);
  border-inline-start-color: var(--brand-400, #2fa77e);
  color: var(--brand-900, #d6f0e5);
}

[data-theme="dark"] .cms-callout,
[data-theme="dark"] .prose--blog .cms-callout,
[data-theme="dark"] .cms-callout--tip,
[data-theme="dark"] .prose--blog .cms-callout--tip {
  background: #3a2e12;
  border-color: #6b5420;
  border-inline-start-color: #f0b429;
  color: #fde68a;
}

[data-theme="dark"] .cms-clinic-note,
[data-theme="dark"] .prose--blog .cms-clinic-note {
  background: var(--surface-alt);
  border-color: color-mix(in srgb, var(--brand-400, #2fa77e) 45%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-200, #245744) 40%, transparent);
  color: var(--text);
}

[data-theme="dark"] .prose--blog table,
[data-theme="dark"] .cms-table {
  border-color: var(--border-strong);
}
[data-theme="dark"] .prose--blog thead th,
[data-theme="dark"] .cms-table thead th {
  background: var(--brand-100, #183a2c);
  color: var(--brand-900, #d6f0e5);
}
[data-theme="dark"] .prose--blog th,
[data-theme="dark"] .prose--blog td,
[data-theme="dark"] .cms-table th,
[data-theme="dark"] .cms-table td {
  border-color: var(--border);
}
[data-theme="dark"] .prose--blog tbody tr:nth-child(even) td,
[data-theme="dark"] .cms-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-alt) 80%, transparent);
}

[data-theme="dark"] .cms-lead,
[data-theme="dark"] .prose--blog .cms-lead {
  color: var(--text-muted);
}

[data-theme="dark"] .blog-post-featured {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .blog-post .author-card {
  border-top-color: var(--border);
}
[data-theme="dark"] .blog-related {
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand-900, #063d2b) 35%, var(--surface)) 0%, var(--surface) 70%);
  border-color: var(--border);
  box-shadow: none;
}
[data-theme="dark"] .blog-related__title {
  color: var(--brand-800, #9fe0c2);
}
[data-theme="dark"] .blog-related__lead {
  color: var(--text-muted);
}
[data-theme="dark"] .blog-related__all {
  background: var(--surface-alt, #14241c);
  color: var(--brand-100, #d6f0e5);
  border-color: var(--border);
}
[data-theme="dark"] .blog-related-card {
  background: var(--surface-alt, #14241c);
  border-color: var(--border);
}
[data-theme="dark"] .blog-related-card__title {
  color: var(--gray-900, #f2f7f4);
}
[data-theme="dark"] .blog-related-card:hover .blog-related-card__title {
  color: var(--brand-300, #6bc4a3);
}
[data-theme="dark"] .blog-related-card__excerpt,
[data-theme="dark"] .blog-related-card__author {
  color: var(--text-muted);
}
[data-theme="dark"] .blog-related-card__cat {
  background: color-mix(in srgb, var(--brand-800, #084c36) 40%, var(--surface));
  color: var(--brand-100, #d6f0e5);
}
[data-theme="dark"] .blog-related-card__go {
  color: var(--brand-300, #6bc4a3);
}
[data-theme="dark"] .prose--blog [data-seo-related],
[data-theme="dark"] .prose--blog .cms-callout[data-seo-related],
[data-theme="dark"] .prose--blog .cms-callout--tip[data-seo-related] {
  background: color-mix(in srgb, var(--brand-900, #063d2b) 40%, var(--surface));
  border-color: var(--border-strong, var(--border));
  border-inline-start-color: var(--border-strong, var(--border));
  color: var(--text);
  box-shadow: none;
}
[data-theme="dark"] .prose--blog [data-seo-related] > strong {
  color: var(--brand-300, #6bc4a3);
}
[data-theme="dark"] .prose--blog [data-seo-related] a {
  background: var(--surface-alt, #14241c);
  border-color: var(--border);
  color: var(--gray-900, #f2f7f4);
}
[data-theme="dark"] .prose--blog [data-seo-related] a:hover {
  color: var(--brand-300, #6bc4a3);
  background: color-mix(in srgb, var(--brand-800, #084c36) 30%, var(--surface));
}
[data-theme="dark"] .blog-post-tag {
  background: color-mix(in srgb, var(--brand-800, #084c36) 35%, var(--surface));
  color: var(--brand-100, #d6f0e5);
}
