/* Reihanly Blog — aligned with products / profile / type system */

.rh-blog {
  --rh-b-primary: var(--primary-color, #80AD01);
  --rh-b-primary-dark: var(--primary-color-dark, #6d9500);
  --rh-b-text: var(--luxury-text, #2a3528);
  --rh-b-muted: var(--luxury-text-muted, #6b7568);
  --rh-b-radius: 20px;
  --rh-b-radius-sm: 14px;
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
  color: var(--rh-b-text);
  background:
    radial-gradient(1000px 460px at 100% -10%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.12), transparent 55%),
    radial-gradient(760px 400px at 0% 16%, rgba(var(--primary-color-rgb, 128, 173, 1), 0.07), transparent 50%),
    linear-gradient(180deg, #f7faf4 0%, #f3f6ef 45%, #f7faf4 100%);
  min-height: 50vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  box-sizing: border-box;
  padding-bottom: calc(var(--luxury-bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 2rem);
}

@media (min-width: 992px) {
  .rh-blog {
    padding-bottom: 3rem;
  }
}

.rh-blog,
.rh-blog *,
.rh-blog *::before,
.rh-blog *::after {
  box-sizing: border-box;
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}

.rh-blog a {
  text-decoration: none;
  color: inherit;
}

/* Reading progress under fixed header */
.rh-blog__header-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  transition: background 0.2s, border-color 0.2s;
}

.rh-blog__header-badge:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.rh-blog__header-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem !important;
  font-weight: 700;
}

.rh-blog__header-meta span,
.rh-blog__header-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-reading-progress {
  position: fixed;
  top: var(--rh-header-h, 68px);
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1050;
  pointer-events: none;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #4a6b00, var(--rh-b-primary, #80AD01));
}

@media (max-width: 991px) {
  .blog-reading-progress {
    top: var(--rh-header-h-mobile, 64px);
  }
}

/* ── List toolbar ── */
.rh-blog__toolbar {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__search {
  display: flex;
  gap: 0.5rem;
}

.rh-blog__search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(45, 55, 40, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--rh-b-text);
  font-size: 16px !important;
  font-weight: 600;
}

.rh-blog__search input:focus {
  outline: none;
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
}

.rh-blog__search button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff;
  font-size: 0.9rem !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

.rh-blog__filters-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__chips-track {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rh-blog__chips-track::before,
.rh-blog__chips-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}

.rh-blog__chips-track::before {
  right: 0;
  background: linear-gradient(to left, #f7faf4, transparent);
}

.rh-blog__chips-track::after {
  left: 0;
  background: linear-gradient(to right, #f7faf4, transparent);
}

.rh-blog__chips-track.is-overflow.can-scroll-end::after {
  opacity: 1;
}

.rh-blog__chips-track.is-overflow.scrolled::before {
  opacity: 1;
}

.rh-blog__chips-track::-webkit-scrollbar {
  display: none;
}

.rh-blog__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: max-content;
}

@media (min-width: 768px) {
  .rh-blog__chips {
    flex-wrap: wrap;
    width: auto;
  }
}

.rh-blog__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  color: var(--rh-b-text);
  font-size: 0.86rem !important;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rh-blog__chip:hover {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.35);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.06);
  color: var(--rh-b-primary-dark);
}

.rh-blog__chip.is-active {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.4);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
  color: var(--rh-b-primary-dark);
}

.rh-blog__chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(45, 55, 40, 0.06);
  font-size: 0.7rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__chip.is-active .rh-blog__chip-count {
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.18);
  color: var(--rh-b-primary-dark);
}

/* Featured + cards */
.rh-blog__featured {
  display: block;
  margin: 0 0 1.35rem;
  border-radius: var(--rh-b-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.06);
}

@media (min-width: 900px) {
  .rh-blog__featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
}

.rh-blog__featured-media {
  aspect-ratio: 16 / 10;
  background: #eef2e6;
  overflow: hidden;
}

@media (min-width: 900px) {
  .rh-blog__featured-media {
    aspect-ratio: auto;
    min-height: 260px;
  }
}

