.rh-single-blog,
.rh-single-blog * {
  box-sizing: border-box;
}

.rh-single-blog {
  --primary: #b40902;
  --primary-soft: rgba(180, 9, 2, .08);
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, .1);
  background: #fff;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
}

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

.rh-single-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.rh-single-hero {
  padding: 28px 0 34px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 232, 77, .26), transparent 28%),
    linear-gradient(180deg, #fffafa 0%, #fff 100%);
}

.rh-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rh-single-breadcrumb span {
  overflow: hidden;
  max-width: 48ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.rh-single-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 13px;
}

.rh-single-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

.rh-single-hero-copy p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 700;
}

.rh-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
}

.rh-single-meta span,
.rh-single-back,
.rh-related-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rh-single-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  aspect-ratio: 16 / 11;
  background: #f2f4f7;
  box-shadow: 0 22px 58px rgba(16, 24, 40, .12);
}

.rh-single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rh-single-body-section {
  padding: 34px 0 22px;
}

.rh-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.rh-single-aside {
  position: sticky;
  top: 118px;
  align-self: start;
  max-height: calc(100vh - 140px);
}

.rh-single-content {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.78;
  color: #000;
  font-weight: 400;
}

.rh-single-content > *:first-child {
  margin-top: 0;
}

.rh-single-content p,
.rh-single-content ul,
.rh-single-content ol,
.rh-single-content blockquote,
.rh-single-content figure {
  margin: 0 0 22px;
}

.rh-single-content p {
  text-align: justify;
}

.rh-single-content h2,
.rh-single-content h3,
.rh-single-content h4 {
  margin: 34px 0 14px;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 900;
}

.rh-single-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.rh-single-content h3 {
  font-size: 1.45rem;
}

.rh-single-content a {
  color: var(--primary);
  font-weight: 700;
}

.rh-single-content img {
  height: auto;
  border-radius: 18px;
}

.rh-single-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: #fffafa;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.rh-single-content ul,
.rh-single-content ol {
  padding-left: 22px;
}

.rh-single-content li + li {
  margin-top: 8px;
}

.rh-single-side-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  padding: 12px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
}

.rh-single-side-card h2 {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rh-single-page-links {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.rh-single-side-card.is-empty {
  display: none;
}

.rh-single-index {
  display: grid;
  gap: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(16, 24, 40, .08);
}

.rh-single-index-link {
  position: relative;
  display: block;
  border-left: 2px solid rgba(180, 9, 2, .14);
  color: #475467;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  padding: 6px 7px 6px 10px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.rh-single-index-link:hover,
.rh-single-index-link.is-active {
  border-left-color: var(--primary);
  background: rgba(180, 9, 2, .045);
  color: var(--primary);
}

.rh-single-index-h3 {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding-top: 5px;
  padding-bottom: 5px;
}

.rh-single-next-section {
  padding: 18px 0 70px;
}

.rh-single-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.rh-single-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.rh-single-nav div:last-child a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.rh-related-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.rh-related-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
}

.rh-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rh-related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fffafa);
  transition: transform .22s ease, box-shadow .22s ease;
}

.rh-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(16, 24, 40, .11);
}

.rh-related-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f4f7;
}

.rh-related-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

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

.rh-related-body {
  padding: 18px;
}

.rh-related-body h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.rh-related-read {
  margin-top: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .rh-single-hero-grid,
  .rh-single-layout {
    grid-template-columns: 1fr;
  }

  .rh-single-content {
    max-width: none;
  }

  .rh-single-aside {
    display: none;
  }

  .rh-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rh-single-wrap {
    width: min(100% - 20px, 1180px);
  }

  .rh-single-breadcrumb span {
    max-width: 20ch;
  }

  .rh-single-hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .rh-single-hero-copy p {
    font-size: 15px;
  }

  .rh-single-aside {
    display: none;
  }

  .rh-single-cover,
  .rh-single-side-card,
  .rh-related-card {
    border-radius: 18px;
  }

  .rh-single-nav,
  .rh-related-grid {
    grid-template-columns: 1fr;
  }

  .rh-related-body {
    padding: 16px;
  }

  .rh-related-body h3 {
    font-size: 22px;
    line-height: 1.18;
  }

  .rh-related-read {
    margin-top: 12px;
    font-size: 15px;
  }
}
