/*
 * Help & Support (template-support.php, owner request 2026-11-02): the Contact page layout
 * (assets/contact/contact.css, hero spacing from assets/ticket/ticket.css) plus the option
 * boxes, the documentation cards and the closing card.
 */

.wx-sp .wx-ct-section + .wx-ct-section {
	padding-top: 0;
}

.wx-sp h2 {
	color: var(--wx-dark);
	font-weight: 600;
	line-height: 1.1;
}

.wx-sp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

/* support options: the Contact page's icon boxes, as links */
.wx-sp a.wx-sp-option {
	display: flex;
	flex-direction: column;
	color: var(--wx-grey) !important;
	font-size: inherit !important;
	text-decoration: none;
}

.wx-sp-option__title,
.wx-sp-doc__title {
	color: var(--wx-dark);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.wx-sp-option__text,
.wx-sp-doc__text {
	margin-top: 8px;
	color: var(--wx-grey);
	font-size: 15px;
	line-height: 1.55;
}

.wx-sp-option__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 22px;
	color: var(--wx-dark);
	font-size: 15px;
	font-weight: 600;
}

.wx-sp-option__more::after {
	content: "→";
	transition: transform .3s ease;
}

.wx-sp a:hover .wx-sp-option__more::after {
	transform: translateX(4px);
}

.wx-ct-channel--ticket {
	--wx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a3 3 0 0 0 0 6v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a3 3 0 0 0 0-6zm2 0v1.5a5 5 0 0 1 0 9V18h14v-1.5a5 5 0 0 1 0-9V6zm5 3h4v2h-4zm0 4h4v2h-4z'/%3E%3C/svg%3E");
}

.wx-ct-channel--docs {
	--wx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 3h10l4 4v14H5zm2 2v14h10V8h-3V5zm2 6h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");
}

/* documentation: white cards with the product logo */
.wx-sp a.wx-sp-doc {
	display: flex;
	flex-direction: column;
	padding: 26px 24px 24px;
	border: 1px solid var(--wx-edge);
	border-radius: 22px;
	background: #fff;
	font-size: inherit !important;
	text-decoration: none;
	transition: border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.wx-sp a.wx-sp-doc:hover {
	border-color: var(--wx-dark);
	box-shadow: 0 30px 60px -40px rgba(70, 50, 25, .45);
	transform: translateY(-4px);
}

.wx-sp-doc__logo {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 24px;
	border-radius: 16px;
	background: var(--wx-paper);
	box-shadow: inset 0 0 0 1px var(--wx-edge);
}

.wx-sp-doc__logo img {
	width: 30px;
	height: 30px;
	filter: grayscale(1) brightness(.35);
}

.wx-sp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 60px;
}

.wx-sp p.wx-sp-head__note {
	max-width: 440px;
	color: var(--wx-grey);
	font-size: 16px;
	line-height: 1.55;
}

/* closing card */
.wx-sp-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 40px 44px;
	border-radius: 28px;
	background: var(--wx-dark);
	color: #bdbab4;
}

.wx-sp .wx-sp-cta h2 {
	color: var(--wx-cream);
}

.wx-sp-cta p {
	margin-top: 10px;
	font-size: 17px;
}

.wx-sp p.wx-sp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.wx-sp a.wx-sp-btn {
	display: inline-flex;
	padding: 14px 26px;
	border: 1px solid var(--wx-cream);
	border-radius: 40px;
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
	font-size: 16px !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease;
}

.wx-sp a.wx-sp-btn:hover,
.wx-sp a.wx-sp-btn--ghost {
	background: transparent;
	color: var(--wx-cream) !important;
}

.wx-sp a.wx-sp-btn--ghost:hover {
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
}

@media (max-width: 1100px) {
	.wx-sp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wx-sp-grid {
		grid-template-columns: 1fr;
	}

	.wx-sp-cta {
		padding: 28px 22px;
	}
}
