/* 5th Axis — Support page widgets (Figma 01_Support). Prefix: axis5th-sp */

.axis5th-sp {
	--sp-red: var( --e-global-color-primary, #dd2828 );
	--sp-dark: var( --e-global-color-accent, #18181b );
	--sp-body: var( --e-global-color-text, #6c6c6c );
	--sp-muted: var( --e-global-color-299f9b7, #6b7280 );
	--sp-faint: #a1a1aa;
	--sp-line: #e4e4e7;
	--sp-soft: #f4f4f5;
	--sp-paper: #fafafa;
	--sp-display: var( --e-global-typography-a0ffd52-font-family, inherit ), sans-serif;
	--sp-condensed: var( --e-global-typography-57475c0-font-family, inherit ), sans-serif;
	--sp-pad: 40px;
	box-sizing: border-box;
	width: 100%;
	color: var( --sp-dark );
}

.axis5th-sp *,
.axis5th-sp *::before,
.axis5th-sp *::after {
	box-sizing: border-box;
}

.axis5th-sp a { text-decoration: none; }
.axis5th-sp .is-red { color: var( --sp-red ); }

/* ---- Shared type ---- */
.axis5th-sp .axis5th-sp-eyebrow {
	margin: 0 0 14px;
	font-family: var( --sp-condensed );
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --sp-dark );
}

.axis5th-sp .axis5th-sp-title {
	margin: 0;
	font-family: var( --sp-display );
	font-size: clamp( 34px, 4.4vw, 60px );
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var( --sp-dark );
}

.axis5th-sp .axis5th-sp-title span { display: block; }

.axis5th-sp .axis5th-sp-intro {
	margin: 0;
	max-width: 480px;
	font-size: 15px;
	line-height: 1.6;
	color: var( --sp-body );
}

.axis5th-sp .axis5th-sp-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 56px;
}

.axis5th-sp .axis5th-sp-arrow { flex: none; }

.axis5th-sp .axis5th-sp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var( --sp-red );
	background: var( --sp-red );
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.axis5th-sp .axis5th-sp-btn:hover { filter: brightness( 0.88 ); color: #fff; }
.axis5th-sp .axis5th-sp-btn--solid { padding: 18px 24px; font-size: 15px; }

/* ---- 02 Search ---- */
.axis5th-sp-search { background: #fff; padding: 60px var( --sp-pad ) 40px; }
.axis5th-sp-search__box { max-width: 1360px; margin: 0 auto; }

.axis5th-sp-search__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-left: 20px;
	background: var( --sp-soft );
	color: var( --sp-muted );
}

.axis5th-sp-search__form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
	color: var( --sp-dark );
	box-shadow: none;
}
.axis5th-sp-search__form input[type="search"]::placeholder { color: var( --sp-muted ); opacity: 1; }

.axis5th-sp-search__form button {
	height: 56px;
	padding: 0 36px;
	border: 0;
	border-radius: 0;
	background: var( --sp-red );
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}
.axis5th-sp-search__form button:hover { filter: brightness( 0.88 ); }

.axis5th-sp-quick {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid var( --sp-line );
	box-shadow: 0 12px 28px rgba( 0, 0, 0, 0.1 );
}
.axis5th-sp-quick[hidden] { display: none; }
.axis5th-sp-quick a,
.axis5th-sp-quick p {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 20px;
	font-size: 14px;
	color: var( --sp-dark );
}
.axis5th-sp-quick a + a { border-top: 1px solid var( --sp-line ); }
.axis5th-sp-quick a:hover { background: var( --sp-soft ); }
.axis5th-sp-quick small { color: var( --sp-red ); font-family: var( --sp-condensed ); font-size: 13px; text-transform: uppercase; }
.axis5th-sp-quick p { color: var( --sp-muted ); }

.axis5th-sp-popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 20px 0 28px;
	font-size: 13px;
	color: var( --sp-muted );
}
.axis5th-sp-popular a {
	padding: 8px 14px;
	border: 1px solid var( --sp-line );
	background: #fff;
	color: var( --sp-dark );
}
.axis5th-sp-popular a:hover { border-color: var( --sp-red ); color: var( --sp-red ); }

.axis5th-sp-contactcards { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 20px; }

.axis5th-sp-contactcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	background: var( --sp-soft );
	color: var( --sp-dark );
	transition: background 0.2s ease;
}
.axis5th-sp-contactcard:hover { background: #ececee; color: var( --sp-dark ); }
.axis5th-sp-contactcard__label { font-family: var( --sp-condensed ); font-size: 14px; text-transform: uppercase; color: var( --sp-red ); }
.axis5th-sp-contactcard__title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.axis5th-sp-contactcard__meta { font-size: 13px; color: var( --sp-muted ); }
.axis5th-sp-contactcard .axis5th-sp-arrow { position: absolute; top: 50%; right: 24px; transform: translateY( -50% ); }

/* ---- 03 Product families ---- */
.axis5th-sp-products { background: var( --sp-paper ); padding: 100px var( --sp-pad ); }
.axis5th-sp-products > * { max-width: 1360px; margin-left: auto; margin-right: auto; }

.axis5th-sp-grid { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 60px 20px; }

.axis5th-sp-family { display: flex; flex-direction: column; gap: 20px; color: var( --sp-dark ); }
.axis5th-sp-family__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.axis5th-sp-family__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.axis5th-sp-family:hover .axis5th-sp-family__img img { transform: scale( 1.04 ); }
.axis5th-sp-family__body { display: flex; flex-direction: column; gap: 6px; }
.axis5th-sp-family__count { font-family: var( --sp-condensed ); font-size: 13px; text-transform: uppercase; color: var( --sp-red ); }
.axis5th-sp-family__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.axis5th-sp-family__title { font-size: 20px; font-weight: 600; line-height: 1.2; }
.axis5th-sp-family:hover .axis5th-sp-family__title { color: var( --sp-red ); }
.axis5th-sp-family__text { font-size: 14px; color: var( --sp-body ); }

/* ---- 04 Answers ---- */
.axis5th-sp-answers {
	display: grid;
	grid-template-columns: minmax( 0, 360px ) minmax( 0, 1fr );
	gap: 80px;
	align-items: start;
	padding: 100px var( --sp-pad );
	background: var( --sp-soft );
}
.axis5th-sp-answers__side .axis5th-sp-title { font-size: clamp( 34px, 3.8vw, 52px ); }

.axis5th-sp-topics { margin: 48px 0 0; padding: 0; list-style: none; }
.axis5th-sp-topics li { margin: 0; }
.axis5th-sp-topics button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var( --sp-line );
	border-radius: 0;
	background: transparent;
	color: var( --sp-dark );
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.axis5th-sp-topics button b { font-weight: 400; color: var( --sp-muted ); }
.axis5th-sp-topics button:hover,
.axis5th-sp-topics button.is-active { color: var( --sp-red ); background: transparent; }

.axis5th-sp-faqs { background: #fff; }
.axis5th-sp-faq { border-bottom: 1px solid var( --sp-line ); }
.axis5th-sp-faq[hidden] { display: none; }

.axis5th-sp-faq__head {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 24px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var( --sp-dark );
	text-align: left;
	cursor: pointer;
}
.axis5th-sp-faq__head:hover { background: transparent; color: var( --sp-dark ); }
.axis5th-sp-faq__q { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; }
.axis5th-sp-faq__meta { display: block; margin-top: 4px; font-size: 12px; color: var( --sp-muted ); }
.axis5th-sp-faq.is-open .axis5th-sp-faq__q { color: var( --sp-red ); }

.axis5th-sp-faq__head i { position: relative; flex: none; width: 14px; height: 14px; }
.axis5th-sp-faq__head i::before,
.axis5th-sp-faq__head i::after { content: ""; position: absolute; background: currentColor; }
.axis5th-sp-faq__head i::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.axis5th-sp-faq__head i::after { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.axis5th-sp-faq.is-open .axis5th-sp-faq__head i::after { display: none; }

.axis5th-sp-faq__body { padding: 0 24px 24px; }
.axis5th-sp-faq__body[hidden] { display: none; }
.axis5th-sp-faq__body > p { margin: 0 0 18px; max-width: 640px; font-size: 14px; line-height: 1.6; color: var( --sp-body ); }
.axis5th-sp-faq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.axis5th-sp-faq__vote { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var( --sp-muted ); }
.axis5th-sp-faq__vote button { padding: 0; border: 0; background: none; color: var( --sp-dark ); font-size: 12px; cursor: pointer; }
.axis5th-sp-faq__vote button:hover { color: var( --sp-red ); background: none; }

.axis5th-sp-empty { margin: 0; padding: 24px; font-size: 14px; color: var( --sp-muted ); }

/* ---- 05 Tools & downloads ---- */
.axis5th-sp-downloads { background: var( --sp-paper ); padding: 100px var( --sp-pad ); }
.axis5th-sp-downloads > * { max-width: 1360px; margin-left: auto; margin-right: auto; }

.axis5th-sp-tools { display: grid; grid-template-columns: minmax( 0, 1.35fr ) minmax( 0, 1fr ); gap: 20px; align-items: start; }

.axis5th-sp-tools__main { background: var( --sp-soft ); }

.axis5th-sp-finder { padding: 28px 32px 32px; background: var( --sp-dark ); color: #fff; }
.axis5th-sp-finder__title { margin: 0 0 16px; font-family: var( --sp-condensed ); font-size: 14px; text-transform: uppercase; }
.axis5th-sp-finder__row { display: flex; background: #fff; }
.axis5th-sp-finder__row input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 0;
	outline: 0;
	background: #fff;
	font-size: 15px;
	color: var( --sp-dark );
}
.axis5th-sp-finder__row button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var( --sp-red );
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.axis5th-sp-finder__row button:hover { filter: brightness( 0.88 ); }
.axis5th-sp-finder__note { margin: 14px 0 0; font-size: 12px; color: var( --sp-faint ); }
.axis5th-sp-finder__error { margin: 10px 0 0; font-size: 13px; color: #ff8d8d; }

.axis5th-sp-skus { background: #fff; }
.axis5th-sp-skus[hidden] { display: none; }
.axis5th-sp-seeall { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 32px; background: var( --sp-paper ); color: var( --sp-red ); font-size: 14px; }
.axis5th-sp-seeall:hover { background: #f0f0f1; color: var( --sp-red ); }
.axis5th-sp-skus .axis5th-sp-empty { padding: 24px 32px; }
.axis5th-sp-skus .axis5th-sp-empty a { color: var( --sp-red ); text-decoration: underline; }
.axis5th-sp-sku {
	display: grid;
	grid-template-columns: 130px minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 20px;
	padding: 20px 32px;
	border-bottom: 1px solid var( --sp-line );
	color: var( --sp-dark );
}
.axis5th-sp-sku:hover { background: var( --sp-paper ); }
.axis5th-sp-sku b { font-size: 14px; font-weight: 600; }
.axis5th-sp-sku span { font-size: 14px; color: var( --sp-body ); }
.axis5th-sp-sku em { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-style: normal; color: var( --sp-red ); }

.axis5th-sp-chips { padding: 24px 32px 28px; background: #fff; }
.axis5th-sp-chips p { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.axis5th-sp-chips div { display: flex; flex-wrap: wrap; gap: 10px; }
.axis5th-sp-chips a { padding: 8px 14px; border: 1px solid var( --sp-red ); color: var( --sp-dark ); font-size: 12px; }
.axis5th-sp-chips a:hover { background: var( --sp-red ); color: #fff; }

.axis5th-sp-tools__side { display: flex; flex-direction: column; gap: 20px; }

.axis5th-sp-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 360px;
	overflow: hidden;
	background: var( --sp-dark );
	color: #fff;
}
.axis5th-sp-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.axis5th-sp-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient( 180deg, rgba( 24, 24, 27, 0 ) 30%, rgba( 24, 24, 27, 0.92 ) 100% ); }
.axis5th-sp-feature__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; }
.axis5th-sp-feature__eyebrow { font-family: var( --sp-condensed ); font-size: 13px; text-transform: uppercase; color: var( --sp-faint ); }
.axis5th-sp-feature__title { font-size: 26px; font-weight: 600; line-height: 1.15; }
.axis5th-sp-feature__text { max-width: 360px; font-size: 14px; line-height: 1.5; color: #d4d4d8; }
.axis5th-sp-feature:hover { color: #fff; }

.axis5th-sp-sidecard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 64px 24px 28px;
	background: var( --sp-soft );
	color: var( --sp-dark );
}
.axis5th-sp-sidecard:hover { background: #ececee; color: var( --sp-dark ); }
.axis5th-sp-sidecard__eyebrow { font-family: var( --sp-condensed ); font-size: 13px; text-transform: uppercase; color: var( --sp-red ); }
.axis5th-sp-sidecard__title { font-size: 20px; font-weight: 600; }
.axis5th-sp-sidecard__text { font-size: 14px; color: var( --sp-body ); }
.axis5th-sp-sidecard .axis5th-sp-arrow { position: absolute; top: 28px; right: 28px; }

/* ---- 06 Banner ---- */
.axis5th-sp-banner { position: relative; display: flex; align-items: center; min-height: 720px; overflow: hidden; background: var( --sp-dark ); }
.axis5th-sp-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.axis5th-sp-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient( 90deg, rgba( 24, 24, 27, calc( var( --sp-overlay, 0.55 ) + 0.2 ) ) 0%, rgba( 24, 24, 27, var( --sp-overlay, 0.55 ) ) 55%, rgba( 24, 24, 27, 0.1 ) 100% ); }
.axis5th-sp-banner__inner { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 80px var( --sp-pad ); }
.axis5th-sp-banner .axis5th-sp-eyebrow { color: #d4d4d8; }
.axis5th-sp-banner .axis5th-sp-title { max-width: 620px; font-size: clamp( 36px, 4.6vw, 64px ); color: #fff; }
.axis5th-sp-banner .axis5th-sp-title span { display: block; }
.axis5th-sp-banner__text { max-width: 520px; margin: 24px 0 32px; font-size: 17px; line-height: 1.6; color: #e4e4e7; }

/* ---- 07 Contact ---- */
.axis5th-sp-contact { display: flex; flex-direction: column; gap: 40px; padding: 60px var( --sp-pad ) 100px; background: var( --sp-dark ); color: #fff; }
.axis5th-sp-contact > * { width: 100%; max-width: 1360px; margin-left: auto; margin-right: auto; }
.axis5th-sp-contact .axis5th-sp-eyebrow { color: #d4d4d8; }
.axis5th-sp-contact__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.axis5th-sp-contact__title { margin: 0 0 14px; font-size: clamp( 26px, 2.6vw, 36px ); font-weight: 600; line-height: 1.15; color: #fff; }
.axis5th-sp-contact__text { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var( --sp-faint ); }
.axis5th-sp-contact__rows { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.axis5th-sp-contact__rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.axis5th-sp-contact__rows dt { font-size: 16px; color: var( --sp-faint ); }
.axis5th-sp-contact__rows dd { margin: 0; font-size: 18px; color: #fff; }
.axis5th-sp-contact__rows a { color: #fff; }
.axis5th-sp-contact__rows a:hover { color: var( --sp-red ); }
.axis5th-sp-contact__box { display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; border: 1px solid #3f3f46; color: #fff; }
.axis5th-sp-contact__box strong { font-size: 20px; font-weight: 600; }
.axis5th-sp-contact__box span { font-size: 15px; color: var( --sp-faint ); }
a.axis5th-sp-contact__box:hover { border-color: var( --sp-red ); color: #fff; }

/* ---- 08 Hub ---- */
.axis5th-sp-hub { padding: 100px var( --sp-pad ) 100px; background: #fff; }
.axis5th-sp-hub > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.axis5th-sp-hub__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.axis5th-sp-hub__head h2 { margin: 0; font-size: clamp( 26px, 2.6vw, 36px ); font-weight: 600; color: var( --sp-dark ); }
.axis5th-sp-hub__head span { width: 33.3%; padding-left: 20px; font-size: 14px; color: var( --sp-muted ); }
.axis5th-sp-hub__cards { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 20px; }
.axis5th-sp-hubcard { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 32px 32px 28px; background: var( --sp-soft ); color: var( --sp-dark ); }
a.axis5th-sp-hubcard:hover { background: #ececee; color: var( --sp-dark ); }
.axis5th-sp-hubcard.is-current { background: var( --sp-dark ); color: #fff; }
.axis5th-sp-hubcard__eyebrow { font-family: var( --sp-condensed ); font-size: 14px; text-transform: uppercase; color: var( --sp-red ); }
.axis5th-sp-hubcard.is-current .axis5th-sp-hubcard__eyebrow { color: #d4d4d8; }
.axis5th-sp-hubcard__title { font-size: 30px; font-weight: 600; line-height: 1.15; }
.axis5th-sp-hubcard__text { max-width: 330px; font-size: 15px; line-height: 1.5; color: var( --sp-body ); }
.axis5th-sp-hubcard.is-current .axis5th-sp-hubcard__text { color: #a1a1aa; }
.axis5th-sp-hubcard strong { margin-top: auto; font-size: 14px; font-weight: 500; }
.axis5th-sp-hubcard .axis5th-sp-arrow { position: absolute; top: 34px; right: 32px; }

/* ---- Responsive ---- */
@media ( max-width: 1100px ) {
	.axis5th-sp { --sp-pad: 28px; }
	.axis5th-sp-answers { grid-template-columns: minmax( 0, 1fr ); gap: 40px; }
	.axis5th-sp-tools { grid-template-columns: minmax( 0, 1fr ); }
	.axis5th-sp-contact__top { grid-template-columns: minmax( 0, 1fr ); gap: 32px; }
}

@media ( max-width: 900px ) {
	.axis5th-sp-grid { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
	.axis5th-sp-contactcards,
	.axis5th-sp-hub__cards { grid-template-columns: minmax( 0, 1fr ); }
	.axis5th-sp .axis5th-sp-head--split { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
	.axis5th-sp-hub__head { flex-direction: column; align-items: flex-start; }
	.axis5th-sp-hub__head span { width: auto; padding-left: 0; }
}

@media ( max-width: 640px ) {
	.axis5th-sp { --sp-pad: 18px; }
	.axis5th-sp-search { padding-top: 36px; }
	.axis5th-sp-products,
	.axis5th-sp-answers,
	.axis5th-sp-downloads,
	.axis5th-sp-hub { padding-top: 56px; padding-bottom: 56px; }
	.axis5th-sp-grid { grid-template-columns: minmax( 0, 1fr ); gap: 36px; }
	.axis5th-sp-search__form { padding-left: 14px; }
	.axis5th-sp-search__form button { padding: 0 18px; }
	.axis5th-sp-sku { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
	.axis5th-sp-finder,
	.axis5th-sp-chips { padding-left: 20px; padding-right: 20px; }
	.axis5th-sp-banner { min-height: 560px; }
	.axis5th-sp-contact__rows > div { grid-template-columns: 110px minmax( 0, 1fr ); }
	.axis5th-sp-faq__head,
	.axis5th-sp-faq__body { padding-left: 16px; padding-right: 16px; }
}

/* Responsive fix: topic buttons inherited white-space: nowrap from the global button
   style, so long topic names forced the Answers column wider than the phone screen. */
.axis5th-sp-topics button { white-space: normal; gap: 12px; }
.axis5th-sp-topics button span { min-width: 0; }
.axis5th-sp-topics button b { flex: 0 0 auto; }
/* Same issue on the FAQ question buttons: let questions wrap inside the screen. */
.axis5th-sp-faq__head { white-space: normal; }
.axis5th-sp-faq__head > span { min-width: 0; }
/* Long emails / links in the contact rows wrap instead of running off small phones. */
.axis5th-sp-contact__rows dd { min-width: 0; overflow-wrap: anywhere; }
