/*
 * Site-wide small fixes (loaded on every page).
 */

/* Footer "SUBSCRIBE" form (Noptin, EN form 201 / RU form 1853): centre the email field,
   arrow button and the error/success message under the centred heading.
   Noptin prints `form { text-align:left }` and the form wrapper is a flex row without centring;
   the Elementor widget also had a 30px right margin that shifted everything left. */
#prefooter-subscribe > .elementor-widget-container { margin-right: 0; }
#prefooter-subscribe .noptin-optin-form-wrapper { margin-left: auto; margin-right: auto; justify-content: center; }
#prefooter-subscribe .noptin-optin-form-wrapper form { text-align: center; }
#prefooter-subscribe .noptin-form-fields { justify-content: center; }
#prefooter-subscribe .noptin-form-notice,
#prefooter-subscribe .noptin-alert { text-align: center; }

/* Blog posts on phones/tablets: text was flush with the screen edges and the title ran off the left edge. */
@media (max-width: 1024px) {
	body.single-post .site-main { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
	body.single-post .site-main .page-header .entry-title { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; width: auto !important; max-width: 100%; }
}

/* Price filter: "58000.00AMD78000.00AMD" — the two values did not fit their halves and ran together. */
.bapf_slidr .bapf_slidr_all { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 4px; }
.bapf_slidr .bapf_slidr_all > .bapf_slidr_main { flex: 0 0 100%; }
.bapf_slidr .bapf_slidr_all > .bapf_from,
.bapf_slidr .bapf_slidr_all > .bapf_to { width: auto; white-space: nowrap; font-size: 12px; }
.bapf_slidr .bapf_slidr_all > .bapf_to { margin-left: auto; }

/* Blog cards: the 32px heading font (around the 14px link) made the lines of long titles far apart. */
.site-main article.post > h2.entry-title { font-size: 14px; line-height: 1.3; }
.site-main article.post > h2.entry-title > a { line-height: inherit; }

/* Category description blocks: the picture column stays in view while the long text scrolls (desktop). */
@media (min-width: 1025px) {
	.xz-archive-desc .xz-el-column:has(> .xz-el-widget-wrap > .xz-el-widget-image) { align-self: stretch; }
	.xz-archive-desc .xz-el-column:has(> .xz-el-widget-wrap > .xz-el-widget-image) > .xz-el-widget-wrap {
		position: sticky;
		top: calc(30px + var(--wp-admin--admin-bar--height, 0px));
		align-self: flex-start;
	}
}

/* Category description texts on phones: 32px headings took three lines; text stays 16px. */
@media (max-width: 767px) {
	.xz-archive-desc h2 { font-size: 24px; line-height: 1.25; }
	.xz-archive-desc h3 { font-size: 20px; line-height: 1.3; }
}
