/* Giant Truss — approved Product Overview layout
   Reference: "Product Home / Advantage / Downloads" UI approved 29 Aug 2026 */

.gt-product {
	--gt-purple: #7B4FF4;
	--gt-ink: #111;
	--gt-body: #3a3a3a;
	--gt-line: #d9d9d9;
	--gt-grey-bg: #f2f2f2;
	--gt-sans: "Inter Tight", Arial, Helvetica, sans-serif;
	--gt-text: "Inter Tight", Arial, Helvetica, sans-serif;
	--gt-max: 1400px;
	--gt-gutter: clamp(16px, 4vw, 48px);

	max-width: var(--gt-max);
	margin: 0 auto;
	padding: clamp(20px, 3vw, 40px) var(--gt-gutter) clamp(48px, 6vw, 90px);
	font-family: var(--gt-text);
	color: var(--gt-body);
}

.gt-product * { box-sizing: border-box; }

/* ── Page title ─────────────────────────────────────────────── */
.gt-kicker {
	font-family: var(--gt-text);
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #8a8a8a;
	margin: 0 0 8px;
}

/* ── Hero: gallery + summary ────────────────────────────────── */
.gt-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: start;
}

.gt-gallery {
	position: relative;
	border: 1px solid var(--gt-line);
	background: #fff;
	border-radius: 2px;
	overflow: hidden;
}

.gt-gallery-stage { position: relative; aspect-ratio: 4 / 3; }

.gt-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 2.5vw, 34px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease;
}
.gt-slide.is-active { opacity: 1; visibility: visible; }
.gt-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.gt-gallery-empty {
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	color: #999;
	font-size: 14px;
}

.gt-product .gt-gallery .gt-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #bfbfbf;
	background: rgba(255, 255, 255, .92);
	color: #333;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s, color .2s, border-color .2s;
}
.gt-product .gt-gallery .gt-nav:hover { background: var(--gt-purple); border-color: var(--gt-purple); color: #fff; }
.gt-product .gt-gallery .gt-prev { left: 14px; right: auto; }
.gt-product .gt-gallery .gt-next { right: 14px; left: auto; }

/* ── Summary ────────────────────────────────────────────────── */
.gt-product-name {
	font-family: var(--gt-sans);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.05;
	font-size: clamp(24px, 2.9vw, 40px);
	color: var(--gt-purple);
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gt-purple);
	display: inline-block;
}

.gt-description p {
	font-size: clamp(14px, 1.05vw, 15.5px);
	line-height: 1.6;
	color: var(--gt-body);
	margin: 0 0 14px;
}

.gt-datasheet { margin: 22px 0 18px; }
.gt-datasheet-label {
	display: block;
	font-weight: 700;
	color: var(--gt-ink);
	font-size: 15px;
	margin-bottom: 4px;
}
.gt-datasheet a {
	color: var(--gt-purple);
	text-decoration: underline;
	font-size: 15px;
}

