/* EuroSL browser, colours follow assets/sass/overwrite.scss */
.esl {
	--esl-olive: #6b7444;
	--esl-red: #a7445e;
	--esl-rule: #dddddd;
	--esl-muted: #707070;
	--esl-soft: #f5f5f5;
	--esl-agg: #f3f0e2;
	max-width: 1400px;
	margin: 20px auto 0;
	padding: 0 30px 50px;
	cursor: auto;
}

.esl button { font: inherit; }

.esl-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.esl-q {
	flex: 1 1 320px;
	font-size: 1.15rem;
	padding: 8px 12px;
	border: 2px solid var(--esl-olive);
	border-radius: 4px;
}
.esl select, .esl-aggtools input {
	padding: 6px 8px;
	border: 1px solid var(--esl-rule);
	border-radius: 4px;
	background: white;
}
.esl-check { margin: 0; white-space: nowrap; }

.esl-tabs { display: flex; gap: 4px; align-items: flex-end; margin-top: 14px; border-bottom: 2px solid var(--esl-olive); flex-wrap: wrap; }
.esl-tab {
	border: 1px solid var(--esl-rule);
	border-bottom: none;
	background: var(--esl-soft);
	padding: 5px 16px;
	border-radius: 4px 4px 0 0;
	cursor: pointer;
}
.esl-tab.active { background: var(--esl-olive); color: white; border-color: var(--esl-olive); }
.esl-status { margin-left: auto; padding: 5px 0; font-size: 0.85rem; color: var(--esl-muted); }
.esl-status.error { color: var(--esl-red); }

.esl-body { display: flex; gap: 30px; align-items: flex-start; margin-top: 16px; }
.esl-side { flex: 1 1 45%; min-width: 0; }
.esl-pane { max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 6px; }
.esl-detail {
	flex: 1 1 55%;
	min-width: 0;
	position: sticky;
	top: 60px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	padding: 4px 18px 18px;
	border-left: 2px solid var(--esl-rule);
}

.esl-list, .esl-children, .esl-syns { list-style: none; margin: 0; padding: 0; }
.esl-children { padding-left: 22px; border-left: 1px dotted var(--esl-rule); margin-left: 9px; }
.esl-item, .esl-list > .esl-node { padding: 4px 6px; border-bottom: 1px solid var(--esl-soft); }
.esl-node { padding: 1px 0; }
.esl .current > .esl-name { background: #f4e3e8; border-radius: 3px; }

.esl-name {
	border: none;
	background: none;
	padding: 0 2px;
	color: var(--esl-red);
	font-style: italic;
	cursor: pointer;
	text-align: left;
}
.esl-name:hover, .esl-name:focus { text-decoration: underline; }
.esl-name.syn { color: var(--esl-muted); }
.esl-name.agg { font-weight: 600; }
strong.esl-name { cursor: default; color: black; }
.esl-author { color: var(--esl-muted); font-size: 0.9em; }

.esl-toggle {
	display: inline-block;
	width: 20px;
	border: none;
	background: none;
	padding: 0;
	color: var(--esl-olive);
	cursor: pointer;
}
.esl-toggle.leaf { cursor: default; }

.esl-badge {
	display: inline-block;
	font-size: 0.72rem;
	line-height: 1.5;
	padding: 0 6px;
	margin-left: 4px;
	border-radius: 8px;
	background: var(--esl-soft);
	color: var(--esl-muted);
	vertical-align: middle;
}
.esl-badge.agg, .esl-badge.count { background: var(--esl-olive); color: white; }
.esl-badge.acc { background: #e3ecd5; color: #3d4a1c; }
.esl-badge.syn { background: #eee; color: #555; }
.esl-badge.warn { background: #f4e3e8; color: var(--esl-red); }
.esl-n { font-size: 0.75rem; color: var(--esl-muted); margin-left: 6px; }
.esl-n.syn { font-style: italic; }
.esl-grp { font-size: 0.75rem; color: var(--esl-muted); margin-left: 6px; }
.esl-sub { font-size: 0.85rem; padding-left: 26px; color: var(--esl-muted); }

.esl-count, .esl-hint { color: var(--esl-muted); font-size: 0.9rem; margin: 4px 0 8px; }
.esl-hint.small { font-size: 0.8rem; }
.esl-aggtools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.esl-aggtools input { flex: 1 1 160px; }
.esl-btn {
	border: 1px solid var(--esl-olive);
	background: white;
	color: var(--esl-olive);
	border-radius: 4px;
	padding: 2px 10px;
	font-size: 0.85rem;
	cursor: pointer;
}
.esl-btn:hover { background: var(--esl-olive); color: white; }

.esl-crumbs { font-size: 0.85rem; margin: 6px 0; line-height: 1.8; }
.esl-crumbs .esl-name { font-style: normal; }
.esl-crumbs .sep { color: var(--esl-rule); margin: 0 2px; }
.esl-title { font-style: italic; margin: 6px 0 4px; line-height: 1.3; }
.esl-title.syn { color: var(--esl-muted); }
.esl-title .esl-author { font-style: normal; font-size: 0.7em; }
.esl-badges .esl-badge { margin: 0 4px 0 0; font-size: 0.8rem; }
.esl-accepted { margin: 10px 0; padding: 6px 10px; background: var(--esl-soft); border-radius: 4px; }
.esl-props { font-size: 0.85rem; margin: 10px 0; }
.esl-props th { font-weight: 500; color: var(--esl-muted); padding: 1px 12px 1px 0; vertical-align: top; white-space: nowrap; }

.esl-box { margin-top: 16px; padding: 8px 12px; border: 1px solid var(--esl-rule); border-radius: 4px; }
.esl-box.agg { background: var(--esl-agg); border-color: #d9d2ad; }
.esl-box h4 { margin: 0 0 6px; font-size: 1rem; }
.esl-box h4 .esl-name { font-size: 1rem; }
.esl-siblings { margin: 0; line-height: 1.9; }
.esl-siblings > * { margin-right: 10px; }
.esl-subtree > .esl-children { border-left: none; margin-left: 0; padding-left: 0; }

@media (max-width: 900px) {
	.esl { padding: 0 10px 20px; }
	.esl-body { flex-direction: column; }
	.esl-side, .esl-detail { flex-basis: auto; width: 100%; }
	.esl-pane { max-height: 50vh; }
	.esl-detail { position: static; max-height: none; border-left: none; border-top: 2px solid var(--esl-rule); padding: 10px 0; }
}
