/**
 * 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.55: Keep one-, two-, and three-line hero titles visually stable. */
.hero-header {
	display: grid;
	align-items: center;
}

.hero-header h1,
.hero-header .contextual-title {
	min-height: var(--hero-title-min-height);
	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) {
	:root {
		--hero-title-min-height: 4.2em;
	}

	.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%;
}
