/* =========================================================================
   Reboot — blog layer (archive · single · comments)
   Every selector is scoped to .rb-blog so no other page can be affected.
   ========================================================================= */

.rb-blog {
  --rbh: var(--rb-header-h, 112px);
  --blog-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -28px rgba(15, 23, 42, .35);
}

.rb-blog [hidden] { display: none !important; }

.rb-blog .rb-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.rb-blog :focus-visible {
  outline: 3px solid var(--rb-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ Hero */
.rb-blog .rb-bloghero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 32px 26px 30px;
  border-radius: 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(232, 89, 12, .45), transparent 42%),
    linear-gradient(132deg, #2f2118 0%, #3d2d20 52%, #5c3d26 100%);
}
.rb-blog .rb-bloghero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  inset-inline-start: -110px;
  bottom: -230px;
  pointer-events: none;
}
.rb-blog .rb-bloghero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11.5px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.rb-blog .rb-bloghero h1 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -.6px;
  line-height: 1.4;
}
.rb-blog .rb-bloghero p {
  margin: 6px auto 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.9;
}
.rb-blog .rb-bloghero__stats {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 16px;
}
.rb-blog .rb-bloghero__stat { display: flex; flex-direction: column; }
.rb-blog .rb-bloghero__stat strong { font-size: 22px; font-weight: 900; color: #c9a279; line-height: 1.3; }
.rb-blog .rb-bloghero__stat span { font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.rb-blog .rb-bloghero__search {
  display: flex; align-items: center; gap: 6px;
  max-width: 520px; margin: 18px auto 0;
  padding: 5px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.rb-blog .rb-bloghero__search .rb-ic { color: rgba(255, 255, 255, .7); margin-inline-start: 8px; flex: none; }
.rb-blog .rb-bloghero__search input {
  flex: 1; min-width: 0;
  height: 40px;
  border: 0; background: transparent;
  color: #fff;
  font: inherit; font-size: 13px;
  outline: 0;
}
.rb-blog .rb-bloghero__search input::placeholder { color: rgba(255, 255, 255, .5); }
.rb-blog .rb-bloghero__search button {
  height: 40px;
  padding: 0 18px;
  border: 0; border-radius: 10px;
  background: #fff; color: var(--rb-ink);
  font: inherit; font-size: 12.5px; font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.rb-blog .rb-bloghero__search button:hover { background: var(--rb-orange-soft); color: var(--rb-orange-700); }

/* ------------------------------------------------- Sticky category bar */
.rb-blog .rb-blogbar {
  position: sticky;
  top: var(--rbh);
  z-index: 60;
  margin-top: 18px;
  background: rgba(255, 255, 255, .96);
  border-block: 1px solid var(--rb-line);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .2s;
}
.rb-blog .rb-blogbar.is-stuck { box-shadow: 0 10px 24px -22px rgba(15, 23, 42, .8); }
.rb-blog .rb-blogbar__in { display: flex; }
.rb-blog .rb-chips {
  display: flex;
  gap: 8px;
  width: 100%;
  padding-block: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.rb-blog .rb-chips::-webkit-scrollbar { display: none; }
.rb-blog .rb-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 5px 13px;
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rb-ink-2);
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.rb-blog .rb-chip .rb-ic { color: var(--rb-faint); }
.rb-blog .rb-chip small {
  font-size: 10.5px; font-weight: 700;
  color: var(--rb-faint);
  background: var(--rb-bg);
  border-radius: 999px;
  padding: 1px 6px;
}
.rb-blog .rb-chip:hover { border-color: var(--rb-orange); color: var(--rb-orange-700); }
.rb-blog .rb-chip:hover .rb-ic { color: var(--rb-orange-600); }
.rb-blog .rb-chip.is-active {
  background: var(--rb-navy);
  border-color: var(--rb-navy);
  color: #fff;
}
.rb-blog .rb-chip.is-active .rb-ic { color: #c9a279; }
.rb-blog .rb-chip.is-active small { background: rgba(255, 255, 255, .14); color: #fff; }

/* --------------------------------------------------- Content-type tabs */
.rb-blog .rb-types {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  margin: 18px 0 16px;
  padding: 4px;
  background: #ece8df;
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rb-blog .rb-types::-webkit-scrollbar { display: none; }
.rb-blog .rb-type {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px;
  padding: 5px 16px;
  border-radius: 9px;
  color: var(--rb-ink-2);
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s, color .16s, box-shadow .16s;
}
.rb-blog .rb-type:hover { color: var(--rb-ink); }
.rb-blog .rb-type.is-active {
  background: #fff;
  color: var(--rb-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.rb-blog .rb-type__play { font-size: 9px; color: var(--rb-orange-600); }

/* --------------------------------------------------------------- Layout */
.rb-blog .rb-blogbody { padding-bottom: 46px; }
.rb-blog .rb-bloglayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.rb-blog .rb-blogmain { min-width: 0; }
.rb-blog .rb-resultline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rb-blog .rb-resultline__t { font-size: 16px; font-weight: 900; }
.rb-blog .rb-resultline__c { font-size: 11.5px; color: var(--rb-faint); }

/* ----------------------------------------------------------------- Grid */
.rb-blog .rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.rb-blog .rb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----------------------------------------------------------------- Card */
.rb-blog .rb-bcard {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s var(--rb-ease), box-shadow .18s var(--rb-ease), border-color .18s;
}
.rb-blog .rb-bcard:hover {
  transform: translateY(-3px);
  border-color: #ded7c9;
  box-shadow: 0 16px 34px -26px rgba(15, 23, 42, .55);
}
.rb-blog .rb-bcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.rb-blog .rb-bcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #efe3d2), var(--g2, #ffddc2));
}
.rb-blog .rb-bcard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--rb-ease);
}
.rb-blog .rb-bcard:hover .rb-bcard__img { transform: scale(1.04); }
.rb-blog .rb-bcard__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1, #efe3d2), var(--g2, #ffddc2));
  color: var(--rb-orange-700);
  opacity: .9;
}
.rb-blog .rb-bcard__badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .86);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  backdrop-filter: blur(4px);
}
.rb-blog .rb-bcard__badge--video { background: var(--rb-orange-600); }
.rb-blog .rb-bcard__badge--tutorial { background: #0e7490; }
.rb-blog .rb-bcard__body {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
  padding: 12px 14px 14px;
  text-align: start;
}
.rb-blog .rb-bcard__cat {
  color: var(--rb-orange-700);
  font-size: 11px; font-weight: 800;
}
.rb-blog .rb-bcard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px; font-weight: 800;
  line-height: 1.8;
  color: var(--rb-ink);
  overflow-wrap: anywhere;
}
.rb-blog .rb-bcard__ex {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--rb-muted);
  font-size: 12px;
  line-height: 1.9;
}
.rb-blog .rb-bcard__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--rb-faint);
  font-size: 10.5px;
}
.rb-blog .rb-bcard__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Featured (first) card */
.rb-blog .rb-bcard.is-feat { grid-column: 1 / -1; }
.rb-blog .rb-bcard.is-feat .rb-bcard__link { flex-direction: row; }
.rb-blog .rb-bcard.is-feat .rb-bcard__media { order: 2; flex: 1 1 0; min-height: 230px; aspect-ratio: auto; }
.rb-blog .rb-bcard.is-feat .rb-bcard__body {
  order: 1;
  flex: 1 1 0;
  justify-content: center;
  gap: 8px;
  padding: 22px 24px;
}
.rb-blog .rb-bcard.is-feat .rb-bcard__title {
  -webkit-line-clamp: 3;
  font-size: 20px;
  line-height: 1.65;
}
.rb-blog .rb-bcard.is-feat .rb-bcard__cat { font-size: 12px; }
.rb-blog .rb-bcard.is-feat .rb-bcard__ex { -webkit-line-clamp: 3; font-size: 13px; }
.rb-blog .rb-bcard.is-feat .rb-bcard__meta { font-size: 11.5px; }

