/*
 * Manufacturing v1.
 *
 * Loaded only by the fixed /manufacturing route. Shared shell, header, footer
 * and inquiry styles remain in style.css; this file adds the page sections, the
 * three independent state groups and explicit unlinked media placeholders.
 */

.manufacturing-page {
	background: #ffffff;
	color: var(--jiaye-ink);
}

.manufacturing-page :focus-visible {
	outline: 2px solid var(--jiaye-blue);
	outline-offset: 3px;
}

/* Full-width, left-aligned dark hero */
.manufacturing-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 590px;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(ellipse at 72% 18%, rgba(106, 142, 174, 0.42), rgba(106, 142, 174, 0) 55%),
		radial-gradient(ellipse at 16% 84%, rgba(64, 104, 145, 0.3), rgba(64, 104, 145, 0) 52%),
		linear-gradient(115deg, #0b131b 0%, #14212d 48%, #24394a 100%);
	color: #ffffff;
}

.manufacturing-hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 112px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 112px);
	content: "";
	pointer-events: none;
}

.manufacturing-hero::after {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 12, 18, 0.58) 0%, rgba(6, 12, 18, 0.16) 58%, rgba(6, 12, 18, 0) 100%);
	content: "";
	pointer-events: none;
}

.manufacturing-hero__inner {
	position: relative;
	z-index: 1;
	padding: 92px 0 112px;
}

.manufacturing-hero__eyebrow {
	margin: 0 0 18px;
	color: #a9c4dc;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.manufacturing-hero__title {
	max-width: 930px;
	margin: 0;
	color: #ffffff;
	font-family: var(--jiaye-font-body);
	font-size: clamp(44px, 4.7vw, 68px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.manufacturing-hero__subtitle {
	max-width: 640px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
}

.manufacturing-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 56px;
	min-width: 238px;
	min-height: 56px;
	margin-top: 32px;
	padding: 0 22px;
	background: var(--jiaye-blue);
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.manufacturing-hero__cta:hover {
	background: var(--jiaye-blue-dark);
	color: #ffffff;
	text-decoration: none;
}

.manufacturing-hero__cta:hover .manufacturing-hero__cta-arrow {
	transform: translateY(2px);
}

.manufacturing-hero__cta-arrow {
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.18s ease;
}

.manufacturing-hero__slot-wrap {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	z-index: 1;
}

.manufacturing-hero__slot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.manufacturing-hero__slot .manufacturing-slot__status {
	background: rgba(255, 255, 255, 0.94);
	color: #1b2835;
}

.manufacturing-hero__slot .manufacturing-slot__key {
	color: rgba(255, 255, 255, 0.66);
}

.manufacturing-hero :focus-visible,
.manufacturing-section--quality :focus-visible {
	outline-color: #9cc4f5;
}

/* Horizontal in-page section navigation */
.manufacturing-jump {
	border-bottom: 1px solid var(--jiaye-line);
	background: #ffffff;
}

.manufacturing-jump__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 clamp(24px, 4.2vw, 64px);
	padding: 16px 0;
}

.manufacturing-jump a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jiaye-blue);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.manufacturing-jump a:hover {
	color: var(--jiaye-blue-dark);
}

/* State sections */
.manufacturing-section {
	padding: 72px 0 80px;
}

.manufacturing-section--production {
	background: #ffffff;
}

.manufacturing-section--tooling {
	background: #F5F7FA;
}

.manufacturing-section--quality {
	background-color: #0e1720;
	background-image: var(--jiaye-deep-gradient);
	color: #ffffff;
}

.manufacturing-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 40px;
}

.manufacturing-section__heading {
	min-width: 0;
}

