/*
 * Home page sections after the banner (design A). Colors, fonts and the H1
 * size come from theme.json; here only spacing and widths.
 */

/* Intro: as rendered in design A, where the section padding (3.5rem) adds up
   with the inner one (2.5rem/3rem on phones, 3rem from 768px): 96/104px on
   phones, 104px from 768px. Lead no wider than 38em. */
.torqtek-intro {
	padding-block: 6rem 6.5rem;
}

@media (min-width: 768px) {
	.torqtek-intro {
		padding-block: 6.5rem;
	}
}

.torqtek-intro .torqtek-intro-lead {
	max-inline-size: var(--wp--custom--measure--text);
	margin-block: 1.25rem 1.75rem;
}

/* Section heading (H2 + lead) of the home sections after the intro. */
.wp-block-group.torqtek-sec-head {
	max-inline-size: 40rem;
	margin-block-end: 1.75rem;
}

.torqtek-sec-head > p {
	max-inline-size: var(--wp--custom--measure--text);
	margin-block-start: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* Clamp Cylinders: button 1.5rem under the datasheet and 1rem of room under
   it, as rendered in design A (the button sits in a paragraph there).
   Stronger than WordPress' ":root :where(.is-layout-flow) > :last-child". */
.torqtek-clamp .wp-block-column > .torqtek-clamp-more {
	margin-block: 1.5rem 1rem;
}

/* Columns side by side from 900px, as in the design (core columns: 782px). */
@media (min-width: 782px) and (max-width: 899.98px) {
	.torqtek-clamp .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.torqtek-clamp .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Why TorqTek: list of points, bold title on its own line and a steel line
   on the left; 1 per row on phones, 2 from 768px (an added point joins the
   grid). The title is 1.15rem (design: 1.1rem, no such size in the theme). */
.torqtek-why ul.torqtek-why-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.torqtek-why ul.torqtek-why-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.torqtek-why-list > li {
	margin: 0;
	padding-inline-start: 1.25rem;
	border-inline-start: 4px solid var(--wp--preset--color--steel);
}

.torqtek-why-list > li > strong:first-child {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lead);
	color: var(--wp--preset--color--navy);
}

/* Link 1.75rem under the list and 1rem of room under it, as rendered in
   design A (browser margin of the paragraph there). Stronger than
   WordPress' ":root :where(.is-layout-flow) > :last-child". */
.torqtek-why .wp-block-group > .torqtek-why-more {
	margin-block: 1.75rem 1rem;
}

/* Steps (frames and numbers: shared.css): the list right under the
   heading. */
.torqtek-steps .wp-block-group > .torqtek-step-list {
	margin-block: 0;
}

/* Note 1.5rem under the steps, button 1rem under the note. */
.torqtek-steps .wp-block-group > .torqtek-steps-note {
	margin-block: 1.5rem 0;
}

.torqtek-steps .wp-block-group > .torqtek-steps-action {
	margin-block: 1rem 0;
}

/* Brochures: the list right under the heading (rows: shared.css). */
.torqtek-docs .wp-block-group > .torqtek-doc-list {
	margin-block: 0;
}

/* "All resources" 1.25rem under the list. */
.torqtek-docs .wp-block-group > .torqtek-docs-more {
	margin-block: 1.25rem 0;
}
