/* =========================================================================
 * Z DIZAJN - responsive
 *
 * Blueprint rule: desktop-first, tablet keeps the section order, mobile
 * stacks everything into one column. The stacking itself is set per section
 * in Elementor (see _install/build-pages.php), and the type scale is already
 * fluid via clamp() in tokens.css - so what is left here is the gutter, the
 * touch targets and the handful of Prague components whose demo proportions
 * only work on a wide screen.
 *
 * Breakpoints follow the parent theme rather than inventing new ones:
 *   1118px  Prague swaps the inline nav for the burger
 *    991px  Prague's main tablet query
 *    767px  Prague's phone query (also Elementor's mobile breakpoint)
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * Gutter
 *
 * Elementor containers default to 10px of side padding, which puts text
 * almost on the screen edge on a phone. Our bands take the gutter token
 * instead - scoped to .e-con so the footer, which has its own container,
 * is not padded twice.
 * ---------------------------------------------------------------------- */

.e-con.zd-band,
.e-con.zd-band-alt,
.e-con.zd-dark {
	padding-inline: var(--zd-gutter);
}

/* Edge-to-edge bands (hero, the two covers) keep their full bleed - without
   this they would still pick up Elementor's default 10px. */
.e-con.zd-band--flush {
	padding-inline: 0;
}

/* Nothing may push the page sideways. */
body {
	overflow-wrap: break-word;
}

.zd-container,
.e-con > .e-con-inner {
	max-width: 100%;
}

/* Long content that cannot reflow scrolls inside itself. */
.entry-content table,
.post-content table,
.zd-prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 1118px) {
	/* Comfortable thumb target for the burger - Prague ships it at 34px. */
	.prague-nav-menu-icon a {
		width: 44px;
		height: 44px;
		line-height: 42px;
	}

	.prague-header .prague-logo a,
	.prague-header.light .prague-logo a,
	.prague-header.dark .prague-logo a {
		font-size: 18px;
	}

	/* The CTA loses its box in the stacked panel - it is one item among
	   seven there, not the single action in a bar. */
	.prague-header .main-menu > li.zd-nav-cta > a {
		border: 0;
		padding: var(--zd-space-2xs) 0;
	}
}

@media only screen and (max-width: 767px) {
	.prague-header {
		padding-inline: var(--zd-space-md);
	}
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 991px) {
	.top-banner .content {
		padding-inline: var(--zd-space-md);
	}

	.top-banner .title {
		/* The mockup breaks the hero line by hand; on a narrow screen that
		   break lands mid-phrase, so let it reflow instead. */
		max-width: 18ch;
		margin-inline: auto;
	}
}

@media only screen and (max-width: 767px) {
	.top-banner .title br {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Section intro and copy
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
	.heading .title br,
	.zd-display br {
		display: none;
	}

	.heading p,
	.zd-lead {
		max-width: none;
	}
}

/* -------------------------------------------------------------------------
 * Category covers - side by side down to the phone, then stacked (the
 * stacking comes from Elementor; this is the height they need once stacked)
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 991px) {
	.category-banner__info {
		margin-left: var(--zd-space-md);
		max-width: 16ch;
	}
}

/* -------------------------------------------------------------------------
 * Contact block / CTA
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
	.contact-form__wrap {
		padding: var(--zd-space-xl) var(--zd-space-md);
	}

	.zd-newsletter .frm_form_fields fieldset {
		flex-direction: column;
		align-items: stretch;
	}
}

