/**
 * Home hero 2: outcome navigator (parts/home-hero/navigator.php). The panels share one grid
 * cell (the tallest sets the height), so changing tabs never moves the page.
 *
 * @package acmasoft
 */

.acma-v3 .v3-hh--navigator { --hh-solid: var(--v3-royal); --hh-wipe: var(--v3-navy); }
.acma-v3 .v3-hh-nav {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(20px, 5vw, 128px);
	align-items: end;
	padding-top: var(--hh-top);
}
.acma-v3 .v3-hh--navigator .v3-hh__title { max-width: 17ch; }
.acma-v3 .v3-hh--navigator .v3-hh__btns { margin-top: clamp(20px, 1.8vw, 32px); }
.acma-v3 .v3-hh-nav__markets { margin-top: clamp(16px, 1.4vw, 24px); max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--v3-text); }
.acma-v3 .v3-hh-nav__markets b { color: var(--v3-ink); }

/* The goal panel. */
.acma-v3 .v3-hh-nav__box {
	margin-top: clamp(28px, 3vw, 64px);
	overflow: hidden;
	border-radius: var(--hh-panel);
	background: var(--v3-navy);
	color: #fff;
}
.acma-v3 .v3-hh-nav__tabs {
	display: grid;
	grid-template-columns: repeat(5, auto); /* Tabs size to their labels, so none wraps while the others sit on one line. */
	gap: 4px;
	padding: clamp(8px, .6vw, 12px);
	background: var(--v3-navy-2);
}
.acma-v3 .v3-hh-nav__tab {
	--c: var(--v3-royal);
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 12px clamp(14px, 1.2vw, 22px);
	border-radius: 12px;
	color: #c9d0d9;
	font-size: clamp(15px, .25vw + 12px, 19px);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .25s var(--v3-ease), color .25s var(--v3-ease);
}
.acma-v3 .v3-hh-nav__tab.is-violet { --c: var(--v3-violet); }
.acma-v3 .v3-hh-nav__tab.is-teal { --c: var(--v3-teal); }
.acma-v3 .v3-hh-nav__tab.is-magenta { --c: var(--v3-magenta); }
.acma-v3 .v3-hh-nav__tab.is-amber { --c: var(--v3-amber); }
.acma-v3 .v3-hh-nav__tab small { flex: none; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #8fa0b8; }
.acma-v3 .v3-hh-nav__tab::before {
	content: ""; position: absolute; left: clamp(14px, 1.2vw, 22px); right: clamp(14px, 1.2vw, 22px); top: 0; height: 3px; border-radius: 0 0 3px 3px;
	background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--v3-ease-io);
}
.acma-v3 .v3-hh-nav__tab:hover { color: #fff; background: var(--v3-navy-2); }
.acma-v3 .v3-hh-nav__tab[aria-selected="true"] { color: #fff; background: var(--v3-navy); }
.acma-v3 .v3-hh-nav__tab[aria-selected="true"]::before { transform: none; }
.acma-v3 .v3-hh-nav__tab[aria-selected="true"] small { color: #fff; }
.acma-v3 .v3-hh-nav__tab:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

.acma-v3 .v3-hh-nav__panels { display: grid; }
.acma-v3 .v3-hh-nav__panel {
	--c: var(--v3-royal);
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 555px) minmax(0, 1fr);
	gap: clamp(24px, 2.6vw, 56px);
	align-items: start;
	padding: clamp(20px, 2.2vw, 44px);
}
/* Hidden panels keep their place in the cell (no height change between tabs). */
.acma-v3 .v3-hh-nav__panel[hidden] { display: grid; visibility: hidden; }
.acma-v3 .v3-hh-nav__panel.is-violet { --c: var(--v3-violet); }
.acma-v3 .v3-hh-nav__panel.is-teal { --c: var(--v3-teal); }
.acma-v3 .v3-hh-nav__panel.is-magenta { --c: var(--v3-magenta); }
.acma-v3 .v3-hh-nav__panel.is-amber { --c: var(--v3-amber); }
.acma-v3 .v3-hh-nav__panel:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* The project at its own ratio, never wider than its file, on a solid accent block. */
.acma-v3 .v3-hh-nav__shot {
	position: relative;
	display: block;
	width: min(100%, var(--nw, 555px));
	aspect-ratio: var(--ar, 555 / 390);
	overflow: hidden;
	border-radius: clamp(10px, .8vw, 16px);
	background: #0a2647;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.acma-v3 .v3-hh-nav__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s var(--v3-ease); }
.acma-v3 .v3-hh-nav__shot img:not([src]) { display: none; } /* Not loaded yet (navigator JS), or the noscript copy shows. */
.acma-v3 .v3-hh-nav__shot:hover img { transform: scale(1.02); }

.acma-v3 .v3-hh-nav__body { display: flex; flex-direction: column; min-width: 0; align-self: stretch; }
.acma-v3 .v3-hh-nav__title { font-size: clamp(24px, 1vw + 14px, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.acma-v3 .v3-hh-nav__meta { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.5; color: #c9d0d9; }
.acma-v3 .v3-hh-nav__story { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(20px, 2vw, 40px); margin-top: clamp(18px, 1.6vw, 28px); }
.acma-v3 .v3-hh-nav__story > div { padding-top: 14px; border-top: 2px solid var(--c); }
.acma-v3 .v3-hh-nav__story dt { font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff; }
.acma-v3 .v3-hh-nav__story dd { margin: 6px 0 0; max-width: 52ch; font-size: clamp(15px, .2vw + 12.5px, 18px); line-height: 1.6; color: var(--v3-field-line); }
.acma-v3 .v3-hh-nav__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: auto; padding-top: clamp(20px, 1.8vw, 32px); }
.acma-v3 .v3-hh-nav__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.acma-v3 .v3-hh-nav__stack li { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--v3-blue) 18%, var(--v3-navy-2)); font-size: 14px; font-weight: 600; line-height: 1.5; color: #fff; }
.acma-v3 .v3-hh-nav__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--v3-green-on-dark); font-size: 16px; font-weight: 700; text-decoration: none; }
.acma-v3 .v3-hh-nav__go:is(:hover, :focus-visible) { color: #fff; }
.acma-v3 .v3-hh-nav__go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
.acma-v3 .v3-hh-nav__go .v3-arrow { width: 18px; height: 18px; transition: transform .3s var(--v3-ease); }
.acma-v3 .v3-hh-nav__go:hover .v3-arrow { transform: translateX(4px); }

.acma-v3 .v3-hh--navigator .v3-hh-proof { margin-top: clamp(16px, 2vw, 40px); }
.acma-v3 .v3-hh--navigator .v3-hh-proof > div::before { content: ""; order: -2; height: 3px; margin-bottom: clamp(12px, 1.2vw, 20px); background: var(--fig); }
.acma-v3 .v3-hh--navigator .v3-hh-proof dd { color: var(--fig); }
.acma-v3 .v3-hh--navigator .v3-hh-proof dt { color: var(--v3-text); }

@media (max-width: 1439.98px) {
	.acma-v3 .v3-hh-nav__story { grid-template-columns: 1fr; }
}
@media (max-width: 1199.98px) {
	.acma-v3 .v3-hh-nav { grid-template-columns: 1fr; align-items: start; }
	.acma-v3 .v3-hh-nav__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 1023.98px) {
	.acma-v3 .v3-hh-nav__tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-right: 56px; scroll-padding-inline: 12px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } /* Edge mask on a scrolling row (approved). */
	.acma-v3 .v3-hh-nav__tabs::-webkit-scrollbar { display: none; }
	.acma-v3 .v3-hh-nav__tab { flex: none; min-height: 52px; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 767.98px) {
	.acma-v3 .v3-hh-nav__panel { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
	.acma-v3 .v3-hh-nav__tab small { display: none; }
	.acma-v3 .v3-hh-nav__foot { align-items: flex-start; flex-direction: column; }
}

/* Large screens: the panel's small type grows with the headline (to 4K). */
@media (min-width: 1800px) {
	.acma-v3 .v3-hh-nav__markets,
	.acma-v3 .v3-hh-nav__meta,
	.acma-v3 .v3-hh-nav__story dt { font-size: clamp(15px, .35vw + 9px, 22px); }
	.acma-v3 .v3-hh-nav__story dd { font-size: clamp(18px, .35vw + 11px, 24px); }
	.acma-v3 .v3-hh-nav__tab small,
	.acma-v3 .v3-hh-nav__stack li { font-size: clamp(13px, .3vw + 8px, 19px); }
	.acma-v3 .v3-hh-nav__tab { min-height: clamp(60px, 3.4vw, 96px); }
	.acma-v3 .v3-hh-nav__go { font-size: clamp(16px, .35vw + 10px, 23px); }
}
