.variants .variant h2 {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.page .body, .cms-preview {
  overflow-wrap: break-word;
  word-break: normal;
}

.variant [data-oembed], .page .body .embed, .cms-preview .embed {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  display: block;
  position: relative;
}

.variant [data-oembed] > *, .page .body .embed > *, .cms-preview .embed > * {
  border: none;
  width: 100%;
  height: 100%;
  position: absolute;
}

.variants .variant {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.page .body code, .cms-preview code, .page .body img, .cms-preview img, .page .body pre, .cms-preview pre, .page .body details, .cms-preview details {
  border-radius: var(---ui-roundness, 7px);
}

.page .body img, .cms-preview img, .page .body pre, .cms-preview pre {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

:where(html.transp) .page .body details, .page .body :where(html.transp) details, :where(html.transp) .cms-preview details, .cms-preview :where(html.transp) details {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.page .body details, .cms-preview details {
  border: 1px solid var(--c-border);
}

:where(html.transp) .page .body img, .page .body :where(html.transp) img, :where(html.transp) .cms-preview img, .cms-preview :where(html.transp) img, :where(html.transp) .page .body pre, .page .body :where(html.transp) pre, :where(html.transp) .cms-preview pre, .cms-preview :where(html.transp) pre {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.page .body strong, .cms-preview strong {
  font-weight: bold;
}

.page .body em, .cms-preview em {
  font-style: italic;
}

.page .body p, .page .body pre, .cms-preview p, .cms-preview pre {
  margin: 2em 0;
}

.page .body ol, .page .body ul, .cms-preview ol, .cms-preview ul {
  margin: 2em 0;
  padding-inline-start: 2em;
}

.page .body li ol, .page .body li ul, .cms-preview li ol, .cms-preview li ul {
  margin: 0;
}

.page .body ol > li, .cms-preview ol > li {
  list-style: decimal;
}

.page .body ul > li, .cms-preview ul > li {
  list-style: outside;
}

.page .body li p, .cms-preview li p {
  vertical-align: top;
  margin-top: 0;
  display: inline-block;
}

.page .body h1, .cms-preview h1 {
  margin: 0;
  font-size: 1em;
}

.page .body h2:not(:first-child), .cms-preview h2:not(:first-child) {
  margin-top: 1.8em;
}

.page .body h2, .cms-preview h2 {
  border-bottom: 1px solid var(--c-brag);
  padding-bottom: .5em;
  line-height: 1.5em;
}

.page .body h3, .cms-preview h3 {
  font-size: 18px;
}

@media (min-width: 300px) {
  .page .body h3, .cms-preview h3 {
    font-size: calc(1vw + 15px);
  }
}

@media (min-width: 1200px) {
  .page .body h3, .cms-preview h3 {
    font-size: 27px;
  }
}

.page .body h3, .cms-preview h3 {
  margin: 1.6em 0 1em;
  font-weight: bold;
}

.page .body h3:first-child, .cms-preview h3:first-child {
  margin-top: 0;
}

.page .body h4, .cms-preview h4 {
  font-size: 17px;
}

@media (min-width: 300px) {
  .page .body h4, .cms-preview h4 {
    font-size: calc(.666667vw + 15px);
  }
}

@media (min-width: 1200px) {
  .page .body h4, .cms-preview h4 {
    font-size: 23px;
  }
}

.page .body h2 a[id], .page .body h3 a[id], .page .body h4 a[id], .cms-preview h2 a[id], .cms-preview h3 a[id], .cms-preview h4 a[id] {
  opacity: 0;
}

.page .body h2 a[id]:before, .page .body h3 a[id]:before, .page .body h4 a[id]:before, .cms-preview h2 a[id]:before, .cms-preview h3 a[id]:before, .cms-preview h4 a[id]:before {
  color: var(--c-font-dimmer);
  content: "";
  width: 3rem;
  margin-left: -3rem;
  font-family: lichess;
  position: absolute;
}

.page .body h2:hover a[id], .page .body h3:hover a[id], .page .body h4:hover a[id], .cms-preview h2:hover a[id], .cms-preview h3:hover a[id], .cms-preview h4:hover a[id] {
  opacity: 1;
}

.page .body img, .cms-preview img {
  max-width: 100%;
  max-height: 450vh;
  margin: auto;
  display: block;
}

.page .body table, .cms-preview table {
  margin: 2em 0;
}

.page .body th[align="left"], .page .body td[align="left"], .cms-preview th[align="left"], .cms-preview td[align="left"] {
  text-align: left;
}

.page .body th[align="center"], .page .body td[align="center"], .cms-preview th[align="center"], .cms-preview td[align="center"] {
  text-align: center;
}

.page .body th[align="right"], .page .body td[align="right"], .cms-preview th[align="right"], .cms-preview td[align="right"] {
  text-align: right;
}

.page .body p time, .cms-preview p time {
  border-bottom: 1px dashed var(--c-font-dim);
  cursor: help;
  font-size: 100%;
}

.page .body p a > time, .cms-preview p a > time {
  border-color: var(--c-link);
}

.page .body p a:hover > time, .cms-preview p a:hover > time {
  border-color: var(--c-link-hover);
}

.page .body code, .cms-preview code {
  background: var(--c-bg-zebra);
  color: var(--c-font-clear);
  white-space: pre-wrap;
  padding: .2em .5em;
  font-family: monospace;
  font-size: .9em;
}

.page .body pre, .cms-preview pre {
  background: var(--c-bg-zebra);
  padding: 1em 1.5em;
  line-height: 1.4em;
}

.page .body pre code, .cms-preview pre code {
  background: none;
  padding: 0;
}

.page .body img, .cms-preview img {
  max-width: 100%;
  margin: .25em auto .5em;
}

.page .body img + br:has( + em) {
  display: none;
}

.cms-preview img + br:has( + em) {
  display: none;
}

.page .body img + em, .page .body img + br + em, .cms-preview img + em, .cms-preview img + br + em {
  color: var(--c-font-dim);
  text-align: center;
  margin-top: 10px;
  font-size: .8em;
  display: block;
}

.page .body .embed, .cms-preview .embed {
  margin: var(---block-gap) auto;
}

.page .body .embed > iframe, .cms-preview .embed > iframe {
  left: 0;
}

.page .body .private-study, .cms-preview .private-study {
  color: var(--c-brag);
  font-size: 1.2em;
}

.page .body, .cms-preview {
  overflow-wrap: anywhere;
  font-size: 1.1em;
}

.page .body:not(.expand-text), .cms-preview:not(.expand-text) {
  border: 1px solid var(--c-border);
}

.page .body center, .page .body .center, .cms-preview center, .cms-preview .center {
  text-align: center;
}

.page .body details, .cms-preview details {
  background: var(--c-bg-zebra);
  padding: 1em 2em;
}

.page .body details:open summary {
  color: var(--c-accent);
}

.page .body details:open summary::marker {
  color: var(--c-accent);
}

.cms-preview details:open summary {
  color: var(--c-accent);
}

.cms-preview details:open summary::marker {
  color: var(--c-accent);
}

.page .body details summary, .cms-preview details summary {
  cursor: pointer;
  padding-top: 0;
  font-size: 1.3em;
  font-weight: bold;
}

.page .body details summary::marker {
  color: var(--c-font-dim);
}

.cms-preview details summary::marker {
  color: var(--c-font-dim);
}

.page .body details summary span, .cms-preview details summary span {
  margin-left: .25em;
}

.page .body details :last-child, .cms-preview details :last-child {
  margin-bottom: .25em;
}

.variant .headline {
  margin-bottom: 30px;
  font-size: 1.2em;
  font-style: italic;
}

.variants {
  padding: 1em 0;
}

.variants .variant {
  color: var(--c-font);
  height: 6em;
  transition: all .15s;
}

.variants .variant:hover {
  background: color-mix(in oklab, var(--c-primary) 20%, var(--c-bg));
}

.variants .variant:before {
  opacity: .7;
  margin-inline-end: 1rem;
  font-size: 3.5em;
  transition: all .15s;
}

.variants .variant:hover:before {
  opacity: 1;
}

.variants .variant h2 {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.6em;
}

.variants .variant h3 {
  margin: 0;
}
