/*
 * Escola do Queijo page (page-school.php). Sections from the element nodes of the Figma
 * library: 837:14972, 837:15090, 813:70745, 843:22036, 808:68924.
 */

/* Section headings: 56px over the content, as in every node of the page. */
.school-define__header,
.school-applications__header,
.school-types__header,
.school-techniques__header {
	margin-block-end: var(--space-gap-section);
}

/* O que define um queijo? It follows the banner, so it starts 24px under the curve. */
.school-define {
	padding-block: var(--space-4) var(--section-padding-start);
}

.school-define .section-heading {
	max-width: 598px;
}

/*
 * The photo of 837:14972 is 495x474 whatever the accordion shows. Stretched to the content
 * column, as the other media splits are, it resized on every item opened (client round 1,
 * item 3). The ratio keeps the node's proportion from 1024 to 1440; below that the stacked
 * 4 / 3 of media-split.css applies.
 */
@media (min-width: 1024px) {
	.school-define .media-split {
		align-items: flex-start;
	}

	.school-define .media-split__media {
		aspect-ratio: 495 / 474;
		min-height: 0;
	}
}

/* Cada queijo, uma possibilidade: Gray 30 band, white chips. */
.school-applications {
	padding-block: var(--section-padding-start);
	background-color: var(--color-surface-subtle);
}

.school-applications .section-heading__description {
	max-width: 562px;
}

.school-applications .media-split__content {
	flex-basis: 49.18%;
}

.school-application {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-6);
}

.school-application__intro,
.school-application__indicators {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.school-application__name {
	margin: 0;
	color: var(--color-title-card);
	font-size: var(--font-h4);
}

.school-application__text {
	margin: 0;
	color: var(--color-text);
	font-size: var(--font-p2);
	line-height: 1.4;
}

.school-application__subtitle {
	margin: 0;
	color: var(--color-title-card);
	font-size: var(--font-h7);
}

.school-application__label {
	font-weight: 500;
}

.school-application .ingredient-list {
	gap: var(--space-1);
}

/* TOPICOS of 837:19726: the icon, 4, then the label, against the 16 of the recipe modal. */
.school-application .ingredient-list__item {
	gap: 4px;
}

/* The rows are 8px apart in 838:20218, against the 16px of the recipe modal. */
.school-application__products {
	gap: var(--space-1);
	margin-block-start: 0;
}

/* Tipos de queijos: the chip row is narrower than the container in the node, 2 lines. */
.school-types {
	padding-block: var(--section-padding-start);
}

.school-types .tabs__list {
	max-width: 1180px;
	margin-inline: auto;
	/* ABAS | TIPOS DE QUEIJOS: 56 from the chips to the panel, not the 64 of the other tabs. */
	margin-block-end: var(--space-gap-section);
}

/* IMG | PARMESÃO is 515 wide in 813:70579 (42.35% of 1216). */
.school-types .media-split__media {
	flex-basis: 42.35%;
}

/*
 * IMG | PARMESÃO (813:70436) is 515x782 whatever the accordion shows. Stretched to the
 * content column it changed size on every item opened, a layout shift (Henrique,
 * 2026-12-01, change accordion-media-shift): the same fix as "O que define um queijo?"
 * above. Below 1024 the stacked 4 / 3 of media-split.css applies.
 */
@media (min-width: 1024px) {
	.school-types .media-split {
		align-items: flex-start;
	}

	.school-types .media-split__media {
		aspect-ratio: 515 / 782;
		min-height: 0;
	}
}

/* Técnicas: Light Gray band, a 2x2 grid of 495px columns, 20px apart. */
.school-techniques {
	padding-block: var(--section-padding-start);
	background-color: var(--color-surface-muted);
}

.school-techniques .section-heading__description {
	max-width: 604px;
}

.school-techniques__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 495px));
	justify-content: center;
	gap: 20px;
}

/* The closing Produtos Profissionais carousel sits on Gray 30 here, after a white section. */
.products--gray {
	padding-block-start: var(--section-padding-start);
	background-color: var(--color-surface-subtle);
}

@media (max-width: 1023px) {
	.school-applications,
	.school-types,
	.school-techniques {
		padding-block: var(--space-7);
	}

	.school-define {
		padding-block-end: var(--space-7);
	}

	.school-techniques__grid {
		grid-template-columns: 1fr;
	}
}
