body {
	font-size: 14px !important;
	line-height: 1.4em !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: #3d3d3d;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
}

a:hover {
	cursor: pointer !important;
}

a[data-toggle]:hover {
	text-decoration: none !important;
}

a[data-toggle]:active {
	text-decoration: none !important;
}

a[data-toggle]:visited {
	text-decoration: none !important;
}

a[data-toggle]:link {
	text-decoration: none !important;
}

p {
	color: #3d3d3d;
	font-size: 14px;
	line-height: 1.4em;
	margin: 0 0 1em;
	font-family: 'Open Sans', sans-serif;
	/* 	text-align: justify; */
}

.language-text-left {
	margin-right: 0px !important;
	color: #c0c0c0 !important;
}

h2 {
	color: #3d3d3d;
	/* 	margin-bottom: 20px !important; */
}

td {
	text-align: justify;
}

.strict-periods-div {
	padding-left: 0px;
}

.select-field {
	width: 100%
}

.search-add-remove {
	width: 20px;
}

.language-text {
	color: #c0c0c0 !important;
}

.language-link-right {
	padding-left: 0px !important;
	padding-right: 0px !important;
}

.language-link-span {
	position: relative;
	display: block;
	padding-top: 4px !important;
	padding-bottom: 0 !important;
	padding-left: 15px;
	padding-right: 30px;
	height: 28px;
}

.language-link-left {
	position: relative;
	display: inline !important;
	padding: 0px !important;
	color: #3d3d3d !important;
}

.language-text-right {
	margin-left: 0px !important;
	color: #4A4A4A !important;
}

.navbar-nav>li>a, .navbar-brand {
	padding-top: 4px !important;
	padding-bottom: 0 !important;
	height: 28px;
}

.navbar-text {
	margin-top: 7px !important;
	margin-bottom: 0 !important;
	height: 28px;
}

.navbar {
	min-height: 32px !important;
	margin-bottom: 5px;
	box-shadow: 0px 8px 6px -2px rgba(0, 0, 0, .05), inset 0 -1px 0
		rgba(0, 0, 0, .1);
	border-radius: 0px !important;
}

.navbar-custom {
	border: 0px;
	background-color: white;
	margin-bottom: 30px !important;
	/* 	margin-top: 10px; */
}

.map-item {
	margin-bottom: 15px;
}

/* div.map-item > * { */
/* 	margin-right:10px; */
/* } */