/* Need help box */
.gt-help {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	background: var(--gt-grey-bg);
	padding: 18px 20px;
	min-height: 118px;
	overflow: hidden;
}
.gt-help-copy { max-width: 100%; }
.gt-help.has-photo .gt-help-copy { max-width: calc(100% - 130px); }
.gt-help-title { font-weight: 700; color: var(--gt-ink); font-size: 14px; margin: 0 0 6px; }
.gt-help-text { font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.gt-help-text a { color: var(--gt-purple); text-decoration: underline; }
.gt-product .gt-help-btn {
	display: inline-block;
	background: #9a9a9a;
	color: #fff;
	font-size: 13px;
	padding: 9px 22px;
	text-decoration: none;
	transition: background .2s;
}
.gt-product .gt-help-btn:hover { background: var(--gt-purple); color: #fff; }
.gt-help-photo {
	align-self: flex-end;
	width: 130px;
	max-width: 38%;
	height: auto;
	margin-bottom: -18px;
	object-fit: contain;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.gt-tabs-block { margin-top: clamp(36px, 5vw, 64px); }

.gt-tabs-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.gt-tabs { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 48px); }

.gt-product .gt-tab {
	text-transform: none;
	background: none;
	border: 0;
	padding: 0 0 4px;
	cursor: pointer;
	font-family: var(--gt-text);
	font-size: clamp(14px, 1.15vw, 17px);
	font-weight: 500;
	color: var(--gt-ink);
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.gt-product .gt-tab:hover { color: var(--gt-purple); }
.gt-product .gt-tab.is-active { border-bottom-color: var(--gt-ink); font-weight: 600; }

.gt-badges { display: flex; align-items: center; gap: 14px; }
.gt-badges img { height: clamp(56px, 6vw, 78px); width: auto; }

.gt-panel { display: none; padding-top: clamp(20px, 3vw, 30px); }
.gt-panel.is-active { display: block; }

/* Spec table */
.gt-spec-table {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
	font-size: 13px;
}
.gt-spec-table th {
	text-transform: none;
	letter-spacing: 0;
	background: var(--gt-purple);
	color: #fff;
	text-align: left;
	font-weight: 700;
	padding: 8px 12px;
	font-size: 13px;
}
.gt-spec-table td {
	border: 1px solid #e2e2e2;
	padding: 7px 12px;
	color: #333;
}
.gt-spec-table td:first-child { width: 52%; }
.gt-spec-table tbody tr:nth-child(even) { background: #fafafa; }

/* Advantages */
.gt-advantages { list-style: none; margin: 0; padding: 0; }
.gt-advantages li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	font-size: clamp(14px, 1.1vw, 16px);
	color: var(--gt-ink);
	line-height: 1.45;
}
.gt-advantages li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--gt-ink);
}

/* Downloads */
.gt-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 640px; /* wraps 3 + 2, as in the approved UI */
}
.gt-product .gt-dl-btn {
	display: grid;
	place-items: center;
	text-align: center;
	min-width: 156px;
	min-height: 96px;
	padding: 14px 18px;
	background: var(--gt-purple);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: .02em;
	text-decoration: none;
	transition: background .2s, transform .15s;
}
.gt-product .gt-dl-btn:hover { background: #5f34d6; color: #fff; transform: translateY(-2px); }

/* ── Important notes ────────────────────────────────────────── */
.gt-notes { margin-top: clamp(40px, 6vw, 76px); }
.gt-notes h3 {
	font-family: var(--gt-text);
	font-size: clamp(16px, 1.5vw, 19px);
	font-weight: 700;
	color: var(--gt-ink);
	margin: 0 0 14px;
}
.gt-notes ul { list-style: none; margin: 0; padding: 0; }
.gt-notes li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 7px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--gt-body);
}
.gt-notes li::before {
	content: "·";
	position: absolute;
	left: 2px;
	font-size: 20px;
	line-height: 1;
	color: #666;
}

/* ── Similar products ───────────────────────────────────────── */
.gt-similar { margin-top: clamp(44px, 6vw, 80px); }
.gt-similar h3 {
	font-family: var(--gt-text);
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 600;
	color: var(--gt-ink);
	margin: 0 0 20px;
	display: inline-block;
	border-bottom: 1px solid var(--gt-ink);
	padding-bottom: 3px;
}
.gt-similar-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 26px);
}
.gt-similar-card { text-decoration: none; display: block; }
.gt-similar-thumb {
	display: grid;
	place-items: center;
	border: 1px solid var(--gt-line);
	background: #fff;
	aspect-ratio: 4 / 3;
	padding: 14px;
	overflow: hidden;
}
.gt-similar-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gt-similar-name {
	display: block;
	margin-top: 12px;
	font-size: clamp(13px, 1.05vw, 15px);
	color: var(--gt-ink);
}
.gt-similar-card:hover .gt-similar-thumb { border-color: var(--gt-purple); }
.gt-similar-card:hover .gt-similar-name { color: var(--gt-purple); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.gt-hero { grid-template-columns: 1fr; }
	.gt-product-name { font-size: clamp(22px, 4.2vw, 32px); }
	.gt-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gt-badges { order: 3; width: 100%; justify-content: flex-start; }
}

