/*
 * Content-management safeguards.
 *
 * This file loads after the approved parity layers. The defaults therefore
 * keep the approved frontend composition, while additional cards and longer copy may
 * extend their sections without clipping or horizontal overflow.
 */

.home .product-card__content i::before {
	content: attr(data-label);
}

.home .product-card--text-only,
.section--group-home .office-card--text-only {
	background: linear-gradient(145deg, var(--blue), var(--navy));
}

.section--group-home .office-card::before {
	content: none;
}

.home .benefits-grid,
.page-template-page-about .about-benefits .benefits-grid,
.page-template-page-mineral-fertilizers .classification-grid {
	height: auto !important;
	grid-template-rows: none !important;
}

.page-template-page-mineral-fertilizers .fertilizer-classification,
.page-template-page-mineral-fertilizers .classification-grid,
.page-template-page-mineral-fertilizers .classification-grid article {
	height: auto !important;
}

.page-template-page-mineral-fertilizers .classification-grid {
	grid-auto-rows: auto;
}

.page-template-page-about .about-benefits .benefit-card--text-only {
	grid-template-rows: minmax(58px, auto) auto;
}

.home .tabs-panels article.content-panel--text-only,
.page-template-page-about .workflow__panels article.content-panel--text-only,
.page-template-page-mineral-fertilizers .catalog-panels article.content-panel--text-only {
	grid-template-columns: minmax(0, 1fr);
}

.home .tabs-panels article.content-panel--text-only > div,
.page-template-page-about .workflow__panels article.content-panel--text-only > div,
.page-template-page-mineral-fertilizers .catalog-panels article.content-panel--text-only > div {
	width: 100%;
	grid-column: 1 / -1;
}

.home .section--products,
.home .section--advantages,
.page-template-page-about .about-team,
.page-template-page-about .about-team .team-grid,
.page-template-page-about .about-team .team-card,
.page-template-page-about .section--workflow {
	height: auto !important;
	min-height: 0 !important;
}

.home .stats--home {
	height: auto;
	min-height: 131px;
}

.home .stats--home .stats__grid {
	height: auto;
	min-height: 131px;
	grid-auto-rows: minmax(131px, auto);
}

.home .tabs-list,
.page-template-page-about .workflow__tabs,
.product-switch {
	height: auto;
	flex-wrap: wrap;
}

.home .tabs-list {
	min-height: 34px;
}

.home .tabs-panels article {
	height: auto;
	min-height: 550px;
}

.home .tabs-panels article > img {
	height: 100%;
	min-height: 550px;
}

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

.page-template-page-about .about-team .team-card,
.page-template-page-about .about-team .team-card__content {
	overflow: visible;
}

.page-template-page-about .team-card__socials > a,
.page-template-page-about .team-card__socials > span,
.site-header .header-social > a,
.site-header .header-social > span,
.site-header .mobile-menu__social > a,
.site-header .mobile-menu__social > span,
.site-footer .social-links > a,
.site-footer .social-links > span {
	flex: 0 0 auto;
}

.page-template-page-natural-gas .product-hero,
.page-template-page-mineral-fertilizers .product-hero {
	height: auto !important;
}

.page-template-page-natural-gas main > .section {
	height: auto !important;
}

.page-template-page-natural-gas .inline-stats {
	height: auto !important;
	grid-template-rows: none !important;
	grid-auto-rows: auto;
}

.single-post .article,
.single-post .article__content {
	height: auto !important;
	min-height: 0 !important;
}

.single-post .article__header,
.single-post .article__header h1 {
	height: auto;
}

.section--group-home .office-carousel {
	position: relative;
	width: 100%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
}

.section--group-home .office-carousel .office-grid {
	display: flex !important;
	width: 100%;
	height: 100% !important;
	gap: 0;
	transition: transform 320ms ease;
	will-change: transform;
}

.section--group-home .office-carousel .office-card {
	min-width: 0;
	flex: 0 0 50%;
}

.section--group-home .office-carousel__controls {
	position: absolute;
	z-index: 8;
	top: 50%;
	right: 16px;
	left: 16px;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
}

.section--group-home .office-carousel__arrow {
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	place-items: center;
	color: var(--blue);
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 6px 22px rgba(5, 5, 43, 0.22);
	font-size: 30px;
	cursor: pointer;
	pointer-events: auto;
}

