/*
 * Product model detail page.
 *
 * One page per catalogue model: the photograph and headline facts up top, the
 * full specification and the gated datasheet request below, then the rest of
 * its range. Keeps the product landing pages short.
 */

/* ---------------------------------------------------------------- hero -- */

/* Light hero: a soft slate-to-white wash with a hairline under it. */
.gvd-model__hero {
	position: relative;
	padding-block: 3rem;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	background: linear-gradient(to bottom, #f8fafc, #fff, #f8fafc);
	overflow: hidden;
}

@media (min-width: 1024px) {
	.gvd-model__hero { padding-block: 4rem; }
}

.gvd-model__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1rem;
}

.gvd-model__crumbs a { color: #64748b; text-decoration: none; transition: color 0.2s ease; }
.gvd-model__crumbs a:hover { color: var(--gvd-accent); }
.gvd-model__crumbs [aria-current] { color: #0f172a; overflow-wrap: anywhere; }
.gvd-model__crumbsep { flex-shrink: 0; }

/* Photograph first, summary second, on every width. */
.gvd-model__herogrid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
	margin-top: 1.5rem;
}

@media (min-width: 1024px) {
	.gvd-model__herogrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The photograph sits in a white card with an inset, faintly blue stage. */
.gvd-model__frame {
	position: relative;
	padding: 1.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.gvd-model__media {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	aspect-ratio: 4 / 3;
	min-height: 0;
	padding: 1.5rem;
	border: 1px solid #f1f5f9;
	border-radius: 1.125rem;
	background: linear-gradient(to bottom right, #f8fafc, rgba(239, 246, 255, 0.2));
}

.gvd-model__media img,
.elementor .gvd-model__media img {
	position: absolute;
	inset: 1.5rem;
	width: calc(100% - 3rem);
	height: calc(100% - 3rem);
	max-width: 100%;
	padding: 1rem;
	object-fit: contain;
	filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.gvd-model__noshot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: #94a3b8;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Model number badge, pinned to the card's top-left corner. */
.gvd-model__no {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--gvd-accent);
	box-shadow: 0 1px rgba(0, 0, 0, 0.05);
	color: #fff;
	font-family: var(--gvd-font-mono, inherit);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1rem;
}

.gvd-model__series {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.25rem 0.875rem;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--gvd-accent-hover);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1rem;
	text-transform: uppercase;
}

.gvd-model__series svg { flex-shrink: 0; }

.gvd-model__title {
	margin: 1rem 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.875rem;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: normal;
	color: #020617;
}

@media (min-width: 1024px) {
	.gvd-model__title { font-size: 2.25rem; }
}

.gvd-model__lede {
	max-width: 40rem;
	margin: 0.75rem 0 0;
	color: #475569;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.625;
	/* Source descriptions carry their own line breaks and long unbroken tokens. */
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* Headline facts as a ticked list, only where the catalogue supplies them. */
.gvd-model__facts {
	display: grid;
	gap: 0.625rem;
	margin: 1.5rem 0 0;
}

@media (min-width: 640px) {
	.gvd-model__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gvd-model__facts > div {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	color: #334155;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1rem;
}

.gvd-model__facts svg { flex-shrink: 0; margin-top: 0.0625rem; color: var(--gvd-accent); }
.gvd-model__facts dt { color: #64748b; }
.gvd-model__facts dt::after { content: ":"; }
.gvd-model__facts dd { margin: 0; overflow-wrap: anywhere; }

/* Pill buttons: solid accent, then a white outline. */
.gvd-model__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.gvd-model__actions { flex-direction: row; flex-wrap: wrap; }
}

.gvd-model__btn {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--gvd-accent);
	box-shadow: 0 4px 6px -1px rgba(var(--gvd-accent-rgb), 0.25), 0 2px 4px -2px rgba(var(--gvd-accent-rgb), 0.25);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1rem;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gvd-model__btn:hover { background: var(--gvd-accent-hover); color: #fff; }

.gvd-model__btn--outline {
	border: 1px solid #cbd5e1;
	background: #fff;
	box-shadow: none;
	color: #334155;
	font-weight: 700;
}

.gvd-model__btn--outline:hover { background: #f8fafc; color: #334155; }

/* ---------------------------------------------------- specs and aside -- */

/* Section bands: py-16 / lg:py-24, white then a faint gray wash. */
.gvd-model__band {
	padding-block: 4rem;
	background: #fff;
}

.gvd-model__band--related { background: rgba(249, 250, 251, 0.7); }

@media (min-width: 1024px) {
	.gvd-model__band { padding-block: 6rem; }
}

.gvd-model__body {
	display: grid;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.gvd-model__body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* Section headings: 24px bold with a small accent icon. */
.gvd-model__h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
	letter-spacing: normal;
	color: #1a1a2e;
}

.gvd-model__h2 svg { flex-shrink: 0; color: var(--gvd-accent); }

/* AI features: quiet gray chips with an accent tick. */
.gvd-model__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.gvd-model__pills li {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid #f3f4f6;
	border-radius: 999px;
	background: rgba(249, 250, 251, 0.6);
	color: #1a1a2e;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
}

.gvd-model__pills svg { flex-shrink: 0; color: var(--gvd-accent); }

/* Specification rows: zebra stripes, label left, value right (flex rows,
   as in the design, so the label takes only the width it needs). */
.gvd-model__table {
	margin: 1.5rem 0 0;
	overflow: hidden;
	border: 1px solid #f3f4f6;
	border-radius: 1.125rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.gvd-model__table > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1.25rem;
	border-bottom: 1px solid #f3f4f6;
	background: #fff;
}

.gvd-model__table > div:nth-child(odd) { background: rgba(249, 250, 251, 0.6); }
.gvd-model__table > div:last-child { border-bottom: 0; }

.gvd-model__table dt,
.gvd-model__table dd {
	margin: 0;
	font-weight: 500;
}

.gvd-model__table dt { color: #6b7280; }

.gvd-model__table dd {
	color: #1a1a2e;
	text-align: right;
	overflow-wrap: anywhere;
}

.gvd-model__aside { display: grid; gap: 2rem; }

/* Anchor targets clear the fixed header. */
.gvd-model__aside,
.gvd-model #datasheet { scroll-margin-top: calc(var(--gvd-header-offset, 100px) + 1rem); }

.gvd-model__panel {
	padding: 1.5rem;
	border: 1px solid #f3f4f6;
	border-radius: 1.125rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.gvd-model__panel--quiet { background: rgba(249, 250, 251, 0.6); box-shadow: none; }

.gvd-model__h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
	color: #1a1a2e;
}

.gvd-model__h3 svg { flex-shrink: 0; color: var(--gvd-accent); }

.gvd-model__panellede {
	margin: 0 0 1.25rem;
	color: #6b7280;
	font-size: 0.875rem;
	line-height: 1.625;
}

.gvd-model__specs > .gvd-model__panellede { margin-top: 1.5rem; }

.gvd-model__panel .gvd-model__btn { width: 100%; }

/* ---------------------------------------------- datasheet request form -- */

/* The form sits inside the panel, so it drops its own frame. The outcome
   notices keep theirs: green when sent, red on an error. */
.gvd-model__panel .gvd-sheet:not(.gvd-sheet--done):not(.gvd-sheet--error) {
	padding: 0;
	border: 0;
	background: transparent;
}

.gvd-model__panel .gvd-sheet--done,
.gvd-model__panel .gvd-sheet--error { border-radius: 0.875rem; }

.gvd-model__panel .gvd-sheet__intro { color: #64748b; }
.gvd-model__panel .gvd-sheet__intro strong { color: #0f172a; }

.gvd-model__panel .gvd-sheet__field label {
	color: #334155;
	font-size: 0.75rem;
	font-weight: 700;
}

.gvd-model__panel .gvd-sheet__field input {
	border: 1px solid #e5e7eb;
	border-radius: 0.625rem;
	background: #fff;
	color: #1a1a2e;
}

.gvd-model__panel .gvd-sheet__field input:hover { border-color: #cbd5e1; }

.gvd-model__panel .gvd-sheet__field input:focus,
.gvd-model__panel .gvd-sheet__field input:focus-visible {
	outline: none;
	border-color: var(--gvd-accent);
	box-shadow: 0 0 0 3px rgba(var(--gvd-accent-rgb), 0.5);
}

.gvd-model__panel .gvd-sheet__field input:user-invalid {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Submit: the same accent pill as the hero. */
.gvd-model__panel .gvd-sheet__actions .gvd-btn {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--gvd-accent);
	box-shadow: 0 4px 6px -1px rgba(var(--gvd-accent-rgb), 0.25), 0 2px 4px -2px rgba(var(--gvd-accent-rgb), 0.25);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1rem;
}

.gvd-model__panel .gvd-sheet__actions .gvd-btn:hover { background: var(--gvd-accent-hover); }

.gvd-model__panel .gvd-sheet__actions .gvd-btn:focus-visible,
.gvd-model__btn:focus-visible,
.gvd-model__sibling:focus-visible,
.gvd-model__all:focus-visible {
	outline: 2px solid var(--gvd-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------- related -- */

.gvd-model__relhead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.gvd-model__all {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--gvd-accent);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	text-decoration: none;
	white-space: nowrap;
}

.gvd-model__all:hover { color: var(--gvd-accent-hover); }

.gvd-model__related {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.gvd-model__related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gvd-model__sibling {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #f3f4f6;
	border-radius: 1.125rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	color: #1a1a2e;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gvd-model__sibling:hover {
	transform: translateY(-0.25rem);
	border-color: rgba(var(--gvd-accent-rgb), 0.3);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	color: #1a1a2e;
}

.gvd-model__siblingshot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3; /* a minimum: visible overflow lets the photo grow it */
	background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
	color: #d1d5db;
}

/* In flow, as in the design: the 4:3 well is a minimum and the photograph
   (full width, its own aspect) sets the card height. */
.gvd-model__siblingshot img,
.elementor .gvd-model__siblingshot img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	padding: 1rem;
	object-fit: contain;
}

.gvd-model__siblingno {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	background: #0b1b3d;
	color: #fff;
	font-family: var(--gvd-font-mono, inherit);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 0.9375rem;
}

.gvd-model__siblingtitle {
	display: block;
	padding: 1rem;
	color: #1a1a2e;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.375;
}
