/*
 * This source is generated by bin/gen/licon.py. Run licon.py after changing public/font/lichess.sfd
 *
 * Constant names and values are pulled from private use characters defined in the sfd file.
 *
 * Character names can be edited in fontforge's "glyph info" dialog, or by editing the StartChar: line that
 * begins each character chunk in lichess.sfd
 *
 * To make these characters visible in your editor, install the lichess.ttf font (which is also generated by
 * licon.py) and then add it to your editor's font list.
 */
/* Uniboard: keep the same page layout across pages */
/* text printed directly on the page background deserves special treatment (transp theme) */
.markdown-textarea .comment-preview {
  overflow-wrap: break-word;
  word-break: normal;
}

.markdown-textarea .comment-preview .embed {
  position: relative;
  display: block;
  height: 0;
  padding-bottom: 56.25%;
  /* 16/9 */
  width: 100%;
}
.markdown-textarea .comment-preview .embed > * {
  border: none;
}

.markdown-textarea .comment-preview .embed > * {
  position: absolute;
  width: 100%;
  height: 100%;
}

.markdown-textarea .comment-preview code, .markdown-textarea .comment-preview img, .markdown-textarea .comment-preview pre {
  border-radius: 7px;
}

/* helps with clipping background into border-radius */
.markdown-textarea .comment-preview img, .markdown-textarea .comment-preview pre {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.18), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}

html.transp .markdown-textarea .comment-preview img, .markdown-textarea .comment-preview html.transp img, html.transp .markdown-textarea .comment-preview pre, .markdown-textarea .comment-preview html.transp pre {
  backdrop-filter: blur(6px);
}

