#passages:has(> #passage-editor){
	grid-column: 1 / -1;
	grid-row: 2 / -1;
	z-index: 10;
	padding: 0;
	position: relative;
}

#passage-editor{
	position: absolute;
	display: grid;
	grid-template-rows: auto 1fr;
	grid-template-columns: 1fr repeat(3, min-content);
	width: 100%;
	height: 100%;
}

#passage-editor #commonTasks div{
	margin-bottom: 1em;
}

#passage-editor #commonTasks div:hover {
	background: #ccc;
}

#editorToolbar {
	grid-column: 1 / -1;
}


.collapsable>h2{
	cursor: pointer;
}

.collapsable h3 {
	margin: 1em 0 0 0;
	display: inline-block;
	min-width: 6vw;
}

.collapsable{
	--transitionSpeed: 0.3s;
	transition: var(--transitionSpeed);
	width: 30vw;
	width: calc(30vw - 1em);
	padding: 0 1em;
	overflow: auto;
}

.collapsable.collapsed{
	width: 2rem;
	padding: 0;
}

.collapsable.collapsed>*{
	display: none;
}

.collapsable.collapsed > h2:first-of-type {
	font-size: 1em;
	writing-mode: vertical-rl;
	margin: 0;
	transition: var(--transitionSpeed);
	display: block;
}

.diff{
	font-size: 0.7em;
}

.diff p{
	margin: 0;
}

.diff p.addition{
	color: rgb(0, 160, 0);
}

.diff p.substraction {
	color: rgb(160,0, 0);
}