.rh-blog__featured-media img,
.rh-blog__card-media img,
.rh-blog__cover img,
.rh-blog__related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rh-blog__featured-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rh-blog__featured-body h2 {
  margin: 0.45rem 0 0.5rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--rh-b-text);
}

.rh-blog__featured-body p {
  margin: 0;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  color: var(--rh-b-muted);
}

.rh-blog__section-title {
  margin: 0 0 0.95rem;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--rh-b-text);
}

.rh-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .rh-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rh-blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 24px rgba(45, 55, 40, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rh-blog__card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.25);
  box-shadow: 0 14px 32px rgba(45, 55, 40, 0.08);
}

.rh-blog__card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(128, 173, 1, 0.12), rgba(100, 140, 20, 0.1));
  overflow: hidden;
}

.rh-blog__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.1rem;
}

.rh-blog__card-body h3 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--rh-b-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-blog__card-excerpt {
  margin: 0;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: var(--rh-b-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-blog__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
  color: var(--rh-b-primary-dark);
  font-size: 0.75rem !important;
  font-weight: 800;
}

.rh-blog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--rh-b-muted);
}

.rh-blog__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.rh-blog__pagination a,
.rh-blog__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  color: var(--rh-b-text);
  font-size: 0.88rem !important;
  font-weight: 700;
}

.rh-blog__pagination a:hover {
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.35);
  color: var(--rh-b-primary-dark);
}

.rh-blog__pagination .is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff;
}

.rh-blog__cta,
.rh-blog__empty {
  margin-top: 1.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__cta h3,
.rh-blog__empty p {
  margin: 0 0 0.45rem;
  font-size: 1rem !important;
  font-weight: 800;
}

.rh-blog__cta p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem !important;
  color: var(--rh-b-muted);
  line-height: 1.65;
}

.rh-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

/* ── Detail article ── */
.rh-blog--detail {
  padding-top: 0;
}

.rh-blog__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

@media (min-width: 640px) {
  .rh-blog__wrap {
    padding: 0 1.25rem 1.5rem;
  }
}

.rh-blog__post-head {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--rh-b-radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.05);
}

.rh-blog__post-head h1 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: var(--rh-b-text);
}

.rh-blog__post-excerpt {
  margin: 0.75rem 0 0;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--rh-b-muted);
  font-weight: 600;
}

.rh-blog__cover {
  margin: 0 0 1.25rem;
  border-radius: var(--rh-b-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2e6;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.06);
}

.rh-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

@media (min-width: 960px) {
  .rh-blog__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .rh-blog__layout--solo {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }
}

.rh-blog__toc {
  position: sticky;
  top: calc(var(--rh-header-h, 68px) + 12px);
}

.rh-blog__toc-panel {
  margin: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 24px rgba(45, 55, 40, 0.04);
  overflow: hidden;
}

.rh-blog__toc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
  cursor: pointer;
}

.rh-blog__toc-summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--rh-b-muted);
  border-bottom: 2px solid var(--rh-b-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.rh-blog__toc-panel[open] .rh-blog__toc-summary::after {
  transform: rotate(135deg);
}

.rh-blog__toc-summary::-webkit-details-marker {
  display: none;
}

.rh-blog__toc-nav {
  padding: 0 0.65rem 0.85rem;
  border-top: 1px solid rgba(45, 55, 40, 0.07);
  max-height: min(55vh, 420px);
  overflow-y: auto;
}

.rh-blog__toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-blog__toc-nav a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--rh-b-muted);
  font-size: 0.86rem !important;
  font-weight: 600;
  line-height: 1.45;
}

.rh-blog__toc-nav a:hover,
.rh-blog__toc-nav a.is-active {
  color: var(--rh-b-primary-dark);
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08);
}

@media (min-width: 960px) {
  .rh-blog__toc-summary {
    cursor: default;
  }

  .rh-blog__toc-summary::after {
    display: none;
  }

  .rh-blog__toc-nav {
    max-height: calc(100vh - var(--rh-header-h, 68px) - 6rem);
  }
}

/* Prose — standard Reihanly type */
.rh-blog__prose {
  padding: 1.25rem 1.2rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 12px 32px rgba(45, 55, 40, 0.05);
  font-size: 1.0625rem !important; /* 17px */
  font-weight: 400 !important;
  line-height: 1.85 !important;
  color: var(--rh-b-text);
}

