body {
  font-family: Merriweather, Georgia, serif;
}

.prose-invert {
  color: #4a4a4a;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose-invert p {
  text-align: justify;
  /*text-indent: 2rem;*/
  /*margin-bottom: 1rem;*/
  color: #6b6b6b;
}

.prose-invert hr {
  border: none;
  height: 1px;
  background: #d4d4d4;
  margin: 1rem 0;
}

.prose-invert blockquote {
  border-left: 4px solid #525252;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1rem 0;
  font-style: italic;
  font-size: 1.25rem;
}

.prose-invert blockquote footer {
  font-style: normal;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.prose-invert figure {
  margin: 2rem 0;
}

.prose-invert figure img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto;
}

.prose-invert figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #555555;
  margin-top: 0.5rem;
}

.prose-invert img {
  max-width: 100%;
  height: auto;
}

.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4,
.prose-invert h5, .prose-invert h6 {
  color: #111111;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-family: Merriweather, Georgia, serif;
}

.prose-invert h1 {
  font-size: 2.25rem;
}

.prose-invert h2 {
  font-size: 1.875rem;
}

.prose-invert h3 {
  font-size: 1.5rem;
}

.prose-invert h4 {
  font-size: 1.25rem;
}

.prose-invert h5 {
  font-size: 1.125rem;
}

.prose-invert h6 {
  font-size: 1rem;
}

.prose-invert a {
  color: #db1a90;
  text-decoration: underline;
}

.prose-invert ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #6b6b6b;
}

.prose-invert ol {
  list-style: decimal;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #6b6b6b;
}

.prose-invert li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose-invert li::marker {
  color: #999999;
}

.prose-invert table {
  width: 100%;
  min-width: 580px; /* Гарантирует, что таблица не сожмется меньше читаемого размера */
  border-collapse: collapse;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 13px;
  line-height: 1.4;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border: 1px solid #000;
  white-space: nowrap; /* Запрещает разрывать числа и валюты на две строки */
}

.prose-invert thead {
  border-bottom: 1px solid #000;
}

.prose-invert th {
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 14px;
  color: #000;
}

.prose-invert td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e5;
  color: #404040;
  font-variant-numeric: tabular-nums;
}

/* Прижимаем динамику к правому краю */
.prose-invert th:last-child,
.prose-invert td:last-child {
  text-align: right;
}

.prose-invert tbody tr:last-child td {
  border-bottom: none;
}

.prose-invert tbody tr:hover {
  background: #f0f0f0;
}