/* .list-remove { */
/* 	display: inline; */
/* } */
.smooth-panel {
	background-color: #FAFAFA;
	background-image: linear-gradient(to bottom, #FFFFFF, #F2F2F2);
	background-repeat: repeat-x;
	border: 1px solid #D4D4D4;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
	margin-bottom: 14px;
	padding: 9px 14px;
	text-align: justify;
}

.light-panel {
	background-color: #FDFDFD;
	border: 1px solid #EFEFEE;
	border-radius: 4px;
	margin-bottom: 14px;
	padding: 9px 14px;
	text-align: justify;
}

.transparent-panel {
	border: none;
	margin-bottom: 14px;
	text-align: justify;
}

.padding-small {
	padding: 3px;
}

.padding-bottom {
	padding-bottom: 8px;
}

.padding-bottom-large {
	padding-bottom: 20px;
}

.padding-top {
	padding-top: 10px;
}

.padding-top-small {
	padding-top: 5px;
}

.padding-top-large {
	padding-top: 20px;
}

.margin-bottom {
	margin-bottom: 5px;
}

.margin-bottom-medium {
	margin-bottom: 15px !important;
}

.margin-top-medium {
	margin-top: 15px !important;
}

.margin-left {
	margin-left: 5px !important;
}

.margin-left-big {
	margin-left: 15px !important;
}

.margin-bottom-big {
	margin-bottom: 20px;
}

.margin-right {
	margin-right: 5px !important;
}

.no-margin {
	margin: 0;
}

.no-top-margin {
	margin-top: 0;
}

.no-padding {
	padding: 0;
}

.no-padding-left {
	padding-left: 0px !important;
}

.no-padding-right {
	padding-right: 0px !important;
}

.map-remove, .map-add, .list-remove, .list-add {
	display: inline;
	font-size: 24px;
}

.validation-error {
	border-color: #B94A48;
	color: #B94A48;
}

input.validation-error, select.validation-error, textarea.validation-error
	{
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.datetime {
	display: inline-block;
	font-size: 11.844px;
	line-height: 14px;
	vertical-align: baseline;
	white-space: nowrap;
}

.nowrap-small-label {
	display: inline-block;
	font-size: 11.844px;
	line-height: 14px;
	vertical-align: baseline;
	white-space: nowrap;
}

.inlined-span {
	display: inline-block;
	line-height: 14px;
	vertical-align: baseline;
	white-space: nowrap;
}

.content-box {
	margin-bottom: 20px;
}

.content-box .title {
	background-color: #999999;
	border-radius: 3px;
	color: #FFFFFF;
	display: inline-block;
	font-weight: bold;
	line-height: 14px;
	padding: 2px 4px;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	vertical-align: baseline;
	white-space: nowrap;
}

.content-box .content {
	background-color: #F7F7F9;
	border: 1px solid #E1E1E8;
	border-radius: 4px;
	margin-bottom: 5px;
	margin-top: 4px;
	padding: 5px;
}

.content-box.failure {
	color: #B94A48;
}

.content-box.failure .content {
	background-color: #F2DEDE;
	border-color: #EED3D7;
	color: #B94A48;
}

.content-box.failure .title {
	background-color: #B94A48;
}

.content-box pre {
	max-height: 160px;
}

.table td.header, .table th.header {
	font-weight: bold;
	text-align: right;
}

.form-table td.field-label, .form-table th.field-label {
	text-align: right;
}

.form-table th, .form-table td {
	padding: 4px;
}

.table td.left, .table th.left {
	text-align: left;
}

.table td.right, .table th.right {
	text-align: right;
}

.table td.center, .table th.center {
	text-align: center;
}

.text_center {
	text-align: center;
}

.table td.bold, .table th.bold {
	font-weight: bold;
}

.no-margin {
	margin: 0;
}

.no-border th, .no-border td {
	border: none;
}

.fieldset th, .fieldset td {
	border-top: 0;
}

.progress-legent {
	border-radius: 4px;
	display: inline-block;
	height: 18px;
	margin-right: 6px;
	width: 18px;
}

.progress-legent.inserts {
	background-color: #4BB1CF;
	background-image: linear-gradient(to bottom, #5BC0DE, #339BB9);
	background-repeat: repeat-x;
}

.progress-legent.deletes {
	background-color: #5EB95E;
	background-image: linear-gradient(to bottom, #62C462, #57A957);
	background-repeat: repeat-x;
}

.ui-timepicker-div .ui-widget-header {
	margin-bottom: 8px;
}

.ui-timepicker-div dl {
	text-align: left;
}

.ui-timepicker-div dl dt {
	float: left;
	clear: left;
	padding: 0 0 0 5px;
}

.ui-timepicker-div dl dd {
	margin: 0 10px 10px 45%;
}

.ui-timepicker-div td {
	font-size: 90%;
}

.ui-tpicker-grid-label {
	background: none;
	border: none;
	margin: 0;
	padding: 0;
}

.ui-timepicker-rtl {
	direction: rtl;
}

.ui-timepicker-rtl dl {
	text-align: right;
	padding: 0 5px 0 0;
}

.ui-timepicker-rtl dl dt {
	float: right;
	clear: right;
}

.ui-timepicker-rtl dl dd {
	margin: 0 45% 10px 10px;
}

.controls img {
	padding-left: 10px;
	padding-right: 10px;
}

.controls span {
	padding-left: 10px;
	padding-right: 10px;
}

.first-in-row {
	margin-left: 0 !important;
}

.thumbnail img.results {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 150px !important;;
}

.thematic-thumbnail  a>img, .thematic-thumbnail>img {
	margin-right: auto;
	margin-left: auto;
}

.thematic-thumbnail-smaller  a>img, .thematic-thumbnail-smaller>img {
	margin-right: auto;
	margin-left: auto;
}

.thematicCollection-thumbnail-div {
	height: 230px !important;
}

.collection-thumbnail-div {
	min-height: 200px !important;
}

.collection-thumbnail-div-smaller {
	min-height: 150px !important;
}

.thematic-thumbnail  img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 230px !important;
}

.thematic-thumbnail-smaller  img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 280px !important;
}

.thematic-thumbnail {
	display: block;
	margin-bottom: 20px;
	line-height: 1.42857143;
	border: 1px solid #ddd;
	border-radius: 4px;
	-webkit-transition: border .2s ease-in-out;
	-o-transition: border .2s ease-in-out;
	transition: border .2s ease-in-out;
}

.thematic-thumbnail-smaller {
	display: block;
	margin-bottom: 20px;
	line-height: 1.42857143;
	border: 1px solid #ddd;
	border-radius: 4px;
	-webkit-transition: border .2s ease-in-out;
	-o-transition: border .2s ease-in-out;
	transition: border .2s ease-in-out;
}

.thematic-thumbnail>h6 {
	max-height: 33px;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

.thematic-thumbnail-smaller>h6 {
	max-height: 33px;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

.thematic-thumbnail>p {
	max-height: 63px;
	font-size: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	text-align: left;
}

.thematic-thumbnail-smaller>p {
	max-height: 63px;
	font-size: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	text-align: left;
}

.overflow-when-no-wrap {
	text-overflow: ellipsis !important;
	overflow: hidden;
}

textarea {
	resize: vertical;
}

q:before, q:after, edmfieldlabel:before, edmfieldlabel:after {
	content: "";
}

q:before, q:after, edmfieldlabel:before, edmfieldlabel:after {
	content: "";
}

edmfieldlabel.pull-right {
	border-left: 0 none;
	border-right: 5px solid #EEEEEE;
	float: right;
	padding-left: 0;
	padding-right: 15px;
}

.pull-right {
	float: right;
}

edmfieldlabel {
	border-left: 5px solid #EEEEEE;
	margin: 0 0 20px;
	padding: 0 0 0 15px;
}

edmfieldlabel.pull-right p, edmfieldlabel.pull-right small {
	text-align: right;
}

edmfieldlabel p {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.25;
	margin-bottom: 0;
}

p {
	margin: 0 0 10px;
}

edmfieldlabel.pull-right p, edmfieldlabel.pull-right small {
	text-align: right;
}

edmfieldlabel small {
	color: #999999;
	display: block;
	line-height: 20px;
}

small {
	font-size: 85%;
}

.add:hover, .add:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

button.add {
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: 0;
	-webkit-appearance: none;
}

.add {
	font-size: 26px;
	font-weight: bold;
	line-height: 20px;
	filter: alpha(opacity = 20);
	color: #00870a !important;
	text-shadow: 0 1px 0 grey !important;
	opacity: .9;
}

.close {
	font-size: 26px !important;
	color: #00870a !important;
	text-shadow: 0 1px 0 grey !important;
	opacity: .9 !important;
	right: 0px !important;
}

.remove {
	font-size: 30px;
	font-weight: bold;
	color: #00870a !important;
}

button.remove {
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: 0;
	-webkit-appearance: none;
}

.login {
	float: right;
}

#search-div {
	background-color: #e1e1e1 !important;
	margin-bottom: 15px;
}

#search-div a.clear {
	color: #006106;
}

.header-images {
	margin-bottom: 15px;
}

/* .btn { */
/* 	-webkit-border-radius: 15px; */
/* 	-moz-border-radius: 15px; */
/* 	border-radius: 15px; */
/* 	padding-left: 10px !important; */
/* 	padding-right: 10px !important; */
/* } */
.form-search .input-append .search-query {
	-webkit-border-radius: 15px !important;
	-moz-border-radius: 15p !important x;
	border-radius: 15px !important;
}

/* button.btn, input[type="submit"].btn { */
/* 	background-color: #00870a !important; */
/* 	background-image: none !important; */
/* } */

/* a.clear { */
/* 	background-color: #a2a0a0 !important; */
/* 	background-image: none !important; */
/* 	color: #fff !important; */
/* } */
.btn-success {
	-moz-border-radius: 5px;
	border-radius: 5px;
}

a.clear {
	color: #00870a;
	height: 28px;
	padding-top: 3px;
}

button.search {
	color: #fff;
	height: 28px;
	padding-top: 3px;
	background-color: #00870a;
	border-color: #005907;
}

a.search:focus {
	color: #fff;
	background-color: #399941;
	border-color: #2c7431;
}

a.help-button {
	color: #00870a;
	height: 28px;
	padding-top: 3px;
}

.search-btn {
	height: 28px;
	padding-top: 3px;
}

button.search:hover {
	color: #fff;
	background-color: #005907;
}

.simple-search-btn {
	height: 32px !important;
	padding-top: 4px !important;
}

a.help-button i {
	width: 20px;
}

.rdf_view {
	color: #005C06;
	background-color: #f5f5f5 !important;
	border: none;
	-moz-border-radius: 15px;
	border-radius: 15px;
}

span.search-label {
	min-height: 26px !important;
	margin-top: 1px !important;
	background-color: #f5f5f5;
	border-radius: 5px 5px 5px 5px !important;
}

.rdf_view:hover {
	color: #3c9d43;
	background-color: #d6d8da !important;
}

.search-filter {
	color: #3d3d3d;
	border-left: 4px solid #00870a;
	padding-left: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	font-weight: normal !important;
	margin-bottom: 15px;
}

.search-facets .accordion-group {
	border: none;
	border-bottom: 2px solid #3d3d3d;
	border-radius: 0px !important;
}

.search-facets .accordion {
	margin-bottom: 5px !important;
}

.search-facets .accordion-inner {
	border-top: 2px solid #00870a;
	max-height: 390px;
	overflow-y: auto;
	overflow-x: auto;
}

.search-facets .accordion-toggle {
	color: #3d3d3d !important;
	font-weight: bold;
}

.accordion-inner .checkbox, .accordion-inner .radio {
	position: relative;
	display: block;
	margin-top: 3px;
	margin-bottom: 3px;
}

.pagination>li>a, .pagination>li>span {
	position: relative;
	float: left;
	padding: 6px 12px;
	margin-left: -1px;
	line-height: 1.42857143;
	color: #00870a !important;
	text-decoration: none;
	background-color: #fff;
	border-right: 1px solid #ddd !important;
	border-left: 1px solid #ddd !important;
	border-top: none !important;
	border-bottom: none !important;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover,
	.pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover
	{
	z-index: 3;
	color: #3d3d3d !important;
	cursor: default;
	background-color: white !important;
	border-color: white !important;
	border-right: 1px solid #ddd !important;
	border-left: 1px solid #ddd !important;
	border-top: none !important;
	border-bottom: none !important;
}

.thumbnail dd {
	border-bottom: 1px solid #9f9fa2;
}

.thumbnail h6 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thematic-thumbnail h6 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thematic-thumbnail-smaller h6 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thematic-thumbnail h5 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thematic-thumbnail-smaller h5 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thumbnail .item_view {
	color: #3d3d3d !important;
	background-image: none !important;
	background-color: #f5f5f5 !important;
	border: none !important;
}

.thematic-thumbnail .item_view {
	color: #3d3d3d !important;
	background-image: none !important;
	background-color: #f5f5f5 !important;
	border: none !important;
}

.thematic-thumbnail-smaller .item_view {
	color: #3d3d3d !important;
	background-image: none !important;
	background-color: #f5f5f5 !important;
	border: none !important;
}

/* .page-header { */
/* 	color: #3d3d3d; */
/* 	border-left: 4px solid #2cbc37; */
/* 	padding-left: 10px; */
/* 	padding-top: 10px; */
/* 	padding-bottom: 0 !important; */
/* 	margin: 0 !important; */
/* 	font-weight: normal !important; */
/* 	border-bottom: 0; */
/* } */
table.no-border td, table.no-border th {
	border-bottom: none;
}

table.fieldset td, table.fieldset th {
	border-bottom: 1px solid #00870a;
	border-top: none !important;
}

div.fieldset {
	color: #3d3d3d;
}

.control-label {
	color: #3d3d3d !important;
}

div.fieldset a {
	color: #00870a;
}

hr.fieldset {
	margin-top: 1px;
	margin-bottom: 1px;
	border: 0;
	border-top: 1px solid #00870a;
	padding-bottom: 10px;
	margin-left: -15px;
	margin-right: -15px;
}

hr.items {
	border-top: 1px solid #00870a;
}

hr.collections {
	margin-top: 1px;
	margin-bottom: 1px;
	border: 0;
	border-top: 1px solid #00870a;
}

hr.institutions {
	margin-top: 1px;
	margin-bottom: 1px;
	border: 0;
	border-top: 1px solid #00870a;
	padding-bottom: 13px;
}

hr.fieldset-semantics {
	margin-top: 1px;
	margin-bottom: 1px;
	border: 0;
	border-top: 1px solid #B6008D;
	padding-bottom: 10px;
}

hr.fieldset-geonames {
	margin-top: 7px;
	margin-bottom: 0px;
	border: 0;
	border-top: 1px solid #c2c3c5;
}

.footer {
	background-color: #222021 !important;
	/* 	margin-top: 50px; */
	/* 	padding: px 0 0 0; */
}

.before-footer {
	margin-top: 70px;
}

.text_footer {
	color: #fff;
}

.footer  a {
	color: #41ad49;
}

.footer .green_text {
	color: #41ad49;
}

.green_for_icons {
	color: #41ad49;
}

.footer img {
	padding: 4px;
	margin-bottom: 0px !important;
}

.info_header, .terms_header {
	color: #3d3d3d;
	padding-left: 10px;
	padding-top: 10px;
	padding-bottom: 0 !important;
	margin: 0 !important;
	font-weight: normal !important;
	border-bottom: 0;
}

.media h3 {
	font-size: 22px;
}

.terms_text h2 {
	color: #3d3d3d ! important;
}

.terms_text a {
	color: #00870a;
}

.terms_header {
	border-left: 4px solid #00870a;
}

.info_header h4 {
	float: left;
	position: relative;
	top: 15px;
	margin-left: 5px;
}

select {
	background-size: 24px 20px;
	background-position: right center !important; . border-radius (2px);
	/* border: 1px solid #fff; */ . box-shadow;
	color: #888;
	outline: none;
	display: inline-block;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	line-height: 20px;
}

/* .btn { */
/* 	text-shadow: none !important; */
/* } */

/*  .wordcloud { */
/*         margin: 0px; */
/*         width: 550px; */
/*         height: 280px; */
/*         border: none; */
/*         position: relative; */
/* top: -40px; */

/*       } */
.wordcloud a:hover {
	color: #2cbc37 !important;
}

.wordcloud span.w10, .wordcloud span.w9, .wordcloud span.w8, .wordcloud span.w7
	{
	text-shadow: 0px 1px 1px #ccc;
}

.wordcloud span.w3, .wordcloud span.w2, .wordcloud span.w1 {
	text-shadow: 0px 1px 1px #fff;
}

.cloud-container h3 {
	color: #3d3d3d;
	font-weight: normal !important;
	padding-left: 10px !important;
	margin-top: 5px;
	margin-bottom: 5px;
}

.cloud-container h3 .gree {
	color: #00870a;
}

.modal-title {
	color: #00870a;
}

.enriched_count {
	color: #B6008D;
}

.validator_count {
	color: #eb038e;
}

@media ( min-width : 1200px) {
	.container {
		width: 1270px;
	}
	.wordcloud {
		margin: auto;
		width: 100%;
		height: 310px;
		border: none;
		position: relative;
		top: 0px;
		vertical-align: top;
		/* 		background-color: #f5f5f5; */
		border-radius: 4px;
		margin-top: 10px;
		/* 		box-shadow: 3px 3px 20px 3px #d1d3d4; */
	}
	.cloud-container {
		position: absolute;
		width: 100%;
		top: 0;
	}
	.map-col {
		padding-right: 0px !important;
	}
	.cloud-col {
		padding-left: 0px !important;
	}
}

@media ( max-width : 1200px) {
	.wordcloud {
		margin: auto;
		width: 100%;
		height: 220px;
		border: none;
		position: relative;
		top: 0px;
		vertical-align: top;
		border-radius: 4px;
	}
	.map-col {
		text-align: center;
	}
}

@media ( max-width : 768px) {
	.select2-selection__rendered {
		font-size: 12px !important;
	}
	.thumbnail {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 10px;
		position: relative;
	}
	.thematic-thumbnail {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 5px;
		position: relative;
	}
	.thematic-thumbnail-smaller {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 5px;
		position: relative;
	}
	.separated-search-field {
		margin-bottom: 5px;
	}
	.search-field-group {
		margin-bottom: 0px;
	}
	.cloud-row {
		text-align: center;
	}
	.random-item-rights {
		margin-bottom: 30px;
	}
	.nav-enrichments li a {
		font-size: 18px !important;
	}
	.gutter-xs-8 .slick-slider .slick-dots {
		bottom: -25px !important;
	}
}

@media ( min-width : 768px) {
	.gutter-xs-8 .slick-slider .slick-dots {
		bottom: -25px !important;
	}
}

/* ===== ΒΑΣΗ: να γίνει σίγουρα το reference container για τα dots ===== */
.gutter-xs-8 .slick-slider {
	position: relative !important;
	overflow: visible !important;
}

.gutter-xs-8 .slick-list {
	overflow: hidden !important;
}

/* ===== ΚΑΘΑΡΙΣΜΑ DOTS (ισχύει για όλα τα breakpoints) ===== */
.gutter-xs-8 .slick-slider .slick-dots {
	position: absolute !important;
	left: 0;
	right: 0;
	text-align: center !important;
	z-index: 30 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gutter-xs-8 .slick-slider .slick-dots li {
	display: inline-block !important;
	list-style: none !important;
	margin: 0 5px !important;
}

/* Μηδενίζουμε ό,τι μαύριζε τα κουμπιά */
.gutter-xs-8 .slick-slider .slick-dots li button {
	width: 20px !important;
	height: 20px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important; /* Ακύρωση παλιού μαύρου bg */
	font-size: 0 !important;
	line-height: 0 !important;
}

/* Το dot ζωγραφίζεται με :before – ρυθμίζουμε ενιαίο μέγεθος & χρώμα */
.gutter-xs-8 .slick-slider .slick-dots li button:before {
	content: '•' !important;
	display: inline-block !important;
	width: 100% !important;
	height: 100% !important;
	font-size: 10px !important; /* ίδιο σε sm/lg */
	line-height: 20px !important;
	color: rgba(0, 0, 0, .4) !important; /* inactive */
	opacity: 1 !important;
}

.gutter-xs-8 .slick-slider .slick-dots li.slick-active button:before {
	color: #000 !important; /* active ξεκάθαρο */
	opacity: 1 !important;
}

/* Κάθετη στοίχιση περιεχομένου μέσα σε κάθε slide (όταν το Slick είναι ενεργό) */
.carousel.slick-initialized .slick-track {
	display: flex;
	align-items: center; /* κεντράρει ΚΑΘΕΤΑ τα slides */
}

.carousel.slick-initialized .slick-slide>div {
	display: flex;
	align-items: center; /* κεντράρει ΚΑΘΕΤΑ το εσωτερικό του slide */
	width: 100%;
}

.carousel.slick-initialized .slick-slide>div>.row {
	width: 100%;
}

/* .edm-entity-result { */
/* 	padding-right: 0px; */
/* } */
.select2-container--open .select2-selection--single {
	border-radius: 0 !important;
}

.select2-container--open .select2-selection--multiple {
	border-radius: 0 !important;
}

@media ( min-width : 768px) {
	.cloud-row {
		display: flex;
		align-items: center;
	}
	.random-item-row {
		display: flex;
		align-items: center;
	}
	.thematic-container {
		padding-left: 0px;
	}
	.nav-enrichments li a {
		font-size: 24px !important;
	}
}

/* .select2-selection--single { */
/* 	border-radius: 15px 15px 15px 15px ; */
/* } */

/* .select2-selection--multiple { */
/* 	border-radius: 15px 15px 15px 15px ; */
/* } */
.thumbnail-footer {
	bottom: 0;
	margin-bottom: 7px;
}

.thematic-footer {
	bottom: 0;
	margin-bottom: 15px;
	font-size: 12px !important;
	padding-right: 20px;
	width: 100%;
}

.entity-view-body {
	max-height: calc(100vh - 180px);
	overflow-y: auto;
}

.thumbnail>dl {
	margin-bottom: 20px;
	overflow-y: auto;
}

.overflow {
	text-overflow: ellipsis !important;
	overflow: hidden;
}

.overflow-2-lines {
	-webkit-line-clamp: 2;
	vertical-align: top;
	-webkit-box-orient: vertical;
	display: -webkit-box;
	line-height: 17px;
	max-height: 34px;
	text-overflow: ellipsis !important;
	overflow: hidden;
}

.overflow-1-line {
	-webkit-line-clamp: 1;
	vertical-align: top;
	-webkit-box-orient: vertical;
	display: -webkit-inline-box;
	text-overflow: ellipsis !important;
	overflow: hidden;
}

.form-control {
	border-radius: 5px 5px 5px 5px !important;
}

@media ( min-width : 992px) {
	.facetspanel.collapse {
		display: block;
	}
	.keyword-div {
		padding-right: 0px !important;
	}
	.left-half-field-div {
		padding-right: 0px !important;
	}
	.right-half-field-div {
		padding-left: 0px !important;
	}
	.left-half-field {
		border-radius: 5px 2px 2px 5px !important;
	}
	.right-half-field-div .select2-selection--single {
		border-radius: 2px 5px 5px 2px !important;
	}
	.left-half-field-div .select2-selection--single {
		border-radius: 5px 2px 2px 5px !important;
	}
	.right-half-field-div .select2-selection--multiple {
		border-radius: 2px 5px 5px 2px !important;
	}
	.left-half-field-div .select2-selection--multiple {
		border-radius: 5px 2px 2px 5px !important;
	}
	.ekt-voc-subtree-panel {
		/* 		padding: 20px; */
		/* 		margin-bottom: 25px; */
		
	}
	.ekt-voc-subtree-entries-panel {
		max-height: 650px;
		overflow-y: auto;
	}
	.ekt-voc-subtree-panel h3 {
		padding-right: 60px;
	}
	.right-column-item-page {
		padding-left: 30px;
	}
	.vertical-align-justify-center-for-very-large {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

@media ( max-width : 768px) {
	.parent-period {
		margin-bottom: 20px;
	}
	.period-group {
		padding-top: 10px;
	}
	h4.group {
		margin-bottom: 110px;
	}
	.record-view-thumbnail {
		border: 0;
		max-height: 300px;
		max-width: 100%
	}
	.sc_map_img {
		border: 0;
		height: auto;
		width: 80%;
	}
	.person-items {
		margin-top: 10px;
		border-left: 0px !important;
	}
	/* 	.slider-row { */
	/* 		height: 330px; */
	/* 	} */
}

@media ( min-width : 768px) {
	.parent-period {
		margin-bottom: 20px;
	}
	.thumbnail {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 10px;
		height: 524px;
		position: relative;
	}
	.thematic-thumbnail {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 10px;
		height: 410px;
		position: relative;
	}
	.thematic-thumbnail-smaller {
		border: none;
		background-color: #f5f5f5;
		color: #3d3d3d;
		font-size: 12px;
		padding: 10px;
		height: 320px;
		position: relative;
	}
	.thumbnail-footer {
		position: absolute;
		bottom: 0;
		margin-bottom: 7px;
	}
	.thematic-footer {
		position: absolute;
		bottom: 0;
		margin-bottom: 7px;
		font-size: 12px !important;
	}
	.modal.modal-wide .modal-dialog {
		width: 80%;
	}
	.entity-view-body {
		max-height: calc(100vh - 300px);
		overflow-y: auto;
	}
	.record-view-thumbnail {
		border: 0;
		height: auto;
		max-width: 100%;
		max-height: 400px;
	}
	.saas-services-logo {
		border: 0;
		height: auto;
		max-width: 160px;
	}
	.thumbnail>dl {
		margin-bottom: 20px;
		max-height: 250px;
		overflow-y: auto;
	}
	.overflow {
		text-overflow: ellipsis !important;
		white-space: nowrap;
		overflow: hidden;
	}
	.timeline-slick-prev:before, .timeline-slick-next:before {
		color: white !important;
		font-size: 40px !important;
		text-shadow: 0 0 3px #000;
	}
	.timeline-slick-prev {
		left: 2px !important;
		z-index: 1000;
		height: 40px !important;
		width: 40px !important;
		font-size: 40px !important;
	}
	.timeline-slick-next {
		right: 2px !important;
		z-index: 1000;
		height: 43px !important;
		width: 40px !important;
		font-size: 40px !important;
	}
	.timeline-slick-prev {
		right: 2px !important;
		z-index: 1000;
		height: 43px !important;
		width: 40px !important;
		font-size: 40px !important;
	}
	.timeline-content {
		overflow-x: hidden;
		overflow-y: hidden;
		padding-left: 0;
	}
	.search-add-remove {
		padding-left: 0px;
		padding-right: 0px;
	}
	.sc_map_img {
		border: 0;
		height: auto;
		width: 100%;
	}
	.vertical-align-justify-center-for-large {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
	/* 	.slider-row { */
	/* 		height: 430px; */
	/* 	} */
}

.row.vertical-align {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.nav-entity {
	color: #00870a;
}

.cloud-father {
	position: relative;
}

#randomItem, #randomItem a {
	color: #3d3d3d !important;
}

#randomItem a:hover {
	color: #00870a !important;
	text-decoration: none !important;
}

#randomItem {
	/* background-color: #e6e7e8; */
	/* width: 100%; */
	/* padding: 20px; */
	height: auto;
	/* 	min-height: 200px; */
	overflow: visible;
}

.section h4 {
	border-bottom: 2px solid #d1d3d4;
	padding: 10px;
	font-weight: normal !important;
	color: #00870a !important;
	font-size: 24px !important;
	padding-left: 0px;
	margin-bottom: 20px;
	margin-top: 45px;
}

.section h2 {
	font-weight: normal !important;
	font-size: 20px !important;
	margin-bottom: 0px;
	margin-top: 0px;
	padding: 0px;
}

.section small {
	font-size: 16px !important;
	color: #595959 !important;
}

#randomItem .random_title {
	font-size: 18px;
	padding-bottom: 8px;
	font-weight: bold;
}

#randomItem .random_creator {
	font-size: 16px;
	padding-bottom: 12px;
	font-style: italic;
}

#randomItem .thumbnail {
	padding: 15px;
	height: 140px;
	background-color: #fff;
	padding-top: 60px;
}

/* .vertical-center { */
/*   min-height: 100%;  Fallback for browsers do NOT support vh unit */
/*   min-height: 100vh; These two lines are counted as one :-)       */

/*   display: flex; */
/*   align-items: center; */
/* } */
.select2-container-multi {
	display: block;
}

.accordion-heading .accordion-toggle {
	display: inline-block;
	padding-top: 8px;
	padding-right: 2px;
	padding-bottom: 8px;
	padding-left: 12px;
}

.accordion-inner {
	/* 	padding: 9px 15px; */
	border-top: 1px solid #e5e5e5;
}

.header-logo {
	white-space: nowrap;
	padding-top: 10px;
	padding-bottom: 10px;
}

img.header-logo-logo {
	border: 0;
	height: auto;
	max-width: 100%;
	max-height: 100px;
}

img.header-logo-logo-small {
	border: 0;
	height: 47px;
	max-width: 100%;
}

img.header-europeana-stamp {
	height: 40px;
	margin-right: 30px;
}

img.header-europeana-stamp-sm {
	height: 30px;
	margin-bottom: 10px;
}

/* .edm-entity-result { */
/* 	padding-right: 0px; */
/* } */
img.header-ekt-logo {
	max-height: 50px;
}

img.header-ekt-logo-small {
	max-width: 100%;
}

img.header-europeana-stamp-small {
	height: 47px;
	margin-top: 6px;
	margin-bottom: 6px;
}

.header-logo-saas {
	padding-left: 0px
}

.header-logo-saas img {
	border: 0;
	max-width: 100%
}

.masthead a {
	color: #00870a;
}

.enrichment-container a {
	color: #B6008D;
}

.validator-container a {
	color: #ec008c !important;
}


.info_text h3, a {
	color: #00870a;
}

p a {
	font-weight: bold;
}


.info_text  a {
	color: #00870a;
	font-weight: bold;
}

.organisation_logo {
	max-width: 100%;
	max-height: 140px !important;
	padding-top: 4px;
	padding-bottom: 15px;
}

.organisation_logo_in_list {
	max-width: 100%;
	max-height: 130px !important;
	margin-bottom: 10px;
}

.record_view_organisation_logo {
	margin-right: 3px;
	max-width: 100%;
	max-height: 50px !important;
	float: left;
}

.record_view_collection_logo {
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	max-width: 100%;
	max-height: 100px !important;
	padding-bottom: 0px;
}

.organisations_background {
	background-color: #f5f5f5;
	margin-top: 15px;
	margin-bottom: 25px;
	border-radius: 5px;
	padding-top: 10px;
}

.organisations_header {
	font-size: 21px;
	vertical-align: bottom;
}

.organization_label {
	color: #5D5C5C;
	font-size: 24px;
	vertical-align: middle;
}

.organization_label_icon {
	color: #00870a;
	font-size: 24px;
	vertical-align: bottom;
}

.organisation_title {
	color: #5D5C5C;
	font-size: 23px;
	margin-bottom: 6px;
}

.organisation_url {
	margin-bottom: 6px;
}

.organisation_url a {
	font-weight: bold;
	font-size: 15px;
	color: #3d3d3d !important;
}

.collection_logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 70px !important;;
	padding-bottom: 10px;
	padding-right: 10px;
	margin-left: 0px;
	margin-top: 13px;
}

.collection_title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 6px;
}

