/*
 * Primary shortcut navigation for Elementor documents. Each tile establishes
 * its own semantic surface so Genotyp's light, dark and accessibility color
 * modes can resolve the correct foreground without editor-owned colors.
 */

.sggw-elementor-shortcuts {
	inline-size: 100%;
}

.sggw-elementor-shortcuts__list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--sggw-elementor-shortcuts-columns, 4), minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sggw-elementor-shortcuts__item {
	margin: 0;
	min-inline-size: 0;
	padding: 0;
}

.sggw-elementor-shortcuts__link {
	align-items: center;
	background-color: var(--sggw-surface-current);
	border-radius: var(--wp--custom--radius--small, 4px);
	box-sizing: border-box;
	color: var(--sggw-text);
	display: flex;
	flex-direction: column;
	font: inherit;
	gap: 24px;
	inline-size: 100%;
	justify-content: center;
	min-block-size: var(--sggw-elementor-shortcut-min-height, 153px);
	padding: 24px;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 150ms ease;
}

.sggw-elementor-shortcuts__icon {
	align-items: center;
	block-size: 48px;
	color: var(--sggw-text);
	display: inline-flex;
	flex: 0 0 48px;
	font-size: 48px;
	font-weight: var(--sggw-icon-font-weight-regular, 400);
	inline-size: 48px;
	justify-content: center;
	line-height: 1;
}

.sggw-elementor-shortcuts__icon.is-framed {
	background-color: var(--sggw-surface-alternating);
	block-size: 72px;
	border-radius: var(--wp--custom--radius--x-small, 2px);
	flex-basis: 72px;
	inline-size: 72px;
	padding: 12px;
}

.sggw-elementor-shortcuts__glyph {
	font-size: inherit;
}

.sggw-elementor-shortcuts__icon > :is(i, svg, .sggw-elementor-shortcuts__glyph) {
	block-size: 1em;
	display: block;
	inline-size: 1em;
}

.sggw-elementor-shortcuts__icon > svg {
	fill: currentColor;
}

.sggw-elementor-shortcuts__label {
	color: var(--sggw-text);
	font-size: var(--wp--preset--font-size--medium, 20px);
	font-weight: var(--wp--custom--typography--font-weight--semibold);
	line-height: 1.3;
}

.sggw-elementor-shortcuts__link:focus:not(:focus-visible) {
	outline: none;
}

.sggw-elementor-shortcuts__link:focus-visible {
	outline: var(--wp--custom--line--focus-ring-width, 3px) solid var(--sggw-line-focus);
	outline-offset: var(--wp--custom--line--focus-ring-offset-compact, 2px);
}

.sggw-elementor-shortcuts__link.is-placeholder {
	cursor: default;
}

@media (hover: hover) and (pointer: fine) {
	.sggw-elementor-shortcuts__link[href]:hover {
		box-shadow: var(--wp--custom--shadow--small, 0 4px 12px 0 rgb(0 0 0 / 20%));
	}
}

@media (max-width: 1024px) {
	.sggw-elementor-shortcuts__list {
		--sggw-elementor-shortcuts-columns: 2;
	}
}

@media (max-width: 767px) {
	.sggw-elementor-shortcuts__list {
		--sggw-elementor-shortcuts-columns: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sggw-elementor-shortcuts__link {
		transition: none;
	}
}

@media (forced-colors: active) {
	.sggw-elementor-shortcuts__link {
		background: Canvas;
		border: 1px solid CanvasText;
		color: CanvasText;
		forced-color-adjust: auto;
	}

	.sggw-elementor-shortcuts__icon,
	.sggw-elementor-shortcuts__label {
		color: CanvasText;
	}

	.sggw-elementor-shortcuts__icon.is-framed {
		background: Canvas;
		outline: 1px solid CanvasText;
		outline-offset: -1px;
	}

	.sggw-elementor-shortcuts__link:focus-visible {
		outline-color: Highlight;
	}
}
