@import url("keyword_popup.css");

/* # CSS properties */

:root {
	--highlight-color: transparent;
	/* Always show TOC */
	--toc-on-small-screens: var(--toc-shown);
}

/* # Layout */

/* empty */
.popup, .breadcrumb-wrapper {
	display: none;
}

/* ## Right sidebar */
.sidebar-right {
	display: grid;
	grid-template-columns: [margin-left] 1fr [sidebar] var(--sidebar-right-width) [last];
	grid-template-rows: auto auto auto 1fr;
	row-gap: 15px;
	margin-top: var(--column-pad-top);
}

.sidebar-right > * {
	grid-column: sidebar;
}

.metadata, .box-right-content-wrapper {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
}

#metadata-keywords {
	display: flex;
	flex-flow: row wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	column-gap: 3px;
}

.sidebar-right .buttons {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.ct, .re {
	display: flex;
	flex-direction: row;
	gap: 5px;

	border: solid 1px var(--border-color);
	border-radius: 5px;
	padding: 15px;

	font-family: var(--body-font), sans-serif;
	font-size: 1.2em;
	text-decoration: none;

	cursor: pointer;

	color: var(--bg-color);
	background-color: var(--sadilar-navy);
}

:is(.ct, .re):hover {
	background-color: var(--sadilar-lavender);
	text-decoration: none;
}

.ct .fas {
	margin-top: 2px;
	font-size: 1.2em;
}

.re .fas {
	font-size: 1.5em;
	color: var(--error-color);
}

.metadata {
	border: solid 1px grey;
	padding: 15px;
}

#metadata-title {
	font-weight: bold;
	font-size: 1.2em;
}

.metadata .box-right-content.label {
	font-weight: bold;
	margin-top: 15px;
}

.metadata .box-right-content.label:first-child {
	margin-top: 5px;
}

@media (max-width: 1200px) { /* Break 3-col layout */
	.sidebar-right {
		grid-template-columns: [margin-left] 1fr [sidebar] minmax(auto, var(--static-content-wrapper-width)) [margin-right] 1fr [last];
	}

	.sidebar-right .buttons {
		flex-direction: row;
	}

	.sidebar-right .buttons > * {
		flex: 1;
	}

	.metadata {
		max-width: var(--static-content-wrapper-width); /* Looks better visually if they match in size */
		width: 100%;
	}
}

/* QUICKINFO & READMORE */

#quickinfo {
	display: flex;
	flex-direction: column;
}

#quickinfo > p {
	margin-top: 0;
}

/* # Content styles */

.topic-toc {
	margin-bottom: 15px;
}

.ilex_wg, .lexterm, .affix, .wg, .ilex_wg_w {
    font-style: italic;
}

/* Force to stay on one line - useful for certain things */
.nowrap {
	white-space: nowrap;
}

/* ## List spacing */

/* Some lists are big and need spacing between their items */
ul.spaced-list > li, ol.spaced-list > li {
    margin-block-end: 1em;
}

/* Elements that may spread out into free space */
.page-content :is(.table-container, figure) {
	grid-column: margin-left / last; /* These are defined in general-2024.css */
	justify-self: center;
	margin-top: 10px;
	margin-bottom: 10px;
}

.table-container, .ilexample-container {
	display: flex;
	flex-direction: column;
	align-items: safe center;
	overflow-x: auto;
	width: 100%;
	padding: 3px;
}

.grouped-tables-container {
	grid-column: margin-left / last;
}

.grouped-tables {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	max-width: max-content;
	margin-left: auto;
	margin-right: auto;
}

.grouped-tables > .table-container > table {
	width: 100%;
}

.table-container table, .ilexample-container .ilexample {
	outline: 1px solid var(--border-color-stark);
}

.ilexample {
	padding: 5px; /* Bit of clearance between the outline and the content */
	margin-top: 10px;
	margin-bottom: 10px;
	min-width: 100%; /* Take up the entire middle column */
}

table li {
	margin-left: 1em; /* Give some clearance between the list marker and edge of table cell */
}

table :is(td, th) {
	min-width: 2em;
}

.fancybox, .fancybox img {
	width: 100%;
}

.fancybox {
	cursor: pointer;
}

caption, figcaption, .ilexample_index {
	text-decoration: underline;
	font-weight: bold;
	text-align: center;
	max-width: 30rem; /* less than --main-content-width */
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
}