/* ------------------------------------------------------- Empty & more */
.rb-blog .rb-gridempty {
  padding: 42px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--rb-line);
  border-radius: 16px;
  color: var(--rb-muted);
}
.rb-blog .rb-gridempty__ic {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--rb-orange-soft);
  color: var(--rb-orange-600);
}
.rb-blog .rb-gridempty h3 { font-size: 16px; color: var(--rb-ink); margin-bottom: 4px; }
.rb-blog .rb-gridempty p { font-size: 12.5px; margin-bottom: 14px; }

.rb-blog .rb-more { display: flex; justify-content: center; margin-top: 22px; }
.rb-blog .rb-more__btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rb-ink);
  font-size: 13px; font-weight: 800;
  text-decoration: none;
  transition: border-color .16s, color .16s, box-shadow .16s;
}
.rb-blog .rb-more__btn:hover { border-color: var(--rb-orange); color: var(--rb-orange-700); box-shadow: var(--blog-shadow); }
.rb-blog .rb-more__btn.is-busy { opacity: .6; pointer-events: none; }

/* -------------------------------------------------------------- Sidebar */
.rb-blog .rb-blogside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--rbh) + 12px);
  min-width: 0;
}
.rb-blog .rb-widget {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 16px;
  padding: 15px;
}
.rb-blog .rb-widget h3 {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
  font-size: 13px; font-weight: 900;
  color: var(--rb-ink);
}
.rb-blog .rb-widget h3 .rb-ic { color: var(--rb-orange-600); }
.rb-blog .rb-widget__cats { display: grid; gap: 1px; }
.rb-blog .rb-widget__cats a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 8px;
  border-radius: 9px;
  color: var(--rb-ink-2);
  font-size: 12px;
  text-decoration: none;
  transition: background .16s, color .16s;
}
.rb-blog .rb-widget__cats a:hover { background: var(--rb-orange-softer); color: var(--rb-orange-700); }
.rb-blog .rb-widget__cats .rb-ic { color: var(--rb-faint); flex: none; }
.rb-blog .rb-widget__cats span {
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.rb-blog .rb-widget__catname { flex: 1; min-width: 0; }
.rb-blog .rb-widget__cats .rb-widget__count {
  flex: none;
  font-size: 10px; font-weight: 700;
  color: var(--rb-faint);
  background: var(--rb-bg);
  border-radius: 999px;
  padding: 1px 7px;
}
.rb-blog .rb-tagscloud { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-blog .rb-tagscloud a {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--rb-bg);
  color: var(--rb-ink-2);
  font-size: 11.5px;
  text-decoration: none;
}
.rb-blog .rb-tagscloud a:hover { background: var(--rb-orange-soft); color: var(--rb-orange-700); }
.rb-blog .rb-widget__posts { display: grid; }
.rb-blog .rb-widget__post {
  display: flex; gap: 9px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rb-line-2);
  color: inherit;
  text-decoration: none;
}
.rb-blog .rb-widget__post:last-child { border-bottom: 0; }
.rb-blog .rb-widget__post img,
.rb-blog .rb-widget__post .rb-thumb-fallback {
  width: 54px; height: 48px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}
