/**
 * Template structure CSS.
 */

.entry-header,
.entry-content,
.entry-summary,
.entry-footer,
.page-header,
.archive-header,
.single-header,
.search-header,
.comments-area,
.header-utility,
.hero-widgets,
.footer-widgets__column {
	display: block;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip-path: none;
	white-space: normal;
}


.contextual-header,
.contextual-title,
.contextual-description,
.contextual-value,
.hero-header,
.breadcrumbs,
.search-form,
.search-label,
.search-field,
.search-submit {
	display: block;
	width: 100%;
}

.contextual-description:empty,
.hero-header:empty,
.breadcrumbs:empty {
	display: none;
}

.contextual-header > *:first-child,
.hero-header > *:first-child,
.breadcrumbs > *:first-child {
	margin-top: 0;
}

.contextual-header > *:last-child,
.hero-header > *:last-child,
.breadcrumbs > *:last-child {
	margin-bottom: 0;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--site-grid-gap);
	align-items: stretch;
}

.search-label {
	flex: 1 1 16rem;
	min-width: 0;
}

.search-submit {
	flex: 0 0 auto;
	width: auto;
}

@media (max-width: 979px) {
	.search-submit {
		width: 100%;
	}
}

.entry-meta,
.entry-thumbnail,
.comments-title,
.comment-reply-title,
.comments-help,
.comment-account-state,
.comments-status,
.comment-form {
	display: block;
}


.site-title,
.site-description,
.site-info__text {
	display: block;
	width: 100%;
}


/* Final starter hardening: shared structural wrappers */
.site-shell {
	min-height: 100%;
}

.empty-state__content,
.empty-state__search {
	display: block;
}

.navigation--archive-pagination,
.navigation--comments-navigation,
.navigation--post-navigation {
	display: block;
}

.nav-label {
	display: inline-block;
}


/* Feature layer: contextual header and native breadcrumb system */
.hero-header-layout-standard,
.hero-header-layout-compact,
.hero-header-layout-split {
	display: grid;
	width: 100%;
}

.hero-header-layout-standard,
.hero-header-layout-split {
	gap: var(--site-grid-gap);
}

.hero-header-layout-compact {
	gap: calc(var(--site-grid-gap) * 0.5);
}

.hero-header-align-center,
.contextual-header-align-center .hero-header {
	text-align: center;
	justify-items: center;
}

/* v02.62: Let the Hero Min Height control be the only vertical hero constraint. */
.hero-header {
	display: grid;
	align-items: center;
}

.hero-header h1,
.hero-header .contextual-title {
	display: flex;
	align-items: center;
	margin-block: 0;
}

.hero-header-align-center .contextual-title {
	justify-content: center;
	text-align: center;
}

.hero-header-align-start .contextual-title {
	justify-content: flex-start;
	text-align: left;
}

.hero-header-align-end .contextual-title {
	justify-content: flex-end;
	text-align: right;
}

/* WooCommerce can apply its own title alignment to archive/page titles.
 * Re-assert the theme's Hero Content Alignment setting inside hero titles.
 */
.woocommerce .hero-header-align-center,
.woocommerce .contextual-header-align-center .hero-header,
.request-context-woocommerce-archive .hero-header-align-center,
.request-context-woocommerce-archive .contextual-header-align-center .hero-header,
.request-context-product .hero-header-align-center,
.request-context-product .contextual-header-align-center .hero-header {
	text-align: center;
	justify-items: center;
}

.woocommerce .hero-header-align-center .contextual-header,
.woocommerce .contextual-header-align-center .hero-header .contextual-header,
.request-context-woocommerce-archive .hero-header-align-center .contextual-header,
.request-context-woocommerce-archive .contextual-header-align-center .hero-header .contextual-header,
.request-context-product .hero-header-align-center .contextual-header,
.request-context-product .contextual-header-align-center .hero-header .contextual-header {
	text-align: center;
	justify-self: center;
}

.woocommerce .hero-header-align-center .contextual-title,
.woocommerce .contextual-header-align-center .hero-header .contextual-title,
.request-context-woocommerce-archive .hero-header-align-center .contextual-title,
.request-context-woocommerce-archive .contextual-header-align-center .hero-header .contextual-title,
.request-context-product .hero-header-align-center .contextual-title,
.request-context-product .contextual-header-align-center .hero-header .contextual-title {
	justify-content: center;
	text-align: center;
	justify-self: center;
}

@media (max-width: 979.98px) {
	.hero-header h1,
	.hero-header .contextual-title {
		align-items: center;
		font-size: var(--hero-title-size) !important;
	}
}

.breadcrumbs {
	display: block;
	width: 100%;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--site-grid-gap) * 0.5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--site-grid-gap) * 0.5);
}

.breadcrumbs__item:not(.is-current)::after {
	content: "/";
	display: inline-block;
}

.breadcrumbs__item:last-child::after {
	display: none;
}

.breadcrumbs-position-separate {
	padding-top: calc(var(--site-grid-gap) * 0.5);
}

.hero-breadcrumbs-row {
	display: block;
	width: 100%;
}

