/**
 * Green banner page hero — site-wide (Photo Gallery layout).
 * Breadcrumb + H1 on gradient band; replaces grey breadcrumb bar.
 */

:root {
	--tcl-hero-green-dark: #0b4141;
	--tcl-hero-green-mid: #0f5a4a;
	--tcl-hero-green-light: #126052;
	--tcl-inner-surface: #f4f7f6;
	--tcl-hero-gradient: linear-gradient(
		128deg,
		var(--tcl-hero-green-dark) 0%,
		#0c4848 30%,
		var(--tcl-hero-green-mid) 50%,
		var(--tcl-hero-green-light) 62%,
		var(--tcl-hero-green-mid) 78%,
		var(--tcl-hero-green-dark) 100%
	);
	--tcl-hero-text: var(--text-on-dark, #ffffff);
	--tcl-hero-text-muted: rgba(255, 255, 255, 0.88);
	--tcl-hero-text-soft: rgba(255, 255, 255, 0.65);
	--tcl-hero-decor-opacity: 0.75;
	--tcl-hero-decor-right: clamp(0.5rem, 2.5vw, 2rem);
}

.tcl-page-hero {
	background-color: var(--tcl-hero-green-dark);
	background-image: var(--tcl-hero-gradient);
	color: var(--tcl-hero-text);
	padding: 1rem 0 2.25rem;
	position: relative;
	overflow: hidden;
}

/* Soft light + depth — white mix on top, not a flat white band */
.tcl-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 75% 100% at 10% -20%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
		radial-gradient(ellipse 50% 80% at 95% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 35%, rgba(0, 0, 0, 0.05) 100%);
	pointer-events: none;
	z-index: 0;
}

#main-content > .tcl-page-hero:first-child,
#main-content > section.tcl-page-hero:first-child {
	padding-top: 1rem !important;
	margin-top: 0 !important;
}

#main-content:has(> .tcl-page-hero:first-child),
main:has(> .tcl-page-hero:first-child) {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.tcl-page-hero > .tcl-page-hero__inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.tcl-page-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.tcl-page-hero__inner {
		padding: 0 2rem;
	}
}

@media (min-width: 992px) {
	.tcl-page-hero__inner {
		padding: 0 3rem;
	}
}

.tcl-page-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: var(--font-bold);
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--tcl-hero-text) !important;
}

.tcl-page-hero--tabbed,
.tcl-page-hero--gallery,
.tcl-page-hero--product {
	padding-bottom: 2.25rem;
}

.tcl-page-hero--tabbed::after,
.tcl-page-hero--gallery::after,
.tcl-page-hero--product::after {
	content: '';
	position: absolute;
	right: var(--tcl-hero-decor-right);
	top: 50%;
	width: min(220px, 30vw);
	height: min(165px, 24vw);
	transform: translateY(-50%);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: var(--tcl-hero-decor-opacity);
	pointer-events: none;
	z-index: 0;
}

.tcl-page-hero--gallery::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none'%3E%3Crect x='18' y='22' width='72' height='52' rx='6' stroke='rgba(255,255,255,0.22)' stroke-width='3'/%3E%3Ccircle cx='60' cy='44' r='16' stroke='rgba(255,255,255,0.28)' stroke-width='3'/%3E%3Cpath d='M34 66l14-12 10 8 18-16 20 20' stroke='rgba(255,255,255,0.2)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tcl-page-hero--product::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none'%3E%3Cpath d='M60 16L22 36v28l38 20 38-20V36L60 16z' stroke='rgba(255,255,255,0.22)' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M60 16v48M22 36l38 20 38-20' stroke='rgba(255,255,255,0.28)' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M42 48h36M42 58h36' stroke='rgba(255,255,255,0.18)' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.tcl-page-hero--tabbed::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none'%3E%3Crect x='24' y='20' width='72' height='56' rx='6' stroke='rgba(255,255,255,0.22)' stroke-width='3'/%3E%3Cpath d='M36 36h48M36 48h48M36 60h32' stroke='rgba(255,255,255,0.2)' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* In-banner breadcrumb (white trail) — override global grey-band nav rules */
.tcl-page-hero nav[aria-label='Breadcrumb'],
.tcl-page-hero nav[aria-label='breadcrumb'],
.tcl-page-hero nav[aria-label='Breadcrumb navigation'] {
	position: relative !important;
	width: auto !important;
	left: auto !important;
	transform: none !important;
	margin: 0 0 0.4rem !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, 0.92);
}

