/*
 * 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 -- */

.gvd-model__hero {
	position: relative;
	padding-block: 3.5rem;
	background: #0b1b3d;
	overflow: hidden;
}

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

/* The backdrops are absolute, so the content needs its own stacking level. */
.gvd-model__herogrid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.gvd-model__herogrid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}

.gvd-model__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.8125rem;
}

.gvd-model__crumbs a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.gvd-model__crumbs a:hover { color: #fff; text-decoration: underline; }

.gvd-model__no {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.25rem 0.7rem;
	border: 1px solid rgba(37, 99, 235, 0.35);
	border-radius: 0.375rem;
	background: rgba(37, 99, 235, 0.15);
	color: #93b4fb;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.gvd-model__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.625rem, 1.15rem + 2.1vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}

.gvd-model__lede {
	max-width: 40rem;
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9375rem;
	line-height: 1.7;
	/* Source descriptions carry their own line breaks and long unbroken tokens. */
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* Headline facts, only rendered where the catalogue supplies them. */
/*
 * Auto-fit rather than a fixed four columns: most models supply one or two
 * facts, and a fixed grid left them stranded in a quarter-width cell.
 */
.gvd-model__facts {
	display: grid;
	gap: 0.875rem 2rem;
	margin: 1.75rem 0 0;
	grid-template-columns: repeat(auto-fit, minmax(7rem, max-content));
}

.gvd-model__facts dt {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gvd-model__facts dd {
	margin: 0.25rem 0 0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.gvd-model__hero .gvd-actions { margin-top: 2rem; }

/* The product shot sits on a light stage so a white cutout reads on midnight. */
.gvd-model__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 16rem;
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.94);
}

@media (min-width: 900px) {
	.gvd-model__media { min-height: 21rem; }
}

.gvd-model__media img {
	max-width: 100%;
	max-height: 18rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gvd-model__noshot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	color: #9ca3af;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

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

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

@media (min-width: 960px) {
	.gvd-model__body { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
}

.gvd-model__h2 {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: #1a1a2e;
}

.gvd-model__specs > .gvd-model__h2:not(:first-child) { margin-top: 2.25rem; }

.gvd-model__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gvd-model__pills li {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(37, 99, 235, 0.2);
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
	font-size: 0.8125rem;
	font-weight: 500;
}

/* A wide table scrolls inside its own box, never sideways-scrolling the page. */
.gvd-model__tablewrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid rgba(229, 231, 235, 0.8);
	border-radius: 0.75rem;
}

.gvd-model__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.gvd-model__table th,
.gvd-model__table td {
	padding: 0.75rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.gvd-model__table tr:last-child th,
.gvd-model__table tr:last-child td { border-bottom: 0; }

.gvd-model__table th {
	width: 34%;
	background: #f9fafb;
	color: #6b7280;
	font-weight: 600;
}

.gvd-model__table td { color: #1a1a2e; overflow-wrap: anywhere; }

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

.gvd-model__panel {
	padding: 1.5rem;
	border: 1px solid rgba(229, 231, 235, 0.8);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gvd-model__panel--quiet { background: #f9fafb; 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: 1rem;
	font-weight: 700;
	color: #1a1a2e;
}

.gvd-model__h3 svg { color: #2563eb; }

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

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

/* The request form sits inside the panel, so it drops its own frame. */
.gvd-model__panel .gvd-sheet {
	padding: 0;
	border: 0;
	background: transparent;
}

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

.gvd-model__sibling {
	align-items: flex-start;
	text-align: left;
}

.gvd-model__siblingshot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 8rem;
	margin-bottom: 1rem;
	border-radius: 0.625rem;
	background: #f9fafb;
	color: #9ca3af;
}

.gvd-model__siblingshot img {
	max-width: 100%;
	max-height: 6.5rem;
	width: auto;
	object-fit: contain;
}

.gvd-model__siblingno {
	display: block;
	margin-bottom: 0.35rem;
	color: #2563eb;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
}

.gvd-model__sibling .gvd-card__title { font-size: 0.9375rem; }
