.typography {
  --typography-font: var(--font-sans, "Poppins", "Segoe UI", sans-serif);
  --typography-ink: var(--p2-ink, #231f20);
  --typography-muted: var(--p2-ink-muted, #6b7280);
  --typography-primary: var(--theme-primary-current, var(--p2-brand-accent, #12aeb4));
  --typography-border: var(--p2-border, #c0c7cc);
  color: var(--typography-ink);
  font-family: var(--typography-font);
  font-size: var(--p2-body-size, 1rem);
  line-height: 1.55;
}

.typography > :first-child {
  margin-top: 0;
}

.typography > :last-child {
  margin-bottom: 0;
}

.typography p,
.typography ul,
.typography ol,
.typography blockquote,
.typography table,
.typography figure {
  margin-block: 0 1.1em;
}

.typography ul,
.typography ol {
  padding-left: 0;
  list-style: none;
}

.typography li + li {
  margin-top: 0.55em;
}

.typography li {
  position: relative;
  padding-left: 1.35em;
}

.typography ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.15em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 999px;
  background: var(--typography-primary);
  transform: translateY(-50%);
}

.typography ol {
  counter-reset: typography-counter;
}

.typography ol > li {
  counter-increment: typography-counter;
}

.typography ol > li::before {
  content: counter(typography-counter) ".";
  position: absolute;
  left: 0;
  color: var(--typography-primary);
  font-weight: 700;
}

.typography a {
  color: var(--typography-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.typography strong,
.typography b {
  font-weight: 700;
}

.typography em,
.typography i {
  font-style: italic;
}

.typography h1,
.typography h2,
.typography h3,
.typography h4,
.typography h5,
.typography h6 {
  margin-block: 1.45em 0.65em;
  color: inherit;
  font-weight: 600;
  line-height: 1.3;
}

.typography h1 {
  color: var(--typography-muted);
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
}

.typography h2 {
  color: var(--typography-primary);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
  line-height: 1.25;
}

.typography h3 {
  font-size: clamp(1.18rem, 1.08rem + 0.35vw, 1.4rem);
}

.typography h4 {
  font-size: 1.15em;
}

.typography h5,
.typography h6 {
  font-size: 1em;
}

.typography blockquote {
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 0.25rem solid var(--typography-primary);
  color: var(--typography-muted);
  font-size: 1.06em;
}

.typography table {
  width: 100%;
  border-collapse: collapse;
}

.typography th,
.typography td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--typography-border);
  text-align: left;
  vertical-align: top;
}

.typography th {
  color: var(--typography-ink);
  font-weight: 700;
}

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

.typography .left,
.typography img.left,
.typography .captionImage.left {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.typography .right,
.typography img.right,
.typography .captionImage.right {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.typography .center,
.typography .leftAlone,
.typography img.center,
.typography img.leftAlone,
.typography .captionImage.center,
.typography .captionImage.leftAlone {
  display: block;
  float: none;
  margin-inline: auto;
}

.typography .captionImage {
  max-width: 100%;
}

.typography .captionImage img {
  display: block;
  margin-inline: auto;
}

.typography .caption {
  margin-top: 0.45rem;
  color: var(--typography-muted);
  font-size: 0.875em;
  line-height: 1.4;
  text-align: center;
}

.typography .text-left {
  text-align: left;
}

.typography .text-center {
  text-align: center;
}

.typography .text-right {
  text-align: right;
}

.typography .text-justify {
  text-align: justify;
}

@media (max-width: 39.99rem) {
  .typography .left,
  .typography .right,
  .typography img.left,
  .typography img.right,
  .typography .captionImage.left,
  .typography .captionImage.right {
    display: block;
    float: none;
    margin-inline: auto;
  }

  .typography table {
    display: block;
    overflow-x: auto;
  }
}