.collection_url {
	margin-bottom: 6px;
}

.collection_url a {
	font-size: 14px;
	color: #3d3d3d !important;
}

.collection_type {
	font-size: 16px;
	margin-bottom: 6px;
}

/* .description { */
/* 	margin-bottom: 20px; */
/* } */
.green_text {
	color: #00870a;
}

.preservator_text {
	color: #337ab7;
}

.organization_pagination a {
	background-color: #f5f5f5 !important;
}

.organization_pagination .active>a {
	background-color: #f5f5f5 !important;
}

.organization_title_panel {
	padding-top: 2px;
	margin-bottom: 10px;
}

.organization_panel {
	background-color: white;
	border-radius: 4px;
	margin-bottom: 20px;
	border-bottom-color: #a8a9ad;
	border-bottom-style: solid;
	padding-top: 15px;
	padding-left: 10px;
	padding-right: 10px;
}

@media ( min-width : 992px) {
	.browse_collection {
		padding-left: 25px;
		padding-bottom: 20px;
	}
	.type_facet {
		text-align: justify;
		padding-bottom: 20px;
	}
	.organization_pagination .pagination-sm {
		float: right;
		margin-top: 0px !important;
		margin-bottom: 0px !important;
		vertical-align: bottom;
		padding-bottom: 10px;
		margin-right: 20px;
	}
	.join_promo_img {
		text-align: left;
	}
	#randomItem img {
		max-height: 200px;
		max-width: 100%;
		margin-bottom: 8px;
	}
	.random_provider {
		text-align: right;
		font-style: italic;
	}
}

/* 	.record_view_organisation_logo_div { */
/* 		padding-left: 3px; */
/* 		padding-right: 0px; */
/* 		padding-top: 5px; */
/* 	} */
@media ( max-width : 992px) {
	.facet-external-div {
		padding: 5px;
		background-color: rgb(240, 242, 241);
		border-radius: 4px;
	}
	.browse_collection {
		padding-bottom: 20px;
	}
	.type_facet {
		padding-bottom: 20px;
	}
	.pagination>li>a, .pagination>li>span {
		padding: 3px 10px !important;
	}
	.organization_pagination .pagination-sm {
		float: right;
		margin-top: 10px !important;
		margin-bottom: 0px !important;
		vertical-align: bottom;
		padding-bottom: 10px;
		margin-right: 20px;
	}
	#randomItem img {
		max-height: 240px;
		max-width: 100%;
		margin-bottom: 8px;
	}
	.random_provider {
		text-align: center;
		font-style: italic;
	}
	.join_promo_img {
		text-align: center;
	}
	.join_promo_btns {
		text-align: center;
	}
}