.rb-blog .rb-widget__postbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-blog .rb-widget__post strong {
  font-size: 11.5px; font-weight: 700; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-blog .rb-widget__post small { color: var(--rb-faint); font-size: 10px; }
.rb-blog .rb-widget__post:hover strong { color: var(--rb-orange-700); }
.rb-blog .rb-widget__cta {
  background: linear-gradient(135deg, #2f2118, #5c3d26);
  border: 0; color: #fff;
}
.rb-blog .rb-widget__cta h3 { color: #fff; }
.rb-blog .rb-widget__cta h3 .rb-ic { color: #c9a279; }
.rb-blog .rb-widget__cta p { color: rgba(255, 255, 255, .66); font-size: 11.5px; margin: 0 0 12px; }
.rb-blog .rb-widget__cta form { display: flex; gap: 6px; }
.rb-blog .rb-widget__cta input {
  flex: 1; min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit; font-size: 11.5px;
}
.rb-blog .rb-widget__cta input::placeholder { color: rgba(255, 255, 255, .45); }

/* ================================================================ SINGLE */
.rb-blog .rb-progress {
  position: fixed;
  top: 0; inset-inline: 0;
  height: 3px;
  z-index: 130;
  pointer-events: none;
  background: transparent;
}
.rb-blog .rb-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rb-orange);
  box-shadow: 0 0 10px rgba(232, 89, 12, .5);
}

.rb-blogpost .rb-article { overflow: hidden; }
.rb-blogpost .rb-article__cover { aspect-ratio: 16 / 9; }
.rb-blogpost .rb-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.rb-blogpost .rb-article__head { padding: 22px 26px 4px; }
.rb-blogpost .rb-article__kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rb-blogpost .rb-badge--type { background: var(--rb-navy); color: #fff; border-color: var(--rb-navy); }
.rb-blogpost .rb-article__head h1 {
  margin-top: 12px;
  font-size: clamp(23px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -.4px;
}
.rb-blogpost .rb-article__meta a { color: inherit; }
.rb-blogpost .rb-article__meta a:hover { color: var(--rb-orange-700); }

.rb-blogpost .rb-article__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 226px;
  gap: 30px;
  padding: 22px 26px 26px;
}

/* Video facade */
.rb-blog .rb-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #2f2118;
  overflow: hidden;
}
.rb-blog .rb-video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.rb-blog .rb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rb-blog .rb-video__play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border: 0; background: none;
  cursor: pointer;
}
.rb-blog .rb-video__tri {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(232, 89, 12, .95);
  box-shadow: 0 14px 34px -12px rgba(232, 89, 12, .9);
  display: grid; place-items: center;
  transition: transform .2s;
}
.rb-blog .rb-video__tri::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #fff;
  margin-inline-start: 4px;
}
.rb-blog .rb-video__play:hover .rb-video__tri { transform: scale(1.06); }
.rb-blog .rb-video__dur {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 7px;
  padding: 2px 8px;
}

/* TOC */
.rb-blog .rb-toc {
  position: sticky;
  top: calc(var(--rbh) + 12px);
  align-self: start;
  background: var(--rb-surface-2);
  border: 1px solid var(--rb-line);
  border-radius: 14px;
  padding: 14px;
}
.rb-blog .rb-toc h3 {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px;
  font-size: 12px; font-weight: 900;
}
.rb-blog .rb-toc h3 .rb-ic { color: var(--rb-orange-600); }
.rb-blog .rb-toc ol,
.rb-blog .rb-toc-mobile ol {
  list-style: none;
  margin: 0; padding: 0;
}
.rb-blog .rb-toc a {
  display: block;
  padding: 5px 10px;
  border-inline-start: 2px solid var(--rb-line);
  color: var(--rb-muted);
  font-size: 11.5px;
  line-height: 1.8;
  text-decoration: none;
  transition: color .16s, border-color .16s;
}
.rb-blog .rb-toc a:hover { color: var(--rb-orange-700); border-color: var(--rb-orange); }
.rb-blog .rb-toc a.is-active { color: var(--rb-orange-700); border-color: var(--rb-orange); font-weight: 700; }
.rb-blog .rb-toc__l3 a { padding-inline-start: 20px; font-size: 10.5px; }
.rb-blog .rb-toc-mobile {
  display: none;
  margin-bottom: 16px;
  border: 1px solid var(--rb-line);
  border-radius: 14px;
  background: var(--rb-surface-2);
  padding: 0 14px;
}
.rb-blog .rb-toc-mobile summary {
  display: flex; align-items: center; gap: 7px;
  min-height: 48px;
  cursor: pointer;
  font-size: 12.5px; font-weight: 800;
  list-style: none;
}
.rb-blog .rb-toc-mobile summary::-webkit-details-marker { display: none; }
.rb-blog .rb-toc-mobile summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-inline-start: auto;
  border-inline-end: 2px solid var(--rb-faint);
  border-bottom: 2px solid var(--rb-faint);
  transform: rotate(45deg);
  transition: transform .2s;
}
.rb-blog .rb-toc-mobile[open] summary::after { transform: rotate(-135deg); }
.rb-blog .rb-toc-mobile__count { margin-inline-start: auto; color: var(--rb-faint); font-size: 10.5px; font-weight: 600; }
.rb-blog .rb-toc-mobile ol { padding-bottom: 10px; }
.rb-blog .rb-toc-mobile a {
  display: block;
  padding: 7px 8px;
  color: var(--rb-ink-2);
  font-size: 12.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--rb-line-2);
}
.rb-blog .rb-toc-mobile a:hover { color: var(--rb-orange-700); }