.tcl-page-hero .breadcrumb-list,
.tcl-page-hero ol.breadcrumb {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	list-style: none !important;
	gap: 0.15rem 0.35rem;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none;
	font-size: var(--tcl-type-p2-size);
	line-height: 1.35;
	color: var(--tcl-hero-text-muted);
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.tcl-page-hero .breadcrumb-list li {
	display: inline-flex !important;
	align-items: center;
	line-height: 1.35;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	position: static;
	border: none !important;
	box-shadow: none !important;
}

.tcl-page-hero .breadcrumb-list li + li:not(:has(.breadcrumb-separator))::before {
	content: '/';
	display: inline-block;
	margin: 0 0.5rem 0 0.15rem;
	color: var(--tcl-hero-text-soft);
	font-weight: 500;
	font-size: 0.85em;
	pointer-events: none;
}

.tcl-page-hero .breadcrumb-list li:has(> a ~ .separator) + li::before,
.tcl-page-hero .breadcrumb-list li:has(> a ~ .breadcrumb-separator) + li::before {
	content: none !important;
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tcl-page-hero .breadcrumb-separator,
.tcl-page-hero .breadcrumb-list .separator {
	display: inline-block;
	margin: 0 0.5rem 0 0.15rem;
	color: var(--tcl-hero-text-soft);
	font-weight: 500;
	font-size: 0.85em;
	user-select: none;
}

.tcl-page-hero .breadcrumb-home a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.tcl-page-hero .breadcrumb-current {
	display: inline;
}

.tcl-page-hero .breadcrumb-ellipsis span {
	color: var(--tcl-hero-text-soft);
	padding: 0 0.15rem;
}

.tcl-page-hero .breadcrumb-home i,
.tcl-page-hero .breadcrumb-home .fa-home {
	display: inline-block;
	font-size: 0.9em;
	line-height: 1;
	width: 1em;
	text-align: center;
	color: inherit;
	flex-shrink: 0;
}

.tcl-page-hero .breadcrumb-item a,
.tcl-page-hero .breadcrumb-list a,
.tcl-page-hero .breadcrumb-list li a {
	color: rgba(255, 255, 255, 0.92) !important;
	font-weight: var(--font-medium);
	text-decoration: none;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0;
	background: transparent !important;
}

.tcl-page-hero .breadcrumb-item a:hover,
.tcl-page-hero .breadcrumb-list a:hover,
.tcl-page-hero .breadcrumb-list li a:hover,
.tcl-page-hero .breadcrumb-item a:focus-visible,
.tcl-page-hero .breadcrumb-list a:focus-visible {
	color: #ffffff !important;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	background: transparent !important;
}

.tcl-page-hero .breadcrumb-item a:visited,
.tcl-page-hero .breadcrumb-list a:visited {
	color: rgba(255, 255, 255, 0.88) !important;
}

.tcl-page-hero .breadcrumb-item.active,
.tcl-page-hero .breadcrumb-list li.active,
.tcl-page-hero .breadcrumb-list li[aria-current='page'],
.tcl-page-hero .breadcrumb-current {
	color: #ffffff !important;
	font-weight: var(--font-medium);
	text-decoration: none;
	padding: 0 !important;
}

.tcl-page-hero .breadcrumb-a11y-prefix {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 768px) {
	.tcl-page-hero {
		padding: 0.85rem 0 2rem;
	}

	#main-content > .tcl-page-hero:first-child,
	#main-content > section.tcl-page-hero:first-child {
		padding-top: 0.85rem !important;
	}

	.tcl-page-hero--tabbed,
	.tcl-page-hero--gallery,
	.tcl-page-hero--product {
		padding-bottom: 2rem;
	}

	.tcl-page-hero--tabbed::after,
	.tcl-page-hero--gallery::after,
	.tcl-page-hero--product::after {
		opacity: 0.35;
		width: min(160px, 36vw);
		height: min(120px, 26vw);
		right: 0.35rem;
	}

	.tcl-page-hero::before {
		background:
			radial-gradient(ellipse 90% 100% at 50% -20%, rgba(255, 255, 255, 0.1) 0%, transparent 55%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%, rgba(0, 0, 0, 0.05) 100%);
	}
}

/* Retired grey breadcrumb bar + legacy page-specific hero strips */
.tcl-breadcrumb-bar.tcl-style-header,
.tcl-style-header,
.gallery-breadcrumb,
.tcl-inner-page .tcl-style-header,
.career-page .tcl-style-header,
.career-page .gallery-hero,
.contact-page .gallery-hero,
.cvo-page .gallery-hero,
.news-detail-page .tcl-style-header,
.news-archive-page .tcl-style-header,
.search-page .tcl-style-header,
.rti-page .tcl-style-header {
	display: none !important;
}

/* Section tab — overlaps green hero (global, Photo Gallery) */
.tcl-page-subnav,
.tcl-gallery-subnav {
	background: transparent;
	margin: -2.25rem 0 0;
	padding: 0;
	position: relative;
	z-index: 2;
}

.tcl-page-subnav .tcl-page-hero__inner,
.tcl-gallery-subnav .tcl-page-hero__inner {
	padding-bottom: 0;
}

.tcl-page-subnav__list,
.tcl-gallery-subnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.35rem;
}