.rh-blog__prose h2,
.rh-blog__prose h3,
.rh-blog__prose h4 {
  margin: 1.75rem 0 0.7rem;
  color: var(--rh-b-text);
  font-weight: 800 !important;
  line-height: 1.35 !important;
  scroll-margin-top: calc(var(--rh-header-h, 68px) + 1rem);
}

.rh-blog__prose h2 {
  font-size: 1.35rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__prose h3 {
  font-size: 1.15rem !important;
}

.rh-blog__prose p {
  margin: 0 0 1rem;
  font-size: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose ul,
.rh-blog__prose ol {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}

.rh-blog__prose li {
  margin-bottom: 0.35rem;
  font-size: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose a {
  color: var(--rh-b-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rh-blog__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1rem 0;
}

.rh-blog__prose blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-right: 4px solid var(--rh-b-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.07);
  color: var(--rh-b-text);
}

.rh-blog__prose table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem !important;
}

.rh-blog__prose th,
.rh-blog__prose td {
  border: 1px solid rgba(45, 55, 40, 0.1);
  padding: 0.55rem 0.7rem;
}

.rh-blog__prose th {
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.08);
  font-weight: 800;
}

/* Reset legacy inline styles from CMS content */
.rh-blog__prose *,
.rh-blog__prose.blog-prose *,
.rh-blog__prose.prose * {
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}

.rh-blog__prose [style*="font-size"],
.rh-blog__prose [style*="font-family"],
.rh-blog__prose font {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}

.rh-blog__prose strong,
.rh-blog__prose b {
  font-weight: 800 !important;
}

.rh-blog__prose iframe,
.rh-blog__prose video {
  max-width: 100%;
  border-radius: 14px;
}

.rh-blog__prose pre,
.rh-blog__prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.92em !important;
}

.rh-blog__prose pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(45, 55, 40, 0.05);
}

@media (max-width: 720px) {
  .rh-blog__prose {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  .rh-blog__prose h2 {
    font-size: 1.2rem !important;
  }

  .rh-blog__prose h3 {
    font-size: 1.05rem !important;
  }
}

.rh-blog__section {
  margin: 2rem 0;
}

.rh-blog__section-intro {
  margin: 0 0 1rem;
}

.rh-blog__section-intro h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__section-intro p {
  margin: 0;
  font-size: 0.9rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1.25rem 0;
}

.rh-blog__tags-label {
  font-size: 0.84rem !important;
  font-weight: 800;
  color: var(--rh-b-muted);
}

.rh-blog__tag {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 55, 40, 0.1);
  background: #fff;
  font-size: 0.82rem !important;
  font-weight: 700;
  color: var(--rh-b-text);
}

.rh-blog__faq-item {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem !important;
  color: var(--rh-b-text);
  list-style: none;
}

.rh-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.rh-blog__faq-item p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem !important;
  line-height: 1.7;
  color: var(--rh-b-muted);
}

.rh-blog__cta-box {
  margin: 1.75rem 0;
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--rh-b-primary), var(--rh-b-primary-dark));
  color: #1a2210;
  box-shadow: 0 12px 32px rgba(var(--primary-color-rgb, 128, 173, 1), 0.28);
}

.rh-blog__cta-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem !important;
  font-weight: 800;
  color: #1a2210;
}

.rh-blog__cta-box p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: rgba(26, 34, 16, 0.85);
}

.rh-blog__cta-box .rh-blog__btn {
  background: #fff;
  color: var(--rh-b-primary-dark) !important;
  box-shadow: none;
}

.rh-blog__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .rh-blog__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__product {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 8px 22px rgba(45, 55, 40, 0.05);
}

.rh-blog__product-media {
  aspect-ratio: 1;
  background: #f3f6ef;
  overflow: hidden;
}

.rh-blog__product-body {
  padding: 0.85rem 0.9rem 1rem;
}

.rh-blog__product-body h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.92rem !important;
  font-weight: 800;
  line-height: 1.4;
  color: var(--rh-b-text);
}

