﻿/* ARABIC AND LATIN GLOSSARY WEBSITE STYLESHEET */
/* GLOSSARY ENTRY */

/* ################ */
/* TYPEFACES & CUTS */
/* ################ */

#content h3.lemma, #content h4.expression {
	display: inline;
	margin-top: 0;
}
p.bsp:before,
p.kolem:before,
p.koent:before,
p.koar:before,
p.kolat:before{
	font-weight: 600;
}
span.ltr, span.zar > span.kozit {
	direction: ltr;
	unicode-bidi:embed;
}
span.en {
	font-style: italic;
}
span.zar {
	direction: rtl;
	unicode-bidi: embed;
}


/* ################################### */
/* TEXTFLOW: SIZES, MARGINS & PADDING */
/* ################################### */

/* TEXTFLOW */

#content * + *, #content h3 + *, #content h4 + * {
	margin-top: 0; /* lobo-owl override for glossary display: only headers and section.bed relevant for vertical spacing */
}
#content header {
	margin: 1.9rem 0 0 0;
}
#content header + .bed {
	margin-top: 1.1rem;
}
#content .bed + .bed {
	margin-top: 1.5rem;
}


/* ### H3-STYLING ### */

/* h3 starts from left margin.
 * implemented with negative margin instead of position to make text flow in the entire available space.
 * position flows text first, moves it afterwards. this results in too short line snext to toc. */
#content header {
	margin-left: -7rem;
}

/* SPECIFIC STYLING */

#toc {
	width: 19rem;
	float: right;
	margin: 1rem -0.5rem 1rem 1rem;
	padding: 0.5rem;
}
#toc ol {
	list-style-type: '- ';
	padding-left: 0.5rem;
}

a.hidelink {
	padding-left: 1rem;
}

/*h4.expression > span.ar, h3.lemma > span.ar {
	padding-right: 0.55em;
}*/
/* ##### pushed to html serialiser ##### */

/* bed */
span.pr {
	position: absolute;
	width: 7rem;
	text-align: right;
	left: 0;
}

/* long version */
ol.lv {
	display: none;
	list-style-type: none;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
}

p.dominant-quote {
	text-indent: -1.5rem;
}
p.zl {
	padding-left: 1.5rem;
}
p.za {
	margin-top: 0 !important;
/*	direction: rtl;
	text-align: right;*/
	/*text-indent: 0;*/
	padding-left: 1.5rem;
}
p.za > .kozit {
	display: block;
}

ol.ha {
	list-style-type: none;
}
ol.ha > li {
	display: inline;
}

/* CONTENT ADDITIONS */

span.gram:before {
	content: " ";
}
span.w:before {
	content: " ‹"
}
span.w:after {
	content: "›"
}
p.bsp > span.zl:before {
	content: " ‒ "
}
span.za:before {
	content: " ";
}
ol.ha:before,
span.qu:before {
	content: " (";
}
ol[data-sum].ha:before {
	content: attr(data-sum) ": (";
}
ol.ha:after,
span.qu:after {
	content: ")";
}
ol.ha > li + li:before {
	content: " / "
}
p.bsp:before {
	content: "Example: ";
}
p.kolem:before{
	content: "Comment (lemma): ";
}
p.koent:before{
	content: "Comment: ";
}
p.koar:before{
	content: "Comment (Ar.): ";
}
p.kolat:before{
	content: "Comment (Lat.): ";
}