/**
 * Support page at /support.
 */

/* The site sets main { min-height: 3000px } for its long pages. This one is
   short, so opt out rather than trail a screen and a half of empty page. */
body:has(#support-hero) main {
	min-height: auto;
}

#support-hero {
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0 auto 64px;
	font-family: Poppins;
}

/* typography.css aligns every heading and paragraph left, so centering has to
   be stated on the elements themselves - the same way the other pages do it. */
#support-hero .header-title {
	font-size: var(--rem-4xl);
	color: var(--edge-color);
	margin-bottom: 24px;
	text-align: center;
}

#support-hero .header-subtitle {
	font-size: var(--rem-l);
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

#support-help {
	max-width: 1100px;
	margin: 0 auto 100px;
}

#support-help .help-grid {
	display: flex;
	gap: 32px;
}

#support-help .help-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 48px;
	background-color: #FBF5E5;
	border-radius: 8px;
}

#support-help .help-item h2 {
	font-size: var(--rem-xl);
	color: var(--edge-color);
}

#support-help .help-item p {
	flex-grow: 1;
}

#support-help .cta-button,
#support-help .cta-button:link,
#support-help .cta-button:visited,
#support-help .cta-button:hover,
#support-help .cta-button:active {
	display: inline-block;
	margin-top: 8px;
	padding: 14px 32px;
	font-family: Poppins;
	font-size: var(--rem-s);
	background-color: var(--edge-color);
	color: white;
	border: 2px solid var(--edge-color);
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}

#support-help .cta-button.secondary,
#support-help .cta-button.secondary:link,
#support-help .cta-button.secondary:visited,
#support-help .cta-button.secondary:hover,
#support-help .cta-button.secondary:active {
	background-color: transparent;
	color: var(--edge-color);
}

#support-help .cta-button:active {
	scale: 0.98;
}

#support-products {
	max-width: 1100px;
	margin: 0 auto 100px;
}

#support-products .section-heading {
	text-align: center;
	margin-bottom: 16px;
}

#support-products .section-intro {
	font-size: var(--rem-l);
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
}

#support-products .support-cards {
	display: flex;
	gap: 32px;
	align-items: stretch;
}

#support-products .support-card {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#support-products .support-logo {
	height: 48px;
	width: auto;
	max-width: 240px;
	align-self: flex-start;
}

#support-products .support-card p {
	flex-grow: 1;
}

#support-products .support-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#support-products .support-links a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border: 1px solid #D5DCEA;
	border-radius: 8px;
	background-color: #FFFCF4;
	color: var(--edge-color);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

#support-products .support-links a:hover,
#support-products .support-links a:focus-visible {
	border-color: var(--edge-color);
	background-color: #FBF5E5;
}

#support-products .support-links a:active {
	scale: 0.99;
}

#support-products .flag-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

#support-products .link-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#support-products .country {
	font-family: bryant, sans-serif;
	font-weight: bold;
	font-size: var(--rem-base);
}

#support-products .url {
	font-family: Poppins, sans-serif;
	font-size: var(--rem-s);
	font-weight: 200;
	overflow-wrap: anywhere;
}

#support-products .link-arrow {
	margin-left: auto;
	flex-shrink: 0;
}

@media all and (max-width: 904px) {

	#support-hero .header-title {
		font-size: var(--rem-2xl);
	}

	#support-help .help-grid,
	#support-products .support-cards {
		flex-direction: column;
	}

	#support-help .help-item,
	#support-products .support-card {
		padding: 32px 24px;
	}

	#support-products .section-heading {
		font-size: var(--rem-2xl);
	}
}