/* Prose */
.rb-blog .rb-prose {
  max-width: 68ch;
  color: #2b3340;
  font-size: 15.5px;
  line-height: 1.95;
}
.rb-blog .rb-prose > * + * { margin-top: 16px; }
.rb-blog .rb-prose p { margin: 0; }
.rb-blog .rb-prose h2,
.rb-blog .rb-prose h3 { color: var(--rb-ink); scroll-margin-top: calc(var(--rbh) + 18px); }
.rb-blog .rb-prose h2 { margin-top: 30px; font-size: 21px; font-weight: 900; line-height: 1.6; }
.rb-blog .rb-prose h3 { margin-top: 24px; font-size: 17px; font-weight: 800; }
.rb-blog .rb-prose img { border-radius: 14px; height: auto; }
.rb-blog .rb-prose figure { margin: 22px 0; }
.rb-blog .rb-prose figcaption { margin-top: 8px; color: var(--rb-faint); font-size: 11.5px; text-align: center; }
.rb-blog .rb-prose a { color: var(--rb-orange-700); text-decoration: underline; text-underline-offset: 3px; }
.rb-blog .rb-prose ul, .rb-blog .rb-prose ol { padding-inline-start: 22px; }
.rb-blog .rb-prose li { margin: 5px 0; }
.rb-blog .rb-prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--rb-orange);
  background: var(--rb-orange-softer);
  border-radius: 0 12px 12px 0;
  color: #475569;
}
.rb-blog .rb-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rb-blog .rb-prose th, .rb-blog .rb-prose td { border: 1px solid var(--rb-line); padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.rb-blog .rb-prose th { background: var(--rb-surface-2); font-weight: 800; }

/* Code */
.rb-blog .rb-prose :not(pre) > code {
  background: #f1f5f9;
  color: #2f2118;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
  direction: ltr;
  unicode-bidi: embed;
}
.rb-blog .rb-prose pre {
  position: relative;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #2f2118;
  color: #e2e8f0;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.8;
}
.rb-blog .rb-prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  direction: ltr;
  display: block;
  white-space: pre;
}
.rb-blog .rb-copy {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #e2e8f0;
  font: inherit; font-size: 10.5px;
  cursor: pointer;
}
.rb-blog .rb-copy:hover { background: var(--rb-orange-600); border-color: var(--rb-orange-600); color: #fff; }

/* Reactions + share */
.rb-blog .rb-reactions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 6px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rb-line-2);
}
.rb-blog .rb-rx {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rb-ink-2);
  font: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.rb-blog .rb-rx b { font-weight: 800; color: var(--rb-ink); font-variant-numeric: tabular-nums; }
.rb-blog .rb-rx:hover { border-color: var(--rb-orange); color: var(--rb-orange-700); }
.rb-blog .rb-rx.is-on { background: var(--rb-orange-soft); border-color: var(--rb-orange); color: var(--rb-orange-700); }
.rb-blog .rb-rx.is-on b { color: var(--rb-orange-700); }
.rb-blog .rb-reactions__sep { width: 1px; height: 22px; background: var(--rb-line); }
.rb-blog .rb-rx--share { background: var(--rb-navy); border-color: var(--rb-navy); color: #fff; }
.rb-blog .rb-rx--share:hover { background: #3d2d20; border-color: #3d2d20; color: #fff; }
.rb-blog .rb-share { margin-top: 14px; }
.rb-blog .rb-authorbox { margin-top: 18px; }
.rb-blog .rb-authorbox small { color: var(--rb-faint); font-size: 10.5px; }
.rb-blog .rb-related { margin-top: 30px; }

/* ============================================================== COMMENTS */
.rb-blog .rb-cmwrap {
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 18px;
  padding: 20px;
}
.rb-blog .rb-cmhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.rb-blog .rb-cmhead__t { margin: 0; font-size: 17px; font-weight: 900; }
.rb-blog .rb-cmsort { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--rb-muted); }
.rb-blog .rb-cmsort select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rb-line);
  border-radius: 9px;
  background: #fff;
  color: var(--rb-ink);
  font: inherit; font-size: 12px;
  cursor: pointer;
}

