/*
 * Hand's Off Safety System page (design A, in the colors of the system's
 * brochure). Colors and the Anton font come from theme.json
 * (settings.custom.ho) and the "Hand's Off" section styles (Black, Amber,
 * Paper, Yellow); here the layout and the Hand's Off pieces. Loaded only
 * where a Hand's Off section (torqtek-ho) is on the page, and in the editor.
 */

/* Buttons on Hand's Off sections: 48px+, bold, as design A (.ho-btn); the
   colors come from the section style. */
.torqtek-ho .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-block-size: 48px;
	padding: 0.75rem 1.4rem;
	font-size: var(--wp--preset--font-size--medium);
	line-height: var(--wp--custom--line-height--body);
	font-weight: 700;
}

/* Outline button on black: white border and text (white with black text on
   hover). */
.is-style-hands-off-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--surface);
	background-color: transparent;
	color: var(--wp--preset--color--surface);
}

.is-style-hands-off-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--custom--ho--color--black);
}

.torqtek-ho :focus-visible {
	outline: 3px solid var(--wp--custom--ho--color--black);
	outline-offset: 3px;
}

.is-style-hands-off-dark :focus-visible {
	outline-color: var(--wp--custom--ho--color--yellow);
}

/* Large Anton lettering (.ho-display). */
.torqtek-ho .torqtek-ho-display {
	font-family: var(--wp--custom--ho--font-family);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* Hero (.ho-hero): 56px of black above and under; the text on black and the
   logo on white side by side from 900px, stacked on smaller screens. The
   text lines up with the 76rem column of the sections below. */
.torqtek-ho-hero.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.torqtek-ho-hero.wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.torqtek-ho-hero.wp-block-group > * {
	margin: 0;
}

.torqtek-ho-hero .torqtek-ho-copy {
	padding: 2rem 1rem 2.5rem;
}

@media (min-width: 900px) {
	.torqtek-ho-hero .torqtek-ho-copy {
		padding-block: 3.5rem 4rem;
		padding-inline: max(1.5rem, calc((100vw - 76rem) / 2 + 1.5rem)) 3rem;
	}
}

.torqtek-ho-copy > .wp-block-breadcrumbs.torqtek-crumbs {
	margin-block: 0 1rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--custom--ho--color--grey);
}

.torqtek-ho-copy .torqtek-crumbs a {
	color: inherit;
}

.torqtek-ho-copy > h1.torqtek-ho-kicker {
	margin-block: 0 1rem;
	font-family: var(--wp--custom--ho--font-family);
	font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--custom--ho--color--yellow);
}

.torqtek-ho-copy > .torqtek-ho-display {
	margin-block: 1.5rem;
	font-size: clamp(3rem, 1.6rem + 7vw, 6.5rem);
	color: var(--wp--preset--color--surface);
}

.torqtek-ho-copy > .torqtek-ho-lead {
	max-inline-size: 32em;
	margin-block: 1.5rem;
	color: var(--wp--custom--ho--color--grey);
}

.torqtek-ho-copy > .torqtek-ho-actions {
	gap: 0.75rem;
	margin-block: 0;
}

.torqtek-ho-hero .torqtek-ho-art {
	display: grid;
	place-items: center;
	padding: 1.5rem;
	background-color: var(--wp--preset--color--surface);
}

.torqtek-ho-art > .wp-block-image.torqtek-ho-shield {
	inline-size: min(100%, 26rem);
	margin: 0;
}

.torqtek-ho-shield img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

/* Sections under the hero: 48px above and under, 72px from 900px; H2 with
   1.25rem under it (size and color: section styles). */
:is(.torqtek-ho-amber, .torqtek-ho-dark, .torqtek-ho-paper).wp-block-group {
	padding-block: 3rem;
}

@media (min-width: 900px) {
	:is(.torqtek-ho-amber, .torqtek-ho-dark).wp-block-group {
		padding-block: 4.5rem;
	}

	.torqtek-ho-paper.wp-block-group {
		padding-block: 4rem;
	}
}

.torqtek-ho h2.wp-block-heading {
	margin-block: 0 1.25rem;
}

/* Yellow and black hazard stripe (.ho-hazard, 14px) on top of a section:
   drawn in its background, so it cannot be moved or deleted apart from the
   section. */
.torqtek-ho-hazard-top.wp-block-group {
	padding-block-start: calc(3rem + 14px);
	background-image: repeating-linear-gradient(-45deg, var(--wp--custom--ho--color--yellow) 0 14px, var(--wp--custom--ho--color--black) 14px 28px);
	background-position: top;
	background-repeat: no-repeat;
	background-size: 100% 14px;
}

