/* ==========================================================================
   NovaBP Post Hero Component Styles
   Matching Figma 276:7679 (Blog Detail Hero)
   ========================================================================== */

.nova-post-hero {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;

	/* Inline axis from the shared gutter token (style.css). The block axis stays
	   40px at every width: this band sits between the breadcrumbs and the
	   article, so its vertical space is the gap between two neighbours rather
	   than a section's own rhythm. */
	padding: 40px var(--nova-gutter-x);
	box-sizing: border-box;
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Shared content column. The section stays full-bleed so its background and
   padding span the viewport; each band inside is capped at the 1280px design
   width and centred. Applied to the direct children rather than an extra
   wrapper element so the markup (and the share-bar JS that queries it) is
   untouched. */
.nova-post-hero > * {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* --- Head: Category / Title / Meta --- */
.nova-post-hero__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}
.nova-post-hero__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 20px;
	border-radius: 100px;
	background-color: #F5F6F8;
	color: #021137;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
/* The Post Terms dynamic tag nests a link (or a bare span) in the pill. */
.nova-post-hero__category a {
	color: inherit;
	text-decoration: none;
}
.nova-post-hero__category > span {
	display: contents;
}
/* Doubled-up class: the Elementor kit styles headings as `.elementor-kit-N h1`,
   which outranks a single class and would otherwise impose the site H1
   (Lato, 48px, capitalize, tight tracking) on the Figma title. */
.nova-post-hero .nova-post-hero__title {
	width: 100%;
	max-width: 900px;
	margin: 0;
	color: #020F32;
	font-family: inherit;
	font-size: 52px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}
.nova-post-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #35415F;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	opacity: 0.7;
}
.nova-post-hero__meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #C2C6CF;
	opacity: 0.5;
	flex-shrink: 0;
}

/* --- Featured Image --- */
.nova-post-hero__media {
	position: relative;
	width: 100%;
	height: 460px;
	border-radius: 20px;
	overflow: hidden;
	background-color: #020E2F;
}
/* Doubled-up class again: Elementor ships `.elementor img { border: none;
   border-radius: 0; height: auto }`, which outranks a lone class. */
.nova-post-hero .nova-post-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Figma layers the navy behind the photo as a backdrop, not over it, so the
   tint stays off by default and is there to dial in per post. */
.nova-post-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: #020E2F;
	opacity: 0;
	pointer-events: none;
}

/* --- Info Bar: Author + Share --- */
.nova-post-hero__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
}
.nova-post-hero__author {
	display: flex;
	align-items: center;
	gap: 12px;
}
.nova-post-hero .nova-post-hero__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #FFFFFF;
	flex-shrink: 0;
}
.nova-post-hero__author-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nova-post-hero__author-name {
	margin: 0;
	color: #020F32;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.nova-post-hero__author-role {
	margin: 0;
	color: #35415F;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}
.nova-post-hero__share {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nova-post-hero__share-label {
	color: #35415F;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}
.nova-post-hero__share-list {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nova-post-hero__share-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background-color: #F5F6F8;
	color: #021137;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
/* The Copy Link item is a <button>, so strip the UA chrome the <a> siblings
   never had and keep the two visually identical. */
button.nova-post-hero__share-link {
	padding: 0;
	border: 0;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
/* Copy confirmation, driven by novabp-post-hero.js toggling `is-copied`.
   Four classes deep and repeating the `:hover` case on purpose: the pointer is
   by definition still on the button when this fires, and Elementor's own
   `.elementor-element-N .nova-post-hero__share-link:hover` rule from the colour
   controls would otherwise repaint the flash back to the hover navy. */
.nova-post-hero .nova-post-hero__share .nova-post-hero__share-link.is-copied,
.nova-post-hero .nova-post-hero__share .nova-post-hero__share-link.is-copied:hover {
	background-color: #09A500;
	color: #FFFFFF;
}
.nova-post-hero__share-link.is-copied::after {
	content: attr(data-nova-copied-label);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	padding: 6px 10px;
	border-radius: 6px;
	background-color: #021137;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
}
/* The live region carries the same confirmation to screen readers, so it needs
   to stay in the accessibility tree rather than be `display: none`. */
.nova-post-hero__share-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.nova-post-hero__share-link:hover,
.nova-post-hero__share-link:focus-visible {
	background-color: #021137;
	color: #FFFFFF;
}
.nova-post-hero__share-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.nova-post-hero__share-link i {
	font-size: 16px;
	line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.nova-post-hero .nova-post-hero__title {
		font-size: 40px;
	}
	.nova-post-hero__media {
		height: 360px;
	}
}
@media (max-width: 767px) {
	.nova-post-hero {
		padding-block: 24px;
		gap: 24px;
	}
	.nova-post-hero .nova-post-hero__title {
		font-size: 30px;
	}
	.nova-post-hero__media {
		height: 220px;
		border-radius: 12px;
	}
	.nova-post-hero__bar {
		flex-wrap: wrap;
	}
}
