/* Public + editor typography for Shalyam rich content (.content-body). */

.content-body,
.note-editable.content-body {
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #212529;
  word-wrap: break-word;
}

.content-body > *:first-child,
.note-editable.content-body > *:first-child {
  margin-top: 0;
}

.content-body > *:last-child,
.note-editable.content-body > *:last-child {
  margin-bottom: 0;
}

.content-body p,
.note-editable.content-body p,
.content-body .text-large-normal {
  margin-bottom: 1rem;
}

.content-body h1,
.content-body .h1,
.note-editable.content-body h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

.content-body h2,
.content-body .h2,
.note-editable.content-body h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.75rem 0 0.875rem;
}

.content-body h3,
.content-body .h3,
.note-editable.content-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
}

.content-body h4,
.content-body .h4,
.note-editable.content-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.625rem;
}

.content-body h5,
.content-body .h5,
.note-editable.content-body h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.content-body h6,
.content-body .h6,
.note-editable.content-body h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.content-body a {
  color: #3874ff;
  text-decoration: underline;
}

.content-body a:hover {
  color: #2457d6;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.content-body ul {
  list-style-type: disc;
}

.content-body ol {
  list-style-type: decimal;
}

.content-body li {
  margin-bottom: 0.35rem;
}

.content-body li > ul,
.content-body li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.content-body blockquote,
.content-body .blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 4px solid #ced4da;
  color: #6c757d;
}

.content-body pre,
.content-body .bg-dark {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 0.375rem;
  background: #212529;
  color: #f8f9fa;
  overflow-x: auto;
}

.content-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f3f5;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.content-body pre code {
  background: transparent;
  padding: 0;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.content-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.content-body th,
.content-body td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.content-body th {
  background: #f8f9fa;
  font-weight: 600;
}

.content-body hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #dee2e6;
}

.content-body .ratio,
.content-body iframe {
  max-width: 100%;
  margin: 1rem 0;
}

.content-body iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
}

.content-body u {
  text-decoration: underline;
}

.content-body strong {
  font-weight: 700;
}

.content-body em {
  font-style: italic;
}

/* Summernote editor WYSIWYG: apply same prose inside editable area */
.note-editable {
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.note-editable p {
  margin-bottom: 1rem;
}

.note-editable ul,
.note-editable ol {
  padding-left: 1.5rem;
}

.note-editable ul {
  list-style-type: disc;
}

.note-editable ol {
  list-style-type: decimal;
}

.note-editable table th,
.note-editable table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}
