.slist thead {
  box-shadow: inset 0 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8);
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

:where(html.light) .slist thead, .slist :where(html.light) thead {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.slist thead {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

.copy-me__target {
  white-space: nowrap;
}

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

.copy-me__target {
  text-overflow: ellipsis;
  overflow: hidden;
}

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

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

.copy-me {
  flex-flow: row;
  align-items: center;
  display: flex;
}

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

.copy-me__target:is(a):focus-visible, .copy-me__target {
  border-radius: var(---ui-roundness, 7px) 0 0 var(---ui-roundness, 7px);
}

.copy-me__button {
  border-radius: 0 var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0;
}

.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);
}

.slist {
  border-bottom: 1px solid var(--c-border);
  width: 100%;
}

.slist thead th {
  border-bottom: 1px solid var(--c-border);
  padding: .5rem .8rem;
}

:where(html.light) .slist thead th {
  border-top: 1px solid var(--c-border);
}

.slist thead th.large {
  font-size: 1.2rem;
}

.slist td {
  padding: 1rem;
}

.slist td .label {
  font-family: monospace;
  font-size: .8rem;
}

.slist tbody tr:nth-child(2n) {
  background: var(--c-bg-zebra);
}

.slist td:first-child, .slist th:first-child {
  padding-inline-start: 1.5rem;
}

.slist-pad td:first-child, .slist-pad th:first-child {
  padding-inline-start: var(---box-padding);
}

.slist-pad td:last-child, .slist-pad th:last-child {
  padding-inline-end: var(---box-padding);
}

.slist-invert tbody tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.slist-invert tbody tr:nth-child(2n) {
  background: none;
}

.slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2);
  scrollbar-width: thin;
  min-width: auto;
  overflow-x: auto;
}

.slist-wrapper:has(.slist-pad) {
  max-width: 100vw;
}

ol .slist-wrapper, ul .slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2 - 30px);
}

ol .slist-wrapper .slist, ul .slist-wrapper .slist {
  margin-top: 0;
}

@media (max-width: 649.29px) {
  .slist-wrapper .slist {
    min-width: calc(max(100vw, 650px) - var(---box-padding) * 2);
  }

  .slist.slist-resp {
    border-collapse: collapse;
    table-layout: fixed;
  }

  .slist.slist-resp thead {
    clip-path: rect(0 0 0 0);
    border: none;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .slist.slist-resp tr {
    border-top: 1px solid var(--c-border);
    display: block;
  }

  .slist.slist-resp td {
    padding: .5rem var(---box-padding);
    border-top: 1px solid var(--c-border);
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .slist.slist-resp td:before {
    content: attr(data-label);
  }
}

@media (max-width: 499.29px) {
  .stack-row {
    flex-direction: column;
    display: flex;
  }

  .stack-row td {
    width: 100%;
    padding-inline: var(---box-padding);
  }
}

:where(html.transp) .copy-me {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.copy-me {
  background: var(--c-bg-input);
}

.copy-me__target {
  border: 1px solid var(--c-border);
  background: none;
  border-right: 0;
  outline: 0;
  flex: auto;
  min-height: 44px;
  padding: 0 1em;
}

.copy-me__target:is(a) {
  line-height: 40px;
}

.copy-me__target:is(a):focus-visible {
  outline-offset: -2px;
}

.copy-me__button {
  border: 1px solid var(--c-border);
  border-left: 0;
  flex: none;
  min-height: 44px;
  padding: 0 1em;
}

.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;
}
