/**
 * Navigation block style "Links with arrow" (is-style-arrow-links), plus the hero menu column.
 *
 * - links white, 20 px bold, line-height 1.1, padding 13 17 13 46 px, one line with "…",
 *   text-shadow 0 1px 10px rgb(0 0 0 / .1); items overlap 5 px
 * - arrow: Feather arrow-right 24 px, stroke 1.5, 13 px from the left, 50 % opacity
 * - hover: arrow full opacity and 5 px to the right; a 2 px white line grows under the text
 * - column: magenta gradient bottom → top, padding 30 48 30 32 px, menu centred vertically
 *
 * Specificity: core Navigation sets display/colour with two-class selectors, so these
 * rules use three classes. Colour is inherited, so a colour the team picks still wins.
 */

.wp-block-navigation.is-style-arrow-links {
	--ehl-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
	display: block;
	width: 100%;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation__container {
	display: block;
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item {
	display: block;
	width: 100%;
	margin-bottom: -0.3125rem;
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content {
	position: relative;
	display: block;
	padding: 0.8125rem 1.0625rem 0.8125rem 2.875rem;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.1);
	white-space: nowrap;
}

/* Arrow */
.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	left: 0.8125rem;
	width: 1.5rem;
	height: 1.5rem;
	background-color: currentColor;
	opacity: 0.5;
	-webkit-mask: var(--ehl-arrow) no-repeat center / contain;
	mask: var(--ehl-arrow) no-repeat center / contain;
	transition: opacity 0.1s, transform 0.1s;
}

/* Line under the text */
.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	bottom: 0.3125rem;
	left: 2.875rem;
	width: 0;
	height: 2px;
	background-color: currentColor;
	transition: width 0.25s ease-out;
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content:is(:hover, :focus-visible)::before {
	opacity: 1;
	transform: translateX(0.3125rem);
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content:is(:hover, :focus-visible)::after {
	width: calc(100% - 3.875rem);
}

.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content::before,
	.wp-block-navigation.is-style-arrow-links .wp-block-navigation-item__content::after {
		transition: none;
	}
}

/* Hero column: padding and vertical centring as on the old site. */
:where(.home-hero) .home-hero__nav {
	display: flex;
	align-items: center;
	padding: 1.875rem 1rem;
}

@media (min-width: 768px) {
	:where(.home-hero) .home-hero__nav {
		padding-inline: 2rem;
	}
}

@media (min-width: 992px) {
	:where(.home-hero) .home-hero__nav {
		padding: 1.875rem 3rem 1.875rem 2rem;
	}
}
