.ol-rules-content {
  color: #321721;
  font: 15px/1.7 "Segoe UI", system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.ol-rules-content p {
  margin: 0 0 0.85em;
  line-height: inherit;
}

.ol-rules-content h1,
.ol-rules-content h2,
.ol-rules-content h3,
.ol-rules-content h4,
.ol-rules-content h5,
.ol-rules-content h6 {
  margin: 1.35em 0 0.55em;
  font-family: inherit;
  font-weight: 670;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.ol-rules-content h1 { font-size: 1.7em; }
.ol-rules-content h2 { font-size: 1.45em; }
.ol-rules-content h3 { font-size: 1.24em; }
.ol-rules-content h4 { font-size: 1.1em; }
.ol-rules-content h5,
.ol-rules-content h6 { font-size: 1em; }
.ol-rules-content > :first-child,
.ol-rules-content .tiptap > :first-child { margin-top: 0; }

.ol-rules-content ul,
.ol-rules-content ol { padding-inline-start: 1.7em; }

.ol-rules-content li { margin-block: 0.3em; }
.ol-rules-content li > p { margin: 0; }

.ol-rules-content a {
  color: #781e34;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.ol-rules-content blockquote {
  margin: 1.15em 0;
  padding: 0.5em 1.1em;
  border-inline-start: 3px solid #d4a35c;
  background: #f8f0e5;
}

.ol-rules-content blockquote > :last-child { margin-bottom: 0; }

.ol-rules-content hr {
  border: 0;
  border-top: 1px solid #dec7b0;
  margin: 1.5em 0;
}

.ol-rules-table-scroll,
.ol-rules-content .tableWrapper {
  max-width: 100%;
  overflow-x: auto;
}

.ol-rules-content table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  table-layout: auto;
  margin: 1em 0 1.25em;
  font-size: 0.9em;
}

.ol-rules-content th,
.ol-rules-content td {
  border: 1px solid #e1d0bf;
  padding: 0.65em 0.75em;
  text-align: left;
  vertical-align: top;
  position: relative;
}

.ol-rules-content th { background: #f5e6d6; }
.ol-rules-content th p,
.ol-rules-content td p { margin: 0; }
.ol-rules-content td.selectedCell::after,
.ol-rules-content th.selectedCell::after {
  position: absolute;
  inset: 0;
  background-color: #ad527832;
  pointer-events: none;
  content: "";
}

@media (max-width: 620px) {
  .ol-rules-content p[style*="justify"] { text-align: start !important; }
}