@media (max-width: 767px) {
	.gt-tabs { gap: 16px; width: 100%; }
	.gt-product .gt-tab { font-size: 15px; }
	.gt-downloads { gap: 12px; }
	.gt-product .gt-dl-btn { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); min-height: 84px; }
	.gt-help { flex-direction: column; align-items: flex-start; }
	.gt-help.has-photo .gt-help-copy { max-width: 100%; }
	.gt-help-photo { align-self: flex-end; margin-top: -46px; margin-bottom: -18px; }
	.gt-product .gt-gallery .gt-nav { width: 32px; height: 32px; }
	.gt-product .gt-gallery .gt-prev { left: 8px; }
	.gt-product .gt-gallery .gt-next { right: 8px; }
}

@media (max-width: 480px) {
	.gt-similar-grid { grid-template-columns: 1fr; }
	.gt-product .gt-dl-btn { min-width: 100%; flex: 1 1 100%; }
}


/* ── Restructured product page ──────────────────────────────── */
.gt-product .gt-product-name {
	display: block;
	border-bottom: 0;
	padding-bottom: 0;
	margin: 0 0 12px;
	font-size: clamp(26px, 3.3vw, 46px);
}
.gt-summary {
	max-width: 78ch;
	font-size: clamp(15px, 1.25vw, 17px);
	line-height: 1.6;
	color: #444;
	margin: 0 0 clamp(20px, 2.6vw, 32px);
	padding-bottom: clamp(16px, 2vw, 24px);
	border-bottom: 2px solid var(--gt-purple);
}
.gt-summary-col { min-width: 0; }

.gt-sec { margin-top: clamp(34px, 4.4vw, 60px); }
.gt-sec > h2 {
	font-family: var(--gt-sans);
	font-weight: 700;
	font-size: clamp(19px, 1.9vw, 26px);
	color: var(--gt-ink);
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e6e6e6;
}

.gt-product .gt-spec-table thead { display: none; }
.gt-product .gt-spec-table td:first-child { font-weight: 600; color: #222; }

.gt-pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gt-pill-list li {
	font-size: 13.5px; padding: 8px 16px;
	border: 1px solid #e4e0f5; border-radius: 40px; color: #333; background: #faf9ff;
}
.gt-plain { list-style: none; margin: 0; padding: 0; }
.gt-plain li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; }
.gt-plain li::before { content: "—"; position: absolute; left: 0; color: var(--gt-purple); }