figure {
	margin-inline: 10px; /* use more space on small screen. Little (no?) effect otherwise */
}


.topic :is(h1, h2, h3) {
	margin-top: 0.5em;
}

.sectiontitlecontainer h2 {
	margin-block-end: 0;
}

.ilex_ma, .ilex_gl {
	font-family: monospace;
}

/* An arrow written out as < or >. Corresponds to <arrow-to/> and <arrow-from/> in DITA */
.arrow {
	white-space: pre; /* Has two spaces before and after, as per editorial comments */
}

cite {
	font-style: italic; /* Backup in case some UAs don't italicize <cite>s */
}

ol.lower-lettered {
	counter-reset: lettered-list;
}

ol.lower-lettered > li {
	counter-increment: lettered-list;
}

ol.lower-lettered > li::before {
	content: none; /* Overrides a style for general ol defined later */
}

ol.lower-lettered > li::marker {
	content: "(" counter(lettered-list, lower-alpha) ") ";
}

/* SECTIE & SECTIEKOP */

.sectionindex {
	margin-left: 0;
	margin-right: 3px;
}

/* BIBLIOGRAFIE en REFERENCES */

.searchthisref {
	margin-left: 5px;
	height: 10px;
	cursor: pointer;
}

.getrefpdf {
	margin-left: 5px;
}

/* LOSSE ELEMENTEN */

/* KLEUR */

/* lingterm in een sectiontitel wordt dik */

.sectiontitle > .lingterm {
	font-weight: bold;
}

/* OVERIG */

.italic {
	font-style: italic;
}

.lingterm {
	font-weight: normal; /* FL mei 2015 */
}

.lexterm .word {
	font-style: italic;
}

.lexterm .translation {
	margin-left: 5px;
}

.feature {
	font-variant: small-caps;
}

.suffix,
.affix {
	font-style: italic;
}

.nobreakhyphen {
	margin: 0;
	padding: 0;
}

.bibref {
	cursor: pointer;
	border-bottom: 1px dashed #bbb;
}

/* FL 01-10-2019: 'content' vervangen door 'margin': lijkt betere uitlijning op te leveren
/*
.bibref + .bibref:before,
.lingterm + .bibref:before,
a + .bibref:before,
.lexample + .bibref:before,
.lingterm + .lexample:before,
.emphasis + .lexample:before {
	content: "\00a0 ";
}
*/

.bibref:hover {
	border-bottom: 1px dashed black;
}

/* TABELLEN */

.caption {
	position: relative;
	float: left;
	margin-top: 20px;
	font-style: italic;
	width: 100%;
}

.caption > .zelfnoem {
	font-style: normal;
}

.headingtablerowcolumns {
    font-weight: bold;
}


table.simpletable1 tr th {
	font-weight: bold;
	background-color: #a7d7f9; /* FL mei 2015 */
	border: 1px solid #a7d7f9; /* FL mei 2015 */
}

.simpletable1 tr:nth-of-type(odd) { /* zebrastrepen voor tabel */
	background-color: #F0F8FF; /* FL mei 2015 */
}

.simpletable1 tr th {
	text-align: left;
	padding: 10px 15px; /* see extremeTable override */
}

.simpletable1 tr td {
	text-align: left;
	border: 1px solid #F0F8FF; /* FL mei 2015 */
	max-width: 30rem; /* limit width of single cell */
	padding: 10px 15px; /* see extremeTable override */
}

.simpletable1 tr td ul {
	padding-left: 0;
	margin: 0;
}


.extra .simpletable1 tr:nth-of-type(odd) { /* zebrastrepen voor tabel in extra */
  background-color: #F0F8FF; /* FL mei 2015 */
}

table tr td[class=rowcolumnheader],
table tr td .rowcolumnheader {
	font-variant: small-caps;
	font-weight: bold;
}

table tr td[class=columnsubheader] {
	font-variant: small-caps;
}

table tr td[class=rowheader] {
	font-variant: small-caps;
}

.smallTable {
	margin-left: 20px;
}

.simpletable1 {
	border-spacing:0;
	border-collapse: collapse;
}

.simpletable1.extremeTable td,
.simpletable1.extremeTable th {
	padding: 5px 6px;
}

