/**
 * V9.00 RC6 — Site system standardization.
 * Final cross-route visual contract. Keeps route content distinct while
 * normalizing hierarchy, buttons, cards, spacing and conversion surfaces.
 */

:root {
	--cy-rc6-radius-sm: .75rem;
	--cy-rc6-radius: 1.1rem;
	--cy-rc6-radius-lg: 1.55rem;
	--cy-rc6-shadow: 0 1.2rem 3rem rgba(17,17,17,.07);
}

/* Shared interaction language */
.site-main :is(.cy-button, .cy-product-cta__button, .cy-link),
.site-main a[class*="__button"] {
	border-radius: 999px;
}

.site-main :is(.cy-button, .cy-product-cta__button, .cy-link, a[class*="__button"]) {
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.site-main :is(.cy-button, .cy-product-cta__button, a[class*="__button"]):hover,
.site-main :is(.cy-button, .cy-product-cta__button, a[class*="__button"]):focus-visible {
	transform: translateY(-2px);
}

/* Editorial page rhythm */
:is(.cy-industries-page-hero,.cy-services-page-hero,.cy-process-page-hero,.cy-contact-page-hero) {
	padding-top: clamp(4rem,7vw,7rem);
}

:is(.cy-industries-page-hero__headline,.cy-services-page-hero__headline,.cy-process-page-hero__headline) h1 {
	text-transform: none;
	letter-spacing: -.055em;
}

:is(.cy-industries-page-sectors,.cy-services-page-services,.cy-process-page-flow) {
	padding-block: clamp(4.5rem,7vw,7rem);
}

/* Industry hub — cleaner premium application cards */
.cy-industries-page-sectors .cy-card-grid {
	gap: 1rem;
}

.cy-industries-page-sector-link {
	position: relative;
	min-height: 25rem;
	padding: clamp(1.5rem,2.5vw,2.25rem);
	border-radius: var(--cy-rc6-radius-lg) !important;
	overflow: hidden;
}

.cy-industries-page-sector-link::before {
	position: absolute;
	inset: 0 0 auto;
	height: .22rem;
	background: var(--cypros-yellow);
	content: "";
	transform: scaleX(.18);
	transform-origin: left;
	transition: transform .3s ease;
}

.cy-industries-page-sector-link:hover::before,
.cy-industries-page-sector-link:focus-visible::before { transform: scaleX(1); }
.cy-industries-page-sector-link:hover,
.cy-industries-page-sector-link:focus-visible { transform: translateY(-4px); box-shadow: var(--cy-rc6-shadow); }

.cy-industries-page-sector-link__criteria { gap: .45rem; }
.cy-industries-page-sector-link__criteria span {
	border-radius: 999px;
	padding: .42rem .68rem;
}

/* Industry detail — connected engineering story */
.cy-industry-detail__hero,
.cy-industry-detail__risk,
.cy-industry-detail__criteria,
.cy-industry-detail__applications,
.cy-industry-detail__solution,
.cy-industry-detail__cta,
.cy-industry-detail__explore {
	position: relative;
}

.cy-industry-detail__risk-grid article,
.cy-industry-detail__applications-grid article {
	border-radius: var(--cy-rc6-radius);
}

.cy-industry-detail__criteria-list li {
	border-radius: var(--cy-rc6-radius-sm);
}

.cy-industry-detail__solution-grid,
.cy-industry-detail__cta-grid,
.cy-industry-detail__explore-grid {
	border-radius: var(--cy-rc6-radius-lg);
}

/* Services/process/contact: same component maturity as catalog */
.cy-services-page-services__list .cy-card {
	border-radius: var(--cy-rc6-radius) !important;
	padding-inline: clamp(1rem,2vw,1.5rem) !important;
	margin-bottom: .65rem;
	background: #fff;
}

.cy-services-page-services__list .cy-card:hover {
	background: #f8f8f6;
	transform: translateX(.2rem);
}

.cy-process-page-flow :is(article,li),
.cy-contact-page :is(.cy-card, form) {
	border-radius: var(--cy-rc6-radius);
}

/* Product metrics: premium instrument panel, never a flat black bar. */
.cy-product-hero__metrics {
	gap: .65rem;
	padding: .65rem;
	border: 1px solid rgba(17,17,17,.12);
	border-radius: var(--cy-rc6-radius-lg);
	background: rgba(255,255,255,.96);
	box-shadow: 0 1rem 2.6rem rgba(0,0,0,.08);
}

.cy-product-hero__metrics > div {
	border: 1px solid rgba(17,17,17,.08);
	border-radius: .95rem;
	background: #f7f7f5;
}

.cy-product-hero__metrics > div:nth-child(-n+2) { background: #111; color: #fff; }
.cy-product-hero__metrics > div:nth-child(-n+2) span { color: rgba(255,255,255,.62); }
.cy-product-hero__metrics > div:nth-child(-n+2) small { color: var(--cypros-yellow); }

/* Print technical sheet — designed for one page, two only when specs require it. */
.cy-print-sheet-header,
.cy-print-sheet-footer { display: none; }

@media print {
	@page { size: A4 portrait; margin: 15mm 13mm 16mm; }

	.cy-print-sheet-header {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 12mm;
		padding-bottom: 5mm;
		margin-bottom: 5mm;
		border-bottom: 1.5pt solid #111;
	}
	.cy-print-sheet-header img {
		width: 45mm;
		height: auto;
		filter: brightness(0);
	}
	.cy-print-sheet-header > div { text-align: right; }
	.cy-print-sheet-header strong,
	.cy-print-sheet-header span { display: block; }
	.cy-print-sheet-header strong { font-size: 12pt; }
	.cy-print-sheet-header span { margin-top: 1mm; font-size: 8pt; letter-spacing: .08em; }

	.cy-print-sheet-footer {
		display: flex !important;
		position: fixed;
		left: 13mm;
		right: 13mm;
		bottom: 5mm;
		justify-content: space-between;
		padding-top: 2.5mm;
		border-top: .75pt solid #aaa;
		font-size: 7.5pt;
		color: #444;
	}

	.cy-product-page > :not(.cy-print-sheet-header):not(.cy-print-sheet-footer):not(.cy-product-hero):not(.cy-product-specs) {
		display: none !important;
	}
	.cy-product-hero { padding: 0 !important; }
	.cy-product-hero__top,
	.cy-product-hero__actions,
	.cy-product-gallery__controls,
	.cy-product-gallery__reference,
	.cy-product-specs__intro > p { display: none !important; }
	.cy-product-hero__grid {
		display: grid !important;
		grid-template-columns: 1.08fr .92fr !important;
		gap: 7mm !important;
		align-items: center;
	}
	.cy-product-hero h1 { font-size: 24pt !important; line-height: .98 !important; margin-bottom: 3mm !important; }
	.cy-product-hero__lead { font-size: 8.5pt !important; line-height: 1.45 !important; margin-bottom: 4mm !important; }
	.cy-product-hero__model { font-size: 7.5pt !important; }
	.cy-product-gallery { min-height: 0 !important; height: 58mm !important; }
	.cy-product-gallery__image { width: 100% !important; height: 100% !important; object-fit: contain !important; }
	.cy-product-gallery__image:not(.is-active) { display: none !important; }
	.cy-product-hero__metrics {
		display: grid !important;
		grid-template-columns: repeat(3,1fr) !important;
		gap: 2mm !important;
		padding: 2mm !important;
		box-shadow: none !important;
		border-radius: 3mm !important;
	}
	.cy-product-hero__metrics > div {
		min-height: 0 !important;
		padding: 2.5mm !important;
		border-radius: 2mm !important;
	}
	.cy-product-hero__metrics span { font-size: 6.5pt !important; }
	.cy-product-hero__metrics strong { font-size: 13pt !important; }
	.cy-product-hero__metrics em { font-size: 5.8pt !important; }

	.cy-product-specs { padding: 5mm 0 0 !important; }
	.cy-product-specs__intro { margin-bottom: 3mm !important; }
	.cy-product-specs__intro h2 { font-size: 15pt !important; }
	.cy-product-specs__summary-grid { display: none !important; }
	.cy-product-specs__details {
		display: block !important;
		border: 0 !important;
		margin: 0 !important;
	}
	.cy-product-specs__details-body { display: block !important; padding: 0 !important; }
	.cy-product-specs__list {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 0 5mm !important;
		font-size: 7.2pt !important;
	}
	.cy-product-specs__list > div {
		display: grid !important;
		grid-template-columns: 1fr 1.05fr !important;
		gap: 2mm !important;
		padding: 1.25mm 0 !important;
		border-bottom: .5pt solid #ddd !important;
		break-inside: avoid;
	}
	.cy-product-specs__list .cy-product-specs__group-title {
		grid-column: 1 / -1;
		margin-top: 2mm;
		padding: 1.5mm 0 !important;
		border-bottom: 1pt solid #111 !important;
		font-weight: 700;
	}
	.cy-product-specs__list dt,
	.cy-product-specs__list dd { margin: 0 !important; }
	.cy-product-specs__list dd { text-align: right; }
}

@media (max-width: 48rem) {
	.cy-industries-page-sector-link { min-height: auto; }
	.cy-product-hero__metrics { border-radius: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.cy-industries-page-sector-link,
	.site-main :is(.cy-button,.cy-product-cta__button,.cy-link,a[class*="__button"]) { transition: none !important; }
}

/* Industry search/commercial context — useful content, not keyword stuffing. */
.cy-industry-detail__search-context {
	padding: clamp(4.5rem,7vw,7rem) 0;
	background: #f4f4f1;
}
.cy-industry-detail__search-context-grid {
	display: grid;
	grid-template-columns: minmax(0,1.05fr) minmax(18rem,.75fr);
	gap: clamp(2.5rem,7vw,7rem);
	align-items: start;
	padding: clamp(1.5rem,3vw,2.5rem);
	border: 1px solid rgba(17,17,17,.1);
	border-radius: var(--cy-rc6-radius-lg);
	background: #fff;
}
.cy-industry-detail__search-context-grid > div:first-child > p {
	margin: 0 0 1rem;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.cy-industry-detail__search-context h2 {
	max-width: 15ch;
	margin: 0;
	font-size: clamp(2.25rem,4.5vw,4.75rem);
	line-height: .94;
	letter-spacing: -.05em;
}
.cy-industry-detail__search-context-grid > div:last-child > p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--cypros-gray-700);
}
.cy-industry-detail__search-context ul {
	display: grid;
	gap: .55rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.cy-industry-detail__search-context li {
	position: relative;
	padding: .75rem 1rem .75rem 2rem;
	border-radius: .8rem;
	background: #f5f5f2;
	font-weight: 700;
}
.cy-industry-detail__search-context li::before {
	position: absolute;
	left: .8rem;
	top: 50%;
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--cypros-yellow);
	content: "";
	transform: translateY(-50%);
}
@media (max-width: 48rem) {
	.cy-industry-detail__search-context-grid { grid-template-columns: 1fr; }
}


/* RC7 — industry decision architecture and related applications */
.cy-industries-page-decision { padding: clamp(4.5rem,8vw,8rem) 0; background:#111; color:#fff; }
.cy-industries-page-decision__head { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(18rem,.7fr); gap:clamp(2rem,7vw,7rem); align-items:end; margin-bottom:clamp(2.5rem,5vw,4.5rem); }
.cy-industries-page-decision__head p { margin:0; color:rgba(255,255,255,.64); line-height:1.75; }
.cy-industries-page-decision__head > div > p { margin-bottom:1rem; font-size:.68rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--cypros-yellow); }
.cy-industries-page-decision__head h2 { max-width:13ch; margin:0; font-size:clamp(2.4rem,5vw,5.3rem); line-height:.92; letter-spacing:-.055em; }
.cy-industries-page-decision__head h2 span { color:var(--cypros-yellow); }
.cy-industries-page-decision__flow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0; padding:0; list-style:none; border-top:1px solid rgba(255,255,255,.18); }
.cy-industries-page-decision__flow li { position:relative; min-height:12rem; padding:1.25rem 1.15rem; border-right:1px solid rgba(255,255,255,.14); }
.cy-industries-page-decision__flow li::before { position:absolute; top:-.33rem; left:1.15rem; width:.62rem; height:.62rem; border-radius:50%; background:var(--cypros-yellow); content:""; }
.cy-industries-page-decision__flow span,.cy-industries-page-decision__flow strong,.cy-industries-page-decision__flow small { display:block; }
.cy-industries-page-decision__flow span { margin-bottom:2.6rem; font-size:.65rem; letter-spacing:.12em; color:rgba(255,255,255,.5); }
.cy-industries-page-decision__flow strong { margin-bottom:.6rem; font-size:1rem; }
.cy-industries-page-decision__flow small { max-width:18ch; color:rgba(255,255,255,.58); line-height:1.5; }

.cy-industry-detail__related { padding:clamp(4.5rem,8vw,8rem) 0; background:#f4f4f1; }
.cy-industry-detail__related-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,.7fr); gap:clamp(2rem,7vw,7rem); align-items:end; margin-bottom:2.25rem; }
.cy-industry-detail__related-head > div > p { margin:0 0 1rem; font-size:.68rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.cy-industry-detail__related-head h2 { max-width:15ch; margin:0; font-size:clamp(2.1rem,4vw,4.4rem); line-height:.95; letter-spacing:-.05em; }
.cy-industry-detail__related-head > p { margin:0; color:var(--cypros-gray-700); line-height:1.7; }
.cy-industry-detail__related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.cy-industry-detail__related-grid a { position:relative; display:grid; min-height:13rem; padding:1.4rem; border:1px solid rgba(17,17,17,.1); border-radius:var(--cy-rc6-radius); background:#fff; color:#111; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.cy-industry-detail__related-grid a:hover,.cy-industry-detail__related-grid a:focus-visible { transform:translateY(-4px); border-color:rgba(17,17,17,.22); box-shadow:var(--cy-rc6-shadow); }
.cy-industry-detail__related-grid span { font-size:.68rem; font-weight:800; letter-spacing:.12em; color:#777; }
.cy-industry-detail__related-grid strong { align-self:end; font-size:1.45rem; letter-spacing:-.03em; }
.cy-industry-detail__related-grid small { margin-top:.35rem; color:#666; }
.cy-industry-detail__related-grid i { position:absolute; top:1.25rem; right:1.25rem; display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:var(--cypros-yellow); font-style:normal; }

/* RC7 — print sheet is a branded document, not a browser page. */
@media print {
  body { background:#fff !important; }
  .cy-print-sheet-header img { filter:brightness(0) !important; }
  .cy-print-sheet-footer { background:#fff; }
  .cy-print-sheet-footer span:first-child { font-weight:700; }
}

@media (max-width:64rem) {
 .cy-industries-page-decision__flow { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .cy-industry-detail__related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:48rem) {
 .cy-industries-page-decision__head,.cy-industry-detail__related-head { grid-template-columns:1fr; }
 .cy-industries-page-decision__flow,.cy-industry-detail__related-grid { grid-template-columns:1fr; }
 .cy-industries-page-decision__flow li { min-height:auto; border-right:0; border-bottom:1px solid rgba(255,255,255,.14); }
}

/* ==========================================================
   V9.00 RC20 — 280 PX TYPOGRAPHY CONTRACT
   Whole words always win over oversized editorial type.
========================================================== */
@media (max-width: 22.5rem) {
	.site-main,
	.site-main section,
	.site-main .cy-container {
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.site-main :is(h1, h2, h3) {
		max-width: 100% !important;
		overflow: visible !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none !important;
	}

	:is(
		.cy-process__intro h2,
		.cy-industries-page-hero__headline h1,
		.cy-industries-page-sectors__intro h2,
		.cy-industries-page-criteria__headline h2,
		.cy-industries-page-decision__head h2,
		.cy-industries-page-cta h2,
		.cy-equipment-page__intro h2,
		.cy-equipment-brands__header h2,
		.cy-services-page-hero__headline h1,
		.cy-services-page-services__intro h2,
		.cy-process-page-hero__headline h1,
		.cy-contact-page-hero h1,
		.cy-contact-page-start__intro h2,
		.cy-product-page h1,
		.cy-product-page h2
	) {
		font-size: clamp(1.55rem, 8.6vw, 1.9rem) !important;
		line-height: 1 !important;
		letter-spacing: -.035em !important;
	}

	.cy-industries-page-sectors .cy-card__title,
	.cy-industries-page-sector-link h3 {
		font-size: clamp(1.05rem, 5.7vw, 1.28rem) !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none !important;
	}
}
