/**
 * Exxepanna v1.2.0 hero flyout and taxonomy navigation refinement.
 * This physical final layer avoids stale proxy assets and legacy cascade leaks.
 */

/* Hero flyout: structurally separate from both the copy card and the banner. */
.hero-revision .hero-shell {
	position: relative;
	isolation: isolate;
	overflow: visible;
}

.hero-revision .hero-category-flyout {
	position: absolute;
	top: -20px;
	left: 12px;
	z-index: 30;
	width: min(540px, 39%);
	height: calc(100% + 20px);
	pointer-events: none;
}

.hero-revision .hero-category-toggle {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: auto;
	box-shadow: 0 9px 22px rgba(17, 17, 17, 0.14);
}

.hero-revision .hero-category-panel {
	position: absolute;
	inset: 54px auto 0 0;
	z-index: 1;
	width: 100%;
	height: auto;
	max-height: none;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(-18px, -6px, 0) scale(0.985);
	transform-origin: top left;
	transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
	border: 1px solid #dedbd5;
	border-radius: 14px;
	box-shadow: 0 18px 42px rgba(17, 17, 17, 0.13);
}

.hero-revision.categories-open .hero-category-flyout {
	pointer-events: auto;
}

.hero-revision.categories-open .hero-category-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0) scale(1);
	transition-delay: 0s;
}

.hero-revision .hero-category-panel-head {
	min-height: 42px;
}

.hero-revision .hero-side .hero-intro {
	padding-top: 0;
}

.hero-revision.categories-open .hero-intro {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Homepage category carousel: preserve a full-card semantic link and clear arrows. */
.categories-section .category-carousel-shell {
	padding-inline: 1.35rem;
}

.categories-section .categories-carousel {
	padding: 0.35rem 0.25rem 0.85rem;
}

.categories-section .category-carousel-item {
	padding-block: 1px;
}

.categories-section .category-card-destination {
	overflow: hidden;
	border-radius: 12px;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.categories-section .category-card-destination:hover,
.categories-section .category-card-destination:focus-visible {
	transform: translateY(-3px);
	border-color: #cfcac2;
	box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.categories-section .carousel-prev {
	left: 0;
}

.categories-section .carousel-next {
	right: 0;
}

/* Category index: one title, clean hierarchy, and unobstructed semantic links. */
.information-page-article-categories .page-entry-header {
	margin: 0 0 clamp(1.5rem, 3vw, 2.4rem);
}

.information-page-article-categories .entry-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.12;
}

.exx-categories-page .category-index-grid {
	align-items: start;
}

.exx-categories-page .category-guide-card {
	position: relative;
	isolation: isolate;
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.055);
}

.exx-categories-page .category-guide-primary,
.exx-categories-page .category-guide-row {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	touch-action: manipulation;
}

.exx-categories-page .category-guide-primary {
	border-bottom: 1px solid #e8e4dd;
	transition: background-color 160ms ease, color 160ms ease;
}

.exx-categories-page .category-guide-primary:focus-visible,
.exx-categories-page .category-guide-row:focus-visible {
	outline: 3px solid rgba(45, 90, 67, 0.3);
	outline-offset: -2px;
}

.exx-categories-page .category-guide-subcategories {
	padding-top: 0.85rem;
}

@media (max-width: 1024px) {
	.hero-revision .hero-category-flyout {
		top: -18px;
		width: min(430px, calc(100% - 24px));
		height: min(580px, calc(100dvh - 96px));
	}

	.hero-revision .hero-category-panel {
		position: absolute;
		inset: 54px auto 0 0;
		width: 100%;
		height: auto;
		max-height: none;
	}
}

@media (max-width: 768px) {
	.hero-revision .hero-category-flyout {
		left: 10px;
		width: min(410px, calc(100% - 20px));
	}

	.hero-revision .hero-category-panel {
		padding: 0.85rem;
		border-radius: 12px;
	}

	.categories-section .category-carousel-shell {
		padding-inline: 0;
	}

	.categories-section .categories-carousel {
		padding-inline: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-revision .hero-category-panel,
	.categories-section .category-card-destination {
		transition: none;
	}
}
