:root {
  --heading-font-family: var(--font-family-1, var(--font-family));
  --heading-font-weight: 700;
  --heading-text-transform: uppercase;
}

body:has(.document-rendered-content) {
  background-color: white;
  font-size: 1.1rem;
}

.document-rendered-content {
  margin: 2rem 1rem;
}

h1,
h2,
h3,
li > strong,
li:has(strong)::marker {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  text-transform: var(--heading-text-transform);
  text-align: center;
}

h2,
h3,
p > strong:only-child {
  text-transform: uppercase;
  font-weight: var(--heading-font-weight);
}

p + h2,
p + p:has(> strong:only-child),
p + h1 {
  margin-top: 1.5em;
}

ul,
ol {
  margin-left: 2em;
}

main a {
  color: unset;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main p,
main li {
  margin-bottom: 1em;
  line-height: 1.5em;
}

main li {
  margin-left: 2em;
}

strong {
  font-weight: unset;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

tr {
  border: 1px solid var(--body-txt-color);
}

td,
th {
  padding: 0.75rem 1rem;
  border: 1px solid var(--body-txt-color);
}

table p {
  margin: 0;
}

@media (min-width: 768px) {
  .document-rendered-content {
    margin: 0 auto;
    padding: 2rem 3rem 5rem;
    width: var(--text-content-max-width);
  }
}
