/*
 * ΣΕΕ 1924 — site styles.
 *
 * Rebuilt to match the Astra + Elementor site as it looked in November 2026; the measurements in
 * the comments are what the old pages rendered at 1440px wide.
 *
 *   1. Tokens          5. Sidebar menu       9. Cards, search, listings
 *   2. Base            6. Section buttons   10. Footer
 *   3. Header          7. Content           11. Home page
 *   4. Layout          8. Posts, activities 12. Mobile menu
 *                                          13. Cookie notice
 */

/* ==== 1. Tokens ============================================================================ */

:root {
	--blue: #183696;
	--blue-dark: #0a257c;
	--crimson: #a3053b;
	--pink: #ff0057;
	--sky: #6ec1e4;
	--ink: #3f4254;
	--ink-strong: #323232;
	--text: #7a7a7a;
	--text-base: #334155;
	--muted: #adadad;
	--page: #f7f7fe;
	--panel: #f1f5fd;
	--white: #fff;
	--cookie-blue: #0c4da2; /* the cookie notice's buttons, kept from GDPR Cookie Compliance */

	/* Poppins has no Greek letters; Greek falls through to Arial, as it always has here. */
	--font-display: "Poppins", Arial, "Helvetica Neue", Helvetica, sans-serif;
	--font-text: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
	--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

	--radius: 4px;
	--header-offset: var(--wp-admin--admin-bar--height, 0px);
}

/* ==== 2. Base ============================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--text-base);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.65;
	overflow-wrap: break-word; /* long addresses wrap instead of widening a phone screen (Astra) */
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--crimson);
}

.icon {
	display: block;
	flex: none;
	width: 1em;
	height: 1em;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--white);
	color: var(--crimson);
	font-weight: 600;
}

.skip-link:focus {
	top: 8px;
}

:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: 0;
	border-radius: 3px;
	background: var(--crimson);
	color: var(--white);
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--white);
	color: var(--crimson);
}

/* ==== 3. Header ============================================================================ */

/* Desktop: the old Elementor section's six columns, in its percentages, so the bar scales with
   the window as before: the logo is 71% of the first column wide and sets the bar's height (107px
   at 1440px wide, 143px at 1920px), under a 5px crimson rule. The columns add up to 97.3%. */
.site-header {
	position: sticky;
	top: var(--header-offset);
	z-index: 100;
	background: var(--blue);
	border-bottom: 5px solid var(--crimson);
}

.site-header__bar {
	display: grid;
	grid-template-columns: 12.006% 23.038% 40.853% 5.394% 13.917% 2.108%;
	align-items: center;
}

.site-header__bar .site-logo {
	grid-column: 1;
	justify-self: center;
	width: 71%;
}

.site-header__bar .site-logo__img {
	width: 100%;
}

.site-header__search {
	grid-column: 2;
}

/* The search label takes 30% of the search column, the field the rest beside the button. */
.site-header__search .site-search__label {
	flex-basis: 30.005%;
}

.site-header__search .site-search__input {
	flex: 1 1 auto;
	width: auto;
}

