@import '_vars.less?2';

body {
	// background-color: #f5f5f5;
	background-color: #fff;
}
#nav {
	// background-color: #f5f5f5;
	background-color: #fff;
	height: 100px;
}

#page {
	@media @m1 { padding: 100px 20px 0; }
	@media @m2 { padding: 110px 40px 0; }
	@media @m345 { padding: 130px 40px 0; }
	@media @m6 { padding: 150px 40px 0; }
	@media @m3456 { padding-bottom: 130px; min-height: 100vh; }
	position: relative;
	z-index: 1;
}

.breadcrumb {
	color: #555;
	margin-bottom: 15px;
	font-size: 12px;
	max-width: 600px;
	a {
		color: #555;
		text-decoration: underline;
	}
	.separator {
		margin: 0 2px;
		color: @green;
	}
}

#subpage {
	.pw {
		@media @m3456 {
			display: flex;
			gap: 40px;
		}
	}
	.content {
		width: 100%;
	}
	.submenu {
		font-size: 16px;
		@media @m12 {
			margin-top: 30px;
			border-top: 1px solid #777;
			padding-top: 30px;
		}
		@media @m345 {
			width: 350px;
			padding-top: 8px;
			padding-right: 80px;
		}
		@media @m6 {
			width: 350px;
		}
		& > ul > li > a {
			margin-bottom: 5px;			
		}
		ul ul ul ul li a {
			font-size: 80%;
			line-height: 1.45em;
			padding: 4px 0;
		}
		ul ul ul {
			margin-left: 10px;
			margin-bottom: 5px;
		}
		& > ul > li {
			margin-bottom: 5px;
		}
		li a {
			display: inline-block;
			padding: 4px 0;
			line-height: 1.3em;
		}
		& > ul > li > a {
			font-weight: 600;
		}
		ul:empty {
			display: none !important;
		}
		a.active {
			color: @green;
		}
		a.invisible {
			opacity: 0.3;
		}
		a.blocked {
			color: #b00;
		}
		a:hover {
			text-decoration: underline;
		}
	}
	.department-logo {
		display: block;
		float: right;
		width: 60px;
		margin-top: 8px;
	}
	h1 {
		max-width: 700px;
		@media @m12 { font-size: 36px; margin-bottom: 25px; }
		@media @m3456 { font-size: 42px; margin-bottom: 40px; }
		line-height: 1.2em;
		font-weight: 700;
		color: @green;
	}
	&:after {
		.clear;
	}
	.subpages-list {
		li {
			// width: 33.3%;
			// display: inline-block;
			display: block;
			vertical-align: top;
			margin-bottom: 15px;
			font-size: 18px;
			line-height: 1.2em;
			text-decoration: underline;
			a:hover {
				color: @green;
			}
		}
	}
}

body.submenuSticked .submenu {
	position: fixed !important;
	top: 90px !important;
	left: 0;
	margin-left: 0 !important;
}

.description {
	.leaders {
		td {
			padding-right: 30px;
			color: #666;
		}
		a {
			color: #000;
			text-decoration: none;
			&:hover { text-decoration: underline; }
		}
	}
}

.mce-content-body .gallery {
	font-size: 0;
	margin-bottom: 100px;
	img {
		display: inline-block;
		height: 100px;
		margin: 0 12px 12px 0;
	}
	figure {
		display: none;
	}
}


.modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
	background: rgba(225,225,225,0);
	transition: background-color 0.4s @easing 0.1s;
	.content {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%,-50%) scale(0.97);
		width: 650px;
		height: 650px;
		background-color: #fff;
		padding: 50px;
		z-index: 2;
		transition: all 0.3s @easing;
		opacity: 0;
		transition-property: opacity, transform;
		.close {
			color: #555;
			cursor: pointer;
			&:hover {
				text-decoration: underline;
				color: #000;
			}
		}
	}
	.title {

	}
	h2 {
		color: @green;
		font-weight: 700;
		margin: 0 0 40px;
		font-size: 28px;
	}
	h3 {
		margin: 20px 0 8px;
	}
	textarea {
		width: 100%;
		height: 70px;
		resize: none;
		&.bigger {
			height: 120px;
		}
		padding: 4px 8px;
		border: 1px solid #555;
		border-radius: 0;
		background-color: #fff;
	}
	button {
		margin-top: 35px;
		border: 0;
		-webkit-appearance: none;
		border-radius: 0;
		background-color: @green;
		margin-right: 20px;
		&:hover {
			text-decoration: underline;
		}
	}
	& > .close {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
	}
}

body.modalVisible {
	.modal {
		background: rgba(225,225,225,0.8);
		transition-delay: 0s;
		.content {
			opacity: 1;
			transform: translate(-50%,-50%) scale(1);
			transition-delay: 0.1s;
		}
	}
}



#edit {
	@media @m123 {
		display: none;
	}
	@media @m456 {
		position: fixed;
		bottom: 30px;
		right: 40px;
		background-color: @orange;
		font-size: 18px;
	    cursor: pointer;
	    font-weight: 700;
	    color: #fff;
	    padding: 6px 12px 8px;
		z-index: 999;
		&:hover {
			background-color: #000;
		}
	}
}


.translation-note {
	background: lighten(@orange, 40%);
	padding: 20px !important;
	border-radius: 5px;
	text-align: center;
}





footer {
	@media @m3456 {
		position: absolute;
		bottom: 0;
		left: 40px;
		right: 40px;
		margin-top: -130px;
		height: 130px;
		padding: 18px 10px 30px;
	}
}