@media ( min-width : 1200px) {
	.sumbol {
		max-width: 15%;
	}
	.logos {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.follow-ekt {
		color: white;
		font-size: 1.2em;
		margin-top: 30px;
		text-align: center;
	}
	.logos-terms p {
		text-align: right;
	}
}

@media ( max-width : 1200px) {
	.sumbol {
		max-width: 25%;
	}
	.logos {
		padding-top: 14px;
		padding-bottom: 10px;
		text-align: center;
	}
	.follow-ekt {
		color: white;
		font-size: 1.2em;
		text-align: center;
	}
	.logos-terms p {
		text-align: center;
	}
}

.info_gray {
	max-width: 20%;
}

a:focus, a:hover {
	color: #00870a !important;
	text-decoration: underline;
}

.organization_label_div {
	padding-right: 0px;
}

/* type_facet_value{ */
/* 	white-space: nowrap; */
/* 	display: inline-block; */
/* } */
type_facet_value {
	display: inline-flex;
	flex-flow: row nowrap;
	max-width: 100%;
	/* or width:100% if you want the spans to take all available space */
}

.firstText {
	flex: 1;
	white-space: pre;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lastText {
	white-space: nowrap;
	margin-top: 1px;
}

.lastTexPeriods {
	white-space: nowrap;
	margin-left: 0px;
}

.text-overflow {
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

.no_wrap {
	white-space: nowrap;
}

.padding-right {
	padding-right: 48px;
}

.manuals .cover {
	max-height: 230px !important;
	box-shadow: 0px 2px 10px 0px #A4A4A4;
	margin: 5px;
}

.manuals .larger-cover {
	max-height: 300px !important;
	box-shadow: 0px 2px 10px 0px #A4A4A4;
	margin: 5px;
}

.manuals .both_cover {
	max-height: 250px !important;
	margin: 5px;
}

.manuals .cover-lg {
	max-height: 350px !important;
	box-shadow: 0px 2px 10px 0px #A4A4A4;
	margin: 10px;
}

.survey_img {
	max-width: 100%;
	max-height: 210px;
	margin-left: auto;
	margin-right: auto;
	margin-left: auto;
}

.banner_img {
	max-height: 270px;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

.presentations .cover {
	max-height: 80px !important;
	width: 110px;
	box-shadow: 0px 2px 10px 0px #A4A4A4;
	margin: 5px;
}

.press .cover {
	margin-top: 10px;
	max-height: 20px !important;
}

.vertical-align-justify-center {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.vertical-align-justify-header {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vertical-align {
	display: inline-flex !important;
	align-items: center;
}

.rights-icon-selection {
	height: 26px;
	padding: 1px !important;
	/* 	position: absolute; */
}

.rights-text-selection {
	font-size: 12px !important;
}

.select2-results__option {
	font-size: 12px !important;
}

.rights-icon {
	height: 26px;
}

/* .rights-text { */
/* 	margin-left: 5px !important; */
/* } */
.select2-container--default .select2-results__option--highlighted[aria-selected]
	{
	background-color: #d3efd6 !important;
	color: #3d3d3d !important;
}

.rights-icon-item-page {
	max-height: 28px !important;
	margin-top: 2px;
}

.rights-icon-item-page-small {
	max-height: 22px !important;
	margin-bottom: 0px !important;
}

.left-panel-item-page {
	padding-top: 7px;
	padding-bottom: 7px;
}

.bottom-border-item-page {
	border: 0;
	border-bottom: 1px solid #a7a9ab;
}

.light-gray {
	background-color: #f5f5f5;
}

.right-column-title-link {
	color: #00870a;
	font-weight: bold;
}

.right-column-title {
	font-weight: bold;
}

.right-column-title-link-not-available {
	font-weight: bold;
}

.enrich-comment {
	color: #575757;
	font-size: 11px;
	fill: #575757;
	margin-right: 5px;
	margin-top: 5px;
}

.enrich-comment-star {
	color: #00870a;
	fill: #00870a;
	font-size: 19px;
}

.main-search .select2-selection {
	border: 1px solid #ccc !important;
}

.searchculture-map-image {
	max-height: 220px;
	max-width: 100%;
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
}

.persons-image {
	max-width: 100%;
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
}

.europeana-slider-image {
	max-height: 120px;
	max-width: 90%;
	text-align: center;
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
}

.searchculture-inv-image {
	max-height: 210px;
	max-width: 100%;
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
}

.semantics-validator-image {
	max-height: 100%;
}

.europeana-image {
	/* 	max-height: 260px; */
	max-width: 100%;
	margin-left: 0px;
	margin-top: 80px;
	padding-right: 50px;
}

.placeholder-text {
	color: #696969;
}

.select2-selection__placeholder {
	color: #696969 !important;
}

.select2-selection__rendered {
	padding: 0 8px !important;
}

.select2-selection--multiple {
	border-radius: 5px !important;
}

.select2-selection--single {
	border-radius: 5px !important;
}

.gray-hr {
	border-width: 3px;
	border-color: #d1d3d4 !important;
	margin-top: 15px !important;
	margin-bottom: 10px !important;
}

.ekt-super-type-link {
	color: #5D5C5C;
}

.ekt-super-type-link:hover {
	color: #B6008D !important;
	text-decoration: ekt-type-link;
}

/* .ekt-type-link { */
/* 	color: #3d3d3d; */
/* } */
.ekt-type-link:hover {
	color: #B6008D !important;
	text-decoration: underline;
}

.institution-collection-link {
	color: #3d3d3d;
}

.institution-collection-link:hover {
	color: #00870a !important;
	text-decoration: none;
}

.ekt_types_label_div .list-unstyled {
	margin-bottom: 20px;
}

.ekt_types_label_div {
	/* 	margin-bottom: 10px; */
	
}

.ekt_types_paragraph {
	padding-top: 8px;
}

.timeline-slick-prev, .timeline-slick-next {
	font-size: 0;
	line-height: 0;
	position: absolute;
	top: 140px;
	display: block;
	width: 20px;
	height: 20px;
	padding: 0;
	margin-top: -10px\9;
	-webkit-transform: translate(0, -50%);
	-ms-transform: translate(0, -50%);
	transform: translate(0, -50%);
	cursor: pointer;
	color: transparent;
	border: none;
	outline: none;
	background: transparent;
	overflow: hidden;
}

.timeline-slick-next:before {
	content: '→';
}

.timeline-slick-prev:before {
	content: '←';
}

.timeline-slick-prev:before, .timeline-slick-next:before {
	font-family: 'slick';
	font-size: 20px;
	opacity: .75;
	color: white;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.timeline-content {
	overflow-x: scrol;
	overflow-y: hidden;
	padding-left: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice
	{
	margin-top: 3px !important;
}

.toggle.ios, .toggle-on.ios, .toggle-off.ios {
	border-radius: 20px;
}

.toggle.ios .toggle-handle {
	border-radius: 20px;
}

.timeline-periods {
	color: #333 !important;
	font-weight: bold;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
}

.timeline-periods p {
	color: #333 !important;
	font-weight: bold;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
}

.highcharts-tooltip span {
	z-index: 99999 !important;
}

.highcharts-legend span {
	z-index: 1 !important;
}

.highcharts-tooltip>span {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid silver;
	border-radius: 3px;
	box-shadow: 1px 1px 2px #888;
	padding: 2px;
	margin: 1px;
}

.gray {
	color: #737373;
}

.pop {
	/* 	cursor: pointer; */
	/* 	font-size: 15px; */
	margin-left: 3px;
	padding-right: 10px;
}

.checkbox {
	padding-top: 2px !important;
}

.popover-content {
	padding: 9px 14px;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

.popover {
	max-width: 476px !important;
	padding-top: 12px;
	padding-bottom: 12px
}

.field-mode .select2-container--default .select2-selection--single {
	background-color: #f5f5f5;
}

*::-webkit-input-placeholder { /* WebKit browsers */
	color: #696969 !important;
}

*:-moz-placeholder { /* Mozilla Firefox <18 */
	color: #696969 !important;
	opacity: 1;
}

*::-moz-placeholder { /* Mozilla Firefox 19+ */
	color: #696969 !important;
	opacity: 1;
}

*:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: #696969 !important;
}

.form-checkbox label {
	font-weight: 500 !important;
	margin-left: 10px !important;
}

.other-label {
	padding-top: 10px;
	font-weight: 500 !important;
}

.affix {
	top: 20px;
	width: 285px;
	padding-right: 20px;
}

.bs-docs-sidenav li.active a {
	color: #004D05;
}

.bs-docs-sidenav li.active {
	background-color: #d3efd6;
}

.bs-docs-sidenav li {
	border-left: 4px solid #00870a;
}

.articles li {
	margin-bottom: 15px;
}

.publications h2 {
	margin-bottom: 20px;
}

ol.custom-counter {
	margin: 0 0 1.5em;
	padding: 0;
	counter-reset: item;
}

ol.custom-counter>li {
	/*   margin: 0; */
	/*   padding: 0 0 0 2rem; */
	/*   text-indent: -2.0rem; */
	list-style-type: none;
	counter-increment: item;
}

.form-btn {
	/* 	text-indent: 0rem!important; */
	margin-left: 26px;
}

ol.custom-counter>li:before {
	display: inline-block;
	width: 2.5rem;
	color: #2cbc37;
	padding-right: .5rem;
	font-weight: bold;
	font-size: 18px;
	text-align: right;
	content: counter(item) '.';
}

.added-value h4 {
	margin-top: 30px;
}

.join_promo {
	background-color: #d1d3d4;
	margin-bottom: 5px;
	border-radius: 4px;
}

.join_promo_message {
	margin-right: 10px;
}

.join_promo_btns {
	white-space: nowrap;
}

.join_promo a {
	margin-right: 8px;
	margin-top: 4px;
	margin-bottom: 4px;
}

span.fixed-span {
	display: inline-block;
	width: 50px;
}

span.invisible {
	visibility: hidden;
}

.gray_light {
	color: #eeeeee;
}

.cc-banner {
	background-color: rgba(209, 211, 212, 0.9) !important;
	border-top-color: #b1b1b1 !important;
	/* 	font-size: 13px !important; */
	padding: 5px !important;
	padding: 25px !important;
}

.masthead i {
	width: 20px;
}

.header-logo-info-span {
	min-width: 20px;
	display: inline-block;
}

.header-logo-info {
	height: 18px;
}

.header-larger-logo-info {
	height: 22px;
	margin-right: 10px;
}

.person-logo {
	height: 50px;
	padding-bottom: 9px;
}

.system-logo {
	border: 0;
	height: auto;
	width: 50px;
	margin-right: 10px;
}

.pie-title {
	position: relative;
	top: 10px;
}

.margin-top {
	margin-top: 10px;
}

.item-control-static {
	padding-top: 7px;
	margin-bottom: 0;
}

/* .vertical-align { */
/* 	display: flex !important; */
/* 	align-items: center !important; */
/* } */
.margin-top-large {
	margin-top: 30px;
}

.margin-top-very-large {
	margin-top: 45px;
}

.margin-top-very-very-large {
	margin-top: 55px;
}

.margin-top-middle {
	margin-top: 22px;
}

.margin-bottom-large {
	margin-bottom: 30px;
}

.margin-bottom-very-large {
	margin-bottom: 45px;
}

.gray-link {
	color: #3d3d3d !important;
}

.gray-link:hover {
	color: #00870a !important;
	text-decoration: none !important;
}

.black-link {
	color: #3d3d3d !important;
}

.black-link:hover {
	color: #00870a !important;
	text-decoration: none !important;
}

.dark-gray {
	color: #3d3d3d;
}

.searchculture-img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 70%;
}

.help-image-no-shadow {
	border: 0;
	height: auto;
	width: 80%;
	margin-top: 30px;
	margin-bottom: 30px;
}

.help-image {
	border: 0;
	height: auto;
	width: 80%;
	box-shadow: 3px 3px 3px #aaa;
	box-shadow: 3px 3px 20px 3px #aaa;
	margin-top: 30px;
	margin-bottom: 30px;
}

.enrichments-field {
	border: 0;
	height: 150px;
	margin-bottom: 10px;
}

.help-image-actual-size {
	border: 0;
	height: auto;
	box-shadow: 3px 3px 3px #aaa;
	box-shadow: 3px 3px 20px 3px #aaa;
	margin-top: 30px;
	margin-bottom: 30px;
}

.help-image-smaller {
	border: 0;
	height: 200px;
	width: auto%;
	box-shadow: 3px 3px 3px #aaa;
	box-shadow: 3px 3px 20px 3px #aaa;
	margin-top: 30px;
	margin-bottom: 30px;
}

.help-image-much-smaller {
	border: 0;
	height: 80px;
	width: auto%;
	box-shadow: 3px 3px 3px #aaa;
	box-shadow: 3px 3px 20px 3px #aaa;
	margin-top: 30px;
	margin-bottom: 30px;
}

.ekt-voc-subtree-panel i {
	margin-right: 5px;
}

.less-margin-hr {
	margin-top: 5px;
	margin-bottom: 5px;
}

.less-margin-hr-collection {
	margin-top: 5px;
	margin-bottom: 5px;
	margin-left: 20px;
}

.text-align-center {
	text-align: center;
}

.image_in_page_headers {
	max-height: 200px;
	max-width: 100%;
	padding-top: 20px;
	margin: 0 0 20px;
}

.image_in_page_headers_larger {
	max-height: 240px;
	max-width: 100%;
	padding-top: 20px;
	margin: 0 0 20px;
}

blockquote h1 {
	font-size: 35px !important;
}

blockquote h1 span i {
	margin-right: 10px;
}

blockquote h1 {
	margin-top: 0px !important;
	margin-bottom: 10px;
}

blockquote.person h1 {
	margin-top: 5px !important;
	margin-bottom: 10px;
}

blockquote.person {
	margin: 0px !important;
}

blockquote .small:before, blockquote footer:before, blockquote small:before
	{
	content: '' !important;
}

.ekt-repositories {
	color: #ea762c;
}

.ekt-repositories-2 {
	color: #3d3d3d;
}

.ekt-ejournals {
	color: #2f6aa1;
}

.ekt-ejournals-2 {
	color: #3d3d3d;
}

.ekt-eproceedings {
	color: #f07e23;
}

.ekt-eproceedings-2 {
	color: #3d3d3d;
}

.ekt-ebooks {
	color: #ed2822;
}

.ekt-ebooks-2 {
	color: #3d3d3d;
}

.ekt-openabekt {
	color: #4c6496;
}

.ekt-openabekt-2 {
	color: #e4494f;
}

.ekt-openabekt-3 {
	color: #3d3d3d;
}

.blue_text {
	color: #00a2e3;
}

.footer-img-aggregator {
	height: 65px;
}

.footer-img-econtent {
	height: 45px;
}

.footer {
	padding: 20px;
}

.interoperability_header {
	color: #ec008c !important;
}

.interoperability img {
	display: inline !important;
}

.footer-ekt-title {
	color: white !important;
	font-size: 0.85em;
	padding-top: 20px !important;
}

.footer-ekt-title-paragraph {
	margin-top: 20px;
	margin-bottom: 0px;
}

.footer-img-cc {
	height: 28px;
	margin-top: 10px;
	padding-top: 0px !important;
}

.logos-terms p {
	font-size: 0.85em !important;
}

.voc-label {
	display: inline-block;
	max-width: 100%;
	margin-top: 4px;
	margin-bottom: 4px;
}

.col-label {
	display: inline-block;
	max-width: 100%;
}

.pref-labels {
	font-weight: 700;
}

.root {
	font-size: 18px;
}

label a.btn-xs {
	margin-top: 1px;
	margin-bottom: 1px;
}

.fluidMedia iframe {
	width: 100%;
	height: 400px;
}

.padding-left {
	padding-left: 15px !important;
}

.padding {
	padding: 10px 10px 10px 10px;
}

.strict-periods-div span {
	background-color: #f5f5f5;
	padding-left: 5px;
	border-radius: 5px 5px 5px 5px !important;
}

.select2-search__field:not([placeholder=""]) {
	min-width: 800px !important;
}

.moreOptions-ektPersons .select2-search__field:not([placeholder=""]) {
	min-width: 800px !important;;
}

/* label { */
/* 	width: 100% */
/* } */
.collapse-link {
	font-weight: 700;
	white-space: nowrap;
}

.collapse-link:not(.collapsed) .more_criteria {
	display: none;
}

.collapse-link.collapsed .less_criteria {
	display: none;
}

.colapse-arrow {
	font-size: 20px !important;
	font-weight: 700 !important;
	opacity: .9;
	margin-right: 5px;
	margin-left: 5px;
}

.facet-children {
	border-left: 3px dotted #d3d7cf;
	margin-left: 2px;
}

a.with_icons:hover, a.with_icons:focus {
	text-decoration: none !important;
}

.copy-to-clipboard {
	color: #005C06;
	background-color: #f5f5f5 !important;
	border: none;
}

.margin-top {
	margin-top: 30px;
}

.margin-top-small {
	margin-top: 10px;
}

.simple-search-field {
	border-radius: 5px 5px 5px 5px;
}

.simple-search-panel-body {
	padding: 5px !important;
}

.simple-search {
	margin-top: 20px;
}

blockquote {
	padding-right: 0px !important;
	border-left: 5px solid #e1e1e1 !important;
}

.video-responsive {
	overflow: hidden;
	padding-bottom: 56.25%;
	position: relative;
	height: 0;
}

.video-responsive iframe {
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	position: absolute;
}

.fa-custom-sort-date-asc, .fa-custom-sort-date-desc,
	.fa-custom-sort-date-score {
	position: relative;
	width: 38px;
}

.fa-custom-sort-date-asc::before, .fa-custom-sort-date-desc::before {
	content: "\f175  \f017 ";
	position: relative;
	right: 12px;
}

.fa-custom-sort-date-score::before {
	content: "\f175  ";
	position: relative;
	right: 11px;
}

.fa-custom-sort-date-asc::after, .fa-custom-sort-date-desc::after,
	.fa-custom-sort-date-score::after {
	position: absolute;
	width: 18px;
	top: 0px;
	right: 0px;
	font-size: 10px;
	line-height: 9px;
	font-family: "courier new", monospace;
	font-weight: bold;
}

.fa-custom-sort-date-asc::after {
	content: "1940 \A 2021";
	white-space: pre-wrap;
}

.fa-custom-sort-date-desc::after {
	content: "2021 \A 1940";
	white-space: pre-wrap;
}

.fa-custom-sort-date-score::after {
	content: "\3d \A ~";
	white-space: pre-wrap;
}

.pagination {
	margin-right: -6px;
}

.sorting-pagination {
	margin-top: 20px !important;
	margin-bottom: 0px !important;
}

.results-pagination {
	margin-top: 13px !important;
	margin-bottom: 23px !important;
}

.large-padding {
	padding: 3rem;
}

.cc-left {
	margin-right: auto;
	margin-left: auto;
	min-height: 10em;
	border: 1px solid transparent;
	border-color: black;
	width: 90%;
	right: 0;
	left: 0;
	max-width: 700px;
}

.cc-top {
	top: 3em !important;
}

.search-button-div {
	text-align: center;
}

.clear-help-button-div {
	text-align: center;
	margin-top: 15px;
}

.search-panel {
	background-color: #e1e1e1 !important;
}

.search-person-thumbnail {
	max-height: 80px !important;
	max-width: 60px;
	box-shadow: 0px 2px 10px 0px #a4a4a4;
	margin: 5px;
}

.search-person-no-thumbnail {
	max-height: 80px !important;
	max-width: 60px;
	margin: 5px;
}

.search-person-page-thumbnail {
	max-height: 100px !important;
	max-width: 80px;
	box-shadow: 0px 2px 10px 0px #a4a4a4;
	margin: 5px;
	display: inline !important;
}

.search-person-page-no-thumbnail {
	max-height: 100px !important;
	max-width: 80px;
	margin: 5px;
	display: inline !important;
}

.person-page-thumbnail {
	max-height: 135px !important;
	max-width: 90px;
	box-shadow: 0px 2px 10px 0px #a4a4a4;
	margin: 5px;
	display: inline !important;
}

.person-page-no-thumbnail {
	max-height: 135px !important;
	max-width: 90px;
	margin: 5px;
	display: inline !important;
}

.person-items {
	font-size: 17.5px;
	border-left: 5px solid #eee;
}

.person .media-left {
	min-width: 100px;
	text-align: center;
}

.person .media-body p {
	margin-bottom: 5px;
}

/* .select2-search--inline, .select2-search__field { */
/* 	width: 100% !important; */
/* } */
.panel-enrichment {
	background-color: #f5f5f5;
	border-color: #b5008c;
	padding: 8px;
	margin-left: -9px;
	margin-right: -9px;
	margin-top: 3px;
	margin-bottom: 3px;
	border: 1px solid transparent;
	border-radius: 4px;
}

.panel-enrichment a {
	color: #B6008D !important;
}

.panel-enrichment a:focus, .panel-enrichment a:hover {
	color: #B6008D !important;
	text-decoration: underline;
}

.tags a {
	margin-top: 10px;
}

.facet-external-div a:not([aria-expanded="true"])  .colapse-arrow-up {
	display: none
}

.facet-external-div a[aria-expanded="true"]  .colapse-arrow-down {
	display: none
}

.search-facets  a:not([aria-expanded="true"])  .colapse-arrow-filter-up
	{
	display: none
}

.stats-panel .colapse-arrow-filter-up {
	display: none;
}

.search-facets a[aria-expanded="true"]  .colapse-arrow-filter-down {
	display: none
}

#map {
	height: 550px;
}

#mapInItem {
	height: 340px;
}

#placesOfBirthAndDeathInMap {
	height: 220px;
}

.marker-cluster-indiv {
	background-color: #9ecae1;
}

.marker-cluster-indiv div {
	background-color: #6baed6;
}

.leaflet-popup-content {
	width: 300px !important;
}

.alert-white {
	/* color: #8a6d3b; */
	background-color: #ffffff;
	border-color: #d5d5d5;
}

.two-line-ellipsis {
	text-overflow: ellipsis;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.dropdown-submenu {
	position: relative;
}

.dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: -1px;
}

.leaflet-control-attribution {
	font-size: 10px;
}

.otherLabels {
	margin-left: 20px;
}

.marker-cluster-1 {
	background-color: rgba(250, 250, 110, 0.6);
	width: 30px !important;
	height: 30px !important;
	font-weight: bold !important;
}

.marker-cluster-1 div {
	background-color: rgba(250, 250, 110, 0.9);
	width: 20px !important;
	height: 20px !important;
	font-weight: bold !important;
}

.marker-cluster-1 span {
	line-height: 20px !important;
	font-weight: bold !important;
}

.marker-cluster-2 {
	background-color: rgba(245, 220, 80, 0.6);
	width: 30px !important;
	height: 30px !important;
	font-weight: bold !important;
}

.marker-cluster-2 div {
	background-color: rgba(245, 220, 80, 0.9);
	width: 20px !important;
	height: 20px !important;
	font-weight: bold !important;
}

.marker-cluster-2 span {
	line-height: 20px !important;
	font-weight: bold !important;
}

.marker-cluster-3 {
	background-color: rgba(239, 191, 53, 0.6);
	font-weight: bold !important;
}

.marker-cluster-3 div {
	background-color: rgba(239, 191, 53, 0.9);
	font-weight: bold !important;
}

.marker-cluster-4 {
	background-color: rgba(231, 161, 29, 0.6);
	font-weight: bold !important;
}

.marker-cluster-4 div {
	background-color: rgba(231, 161, 29, 0.9);
	font-weight: bold !important;
}

.marker-cluster-5 {
	background-color: rgba(221, 130, 7, 0.6);
	font-weight: bold !important;
}

.marker-cluster-5 div {
	background-color: rgba(221, 130, 7, 0.9);
	font-weight: bold !important;
}

.marker-cluster-6 {
	background-color: rgba(210, 99, 0, 0.6);
	font-weight: bold !important;
}

.marker-cluster-6 div {
	background-color: rgba(210, 99, 0, 0.9);
	font-weight: bold !important;
}

.marker-cluster-7 {
	background-color: rgba(196, 65, 0, 0.6);
	width: 50px !important;
	font-weight: bold !important;
	color: white;
}

.marker-cluster-7 div {
	background-color: rgba(196, 65, 0, 0.9);
	width: 40px !important;
	font-weight: bold !important;
	color: white;
}

.marker-cluster-indiv-small {
	background-color: rgba(181, 0, 140, 0.6);
	height: 30px !important;
	width: 40px !important;
	font-weight: bold !important;
}

.marker-cluster-indiv-small div {
	background-color: #ddd;
	width: 20px !important;
	height: 20px !important;
	font-weight: bold !important;
	margin-top: 4px !important;
}

.marker-cluster-indiv-small span {
	line-height: 20px !important;
}

.marker-cluster-indiv-medium {
	background-color: rgba(181, 0, 140, 0.6);
	width: 53px !important;
	font-weight: bold !important;
}

.marker-cluster-indiv-medium div {
	background-color: #ddd;
	font-weight: bold !important;
	margin-top: 4px !important;
}

.marker-cluster-indiv-large {
	background-color: rgba(181, 0, 140, 0.6);
	width: 66px !important;
	font-weight: bold !important;
}

.marker-cluster-indiv-large div {
	background-color: #ddd;
	width: 47px !important;
	font-weight: bold !important;
	margin-top: 4px !important;
}

.marker-cluster-indiv {
	border: solid;
	border-width: 1px;
	border-color: black;
}

.marker-cluster-indiv div {
	border: solid;
	border-width: 1px;
	border-color: black;
}

.search-labels-input {
	background-position: 3px 6px; /* Position the search icon */
	background-size: 17px;
	background-repeat: no-repeat; /* Do not repeat the icon image */
	width: 100%; /* Full-width */
	font-size: 14px; /* Increase font-size */
	padding: 6px 10px 4px 30px; /* Add some padding */
	border: 1px solid #ddd; /* Add a grey border */
	margin-bottom: 12px; /* Add some space below the input */
}

/* #myUL { */
/*   Remove default list styling */
/*   list-style-type: none; */
/*   padding: 0; */
/*   margin: 0; */
/* } */

/* #myUL li a { */
/*   border: 1px solid #ddd; Add a border to all links */
/*   margin-top: -1px; Prevent double borders */
/*   background-color: #f6f6f6; Grey background color */
/*   padding: 12px; Add some padding */
/*   text-decoration: none; Remove default text underline */
/*   font-size: 18px; Increase the font-size */
/*   color: black; Add a black text color */
/*   display: block; Make it into a block element to fill the whole list */
/* } */

/* #myUL li a:hover:not(.header) { */
/*   background-color: #eee; Add a hover effect to all links, except for headers */
/* } */
.wellcome p {
	font-size: 16px;
}

footer.wellcome {
	margin-top: 20px;
}

.nav-tabs {
	border-bottom: 2px solid #d1d3d4 !important;
}

.nav-tabs>li {
	float: left;
	margin-bottom: -2px !important;
}

.nav-tabs-label-only {
	color: #555 !important;
	font-size: 24px !important;
	cursor: default;
	background-color: #fff;
	position: relative;
	display: block;
	padding-left: 0px;
	padding-top: 18px;
	padding-right: 10px;
	padding-bottom: 10px;
}

.nav-tabs>li>a, .nav-tabs>li>a:focus, .nav-tabs>li {
	color: #555 !important;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover
	{
	color: #00870a !important;
	cursor: default;
	background-color: #fff;
	border-top: 2px solid #d1d3d4 !important;
	border-left: 2px solid #d1d3d4 !important;
	border-right: 2px solid #d1d3d4 !important;
	border-bottom: none !important;
	border-bottom-color: transparent !important;
}

.tab_header {
	margin-top: 15px;
}

.tab_header small {
	font-size: 16px !important;
	color: #595959 !important
}

.label-default {
	background-color: #6E6E6E;
}

.select2-container--default .select2-results>.select2-results__options {
	max-height: 250px !important;
	overflow-y: auto;
}

.leaflet-popup-content {
	margin: 13px 13px 13px 13px !important;
}

.leaflet-popup hr {
	margin-top: 10px !important;
	margin-bottom: 7px !important;
}

.leaflet-popup .media {
	margin-top: 10px !important;
}

.institutions-panel {
	background-color: #f5f5f5;
	border-radius: 4px;
	padding: 10px;
}

.navbar-default .navbar-nav>li>a {
	color: #3d3d3d !important;
}

.color-white {
	color: white !important;
}

.text-muted {
	color: #595959 !important;
}

.panel-default {
	border-color: #bdbaba !important;
}

.search-panel a {
	color: #006106;
}

.breadcrumb a, .light-gray a, .table-responsive a {
	color: #007A08
}

h2 label {
	font-weight: 400 !important;
}

blockquote .small, blockquote footer, blockquote small {
	color: #595959;
}

.place small {
	display: block;
	font-size: 80%;
	line-height: 1.42857143;
	color: #595959;
}

.alert-dismissable, .alert-dismissible {
	padding-right: 15px !important;
}

.collection-thumbnail {
	max-width: 100% !important;
	margin-top: 10px;
	margin-bottom: 10px;
	max-height: 200px;
}

.files-thumbnail {
	max-width: 100% !important;
	max-height: 200px;
}

hr.files-thumbnail-hr {
	margin-top: 10px;
	margin-bottom: 10px;
	border: 0;
	border-top: 1px solid #00870a;
}

.collection-name {
	font-size: 16px;
	color: #3d3d3d;
	font-weight: bold;
}

.slider-right-col img {
	max-width: 90% !important;
	max-height: 210px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: auto !important;
	text-align: center;
}

.place .pref-label {
	color: black;
	font-weight: 700;
}

.label-feature-class {
	display: inline;
	padding: .2em .6em .3em;
	font-size: 75%;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
	color: black;
}

.thumbnail-always-colFull img.results {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	max-height: 150px !important;;
}

.thumbnail-always-colFull dd {
	border-bottom: 1px solid #9f9fa2;
}

.thumbnail-always-colFull h6 a {
	color: #3d3d3d;
	font-size: 15px;
	font-weight: bold;
}

.thumbnail-always-colFull .item_view {
	color: #3d3d3d !important;
	background-image: none !important;
	background-color: #f5f5f5 !important;
	border: none !important;
}

.thumbnail-always-colFull {
	border: none;
	background-color: #f5f5f5;
	color: #3d3d3d;
	font-size: 12px;
	padding: 10px;
	position: relative;
}

.thumbnail-always-colFull>dl {
	margin-bottom: 50px;
	overflow-y: auto;
}

.thumbnail-always-colFull {
	display: block;
	margin-bottom: 20px;
	line-height: 1.42857143;
	border-radius: 4px;
	transition: border .2s ease-in-out;
}

.childrenPanel .collapse:not(.in) {
	display: none !important;
}

.termMatch {
	background-color: #b7ffb7;
}

.label-voc-tag {
	display: inline;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
	color: black;
}

.gray-hr-no-border {
	border-width: 3px;
	border-color: #d1d3d4 !important;
	margin-top: 10px;
	margin-bottom: 10px !important;
}

.tags-facet-div {
	border-top: 2px solid #00870a;
	max-height: 490px;
	overflow-y: auto;
	overflow-x: auto;
	border-bottom: 2px solid #00870a;
}

.break-url {
	overflow-wrap: anywhere; /* σύγχρονο */
	word-wrap: break-word; /* legacy για παλιούς browsers */
	word-break: break-word; /* extra βοήθεια σε WebKit */
	white-space: normal; /* βεβαιώσου ότι δεν είναι nowrap */
}

.sc-collections {
	position: relative;
	overflow: hidden;
	height: auto;
	transition: height .35s;
}

.sc-fade {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff
		80%);
	pointer-events: none;
}

.sc-collections.collapsed .sc-fade {
	display: block;
}

.sc-toggle {
	margin-top: 10px;
}

.collection-description .collection-description-text {
	position: relative;
	line-height: 1.6;
	transition: max-height 0.4s ease;
}

.collection-description .collection-description-text {
	position: relative;
	line-height: 1.6;
}

.collection-description.collapsed .collection-description-text {
	max-height: 4.8em;
	overflow: hidden;
}

.collection-description.collapsed .collection-description-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5em;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.collection-description-toggle {
	background: none;
	border: 0;
	padding: 0;
	display: block;
	transform: translateY(-6px);
	margin-bottom: 0.8rem;
	color: #00870a;
	cursor: pointer;
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
}

.collection-description-toggle:hover {
	text-decoration: underline;
}

.collection-description-toggle:focus {
	outline: none;
	box-shadow: none;
}


.historical-event-person-list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.historical-event-person {
	text-align: center;
	padding: 5px;
}

.historical-event-person-slider .slick-slide>div>div {
	vertical-align: top !important;
}

.historical-event-person-image {
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.historical-event-person-thumbnail {
	width: 82px;
	height: 82px;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 50%;
}

.historical-event-person-thumbnail-default {
	object-position: center center;
}

.historical-event-person>a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.historical-event-person-name {
	font-weight: 600;
	line-height: 1.25;
	margin-top: 4px;
}

.historical-event-person-years {
	font-size: 12px;
	color: #777;
	margin-top: 2px;
}

.historical-event-person-info .text-muted {
	font-size: 12px;
	line-height: 1.3;
}

.historical-event-person-more {
	align-self: center;
	padding: 15px;
}

.historical-event-person-slider {
	position: relative;
	margin-left: 22px;
	margin-right: 22px;
}

.historical-event-person-slider .historical-event-person {
	text-align: center;
	padding: 5px;
}

.historical-event-person-slider {
	position: relative;
	margin-left: 30px;
	margin-right: 30px;
}

.historical-event-person-slider .slick-prev,
	.historical-event-person-slider .slick-next {
	z-index: 10;
	width: 25px;
	height: 40px;
}

.historical-event-person-slider .slick-prev {
	left: -25px;
}

.historical-event-person-slider .slick-next {
	right: -25px;
}

.historical-event-person-slider .slick-prev:before,
	.historical-event-person-slider .slick-next:before {
	color: #00870a !important;
	font-size: 28px;
	opacity: 0.8;
}

.historical-event-person-slider .slick-prev.slick-disabled,
	.historical-event-person-slider .slick-next.slick-disabled {
	cursor: default;
	pointer-events: none;
}

.historical-event-person-slider .slick-prev.slick-disabled:before,
	.historical-event-person-slider .slick-next.slick-disabled:before {
	color: #bbb !important;
	opacity: 0.45 !important;
}

.person-brief {
	font-size: 13px;
	line-height: 1.4;
}

.person-brief-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.person-brief-image {
	flex: 0 0 auto;
}

.person-brief-thumbnail {
	width: 72px;
	height: 72px;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 50%;
	box-shadow: 0 1px 5px #bbb;
}

.person-brief-thumbnail-default {
	object-position: center center;
}

.person-brief-main {
	flex: 1;
	min-width: 0;
}

.person-brief-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}

.person-brief-name a {
	color: #00870a;
}

.person-brief-years {
	color: #777;
	margin-top: 2px;
}

.person-brief-occupation {
	margin-top: 5px;
}

.person-brief-details {
	margin-top: 9px;
}

.person-brief-field {
	margin-top: 4px;
}

.brief-thumbnail-source {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
}

.brief-thumbnail-source-title {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #777;
}

.brief-thumbnail-source-item-title {
	font-weight: 600;
	line-height: 1.3;
}

.brief-thumbnail-source-metadata {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.35;
	color: #777;
}

.brief-thumbnail-source-license {
	margin-top: 3px;
}



.historical-event-person-popover {
	width: 420px;
	max-width: calc(100vw - 30px) !important;
}

.historical-event-person-group-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;

	margin: 0 0 7px 0;
	padding-bottom: 3px;
	border-bottom: 1px solid #ddd;
}

.historical-event-person-group-header h3 {
	margin: 0 15px 0 0;

	font-size: 15px;
	font-weight: 600;
	color: #555;
}

.historical-event-person-range {
	font-size: 12px;
	color: #777;
	white-space: nowrap;
}


.historical-event-person-page {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
}

.historical-event-person-slider[data-columns="5"]
	.historical-event-person {
	flex: 0 0 20%;
	max-width: 20%;
}

.historical-event-person-slider[data-columns="4"]
	.historical-event-person {
	flex: 0 0 25%;
	max-width: 25%;
}

.historical-event-person-slider[data-columns="3"]
	.historical-event-person {
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}

.historical-event-person-slider[data-columns="2"]
	.historical-event-person {
	flex: 0 0 50%;
	max-width: 50%;
}

.historical-event-link {
	display: flex;
	align-items: flex-start;
	padding: 7px 8px;
	margin-bottom: 3px;
	border-radius: 3px;
}

.historical-event-link:hover {
	background: #f5f5f5;
}

.historical-event-link-symbol {
	flex: 0 0 24px;
	width: 24px;
	padding-top: 1px;
	font-size: 16px;
	color: #888;
	text-align: center;
}

.historical-event-link-content {
	flex: 1;
	min-width: 0;
}

.historical-event-link-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #00870a;
}

.historical-event-link-meta {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: #777;
}

.historical-event-link-separator {
	margin: 0 4px;
}

.historical-event-link-title-current {
	color: #1677c8;
	font-weight: 700;
}

.historical-event-link-symbol-current {
	color: #1677c8;
	font-size: 9px;
}


.historical-event-context-section {
	margin-bottom: 22px;
}

.historical-event-context-section:last-child {
	margin-bottom: 0;
}

.historical-event-context-title {
	margin: 0 0 7px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid #ddd;
	font-size: 15px;
	font-weight: 600;
	color: #555;
}

.historical-event-link-symbol-hierarchy {
	color: #aaa;
	font-size: 8px;
}

.historical-event-hierarchy-node {
	position: relative;
}

.historical-event-hierarchy-children {
	margin-left: 20px;
	padding-left: 10px;
	border-left: 1px solid #ddd;
}

.historical-event-link-title-descendant {
	color: #b6008d;
}

.historical-event-link-symbol-descendant {
	color: #b6008d;
}

a.historical-event-link-title-descendant:hover,
a.historical-event-link-title-descendant:focus {
	color: #b6008d !important;
}



.historical-event-overview-row {
	margin-top: 22px;
}

.historical-event-overview-panel {
	width: 100%;
}

.historical-event-context-scroll {
	scrollbar-width: thin;
	scrollbar-color: #aaa transparent;
}

.historical-event-context-scroll::-webkit-scrollbar {
	width: 6px;
}

.historical-event-context-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.historical-event-context-scroll::-webkit-scrollbar-thumb {
	background: #aaa;
	border-radius: 3px;
}


@media (min-width: 992px) {

	.historical-event-overview-row {
		display: flex;
		align-items: flex-start;
	}

	.historical-event-overview-column {
		float: none;
	}

	.historical-event-overview-panel-events {
		display: flex;
		flex-direction: column;
	}

	.historical-event-context-scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		padding-right: 8px;
	}
}

@media ( max-width : 991px) {
	.historical-event-overview-panel-events {
		height: auto !important;
	}
	.historical-event-context-scroll {
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}
}

.event-brief {
	font-size: 13px;
	line-height: 1.4;
}

.event-brief-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.event-brief-title a {
	color: #00870a;
}

.event-brief-years {
	margin-top: 3px;
	color: #777;
}

.event-brief-field {
	margin-top: 5px;
	color: #555;
}

.event-brief-field i {
	width: 17px;
	color: #888;
}

.event-brief-definition {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #ddd;
}

.event-brief-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.event-brief-image {
	flex: 0 0 80px;
	width: 80px;
}

.event-brief-thumbnail {
	display: block;
	width: 80px !important;
	height: 64px !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 1px 3px #ccc;
}

.event-brief-main {
	flex: 1;
	min-width: 0;
}

.event-brief-definition {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #ddd;

	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}


.event-brief-thumbnail-caption {
	margin-top: 5px;
	font-size: 11px;
	line-height: 1.35;
	color: #777;
}

.historical-event-event-popover {
	width: 440px;
	max-width: calc(100vw - 30px) !important;
}


.brief-thumbnail-item-license {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: #777;
}

.brief-thumbnail-item-license-label {
	font-weight: 600;
}

.brief-thumbnail-item-license a {
	font-weight: 600;
}


.historical-event-map-description {
	margin-bottom: 12px;
}

#historicalEventMap {
	width: 100%;
	height: 440px;
	border: 1px solid #ddd;
}