@media (min-width: 782px) {
	.hero-header-layout-split .contextual-title,
	.hero-header-layout-split .contextual-description {
		max-width: 42rem;
	}

	.hero-header-layout-split.hero-header--archive {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
	}

	.hero-header-layout-split.hero-header--search {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: start;
	}
}


/* Cross-context stabilisation layer */
.content-state-empty .content-stack,
.content-state-empty .content-grid,
.content-state-empty .content-area,
.content-state-empty .woocommerce-content-area {
	width: 100%;
}

.request-context-search .empty-state__search,
.request-context-404 .empty-state__search {
	margin-top: var(--site-grid-gap);
}

.request-context-home .contextual-header,
.request-context-front-page .contextual-header,
.request-context-page .contextual-header,
.request-context-cart .contextual-header,
.request-context-checkout .contextual-header,
.request-context-account .contextual-header,
.request-context-archive .contextual-header,
.request-context-woocommerce-archive .contextual-header,
.request-context-single .contextual-header,
.request-context-product .contextual-header,
.request-context-attachment .contextual-header {
	width: 100%;
}

/* v02.23: complete contextual header alignment choices. */
.hero-header-align-start,
.contextual-header-align-start .hero-header {
	text-align: left;
	justify-items: start;
}

.hero-header-align-start .contextual-title,
.contextual-header-align-start .hero-header .contextual-title {
	text-align: left;
	justify-self: start;
}

.hero-header-align-end,
.contextual-header-align-end .hero-header {
	text-align: right;
	justify-items: end;
}

.hero-header-align-end .contextual-title,
.contextual-header-align-end .hero-header .contextual-title {
	text-align: right;
	justify-self: end;
}

/* v02.49: Footer widget presentation layer. */
h2.widget-title {
	font-size: clamp(1.0rem, 1.2vw, 1.5rem);
	color: #fff;
	font-weight: 300;
}

.footer-widgets__item ul {
	list-style-type: "- ";
	padding-left: 10px;
}

.footer-widgets__item ul li a {
	font-size: 0.8rem;
	font-weight: 200;
	color: #fff;
}

.footer-widgets__item ul li a:hover {
	font-size: 0.8rem;
	font-weight: 200;
	color: #f09;
}

.footer-widgets__column--footer-1,
.footer-widgets__column--footer-2,
.footer-widgets__column--footer-3,
.footer-widgets__column--footer-4 {
	border-right: solid 2px #333;
	height: 100%;
}

/* v02.66: Hero vertical centering + featured-image hero background. */
div.site-hero__inner {
	align-items: stretch;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.site-hero__inner > .hero-content {
	display: grid;
	align-content: center;
	min-height: calc(var(--hero-height) - (var(--hero-border) * 2));
}

.site-hero__inner--featured-image {
	overflow: hidden;
	position: relative;
}

.site-hero__inner--featured-image .hero-content {
	position: relative;
	z-index: 1;
}

.site-hero__inner--parallax {
	background-attachment: fixed;
	background-size: auto 115%;
}

@media (max-width: 979.98px), (prefers-reduced-motion: reduce) {
	.site-hero__inner--parallax {
		background-attachment: scroll;
		background-size: cover;
	}
}

/* v02.67: hero breadcrumb edge positioning + JS-driven featured-image parallax. */
div.site-hero__inner {
	position: relative;
}

.site-hero__inner > .hero-content {
	position: relative;
}

.site-hero__inner .breadcrumbs-position-above,
.site-hero__inner .breadcrumbs-position-below {
	left: var(--site-grid-gap);
	right: var(--site-grid-gap);
	width: auto;
	z-index: 3;
}

.site-hero__inner .breadcrumbs-position-above {
	position: absolute;
	top: var(--site-grid-gap);
}

.site-hero__inner .breadcrumbs-position-below {
	position: absolute;
	bottom: var(--site-grid-gap);
}

.site-hero__inner--parallax {
	--hero-parallax-offset: 0px;
	background-attachment: scroll;
	background-position: center calc(50% + var(--hero-parallax-offset));
	background-size: cover;
}

@media (prefers-reduced-motion: reduce) {
	.site-hero__inner--parallax {
		--hero-parallax-offset: 0px;
	}
}

/* v02.68: real hero featured-image parallax layer. */
.site-hero__inner--featured-image {
	--hero-parallax-y: 0px;
	background-image: none !important;
	isolation: isolate;
}

.site-hero__inner--featured-image::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: -26%;
	right: -8%;
	bottom: -26%;
	left: -8%;
	background-image: var(--hero-featured-bg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.08);
	will-change: transform;
}

.site-hero__inner--featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.12));
	pointer-events: none;
}

.site-hero__inner--featured-image .hero-content {
	z-index: 2;
}

.site-hero__inner--parallax {
	--hero-parallax-y: 36px;
}

@media (prefers-reduced-motion: reduce) {
	.site-hero__inner--featured-image::before {
		transform: none;
		will-change: auto;
	}

	.site-hero__inner--parallax {
		--hero-parallax-y: 0px;
	}
}
