.nexfin-rich-content {
  max-width: 100%;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: start;
}

.nexfin-rich-content > :first-child { margin-top: 0; }
.nexfin-rich-content > :last-child { margin-bottom: 0; }

.nexfin-rich-content h2,
.nexfin-rich-content h3,
.nexfin-rich-content h4 {
  line-height: 1.45;
  margin: 1.5em 0 .65em;
  font-weight: 800;
}

.nexfin-rich-content h2 { font-size: 1.35em; }
.nexfin-rich-content h3 { font-size: 1.18em; }
.nexfin-rich-content h4 { font-size: 1.06em; }

.nexfin-rich-content p,
.nexfin-rich-content ul,
.nexfin-rich-content ol,
.nexfin-rich-content pre,
.nexfin-rich-content .nexfin-rich-callout,
.nexfin-rich-content .nexfin-rich-table-wrap {
  margin: 0 0 1.1em;
}

.nexfin-rich-content ul,
.nexfin-rich-content ol {
  padding-inline-start: 1.5em;
}

.nexfin-rich-content li + li { margin-top: .35em; }

.nexfin-rich-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.nexfin-rich-content .nexfin-rich-callout {
  border-inline-start: 4px solid currentColor;
  background: rgba(127, 127, 127, .08);
  border-radius: 10px;
  padding: .85em 1em;
}

.nexfin-rich-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(127, 127, 127, .22);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.nexfin-rich-table {
  width: 100%;
  min-width: 34rem;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-size: .95em;
}

.nexfin-rich-table th,
.nexfin-rich-table td {
  padding: .75em .9em;
  border: 0;
  border-bottom: 1px solid rgba(127, 127, 127, .18);
  border-inline-end: 1px solid rgba(127, 127, 127, .14);
  vertical-align: top;
  text-align: start;
}

.nexfin-rich-table th {
  background: rgba(127, 127, 127, .1);
  font-weight: 800;
  white-space: nowrap;
}

.nexfin-rich-table tr:last-child td { border-bottom: 0; }
.nexfin-rich-table th:last-child,
.nexfin-rich-table td:last-child { border-inline-end: 0; }
.nexfin-rich-table tbody tr:nth-child(even) td { background: rgba(127, 127, 127, .035); }

.nexfin-rich-content code {
  direction: ltr;
  unicode-bidi: isolate;
  background: rgba(127, 127, 127, .12);
  border-radius: 5px;
  padding: .12em .35em;
  font-size: .92em;
}

.nexfin-rich-content pre {
  direction: ltr;
  overflow-x: auto;
  padding: .9em 1em;
  background: rgba(127, 127, 127, .1);
  border-radius: 10px;
}

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

@media (max-width: 640px) {
  .nexfin-rich-content { line-height: 1.8; }
  .nexfin-rich-table { min-width: 30rem; font-size: .9em; }
  .nexfin-rich-table th,
  .nexfin-rich-table td { padding: .65em .72em; }
}