#historicalEventMap {
	border-radius: 3px 3px 0 0;
}

.historical-event-map-popup-prefix {
	margin-bottom: 2px;
	font-size: 11px;
	color: #888;
}

.historical-event-map-popup-place {
	font-size: 15px;
	line-height: 1.3;
}

.historical-event-map-popup-geonames {
	margin-left: 5px;
	font-size: 12px;
}

.historical-event-map-popup-other-labels {
	margin-top: 2px;
	font-size: 11px;
	font-style: italic;
	color: #777;
}

.historical-event-map-popup-events {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #ddd;
}

.historical-event-map-popup-events-title {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #777;
}

.historical-event-map-popup-event {
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}

.historical-event-map-popup-event:last-child {
	border-bottom: 0;
}

.historical-event-map-popup-event-main {
	line-height: 1.35;
}

.historical-event-map-popup-event-date {
	font-size: 12px;
	font-weight: 600;
	color: #555;
}

.historical-event-map-popup-event-date-separator {
	font-size: 12px;
	color: #777;
}

.historical-event-map-popup-event-title {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.historical-event-map-popup-event-title.current {
	color: #1677c8;
}

.historical-event-map-popup-event-title.descendant {
	color: #b6008d;
}

a.historical-event-map-popup-event-title.descendant:hover {
	color: #b6008d;
	text-decoration: underline;
}

.historical-event-map-popup-event-types {
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.3;
	color: #777;
}

@media (max-width: 767px) {

	#historicalEventMap {
		height: 340px;
	}
}