.gt-inline-dl { color: var(--gt-purple); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.gt-inline-dl:hover { text-decoration: underline; }

.gt-notes-details { margin-top: 16px; border-top: 1px solid #eee; padding-top: 12px; }
.gt-notes-details summary { cursor: pointer; font-size: 13.5px; color: #666; }
.gt-notes-details ul { margin: 12px 0 0; padding-left: 18px; }
.gt-notes-details li { font-size: 13.5px; line-height: 1.55; color: var(--gt-body); margin-bottom: 6px; }

.gt-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	background: #0b0b0b; color: rgba(255,255,255,.8);
	padding: clamp(22px, 3vw, 34px); border-radius: 12px;
}
.gt-cta h2 { color: #fff; border: 0; margin: 0 0 6px; padding: 0; }
.gt-cta p { margin: 0; font-size: 14.5px; max-width: 58ch; }
.gt-product .gt-cta-btn {
	background: var(--gt-purple); color: #fff; font-weight: 600; font-size: 14px;
	padding: 13px 26px; border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.gt-product .gt-cta-btn:hover { background: var(--gt-purple-dark); color: #fff; }

@media (max-width: 767px) {
	.gt-cta { flex-direction: column; align-items: flex-start; }
}

/* ── Approved UI layout (tabs) — Sep 2026 ───────────────────── */
.gt-overview-title {
	font-family: var(--gt-sans);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.05;
	font-size: clamp(28px, 3.6vw, 52px);
	color: var(--gt-ink);
	margin: 0 0 clamp(18px, 2.2vw, 30px);
}
.gt-product .gt-product-name {
	display: inline-block;
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 50px);
	margin: 0 0 clamp(16px, 1.8vw, 24px);
	padding-bottom: 4px;
	border-bottom: 3px solid var(--gt-purple);
}
.gt-product .gt-description p { font-size: clamp(14px, 1.05vw, 16px); }

.gt-product .gt-tab { font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; padding-bottom: 3px; }
.gt-product .gt-tab.is-active { border-bottom-color: var(--gt-purple); font-weight: 700; }
.gt-product .gt-tab:focus-visible { outline: 2px solid var(--gt-purple); outline-offset: 4px; }
.gt-product .gt-badges img { height: clamp(64px, 7.2vw, 104px); }

.gt-product .gt-spec-table { max-width: 620px; }
.gt-product .gt-spec-table thead { display: table-header-group; }
.gt-product .gt-spec-table th { background: #5b1fd6; }
.gt-product .gt-spec-table td:first-child { font-weight: 400; }

.gt-panel-list { margin-top: 18px; }
.gt-panel-sub {
	font-family: var(--gt-text);
	font-size: 16px;
	font-weight: 700;
	color: var(--gt-ink);
	margin: 26px 0 12px;
}
.gt-product .gt-advantages li { font-size: clamp(16px, 1.45vw, 21px); margin-bottom: 8px; }
.gt-product .gt-dl-btn { text-transform: uppercase; }

.gt-product .gt-similar h3 { border-bottom: 2px solid var(--gt-purple); font-weight: 700; }

@media (max-width: 767px) {
	.gt-tabs-bar { flex-direction: column; }
	.gt-product .gt-tabs { gap: 10px 20px; }
	.gt-product .gt-spec-table { font-size: 12.5px; }
}

/* Similar thumbs: pin image box so renders scale down instead of overflowing */
.gt-product .gt-similar-thumb { position: relative; }
.gt-product .gt-similar-thumb img {
	position: absolute;
	inset: 14px;
	width: calc(100% - 28px);
	height: calc(100% - 28px);
	max-width: none;
	max-height: none;
	object-fit: contain;
}
/* Badges sit beside the panel on desktop so the tab row stays tight */
@media (min-width: 1025px) {
	.gt-tabs-block { position: relative; }
	.gt-tabs-block .gt-badges { position: absolute; top: 0; right: 0; }
	.gt-product .gt-panel { padding-top: 26px; max-width: calc(100% - 300px); }
}

/* Hero alignment: image box and text column always end on the same line.
   The gallery stretches to the text column, and the help card sits at the bottom. */
@media (min-width: 1025px) {
	.gt-product .gt-hero { align-items: stretch; }
	.gt-product .gt-gallery { display: flex; flex-direction: column; }
	.gt-product .gt-gallery-stage,
	.gt-product .gt-gallery-empty { flex: 1 1 auto; aspect-ratio: auto; min-height: 420px; }
	.gt-product .gt-summary-col { display: flex; flex-direction: column; }
	.gt-product .gt-help { margin-top: auto; }
	.gt-product .gt-datasheet { margin-bottom: 22px; }
}
/* Keep the title underline the width of the name inside the flex column. */
.gt-product .gt-summary-col > .gt-product-name { align-self: flex-start; }

/* Empty tab message */
.gt-product .gt-panel-empty {
	margin: 0;
	padding: 18px 20px;
	max-width: 620px;
	background: #f6f4fd;
	border-left: 3px solid var(--gt-purple);
	font-size: 15px;
	line-height: 1.55;
	color: #444;
}
.gt-product .gt-panel-empty a { color: var(--gt-purple); text-decoration: underline; }

/* ── Product page on phones ─────────────────────────────────── */
@media (max-width: 767px) {
	.gt-product .gt-tabs-block { display: flex; flex-direction: column; }
	.gt-product .gt-tabs-bar { display: contents; }
	.gt-product .gt-tabs { flex-wrap: nowrap; gap: 18px; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.gt-product .gt-tabs::-webkit-scrollbar { display: none; }
	.gt-product .gt-tab { font-size: 14.5px; white-space: nowrap; flex: 0 0 auto; }
	.gt-product .gt-panel { padding-top: 18px; }
	.gt-product .gt-tabs-block .gt-badges { order: 5; margin-top: 26px; }
	.gt-product .gt-tabs-block .gt-badges img { height: 64px; }

	.gt-product .gt-help { flex-direction: row; align-items: flex-end; min-height: 0; padding: 16px 16px 16px 18px; }
	.gt-product .gt-help.has-photo .gt-help-copy { max-width: calc(100% - 88px); }
	.gt-product .gt-help-photo { width: 88px; max-width: none; margin: 0 -6px -16px 0; align-self: flex-end; }

	.gt-product .gt-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gt-product .gt-similar-thumb { padding: 8px; }
	.gt-product .gt-similar-thumb img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
	.gt-product .gt-similar-name { margin-top: 8px; font-size: 13.5px; }
}

/* ── Tab content type scale (one pattern for every panel) ─────────────
   Text 15px / 1.6, ink #333, rows 10px × 14px with a 1px #e6e6e6 rule,
   panel width 620px. Phones step down to 14px. */
.gt-product {
	--gt-panel-fs: 15px;
	--gt-panel-lh: 1.6;
	--gt-panel-ink: #333;
	--gt-panel-rule: #e6e6e6;
	--gt-panel-pad: 10px 14px;
	--gt-panel-w: 620px;
}
.gt-product .gt-spec-table { max-width: var(--gt-panel-w); font-size: var(--gt-panel-fs); line-height: var(--gt-panel-lh); }
.gt-product .gt-spec-table th { font-size: var(--gt-panel-fs); padding: var(--gt-panel-pad); }
.gt-product .gt-spec-table td { font-size: var(--gt-panel-fs); padding: var(--gt-panel-pad); color: var(--gt-panel-ink); border-color: var(--gt-panel-rule); }

.gt-product .gt-advantages { max-width: var(--gt-panel-w); border-top: 1px solid var(--gt-panel-rule); }
.gt-product .gt-advantages li {
	margin: 0;
	padding: 10px 14px 10px 34px;
	font-size: var(--gt-panel-fs);
	line-height: var(--gt-panel-lh);
	color: var(--gt-panel-ink);
	border: 1px solid var(--gt-panel-rule);
	border-top: 0;
}
.gt-product .gt-advantages li:nth-child(even) { background: #fafafa; }
.gt-product .gt-advantages li::before { left: 16px; color: var(--gt-purple); }

.gt-product .gt-notes li { font-size: var(--gt-panel-fs); line-height: var(--gt-panel-lh); color: var(--gt-panel-ink); }
.gt-product .gt-notes h3,
.gt-product .gt-panel-sub { font-size: 17px; }
.gt-product .gt-panel-empty { max-width: var(--gt-panel-w); font-size: var(--gt-panel-fs); line-height: var(--gt-panel-lh); }
.gt-product .gt-downloads { max-width: var(--gt-panel-w); }

@media (max-width: 767px) {
	.gt-product { --gt-panel-fs: 14px; --gt-panel-pad: 9px 12px; }
	.gt-product .gt-advantages li { padding-left: 30px; }
	.gt-product .gt-advantages li::before { left: 13px; }
}

/* Panel header bar — same as the spec table's header row */
.gt-product .gt-panel-head {
	max-width: var(--gt-panel-w);
	margin: 0;
	padding: var(--gt-panel-pad);
	background: #5b1fd6;
	color: #fff;
	font-weight: 700;
	font-size: var(--gt-panel-fs);
	line-height: var(--gt-panel-lh);
}
.gt-product .gt-panel-head + .gt-advantages { border-top: 0; }