.site-title {
	grid-column: 3;
	margin: 0;
	color: var(--white);
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.site-header__contact {
	grid-column: 5;
	justify-self: start;
}

/* The icon sat at the top of a 35px text line, which the bar centres; it keeps its 28px even
   where the narrow column is smaller. */
.site-header__bar .site-header__social {
	grid-column: 6;
	justify-self: center;
	padding-bottom: 7px;
}

.site-header__bar .site-header__social .icon {
	max-width: none;
}

.site-logo {
	display: block;
	line-height: 0;
}

.site-logo__img {
	display: block;
	width: 121px;
	height: auto;
}

.site-header__social {
	display: block;
	color: var(--white);
	font-size: 28px;
	line-height: 0;
}

.site-header__social:hover {
	color: var(--sky);
}

/* The search: crimson label box (99 × 40), white field (196), white button with a crimson glass. */
.site-search {
	display: flex;
	align-items: stretch;
	height: 40px;
}

.site-search__label {
	display: flex;
	flex: 0 0 99px;
	align-items: center;
	justify-content: center;
	background: var(--crimson);
	color: var(--white);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.site-search__input {
	flex: 0 0 196px;
	width: 196px;
	min-width: 0;
	margin: 0;
	padding: 0 11px;
	border: 0;
	border-radius: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
}

.site-search__input:focus {
	outline: 0;
}

.site-search:focus-within {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
}

.site-search__submit {
	display: flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: var(--white);
	color: var(--crimson);
	font-size: 16px;
	cursor: pointer;
}

/* The old button used Font Awesome's solid glass; a heavier stroke reads the same. */
.site-search__submit .icon {
	stroke-width: 3;
}

/* Tablet and phone: menu button, small logo, Facebook, each centred in the old phone header's
   30% / 40% / 30% columns. */
.site-header__compact {
	display: none;
	grid-template-columns: 30% 40% 30%;
	justify-items: center;
	align-items: center;
	min-height: 47px;
	padding: 7px 0;
}

.site-header__menu-toggle {
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	font-size: 24px;
	cursor: pointer;
}

.site-logo--compact .site-logo__img {
	width: auto;
	height: 33px;
}

.site-header__compact .site-header__social {
	position: relative;
	top: -3px; /* the old icon sat a little above the middle */
	font-size: 23px;
	color: var(--white);
}

@media (max-width: 1024px) {
	.site-header {
		border-bottom: 0;
	}

	.site-header__bar {
		display: none;
	}

	.site-header__compact {
		display: grid;
	}
}

/* ==== 4. Layout ============================================================================ */

/* Astra's container: 1320 wide with 20px gutters; sidebar 20% (256 = 196 menu + 60 gap), content the rest. */
.layout {
	display: flex;
	align-items: flex-start;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}

/* The menu stays in view on long pages (Astra's sticky sidebar), 16px below the sticky header,
   whose height follows the window width (7.54vw + 5px). */
.layout__sidebar {
	position: sticky;
	top: calc(var(--header-offset) + 7.54vw + 21px);
	flex: 0 0 20%; /* Astra's sidebar width: 256px of the 1280px container */
	min-width: 0;
	margin: 16px 0 40px;
	padding-right: 60px;
}

.layout__main {
	flex: 1 1 auto;
	min-width: 0;
	margin: 1em 0; /* 16px above and before the footer */
	padding-left: 10px;
}

@media (max-width: 1024px) {
	.layout {
		display: block;
	}

	.layout__sidebar {
		display: none;
	}
}

/* Below its 921px breakpoint Astra switched the page to white and set the root font size to
   91.2%, so body text became 14.592px on a 24.08px line (1.65em). The (empty) sidebar then sat
   under the content, which put 4.5em between the content and the footer. */
@media (max-width: 921px) {
	body {
		background: var(--white);
		font-size: 14.592px;
	}

	.layout__main {
		margin-bottom: 4.5em;
	}
}

/* ==== 5. Sidebar menu ====================================================================== */

.main-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu__list li {
	margin: 0 0 12px;
}

.layout__sidebar .main-menu__list li:last-child {
	margin-bottom: 0;
}

.main-menu__list a {
	display: block;
	padding: 6px 20px;
	border-radius: var(--radius);
	background: var(--crimson);
	color: var(--white);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.main-menu__list a:hover,
.main-menu__list .current-menu-item > a,
.main-menu__list .current-menu-ancestor > a,
.main-menu__list .current-page-ancestor > a,
.main-menu__list .current_page_parent > a {
	background: var(--white);
	color: var(--crimson);
}

/* ==== 6. Section buttons =================================================================== */

.section-nav {
	padding: 1em 0; /* 16px; 14.6px on phones, with the smaller body text */
}

/* The old lists kept the theme's 20px list indent, so the centred row sits 10px right of centre. */
.section-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0 0 0 20px;
	list-style: none;
}

/* The buttons of a row are equally tall (a two-line label makes the whole row taller). */
.section-nav__item {
	display: flex;
	margin: 10px;
}

.section-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 13px 38px;
	border-radius: var(--radius);
	background: var(--crimson);
	color: var(--white);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.section-nav a:hover,
.section-nav__item.is-active a {
	background: var(--white);
	color: var(--crimson);
}

/* The old current button showed a faint crimson edge (its crimson list item behind it). */
.section-nav__item.is-active a {
	box-shadow: inset 0 0 0 1px rgba(163, 5, 59, 0.15);
}

/* Each old section menu had its own button padding. «Χρηματοδοτούμενα Έργα» also sat 15px
   higher and 20px closer to the page. */
.section-nav--xrimatodoumena-erga {
	margin-bottom: -4px;
	padding: 1px 0 0;
}

.section-nav--xrimatodoumena-erga a {
	padding: 13px;
}

.section-nav--diethneis-sxeseis a {
	padding: 13px 48px;
}

.section-nav--vivliothiki a {
	padding: 13px 42px;
}

/* «Εκδηλώσεις»: the twelve decades in two centred rows of six. */
.section-nav--ekdiloseis {
	max-width: 881px;
	margin-inline: auto;
	padding-inline: 55px;
}

.section-nav--ekdiloseis .section-nav__list {
	row-gap: 10px;
}

.section-nav--ekdiloseis a {
	padding: 13px 15px;
}

.section-nav--ekdiloseis .section-nav__item:nth-child(n+7) a {
	padding: 13px; /* the second row was a separate menu, with less padding */
}

/* Many children (the 18 folders of «Ιστορικό αρχείο»): six columns, buttons at their own width. */
.section-nav--grid .section-nav__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 146px));
	justify-content: center;
	padding: 0;
}