@media (min-width: 900px) {
	.torqtek-ho-hazard-top.wp-block-group {
		padding-block-start: calc(4.5rem + 14px);
	}
}

/* Two columns from 900px (1.3fr / 1fr, 2rem apart), one under the other on
   smaller screens. */
.torqtek-ho-grid.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 900px) {
	.torqtek-ho-grid.wp-block-group {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: start;
	}
}

.torqtek-ho-grid.wp-block-group > * {
	margin: 0;
}

/* Amber text: 1.1rem, no wider than 40em, 1rem under each paragraph. */
.torqtek-ho-amber .torqtek-ho-col > p:not(.torqtek-ho-display, .torqtek-ho-weight-note) {
	max-inline-size: 40em;
	margin-block: 0 1rem;
	font-size: 1.1rem;
}

/* "70+ lb" (.ho-weight) and its note. */
.torqtek-ho-col > .torqtek-ho-weight {
	margin: 0;
	text-transform: none; /* "70+ lb": units in lower case, as in design A */
	font-size: clamp(4rem, 3rem + 5vw, 7rem);
	line-height: 0.9;
}

.torqtek-ho-col > .torqtek-ho-weight-note {
	margin-block: 0.5rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.torqtek-ho-col > h3.wp-block-heading {
	margin-block: 1.75rem 0.75rem;
}

/* Numbered steps in black boxes (.ho-steps): yellow Anton number on the
   left; the list numbers itself. */
.torqtek-ho-col > ol.torqtek-ho-steps {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: torqtek-ho-step;
}

.torqtek-ho-steps > li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: center;
	margin: 0;
	padding: 1rem 1.25rem;
	background-color: var(--wp--custom--ho--color--black);
	color: var(--wp--preset--color--surface);
	counter-increment: torqtek-ho-step;
}

.torqtek-ho-steps > li::before {
	content: counter(torqtek-ho-step);
	font-family: var(--wp--custom--ho--font-family);
	font-size: 2rem;
	line-height: 1;
	color: var(--wp--custom--ho--color--yellow);
}

/* Why choose Hand's Off (.ho-dark): the client's slogan from the video in
   yellow Anton letters under the H2, H3 "Safety first" and the points with
   yellow check marks, two per row from 768px. */
/* Stronger than WordPress' ":root :where(.is-layout-flow) > *", which
   would push a block down by 1rem (in a section with no room on top the
   margin would show the page background above it). */
.torqtek-ho-body.wp-block-group > * {
	margin-block: 0;
}

.torqtek-ho-body > h2.wp-block-heading {
	margin-block: 0 1.25rem;
}

.torqtek-ho-body > .torqtek-ho-slogan {
	margin-block: 0 1.75rem;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	color: var(--wp--custom--ho--color--yellow);
}

.torqtek-ho-dark .torqtek-ho-body > h3.wp-block-heading {
	margin-block: 0 0.25rem;
}

.torqtek-ho-body > ul.torqtek-ho-checks {
	display: grid;
	gap: 1.25rem;
	margin-block: 1.25rem 0;
	padding: 0;
	list-style: none;
}

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

.torqtek-ho-checks > li {
	display: grid;
	grid-template-columns: 2.25rem 1fr;
	gap: 1rem;
	align-items: start;
	margin: 0;
	font-size: 1.05rem;
	color: var(--wp--custom--ho--color--grey);
}

/* Yellow square with a black check mark; decorative. */
.torqtek-ho-checks > li::before {
	content: "";
	inline-size: 2.25rem;
	block-size: 2.25rem;
	background: var(--wp--custom--ho--color--yellow) no-repeat center / 60% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23050403' stroke-width='3.2' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* The Hand's Off unit (.ho-see): photo in a black frame and the text with
   the video, side by side from 900px (photo column up to 26rem, 4rem apart,
   centered), one under the other on smaller screens. In the photo column
   (torqtek-ho-photos) a small gallery of three more photos (torqtek-photos,
   thin frame) stands 0.5rem under the main photo; all of them enlarge on
   click (decisions.md 2026-10-27). */
.torqtek-ho-see.wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.torqtek-ho-see.wp-block-group {
		grid-template-columns: minmax(0, 26rem) 1fr;
		gap: 4rem;
	}
}

.torqtek-ho-see.wp-block-group > * {
	margin: 0;
}

.torqtek-ho-photos.wp-block-group {
	display: grid;
	gap: 0.5rem;
}

