/*
Theme Name: GP + GenerateBlocks Starter
Theme URI: https://anologix.com/
Description: Minimal reusable GeneratePress child theme for client sites built with GenerateBlocks.
Author: AnoLogix
Author URI: https://anologix.com/
Template: generatepress
Version: 0.5.0
Text Domain: gp-gb-starter
*/

/* Client colors, typography, and repeated block components belong in the
   GeneratePress and GenerateBlocks controls. */

/* Align the native GeneratePress header with GenerateBlocks page gutters. */
.site-header {
	padding-inline: var(--page-gutter, clamp(1rem, 3vw, 2rem));
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, blockquote, li { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Reusable truncation for card excerpts. Use only where clipping is intended. */
.line-clamp-2, .line-clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* Keep the arrow toggle for keyboard/touch, and open desktop submenus on hover. */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
	.dropdown-click .main-navigation:not(.slideout-navigation) .main-nav ul li:hover > ul.sub-menu {
		display: block;
		visibility: visible;
		left: auto;
		right: auto;
		opacity: 1;
		pointer-events: auto;
		height: auto;
		overflow: visible;
	}
	.dropdown-click .main-navigation:not(.slideout-navigation) .main-nav ul ul li:hover > ul.sub-menu {
		left: 100%;
		top: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.transition {
		transition: color 0.25s ease-in-out,
			background-color 0.25s ease-in-out,
			border-color 0.25s ease-in-out,
			transform 0.25s ease-in-out;
	}
}