.tcl-page-subnav__list li span,
.tcl-gallery-subnav__list li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.15rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--tcl-type-p2-size);
	font-weight: var(--font-semibold);
	line-height: 1.2;
}

.tcl-page-subnav__list li span i,
.tcl-gallery-subnav__list li span i {
	font-size: 0.9em;
	line-height: 1;
	width: 1.125rem;
	text-align: center;
	flex-shrink: 0;
}

.tcl-page-subnav__list li.is-active span,
.tcl-gallery-subnav__list li.is-active span {
	color: var(--tcl-hero-green-dark);
	background: var(--tcl-inner-surface);
	border-radius: 10px 10px 0 0;
	border: 1px solid rgba(11, 65, 65, 0.14);
	border-bottom: 1px solid var(--tcl-inner-surface);
	box-shadow: 0 -2px 8px rgba(11, 65, 65, 0.06);
}

.tcl-faq-page,
.tcl-cv-norms-page,
.tcl-sitemap-page,
.search-page,
.rti-page,
.tcl-product-catalog,
.tcl-gallery-media,
.tcl-inner-page,
.about-page,
.board-page,
.tcl-policy-page,
main.tcl-inner-page,
#main-content.tcl-inner-page {
	background: var(--tcl-inner-surface);
}

/* Content shells below hero — direct children of main only (not the in-hero inner) */
.tcl-page-hero__inner.gallery-page-shell,
.tcl-page-hero__inner.product-catalog-shell,
.tcl-policy-page .tcl-policy-container,
main.tcl-inner-page > .tcl-page-hero__inner,
#main-content.tcl-inner-page > .tcl-page-hero__inner,
.help-page-wrap.tcl-page-hero__inner,
.tcl-faq-wrap.tcl-page-hero__inner,
.tcl-cv-norms-wrap.tcl-page-hero__inner,
.tcl-sitemap-wrap.tcl-page-hero__inner {
	padding-top: 0.85rem;
	padding-bottom: 3rem;
}

/* First content block below overlapping section tab */
main.tcl-inner-page > .tcl-page-subnav + *,
#main-content.tcl-inner-page > .tcl-page-subnav + *,
main.tcl-inner-page > .tcl-gallery-subnav + *,
#main-content.tcl-inner-page > .tcl-gallery-subnav + * {
	padding-top: 0.85rem;
}

.cvo-page .cvo-content-section,
.rti-page .rti-content-section,
.contact-page .contact-content,
#main-content.eoi-page .eoi-wrap,
.news-archive-page .news-archive-container,
.search-page .tcl-site-search,
.board-page .container.board-container,
.board-page .leadership-section.section-padding:first-of-type {
	padding-top: 0.85rem;
}

.tcl-gallery-media .gallery-single-meta-wrap {
	padding-top: 0.85rem;
	padding-bottom: 0.5rem;
}

.tcl-gallery-media .gallery-single-meta-wrap .gallery-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.tcl-gallery-media .gallery-single-meta-wrap .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	font-size: var(--tcl-type-p2-size);
}
