/**
 * Hudratt - electrolytes.css (only the "Electrolitos efervescentes" landing, page-templates/electrolytes.php).
 * Hero with the fizzing glass, minerals per tablet, the tablet / bottle / powder table, the two flavour
 * bands and FAQ. Motion idea: things arrive the way a tablet dissolves (blur into focus) and the
 * glass in the hero keeps fizzing while it is on screen. Colour is fill, text or icon, never a border.
 */

.hd-efv {
	--hd-efv-fill: rgba(var(--hd-accent-rgb), 0.16);
	--hd-efv-rule: rgb(27 27 27 / 0.16);
	--hd-efv-shade: rgb(27 27 27 / 0.14);
	--hd-efv-scrim: rgb(27 27 27 / 0.58); /* translucent, yet the white chevron keeps 4.5:1 and the disc 3:1 on the table */
}

/* The page ends with the small notice and links: the footer's own top padding is the only gap below them */
.hd-efv > .hd-section:last-child {
	padding-bottom: 0;
}

/* ----- Hero: H1, lead, facts and actions | the photo of the glass -------------------------------- */
.hd-efv__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4.5rem);
	padding: calc(var(--hd-nav-offset) + 1.5rem) var(--hd-gutter) var(--hd-gap-lg);
}

.hd-efv__intro {
	gap: 1.5rem;
	padding: 0;
}

.hd-efv__intro::after {
	display: none;
}

/* The shared page hero clips its overflow (for the drop watermark, hidden here); the fact bubbles must be
   able to leave it, or the first one is cut on the left */
.hd-efv__intro {
	overflow: visible;
}

.hd-efv__title {
	font-size: clamp(1.75rem, 0.6rem + 3.2vw, 4.5rem); /* "efervescentes" fits its column at every width */
	text-wrap: balance;
}

.hd-efv__lead {
	max-width: 34rem;
}

.hd-efv__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-efv__fact {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.95rem 0.4rem 0.45rem;
	font-size: var(--hd-fs-small);
	font-weight: 600;
	line-height: 1.2;
	background: var(--hd-surface-solid);
	border: var(--hd-border);
	border-radius: 999px;
}

/* Celeste check: a celeste disc with an ink tick (celeste alone would be too faint on the light pill) */
.hd-efv__fact-check {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	color: var(--hd-accent-ink);
	background: var(--hd-accent);
	border-radius: 50%;
}

.hd-efv__fact-check .hd-icon {
	width: 0.95em;
	height: 0.95em;
}

/* Fact bubble (same speech bubble as the flavour landings' ingredient tiles, in Hudraatt celeste):
   hover with the mouse, tap on touch, keyboard focus; electrolytes.js toggles .is-tip */
.hd-efv__fact[data-hd-tip] {
	position: relative;
	cursor: help;
}

.hd-efv__fact[data-hd-tip]:focus-visible {
	outline: 2px solid var(--hd-ink);
	outline-offset: 3px;
}

.hd-efv__fact.is-tip {
	z-index: 3;
}

.hd-efv .hd-tip {
	--hd-tip-x: -50%;
	position: absolute;
	bottom: calc(100% + 1rem);
	left: 50%;
	z-index: 4;
	width: min(15rem, 78vw);
	padding: 0.75rem 0.9rem 0.8rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--hd-accent-ink);
	text-align: left;
	background: var(--hd-accent);
	border: 2px solid var(--hd-ink);
	border-radius: 1.1rem;
	box-shadow: 4px 4px 0 var(--hd-ink);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(var(--hd-tip-x), 0.4rem) scale(0.96);
	transform-origin: var(--hd-tip-tail, 50%) 100%;
	transition: opacity var(--hd-dur-fast) ease, transform var(--hd-dur-fast) ease, visibility 0s linear var(--hd-dur-fast);
}

/* Tail: the bubble's own fill, outlined in ink on two sides */
.hd-efv .hd-tip::after {
	position: absolute;
	top: 100%;
	left: var(--hd-tip-tail, 50%);
	width: 0.9rem;
	height: 0.9rem;
	content: "";
	background: var(--hd-accent);
	border-right: 2px solid var(--hd-ink);
	border-bottom: 2px solid var(--hd-ink);
	transform: translate(-50%, -55%) rotate(45deg);
}