.rb-blog .rb-cm-list,
.rb-blog .rb-cm__kids {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-blog .rb-cm-list { display: grid; gap: 4px; margin-top: 8px; }
.rb-blog .rb-cm { position: relative; }
.rb-blog .rb-cm__in {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rb-line-2);
}
.rb-blog .rb-cm-list > .rb-cm:last-child > .rb-cm__in { border-bottom: 0; }
.rb-blog .rb-cm__av {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: hsl(var(--h, 28) 78% 94%);
  color: hsl(var(--h, 28) 62% 32%);
  font-size: 14px; font-weight: 900;
  user-select: none;
}
.rb-blog .rb-cm__body { flex: 1; min-width: 0; }
.rb-blog .rb-cm__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 3px;
}
.rb-blog .rb-cm__name { font-size: 13.5px; font-weight: 800; color: var(--rb-ink); }
.rb-blog .rb-cm__time { font-size: 10.5px; color: var(--rb-faint); cursor: help; }
.rb-blog .rb-cm__staff {
  background: var(--rb-orange);
  color: #fff;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 9.5px; font-weight: 800;
}
.rb-blog .rb-cm__pin {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--rb-navy);
  color: #fff;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 9.5px; font-weight: 700;
}
.rb-blog .rb-cm__wait {
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 9.5px; font-weight: 700;
}
.rb-blog .rb-cm__text {
  color: #2b3340;
  font-size: 13.5px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.rb-blog .rb-cm__text p { margin: 0; }
.rb-blog .rb-cm__text p + p { margin-top: 8px; }
.rb-blog .rb-cm__text a { color: var(--rb-orange-700); text-decoration: underline; }
.rb-blog .rb-cm__text code { background: #f1f5f9; border-radius: 5px; padding: 1px 5px; font-size: 12px; direction: ltr; unicode-bidi: embed; }
.rb-blog .rb-cm__text pre {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2f2118;
  color: #e2e8f0;
  direction: ltr; text-align: left;
  overflow-x: auto;
  font-size: 12px;
}
.rb-blog .rb-cm__text pre code { background: none; padding: 0; color: inherit; }
.rb-blog .rb-cm__text img { max-width: min(100%, 320px); border-radius: 10px; margin-top: 8px; }
.rb-blog .rb-cm__text blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-inline-start: 3px solid var(--rb-line);
  color: var(--rb-muted);
}
.rb-blog .rb-cm__text ul, .rb-blog .rb-cm__text ol { margin: 6px 0; padding-inline-start: 20px; }
.rb-blog .rb-cm__mention { color: var(--rb-orange-700); font-weight: 700; }
.rb-blog .rb-cm__edited { display: inline-block; margin-top: 3px; color: var(--rb-faint); font-size: 10px; }
.rb-blog .rb-cm__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.rb-blog .rb-cm__act {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--rb-muted);
  font: inherit; font-size: 11.5px; font-weight: 700;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.rb-blog .rb-cm__act:hover { background: var(--rb-bg); color: var(--rb-ink); }
.rb-blog .rb-cm__like.is-on {
  background: var(--rb-orange-soft);
  border-color: var(--rb-orange);
  color: var(--rb-orange-700);
}
.rb-blog .rb-cm__likes { font-variant-numeric: tabular-nums; }
.rb-blog .rb-cm__act--danger:hover { background: var(--rb-red-soft); color: var(--rb-red); }
.rb-blog .rb-cm.is-pending > .rb-cm__in { background: #fffbeb; border-radius: 12px; padding-inline: 10px; }

.rb-blog .rb-cm__kids {
  margin-inline-start: 18px;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--rb-line);
}
.rb-blog .rb-cm--d2 > .rb-cm__kids { margin-inline-start: 10px; }

/* inline reply */
.rb-blog .rb-cm__reply { margin: 0 0 6px 48px; margin-inline-start: 48px; }
.rb-blog .rb-cm__morekids {
  margin: 2px 0 8px 48px;
  margin-inline-start: 48px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--rb-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rb-orange-700);
  font: inherit; font-size: 11.5px; font-weight: 700;
  cursor: pointer;
}
.rb-blog .rb-cm__morekids:hover { border-color: var(--rb-orange); background: var(--rb-orange-softer); }

/* report popover */
.rb-blog .rb-report {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--rb-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--rb-shadow);
}
.rb-blog .rb-report button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rb-line);
  border-radius: 7px;
  background: #fff;
  color: var(--rb-ink-2);
  font: inherit; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.rb-blog .rb-report button:hover { border-color: var(--rb-orange); color: var(--rb-orange-700); }