.torqtek-ho-photos.wp-block-group > * {
	margin: 0;
}

.torqtek-ho-see .wp-block-image.torqtek-ho-unit {
	border: 6px solid var(--wp--custom--ho--color--black);
	background-color: var(--wp--custom--ho--color--photo-bg);
}

.torqtek-ho-unit img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

/* Facts in large Anton letters with a yellow bar (.ho-facts), 1.5rem above
   the video. */
.torqtek-ho-col > ul.torqtek-ho-facts {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.torqtek-ho-facts > li {
	max-inline-size: none;
	margin: 0;
	padding-inline-start: 1.5rem;
	border-inline-start: 8px solid var(--wp--custom--ho--color--yellow);
	font-family: var(--wp--custom--ho--font-family);
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
	line-height: 1.05;
	text-transform: uppercase;
}

.torqtek-ho-col > .wp-block-video.torqtek-video {
	margin: 0;
}

/* Paper sections that continue the one above (.ho-paper with no room on
   top). */
.torqtek-ho-paper.torqtek-ho-tight.wp-block-group {
	padding-block-start: 0;
}

/* Visible to screen readers only. */
.torqtek-ho .torqtek-ho-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Exclusive distributor (.ho-dist): TorqTek logo (up to 18rem) and the
   lettering between 6px black lines, side by side from 768px. */
.torqtek-ho-body > .torqtek-ho-dist.wp-block-group {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding-block: 1.75rem;
	border-block: 6px solid var(--wp--custom--ho--color--black);
}

@media (min-width: 768px) {
	.torqtek-ho-body > .torqtek-ho-dist.wp-block-group {
		grid-template-columns: auto 1fr;
		gap: 3rem;
	}
}

.torqtek-ho-dist.wp-block-group > * {
	margin: 0;
}

.torqtek-ho-dist > .wp-block-image.torqtek-ho-dist-logo {
	inline-size: min(100%, 18rem);
}

.torqtek-ho-dist-logo img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.torqtek-ho-dist > .torqtek-ho-dist-text {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}

/* Is it right for your equipment? (.ho-paper): H2, a paragraph up to 44em,
   the brochure box 1.5rem under it and 2.5rem above the FAQ. */
.torqtek-ho-fit.wp-block-group > p {
	max-inline-size: 44em;
	margin-block-end: 1rem;
}

.torqtek-ho-fit.wp-block-group > .torqtek-ho-doc {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	max-inline-size: 44rem;
	margin-block: 1.5rem 2.5rem;
	padding: 1.25rem 1.5rem;
	border-inline-start: 8px solid var(--wp--custom--ho--color--yellow);
	background-color: var(--wp--preset--color--surface);
}

.torqtek-ho-doc.wp-block-group > * {
	margin: 0;
}

.torqtek-ho-doc-link a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	text-decoration: underline;
}

/* FAQ in the Hand's Off look: black question text, 2px black line under
   each, "+" / "–" in a yellow square (layout: shared.css). */
.torqtek-ho .torqtek-faq > .wp-block-details {
	border-block-end: 2px solid var(--wp--custom--ho--color--black);
}

.torqtek-ho .torqtek-faq > .wp-block-details > summary {
	color: var(--wp--custom--ho--color--black);
}

.torqtek-ho .torqtek-faq > .wp-block-details > summary::after {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	background-color: var(--wp--custom--ho--color--yellow);
	color: var(--wp--custom--ho--color--black);
}

.torqtek-ho .torqtek-faq > .wp-block-details > p {
	max-inline-size: 44em;
}

/* Yellow call-to-action band (.ho-cta), the hazard stripe on top: 48px
   above (plus the stripe) and under at every width, H2 1rem over the lead
   (layout of the lead and the actions: torqtek-quote, shared.css). */
.torqtek-ho-yellow.wp-block-group,
.torqtek-ho-yellow.torqtek-ho-hazard-top.wp-block-group {
	padding-block: calc(3rem + 14px) 3rem;
}

@media (min-width: 900px) {
	.torqtek-ho-yellow.torqtek-ho-hazard-top.wp-block-group {
		padding-block-start: calc(3rem + 14px);
	}
}

.torqtek-ho-yellow h2.wp-block-heading {
	margin-block: 0 1rem;
}

/* Arabic: no letter spacing, it breaks the joined letters. */
:lang(ar) :is(.torqtek-ho .torqtek-ho-display, .torqtek-ho-copy > h1.torqtek-ho-kicker) {
	letter-spacing: 0;
}