.rh-blog__product-price {
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-primary-dark);
}

.rh-blog__author {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-color-rgb, 128, 173, 1), 0.14);
  color: var(--rh-b-primary-dark);
  font-weight: 800;
  font-size: 1rem !important;
  flex-shrink: 0;
}

.rh-blog__author strong {
  display: block;
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__author p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .rh-blog__related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rh-blog__related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

@media (min-width: 720px) {
  .rh-blog__related-card {
    display: flex;
    flex-direction: column;
  }
}

.rh-blog__related-media {
  aspect-ratio: 1;
  background: #eef2e6;
  overflow: hidden;
}

@media (min-width: 720px) {
  .rh-blog__related-media {
    aspect-ratio: 16 / 10;
  }
}

.rh-blog__related-body {
  padding: 0.85rem 0.9rem;
}

.rh-blog__related-body h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.92rem !important;
  font-weight: 800;
  line-height: 1.4;
  color: var(--rh-b-text);
}

.rh-blog__comments-empty {
  margin: 0 0 1rem;
  font-size: 0.92rem !important;
  color: var(--rh-b-muted);
}

.rh-blog__comment {
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
}

.rh-blog__comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  font-size: 0.84rem !important;
}

.rh-blog__comment-meta strong {
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__comment-meta time {
  color: var(--rh-b-muted);
}

.rh-blog__comment p {
  margin: 0;
  font-size: 0.92rem !important;
  line-height: 1.7;
  color: var(--rh-b-text);
}

.rh-blog__form {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(45, 55, 40, 0.08);
  box-shadow: 0 10px 28px rgba(45, 55, 40, 0.05);
}

.rh-blog__form .form-group {
  margin-bottom: 0.85rem;
}

.rh-blog__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem !important;
  font-weight: 800;
  color: var(--rh-b-text);
}

.rh-blog__form input,
.rh-blog__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(45, 55, 40, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--rh-b-text);
  font-size: 16px !important;
  font-weight: 600;
}

.rh-blog__form textarea {
  min-height: 120px;
  resize: vertical;
}

.rh-blog__form input:focus,
.rh-blog__form textarea:focus {
  outline: none;
  border-color: rgba(var(--primary-color-rgb, 128, 173, 1), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 128, 173, 1), 0.12);
}

/* Kill legacy blog.css collisions when rh-blog is present */
body.blog-page .blog-page:not(.rh-blog),
body.blog-page .blog-hero,
body.blog-page .blog-article-hero {
  /* kept for safety if old markup remains */
}

body.blog-page .rh-blog .blog-chip,
body.blog-page .rh-blog .prose,
body.blog-page .rh-blog .blog-prose {
  font-family: var(--rh-font, 'Vazir', Tahoma, system-ui, sans-serif) !important;
}

