/*
 * SSPC ΕΣΠΑ & Accessibility
 * Front-page-only styles by Shyita eBusiness Agency.
 */

.shyita-skip-link {
	position: fixed;
	top: 0;
	left: 1rem;
	z-index: 100000;
	transform: translateY(-140%);
	padding: 0.75rem 1rem;
	border-radius: 0 0 0.35rem 0.35rem;
	background: #ffffff !important;
	color: #003399 !important;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.shyita-skip-link:focus {
	transform: translateY(0);
	outline: 3px solid #ff5100;
	outline-offset: 2px;
}

.shyita-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.shyita-sspc-espa-active #carousel-hestia-generic .page-header,
.shyita-sspc-espa-active .shyita-espa-hero-host {
	position: relative;
}

.shyita-espa-banner {
	--shyita-espa-scroll-opacity: 1;
	position: absolute;
	left: clamp(1rem, 3vw, 3rem);
	bottom: clamp(1rem, 4vh, 2.75rem);
	z-index: 5;
	width: min(500px, calc(100% - 2rem));
	opacity: var(--shyita-espa-scroll-opacity);
	transition: opacity 140ms linear, transform 140ms linear;
}

.shyita-espa-banner[hidden] {
	display: none !important;
}

.shyita-espa-banner__trigger {
	display: block;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.5rem !important;
	border: 2px solid rgba(0, 51, 153, 0.24) !important;
	border-radius: 0.45rem !important;
	background: #ffffff !important;
	box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24) !important;
	cursor: pointer;
	line-height: 0 !important;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.shyita-espa-banner__trigger:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3) !important;
}

.shyita-espa-banner__trigger:focus,
.shyita-espa-banner__trigger:focus-visible {
	outline: 4px solid #ff5100;
	outline-offset: 3px;
}

.shyita-espa-banner__trigger img {
	display: block;
	width: 100% !important;
	height: auto;
	margin: 0 !important;
}

.shyita-espa-dialog {
	box-sizing: border-box;
	width: min(880px, calc(100% - 2rem));
	max-width: 880px;
	max-height: min(88vh, 880px);
	margin: auto;
	padding: 0 !important;
	border: 0;
	border-radius: 0.75rem;
	background: #ffffff !important;
	color: #202124;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
	overflow: hidden;
}

.shyita-espa-dialog[open] {
	display: block;
}

.shyita-espa-dialog::backdrop {
	background: rgba(4, 15, 34, 0.72);
	backdrop-filter: blur(2px);
}

.shyita-espa-dialog__panel {
	box-sizing: border-box;
	position: relative;
	max-height: min(88vh, 880px);
	padding: clamp(1.25rem, 4vw, 2.5rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.shyita-espa-dialog__close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -0.5rem -0.5rem 0.25rem 0.75rem;
	padding: 0 !important;
	border: 2px solid #003399 !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #003399 !important;
	font: 700 2rem/1 Arial, sans-serif;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
}

.shyita-espa-dialog__close:hover {
	background: #003399 !important;
	color: #ffffff !important;
}

.shyita-espa-dialog__close:focus,
.shyita-espa-dialog__close:focus-visible {
	outline: 4px solid #ff5100;
	outline-offset: 3px;
}

.shyita-espa-dialog__mark {
	display: block;
	width: min(100%, 680px);
	height: auto;
	margin: 0 auto 1.75rem;
}

.shyita-espa-dialog h2,
.shyita-espa-dialog h3 {
	clear: both;
	color: #003399 !important;
	font-family: inherit;
	text-transform: none;
}

.shyita-espa-dialog h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.55rem, 4vw, 2.1rem);
	line-height: 1.2;
}

.shyita-espa-dialog h3 {
	margin: 0 0 0.65rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.shyita-espa-dialog p {
	color: #252a31;
	font-size: 1rem;
	line-height: 1.68;
}

.shyita-espa-dialog__summary {
	margin: 0 0 1.5rem;
}

.shyita-espa-dialog__language {
	padding: 1.25rem 0;
	border-top: 1px solid #d8dde7;
}

.shyita-espa-dialog__language p:last-child {
	margin-bottom: 0;
}

body.shyita-espa-modal-open {
	overflow: hidden;
}

.shyita-hero-title-text {
	display: block;
}

#main-content:focus {
	outline: none;
}

/* Correct Hestia’s low-contrast footer text on the scoped homepage. */
.shyita-sspc-espa-active footer.footer.footer-black.footer-big .widget,
.shyita-sspc-espa-active footer.footer.footer-black.footer-big .widget p,
.shyita-sspc-espa-active footer.footer.footer-black.footer-big .widget h3,
.shyita-sspc-espa-active footer.footer.footer-black.footer-big .widget h4,
.shyita-sspc-espa-active footer.footer.footer-black.footer-big .textwidget {
	color: #f1f3f5 !important;
}

@media (max-width: 767px) {
	.shyita-espa-banner {
		left: 1rem;
		bottom: 1.15rem;
		width: calc(100% - 2rem);
	}

	.shyita-espa-banner__trigger {
		padding: 0.35rem;
	}

	.shyita-espa-dialog {
		width: calc(100% - 1rem);
		max-height: calc(100dvh - 1rem);
		border-radius: 0.55rem;
	}

	.shyita-espa-dialog__panel {
		max-height: calc(100dvh - 1rem);
		padding: 1.25rem;
	}

	.shyita-espa-dialog__mark {
		margin-top: 0.5rem;
		margin-bottom: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shyita-espa-banner,
	.shyita-espa-banner__trigger {
		transition: none;
	}
}

@media print {
	.shyita-espa-banner,
	.shyita-espa-dialog__close,
	.shyita-espa-dialog::backdrop {
		display: none !important;
	}

	.shyita-espa-dialog[open],
	.shyita-espa-dialog__panel {
		position: static;
		display: block;
		width: 100%;
		max-width: none;
		max-height: none;
		box-shadow: none;
		overflow: visible;
	}
}
