/*
 * Figma-matched content components.
 * Intentionally scoped away from the homepage and news overview.
 */

:root {
	--filo-blue: #2486cc;
	--filo-light-blue: #d4eefb;
	--filo-red: #f35734;
	--filo-yellow-soft: #fff6d7;
	--filo-text: #111;
}

.menu-item.menu-ke-stazeni > a.menu-link {
	color: #bf8500 !important;
}

.menu-item.menu-kontakty > a.menu-link {
	color: #df7200 !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid #111 !important;
	outline-offset: 3px;
}

body:not(.home):not(.page-id-9245) .site-content > .ast-container {
	display: grid;
	grid-template-columns: minmax(0, 795px) minmax(324px, 360px);
	column-gap: 48px;
	max-width: 1203px;
	padding: 0;
}

body:not(.home):not(.page-id-9245) #primary,
body:not(.home):not(.page-id-9245) #main,
body:not(.home):not(.page-id-9245) .ast-article-single,
body:not(.home):not(.page-id-9245) .entry-content {
	width: 100%;
	min-width: 0;
}

body:not(.home):not(.page-id-9245) #primary {
	margin: 0;
	padding: 0;
	border-right: 0;
}

body:not(.home):not(.page-id-9245) #secondary {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 24px 0 0;
	border: 0;
}

body:not(.home):not(.page-id-9245) #secondary .sidebar-main {
	width: 100%;
}

body:not(.home):not(.page-id-9245) .entry-header .entry-title {
	margin: 0 0 16px;
	color: var(--filo-blue);
	font-family: "Dongle", sans-serif;
	font-size: 64px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
}

body:not(.home):not(.page-id-9245) .entry-content {
	color: var(--filo-text);
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

body:not(.home):not(.page-id-9245) .entry-content h2 {
	margin: 40px 0 16px;
	color: var(--filo-blue);
	font-family: "Dongle", sans-serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
}

body:not(.home):not(.page-id-9245) .entry-content h3 {
	margin: 32px 0 16px;
	color: var(--filo-blue);
	font-family: "Dongle", sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
}

body:not(.home):not(.page-id-9245) .entry-content h4 {
	margin: 24px 0 12px;
	font-family: "Nunito", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

body:not(.home):not(.page-id-9245) .filo-sidebar-posts {
	width: 100%;
	padding: 24px;
	background: var(--filo-yellow-soft);
	border-radius: 20px;
}

body:not(.home):not(.page-id-9245) .filo-sidebar-post {
	padding: 12px 16px;
	border-radius: 8px;
}

body:not(.home):not(.page-id-9245) .filo-sidebar-posts-title {
	margin: 0 0 16px;
	padding: 0 16px;
	color: var(--filo-red);
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
}

.filo-download-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin: 16px 0 0;
}

.filo-download {
	display: inline-flex;
	align-items: center;
	gap: 31px;
	max-width: 100%;
	color: var(--filo-text) !important;
	text-decoration: none !important;
}

.filo-download__icon {
	display: block;
	flex: 0 0 44px;
	width: 44px !important;
	height: 48px !important;
	margin: 0 !important;
	object-fit: contain;
}

.filo-download__title {
	font-family: "Nunito", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	text-underline-offset: 3px;
}

.filo-download:hover .filo-download__title,
.filo-download:focus-visible .filo-download__title {
	text-decoration: underline;
}

body:not(.home):not(.page-id-9245) .entry-content table {
	width: 100% !important;
	height: auto !important;
	margin: 24px 0 32px !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 8px !important;
	table-layout: auto;
}

body:not(.home):not(.page-id-9245) .entry-content table tr {
	background: #e9f7fd;
}

body:not(.home):not(.page-id-9245) .entry-content table th,
body:not(.home):not(.page-id-9245) .entry-content table td {
	height: auto !important;
	padding: 9px 16px !important;
	border: 0 !important;
	color: var(--filo-text);
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

body:not(.home):not(.page-id-9245) .entry-content table tr > :first-child {
	border-radius: 8px 0 0 8px;
}

body:not(.home):not(.page-id-9245) .entry-content table tr > :last-child {
	border-radius: 0 8px 8px 0;
}

body:not(.home):not(.page-id-9245) .entry-content iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	margin: 24px 0 32px;
	border: 0;
	border-radius: 20px;
	background: #f3f6f8;
}

body.page-id-6566 .entry-content {
	overflow: hidden;
	border-radius: 20px;
}

body.page-id-6566 #iframe-meteostanice {
	min-height: 860px;
	margin-top: 0 !important;
}

@media (max-width: 1100px) {
	body:not(.home):not(.page-id-9245) .site-content > .ast-container {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
		column-gap: 32px;
		width: calc(100% - 48px);
	}
}

@media (max-width: 1000px) {
	#masthead {
		position: fixed;
		top: 20px;
		left: 20px;
		z-index: 10000;
		width: calc(100% - 40px);
		margin: 0 !important;
	}

	#ast-fixed-header {
		display: none !important;
	}

	.home-hero-wrap {
		padding-top: 100px !important;
	}
}

@media (max-width: 921px) {
	body:not(.home):not(.page-id-9245) .site-content > .ast-container {
		display: block;
		width: calc(100% - 40px);
	}

	body:not(.home):not(.page-id-9245) #secondary {
		padding-top: 40px;
	}

	body:not(.home):not(.page-id-9245) .entry-header .entry-title {
		font-size: 56px;
	}
}

@media (max-width: 600px) {
	body:not(.home):not(.page-id-9245) .site-content > .ast-container {
		width: calc(100% - 32px);
	}

	body:not(.home):not(.page-id-9245) .entry-header .entry-title {
		font-size: 48px;
		line-height: .95;
	}

	body:not(.home):not(.page-id-9245) .entry-content h2 {
		font-size: 42px;
	}

	body:not(.home):not(.page-id-9245) .entry-content table {
		display: block;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.filo-download {
		gap: 18px;
	}

	.filo-download__title {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.filo-download__title {
		transition: none;
	}
}