/* Near a screen edge electrolytes.js moves the bubble inside the screen (--hd-tip-left, --hd-tip-x: 0) and
   keeps the tail over the pill (--hd-tip-tail); without JS it stays centred */
.hd-efv .hd-tip[style*="--hd-tip-left"] {
	left: var(--hd-tip-left);
}

.hd-efv__fact.is-tip .hd-tip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(var(--hd-tip-x), 0) scale(1);
	transition: opacity var(--hd-dur-fast) ease, transform var(--hd-dur-fast) ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.hd-efv .hd-tip,
	.hd-efv__fact.is-tip .hd-tip {
		transition: none;
	}
}

.hd-efv__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* The stage keeps the photo's own aspect, so the bubbles stay inside the glass at every size */
.hd-efv__stage {
	position: relative;
	justify-self: center;
	width: min(100%, calc(min(74svh, 44rem) * 0.8)); /* the height follows from the 4:5 ratio */
	height: auto;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	background: var(--hd-dark);
	border-radius: var(--hd-radius);
}

.hd-efv__layer {
	position: absolute;
	inset: 0;
	transform: translate3d(0, var(--hd-py, 0px), 0) scale(1.08); /* overscan for the parallax */
}

.hd-efv__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Effervescence: bubbles rising inside the water of the photographed glass */
.hd-efv__bubbles {
	position: absolute;
	top: 53%;
	left: 22%;
	width: 25%;
	height: 27%;
	overflow: hidden;
	container-type: size;
	pointer-events: none;
}

.hd-efv__bubble {
	--hd-x: 50%;
	--hd-s: 5px;
	--hd-t: 3.2s;
	--hd-d: 0s;
	--hd-dx: 4px;
	position: absolute;
	bottom: -8px;
	left: var(--hd-x);
	width: var(--hd-s);
	height: var(--hd-s);
	background: rgb(255 255 255 / 0.85);
	border-radius: 50%;
	box-shadow: inset 0 -1px 1px rgb(150 170 190 / 0.6);
	opacity: 0;
}

.hd-efv__bubble:nth-child(1) { --hd-x: 8%; --hd-s: 4px; --hd-t: 3.4s; --hd-d: -0.4s; }
.hd-efv__bubble:nth-child(2) { --hd-x: 18%; --hd-s: 6px; --hd-t: 2.8s; --hd-d: -1.9s; --hd-dx: -5px; }
.hd-efv__bubble:nth-child(3) { --hd-x: 27%; --hd-s: 3px; --hd-t: 3.9s; --hd-d: -2.6s; }
.hd-efv__bubble:nth-child(4) { --hd-x: 35%; --hd-s: 5px; --hd-t: 2.5s; --hd-d: -0.9s; --hd-dx: -3px; }
.hd-efv__bubble:nth-child(5) { --hd-x: 44%; --hd-s: 7px; --hd-t: 3.1s; --hd-d: -2.2s; }
.hd-efv__bubble:nth-child(6) { --hd-x: 52%; --hd-s: 4px; --hd-t: 2.7s; --hd-d: -0.2s; --hd-dx: -6px; }
.hd-efv__bubble:nth-child(7) { --hd-x: 60%; --hd-s: 5px; --hd-t: 3.6s; --hd-d: -3.1s; }
.hd-efv__bubble:nth-child(8) { --hd-x: 67%; --hd-s: 3px; --hd-t: 2.4s; --hd-d: -1.3s; --hd-dx: 5px; }
.hd-efv__bubble:nth-child(9) { --hd-x: 74%; --hd-s: 6px; --hd-t: 3.3s; --hd-d: -2.9s; --hd-dx: -4px; }
.hd-efv__bubble:nth-child(10) { --hd-x: 81%; --hd-s: 4px; --hd-t: 2.9s; --hd-d: -0.6s; }
.hd-efv__bubble:nth-child(11) { --hd-x: 88%; --hd-s: 5px; --hd-t: 3.7s; --hd-d: -1.6s; --hd-dx: -3px; }
.hd-efv__bubble:nth-child(12) { --hd-x: 13%; --hd-s: 3px; --hd-t: 2.6s; --hd-d: -2.4s; }
.hd-efv__bubble:nth-child(13) { --hd-x: 57%; --hd-s: 3px; --hd-t: 2.3s; --hd-d: -1.1s; --hd-dx: 3px; }
.hd-efv__bubble:nth-child(14) { --hd-x: 92%; --hd-s: 4px; --hd-t: 3s; --hd-d: -2s; --hd-dx: -5px; }