.section--group-home .office-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.section--group-home .office-carousel__arrow:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.page-template-page-natural-gas .product-visual img {
	object-position: center;
}

.page-template-page-mineral-fertilizers .product-visual img {
	object-position: center 38%;
}

@media (min-width: 1101px) {
	.home .section--advantages--baseline {
		height: 824px !important;
		min-height: 824px !important;
	}

	.home .section--advantages--baseline .tabs-panels,
	.home .section--advantages--baseline .tabs-panels article,
	.home .section--advantages--baseline .tabs-panels article > img {
		height: 550px;
		min-height: 550px;
	}

	.page-template-page-natural-gas .product-hero,
	.page-template-page-mineral-fertilizers .product-hero {
		min-height: 296px !important;
	}

	.page-template-page-natural-gas .product-visual,
	.page-template-page-mineral-fertilizers .product-visual,
	.single-agt_product .product-visual {
		height: clamp(380px, 26.3889vw, 507px);
	}

	.page-template-page-natural-gas .product-visual img,
	.page-template-page-mineral-fertilizers .product-visual img,
	.single-agt_product .product-visual img {
		height: 100%;
	}

	.page-template-page-natural-gas main > .section {
		min-height: 565px;
	}

	.page-template-page-about .workflow__tabs {
		min-height: 34px;
	}

	.page-template-page-about .workflow__panels,
	.page-template-page-about .workflow__panels article {
		height: auto;
		min-height: 550px;
	}

	.page-template-page-about .workflow__panels article > img {
		height: 100%;
		min-height: 550px;
	}

	.page-template-page-mineral-fertilizers .catalog-panels article {
		height: auto;
		min-height: 550px;
		grid-auto-rows: minmax(550px, auto);
		align-items: stretch;
	}

	.page-template-page-mineral-fertilizers .catalog-panels article > img {
		height: 0;
		min-height: 100%;
		align-self: stretch;
	}
}

@media (min-width: 768px) and (max-width: 1100px) {
	.page-template-page-natural-gas .product-hero,
	.page-template-page-mineral-fertilizers .product-hero {
		min-height: 296px !important;
	}

	.page-template-page-about .workflow__panels,
	.page-template-page-about .workflow__panels article {
		height: auto;
		min-height: 460px;
	}

	.page-template-page-about .workflow__panels article {
		grid-auto-rows: minmax(460px, auto);
	}

	.page-template-page-about .workflow__panels article > img {
		height: 0;
		min-height: 100%;
	}

	.page-template-page-about .workflow__tabs {
		flex-wrap: nowrap;
	}

	.home .stats--home--baseline {
		height: 131px;
		min-height: 131px;
	}

	.home .stats--home--baseline .stats__grid {
		height: 131px;
		min-height: 131px;
		grid-auto-rows: 131px;
	}

	.home .section--advantages--baseline {
		height: 804px !important;
		min-height: 804px !important;
	}

	.home .section--advantages--baseline .tabs-panels,
	.home .section--advantages--baseline .tabs-panels article {
		height: 488px;
		min-height: 488px;
	}

	.home .section--advantages--baseline .tabs-panels article > img {
		height: 244px;
		min-height: 244px;
	}

	.section--group-home .office-carousel {
		height: 460px;
	}
}

.site-footer__brand .site-logo__image {
	transform: translateX(-16px);
}