.markdown-img-resizer {
  position: relative;
  display: inline-block;
  line-height: 0;
  height: auto;
}
.markdown-img-resizer > img {
  max-width: 100%;
  height: auto;
  line-height: 0 !important;
  margin: 0 !important;
}
.markdown-img-resizer > .resize-handle {
  position: absolute;
  background: transparent;
  pointer-events: auto;
}
.markdown-img-resizer > .resize-handle.bottom {
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 16px;
  cursor: ns-resize;
}
.markdown-img-resizer > .resize-handle.left,
.markdown-img-resizer > .resize-handle.right {
  top: 0;
  width: 16px;
  height: 100%;
  cursor: ew-resize;
}
.markdown-img-resizer > .resize-handle.left {
  left: 0;
}
.markdown-img-resizer > .resize-handle.right {
  right: 0;
}
.markdown-img-resizer > .resize-handle.left::before,
.markdown-img-resizer > .resize-handle.right::before {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 100%;
  height: 14px;
}
.markdown-img-resizer > .resize-handle.left::before {
  left: 2px;
  background: repeating-linear-gradient(225deg, var(--c-border-light) 0 1px, transparent 0 2.4px);
  mask: linear-gradient(225deg, transparent 0 50%, #000 0);
}
.markdown-img-resizer > .resize-handle.right::before {
  right: 2px;
  background: repeating-linear-gradient(135deg, var(--c-border-light) 0 1px, transparent 0 2.4px);
  mask: linear-gradient(135deg, transparent 0 50%, #000 0);
}
.markdown-img-resizer > .resize-handle.left::after,
.markdown-img-resizer > .resize-handle.right::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 16px;
}
.markdown-img-resizer > .resize-handle.left::after,
.markdown-img-resizer > .resize-handle.left.corner-drag {
  cursor: nesw-resize;
}
.markdown-img-resizer > .resize-handle.right::after,
.markdown-img-resizer > .resize-handle.right.corner-drag {
  cursor: nwse-resize;
}

.markdown-img-container {
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.markdown-textarea {
  overflow: visible;
}
.markdown-textarea .comment-header {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  gap: 4px;
  align-items: center;
  z-index: 1;
}
.markdown-textarea .comment-header:has(.header-tab:first-of-type:hover) + .comment-content textarea, .markdown-textarea .comment-header:has(.header-tab:first-of-type.active) + .comment-content textarea {
  border-top-left-radius: 0;
}
.markdown-textarea .header-tab {
  all: unset;
  font-family: Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 112px;
  height: 40px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--c-font-dimmer);
  cursor: pointer;
}
.markdown-textarea .header-tab.active {
  position: relative;
  background: var(--c-bg-opaque);
  border-color: var(--c-border);
  color: var(--c-font);
  font-weight: bold;
  cursor: default;
}
.markdown-textarea .header-tab.active.write {
  background-color: var(--c-bg-input);
}
.markdown-textarea .header-tab.active::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background-color: var(--c-bg-opaque);
}
.markdown-textarea .header-tab.active.write::after {
  background-color: var(--c-bg-input);
}
.markdown-textarea:has(textarea:focus) .write.active {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}
.markdown-textarea:has(textarea:focus) .write.active::after {
  left: 1px;
  right: 1px;
}
.markdown-textarea .upload-image {
  all: unset;
  margin: 0 16px;
  width: 24px;
  height: 24px;
  background-color: var(--c-font-dimmer);
  cursor: pointer;
  mask: url("../hashed/add-photo-outline-material.a674cbb3.svg") 0 0/contain no-repeat;
}
.markdown-textarea .upload-image.disabled {
  background-color: var(--c-border);
  cursor: default;
}
.markdown-textarea .comment-content {
  overflow: visible;
  position: relative;
}
.markdown-textarea .comment-preview {
  position: absolute;
  inset: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.8em 1em 0;
  border-radius: 6px 6px 24px 6px;
  background: var(--c-bg-opaque);
}
.markdown-textarea .comment-preview img {
  max-width: 100%;
  margin: 0 auto;
  height: auto;
}
.markdown-textarea:has(.uploading) .comment-preview {
  background: var(--m-bg--alpha-50);
}
.markdown-textarea:has(.uploading) button {
  pointer-events: none;
}
.markdown-textarea:has(.uploading) .spinner {
  margin: 24px 0 0;
}
.markdown-textarea .comment-preview .uploading {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .markdown-textarea .header-tab:hover:not(.active) {
    background-color: var(--m-border--fade-80);
    border-color: var(--m-border--fade-60);
    color: var(--c-font);
  }
  .markdown-textarea .upload-image:hover:not(.disabled) {
    background-color: var(--c-primary);
  }
}
.markdown-textarea .comment-preview {
  font-size: 1.1rem;
}
.markdown-textarea .comment-preview strong {
  font-weight: bold;
}
.markdown-textarea .comment-preview em {
  font-style: italic;
}
.markdown-textarea .comment-preview p,
.markdown-textarea .comment-preview pre {
  margin: 1em 0;
}
.markdown-textarea .comment-preview ol,
.markdown-textarea .comment-preview ul {
  margin: 1em 0;
  padding-inline-start: 2em;
}
.markdown-textarea .comment-preview li ol,
.markdown-textarea .comment-preview li ul {
  margin: 0;
}
.markdown-textarea .comment-preview ol > li {
  list-style: decimal;
}
.markdown-textarea .comment-preview ul > li {
  list-style: disc;
}
.markdown-textarea .comment-preview li p {
  display: inline-block;
  vertical-align: top;
  margin-top: 0;
}
.markdown-textarea .comment-preview {
  /* should not be used */
}
.markdown-textarea .comment-preview h1 {
  font-size: 1em;
  margin: 0;
}
.markdown-textarea .comment-preview h2:not(:first-child) {
  margin-top: calc(0.9 * 1em);
}
.markdown-textarea .comment-preview h2 {
  border-bottom: 1px solid var(--c-brag);
  line-height: 1.5em;
  padding-bottom: calc(0.25 * 1em);
}
.markdown-textarea .comment-preview h3 {
  font-size: 18px;
}
@media (min-width: 300px) {
  .markdown-textarea .comment-preview h3 {
    font-size: calc(18px + 9 * (100vw - 300px) / 900);
  }
}
@media (min-width: 1200px) {
  .markdown-textarea .comment-preview h3 {
    font-size: 27px;
  }
}
.markdown-textarea .comment-preview h3 {
  font-weight: bold;
  margin: calc(0.8 * 1em) 0 calc(0.5 * 1em) 0;
}
.markdown-textarea .comment-preview h3:first-child {
  margin-top: 0;
}
.markdown-textarea .comment-preview h4 {
  font-size: 17px;
}
@media (min-width: 300px) {
  .markdown-textarea .comment-preview h4 {
    font-size: calc(17px + 6 * (100vw - 300px) / 900);
  }
}
@media (min-width: 1200px) {
  .markdown-textarea .comment-preview h4 {
    font-size: 23px;
  }
}
.markdown-textarea .comment-preview h2 a[id],
.markdown-textarea .comment-preview h3 a[id],
.markdown-textarea .comment-preview h4 a[id] {
  opacity: 0;
}
.markdown-textarea .comment-preview h2 a[id]::before,
.markdown-textarea .comment-preview h3 a[id]::before,
.markdown-textarea .comment-preview h4 a[id]::before {
  color: var(--c-font-dimmer);
  content: "\e001";
  font-family: lichess;
  margin-left: -3rem;
  width: 3rem;
  position: absolute;
}
.markdown-textarea .comment-preview h2:hover a[id],
.markdown-textarea .comment-preview h3:hover a[id],
.markdown-textarea .comment-preview h4:hover a[id] {
  opacity: 1;
}
.markdown-textarea .comment-preview img {
  display: block;
  max-width: 100%;
  max-height: 1600px;
  margin: auto;
}
.markdown-textarea .comment-preview table {
  margin: 1em 0;
}
.markdown-textarea .comment-preview th[align=left],
.markdown-textarea .comment-preview td[align=left] {
  text-align: left;
}
.markdown-textarea .comment-preview th[align=center],
.markdown-textarea .comment-preview td[align=center] {
  text-align: center;
}
.markdown-textarea .comment-preview th[align=right],
.markdown-textarea .comment-preview td[align=right] {
  text-align: right;
}
.markdown-textarea .comment-preview p time {
  border-bottom: 1px dashed var(--c-font-dim);
  cursor: help;
  font-size: 100%;
}
.markdown-textarea .comment-preview p a > time {
  border-color: var(--c-link);
}
.markdown-textarea .comment-preview p a:hover > time {
  border-color: var(--c-link-hover);
}
.markdown-textarea .comment-preview code {
  font-family: monospace;
  padding: 0.2em 0.5em;
  background: var(--c-bg-zebra);
  color: var(--c-font-clear);
  font-size: 0.9em;
  white-space: pre-wrap;
}
.markdown-textarea .comment-preview pre {
  background: var(--c-bg-zebra);
  padding: 1em 1.5em;
  line-height: 1.4em;
}
.markdown-textarea .comment-preview pre code {
  background: none;
  padding: 0;
}
.markdown-textarea .comment-preview blockquote {
  color: var(--c-font-dim);
  border-inline-start: 0.3em solid var(--c-font-dimmer);
  padding-inline-start: 1em;
}
.markdown-textarea .comment-preview img {
  max-width: 100%;
}
.markdown-textarea .comment-preview {
  /* image caption */
}
.markdown-textarea .comment-preview img + br:has(+ em) {
  display: none;
}
.markdown-textarea .comment-preview img + em,
.markdown-textarea .comment-preview img + br + em {
  color: var(--c-font-dim);
  margin-top: 10px;
  display: block;
  font-size: 0.8em;
  text-align: center;
}
.markdown-textarea .comment-preview .embed {
  margin: var(---block-gap) auto;
}
.markdown-textarea .comment-preview .embed > iframe {
  left: 0;
}
.markdown-textarea .comment-preview .twitter-tweet {
  color-scheme: normal;
  margin: auto;
}
.markdown-textarea .comment-preview .private-study {
  color: var(--c-brag);
  font-size: 1.2em;
}

/*# sourceMappingURL=bits.markdownTextarea.css.map */