@media (prefers-reduced-motion: no-preference) {
	/* First paint: the photo fills from the bottom like a glass being poured (no opacity, it is the LCP) */
	.hd-efv__stage {
		animation: hd-efv-pour 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	/* electrolytes.js adds .is-live only while the stage is on screen */
	.hd-efv__stage.is-live .hd-efv__bubble {
		animation: hd-efv-rise var(--hd-t) linear var(--hd-d) infinite;
	}
}

@keyframes hd-efv-pour {
	from {
		clip-path: inset(38% 0 0 0 round var(--hd-radius));
	}

	to {
		clip-path: inset(0 0 0 0 round var(--hd-radius));
	}
}

@keyframes hd-efv-rise {
	0% {
		opacity: 0;
		transform: translate3d(0, 0, 0) scale(0.6);
	}

	15% {
		opacity: 0.95;
	}

	50% {
		transform: translate3d(var(--hd-dx), -50cqh, 0) scale(0.9);
	}

	90% {
		opacity: 0.85;
	}

	100% {
		opacity: 0;
		transform: translate3d(0, calc(-100cqh - 6px), 0) scale(1);
	}
}

/* ----- Why tablets: text and source | photo and minerals per tablet ------------------------------ */
.hd-efv__why {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: start;
	gap: clamp(2rem, 5vw, 5rem);
}

.hd-efv__why-text {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hd-efv__why-text > p {
	max-width: 38rem;
	margin: 0;
	font-size: var(--hd-fs-body);
}

.hd-efv__why-text a,
.hd-efv__more a {
	color: var(--hd-ink);
	font-weight: 600;
	text-decoration-color: var(--hd-accent);
	text-decoration-thickness: 0.18em;
	text-underline-offset: 0.2em;
}

.hd-efv__why-text a:hover,
.hd-efv__why-text a:focus-visible,
.hd-efv__more a:hover,
.hd-efv__more a:focus-visible {
	text-decoration-color: var(--hd-ink);
}

.hd-efv__source {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-width: 38rem;
	margin: 0.5rem 0 0;
	padding: 1.1rem 1.25rem;
	background: var(--hd-surface-solid);
	border: var(--hd-border);
	border-radius: var(--hd-radius);
}

.hd-efv__source p {
	margin: 0;
}

.hd-efv__source cite {
	font-size: var(--hd-fs-small);
	font-style: normal;
}

.hd-efv__source cite a {
	color: var(--hd-ink-muted);
	font-weight: 400;
	text-decoration-color: rgb(27 27 27 / 0.35);
	text-decoration-thickness: 1px;
}

.hd-efv__why-media {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hd-efv__drop {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--hd-radius);
}

.hd-efv__drop-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 32%;
}

.hd-efv__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-efv__tile {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0.8rem 0.9rem;
	background: var(--hd-surface-solid);
	border: var(--hd-border);
	border-radius: var(--hd-radius);
}

.hd-efv__tile-top {
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	color: var(--hd-ink-muted);
}

.hd-efv__tile-symbol {
	font-family: var(--hd-font-display);
	font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem);
	font-weight: 700;
	line-height: 1;
	color: var(--hd-line-uva);
}

.hd-efv__tile-name {
	margin-top: 0.35rem;
	font-size: var(--hd-fs-small);
}

.hd-efv__tile-amount {
	font-family: var(--hd-font-display);
	font-size: clamp(0.9375rem, 0.7rem + 0.6vw, 1.25rem);
	white-space: nowrap;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hd-efv__tiles-note {
	margin: 0;
	font-size: var(--hd-fs-small);
	color: var(--hd-ink-muted);
}

/* The minerals arrive the way a tablet dissolves: out of blur, into focus */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.hd-efv .hd-efv__tiles[data-hd-reveal="stagger"] > * {
		filter: blur(8px);
		transform: translateY(14%) scale(0.94);
		transition:
			opacity 0.9s var(--hd-ease-out),
			filter 0.9s var(--hd-ease-out),
			transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
		transition-delay: calc(var(--hd-i, 0) * 0.09s);
	}

	.hd-efv .hd-efv__tiles[data-hd-reveal="stagger"].is-in > * {
		filter: none;
		transform: none;
	}
}

