/**
 * Theme Name: Leipzig-Altenburg Airport
 * Description: Child Theme für den Leipzig-Altenburg Airport auf Basis von Blocksy.
 * Author: Leipzig-Altenburg Airport
 * Template: blocksy
 * Text Domain: aoc
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/InterVariable.woff2") format("woff2");
}

/* Shared layout contract for every page template and Gutenberg composition. */
:root {
	--aoc-layout-max: 1360px;
	--aoc-reading-max: 760px;
	--aoc-page-gutter: max(32px, calc((100vw - var(--aoc-layout-max)) / 2));
}

/* Registered Gutenberg palette, available in both editor and frontend. */
.has-aoc-blue-color { color: #0765bd !important; }
.has-aoc-blue-background-color { background-color: #0765bd !important; }
.has-aoc-navy-color { color: #062e51 !important; }
.has-aoc-navy-background-color { background-color: #062e51 !important; }
.has-aoc-ink-color { color: #0a1d2c !important; }
.has-aoc-ink-background-color { background-color: #0a1d2c !important; }
.has-aoc-visitor-blue-color { color: #0a497f !important; }
.has-aoc-visitor-blue-background-color { background-color: #0a497f !important; }
.has-aoc-paper-color { color: #f2f5f7 !important; }
.has-aoc-paper-background-color { background-color: #f2f5f7 !important; }
.has-aoc-pale-blue-color { color: #eef5fa !important; }
.has-aoc-pale-blue-background-color { background-color: #eef5fa !important; }
.has-aoc-white-color { color: #fff !important; }
.has-aoc-white-background-color { background-color: #fff !important; }

.aoc-page-shell {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: var(--aoc-page-gutter);
}

.aoc-page-shell > * {
	max-width: none;
	margin-inline: 0 !important;
}

.aoc-reading-width {
	width: 100%;
	max-width: var(--aoc-reading-max);
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* Blocksy exposes the header button style, but not these prototype dimensions. */
[data-header*="type-1"] [data-id="button"] .ct-button-ghost {
	min-height: 40px;
	padding-inline: 20px;
	border-width: 1px;
	border-radius: 0;
}

/* Match the third footer meta item to copyright and language navigation. */
#footer[data-id="type-1"] [data-column="widget-area-5"] a {
	font-size: 9px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

@media (min-width: 690px) {
	#footer[data-id="type-1"] [data-row="bottom"] .ct-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	:root {
		--aoc-page-gutter: 24px;
	}

	#footer[data-id="type-1"] [data-column="widget-area-1"] .widget_media_image img {
		width: min(132px, 100%);
		height: auto;
	}

	/* Blocksy applies the mobile item alignment but collapses a four-column row
	 * to one column. Preserve the compact two-by-two footer composition. */
	#footer[data-id="type-1"] [data-row="middle"] .ct-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 30px;
	}

	#footer[data-id="type-1"] [data-row="bottom"] .ct-container {
		grid-template-columns: 1fr;
	}

	#footer[data-id="type-1"] [data-row="bottom"] [data-column] {
		justify-content: flex-start;
		text-align: left;
	}
}
