/* English-only fit rules belong here. Keep the shared visual system unchanged. */

/* The final English layer owns every semantic heading, including nested spans/links. */
body.agt-lang-en h1,
body.agt-lang-en h1 *,
body.agt-lang-en h2,
body.agt-lang-en h2 *,
body.agt-lang-en h3,
body.agt-lang-en h3 *,
body.agt-lang-en h4,
body.agt-lang-en h4 *,
body.agt-lang-en h5,
body.agt-lang-en h5 *,
body.agt-lang-en h6,
body.agt-lang-en h6 * {
	font-family: "Sofia Sans", Inter, Arial, sans-serif !important;
}

/* EN 2.0 typography: the approved headings and figures use Sofia Sans at every width. */
.page-template-page-about .principles-grid span,
.home .product-card__content strong,
.page-template-page-natural-gas .inline-stats strong {
	font-family: "Sofia Sans", Inter, Arial, sans-serif !important;
}

/* EN 2.0 desktop hover contract: yellow fill without a visible border. */
@media (min-width: 1101px) and (hover: hover) {
	.button:hover {
		color: var(--blue);
		border-color: transparent !important;
		background: var(--accent);
	}
}

@media (max-width: 767px) {
	/* One semantic H2 scale across the English mobile site. */
	.page-template-page-about .mission-statement h2,
	.page-template-page-about .about-principles .section-heading h2,
	.page-template-page-about .section--workflow .section-heading h2,
	.page-template-page-about .section--legal h2,
	.page-template-page-about .about-benefits .section-heading h2,
	.page-template-page-about .about-team__heading h2,
	.page-template-page-natural-gas .product-details h2,
	.page-template-page-mineral-fertilizers .fertilizer-classification .section-heading h2,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .section-heading h2,
	.page-template-page-contacts .contact-grid h2,
	.page-template-page-contacts .contact-form-layout h2,
	.page-template-page-contacts .contact-form-layout h2 span,
	.home .section--products .section-heading h2,
	.home .section--advantages .section-heading h2,
	.home .section--partners .section-heading h2,
	.home .section--news .section-heading h2 {
		font-family: "Sofia Sans", Inter, Arial, sans-serif !important;
		font-size: 32px !important;
		font-weight: 500;
		line-height: 1.1 !important;
		letter-spacing: -.01em;
	}

	/* English team content is shorter; let it define the section height. */
	.page-template-page-about .about-team,
	.page-template-page-about .about-team__heading,
	.page-template-page-about .about-team .team-grid,
	.page-template-page-about .about-team .team-card,
	.page-template-page-about .about-team .team-card__content {
		height: auto;
		min-height: 0;
	}

	.page-template-page-about .section--legal {
		height: auto !important;
		min-height: 0 !important;
		padding-bottom: 24px;
	}

	.page-template-page-about .about-benefits {
		padding-top: 32px;
	}

	.page-template-page-about .about-benefits .section-heading {
		height: auto;
		margin-bottom: 32px;
	}

	.page-template-page-about .about-team {
		padding-bottom: 24px;
	}

	.page-template-page-about .about-team .team-card {
		min-height: 0 !important;
	}

	.page-template-page-about .about-team .team-card > .team-card__content {
		min-height: 0;
		padding-bottom: 20px;
	}

	.page-template-page-about .about-team__heading {
		margin-bottom: 40px;
	}

	.page-template-page-about .about-team .team-grid {
		grid-auto-rows: auto;
	}

	/* All English tab groups match the compact How We Work controls. */
	.page-template-page-about [data-tabs] [role="tab"],
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs button,
	.home [data-tabs] [role="tab"] {
		width: max-content;
		height: 32px;
		min-height: 32px;
		padding: 6px 12px;
		flex: 0 0 32px;
		font-size: 16px;
		line-height: 20px;
	}

	/* Keep the more-specific home selector on the same compact scale. */
	.home .section--advantages .tabs-controls .tabs-list button {
		height: 32px;
		min-height: 32px;
		padding: 6px 12px;
		flex-basis: 32px;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs {
		height: auto;
		min-height: 0;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs::after,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs button::after {
		border: 0;
	}

	/* Remove the compounded whitespace between Sales Department and the map. */
	.page-template-page-contacts .contact-details {
		padding-bottom: 24px;
	}

	.page-template-page-contacts .contact-map {
		height: auto;
		min-height: 0;
		padding-top: 0;
	}
}