.rb-blog .rb-report .rb-report__cancel { color: var(--rb-faint); }
.rb-blog .rb-cm__replybox {
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  background: var(--rb-surface-2);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.rb-blog .rb-cm__replybox textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--rb-line);
  border-radius: 9px;
  background: #fff;
  color: var(--rb-ink);
  font: inherit; font-size: 13px;
  line-height: 1.9;
  resize: vertical;
  outline: 0;
}
.rb-blog .rb-cm__replybox textarea:focus { border-color: var(--rb-orange); }
.rb-blog .rb-cm__replyrow { display: flex; gap: 8px; justify-content: flex-end; }
.rb-blog .rb-cm__replyrow .rb-btn { min-height: 36px; }

.rb-blog .rb-cm-morewrap { display: flex; justify-content: center; margin-top: 16px; }
.rb-blog .rb-cm-more {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--rb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rb-ink);
  font: inherit; font-size: 12.5px; font-weight: 800;
  cursor: pointer;
}
.rb-blog .rb-cm-more:hover { border-color: var(--rb-orange); color: var(--rb-orange-700); }
.rb-blog .rb-cm-more[disabled] { opacity: .6; cursor: default; }

.rb-blog .rb-cm-empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--rb-muted);
}
.rb-blog .rb-cm-empty__ic {
  width: 54px; height: 54px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--rb-orange-soft);
  color: var(--rb-orange-600);
}
.rb-blog .rb-cm-empty p { font-size: 13px; margin-bottom: 12px; }
.rb-blog .rb-cm-closed,
.rb-blog .rb-cm-login {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--rb-line);
  border-radius: 12px;
  color: var(--rb-muted);
  font-size: 12.5px;
  text-align: center;
}
.rb-blog .rb-cm-login .rb-ic { color: var(--rb-orange-600); }
.rb-blog .rb-cm-login p { margin: 8px 0 12px; }

/* --------------------------------------------------------- Comment editor */
.rb-blog .rb-ed {
  margin-top: 20px;
  border: 1px solid var(--rb-line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.rb-blog .rb-ed__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rb-blog .rb-ed__top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.rb-blog .rb-ed__av {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: grid; place-items: center;
  background: var(--rb-orange-soft);
  color: var(--rb-orange-700);
  font-weight: 900;
}
.rb-blog .rb-ed__avimg { width: 100%; height: 100%; object-fit: cover; }
.rb-blog .rb-ed__as { display: flex; flex-direction: column; line-height: 1.4; }
.rb-blog .rb-ed__as strong { font-size: 12.5px; }
.rb-blog .rb-ed__as small { color: var(--rb-faint); font-size: 10.5px; }
.rb-blog .rb-ed__cancel {
  margin-inline-start: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rb-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rb-muted);
  font: inherit; font-size: 11.5px; font-weight: 700;
  cursor: pointer;
}
.rb-blog .rb-ed__cancel:hover { color: var(--rb-red); border-color: var(--rb-red); }
.rb-blog .rb-ed__replyto {
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--rb-orange-soft);
  color: var(--rb-orange-700);
  font-size: 11.5px;
  font-weight: 700;
}