/* Journal refresh: quiet surfaces, clear reading hierarchy and compact navigation. */
body.blog-page {
  --rh-ph-primary: #5f8f58;
  --rh-ph-primary-dark: #45703f;
  background: #fbfaf6;
}
body.blog-page .rh-blog {
  --rh-b-primary: #5f8f58;
  --rh-b-primary-dark: #45703f;
  --rh-b-text: #2a3528;
  --rh-b-muted: #677263;
  background: transparent;
  overflow-x: visible;
}
body.blog-page .modern-container,
body.blog-page .rh-blog__wrap { max-width: 1180px; }
body.blog-page .rh-blog__wrap { padding-inline: 24px; }
body.blog-page .page-content > .modern-container:first-child { margin-top: 32px; }
body.blog-detail-page .rh-blog--detail { padding-top: calc(var(--rh-header-h, 68px) + 24px); }
body.blog-page .breadcrumb-nav {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.blog-page .breadcrumb-list { gap: 10px; font-size: .8125rem; flex-wrap: wrap; }
body.blog-page .breadcrumb-link { color: #45703f; }
body.blog-page .breadcrumb-current { color: #677263; }
body.blog-page .breadcrumb-separator { color: #abb3a5; }
.rh-journal-head,
body.blog-page .page-header {
  background: #edf2e7;
  color: #2a3528;
  border: 1px solid #e0e7d8;
  border-radius: 24px;
  box-shadow: none;
  padding: 32px 36px;
  margin: 0 0 20px;
  text-align: right;
}
body.blog-page .page-header::before,
body.blog-page .page-subtitle::before,
body.blog-page .page-subtitle::after { content: none; animation: none; }
body.blog-page .page-title {
  margin: 8px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  line-height: 1.5 !important;
  color: #2a3528 !important;
  text-shadow: none !important;
}
body.blog-page .page-subtitle {
  max-width: 680px;
  margin: 0;
  color: #677263 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  text-align: right;
  text-shadow: none !important;
  animation: none;
}
.rh-journal-eyebrow { color: #45703f; font-size: .8125rem; font-weight: 600; }
body.blog-page .rh-blog__toolbar { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; box-shadow: none; border-color: #e1e7db; }
body.blog-page .rh-blog__toolbar > * { min-width: 0; }
body.blog-page .rh-blog__chips-track { width: 100%; min-width: 0; }
.rh-blog__toolbar-intro { display: flex; flex-direction: column; gap: 6px; }
.rh-blog__toolbar-intro strong { font-size: 1rem; }
.rh-blog__toolbar-intro span { font-size: .875rem; color: #677263; }
@media (min-width: 960px) {
  body.blog-page .rh-blog__toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  body.blog-page .rh-blog__toolbar > :last-child { grid-column: 1 / -1; }
}
body.blog-page .rh-blog__search button,
body.blog-page .rh-blog__btn { background: #45703f; box-shadow: none; font-weight: 600; }
body.blog-page .rh-blog__chip { border-radius: 999px; min-height: 44px; background: #fff; border-color: #e1e7db; }
body.blog-page .rh-blog__chip.is-active { background: #45703f; border-color: #45703f; color: #fff; }
body.blog-page .rh-blog__chip.is-active .rh-blog__chip-count { background: rgba(255,255,255,.17); color: #fff; }
body.blog-page .rh-blog__chip:hover:not(.is-active) { background: #edf2e7; border-color: #9db893; color: #45703f; }
body.blog-page .rh-blog__badge,
body.blog-page .rh-blog__header-badge { background: #edf2e7; color: #45703f !important; border: 1px solid #dbe6d3; font-weight: 600; }
body.blog-page .rh-blog__featured { background: #fffefa; border-color: #e1e7db; box-shadow: none; margin-block: 28px 36px; }
body.blog-page .rh-blog__featured-body { padding: 32px; align-items: flex-start; gap: 10px; }
body.blog-page .rh-blog__featured-body h2 { font-size: clamp(1.25rem,2.3vw,1.75rem) !important; line-height: 1.65 !important; margin: 0; }
body.blog-page .rh-blog__featured-body p { line-height: 1.9 !important; }
body.blog-page .rh-blog__featured .rh-blog__meta { margin-top: 0; }
body.blog-page .rh-blog__featured-media { aspect-ratio: 16/10; min-height: 0; }
@media (min-width: 900px) {
  body.blog-page .rh-blog__featured { grid-template-columns: 1fr 1fr; }
  body.blog-page .rh-blog__featured-media { aspect-ratio: auto; }
}
body.blog-page .rh-blog__grid { gap: 24px; }
body.blog-page .rh-blog__card { border-radius: 20px; box-shadow: none; border-color: #e1e7db; min-width: 0; }
body.blog-page .rh-blog__card-body { padding: 22px; }
body.blog-page .rh-blog__card-body h3 { font-size: 1.0625rem !important; line-height: 1.8 !important; -webkit-line-clamp: 3; }
body.blog-page .rh-blog__card-excerpt { line-height: 1.9 !important; margin-bottom: 16px; }
body.blog-page .rh-blog__meta { gap: 12px; font-weight: 400; }
body.blog-page .rh-blog__meta time { font-variant-numeric: tabular-nums; }
.rh-blog__read-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; color: #45703f; font-size: .875rem; font-weight: 600; border-top: 1px solid #e8ece3; padding-top: 14px; margin-top: 16px; }
.rh-blog__read-link > span { font-size: 1.25rem; }
.rh-blog__image-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 150px; gap: 12px; color: #45703f; font-size: 1.75rem; background: #edf2e7; }
.rh-blog__image-fallback > span { font-size: .875rem; color: #677263; }
.rh-blog__result-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.rh-blog__result-info p { margin: 0; font-size: .9375rem; }
.rh-blog .rh-blog__result-info a { color: #45703f; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; }
body.blog-page .rh-blog__empty { padding: 40px 24px; text-align: center; }
.rh-blog__empty h2 { margin-block: 12px; font-size: 1.5rem; }
body.blog-page .rh-blog__empty p { color: #677263; font-size: .9375rem !important; font-weight: 400; margin-bottom: 20px; }
body.blog-page .rh-blog__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: #edf2e7; box-shadow: none; margin-top: 40px; }
body.blog-page .rh-blog__cta h3 { margin-block: 10px; font-size: 1.25rem !important; }
body.blog-page .rh-blog__cta p { margin: 0; }
body.blog-page .rh-blog__cta .rh-blog__btn { flex-shrink: 0; }
body.blog-page .rh-blog__pagination .is-active { background: #45703f; }
/* Article opens with an editorial spread instead of a full-screen cover. */
.rh-article-head { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding: 28px; margin-bottom: 40px; background: #edf2e7; border: 1px solid #e0e7d8; border-radius: 24px; }
.rh-article-head--text { grid-template-columns: 1fr; }
.rh-article-head__body { min-width: 0; }
.rh-article-head h1 { font-size: clamp(1.5rem,2.5vw,2rem) !important; line-height: 1.75 !important; font-weight: 700 !important; color: #2a3528; margin: 12px 0; }
.rh-article-head__excerpt { color: #677263; font-size: .9375rem; line-height: 2; margin-bottom: 20px; }
body.blog-page .rh-blog__header-meta { color: #677263; border-color: #d6dfce; font-size: .8125rem !important; font-weight: 400; gap: 12px; margin-top: 0; }
.rh-article-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.rh-blog .rh-blog__text-link { color: #45703f; font-size: .8125rem; padding-block: 10px; text-decoration: underline; text-underline-offset: 5px; }
body.blog-page .rh-article-head .rh-blog__cover { margin: 0; aspect-ratio: 16/10; box-shadow: none; border: none; }
body.blog-page .rh-article-head .rh-blog__cover img { object-fit: contain; background: #f5f7ef; }
body.blog-page .rh-blog__layout { gap: 28px; }
body.blog-page .rh-blog__prose { min-width: 0; padding: 36px 40px; box-shadow: none; border-color: #e1e7db; line-height: 2.1 !important; overflow-wrap: anywhere; scroll-margin-top: calc(var(--rh-header-h,68px) + 24px); }
body.blog-page .rh-blog__prose > :first-child { margin-top: 0; }
body.blog-page .rh-blog__prose h2 { line-height: 1.8 !important; margin-top: 40px; padding-bottom: 12px; }
body.blog-page .rh-blog__prose h3 { line-height: 1.8 !important; }
body.blog-page .rh-blog__prose p { margin-bottom: 24px; color: inherit; }
body.blog-page .rh-blog__prose ul { list-style: disc; }
body.blog-page .rh-blog__prose ol { list-style: decimal; }
body.blog-page .rh-blog__prose li { color: inherit; list-style: inherit; }
body.blog-page .rh-blog__prose blockquote { border-color: #7aa872; background: #f1f5ed; }
body.blog-page .rh-blog__prose blockquote p:last-child { margin-bottom: 0; }
body.blog-page .rh-blog__prose figure { margin: 24px 0; max-width: 100%; }
body.blog-page .rh-blog__prose figcaption { font-size: .8125rem; color: #677263; text-align: center; }
body.blog-page .rh-blog__prose table { max-width: 100%; }
body.blog-page .rh-blog__prose th { background: #edf2e7; }
body.blog-page .rh-blog__toc-panel { box-shadow: none; border-color: #e1e7db; }
body.blog-page .rh-blog__toc-nav { padding: 12px; }
body.blog-page .rh-blog__toc-nav a { padding: 10px; line-height: 1.8; }
body.blog-page .rh-blog__toc-nav a.is-active { background: #edf2e7; color: #45703f; border-inline-start: 3px solid #5f8f58; }
body.blog-page .blog-toc-level-3 { padding-inline-start: 12px; }
body.blog-page .blog-reading-progress { background: #5f8f58; }
body.blog-page .rh-blog__cta-box { background: #edf2e7; box-shadow: none; border: 1px solid #dbe6d3; color: #2a3528; }
body.blog-page .rh-blog__cta-box h2 { color: #2a3528; }
body.blog-page .rh-blog__cta-box p { color: #677263; line-height: 1.9; }
body.blog-page .rh-blog__cta-box .rh-blog__btn { color: #fff !important; background: #45703f; }
body.blog-page .rh-blog__author-avatar { background: #edf2e7; }
body.blog-page .rh-blog__product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
body.blog-page .rh-blog__faq-item summary { display: flex; gap: 20px; justify-content: space-between; align-items: center; line-height: 1.9; }
body.blog-page .rh-blog__faq-item summary::after { content: '+'; color: #45703f; font-size: 1.5rem; flex-shrink: 0; }
body.blog-page .rh-blog__faq-item[open] summary::after { content: '−'; }
body.blog-page #comments { scroll-margin-top: calc(var(--rh-header-h,68px) + 24px); }
body.blog-page .rh-blog__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: none; padding: 24px; }
body.blog-page .rh-blog__form .form-group { min-width: 0; margin: 0; }
.rh-blog__form-wide, .rh-blog__form-note, .rh-blog__form-status { grid-column: 1 / -1; }
.rh-blog__form-note { font-size: .8125rem; color: #677263; margin: 0; }
.rh-blog__form-status { padding: 12px; border-radius: 10px; background: #edf2e7; color: #45703f; font-size: .875rem; margin: 0; }
.rh-blog__form-status.is-error { background: #fff0eb; color: #9d392d; }
.rh-blog__form-status[hidden] { display: none; }
.rh-blog__form button { justify-self: start; }
.rh-blog__form button:disabled { opacity: .6; cursor: wait; }
body.blog-page .rh-blog__form input[type=email] { direction: ltr; text-align: left; }
body.blog-page .rh-blog__form input, body.blog-page .rh-blog__form textarea { font-weight: 400; background: #fdfdfb; }
body.blog-page :is(a,button,input,textarea,summary):focus-visible { outline: 3px solid #5f8f58; outline-offset: 4px; }
@media (hover: hover) {
  body.blog-page :is(.rh-blog__card,.rh-blog__related-card):hover { border-color: #9db893; box-shadow: 0 8px 24px rgba(42,53,40,.06); }
}
@media (max-width: 959px) {
  .rh-article-head { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  body.blog-page .rh-article-head .rh-blog__cover { aspect-ratio: 16/9; max-height: 320px; }
  body.blog-page .rh-blog__toc { position: static; }
}
@media (max-width: 639px) {
  body.blog-page .modern-container, body.blog-page .rh-blog__wrap { padding-inline: 16px; }
  body.blog-page .page-content > .modern-container:first-child { margin-top: 20px; }
  .rh-journal-head, body.blog-page .page-header { padding: 24px 20px; border-radius: 20px; }
  body.blog-page .rh-blog__toolbar { padding: 18px; }
  body.blog-page .rh-blog__search { flex-wrap: wrap; }
  body.blog-page .rh-blog__search input { width: 100%; }
  body.blog-page .rh-blog__search button { width: 100%; }
  body.blog-page .rh-blog__featured-body { padding: 22px; }
  body.blog-page .rh-blog__grid { gap: 20px; }
  body.blog-page .rh-blog__cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .rh-article-head { padding: 20px; border-radius: 20px; margin-bottom: 24px; }
  .rh-article-head h1 { font-size: 1.5rem !important; line-height: 1.8 !important; }
  body.blog-page .rh-blog__prose { padding: 0; background: transparent; border: 0; }
  body.blog-page .rh-blog__form { grid-template-columns: 1fr; padding: 18px; }
  .rh-blog__result-info { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body.blog-page *, body.blog-page *::before, body.blog-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