/* ----- Comparison table ---------------------------------------------------------------------- */
.hd-efv__compare {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hd-efv__compare-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	text-align: center;
}

.hd-efv__compare-title {
	text-wrap: balance;
}

/* The three formats, as a deck under the title */
.hd-efv__versus {
	margin: 0;
	font-family: var(--hd-font-display);
	font-size: var(--hd-fs-title-sm);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--hd-ink-muted);
}

.hd-efv__compare-intro {
	max-width: 40rem;
	margin: 0 auto;
	font-size: var(--hd-fs-body);
	text-align: center;
}

/* Scroll cue: a soft ink shade sits on the right edge while there is more table to the right; a cover
   that travels with the content (local) hides it at the end. Nothing shows when the table fits. */
.hd-efv__table-wrap {
	container: hd-efv-table / inline-size;
	overflow-x: auto;
	overflow-y: hidden;
	background:
		linear-gradient(var(--hd-surface-solid), var(--hd-surface-solid)) right / 1.5rem 100% no-repeat local,
		linear-gradient(to left, var(--hd-efv-shade), transparent) right / 1.5rem 100% no-repeat scroll,
		var(--hd-surface-solid);
	border: var(--hd-border);
	border-radius: var(--hd-radius);
	scrollbar-color: var(--hd-ink) transparent;
	scrollbar-width: thin;
}

.hd-efv__table-wrap:focus-visible {
	outline: 2px solid var(--hd-ink);
	outline-offset: 3px;
}

.hd-efv__table {
	width: 100%;
	min-width: 46rem;
	border-collapse: separate;
	border-spacing: 0;
}

.hd-efv__table th,
.hd-efv__table td {
	padding: 1.1rem 1.25rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--hd-efv-rule);
}

.hd-efv__table tbody tr:last-child > * {
	border-bottom: 0;
}

.hd-efv__table thead th {
	font-family: var(--hd-font-display);
	font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 1rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	vertical-align: bottom;
}

.hd-efv__table tbody th {
	width: 12rem;
	font-size: var(--hd-fs-label);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* First column stays put while the table scrolls sideways on small screens */
.hd-efv__table tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--hd-surface-solid);
}