.rb-blog .rb-ed__box {
  position: relative;
  border: 1px solid var(--rb-line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--rb-surface-2);
  transition: border-color .16s, box-shadow .16s;
}
.rb-blog .rb-ed__box:focus-within {
  border-color: var(--rb-orange);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, .1);
  background: #fff;
}
.rb-blog .rb-ed__box textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--rb-ink);
  font: inherit; font-size: 13.5px;
  line-height: 1.95;
  resize: vertical;
  outline: 0;
  scroll-margin-top: calc(var(--rbh) + 20px);
}
.rb-blog .rb-ed__tool {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-top: 1px solid var(--rb-line);
  background: #faf9f6;
}
.rb-blog .rb-ed__tools { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.rb-blog .rb-ed__tool-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 8px;
  background: none;
  color: var(--rb-ink-2);
  font: inherit; font-size: 14px;
  cursor: pointer;
}
.rb-blog .rb-ed__tool-btn:hover { background: var(--rb-orange-soft); }
.rb-blog .rb-ed__count {
  margin-inline-start: auto;
  color: var(--rb-faint);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.rb-blog .rb-ed__count.is-warn { color: var(--rb-red); font-weight: 800; }
.rb-blog .rb-ed__send {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 0 18px;
  border: 0; border-radius: 9px;
  background: var(--rb-orange-600);
  color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.rb-blog .rb-ed__send:hover { background: var(--rb-orange-700); }
.rb-blog .rb-ed__send[disabled] { opacity: .65; cursor: progress; }

.rb-blog .rb-ed__menu {
  position: absolute;
  bottom: calc(100% - 6px);
  inset-inline-start: 8px;
  z-index: 5;
  display: flex; flex-wrap: wrap; gap: 2px;
  width: min(280px, calc(100% - 16px));
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--rb-shadow-lg);
}
.rb-blog .rb-ed__menu[hidden] { display: none; }
.rb-blog .rb-ed__menu button {
  width: 34px; height: 34px;
  border: 0; border-radius: 7px;
  background: none;
  font-size: 17px;
  cursor: pointer;
}
.rb-blog .rb-ed__menu button:hover { background: var(--rb-bg); }
.rb-blog .rb-ed__menu--people { flex-direction: column; flex-wrap: nowrap; }
.rb-blog .rb-ed__menu--people button {
  width: 100%; height: auto;
  min-height: 34px;
  padding: 6px 10px;
  text-align: start;
  font-size: 12px; font-weight: 700;
  color: var(--rb-ink-2);
}
.rb-blog .rb-ed__attach { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 10px 0; }
.rb-blog .rb-ed__attach[hidden] { display: none; }
.rb-blog .rb-ed__attach figure { margin: 0; position: relative; }
.rb-blog .rb-ed__attach img {
  width: 72px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rb-line);
}
.rb-blog .rb-ed__attach button {
  position: absolute;
  top: -6px; inset-inline-end: -6px;
  width: 20px; height: 20px;
  border: 0; border-radius: 50%;
  background: var(--rb-navy);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.rb-blog .rb-ed__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.rb-blog .rb-ed__field { margin: 0; }
.rb-blog .rb-ed__field label { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.rb-blog .rb-ed__field input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--rb-line);
  border-radius: 9px;
  background: var(--rb-surface-2);
  color: var(--rb-ink);
  font: inherit; font-size: 12.5px;
  outline: 0;
}
.rb-blog .rb-ed__field input:focus { border-color: var(--rb-orange); background: #fff; }
.rb-blog .rb-ed__field small { display: block; margin-top: 4px; color: var(--rb-faint); font-size: 10.5px; }
.rb-blog .rb-ed__check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px;
  color: var(--rb-muted);
  cursor: pointer;
}
.rb-blog .rb-ed__check input { width: 16px; height: 16px; accent-color: var(--rb-orange-600); }
.rb-blog .rb-ed__check--notify { margin-top: 10px; }
.rb-blog .rb-ed__status { min-height: 18px; margin: 8px 0 0; font-size: 11.5px; }
.rb-blog .rb-ed__status.is-ok { color: #047857; }
.rb-blog .rb-ed__status.is-err { color: var(--rb-red); }
.rb-blog .rb-ed__status.is-busy { color: var(--rb-muted); }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .rb-blog .rb-bloglayout { grid-template-columns: minmax(0, 1fr); }
  .rb-blog .rb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-blog .rb-blogside {
    position: static;
    grid-template-columns: 1fr 1fr;
    margin-top: 4px;
  }
  .rb-blog .rb-widget__cta { grid-column: 1 / -1; }
  .rb-blogpost .rb-article__body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rb-blog .rb-toc { display: none; }
  .rb-blog .rb-toc-mobile { display: block; }
  .rb-blog .rb-prose { max-width: none; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__media { min-height: 190px; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__title { font-size: 18px; }
}

@media (max-width: 720px) {
  .rb-blog .rb-bloghero { padding: 26px 18px; border-radius: 18px; }
  .rb-blog .rb-bloghero__stats { gap: 20px; }
  .rb-blog .rb-bloghero__stat strong { font-size: 18px; }
  .rb-blogpost .rb-article__head { padding: 16px 16px 2px; }
  .rb-blogpost .rb-article__body { padding: 16px 16px 20px; }
  .rb-blogpost .rb-article__foot { padding: 0 16px 20px; }
  .rb-blog .rb-cmwrap { padding: 14px; }
}

@media (max-width: 560px) {
  .rb-blog .rb-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rb-blog .rb-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .rb-blog .rb-blogside { grid-template-columns: 1fr; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__link { flex-direction: column; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__media { aspect-ratio: 16 / 9; min-height: 0; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__body { padding: 14px; }
  .rb-blog .rb-bcard.is-feat .rb-bcard__title { font-size: 16px; -webkit-line-clamp: 3; }
  .rb-blog .rb-bloghero__search { flex-wrap: wrap; }
  .rb-blog .rb-bloghero__search input { flex-basis: 100%; order: 1; padding-inline: 10px; }
  .rb-blog .rb-bloghero__search .rb-ic { display: none; }
  .rb-blog .rb-bloghero__search button { order: 2; width: 100%; }
  .rb-blog .rb-prose { font-size: 14.5px; line-height: 1.95; }
  .rb-blog .rb-prose h2 { font-size: 18px; }
  .rb-blog .rb-prose h3 { font-size: 16px; }
  .rb-blogpost .rb-article__head h1 { font-size: 21px; }
  .rb-blog .rb-ed__fields { grid-template-columns: 1fr; }
  .rb-blog .rb-ed__tool-btn { width: 44px; height: 44px; }
  .rb-blog .rb-ed__send { min-height: 44px; }
  .rb-blog .rb-cm__act { min-height: 44px; }
  .rb-blog .rb-cm__in { gap: 8px; }
  .rb-blog .rb-cm__av { width: 34px; height: 34px; font-size: 13px; }
  .rb-blog .rb-cm__kids { margin-inline-start: 0; padding-inline-start: 14px; }
  .rb-blog .rb-cm--d2 > .rb-cm__kids { padding-inline-start: 0; border-inline-start-color: transparent; }
  .rb-blog .rb-cm__reply { margin-inline-start: 0; }
  .rb-blog .rb-cmwrap { padding: 12px calc(12px + env(safe-area-inset-right)) 12px calc(12px + env(safe-area-inset-left)); }
  .rb-blog .rb-rx { min-height: 44px; }
  .rb-blog .rb-bloghero__search button { min-height: 44px; }
  .rb-blog .rb-chip { min-height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rb-blog *,
  .rb-blog *::before,
  .rb-blog *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rb-blog .rb-bcard:hover { transform: none; }
  .rb-blog .rb-bcard:hover .rb-bcard__img { transform: none; }
}

/* ====================================================== SINGLE · EDITORIAL
   Two-column reading layout: text column (max 780px) + 270px sticky TOC,
   centred so no dead space opens up between them. Head sits above both.
   Scoped to .rb-single, which only single.php renders.
   ====================================================================== */
.rb-blogpost .rb-article.rb-single {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

/* --- Head: above the columns, on the page background --- */
.rb-blogpost .rb-single .rb-single__head {
  max-width: 1090px;
  margin: 8px auto 22px;
  padding: 0;
}
.rb-blogpost .rb-single .rb-single__head h1 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: -.3px;
}

/* --- Two columns --- */
.rb-blogpost .rb-single .rb-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 270px;
  gap: 40px;
  justify-content: center;
  align-items: start;
}
/* No TOC to show: keep the text column centred instead of leaving a gap. */
.rb-blogpost .rb-single .rb-single__layout--wide {
  grid-template-columns: minmax(0, 780px);
}
.rb-blogpost .rb-single.rb-single--wide .rb-single__head {
  max-width: 780px;
}

/* --- Text column: the reading card --- */
.rb-blogpost .rb-single .rb-single__main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  padding: 36px 40px;
}

/* --- Featured image: inside the text column, height-capped --- */
.rb-blogpost .rb-single .rb-single__hero {
  margin: 0 0 28px;
}
.rb-blogpost .rb-single .rb-single__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
}

/* Video facade keeps the hero's footprint, minus the height cap so it fills the column */
.rb-blogpost .rb-single .rb-video {
  border-radius: 12px;
  margin: 0 0 28px;
}

/* --- Prose: larger type, roomier leading --- */
.rb-blogpost .rb-single .rb-prose {
  max-width: none;
  font-size: 17px;
  line-height: 2;
  color: #2b3340;
}
.rb-blogpost .rb-single .rb-prose > * + * { margin-top: 0; }
.rb-blogpost .rb-single .rb-prose p { margin: 0 0 1.1em; }
.rb-blogpost .rb-single .rb-prose h2 {
  font-size: 22px;
  line-height: 1.6;
  margin: 2em 0 .5em;
}
.rb-blogpost .rb-single .rb-prose h3 {
  font-size: 18px;
  line-height: 1.7;
  margin: 1.7em 0 .4em;
}
.rb-blogpost .rb-single .rb-prose img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin-inline: auto;
  border-radius: 12px;
}
.rb-blogpost .rb-single .rb-prose figure {
  margin: 1.5em 0;
}
.rb-blogpost .rb-single .rb-prose figcaption {
  margin-top: 10px;
  font-size: 12.5px;
}
.rb-blogpost .rb-single .rb-prose ul,
.rb-blogpost .rb-single .rb-prose ol {
  margin: 0 0 1.1em;
  padding-inline-start: 24px;
}
.rb-blogpost .rb-single .rb-prose li { margin: 6px 0; }
.rb-blogpost .rb-single .rb-prose blockquote { margin: 1.5em 0; }
.rb-blogpost .rb-single .rb-prose pre,
.rb-blogpost .rb-single .rb-prose table { margin: 1.5em 0; }

/* --- Foot: sits inside the reading card --- */
.rb-blogpost .rb-single .rb-article__foot { padding: 0; }
.rb-blogpost .rb-single .rb-comments { margin-top: 16px; }

/* --- TOC column --- */
.rb-blogpost .rb-single .rb-toc {
  top: calc(var(--rbh) + 12px);
}

/* --- Narrow desktop / tablet --- */
@media (max-width: 1024px) {
  .rb-blogpost .rb-single .rb-single__layout { gap: 28px; }
  .rb-blogpost .rb-single .rb-single__main { padding: 30px 30px; }
}

@media (max-width: 900px) {
  .rb-blogpost .rb-single .rb-single__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rb-blogpost .rb-single .rb-single__head { margin-bottom: 16px; }
  .rb-blogpost .rb-single .rb-single__main { padding: 24px 22px; }
  .rb-blogpost .rb-single .rb-single__hero img { max-height: 320px; }
}

@media (max-width: 560px) {
  .rb-blogpost .rb-single .rb-single__head h1 { font-size: 22px; }
  .rb-blogpost .rb-single .rb-single__main { padding: 20px 16px; }
  .rb-blogpost .rb-single .rb-prose { font-size: 16px; line-height: 2; }
  .rb-blogpost .rb-single .rb-prose h2 { font-size: 20px; margin-top: 1.8em; }
  .rb-blogpost .rb-single .rb-prose h3 { font-size: 17px; }
  .rb-blogpost .rb-single .rb-single__hero { margin-bottom: 22px; }
  .rb-blogpost .rb-single .rb-single__hero img { border-radius: 12px; }
}
