{# Rich HTML post body (CMS/editor). Include inside a <style> block. #}
.studyfeed-rich-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.studyfeed-rich-body p {
  margin: 0 0 0.75rem 0;
  line-height: 1.625;
  color: inherit;
}
.studyfeed-rich-body p:last-child {
  margin-bottom: 0;
}
.studyfeed-rich-body h1,
.studyfeed-rich-body h2,
.studyfeed-rich-body h3,
.studyfeed-rich-body h4 {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 1rem 0 0.5rem 0;
}
.studyfeed-rich-body h1:first-child,
.studyfeed-rich-body h2:first-child,
.studyfeed-rich-body h3:first-child,
.studyfeed-rich-body h4:first-child {
  margin-top: 0;
}
.studyfeed-rich-body h3 { font-size: 1.125rem; }
.studyfeed-rich-body h4 { font-size: 1.05rem; }
.studyfeed-rich-body ul,
.studyfeed-rich-body ol {
  margin: 0.5rem 0 0.75rem 0;
  padding-left: 1.5rem;
  line-height: 1.625;
}
.studyfeed-rich-body li {
  margin: 0.25rem 0;
}
.studyfeed-rich-body ul { list-style-type: disc; }
.studyfeed-rich-body ol { list-style-type: decimal; }
.studyfeed-rich-body a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}
.studyfeed-rich-body a:hover {
  color: #1d4ed8;
}
.studyfeed-rich-body strong,
.studyfeed-rich-body b {
  font-weight: 700;
  color: #0f172a;
}
.studyfeed-rich-body em,
.studyfeed-rich-body i {
  font-style: italic;
}
.studyfeed-rich-body .stf-embed-video-wrap {
  margin: 0.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.studyfeed-rich-body .stf-embed-video-wrap.stf-embed-youtube {
  width: 80%;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
  aspect-ratio: 16 / 9;
}
.studyfeed-rich-body .stf-embed-video-wrap.stf-embed-tiktok {
  width: 80%;
  max-width: 325px;
  min-width: 0;
  margin-left: 0;
  margin-right: auto;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 620px);
}
.studyfeed-rich-body .stf-embed-video-wrap .stf-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.studyfeed-rich-body blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid #e2e8f0;
  color: #475569;
}