.section-nav--grid .section-nav__item {
	align-self: center;
	justify-self: start;
	margin: 9px 10px 9px 30px;
}

.section-nav--grid a {
	padding: 13px 12px;
}

.section-nav--grid a.is-two-lines {
	padding-block: 4px;
}

/* «Ιστορικό αρχείο» was six hand-made menus, one per column, each with its own button width. */
.section-nav--istoriko-arxeio {
	padding: 17px 0;
}

.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+1) a { width: 113px; }
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+2) a { width: 134px; }
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+3) a { width: 118px; }
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+4) a { width: 120px; }
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+5) a { width: 110px; }
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n) a { width: 134px; }

.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n+2),
.section-nav--istoriko-arxeio .section-nav__item:nth-child(6n) {
	margin-left: 21px;
}

/* Phones keep the buttons' own padding (as before); the archive folders go two to a row, the
   last two each on a row of their own. */
@media (max-width: 767px) {
	.section-nav--grid .section-nav__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-nav--istoriko-arxeio .section-nav__item:nth-child(n+17) {
		grid-column: 1 / -1;
		justify-self: center;
		margin-left: 10px;
	}
}

/* ==== 7. Content =========================================================================== */

.page-title,
.entry-title {
	margin: 20px 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.entry-content {
	color: var(--text);
	font-family: var(--font-text);
}

/* Block content (pages already converted from Elementor). */
.entry-content > :where(p, ul, ol) {
	text-align: justify;
}

.entry-content :where(h2, h3, h4) {
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.3;
}

.entry-content :where(img) {
	border-radius: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content :where(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid #d3d3d3;
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: #173a50;
	color: var(--white);
	font-weight: 700;
}

@media (max-width: 767px) {
	.page-title,
	.entry-title {
		font-size: 24px;
	}
}

/* ==== 8. Posts, activities ================================================================= */

/* Spacing as measured on the old templates: post title 25px below the header rule, 42px above
   the cover, 52px from cover to date, 21px from date to text. Activities sit 58px down. */
.entry--post .entry-title,
.entry--activity .entry-title {
	margin: 25px 0 42px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
}

.entry--activity {
	margin: 58px 0;
}

.entry--activity .entry-title {
	margin: 0 0 20px;
}

.entry-thumb {
	max-width: 643px;
	margin: 0 auto 52px;
}

.entry-thumb img {
	display: block;
	width: 100%;
}

.entry-meta {
	margin: 0 0 21px;
	color: var(--ink-strong);
	font-family: var(--font-display);
	font-size: 18px;
}

.entry--activity .entry-meta {
	margin-bottom: 20px;
}

.entry--post .entry-content {
	color: var(--ink-strong);
	font-family: var(--font-display);
	font-size: 18px;
}

.entry--activity .entry-content {
	color: var(--ink-strong);
	font-size: 18px;
	line-height: 26.4px;
	text-align: justify;
}

@media (max-width: 767px) {
	.entry--post .entry-title,
	.entry--activity .entry-title {
		font-size: 24px;
	}

	.entry--activity {
		margin: 24px 0;
	}
}

/* ==== 9. Cards, search, listings =========================================================== */

.cards {
	display: grid;
	gap: 35px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 24px;
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.card__title a {
	color: var(--crimson);
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
}

.card__excerpt {
	margin: 0;
	color: #777;
	font-family: var(--font-text);
	font-size: 14px;
	line-height: 1.6;
}

/* Button on the right, date underneath on the left, as the old search cards. */
.card__footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.card__more {
	order: -1;
	align-self: flex-end;
}

.card__date {
	color: var(--muted);
	font-family: var(--font-display);
	font-size: 12px;
}

.button--small {
	padding: 9px 16px;
	font-size: 12px;
	text-transform: uppercase;
}

.search-page {
	padding: 100px 20px;
	background: #eee;
}

.search-page__inner {
	max-width: 750px;
	margin: 0 auto;
}

/* The old heading was English ("Search Results for:") at 60px on two lines; the Greek label is
   twice as long, so it is set smaller to keep the label on one line and the query on the next. */
.search-page__title {
	margin: 0 0 40px;
	color: #000;
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.search-page__title span {
	display: block;
	font-size: 60px;
}

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

.search-page .site-search {
	justify-content: center;
}

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	padding: 6px 13px;
	border-radius: 2px;
	color: #173a50;
	font-size: 18px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: #173a50;
	color: var(--white);
}

@media (max-width: 1024px) {
	.search-page {
		padding: 100px 25px;
	}
}

@media (max-width: 767px) {
	.search-page {
		padding: 50px 15px;
	}

	.search-page__title {
		font-size: 24px;
	}

	.search-page__title span {
		font-size: 34px;
	}
}

/* ==== 10. Footer =========================================================================== */

.site-footer {
	background: var(--blue);
	color: var(--white);
}

.site-footer__main {
	padding: 24px 0 33px;
	text-align: center;
}

.site-footer__logo {
	display: block;
	width: 171px;
	margin: 0 auto 49px;
}

/* The old footer's four columns: a 1005px row split 227 / 221 / 306 / 251, each box at its left. */
.site-footer__contacts {
	display: grid;
	grid-template-columns: minmax(0, 227fr) minmax(0, 221fr) minmax(0, 306fr) minmax(0, 251fr);
	max-width: 1005px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: left;
}

.contact-box {
	display: grid;
	grid-template-columns: 24px auto;
	column-gap: 15px;
	min-width: 188px;
	color: var(--white);
	font-family: var(--font-display);
	text-decoration: none;
}

.contact-box__icon {
	grid-row: 1 / span 2;
	font-size: 24px;
	color: var(--white);
}

.contact-box__title {
	color: var(--pink);
	font-size: 20px;
	font-weight: 700;
	line-height: 26px;
}

.contact-box__value {
	font-size: 16px;
	line-height: 26px;
}

.contact-box:hover .contact-box__value {
	text-decoration: underline;
}

.site-footer__credit {
	margin: 0;
	padding: 18px 20px;
	background: var(--blue-dark);
	color: var(--white);
	font-family: var(--font-display);
	font-size: 16.6px;
	line-height: 1.3;
	text-align: center;
}

.site-footer__credit a {
	color: var(--crimson);
	text-decoration: none;
}

/* Below 1440px the logo was 12% of the width; below 921px the values sat on the 24.08px line. */
@media (max-width: 1439px) {
	.site-footer__logo {
		width: 12%;
	}
}

@media (max-width: 921px) {
	.contact-box__value {
		line-height: 24.0768px;
	}
}

/* Phones, as the old footer: the logo a third of the width, the four boxes stacked full width
   (29px section padding, 15px around each), smaller titles on the first two (as they were), 14px
   values and a 12px credit. */
@media (max-width: 767px) {
	.site-footer__main {
		padding: 24px 0 33px;
	}

	.site-footer__logo {
		width: 33%;
		margin-bottom: 0;
	}

	.site-footer__contacts {
		grid-template-columns: minmax(0, 1fr);
		max-width: none;
		margin: 50px 0 0; /* 17px under the logo's line + the section's 33px */
		padding: 29px;
	}

	.site-footer__contacts li {
		margin: 15px;
	}

	.site-footer__contacts li:nth-child(-n+2) .contact-box__title {
		font-size: 16px;
		line-height: 20.8px;
	}

	.contact-box {
		min-width: 0;
	}

	.contact-box__value {
		font-size: 14px;
	}

	.site-footer__credit {
		font-size: 12px;
	}
}

/* ==== 11. Home page ======================================================================== */

.is-splash .splash {
	min-height: 100vh;
}

/* The home page body (content/pages/1196-arxiki.php) had settings for the old site's extra screen
   sizes, which the page format has no keys for: up to 1440px wide the collage is cropped to 432px;
   below 1440px the section loses its -7px top margin and the right logo's box is 89px (phones
   have their own); from 1920px the welcome sits at the top of the screen with its own spacing.
   The classes come from the page file. */
@media (min-width: 768px) and (max-width: 1440px) {
	.home-collage img {
		height: 432px !important;
	}
}

@media (max-width: 1439px) {
	.home-hero {
		margin-top: 0 !important;
	}
}

/* On phones the welcome started at the top of the screen. */
@media (max-width: 767px) {
	.pg-section.home-hero > .pg-container {
		align-items: flex-start;
	}

	.pg-col.home-hero__col > .pg-col__inner {
		align-content: flex-start;
	}
}

@media (min-width: 768px) and (max-width: 1439px) {
	.pg-item.home-logo-2 {
		width: 89px;
		max-width: 89px;
	}
}

@media (min-width: 1920px) {
	.home-hero {
		margin-top: -39px !important;
	}

	.pg-section.home-hero > .pg-container {
		align-items: stretch;
	}

	.pg-col.home-hero__col > .pg-col__inner {
		align-content: flex-start;
	}

	.home-logo-1 .pg-image {
		margin-left: -77px !important;
	}

	.home-title .pg-heading {
		margin: 0 0 0 10px !important;
		padding-top: 20px;
	}

	.home-logo-2 .pg-image {
		margin-left: -13px !important;
	}

	.home-collage-row {
		margin-bottom: -6px !important;
	}

	.home-collage-row .pg-col__inner {
		padding-bottom: 18px !important;
	}

	.home-collage img {
		max-width: 80% !important;
	}

	.home-langs {
		margin-top: 10px !important;
	}
}

/* ==== 12. Mobile menu ====================================================================== */

/* A native <dialog>: Esc closes it, focus stays inside, the page behind is inert. */
.mobile-menu {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 45px 11px 30px;
	border: 0;
	background: var(--panel);
	overflow-y: auto;
}

.mobile-menu::backdrop {
	background: rgba(0, 0, 0, 0.4);
}

.mobile-menu__close {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--ink-strong);
	font-size: 24px;
	cursor: pointer;
}

.mobile-menu .site-search {
	max-width: 500px;
	margin: 0 auto 24px;
}

.mobile-menu .site-search__label {
	flex-basis: 30%;
}

.mobile-menu .site-search__input {
	flex: 1 1 auto;
	width: auto;
}

.mobile-menu .main-menu {
	max-width: 500px;
	margin: 0 auto;
}

.mobile-menu .main-menu__list li {
	margin-bottom: 7px;
}

.mobile-menu__contact {
	display: flex;
	width: 87%;
	max-width: 440px;
	margin: 24px auto 0;
	padding: 12px 60px;
}

body:has(.mobile-menu[open]) {
	overflow: hidden;
}

@media (min-width: 1025px) {
	.mobile-menu {
		display: none;
	}
}

/* ==== 13. Cookie notice ==================================================================== */

/*
 * The bar and settings window GDPR Cookie Compliance drew with its default settings, rebuilt
 * (inc/cookies.php, parts/cookie-notice.php). Measurements are the plugin's own; text inherits the
 * page font, as the plugin was set to.
 */
.cookie-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 9900;
	width: 100%;
	min-height: 60px;
	max-height: 400px;
	border-top: 1px solid var(--white);
	background: #202020;
	color: var(--white);
	text-align: center;
}

.cookie-bar__inner {
	display: inline-flex;
	align-items: center;
	padding: 10px 70px;
	text-align: left;
	vertical-align: top;
}

.cookie-bar__text p {
	margin: 0;
	font-size: 14px;
	line-height: 18px;
}

.cookie-bar__settings {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}

.cookie-bar__settings:hover {
	color: var(--cookie-blue);
}

.cookie-bar__actions {
	display: flex;
	align-items: center;
	padding-left: 3vw;
}

.cookie-bar__accept {
	margin: 3px 4px;
	padding: 8px 30px;
	border: 0;
	border-radius: 150px;
	background: var(--cookie-blue);
	color: var(--white);
	font: inherit;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
	transition: 0.3s;
}

.cookie-bar__accept:hover {
	background: var(--white);
	color: var(--cookie-blue);
}

/* The window fills the screen so a box taller than the screen can scroll; the box is centred in it. */
.cookie-modal {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	overflow-x: hidden;
	overflow-y: auto;
}

.cookie-modal[open] {
	display: flex;
}

.cookie-modal::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

html:has(.cookie-modal[open]) {
	overflow: hidden;
}

.cookie-modal__box {
	position: relative;
	flex: none;
	width: 80vw;
	max-width: 1170px;
	min-height: 600px;
	margin: auto;
	border-radius: 10px;
	background: var(--white);
}

.cookie-modal[open] .cookie-modal__box {
	animation: cookie-zoom 0.3s;
}

.cookie-modal[open]::backdrop {
	animation: cookie-fade 0.3s;
}

@keyframes cookie-fade {
	from {
		opacity: 0;
	}
}

@keyframes cookie-zoom {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
}

.cookie-modal__close {
	position: absolute;
	top: -30px;
	right: -30px;
	z-index: 99;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 1px solid var(--cookie-blue);
	border-radius: 50%;
	background: var(--cookie-blue);
	color: var(--white);
	cursor: pointer;
	transition: 0.3s;
}

.cookie-modal__close::before,
.cookie-modal__close::after {
	content: "";
	position: absolute;
	top: calc(50% - 12px);
	left: calc(50% - 0.5px);
	width: 1px;
	height: 24px;
	background: currentColor;
}

.cookie-modal__close::before {
	transform: rotate(45deg);
}

.cookie-modal__close::after {
	transform: rotate(-45deg);
}

.cookie-modal__close:hover {
	background: var(--white);
	color: var(--cookie-blue);
}

.cookie-modal__side {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 40%;
	height: 100%;
	padding: 40px 60px;
	border-radius: 5px 0 0 5px;
	background: var(--white);
	box-shadow: 0 0 30px rgba(35, 35, 35, 0.1);
}

.cookie-modal__logo {
	margin-bottom: 25px;
}

.cookie-modal__logo img {
	display: inline-block;
	width: auto;
	max-width: 70%;
	max-height: 75px;
}

.cookie-modal__tabs {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.cookie-modal__tab {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 13px 20px;
	border: 1px solid #f1f1f1;
	border-radius: 5px;
	background: #f1f1f1;
	color: var(--cookie-blue);
	font: inherit;
	font-size: 14px;
	line-height: 1.1;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.3s;
}

.cookie-modal__tab[aria-selected="true"] {
	background: var(--white);
	color: #000;
}

.cookie-modal__main {
	position: absolute;
	top: 0;
	right: 0;
	width: 60%;
	height: 100%;
	padding: 40px 60px;
	border-radius: 0 5px 5px 0;
	background: #f1f1f1;
}

.cookie-modal__panels,
.cookie-modal__panel {
	height: 100%;
}

.cookie-modal__panel:focus-visible {
	outline-offset: -2px;
}

.cookie-modal__title {
	margin: 0 0 25px;
	padding: 0;
	color: #000;
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
}

.cookie-modal__expand {
	display: none;
}

.cookie-modal__text {
	display: flex;
	flex-direction: column;
	max-height: calc(100% - 155px);
	padding: 0 20px 15px 0;
	overflow-y: auto;
}

.cookie-modal__text p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.4;
}

.cookie-modal__switch-row {
	margin: 0 10px 15px 0;
	padding: 5px;
}

.cookie-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 30px;
	cursor: pointer;
}