/* With reduced padding, put a subtle border to separate them visually: */
.simpletable1.extremeTable th {
	border-left: 1px solid white;
	border-right: 1px solid white;
}

.simpletable1.extremeTable th:first-child {
	border-left: 0;
}

.simpletable1.extremeTable th:last-child {
	border-right: 0;
}

.simpletable1 td:first-child {
	border-left: 0;
}

.simpletable1 td:last-child {
	border-right: 0;
}

.simpletable1 tr:last-child td {
	border-bottom: 0;
}

.simpletable1 td:last-child {
	border-right: 0;
}

.exampletable {
    font-style: italic;
    display: inline;
}


td {
	vertical-align: top;
}

.smallTable td {
	padding: 2px;
}

/* UL */

/* OL */

ol {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.note ol, .note ol > li{		/* bij Daan */
	width: inherit;
}


ol li p{						/* bij Siebren en Gerhard */
	position: relative;
	/*float: left;*/
	margin-top: 0;
}

/* dit biedt subnummering voor geneste ol-elementen, zoals bij onset.html */

ol {
	counter-reset: level1;
	list-style: none;
}

ol > li:before {
	content: counter(level1) ". ";
	counter-increment: level1;
}

ol > li > ol {
	list-style-type: none;
	counter-reset: level2;
}
ol > li > ol > li:before {
	content: counter(level1) "." counter(level2) " ";
	counter-increment: level2;
}

.topic li{					/* voor rechtshangende bullet bij eerste li in Chrome */
	clear: left;
}

.topic li .header{
	font-weight: bold;
}


/* VOORBEELDEN */

/* LEXAMPLE */

.lexample.spaced {
    display: inline-flex;
    flex-flow: row wrap;
    column-gap: 10px;
    row-gap: 0;
}

.lexample.spaced.spaced-5px {
    column-gap: 5px;
}

.lexample > .wordgroup {
	font-style: italic;
}

a  + .lexample{
	margin-left: 1px;
}


/* lexample mini table */

table.lexampleMiniTable {
    border-collapse: separate;
    border-spacing: 25px 10px !important;
    margin: -10px -30px;
}

/* markering voor het tonen van de popup */

.lexample > .morphologicalAnalysis {
	font-style: italic;
}

.lterm {
	cursor: pointer;
}

.lterm:hover {
	color: #000;
}

#lingtermcontainer > .metadatalabel,
#author > .metadatalabel {
	cursor: pointer;
}

#lingtermcontainer > .metadatalabel:hover,
#author > .metadatalabel:hover {
	color: #FB9005;
}

.isHighlightedLingterm {
	border-bottom: 2px solid #FB9005;
}

/* EXTRA */

div.readmore > ul {
	text-align: justify;
}

.generalization{ /* FL mei 2015, in geheel toegevoegd */
	margin-left: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

/* # TOC for topic */

.topic-toc {
	align-self: start;
}

.topic-toc ul {
	border: 1px solid grey;
	padding: 10px;
	margin: 0;

	display: flex;
	flex-direction: column;
	gap: 5px;
}

.topic-toc ul:empty{
	display: none;
}

.topic-toc ul li{
    margin-left: 20px;
    width: auto;
}

.topic-toc ul li .lingterm {
	font-weight: bold;
	font-variant: none;
}

.sectioncontent > ul {
	margin-bottom: 30px;
}

.soundObj {
	width: 20px;
	height: 20px;
}
.speakerImg {
	width: 15px;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

td[class=enlargenotice] {
	text-align: right;
}

.lquote, .quote {
	background-color: var(--highlight-color);
}

/* Firefox (maybe others) add quotes in the :before/:after pseudo-elements. We add our own open and close quotes in the
HTML directly to allow them to be copied. */
q:after, q:before {
	content: none;
}

.sub {
    vertical-align: sub;
    font-size: smaller;
}

.sup {
    vertical-align: super;
    font-size: smaller;
}

.cite {
	display: inline;
	font-style: italic;
}

.disclaimer_af {
    background-color: #fb9005;
    border: 1px solid #fb9005;
    border-radius: 0;
    color: white;
	margin-top: -4px;
}

.disclaimer_text {
    float: left;
    margin: 5px;
    position: relative;
}

.phonologicalAnalysis {
	white-space: nowrap;
}