.manufacturing-section__title {
	margin: 0;
	color: var(--jiaye-ink);
	font-family: var(--jiaye-font-body);
	font-size: clamp(30px, 3.1vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.manufacturing-section__subtitle {
	max-width: 760px;
	margin: 12px 0 0;
	color: var(--jiaye-muted);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.manufacturing-section--quality .manufacturing-section__title {
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-section__subtitle {
	color: rgba(255, 255, 255, 0.8);
}

.manufacturing-controls {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.manufacturing-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #cfd6de;
	border-radius: 0;
	background: transparent;
	color: #1f2c3a;
	font-family: var(--jiaye-font-body);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.manufacturing-control:hover {
	border-color: var(--jiaye-blue);
	color: var(--jiaye-blue);
}

.manufacturing-control:focus-visible {
	outline: 2px solid var(--jiaye-blue);
	outline-offset: 2px;
}

.manufacturing-count {
	min-width: 52px;
	margin: 0;
	color: var(--jiaye-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.manufacturing-section--quality .manufacturing-control {
	border-color: rgba(255, 255, 255, 0.38);
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-control:hover {
	border-color: #ffffff;
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-control:focus-visible {
	outline-color: #9cc4f5;
}

.manufacturing-section--quality .manufacturing-count {
	color: rgba(255, 255, 255, 0.78);
}

/* Desktop tabs share the same baseline and active indicator. */
.manufacturing-tabs {
	margin-top: 30px;
}

.manufacturing-tabs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 34px;
	margin: 0;
	border-bottom: 1px solid var(--jiaye-line);
}

.manufacturing-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 0 13px;
	border: 0;
	background: none;
	color: var(--jiaye-muted);
	font-family: var(--jiaye-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.manufacturing-tab:hover {
	color: var(--jiaye-blue);
}

.manufacturing-tab.is-active {
	color: var(--jiaye-blue);
	font-weight: 600;
}

.manufacturing-tab.is-active::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: var(--jiaye-blue);
	content: "";
}

.manufacturing-section--quality .manufacturing-tabs__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 18px;
	border-color: rgba(255, 255, 255, 0.24);
}

.manufacturing-section--quality .manufacturing-tab {
	color: rgba(255, 255, 255, 0.7);
}

.manufacturing-section--quality .manufacturing-tab:hover {
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-tab.is-active {
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-tab.is-active::after {
	background: #7fb1e6;
}

/* State panels */
.manufacturing-panels {
	position: relative;
	display: grid;
	gap: 48px;
	margin-top: 32px;
}

.manufacturing-panel {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 7fr);
	gap: 64px 80px;
	align-items: start;
}

.manufacturing-panel.manufacturing-panel--text-only {
	grid-template-columns: minmax(0, 720px);
	gap: 0;
}

.manufacturing-production-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 18px;
}

.manufacturing-panel__media {
	min-width: 0;
	margin: 0;
}

.manufacturing-slot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 7px;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 20px;
	border: 1px solid rgba(21, 32, 45, 0.12);
	background: linear-gradient(135deg, #e9edf1 0%, #d5dde5 100%);
}

.manufacturing-section--quality .manufacturing-slot {
	border-color: rgba(255, 255, 255, 0.22);
	background: linear-gradient(135deg, #0c1721 0%, #223648 100%);
}

.manufacturing-slot__status {
	display: inline-block;
	max-width: 100%;
	padding: 5px 9px;
	background: #ffffff;
	color: #21303f;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.manufacturing-slot__key {
	color: #5c6875;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.manufacturing-panel__copy {
	min-width: 0;
	padding-top: 6px;
}

.manufacturing-panel__kicker {
	margin: 0 0 14px;
	color: var(--jiaye-blue);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.manufacturing-panel__title {
	margin: 0;
	color: var(--jiaye-ink);
	font-family: var(--jiaye-font-body);
	font-size: clamp(28px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

.manufacturing-panel__body {
	margin: 18px 0 0;
	color: var(--jiaye-muted);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
}

.manufacturing-panel__points {
	margin: 26px 0 0;
	padding: 0;
	border-top: 1px solid var(--jiaye-line);
	list-style: none;
}

.manufacturing-panel__points li {
	position: relative;
	padding: 14px 0 14px 22px;
	border-bottom: 1px solid var(--jiaye-line);
	color: var(--jiaye-ink);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
}

.manufacturing-panel__points li::before {
	position: absolute;
	left: 0;
	color: #8a97a6;
	content: "—";
}

.manufacturing-section--quality .manufacturing-panel__kicker {
	color: #8fb8e7;
}

.manufacturing-section--quality .manufacturing-panel__title {
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-panel__body {
	color: rgba(255, 255, 255, 0.78);
}

.manufacturing-section--quality .manufacturing-panel__points {
	border-color: rgba(255, 255, 255, 0.22);
}

.manufacturing-section--quality .manufacturing-panel__points li {
	border-color: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.manufacturing-section--quality .manufacturing-panel__points li::before {
	color: #9fb3c8;
}

/* Tablet */
@media (max-width: 1023px) {
	.manufacturing-hero {
		min-height: 520px;
	}

	.manufacturing-hero__inner {
		padding: 76px 0 100px;
	}

	.manufacturing-hero__title {
		font-size: clamp(38px, 5.4vw, 54px);
	}

	.manufacturing-hero__subtitle {
		font-size: 18px;
	}

	.manufacturing-section {
		padding: 60px 0 68px;
	}

	.manufacturing-section__title {
		font-size: 36px;
	}

	.manufacturing-panel {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 44px 48px;
	}

	.manufacturing-panel__title {
		font-size: 30px;
	}

	.manufacturing-section--quality .manufacturing-tabs__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile: single column, image above copy */
@media (max-width: 767px) {
	.manufacturing-hero {
		min-height: 0;
	}

	.manufacturing-hero__inner {
		padding: 58px 0 86px;
	}

	.manufacturing-hero__eyebrow {
		margin-bottom: 14px;
		font-size: 11px;
	}

	.manufacturing-hero__title {
		font-size: clamp(34px, 10.2vw, 44px);
		line-height: 1.06;
	}

	.manufacturing-hero__subtitle {
		margin-top: 18px;
		font-size: 17px;
	}

	.manufacturing-hero__cta {
		gap: 40px;
		min-width: 0;
		min-height: 54px;
		margin-top: 26px;
		padding: 0 20px;
		font-size: 15px;
	}

	.manufacturing-hero__slot-wrap {
		bottom: 12px;
	}

	.manufacturing-jump__inner {
		gap: 0 22px;
		padding: 6px 0;
	}

	.manufacturing-jump a {
		font-size: 13px;
		letter-spacing: 0.07em;
	}

	.manufacturing-section {
		padding: 48px 0 56px;
	}

	.manufacturing-section__head {
		gap: 14px 20px;
	}

	.manufacturing-section__title {
		font-size: 28px;
	}

	.manufacturing-section__subtitle {
		margin-top: 10px;
		font-size: 16px;
		line-height: 1.6;
	}

	.manufacturing-controls {
		gap: 10px;
	}

	.manufacturing-control {
		width: 44px;
		height: 44px;
	}

	.manufacturing-count {
		min-width: 44px;
		font-size: 14px;
	}

	.manufacturing-tabs {
		margin-top: 24px;
	}

	.manufacturing-tabs__list {
		gap: 0 18px;
	}

	.manufacturing-tab {
		min-height: 46px;
		padding-bottom: 12px;
		font-size: 15px;
	}

	.manufacturing-tabs--after {
		margin-top: 30px;
	}

	.manufacturing-tabs--after .manufacturing-tab {
		min-height: 54px;
		padding-top: 15px;
	}

	.manufacturing-panels {
		gap: 40px;
		margin-top: 26px;
	}

	.manufacturing-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.manufacturing-panel__copy {
		padding-top: 0;
	}

	.manufacturing-panel__kicker {
		margin-bottom: 10px;
		font-size: 11px;
	}

	.manufacturing-panel__title {
		font-size: 26px;
	}

	.manufacturing-panel__body {
		margin-top: 14px;
		font-size: 16px;
		line-height: 1.7;
	}

	.manufacturing-panel__points {
		margin-top: 20px;
	}

	.manufacturing-panel__points li {
		padding: 12px 0 12px 20px;
		font-size: 15px;
	}

	.manufacturing-section--production .manufacturing-tabs__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 12px;
	}

	.manufacturing-section--production .manufacturing-tab {
		font-size: 14px;
	}

	.manufacturing-section--tooling .manufacturing-tabs__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}

	.manufacturing-section--quality .manufacturing-tabs__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}
}

@media (max-width: 359px) {
	.manufacturing-hero__title {
		font-size: 31px;
	}

	.manufacturing-hero__subtitle {
		font-size: 16px;
	}

	.manufacturing-hero__cta {
		gap: 28px;
		padding: 0 16px;
		font-size: 14px;
	}

	.manufacturing-section__title {
		font-size: 26px;
	}

	.manufacturing-tab {
		font-size: 14px;
	}

	.manufacturing-section--production .manufacturing-tab {
		font-size: 13px;
	}

	.manufacturing-panel__title {
		font-size: 24px;
	}

	.manufacturing-slot {
		padding: 16px;
	}
}

/* Mobile uses the one live tab group between the selected image and copy.
   Desktop and the no-JS all-panel fallback retain their original structure. */
@media (max-width: 767px) {
	[data-manufacturing-enhanced] .manufacturing-panel { gap: 0; }
	[data-manufacturing-enhanced] .manufacturing-tabs,
	[data-manufacturing-enhanced] .manufacturing-tabs--after {
		margin: 20px 0 24px; padding: 6px;
		border: 1px solid #c2d0dd; border-radius: 8px; background: #eaf0f5;
	}
	[data-manufacturing-enhanced] .manufacturing-tabs__list {
		align-items: stretch; gap: 4px; border: 0;
	}
	[data-manufacturing-enhanced] .manufacturing-tab,
	[data-manufacturing-enhanced] .manufacturing-tabs--after .manufacturing-tab {
		justify-content: center; align-items: center; min-width: 0; min-height: 36px;
		padding: 9px 8px; border: 0; border-radius: 5px;
		color: #35516d; text-align: center;
	}
	[data-manufacturing-enhanced] .manufacturing-tab.is-active { background: #d4e1ed; color: #123d70; font-weight: 600; }
	[data-manufacturing-enhanced] .manufacturing-tab.is-active::after { display: none; }
	[data-manufacturing-enhanced] .manufacturing-tab:focus-visible { outline: 2px solid #2961a1; outline-offset: 2px; }
	.manufacturing-section--quality[data-manufacturing-enhanced] .manufacturing-tabs { border-color: rgba(196,216,234,.35); background: #20394e; }
	.manufacturing-section--quality[data-manufacturing-enhanced] .manufacturing-tab { color: #d2e1ed; }
	.manufacturing-section--quality[data-manufacturing-enhanced] .manufacturing-tab.is-active { background: #a7c8e0; color: #102f4c; }
}
