.container {
  max-width: var(--max-width-content);
  margin: 0 auto;

  & > :first-child {
    margin-top: 0;
  }
  & > :last-child {
    margin-bottom: 0;
  }
}

.heading {
  color: var(--Text-Heading);
  margin-top: var(--Space-x3);
  text-wrap: balance;
  hyphens: auto;
}

.h1,
.h2 {
  margin-bottom: var(--Space-x2);
}

.h3,
.h4,
.h5,
.p,
.blockquote,
.code,
.divider,
.div {
  margin-bottom: var(--Space-x15);
}

.imageWithCaption {
  display: grid;
  gap: var(--Space-x1);
  margin: var(--Space-x3) 0;

  .imageWrapper {
    margin: 0;
  }
}

.imageWrapper {
  position: relative;
  width: 100%;
  height: 365px;
  border-radius: var(--Corner-radius-md);
  margin: var(--Space-x3) 0;
  overflow: hidden;
}

.image {
  width: 100%;
  object-fit: cover;
}

.ul,
.ol {
  display: grid;
  gap: var(--Space-x1);
  padding: 0;
  margin-top: var(--Space-x2);
  margin-bottom: var(--Space-x2);
}

.ol > li::marker {
  color: var(--Icon-Accent);
}

.li {
  margin-left: var(--Space-x3);
}

.heart > .li::before,
.li:has(.heart)::before {
  content: url("/_static/icons/heart.svg");
  position: relative;
  height: 8px;
  top: 3px;
  margin-right: var(--Space-x1);
  margin-left: calc(var(--Space-x3) * -1);
}

.heart > .li,
.check > .li,
.li:has(.check),
.li:has(.heart) {
  list-style: none;
}

.check > .li::before,
.li:has(.check)::before {
  content: url("/_static/icons/check-ring.svg");
  position: relative;
  height: 8px;
  top: 3px;
  margin-right: var(--Space-x1);
  margin-left: calc(var(--Space-x3) * -1);
}

.li > p {
  display: inline;
  margin: 0;
}

.tableContainer {
  max-width: 100%;
  overflow-x: auto;
  margin: var(--Space-x3) 0;
}

.table .p {
  display: inline;
  margin: 0;
}

.theadContent {
  color: var(--Text-Heading);
}

.iframe {
  margin: var(--Space-x3) 0;
}

@media screen and (min-width: 768px) {
  .ol:has(li:nth-last-child(n + 5)),
  .ul:has(li:nth-last-child(n + 5)) {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
  }
}

@container sidebar (max-width: 360px) {
  .ol,
  .ul {
    display: flex;
    flex-direction: column;
  }
}