/* Our column: a celeste fill that pours down the column when the table reaches the screen */
.hd-efv__table .is-ours {
	font-weight: 600;
	background-image: linear-gradient(var(--hd-efv-fill), var(--hd-efv-fill));
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* Each Hudraatt point: celeste disc with an ink outline and a white tick, centred both ways */
.hd-efv__point {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.hd-efv__tick {
	display: grid;
	flex: none;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	color: var(--hd-on-dark);
	background: var(--hd-accent);
	border: 2px solid var(--hd-ink);
	border-radius: 50%;
}

.hd-efv__tick .hd-icon {
	width: 0.95rem;
	height: 0.95rem;
	stroke: currentColor;
	stroke-width: 0.6;
}

.hd-efv__table thead .is-ours {
	background-image: linear-gradient(var(--hd-accent), var(--hd-accent));
	color: var(--hd-accent-ink);
}

/* Column heads with the format itself on top: our tube (Uva and Manzana take turns), a bottle, a sachet */
/* Heads with a photo align to the top, so the three photos sit on one line whatever the name's length */
.hd-efv__table thead th:not(:first-child) {
	vertical-align: top;
}

.hd-efv__format {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 1.25rem;
}

.hd-efv__format-media {
	display: grid;
	place-items: center;
	width: 100%;
	height: var(--hd-efv-format-h);
}

.hd-efv__format-img {
	grid-area: 1 / 1;
	width: auto;
	max-width: 100%;
	height: var(--hd-efv-format-h);
	object-fit: contain;
	filter: drop-shadow(0 0.6rem 0.7rem rgb(27 27 27 / 0.22));
}

.hd-efv__format--swap .hd-efv__format-img:nth-child(2),
.hd-efv__format--swap .hd-efv__format-flavor:nth-child(2) {
	opacity: 0;
}

/* Flavour now on screen, as a tag over the foot of the tube (so every head keeps the same height and the
   three photos line up): ink text, the flavour colour as a dot (fill, not border) */
.hd-efv__format-flavors {
	position: absolute;
	bottom: -0.5rem;
	left: 50%;
	display: grid;
	transform: translateX(-50%);
}

.hd-efv__format-flavor {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	justify-self: center;
	gap: 0.4rem;
	padding: 0.2rem 0.65rem;
	font-family: var(--hd-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--hd-ink);
	background: var(--hd-surface-solid);
	border: var(--hd-border);
	border-radius: 999px;
}

.hd-efv__format-flavor::before {
	width: 0.55rem;
	height: 0.55rem;
	content: "";
	background: var(--hd-line-uva);
	border-radius: 50%;
}

.hd-efv__format-flavor:nth-child(2)::before {
	background: var(--hd-line-pre-deep);
}

.hd-efv__format-name {
	display: block;
}

/* Uva and Manzana take turns every 3 s with a crossfade, only while the table is on screen (electrolytes.js
   adds .is-live); with reduced motion Uva stays */
@media (prefers-reduced-motion: no-preference) {
	.hd-efv__format--swap.is-live .hd-efv__format-img,
	.hd-efv__format--swap.is-live .hd-efv__format-flavor {
		animation: hd-efv-swap 6s ease-in-out infinite;
	}

	.hd-efv__format--swap.is-live .hd-efv__format-img:nth-child(2),
	.hd-efv__format--swap.is-live .hd-efv__format-flavor:nth-child(2) {
		animation-delay: -3s;
	}
}

@keyframes hd-efv-swap {
	0%,
	42% {
		opacity: 1;
	}

	50%,
	92% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

/* When the table does not fit (under 46rem of wrap) it is sized from the wrap: the fixed column and our
   column always show whole, and the next column peeks in as the cue that the table slides sideways */
@container hd-efv-table (max-width: 45.99rem) {
	.hd-efv__table {
		--hd-efv-col0: 8rem;
		--hd-efv-col: clamp(9.5rem, (100cqi - var(--hd-efv-col0)) * 0.86, 13rem);
		table-layout: fixed;
		width: calc(var(--hd-efv-col0) + 3 * var(--hd-efv-col));
		min-width: 0;
	}

	.hd-efv__table th,
	.hd-efv__table td {
		padding: 1rem 0.75rem;
	}

	.hd-efv__table thead th {
		width: var(--hd-efv-col);
		font-size: 0.75rem;
	}

	.hd-efv__table thead th:first-child {
		width: var(--hd-efv-col0);
	}

	.hd-efv__table tbody th {
		letter-spacing: 0.06em;
	}

	/* Hairline in neutral ink so the cells sliding under the fixed column do not look cut off */
	.hd-efv__table tr > :first-child {
		box-shadow: inset -1px 0 0 var(--hd-efv-rule);
	}
}

/* Column arrows, only while the table slides sideways (electrolytes.js shows them): "previous" on the left
   edge and "next" on the right edge of the table. A layer as tall as the table holds a sticky bar, so the
   arrows start level with the photos of the heads and then ride in the middle of the screen while the
   table scrolls past, stopping at its foot. They are translucent: the text under them stays readable.
   "Previous" sits on the line of the fixed column, so the row names stay clear. */
.hd-efv__table-shell {
	--hd-efv-format-h: clamp(7rem, 2rem + 10vw, 12rem);
	--hd-efv-nav-size: var(--hd-tap);
	position: relative;
}

.hd-efv__navs {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.hd-efv__navs-bar {
	position: sticky;
	top: calc(50svh - var(--hd-efv-nav-size) / 2);
	display: flex;
	justify-content: space-between;
	margin-top: calc(1rem + var(--hd-efv-format-h) / 2 - var(--hd-efv-nav-size) / 2);
	padding-inline: 0.375rem;
}

.hd-efv__nav {
	display: grid;
	place-items: center;
	width: var(--hd-efv-nav-size);
	height: var(--hd-efv-nav-size);
	padding: 0;
	color: var(--hd-on-dark);
	background: var(--hd-efv-scrim);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color var(--hd-dur-fast) ease, transform var(--hd-dur-fast) ease;
}

/* The fixed column is 8rem wide whenever the table slides (see the container query above) */
.hd-efv__nav--prev {
	margin-left: calc(8rem - 0.375rem - var(--hd-efv-nav-size) / 2);
}

/* With only "next" showing, it keeps to the right edge */
.hd-efv__nav--next {
	margin-left: auto;
}

.hd-efv__nav[hidden] {
	display: none;
}

@media (hover: hover) {
	.hd-efv__nav:hover {
		background: var(--hd-ink);
	}
}

.hd-efv__nav:active {
	background: var(--hd-ink);
}

.hd-efv__nav:active {
	transform: scale(0.94);
}

.hd-efv__nav:focus-visible {
	outline: 2px solid var(--hd-ink);
	outline-offset: 2px;
}

.hd-efv__nav .hd-icon {
	width: 1.25rem;
	height: 1.25rem;
	stroke: currentColor;
	stroke-width: 0.8;
}

@media (prefers-reduced-motion: reduce) {
	.hd-efv__nav {
		transition: none;
	}
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.hd-efv__table-wrap[data-hd-reveal] .is-ours {
		background-size: 100% 0;
		transition: background-size 0.9s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.hd-efv__table-wrap[data-hd-reveal] tbody tr:nth-child(1) .is-ours { transition-delay: 0.45s; }
	.hd-efv__table-wrap[data-hd-reveal] tbody tr:nth-child(2) .is-ours { transition-delay: 0.6s; }
	.hd-efv__table-wrap[data-hd-reveal] tbody tr:nth-child(3) .is-ours { transition-delay: 0.75s; }
	.hd-efv__table-wrap[data-hd-reveal] tbody tr:nth-child(4) .is-ours { transition-delay: 0.9s; }

	.hd-efv__table-wrap[data-hd-reveal].is-in .is-ours {
		background-size: 100% 100%;
	}
}

.hd-efv__more {
	margin: 0;
}

/* ----- Uva or Manzana ------------------------------------------------------------------------ */
.hd-efv__bands {
	display: flex;
	flex-direction: column;
	gap: var(--hd-gap-md);
}

/* Taller than the shared band: these carry tiles plus a full paragraph, which must clear the giant word */
.hd-efv__bands .hd-band {
	min-height: clamp(30rem, 44vw, 44rem);
}

/* Desktop: the tube sits centred in the band's height (top/bottom 0 + auto margins, so the shared slide-in
   transform keeps working). Phones keep the shared stacked layout. */
@media (min-width: 900px) {
	.hd-efv__bands .hd-band .hd-band__tube {
		top: 0;
		bottom: 0;
		margin-block: auto;
	}
}

/* Large screens: title and text may take half the band (the shared 36rem / 32rem caps wrap them into many
   short lines there); the tube sits in the other half, so they never meet */
@media (min-width: 1560px) {
	.hd-efv__bands .hd-band__top {
		max-width: 54%; /* of the padded band: about half of the band as seen */
	}

	.hd-efv__bands .hd-band__text {
		max-width: none;
	}
}

/* The global ring is ink, which disappears on the dark band: white ring for the keyboard focus */
.hd-efv__bands .hd-band__link:focus-visible {
	outline-color: var(--hd-on-dark);
	outline-offset: 3px;
}

/* ----- Notice -------------------------------------------------------------------------------- */
.hd-efv__notice {
	max-width: 52rem;
	margin: 0 auto;
	font-size: var(--hd-fs-small);
	text-align: center;
	color: var(--hd-ink-muted);
}

.hd-efv__rule {
	max-width: 52rem;
	margin: 1.5rem auto;
	border: 0;
	border-top: 1px solid var(--hd-efv-rule);
	opacity: 1;
}

/* Small links to the pages that go deeper, separated by a dot */
.hd-efv__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	font-size: var(--hd-fs-small);
}

.hd-efv__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem; /* 44 px tap target, still small text */
	font-weight: 600;
	color: var(--hd-ink);
	text-decoration-color: var(--hd-accent);
	text-decoration-thickness: 0.15em;
	text-underline-offset: 0.25em;
}

.hd-efv__links-sep {
	align-self: center;
	color: var(--hd-ink-muted);
}

.hd-efv__links a:hover,
.hd-efv__links a:focus-visible {
	text-decoration-color: var(--hd-ink);
}

/* ----- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.hd-efv__hero,
	.hd-efv__why {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 575.98px) {
	.hd-efv__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-efv__actions .hd-btn {
		flex: 1 1 100%;
	}
}