.cookie-switch__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cookie-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 34px;
	background: #f00;
	transition: 0.4s;
}

.cookie-switch__track::before {
	content: "";
	position: absolute;
	bottom: 1px;
	left: 1px;
	box-sizing: content-box;
	width: 26px;
	height: 26px;
	border: 1px solid #f2f2f2;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
	transition: 0.4s;
}

.cookie-switch__input:checked + .cookie-switch__track {
	background: #2e9935;
}

.cookie-switch__input:checked + .cookie-switch__track::before {
	transform: translateX(20px);
}

.cookie-switch__input:focus-visible + .cookie-switch__track {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
}

.cookie-switch__label {
	position: absolute;
	top: 0;
	left: 60px;
	color: #c00000;
	font-size: 16px;
	font-weight: 700;
	line-height: 30px;
	white-space: nowrap;
}

.cookie-switch__on {
	display: none;
	color: #1e7b24;
}

.cookie-switch__input:checked ~ .cookie-switch__label .cookie-switch__on {
	display: block;
}

.cookie-switch__input:checked ~ .cookie-switch__label .cookie-switch__off {
	display: none;
}

.cookie-modal__footer {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 15;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 130px;
	padding: 0 60px;
	border-radius: 5px;
	background: #f1f1f1;
}

.cookie-modal__footer::before {
	content: "";
	position: absolute;
	right: 60px;
	bottom: 100%;
	left: 60px;
	height: 1px;
	background: #c9c8c8;
}

