*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

.tiptap input {
  font: inherit; /* 1 */
}

b, strong {
    font-weight: bolder;
}

:root{
	--v-spacing: 0.5;
	--indent: 1.75em;
}

::selection{
	background: #00000022;
}

.tiptap {
	outline: none;
	width: 100%;
	color: inherit;
	word-wrap: break-word;
    white-space: pre-wrap;
    white-space: break-spaces;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0;
}

.col-c-2{
	column-count: 2;
}

.tiptap p:empty{
	height: 22.5px;
}

.tiptap p{
	margin-top: 0px;
	margin-bottom: 1em;
}

.tiptap h1 {
	font-weight: 700;
	column-span: all;
	font-size: 2.2em;
	line-height: 1.15em;
	margin-top: calc(var(--v-spacing) * 1.8em);
	margin-bottom: calc(var(--v-spacing) * 1em);
}

.tiptap h2 {
	font-weight: 600;
	font-size: 1.7em;
	line-height: 1.15em;
	margin-top: calc(var(--v-spacing) * 1.8em);
	margin-bottom: calc(var(--v-spacing) * 1.3em);
}

.tiptap h3 {
	font-weight: 600;
	font-size: 1.3em;
	line-height: 1.3em;
	margin-top: calc(var(--v-spacing) * 2em);
	margin-bottom: calc(var(--v-spacing) * 1em);
}

.tiptap h4 {
	font-weight: 600;
	font-size: 1em;
	line-height: 1.4em;
	margin-top: calc(var(--v-spacing) * 2em);
	margin-bottom: calc(var(--v-spacing) * 0.75em);
}

.tiptap.ProseMirror-focused:focus {
	outline: none;
}

.tiptap p.is-editor-empty:first-child::before {
	color: #bbb;
	/* content: attr(data-placeholder); */
	float: left;
	height: 0;
	pointer-events: none;
	font-style: italic;
}

.tiptap > p:empty:first-of-type:last-child::before  {
	color: #bbb;
	/* content: 'New tile...'; */
	float: left;
	height: 0;
	pointer-events: none;
	font-style: italic;
}

.tiptap blockquote {
	border-left: solid 4px black;
	padding-left: 1em;
	margin: calc(var(--v-spacing) * 2.4em) 0em;
	opacity: 0.6;
}

.tiptap code {
	background: #00000022;
	padding: 1.5px 4px 1.5px 4px;
	font-size: 0.86em;
	border-radius: 2px;
}

.tiptap pre {
	background: #00000022;
	padding: 0.4em 0.8em;
	margin: 0px;
	margin-bottom: calc(var(--v-spacing) * 2em);
	border-radius: 4px;
	line-height: 1.1em;
}

.tiptap pre code {
	background: transparent;
	padding: 0px;
}

.tiptap hr {
	border-color: #00000044;
	border-width: 1px;
	border-style: dashed;
	margin-bottom: calc(var(--v-spacing) * 2em);
}

.tiptap ul {
	list-style-type: disc;
	margin-bottom: calc(var(--v-spacing) * 2em);
	margin-left: var(--indent);
}

.tiptap ol {
	counter-reset: editor-ol 0;
	list-style-type: ordinal;
	margin-bottom: calc(var(--v-spacing) * 2em);
	margin-left: var(--indent);
    font-variant-numeric: tabular-nums;
}

.tiptap li ul,
.tiptap li ol {
	margin-top: calc(var(--v-spacing) * 1em);
	margin-bottom: calc(var(--v-spacing) * 1em);
}

.tiptap li {
	margin: 0px;
	position: relative;
	margin-bottom: calc(var(--v-spacing) * 1em);
	counter-increment: editor-ol 1;
}

.tiptap li:last-child{
	margin-bottom: 0px;
}

.tiptap li p{
	margin: 0px;
	margin-left: 0.2em;
	position: relative;
	margin-bottom: calc(var(--v-spacing) * 1em);
	counter-increment: editor-ol 1;
}

.tiptap ul ul, .tiptap ol ul, .tipap ol ol, .tiptap ul ol {
	margin-left: var(--indent);
}

.tiptap li::marker {
	color: currentColor;
	display: none;
}

.tiptap > *:last-child,
.tiptap div > *:last-child {
	margin-bottom: 0px !important;
}

.tiptap div > *:first-child {
	margin-top: 0px;
}

.tiptap > *:first-child{
	margin-top: 0px;
}

.tiptap img{
	width: 100%;
	height: auto;
	max-height: 24em;
	max-width: max-content;
	margin: auto;
	border-radius: 4px;
	margin-bottom: 1em;
	border: solid 0.5px #00000022;
	display: block;
}

img.selected{
	position: relative;
	/* filter: brightness(80%); */
}

/* img.selected::after{
	height: 100%;
	width: 100%;
	content: '';
	position: absolute;
	top: 0px;
	left: 0px;
	background: var(--color-overlay);
	border-radius: 4px
} */

.tiptap a {
	text-decoration-line: underline;
	text-underline-offset: 0.1em;
	color: inherit;
	cursor: pointer;
}





/* Checkboxes */

.tiptap [data-type="taskList"] {
	list-style-type: none;
	margin-left: 0.2em;
}

.tiptap ul[data-type="taskList"] > li {
	display: flex;
	align-items: flex-start;
	gap: 0.5em
}

.tiptap ul[data-type="taskList"] li > label {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	align-self: flex-start;
	margin-top: 0.2em;
	cursor: pointer;
}

.tiptap ul[data-type=taskList] li>label input[type=checkbox]{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 1em;
	height: 1em;
	position: relative;
	color: inherit;
	border: 1.5px solid currentColor;
	border-radius: 2px;
	display: grid;
	place-content: center;
	cursor: pointer;
}

.tiptap ul[data-type=taskList] li>label input[type=checkbox]:hover{
	border-width: 1.5px;
}

ul[data-type=taskList] li>label input[type=checkbox]:before {
    content: "";
    width: .6em;
    height: .6em;
    transform: scale(0);
    box-shadow: inset 1em 1em;
    transform-origin: center;
    -webkit-clip-path: polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);
	clip-path: polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);
}

ul[data-type=taskList] li>label input[type=checkbox]:checked:before {
    transform: scale(1);
	color: var(--tile-background);
}

.tiptap ul[data-type="taskList"] li > div {
	margin-top: -1px;
}

li[data-checked="true"] {
	text-decoration: line-through;
}

.tiptap ul[data-type=taskList] li[data-checked="true"]>label input[type=checkbox]:checked{
	background: currentColor;
}

mark{
	padding: 1px 2px;
	margin: 0px -2px;
	border-radius: 2px;
}