/*
 * GIN.MD Technical QA 1.2
 */

.ginmd-catalog-archive .page-header,
.page-id-4038 .page-header {
	display: none !important;
}

/*
 * Vinart's inertia script applies native scrolling and a matching translateY
 * at the same time. Use native scrolling so the footer stays in document flow.
 */
body.ginmd-native-scroll {
	height: auto !important;
}

body.ginmd-native-scroll .site-wrapper {
	transform: none !important;
	will-change: auto !important;
}

.ginmd-skip-link {
	position: fixed;
	z-index: 1000000;
	top: 12px;
	left: 12px;
	padding: 12px 16px;
	transform: translateY(-160%);
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	color: #10261b;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 140ms ease;
}

.ginmd-skip-link:focus {
	transform: translateY(0);
}

.ginmd-honeypot-runtime {
	display: none !important;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid #c3924d;
	outline-offset: 3px;
}

/*
 * The parent theme assigns `transition: all` to links and controls. Limit
 * transitions to paint and interaction properties, and keep them short.
 */
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]) {
	transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
	transition-duration: 180ms !important;
	transition-timing-function: ease !important;
	transition-delay: 0s !important;
}

@media (max-width: 768px) {
	.ginmd-catalog-archive .site-header .menu-button-container > .button {
		display: block !important;
	}

	.ginmd-legal-grid {
		width: 100%;
		min-width: 0;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.ginmd-legal-nav,
	.ginmd-legal-article,
	.ginmd-legal-review,
	.ginmd-legal-article > section,
	.ginmd-legal-table-wrap {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