.historical-event-map-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: -2px 0 10px 0;
	font-size: 12px;
	color: #777;
}

.historical-event-map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}


/*
 * Event ownership:
 *
 * blue   = current event
 * purple = descendant event
 */

.historical-event-map-legend-point {
	display: inline-block;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-sizing: border-box;
}

.historical-event-map-legend-point.current {
	background-color: #1677c8;
}

.historical-event-map-legend-point.descendant {
	background-color: #b6008d;
}


/*
 * Broader geographical area.
 *
 * Neutral example: the halo denotes area,
 * independently of event colour.
 */
.historical-event-map-legend-area {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: rgba(90, 90, 90, 0.16);
}

.historical-event-map-legend-area-core {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #666;
}

.historical-event-map-area:focus {
	outline: none;
}

.historical-event-map-tooltip {
	padding: 6px 9px;
	font-size: 13px;
	line-height: 1.35;
}

.historical-event-map-tooltip-place {
	font-weight: 600;
	margin-bottom: 2px;
}

.historical-event-map-tooltip-date {
	font-size: 12px;
	font-weight: normal;
	line-height: 1.35;
	white-space: nowrap;
}

.historical-event-identity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 18px;
	margin: 6px 0 10px 0;
	font-size: 14px;
	color: #666;
}

.historical-event-identity-item {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.historical-event-identity-item > i {
	width: 14px;
	text-align: center;
	color: #777;
}

.historical-event-context-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: -2px 0 10px 5px;
	font-size: 11px;
	color: #777;
}

.historical-event-context-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.historical-event-context-legend-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.historical-event-context-legend-dot.current {
	background-color: #1677c8;
}

.historical-event-context-legend-dot.other {
	background-color: #109c70;;
}

.historical-event-context-legend-dot.descendant {
	background-color: #b6008d;
}


.historical-event-time-control {
	margin-top: 0;

	padding: 10px 14px 10px 14px;

	background: #fff;

	border: 1px solid #ddd;
	border-top: 0;

	border-radius: 0 0 3px 3px;
}

.historical-event-time-control-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 7px;
}

.historical-event-time-current {
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.historical-event-time-current .fa {
	margin-right: 5px;
	color: #777;
}


.historical-event-time-reset {
	margin-left: 10px;
	padding: 0 0 0 11px;

	border: 0;
	border-left: 1px solid #ccc;

	background: none;

	color: #00870a;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;

	cursor: pointer;
}

.historical-event-time-reset:hover {
	text-decoration: underline;
}

#historicalEventTimeSlider {
	width: 100%;
	margin: 2px 0 0 0;
}

.historical-event-time-extents {
	display: flex;
	justify-content: space-between;

	margin-top: 4px;

	font-size: 11px;
	font-weight: 500;
	color: #555;
}

#historicalEventTimeSlider {
	width: 100%;
	height: 18px;
	margin: 2px 0 0 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}


/*
 * Track
 */
#historicalEventTimeSlider::-webkit-slider-runnable-track {
	height: 4px;
	background: #ccc;
	border-radius: 2px;
}

#historicalEventTimeSlider::-moz-range-track {
	height: 4px;
	background: #ccc;
	border-radius: 2px;
}


/*
 * Firefox normally colours the part before the thumb.
 * We explicitly neutralise it.
 */
#historicalEventTimeSlider::-moz-range-progress {
	height: 4px;
	background: #ccc;
	border-radius: 2px;
}



/*
 * Thumb
 */
#historicalEventTimeSlider::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	opacity: 0;

	-webkit-appearance: none;
	appearance: none;
}

#historicalEventTimeSlider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	opacity: 0;
	border: 0;
}

#historicalEventTimeSlider.historical-event-time-slider-all
	::-webkit-slider-thumb {

	background: #999;
}

#historicalEventTimeSlider.historical-event-time-slider-all
	::-moz-range-thumb {

	background: #999;
}

#historicalEventTimeSlider.historical-event-time-slider-all::-webkit-slider-thumb {
	opacity: 0;
}

#historicalEventTimeSlider.historical-event-time-slider-all::-moz-range-thumb {
	opacity: 0;
}

.historical-event-time-slider-wrapper {
	position: relative;
}

.historical-event-time-ticks {
	position: relative;
	height: 21px;
	margin: -2px 8px 0 8px;
}

.historical-event-time-tick {
	position: absolute;
	top: 0;

	width: 1px;
	height: 7px;

	background: #777;

	transform: translateX(-50%);
}



.historical-event-time-tick-label {
	position: absolute;
	top: 7px;

	font-size: 11px;
	font-weight: 500;
	color: #555;

	white-space: nowrap;
	transform: translateX(-50%);
}

/* Availability bars: 8px thick, with a 5px gap between the two rows.
 * Position each row explicitly so its percentage-based ranges align with
 * the slider's 8px inset and never overlap vertically. */
.historical-event-time-availability {
	position: relative;
	height: 21px; /* 8px + 5px gap + 8px */
	margin: 0 8px 2px 8px;
}

.historical-event-time-ranges {
	position: absolute;
	left: 0;
	right: 0;
	height: 8px;
}

.historical-event-time-ranges.current {
	top: 0;
}

.historical-event-time-ranges.descendant {
	top: 13px;
}

.historical-event-time-range {
	position: absolute;
	top: 0;
	height: 8px;
	min-width: 5px;
	border-radius: 4px;
}

.historical-event-time-ranges.current
	.historical-event-time-range {

	background: #1677c8;
	opacity: .65;
}

.historical-event-time-ranges.descendant
	.historical-event-time-range {

	background: #b6008d;
	opacity: .55;
}




.historical-event-time-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.historical-event-time-granularity-label {
	margin: 0;
	font-size: 12px;
	font-weight: normal;
	color: #777;
}

.historical-event-time-granularity {
	height: 26px;
	padding: 2px 5px;
	font-size: 12px;
	color: #555;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
}

.historical-event-time-slider-track {
	position: relative;
}


/*
 * The real slider thumb is 16px wide.
 * 8px left/right therefore correspond approximately
 * to the actual travel range of its centre.
 */
.historical-event-time-selection-axis {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 1;
}


.historical-event-time-selection {
	position: absolute;
	top: 50%;
	height: 12px;
	min-width: 5px;

	border: 1px solid #666;
	border-radius: 3px;

	background: rgba(80, 80, 80, .12);

	transform: translateY(-50%);

	box-sizing: border-box;
}

.historical-event-time-selection::after {
	content: "";
	position: absolute;

	left: 50%;
	top: 50%;

	width: 15px;
	height: 15px;

	border-radius: 50%;
	background: #666;

	transform: translate(-50%, -50%);
}


#historicalEventTimeSlider {
	position: relative;
	z-index: 2;
}


/* Replace the existing timeline CSS block with this entire file.
   Set --historical-event-timeline-sticky-top to the fixed navbar height, if any. */