.cookie-modal__button {
	min-width: 160px;
	padding: 15px 10px;
	border: 1px solid var(--cookie-blue);
	border-radius: 150px;
	background: var(--cookie-blue);
	color: var(--white);
	font: inherit;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	transition: 0.3s;
}

.cookie-modal__button:hover {
	background: var(--white);
	color: var(--cookie-blue);
}

@media (min-width: 768px) {
	.cookie-modal__panel:not(.is-active) {
		display: none;
	}
}

@media (min-width: 768px) and (max-height: 700px) {
	.cookie-modal__box {
		zoom: 0.7;
	}
}

@media (min-width: 1000px) and (max-width: 1300px) {
	.cookie-modal__side {
		padding: 30px;
	}

	.cookie-modal__main {
		padding: 40px 30px;
	}

	.cookie-modal__footer {
		height: 120px;
		padding: 0 30px;
	}

	.cookie-modal__footer::before {
		right: 30px;
		left: 30px;
	}

	.cookie-modal__button {
		min-width: 0;
		padding: 10px 30px;
	}
}

@media (min-width: 768px) and (max-width: 999px) {
	.cookie-bar__inner {
		padding: 10px 40px;
	}

	.cookie-modal__title {
		font-size: 24px;
	}

	.cookie-modal__button {
		min-width: 0;
		padding: 7px 15px;
		font-size: 13px;
	}
}

