/*
 * Styles of the support card (<SupportCard> and supportCardHtml). Colours,
 * radius, spacing and font come only from the tokens of
 * @achoo254/app-shell/tokens.css, so the card follows the page's light or
 * dark theme; without the tokens the fallbacks are system colours, which
 * follow color-scheme. A small quiet card, not a banner: the link is an
 * outlined button. Text and link sit side by side when there is room and
 * wrap to two rows on a narrow (390 px) phone.
 */
.sn-support-card {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3, 12px) var(--space-4, 16px);
	width: 100%;
	max-width: 36rem;
	margin-inline: auto;
	padding: var(--space-4, 16px);
	border: 1px solid
		var(--c-border-subtle, color-mix(in srgb, CanvasText 15%, transparent));
	border-radius: var(--radius-lg, 16px);
	background: var(--c-surface, Canvas);
	color: var(--c-text, CanvasText);
	font-family: var(--font-sans, system-ui, sans-serif);
	text-align: start;
}

.sn-support-card__body {
	display: grid;
	gap: var(--space-1, 4px);
	flex: 1 1 15rem;
	min-width: 0;
}

.sn-support-card__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--c-text, CanvasText);
}

.sn-support-card__note {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--c-text-muted, GrayText);
}

.sn-support-card__button {
	box-sizing: border-box;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 var(--space-4, 16px);
	border: 1px solid
		var(--c-border, color-mix(in srgb, CanvasText 30%, transparent));
	border-radius: var(--radius-md, 12px);
	background: transparent;
	color: var(--c-primary, LinkText);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur-fast, 150ms) var(--ease-standard, ease),
		border-color var(--dur-fast, 150ms) var(--ease-standard, ease);
}

.sn-support-card__button:hover {
	border-color: var(--c-primary, LinkText);
	background: color-mix(in srgb, var(--c-primary, LinkText) 8%, transparent);
}

.sn-support-card__button:focus-visible {
	outline: 2px solid var(--c-primary, Highlight);
	outline-offset: 2px;
}