.historical-event-timeline {
    width: 100%; margin-top: 12px; border: 1px solid #ddd; background: #fff;
}
.historical-event-timeline-header,
.historical-event-timeline-row {
    display: grid; grid-template-columns: minmax(250px, 36%) minmax(0, 1fr); column-gap: 18px;
}
.historical-event-timeline-header {
    position: sticky; top: var(--historical-event-timeline-sticky-top, 0px);
    z-index: 20; min-height: 46px; border-bottom: 1px solid #ccc; background: #f7f7f7;
}
.historical-event-timeline-header-events {
    display: flex; align-items: center; padding: 8px 12px;
    font-size: 12px; font-weight: 600; color: #777;
}
.historical-event-timeline-axis { position: relative; min-width: 0; margin: 0 14px; }
.historical-event-timeline-axis-line {
    position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: #999;
}
.historical-event-timeline-axis-label,
.historical-event-timeline-tick {
    position: absolute; top: 27px; font-size: 11px; font-weight: 500; color: #666; white-space: nowrap;
}
.historical-event-timeline-axis-label-start { left: 0; }
.historical-event-timeline-axis-label-end { right: 0; }
.historical-event-timeline-tick { transform: translateX(-50%); }
.historical-event-timeline-tick::before {
    content: ''; position: absolute; top: -8px; height: 7px; left: 50%; border-left: 1px solid #aaa;
}
.historical-event-timeline-compact-axis .historical-event-timeline-header { min-height: 64px; }
.historical-event-timeline-compact-axis .historical-event-timeline-axis-label-end { top: 44px; }
.historical-event-timeline-row { min-height: 54px; border-bottom: 1px solid #eee; }
.historical-event-timeline-row:last-child { border-bottom: 0; }
.historical-event-timeline-row:hover { background: #fafafa; }
.historical-event-timeline-event { display: flex; align-items: center; min-width: 0; padding: 7px 12px; }
.historical-event-timeline-event-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; }
.historical-event-timeline-event-dot.current { background: #1677c8; }
.historical-event-timeline-event-dot.descendant { background: #b6008d; }
.historical-event-timeline-event-dot.other { background: #00870a; }
.historical-event-timeline-event-content { min-width: 0; overflow-wrap: anywhere; }
.historical-event-timeline-event-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.historical-event-timeline a.current,
.historical-event-timeline a.current:hover,
.historical-event-timeline a.current:focus { color: #1677c8 !important; }
.historical-event-timeline-event-title.current { font-weight: 700; }
.historical-event-timeline a.descendant,
.historical-event-timeline a.descendant:hover,
.historical-event-timeline a.descendant:focus { color: #b6008d !important; }
.historical-event-timeline a.other,
.historical-event-timeline a.other:hover,
.historical-event-timeline a.other:focus { color: #00870a !important; }
.historical-event-timeline-event-date { margin-top: 2px; font-size: 11px; line-height: 1.3; color: #777; }
.historical-event-timeline-chart { position: relative; min-width: 0; margin: 0 14px; }
.historical-event-timeline-row-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #eee; }
.historical-event-timeline-gridline { position: absolute; top: 0; bottom: -1px; border-left: 1px solid #eee; pointer-events: none; }
/* The link stays unrotated; only its inner visible shape is rotated. */
.historical-event-timeline-item {
    display: block; position: absolute; top: 50%; z-index: 2;
    padding: 0; margin: 0; border: 0; background: transparent;
    color: #00870a; cursor: pointer; text-decoration: none;
}
.historical-event-timeline-item::before {
    content: ''; position: absolute; left: -9px; right: -9px; top: -10px; bottom: -10px;
    background: transparent;
}
.historical-event-timeline-shape { display: block; position: absolute; inset: 0; background: currentColor; pointer-events: none; }
.historical-event-timeline-item.bar { height: 8px; min-width: 6px; transform: translateY(-50%); }
.historical-event-timeline-item.bar .historical-event-timeline-shape { border-radius: 4px; }
.historical-event-timeline-item.point { width: 10px; height: 10px; transform: translate(-50%, -50%); }
.historical-event-timeline-item.point .historical-event-timeline-shape { transform: rotate(45deg); }
.historical-event-timeline-item.bar.continues-before .historical-event-timeline-shape::before {
    content: ''; position: absolute; left: -6px; top: 0;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-right: 6px solid currentColor;
}
.historical-event-timeline-item.bar.continues-after .historical-event-timeline-shape::after {
    content: ''; position: absolute; right: -6px; top: 0;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor;
}
.historical-event-timeline-item:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (max-width: 767px) {
    .historical-event-timeline-header,
    .historical-event-timeline-row { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: 8px; }
    .historical-event-timeline-event { padding-left: 7px; padding-right: 5px; }
    .historical-event-timeline-chart,
    .historical-event-timeline-axis { margin-left: 7px; margin-right: 7px; }
}

		.historical-event-timeline-header-events {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 8px;
			flex-wrap: wrap;
		}
		.historical-event-timeline-legend {
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			gap: 4px 12px;
			font-size: 11px;
			font-weight: normal;
		}
		.historical-event-timeline-legend-entry {
			display: inline-flex;
			align-items: center;
			gap: 5px;
			white-space: nowrap;
		}
		/* Explicit dimensions/colors: row dots rely on positioning rules that
		   do not apply inside the flexbox legend. */
		.historical-event-timeline-legend .historical-event-timeline-event-dot {
			position: static;
			display: inline-block;
			width: 9px;
			height: 9px;
			min-width: 9px;
			border-radius: 50%;
			flex: 0 0 9px;
			margin: 0;
			padding: 0;
			transform: none;
			visibility: visible;
		}
		.historical-event-timeline-legend .historical-event-timeline-event-dot.current { background-color: #1976d2; }
		.historical-event-timeline-legend .historical-event-timeline-event-dot.descendant { background-color: #b6008d; }
		.historical-event-timeline-legend .historical-event-timeline-event-dot.other { background-color: #2e9d69; }
		.historical-event-timeline-event-types {
			font-size: 11px;
			color: #777;
		}

/* ========================================================================
   HISTORICAL EVENTS - index and reusable views
   Relocated from ektEventsPage.jsp, historicalEventBranchLegend.tag,
   historicalEventMap.tag and historicalEventTimeline.tag.
   Keep these sections after legacy historical-event styles to preserve the
   original cascade; map/timeline index-only rules are scoped.
   ======================================================================== */

/* --- BRANCH LEGEND (shared, desktop/mobile) --- */
/* Shared legend, independent of map/timeline-specific colors. */
.historical-event-branch-legend {
    border: 1px solid #e2e2e2;
    background: #fafafa;
    border-radius: 3px;
    margin: 0 0 18px;
    padding: 10px 12px 12px;
}
.historical-event-branch-legend-heading {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 9px;
    list-style: none;
}
.historical-event-branch-legend-menu-icon {
    display: none;
}
.historical-event-branch-legend-heading::-webkit-details-marker {
    display: none;
}
.historical-event-branch-legend-toggle-hint {
    display: inline-block;
    font-weight: normal;
    margin-left: 4px;
}
.historical-event-branch-legend:not([open]) .historical-event-branch-legend-toggle-hint {
    transform: rotate(-90deg);
}
.historical-event-branch-legend-list {
    padding: 0;
    margin: 0;
    list-style: none;
    /* Flow top-to-bottom, then left-to-right, preserving chronological order. */
    column-count: 4;
    column-gap: 24px;
    column-rule: 1px solid #e5e5e5;
    column-fill: balance;
}
.historical-event-branch-legend-item {
    display: flex;
    /* Anchor the swatch to the FIRST text line, even for wrapped labels. */
    align-items: flex-start;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
    /* Do not split a branch label between columns. */
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.historical-event-branch-legend-swatch {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
    margin-top: 3px;
    display: block;
}
.historical-event-branch-legend-label {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #444;
}
@media (min-width: 768px) and (max-width: 1199px) {
    .historical-event-branch-legend-list {
        column-count: 2;
    }
}
@media (max-width: 767px) {
    .historical-event-branch-legend-list {
        column-count: 1;
        column-rule: none;
    }
}

/* Mobile index hierarchy/timeline: sticky compact menu trigger. The list
   opens above the content without shifting the hierarchy or the timeline. */
@media (max-width: 767px) {
    .historical-event-index-legend-wrap--sticky {
        width: max-content;
        max-width: 100%;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend {
        position: relative;
        padding: 6px 10px;
        margin: 0;
        background: #fafafa;
        box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend-heading {
        display: flex;
        align-items: center;
        margin: 0;
        min-width: 22px;
        min-height: 22px;
        justify-content: center;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend-heading-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend-menu-icon {
        display: inline-block;
        font-size: 15px;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend-toggle-hint {
        display: none;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend-list {
        position: absolute;
        top: calc(100% + 3px);
        left: 0;
        z-index: 1;
        box-sizing: border-box;
        width: min(310px, calc(100vw - 45px));
        max-height: 55vh;
        overflow-y: auto;
        padding: 10px;
        background: #fff;
        border: 1px solid #dedede;
        border-radius: 3px;
        box-shadow: 0 3px 10px rgba(0,0,0,.14);
    }
}

/* --- MAP - index-only overrides --- */
/* All index events use the descendant row. Render it as one 8px-high
   SearchCulture-green availability bar, with no empty current-event row. */
#historicalEventMapPanel.historical-event-map-section--index
.historical-event-time-availability {
    height: 8px;
}
#historicalEventMapPanel.historical-event-map-section--index
.historical-event-time-ranges.descendant {
    top: 0;
}
#historicalEventMapPanel.historical-event-map-section--index
#historicalEventTimeDescendantRanges .historical-event-time-range {
    background: #00870a;
    opacity: 1;
}
                /* Only the index: fade area shading in/out on marker focus. */
                #historicalEventMapPanel.historical-event-map-section--index
                .historical-event-map-area-halo {
                    transition: fill-opacity 200ms ease-out;
                }

/* --- TIMELINE - stacked layout and index colors --- */
/* Single-column timeline: the axis and every event use the same width. */
        .historical-event-timeline.historical-event-timeline--stacked {
            --timeline-caption-max-width: 430px;
        }
        .historical-event-timeline--stacked .historical-event-timeline-header {
            display: block;
            grid-template-columns: none;
            position: sticky;
            /* Keep the site's existing sticky top offset, if any. */
            z-index: 20;
            background: #f7f7f7;
        }
        .historical-event-timeline--stacked .historical-event-timeline-header-events {
            display: flex;
            width: 100%;
            box-sizing: border-box;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 5px 16px;
            padding: 9px 12px 7px;
            min-width: 0;
        }
        .historical-event-timeline--stacked .historical-event-timeline-legend {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px 12px;
            font-size: 11px;
            font-weight: normal;
        }
        .historical-event-timeline--stacked .historical-event-timeline-legend-entry {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        .historical-event-timeline--stacked .historical-event-timeline-legend .historical-event-timeline-event-dot {
            position: static;
            display: inline-block;
            width: 9px;
            height: 9px;
            min-width: 9px;
            border-radius: 50%;
            flex: 0 0 9px;
            margin: 0;
            padding: 0;
            transform: none;
            visibility: visible;
        }
        .historical-event-timeline--stacked .historical-event-timeline-legend .historical-event-timeline-event-dot.current { background-color: #1976d2; }
        .historical-event-timeline--stacked .historical-event-timeline-legend .historical-event-timeline-event-dot.descendant { background-color: #c00086; }
        .historical-event-timeline--stacked .historical-event-timeline-legend .historical-event-timeline-event-dot.other { background-color: #109c70; }

        .historical-event-timeline--stacked .historical-event-timeline-axis {
            position: relative;
            display: block;
            box-sizing: border-box;
            width: 100%;
            max-width: none;
            min-width: 0;
            height: 48px;
            flex: none;
            margin: 0;
            padding-left: 0;
            padding-right: 0;
        }
        /* The boundary dates occupy a separate row ABOVE the axis line.
           Intermediate ticks stay BELOW it, leaving them room on mobile. */
        .historical-event-timeline--stacked .historical-event-timeline-axis-line {
            position: absolute;
            box-sizing: border-box;
            top: 24px;
            bottom: auto;
            left: 0;
            right: 0;
            width: 100%;
            height: 1px;
            margin: 0;
            padding: 0;
            border: 0;
            border-top: 1px solid #aaa;
            background: transparent;
        }
        .historical-event-timeline--stacked .historical-event-timeline-axis-label {
            position: absolute;
            top: 0;
            bottom: auto;
            white-space: nowrap;
            font-size: 11px;
            line-height: 15px;
        }
        /* Thin guides connect start/end captions to their *exact* axis points. */
        .historical-event-timeline--stacked .historical-event-timeline-axis-label::after {
            content: '';
            position: absolute;
            top: 16px;
            width: 1px;
            height: 9px;
            background: #aaa;
            pointer-events: none;
        }
        .historical-event-timeline--stacked .historical-event-timeline-axis-label-start::after {
            left: 0;
            right: auto;
        }
        .historical-event-timeline--stacked .historical-event-timeline-axis-label-end::after {
            right: 0;
            left: auto;
        }
        .historical-event-timeline--stacked .historical-event-timeline-axis-label-end:empty::after {
            display: none;
        }
        .historical-event-timeline--stacked .historical-event-timeline-tick {
            position: absolute;
            top: 29px;
            bottom: auto;
            margin: 0;
            padding: 0;
            font-size: 11px;
            line-height: 15px;
            text-align: center;
            white-space: nowrap;
            transform: translateX(-50%);
        }
        .historical-event-timeline--stacked .historical-event-timeline-tick::before {
            content: '';
            position: absolute;
            bottom: calc(100% + 4px);
            left: 50%;
            width: 1px;
            height: 5px;
            background: #aaa;
            transform: none;
        }

        .historical-event-timeline--stacked .historical-event-timeline-rows {
            display: block;
        }
        .historical-event-timeline--stacked .historical-event-timeline-row {
            display: block;
            position: relative;
            box-sizing: border-box;
            height: auto;
            min-height: 0;
            width: 100%;
            margin: 0;
            padding: 0;
            border-bottom: 1px solid #e9e9e9;
        }
        .historical-event-timeline--stacked .historical-event-timeline-chart {
            position: relative;
            display: block;
            box-sizing: border-box;
            width: 100%;
            max-width: none;
            min-width: 0;
            height: auto;
            min-height: 0;
            padding: 20px 0 8px;
            margin: 0;
            border: 0;
            overflow: visible;
            flex: none;
        }
        /* Position the marker above the caption, on the common time axis. */
        /* Keep only the separator between event rows; no line through the marker. */
        .historical-event-timeline--stacked .historical-event-timeline-row-line {
            display: none;
        }
        .historical-event-timeline--stacked .historical-event-timeline-item {
            position: absolute;
            top: 12px;
            margin: 0;
            box-sizing: border-box;
            max-width: 100%;
            transform: translateY(-50%);
            z-index: 2;
        }
        .historical-event-timeline--stacked .historical-event-timeline-item.point {
            transform: translate(-50%, -50%);
        }
        .historical-event-timeline--stacked .historical-event-timeline-item.point.at-start {
            transform: translateY(-50%);
        }
        .historical-event-timeline--stacked .historical-event-timeline-item.point.at-end {
            transform: translate(-100%, -50%);
        }
        .historical-event-timeline--stacked .historical-event-timeline-gridline {
            z-index: 0;
            pointer-events: none;
        }
        /* Caption is in normal flow: long titles increase row height rather than overlapping. */
        .historical-event-timeline--stacked .historical-event-timeline-chart > .historical-event-timeline-event {
            position: relative;
            display: block;
            box-sizing: border-box;
            float: none;
            left: 0;
            top: auto;
            bottom: auto;
            right: auto;
            width: max-content;
            max-width: min(var(--timeline-caption-max-width), calc(100% - 12px));
            height: auto;
            min-height: 0;
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
            text-align: left;
            transform: translateX(0);
            z-index: 1;
        }
        .historical-event-timeline--stacked .historical-event-timeline-event-content {
            display: block;
            width: auto;
            max-width: none;
            min-width: 0;
            margin: 0;
            overflow-wrap: anywhere;
        }
        .historical-event-timeline--stacked .historical-event-timeline-event-title {
            display: inline;
            white-space: normal;
            overflow-wrap: anywhere;
        }
        .historical-event-timeline--stacked .historical-event-timeline-event-meta {
            display: block;
            font-size: 11px;
            line-height: 1.35;
            color: #777;
        }
        .historical-event-timeline--stacked .historical-event-timeline-event-date,
        .historical-event-timeline--stacked .historical-event-timeline-event-types,
        .historical-event-timeline--stacked .historical-event-timeline-event-separator {
            display: inline;
            font-size: inherit;
            line-height: inherit;
            color: inherit;
        }
        @media (max-width: 600px) {
            .historical-event-timeline--stacked {
                --timeline-caption-max-width: 300px;
            }
            .historical-event-timeline--stacked .historical-event-timeline-header-events {
                padding: 7px 9px;
            }
            .historical-event-timeline--stacked .historical-event-timeline-legend {
                gap: 3px 9px;
            }
        }
        /* In the index, all three marker types share the root-branch color. */
        .historical-event-timeline--index .historical-event-timeline-event-title,
        .historical-event-timeline--index .historical-event-timeline-event-title:hover {
            color: var(--historical-event-branch-color, #64748b) !important;
        }
        .historical-event-timeline--index .historical-event-timeline-item.bar,
        .historical-event-timeline--index .historical-event-timeline-item.bar .historical-event-timeline-shape {
            background-color: var(--historical-event-branch-color, #64748b) !important;
            border-color: var(--historical-event-branch-color, #64748b) !important;
        }
        /* Only the inner diamond is colored. Coloring the point wrapper as
           well made its rotated square overlap the shape like a star. */
        .historical-event-timeline--index .historical-event-timeline-item.point {
            background: transparent !important;
            border-color: transparent !important;
        }
        .historical-event-timeline--index .historical-event-timeline-item.point .historical-event-timeline-shape {
            background-color: var(--historical-event-branch-color, #64748b) !important;
            border-color: var(--historical-event-branch-color, #64748b) !important;
        }

/* --- INDEX PAGE - view selector, hierarchy, sticky legend --- */
/* Only the index: preserve the original event-detail hierarchy styling. */
.historical-event-index-view-switch { display: flex; flex-wrap: wrap; margin: 0 0 14px; }
.historical-event-index-view-switch .btn { flex: 0 1 auto; }
.historical-event-index-view-switch .btn.active { background: #e8f2f7; border-color: #8ba6ba; }
.historical-event-index-omitted { margin-top: 8px; font-size: 12px; }

.historical-event-index-row {
    display: block;
    line-height: 1.6;
    margin-bottom: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.historical-event-index-hierarchy .historical-event-index-label {
    color: var(--historical-event-branch-color, #23743a);
    font-weight: 600;
    text-decoration: none;
}
.historical-event-index-hierarchy .historical-event-index-label:hover,
.historical-event-index-hierarchy .historical-event-index-label:focus {
    color: var(--historical-event-branch-color, #23743a);
    text-decoration: underline;
}
.historical-event-index-date,
.historical-event-index-count {
    color: #777;
    font-size: 12px;
}
.historical-event-index-types {
    color: #888;
    font-size: 12px;
    line-height: 1.35;
}
/* Highlight direct matches only. Do not color ancestors of matches. */
.historical-event-index-hierarchy .historical-event-index-row.historical-event-index-match
.historical-event-index-label {
    background: #d5ffd5;
    border-radius: 2px;
    padding: 0 3px;
}
/* Keep the branch legend reachable in both index hierarchy and timeline.
   The timeline axis remains sticky immediately below it. */
.historical-event-index-legend-wrap--sticky {
    position: sticky;
    top: 0;
    z-index: 35;
    background: #fff;
}
.historical-event-index-legend-wrap--sticky .historical-event-branch-legend {
    margin: 0 0 8px;
}
.historical-event-timeline--index .historical-event-timeline-header {
    top: var(--historical-event-index-timeline-sticky-top, 0px);
    z-index: 30;
}
@media (max-width: 767px) {
    .historical-event-index-legend-wrap--sticky {
        margin-bottom: 8px;
    }
    .historical-event-index-legend-wrap--sticky .historical-event-branch-legend {
        margin-bottom: 0;
    }
}

/* Formerly static inline margins in ektEventsPage.jsp. */
.historical-event-index-result-count {
    margin-bottom: 16px;
}
.historical-event-index-hierarchy .historical-event-index-branch-section {
    margin-bottom: 18px;
}

/* =====================================================================
   HISTORICAL EVENTS INDEX - OR facets + full-width search and views
   These styles extend the shared historical-event styles above. Both
   facet panels have the same four-column, vertically ordered chip layout.
   ===================================================================== */
.historical-event-index-form {
    width: 100%;
    padding-bottom: 64px; /* Breathing room above the site footer in every view. */
}
.historical-event-index-search-row {
    display: flex; gap: 10px; align-items: center; margin: 10px 0 12px;
}
.historical-event-index-search-row .form-control {
    flex: 1 1 auto; min-width: 0; height: 36px;
}
.historical-event-index-search-row .search-button {
    flex: 0 0 auto; height: 36px; padding: 5px 17px;
}
.historical-event-index-navigation {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 15px; margin-bottom: 12px;
}
.historical-event-index-navigation .historical-event-index-result-count {
    margin: 0; flex: 1 0 auto;
}
/* The selector follows the filters, immediately before the rendered view. */
.historical-event-index-filters-region > .historical-event-index-view-switch {
    margin: 4px 0 12px;
}
.historical-event-index-type-panel,
.historical-event-index-legend-wrap .historical-event-branch-legend {
    padding: 10px 12px 12px; margin: 0 0 10px;
    border: 1px solid #e2e2e2; border-radius: 4px; background: #fafafa;
}
.historical-event-index-legend-wrap { display: flex; align-items: stretch; width: 100%; }
.historical-event-index-legend-wrap .historical-event-branch-legend { width: 100%; margin: 0 0 8px; }
.historical-event-index-type-panel .historical-event-filter-heading {
    margin: 0 0 9px; padding: 0; font-size: 13px;
    color: #555; font-weight: 600;
}
.historical-event-index-legend-wrap .historical-event-branch-legend-heading {
    margin: 0 0 9px; font-size: 13px; font-weight: 600;
}
.historical-event-filter-selected-note { color: #666; font-weight: normal; font-size: 12px; }
.historical-event-filter-options,
.historical-event-index-legend-wrap .historical-event-branch-legend-list {
    display: block; column-count: 4; column-gap: 24px;
    column-rule: 1px solid #e5e5e5; column-fill: balance;
}
.historical-event-filter-chip {
    position: relative; display: flex; align-items: flex-start;
    width: 100%; max-width: 100%; padding: 4px 7px; margin: 0 0 5px;
    gap: 6px; border: 1px solid #e1e1e1; border-radius: 3px;
    background: #fff; color: #444; font: inherit; font-size: 12px;
    line-height: 1.45; font-weight: 400; text-align: left;
    cursor: pointer; vertical-align: top; box-sizing: border-box;
    break-inside: avoid; page-break-inside: avoid; -webkit-column-break-inside: avoid;
    transition: background-color .12s ease, border-color .12s ease;
}
.historical-event-filter-chip:hover { background: #f0f4f5; border-color: #b8c4c8; }
.historical-event-filter-chip.is-selected {
    background: #e8f2ed; border-color: #3a8d61;
    box-shadow: inset 0 0 0 1px rgba(58, 141, 97, .16);
}
.historical-event-filter-chip-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.historical-event-filter-chip-count { flex: 0 0 auto; color: #777; font-size: 11px; }
.historical-event-filter-choice input[type="checkbox"] {
    position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;
}
.historical-event-filter-chip:focus-visible,
.historical-event-filter-choice:focus-within { outline: 2px solid #00870a; outline-offset: 2px; }
.historical-event-filter-all { font-weight: 600; color: #555; }
.historical-event-filter-branch { border-left: 3px solid var(--historical-event-filter-color, #888); }
.historical-event-filter-branch.is-selected {
    background: #f1f5f6; border-color: var(--historical-event-filter-color, #888);
    box-shadow: inset 0 0 0 1px var(--historical-event-filter-color, #888);
}
.historical-event-filter-branch .historical-event-branch-legend-swatch {
    flex: 0 0 10px; width: 10px; height: 10px; margin: 3px 0 0;
    border-radius: 2px; background-color: var(--historical-event-filter-color, #888);
}
.historical-event-index-filter-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: 8px; margin: 0 0 14px;
}
.historical-event-index-mobile-type-trigger,
.historical-event-branch-legend-mobile-label,
.historical-event-filter-panel-apply { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
    .historical-event-filter-options,
    .historical-event-index-legend-wrap .historical-event-branch-legend-list { column-count: 2; }
}
@media (max-width: 767px) {
    .historical-event-index-search-row { gap: 6px; }
    .historical-event-index-search-row .search-button { padding: 5px 10px; }
    .historical-event-index-navigation { display: block; }
    .historical-event-index-navigation .historical-event-index-result-count { margin-bottom: 9px; }
    .historical-event-index-filters-region > .historical-event-index-view-switch { flex-wrap: nowrap; }
    .historical-event-index-filters-region > .historical-event-index-view-switch .btn { flex: 1 1 0; min-width: 0; padding: 6px 5px; font-size: 12px; }
    /* One compact sticky row for BOTH filters in all three index views. */
    .historical-event-index-legend-wrap,
    .historical-event-index-legend-wrap--sticky {
        position: sticky; top: 0; z-index: 45; display: flex; align-items: stretch;
        gap: 5px; width: max-content; max-width: 100%; padding: 4px 0;
        margin: 0 0 8px; background: #fff;
    }
    .historical-event-index-mobile-type-trigger {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 6px 10px; margin: 0; background: #fafafa;
        border: 1px solid #dedede; border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0,0,0,.12);
        font-size: 12px; font-weight: 600; color: #555; cursor: pointer;
    }
    .historical-event-index-legend-wrap .historical-event-branch-legend {
        position: relative; width: auto; padding: 6px 10px; margin: 0;
        background: #fafafa; box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }
    .historical-event-index-legend-wrap .historical-event-branch-legend-heading {
        display: flex; align-items: center; gap: 5px; margin: 0;
        min-width: 22px; min-height: 22px; justify-content: center;
    }
    .historical-event-index-legend-wrap .historical-event-branch-legend-heading-label { display: none; }
    .historical-event-index-legend-wrap .historical-event-branch-legend-menu-icon { display: inline-block; font-size: 15px; }
    .historical-event-branch-legend-mobile-label { display: inline; font-size: 12px; }
    .historical-event-index-legend-wrap .historical-event-branch-legend-toggle-hint { display: none; }
    .historical-event-index-legend-wrap .historical-event-branch-legend-list {
        display: block; position: absolute; top: calc(100% + 3px); left: 0;
        z-index: 70; width: min(360px, calc(100vw - 24px)); max-height: 53vh;
        box-sizing: border-box; overflow-y: auto; padding: 10px;
        background: #fff; border: 1px solid #dedede; border-radius: 4px;
        box-shadow: 0 3px 12px rgba(0,0,0,.18); column-count: 1; column-rule: none;
    }
    .historical-event-index-legend-wrap .historical-event-filter-panel-apply {
        display: block; position: absolute; top: calc(100% + min(53vh, 420px) + 1px);
        left: 0; z-index: 71; padding: 6px 10px;
        /* The global Apply button below the toolbar remains available. */
    }
    /* Overlay for the type facet: never consumes vertical space when closed. */
    .historical-event-index-type-panel {
        display: none; position: fixed; left: 12px; top: 70px; z-index: 90;
        width: min(360px, calc(100vw - 24px)); max-height: 66vh;
        padding: 10px; overflow-y: auto; box-sizing: border-box;
        border-color: #ccc; background: #fff;
        box-shadow: 0 3px 12px rgba(0,0,0,.18);
    }
    .historical-event-index-type-panel.is-open { display: block; }
    .historical-event-index-type-panel .historical-event-filter-options { column-count: 1; column-rule: none; }
    .historical-event-index-type-panel .historical-event-filter-panel-apply {
        display: block; position: sticky; bottom: -10px;
        padding: 8px 0 0; background: #fff;
    }
    .historical-event-index-filter-actions { justify-content: flex-start; margin-bottom: 10px; }
    .historical-event-index-filter-actions .btn { font-size: 12px; }
}

/* Keep branch chips and their mobile Apply control in a single popup. */
.historical-event-filter-branch-menu { display: block; }
@media (max-width: 767px) {
    .historical-event-index-legend-wrap .historical-event-filter-branch-menu {
        position: absolute; top: calc(100% + 3px); left: 0; z-index: 72;
        width: min(360px, calc(100vw - 24px)); max-height: 66vh;
        padding: 10px; box-sizing: border-box; overflow-y: auto;
        border: 1px solid #dedede; border-radius: 4px; background: #fff;
        box-shadow: 0 3px 12px rgba(0,0,0,.18);
    }
    .historical-event-index-legend-wrap .historical-event-branch-legend-list {
        position: static; width: auto; max-height: none; overflow: visible;
        padding: 0; border: 0; border-radius: 0; box-shadow: none;
        background: transparent;
    }
    .historical-event-index-legend-wrap .historical-event-filter-panel-apply {
        display: block; position: sticky; top: auto; bottom: -10px;
        left: auto; z-index: 2; padding: 8px 0 0; background: #fff;
    }
}

/* =====================================================================
   HISTORICAL EVENTS INDEX - layout and mobile map/filter layering
   ===================================================================== */
/* Leaflet controls/panes have large internal z-index values; isolate them
   in the index map only so the sticky mobile filter menus paint above them.
   This does not affect map interaction or the individual-event map. */
.historical-event-index-form #historicalEventMapPanel.historical-event-map-section--index {
    position: relative;
    z-index: 0;
}

@media (max-width: 767px) {
    .historical-event-index-form {
        padding-bottom: 44px;
    }
    /* Both selectors remain in front of the index Leaflet map. */
    .historical-event-index-legend-wrap {
        z-index: 45;
    }
    .historical-event-index-type-panel.is-open {
        z-index: 90;
    }
}


/* =====================================================================
   HISTORICAL EVENTS INDEX - combined Filters panel
   Sections share one visual shell. Do not enclose the sticky legend in a
   short-lived card: its nearest containing region must extend through the
   active view so position:sticky continues to work while scrolling.
   ===================================================================== */
.historical-event-index-filters-start {
    padding: 12px 14px 0;
    border: 1px solid #dedede;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #fafafa;
}
.historical-event-index-filters-title {
    margin: 0 0 12px;
    padding: 0 0 9px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #444;
}
.historical-event-index-filters-start .historical-event-index-type-panel {
    padding: 0 0 10px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.historical-event-index-filters-region > .historical-event-index-legend-wrap {
    padding: 0 14px 0;
    margin: 0;
    border-left: 1px solid #dedede;
    border-right: 1px solid #dedede;
    background: #fafafa;
    box-sizing: border-box;
}
.historical-event-index-filters-region > .historical-event-index-legend-wrap .historical-event-branch-legend {
    padding: 10px 0 8px;
    margin: 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.historical-event-index-filters-region > .historical-event-index-filter-actions {
    padding: 4px 14px 12px;
    margin: 0 0 18px;
    border: 1px solid #dedede;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    background: #fafafa;
}
@media (max-width: 767px) {
    /* The types overlay must retain its floating white card appearance. */
    .historical-event-index-filters-start .historical-event-index-type-panel.is-open {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #fff;
    }
    .historical-event-index-filters-start {
        padding: 10px 12px 0;
    }
    .historical-event-index-filters-title {
        margin-bottom: 0;
        padding-bottom: 9px;
        border-bottom: 0;
    }
    .historical-event-index-filters-region > .historical-event-index-legend-wrap {
        padding: 3px 12px 9px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-left: 1px solid #dedede;
        border-right: 1px solid #dedede;
        background: #fafafa;
    }
    .historical-event-index-filters-region > .historical-event-index-legend-wrap .historical-event-branch-legend {
        position: relative;
        padding: 6px 10px;
        border: 1px solid #dedede;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }
    .historical-event-index-filters-region > .historical-event-index-filter-actions {
        padding: 4px 12px 10px;
        margin-bottom: 14px;
    }
}

/* =====================================================================
   HISTORICAL EVENTS INDEX - keep filter actions with the sticky branches.
   Desktop hierarchy/timeline only. On mobile the existing compact filter
   toolbar and Apply buttons inside the facet popovers remain unchanged.
   --historical-event-index-apply-sticky-top is set to the live height of
   the branch legend by ektEventsPage.jsp (also used to offset the axis).
   ===================================================================== */
@media (min-width: 768px) {
    .historical-event-index-legend-wrap--sticky + .historical-event-index-filter-actions {
        position: sticky;
        top: var(--historical-event-index-apply-sticky-top, 0px);
        z-index: 34; /* below the branch legend, above the timeline header */
    }
}

/* Rich HTML definitions of historical events (full page and event popovers). */
.historical-event-rich-text > :last-child {
    margin-bottom: 0;
}



/* Event popover previews only: retain the original three-line ellipsis. */
.event-brief-definition.historical-event-rich-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/*
 * Definitions now contain rich HTML with nested paragraphs, lists and headings.
 * In the short popover preview, lay these blocks out inline so line-clamp
 * counts visual text lines reliably. The full event page is unaffected.
 */
.event-brief-definition.historical-event-rich-text p,
.event-brief-definition.historical-event-rich-text div,
.event-brief-definition.historical-event-rich-text blockquote,
.event-brief-definition.historical-event-rich-text h2,
.event-brief-definition.historical-event-rich-text h3,
.event-brief-definition.historical-event-rich-text h4,
.event-brief-definition.historical-event-rich-text ul,
.event-brief-definition.historical-event-rich-text ol,
.event-brief-definition.historical-event-rich-text li {
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
}


/* Preserve a space between adjacent paragraphs/list entries. */
.event-brief-definition.historical-event-rich-text p:not(:last-child)::after,
.event-brief-definition.historical-event-rich-text li:not(:last-child)::after,
.event-brief-definition.historical-event-rich-text blockquote:not(:last-child)::after,
.event-brief-definition.historical-event-rich-text h2:not(:last-child)::after,
.event-brief-definition.historical-event-rich-text h3:not(:last-child)::after,
.event-brief-definition.historical-event-rich-text h4:not(:last-child)::after {
    content: " ";
    white-space: pre;
}


/* =====================================================================
   HISTORICAL EVENT DETAIL - compact header, portrait thumbnail and exports.
   Scoped to the event page; index and popup styles are intentionally untouched.
   ===================================================================== */
.historical-event-page-intro {
    position: relative;
    margin-top: 4px;
}

.historical-event-page-intro .historical-event-page-header {
    margin-bottom: 20px;
}

.historical-event-page-intro .historical-event-page-title {
    color: #1677c8;
}

/* Sharing sits above the thumbnail, at the upper-right of the hero area. */
.historical-event-page-intro > .historical-event-page-share {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 2;
    display: flex;
    gap: 5px;
}

/* If no thumbnail is shown, allow room for the sharing buttons. */
.historical-event-page-intro:not(.historical-event-page-intro--with-thumbnail)
.historical-event-page-title {
    padding-right: 116px;
}

.historical-event-page-intro .historical-event-identity {
    color: #505050;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    gap: 8px 20px;
    margin: 7px 0 12px;
}

.historical-event-page-intro .historical-event-identity-item > i {
    color: #1677c8;
}

.historical-event-page-resources {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
}

.historical-event-page-semantics-icon {
    height: 18px;
    margin-bottom: 2px;
    vertical-align: middle;
}

.historical-event-page-rdf-links {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 7px;
    font-size: 12px;
    font-weight: 500;
}

.historical-event-page-rdf-links a {
    color: #00870a;
    text-decoration: none;
}

.historical-event-page-rdf-separator {
    color: #aaa;
}

/* The source text stays on the left, directly below the event header. */
.historical-event-page-primary .historical-event-definition {
    margin-top: 4px;
}

/* Leave sharing controls unobstructed, and preserve portrait proportions. */
.historical-event-page-aside {
    padding-top: 36px;
}

.historical-event-page-aside .record-view-thumbnail {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 380px !important;
    object-fit: contain;
}


@media (max-width: 991px) {
    .historical-event-page-intro .historical-event-page-title {
        padding-right: 116px;
    }
    .historical-event-page-aside {
        padding-top: 18px;
    }
    .historical-event-page-aside .record-view-thumbnail {
        max-height: 350px !important;
    }
}


/* Shared share-button placement for any SearchCulture entity page.
   Add sc-share-anchor to the page's header/hero container and place
   sc-share-corner as a direct child. This prevents an accidental
   absolute position relative to the whole document. */
.sc-share-anchor {
    position: relative;
}

.sc-share-anchor > .sc-share-corner {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 2;
}

/* SearchCulture shared Facebook / LinkedIn / Copy link controls.
   Include once in the common project_style.css. --sc-share-color may be overridden per page. */
.sc-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sc-share .sc-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--sc-share-color, #41ad49);
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.sc-share .sc-share-button:hover {
    background: #d6e9c6;
    color: #00870a!important;
    text-decoration: none !important;
}

.sc-share .sc-share-button:focus-visible {
    outline: 2px solid #41ad49;
    outline-offset: 2px;
}

.sc-share .sc-share-status {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 20;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #d6e3ef;
    background: #fff;
    color: #3d3d3d;
    font-size: 12px;
    line-height: 1.4;
    font-weight: normal;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}

.sc-share .sc-share-status.is-visible {
    display: block;
}

.undated-badge {
    display: inline-block;
    background-color: #ffe29a;
    color: #6b4a00;
    border: 1px solid #e9c46a;
    border-radius: 3px;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}