/* Phones: one column, no tabs; the second section is a row that opens. */
@media (max-width: 767px) {
	.cookie-bar__inner {
		display: block;
		padding: 15px;
	}

	.cookie-bar__text {
		margin-bottom: 10px;
		padding-left: 4px;
	}

	.cookie-bar__actions {
		flex-wrap: wrap;
		padding-left: 0;
	}

	.cookie-bar__accept {
		padding: 5px 20px;
		font-size: 12px;
	}

	.cookie-modal__box {
		width: calc(100vw - 50px);
		min-height: 0;
		max-height: 90dvh;
	}

	.cookie-modal__close {
		top: -15px;
		right: -15px;
		width: 30px;
		height: 30px;
	}

	.cookie-modal__close::before,
	.cookie-modal__close::after {
		top: calc(50% - 7px);
		height: 14px;
	}

	.cookie-modal__side {
		position: relative;
		width: 100%;
		height: auto;
		padding: 30px 10px 10px;
		border-radius: 5px 5px 0 0;
	}

	.cookie-modal__logo {
		margin-bottom: 0;
	}

	.cookie-modal__logo img {
		max-height: 40px;
	}

	.cookie-modal__tabs {
		display: none;
	}

	.cookie-modal__main {
		position: relative;
		width: 100%;
		height: auto;
		padding: 15px 10px;
		border-radius: 0 0 5px 5px;
	}

	.cookie-modal__panels {
		height: auto;
		max-height: 50dvh;
		margin-bottom: 80px;
		overflow: auto;
	}

	.cookie-modal__panel {
		height: auto;
	}

	.cookie-modal__title {
		font-size: 16px;
	}

	.cookie-modal__text {
		max-height: none;
		padding: 0;
		overflow: visible;
	}

	.cookie-modal__text p {
		font-size: 14px;
		line-height: 1.3;
	}

	.cookie-modal__panel--strict .cookie-modal__title {
		margin: 10px 0 0;
	}

	.cookie-modal__panel--strict .cookie-modal__title-text {
		display: none;
	}

	.cookie-modal__expand {
		position: relative;
		display: block;
		width: 100%;
		padding: 10px 10px 10px 30px;
		border: 1px solid var(--white);
		border-radius: 5px;
		background: var(--white);
		color: inherit;
		font: inherit;
		text-align: left;
		cursor: pointer;
	}

	.cookie-modal__expand::before {
		content: "›";
		position: absolute;
		top: 0;
		bottom: 2px;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		font-family: Georgia, serif;
		font-size: 24px;
		line-height: 1;
		transition: transform 0.3s;
	}

	.cookie-modal__expand[aria-expanded="true"]::before {
		transform: rotate(90deg);
	}

	.cookie-modal__panel--strict .cookie-modal__text {
		display: none;
		padding: 10px;
		background: var(--white);
	}

	.cookie-modal__panel--strict.is-open .cookie-modal__text {
		display: flex;
	}

	.cookie-modal__switch-row {
		padding: 0;
	}

	.cookie-switch {
		width: 40px;
		height: 24px;
	}

	.cookie-switch__track::before {
		width: 20px;
		height: 20px;
	}

	.cookie-switch__input:checked + .cookie-switch__track::before {
		transform: translateX(16px);
	}

	.cookie-switch__label {
		min-width: 130px;
		font-size: 12px;
		font-weight: 800;
		line-height: 1.8;
	}

	.cookie-modal__footer {
		height: auto;
		min-height: 70px;
		padding: 5px 10px 15px;
	}

	.cookie-modal__footer::before {
		right: 10px;
		left: 10px;
	}

	.cookie-modal__button {
		min-width: 110px;
		padding: 5px 15px;
		font-size: 12px;
		line-height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-modal[open] .cookie-modal__box,
	.cookie-modal[open]::backdrop {
		animation: none;
	}

	.cookie-bar *,
	.cookie-modal * {
		transition: none;
	}
}
