/*
Theme Name: OnePress Child SPX
Theme URI: https://www.spx.lv/
Description: Child theme carrying the customizations from the modified OnePress 2.2.4 theme to OnePress 2.3.21.
Author: SIA SPX
Author URI: https://www.spx.lv/
Template: onepress
Version: 1.0.1
Text Domain: onepress-child-spx
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

body {
	background: #dee2ec;
}

h1, h2, h3, h4, h5, h6 {
	color: #445f85;
}

/* Titles shown over the custom page-header image. */
.page-header {
	background-color: #445f85;
	background-image: url("assets/images/page-header.png");
	/* The original 71 × 96 px texture is intended to tile. */
	background-position: left top;
	background-repeat: repeat;
	background-size: auto;
}

.page-header .page-title,
.page-header .page-title a,
.page-header .page-title span,
.page-header .taxonomy-description {
	color: #fff;
}


/* Keep language-switcher/menu flag images vertically aligned in the header. */
.main-navigation .onepress-menu > li.wpml-ls-item > a {
    display: block;
    line-height: inherit;
}

.main-navigation .onepress-menu > li.wpml-ls-item > a img.wpml-ls-flag {
    display: inline-block;
    vertical-align: middle;
    position: static;
    margin: 0;
    transform: none;
}
.main-navigation .wpml-ls-flag {
	position: relative;
	top: -1px;
	vertical-align: middle;
}

.main-navigation .search-menu .search-field {
	padding-left: 38px !important;
}

/* Vertically center the desktop WPML flag */
@media screen and (min-width: 1141px) {
	.main-navigation .onepress-menu > li.wpml-ls-item {
		display: flex;
		align-items: center;
	}

	.main-navigation .onepress-menu > li.wpml-ls-item > a {
		display: flex;
		align-items: center;
		height: 75px; /* match the desktop header/menu height */
		line-height: normal;
		padding-top: 0;
		padding-bottom: 0;
	}

	.main-navigation .onepress-menu > li.wpml-ls-item > a img.wpml-ls-flag {
		display: block;
		position: static !important;
		margin: 0;
		transform: none !important;
	}
}

/* Replaces the old .element wrappers. */
.site-content,
.list-article,
.type-page,
.type-post {
	position: relative;
	z-index: 5;
}

.nav-links {
	position: relative;
	z-index: 10;
}

/* Old blue accent used around article thumbnails. */
.list-article-thumb {
	border-left: 10px solid #445f85;
}

.list-article .entry-title,
.list-article .entry-title a,
.search-results .entry-title a,
.single-post .entry-title {
	color: #445f85;
}

.list-article .entry-excerpt,
.list-article .entry-excerpt p {
	color: #000;
}

/* The customized theme removed the visual sidebar divider. */
.right-sidebar .content-area {
	border-right: 0;
}

.site-footer .site-info {
	padding: 5px 0;
}

.section-meta {
	background-color: #f0ece0;
}

.woocommerce-page .site-main .page-title {
	display: none;
}

/* Footer SVG migrated from the edited footer.php. */
.shapefooter {
	position: relative;
	height: 160px;
	background-color: #dee2ec;
	overflow: hidden;
}

.shapefooter svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

@media (min-width: 700px) {
	.shapefooter {
		height: 260px;
	}
}

/* Custom archive page template. */
.spx-archive-lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	padding: 50px 0;
}

@media (max-width: 699px) {
	.spx-archive-lists {
		grid-template-columns: 1fr;
	}
}