@media (max-width: 767px) {
	.section--group-home .office-card::before {
		content: attr(data-details-label) "  \203A";
	}

	.home .stats--home {
		min-height: 592px;
	}

	.home .stats--home .stats__grid {
		min-height: 532px;
		grid-auto-rows: auto;
	}

	.home .section--products,
	.home .section--advantages {
		height: auto !important;
		min-height: 0 !important;
	}

	.home .tabs-controls .tabs-list {
		height: auto !important;
		min-height: 152px;
	}

	.home .tabs-panels article {
		height: auto !important;
		min-height: 488px;
		grid-template-rows: minmax(244px, auto) 244px;
	}

	.home .tabs-panels article > div {
		height: auto;
		min-height: 244px;
	}

	.home .tabs-panels article > img {
		height: 244px;
		min-height: 244px;
	}

	.page-template-page-about .about-hero,
	.page-template-page-about .about-mission,
	.page-template-page-about .about-principles,
	.page-template-page-about .section--legal,
	.page-template-page-about .about-benefits,
	.page-template-page-about .about-team {
		height: auto !important;
	}

	.page-template-page-about .section--legal--baseline {
		height: 385px !important;
		min-height: 385px !important;
	}

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

	.page-template-page-about .workflow__tabs {
		height: auto !important;
		min-height: 192px;
	}

	.page-template-page-about .workflow__panels,
	.page-template-page-about .workflow__panels article {
		height: auto !important;
		min-height: 440px;
	}

	.page-template-page-about .workflow__panels article {
		grid-template-rows: minmax(196px, auto) 244px;
	}

	.page-template-page-about .workflow__panels article > div {
		height: auto;
		min-height: 196px;
	}

	.page-template-page-about .workflow__panels article > img {
		height: 244px;
		min-height: 244px;
	}

	.page-template-page-natural-gas main > .section {
		min-height: 0 !important;
	}

	.page-template-page-mineral-fertilizers .fertilizer-classification {
		min-height: 0 !important;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .section-heading,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-panels article,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-panels article > div {
		height: auto !important;
		min-height: 0 !important;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .section-heading h2 {
		color: var(--blue);
		font-size: 32px;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .section-heading h2::before,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs button::after,
	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs::after {
		display: none !important;
		content: none !important;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs button {
		display: inline-flex;
		height: auto;
		min-height: 44px;
		padding: 10px 14px;
		align-items: center;
		font-size: 16px;
		line-height: 20px;
		white-space: normal;
	}

	.blog .news-archive__figma-more,
	.tax-agt_news_type .news-archive__figma-more {
		cursor: pointer;
		text-decoration: none;
	}

	.blog .news-archive__figma-more:focus-visible,
	.tax-agt_news_type .news-archive__figma-more:focus-visible {
		outline: 3px solid rgba(9, 27, 91, 0.35);
		outline-offset: 3px;
	}

	.single-post .article__header {
		min-height: 303px;
	}

	.section--group-home .office-carousel {
		height: 390px;
	}

	.section--group-home .office-carousel .office-card {
		height: 390px !important;
		min-height: 390px !important;
		flex-basis: 100%;
	}

	.page-template-page-about .section--group-home .office-carousel .office-grid,
	.home .section--group-home .office-carousel .office-grid {
		height: 100% !important;
		grid-template-rows: none !important;
		grid-auto-rows: auto !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.section--group-home .office-carousel .office-grid {
		transition: none;
	}
}

.page-template-page-about .section--legal::after {
	pointer-events: none;
}

@media (min-width: 1101px) {
	.page-template-page-about .mission-statement,
	.page-template-page-about .mission-statement h2 {
		max-width: 420px;
		margin-inline: auto;
	}

	.page-template-page-about .about-mission::before,
	.page-template-page-about .about-principles::before {
		transform: translateX(-50%) scaleX(-1);
	}

	.page-template-page-about .about-principles .section-heading h2 {
		width: 420px;
		max-width: 420px;
		margin-inline: auto;
	}

	.page-template-page-about .about-principles .principles-grid article {
		align-items: baseline;
	}

	.page-template-page-about .about-principles .principles-grid span {
		font-size: 28px;
		line-height: 1;
		transform: translateY(7px);
	}

	.page-template-page-about .about-principles .principles-grid p {
		font-size: 18px;
		line-height: 1.5;
	}

	.page-template-page-about .about-benefits .benefit-card {
		min-height: 260px;
		padding: 32px;
	}

	.page-template-page-about .section--legal::after {
		display: none;
		content: none;
	}

	.page-template-page-mineral-fertilizers .fertilizer-classification .classification-grid p {
		min-height: 0;
	}

	.page-template-page-mineral-fertilizers .fertilizer-classification .type-tags {
		margin-top: 16px;
	}

	.page-template-page-mineral-fertilizers .fertilizer-catalog .catalog-tabs {
		margin-bottom: 56px;
		gap: 16px;
	}
}

/* Shared display typography lock: headings and large display figures only. */
body h1,
body h1 *,
body h2,
body h2 *,
body h3,
body h3 *,
body h4,
body h4 *,
body h5,
body h5 *,
body h6,
body h6 *,
.stats [data-countup-value],
.inline-stats [data-countup-value],
.page-template-page-about .principles-grid > article > span,
.home .product-card__content > strong,
.section--group-home .office-card > div > p,
.section--group-home .office-card__details > strong {
	font-family: "Sofia Sans", Inter, Arial, sans-serif !important;
}
