/**
 * Flavinto: tighten vertical rhythm on posts, hide empty hero slot, soften ad gap.
 */

/* Native wheel / trackpad scrolling: avoid CSS smooth-scroll (often feels slower than browser momentum) */
html {
	scroll-behavior: auto;
}

/*
 * Single posts: never show the theme’s auto featured-image band (duplicate of in-content images).
 * CSS backup for full-page cache; PHP also clears this in flavinto-bloghash-tweaks.php.
 */
body.single-post .bloghash-article .post-thumb.entry-media.thumbnail {
	display: none !important;
}

/* Remove dead air between site header and post content */
.single-post #main {
	margin-top: 0 !important;
}

.single-post #main > .bloghash-container {
	padding-top: 2rem !important;
	padding-bottom: 3rem;
	/* Keep primary + sidebar tops aligned (stretch can hide inner offset) */
	align-items: flex-start !important;
}

@media (min-width: 992px) {
	.single-post #main > .bloghash-container {
		padding-top: 2.75rem !important;
	}
}

/*
 * BlogHash "blog image wrap" adds margin-top to #content.site-content on singles
 * when a featured image exists—even if the theme thumbnail is hidden—so the post
 * card starts lower than the sidebar. Remove that gap so both columns line up.
 */
.bloghash-layout__boxed-separated.bloghash-blog-image-wrap.single-post #content.site-content {
	margin-top: 0 !important;
}

.single-post.bloghash-layout__boxed-separated #primary #content.site-content {
	margin-top: 0 !important;
}

/* Featured image block: less float under the header */
.single-post .bloghash-article > .post-thumb.entry-media {
	margin-top: 0;
	margin-bottom: 1.75rem;
}

.single-post .bloghash-article > .post-category {
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.single-post .bloghash-article > .entry-header {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.single-post .bloghash-article > .entry-meta {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

/* Theme sometimes leaves an empty #hero node — collapse it */
#hero:empty {
	display: none !important;
	min-height: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

/* Header: hide social + dark mode + subscribe CTA if anything still outputs them */
.bloghash-header-widgets .bloghash-header-widget__socials,
.bloghash-header-widgets .bloghash-social-nav,
.bloghash-header-widgets .bloghash-darkmode,
.bloghash-header-widgets .bloghash-header-widget__button {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Header layout 1: 3-column grid — logo left, primary nav centered, widgets right
   ------------------------------------------------------------------------- */
@media (min-width: 992px) {
	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container.bloghash-header-container {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 0.75rem 1.25rem;
		flex-wrap: unset !important;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-logo {
		grid-column: 1;
		justify-self: start;
		flex: unset !important;
		min-width: max-content;
		max-width: none;
		overflow: visible;
		margin-right: 0 !important;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-logo .site-title a {
		white-space: nowrap;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-logo a img {
		max-width: min(260px, 36vw);
		height: auto;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav {
		grid-column: 2;
		justify-self: center;
		flex: unset !important;
		min-width: 0;
		max-width: min(72vw, 58rem);
		overflow: visible;
		display: flex;
		justify-content: center;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul {
		flex-wrap: nowrap !important;
		justify-content: center !important;
		align-items: center;
		column-gap: 0;
		row-gap: 0.35rem;
		width: max-content;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li {
		margin-left: 0 !important;
	}

	/* Soft “pill” hit area + hover (li is flex; ::after = divider after each link) */
	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li > a {
		padding: 0.55rem 1.15rem;
		border-radius: 0.55rem;
		white-space: nowrap;
		transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li > a:hover,
	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li > a:focus {
		background: rgba(27, 143, 110, 0.08);
		box-shadow: 0 0 0 1px rgba(27, 143, 110, 0.06);
	}

	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li.hovered > a,
	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li.current-menu-item > a {
		background: rgba(27, 143, 110, 0.06);
	}

	/* Gradient hairline between items (mint highlight, fades top/bottom) */
	.bloghash-header-layout-1 #bloghash-header-inner > .bloghash-container .bloghash-nav > ul > li:not(:last-child)::after {
		content: "";
		display: block;
		width: 1px;
		height: 1.5rem;
		margin-left: 0.35rem;
		flex-shrink: 0;
		align-self: center;
		background: linear-gradient(
			180deg,
			rgba(27, 143, 110, 0) 0%,
			rgba(27, 143, 110, 0.14) 18%,
			rgba(94, 228, 200, 0.55) 50%,
			rgba(27, 143, 110, 0.14) 82%,
			rgba(27, 143, 110, 0) 100%
		);
		border-radius: 1px;
		box-shadow: 0 0 14px rgba(94, 228, 200, 0.12);
		opacity: 0.95;
		pointer-events: none;
	}

	#bloghash-header-inner > .bloghash-container .bloghash-header-widgets {
		grid-column: 3;
		justify-self: end;
		flex: unset !important;
		flex-shrink: 0 !important;
		flex-wrap: nowrap !important;
		margin-left: 0;
	}
}

/* Animated gradient site title (text lives inside .site-title > a) */
.bloghash-logo .site-title {
	margin: 0;
	padding: 0;
	line-height: 1.2;
}

/* Shared Flavinto wordmark gradient (header link + footer name + dev credit) */
.bloghash-logo .site-title a,
#bloghash-copyright .flavinto-footer-wordmark,
#bloghash-copyright .flavinto-dev-credit,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit {
	display: inline-block;
	background: linear-gradient(
		110deg,
		#0d4a3a 0%,
		#1b8f6e 22%,
		#5ee4c0 45%,
		#1b8f6e 68%,
		#0a3d30 100%
	) !important;
	background-size: 220% auto;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	animation: flavinto-title-gradient 10s linear infinite;
	transition: transform 0.35s ease, filter 0.35s ease;
}

/* Footer only: parent sets white + text-shadow — strip for gradient text (and avoid backdrop bugs on ancestor) */
#bloghash-copyright .flavinto-footer-wordmark,
#bloghash-copyright .flavinto-dev-credit,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit {
	text-shadow: none !important;
}

/* Link-wrapped wordmarks: keep gradient (Customizer link color would paint them white) */
#bloghash-copyright a .flavinto-footer-wordmark,
#bloghash-copyright a .flavinto-dev-credit {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

#bloghash-copyright a:hover .flavinto-footer-wordmark,
#bloghash-copyright a:hover .flavinto-dev-credit,
#bloghash-copyright a:focus .flavinto-footer-wordmark,
#bloghash-copyright a:focus .flavinto-dev-credit {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

.bloghash-logo .site-title a:hover,
.bloghash-logo .site-title a:focus,
#bloghash-copyright .flavinto-footer-wordmark:hover,
#bloghash-copyright .flavinto-footer-wordmark:focus,
#bloghash-copyright .flavinto-dev-credit:hover,
#bloghash-copyright .flavinto-dev-credit:focus,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark:hover,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark:focus,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit:hover,
#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit:focus {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.bloghash-logo .site-title a,
	#bloghash-copyright .flavinto-footer-wordmark,
	#bloghash-copyright .flavinto-dev-credit,
	#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark,
	#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit,
	#bloghash-header-inner {
		animation: none !important;
		transition: none !important;
	}

	#bloghash-copyright .flavinto-footer-wordmark,
	#bloghash-copyright .flavinto-dev-credit,
	#bloghash-copyright .bloghash-copyright-widget__text .flavinto-footer-wordmark,
	#bloghash-copyright .bloghash-copyright-widget__text .flavinto-dev-credit {
		background-position: 45% 50%;
	}
}

@keyframes flavinto-title-gradient {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 200% 50%;
	}
}

/* Subtle header bar polish */
#bloghash-header-inner {
	animation: flavinto-header-in 0.65s ease-out both;
}

@keyframes flavinto-header-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Footer “Flavinto” — typography to match header wordmark weight */
#bloghash-copyright .flavinto-footer-wordmark {
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Copyright developer line — gradient shared above; spacing only */
#bloghash-copyright .flavinto-dev-credit {
	margin-left: 0.35rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

@media (max-width: 767px) {
	#bloghash-copyright .flavinto-dev-credit {
		display: block;
		margin: 0.5rem 0 0;
	}
}

/* -------------------------------------------------------------------------
   Footer palette: light editorial — warm paper, white cards, terracotta accent
   ------------------------------------------------------------------------- */
:root {
	--flavinto-footer-surface: #faf8f5;
	--flavinto-footer-story-bg: linear-gradient(180deg, #fffefb 0%, #f7f2ec 45%, #f2ebe3 100%);
	/* Copyright row uses dedicated glass block below (not this var). */
	--flavinto-copyright-glass-shine: rgba(255, 255, 255, 0.14);
	--flavinto-footer-mint: #b54a32;
	--flavinto-footer-mint-soft: #8f4a3c;
	--flavinto-footer-glow: rgba(181, 74, 50, 0.12);
	--flavinto-footer-border: rgba(42, 38, 36, 0.09);
	--flavinto-footer-ink: #2a2624;
	--flavinto-footer-muted: #6b6560;
	--flavinto-ink: #2a2624;
}

#bloghash-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--flavinto-footer-surface) !important;
	border-top: 1px solid var(--flavinto-footer-border) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#bloghash-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 100% 70% at 50% -20%, rgba(255, 255, 255, 0.95) 0%, transparent 58%),
		linear-gradient(168deg, #fffcf9 0%, #faf8f5 38%, #f4ece4 100%);
	background-size: 100% 100%;
	animation: none;
	opacity: 1;
	z-index: 0;
	pointer-events: none;
}

#bloghash-footer > .bloghash-container {
	position: relative;
	z-index: 1;
}

#bloghash-footer .bloghash-footer-column .widget-title,
#bloghash-footer .widget-title,
#bloghash-footer .wp-block-heading {
	color: var(--flavinto-footer-ink) !important;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.3;
	margin-bottom: 1rem;
}

#bloghash-footer .no-widget-text,
#bloghash-footer a {
	color: var(--flavinto-footer-muted) !important;
}

#bloghash-footer a:hover,
#bloghash-footer a:focus {
	color: var(--flavinto-footer-mint) !important;
}

/* Footer widget row: one horizontal row from tablet up (theme col-sm-6 wraps at 600–781px) */
#bloghash-footer #bloghash-footer-widgets.bloghash-flex-row {
	gap: 1.5rem 2rem;
	align-items: flex-start;
}

/* From “sm” up, theme uses col-sm-6 (50%) until md — force one row + equal columns */
@media (min-width: 600px) {
	#bloghash-footer #bloghash-footer-widgets.bloghash-flex-row {
		flex-wrap: nowrap !important;
	}

	#bloghash-footer #bloghash-footer-widgets.bloghash-flex-row > .bloghash-footer-column {
		flex: 1 1 0 !important;
		max-width: none !important;
		width: auto !important;
		min-width: 0;
	}
}

#bloghash-footer .bloghash-footer-column {
	padding-top: 4.5rem !important;
	padding-bottom: 4.5rem !important;
}

#bloghash-footer .bloghash-footer-column .bloghash-widget {
	margin-bottom: 2.5rem !important;
}

@media (min-width: 992px) {
	#bloghash-footer .bloghash-footer-column:not(:first-child) {
		border-left: 1px solid var(--flavinto-footer-border);
		padding-left: 2.25rem;
		margin-left: 0;
	}
}

/* About / intro copy */
#bloghash-footer .widget_text .textwidget,
#bloghash-footer .wp-block-column > p,
#bloghash-footer .no-widget-text {
	color: var(--flavinto-footer-muted) !important;
	font-size: 1.05rem;
	line-height: 1.65;
}

/* Categories — simple vertical link stack (BlogHash-style middle column) */
#bloghash-footer .widget_categories ul,
#bloghash-footer .wp-block-categories-list,
#bloghash-footer .wp-block-page-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#bloghash-footer .widget_categories ul li,
#bloghash-footer .wp-block-categories-list li,
#bloghash-footer .wp-block-page-list li {
	margin: 0 0 0.55rem;
	padding: 0;
	border: none;
}

#bloghash-footer .widget_categories ul a,
#bloghash-footer .wp-block-categories-list a,
#bloghash-footer .wp-block-page-list a {
	display: inline-block;
	padding: 0.2rem 0;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--flavinto-footer-ink) !important;
	text-decoration: none;
	border-radius: 0.25rem;
}

#bloghash-footer .widget_categories ul a:hover,
#bloghash-footer .wp-block-categories-list a:hover,
#bloghash-footer .wp-block-page-list a:hover {
	color: var(--flavinto-footer-mint) !important;
	padding-left: 0.15rem;
}

/* Social menu in footer — pill grid (optional widget) */
#bloghash-footer .bloghash-social-nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
	align-items: center;
}

#bloghash-footer .bloghash-social-nav > ul > li {
	margin: 0 !important;
	list-style: none;
}

#bloghash-footer .bloghash-social-nav > ul > li > a {
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92) !important;
	border: 1px solid var(--flavinto-footer-border);
	color: var(--flavinto-footer-ink) !important;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 2px 12px rgba(42, 38, 36, 0.05);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#bloghash-footer .bloghash-social-nav > ul > li > a:hover,
#bloghash-footer .bloghash-social-nav > ul > li > a:focus {
	background: #fff !important;
	border-color: rgba(181, 74, 50, 0.28);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(42, 38, 36, 0.08);
	color: var(--flavinto-footer-mint) !important;
}

@media (max-width: 960px) {
	#bloghash-footer .bloghash-footer-column {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	#bloghash-footer .bloghash-footer-column:not(:first-child) {
		border-left: none;
		padding-left: 0;
	}
}

/* Motivational band (between widget area and copyright) */
.flavinto-footer-story {
	position: relative;
	overflow: hidden;
	background: var(--flavinto-footer-story-bg);
	border-top: 1px solid var(--flavinto-footer-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 -12px 40px rgba(42, 38, 36, 0.04);
}

.flavinto-footer-story::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 52%),
		radial-gradient(ellipse 45% 35% at 92% 88%, rgba(181, 74, 50, 0.06) 0%, transparent 55%);
	pointer-events: none;
}

.flavinto-footer-story::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(48rem, 92%);
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(181, 74, 50, 0.25) 20%,
		rgba(212, 160, 130, 0.45) 50%,
		rgba(181, 74, 50, 0.25) 80%,
		transparent
	);
	opacity: 0.95;
	pointer-events: none;
	filter: blur(0.5px);
}

.flavinto-footer-story__inner {
	position: relative;
	z-index: 1;
	max-width: 58rem;
	margin: 0 auto;
	padding: 3rem 1.5rem 3.5rem;
	text-align: center;
}

/* Icon row */
.flavinto-footer-story__icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1.25rem 1.75rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.flavinto-footer-story__icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	max-width: 7.5rem;
	text-align: center;
}

.flavinto-footer-story__icon-ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	color: var(--flavinto-footer-mint);
	background: linear-gradient(160deg, #ffffff 0%, #faf8f6 100%);
	border: 1px solid var(--flavinto-footer-border);
	box-shadow: 0 6px 28px rgba(42, 38, 36, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.flavinto-footer-story__icon-item:hover .flavinto-footer-story__icon-ring,
.flavinto-footer-story__icon-item:focus-within .flavinto-footer-story__icon-ring {
	transform: translateY(-3px);
	border-color: rgba(181, 74, 50, 0.35);
	box-shadow: 0 12px 36px rgba(42, 38, 36, 0.1), 0 0 0 1px rgba(181, 74, 50, 0.08);
	color: var(--flavinto-footer-mint-soft);
}

.flavinto-footer-story__icon-ring svg {
	display: block;
	width: 1.65rem;
	height: 1.65rem;
	flex-shrink: 0;
	fill: currentColor;
}

.flavinto-footer-story__icon-label {
	font-size: clamp(1.05rem, 1.8vw, 1.15rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--flavinto-footer-muted);
	letter-spacing: 0.02em;
}

.flavinto-footer-story__eyebrow {
	margin: 0 0 1.1rem;
	font-size: clamp(0.95rem, 2.4vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--flavinto-footer-mint);
	text-shadow: none;
	animation: flavinto-footer-eyebrow-pulse 8s ease-in-out infinite;
}

@keyframes flavinto-footer-eyebrow-pulse {
	0%,
	100% {
		opacity: 0.88;
		letter-spacing: 0.2em;
	}
	50% {
		opacity: 1;
		letter-spacing: 0.22em;
	}
}

.flavinto-footer-story__subhead {
	margin: 0 0 1.5rem;
	font-size: clamp(1.2rem, 2.8vw, 1.55rem);
	line-height: 1.45;
	font-weight: 600;
	color: var(--flavinto-footer-ink);
	text-wrap: balance;
	text-shadow: none;
}

.flavinto-footer-story__subhead em {
	font-style: italic;
	color: var(--flavinto-footer-mint-soft);
	font-weight: 600;
}

.flavinto-footer-story__text {
	margin: 0 0 1.25rem;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	line-height: 1.72;
	font-weight: 500;
	color: var(--flavinto-footer-muted);
	text-wrap: balance;
	text-shadow: none;
}

.flavinto-footer-story__text:last-child {
	margin-bottom: 0;
}

.flavinto-footer-story__text--secondary {
	font-size: clamp(1.05rem, 2.1vw, 1.28rem);
	line-height: 1.7;
	font-weight: 400;
	color: rgba(107, 101, 96, 0.92);
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.flavinto-footer-story__icons {
		gap: 1rem 1.25rem;
	}

	.flavinto-footer-story__icon-item {
		flex: 1 1 calc(50% - 1rem);
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flavinto-footer-story__eyebrow {
		animation: none;
	}

	.flavinto-footer-story__icon-item:hover .flavinto-footer-story__icon-ring,
	.flavinto-footer-story__icon-item:focus-within .flavinto-footer-story__icon-ring {
		transform: none;
	}
}

/*
 * Copyright bar — full row dark crystal / glassmorphism
 * Backdrop-filter MUST live on ::before, not on #bloghash-copyright: it breaks
 * background-clip: text (moving green gradient) on “Flavinto” / “Developed by Yasir”.
 */
#bloghash-copyright {
	position: relative;
	z-index: 2;
	isolation: isolate;
	overflow: hidden;
	background: transparent !important;
	background-color: transparent !important;
	border-top: 1px solid var(--flavinto-copyright-glass-shine) !important;
	border-bottom: none !important;
	box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.12) !important;
}

#bloghash-copyright::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(
			118deg,
			rgba(255, 255, 255, 0.1) 0%,
			transparent 35%,
			transparent 55%,
			rgba(255, 255, 255, 0.05) 85%,
			rgba(255, 255, 255, 0.08) 100%
		),
		linear-gradient(
			168deg,
			rgba(52, 48, 58, 0.52) 0%,
			rgba(32, 28, 38, 0.68) 42%,
			rgba(16, 14, 22, 0.76) 100%
		);
	background-color: rgba(24, 22, 30, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	backdrop-filter: blur(22px) saturate(1.4);
}

#bloghash-copyright::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.45) 22%,
		rgba(255, 255, 255, 0.65) 50%,
		rgba(255, 255, 255, 0.45) 78%,
		transparent 100%
	);
	opacity: 0.55;
}

#bloghash-copyright > .bloghash-container {
	position: relative;
	z-index: 2;
}

#bloghash-copyright,
#bloghash-copyright a {
	color: rgba(255, 255, 255, 0.9) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#bloghash-copyright a:hover,
#bloghash-copyright a:focus {
	color: #f5d0c5 !important;
	text-shadow: 0 0 18px rgba(245, 208, 197, 0.35);
}

@media (prefers-reduced-transparency: reduce) {
	#bloghash-copyright::before {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: linear-gradient(180deg, #2a2630 0%, #1a1822 100%);
		background-color: #1e1c26;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
	}
}

/* Back to top — terracotta + charcoal hover (matches footer accent, no green) */
#bloghash-scroll-top::before,
#bloghash-scroll-top:before {
	background-color: var(--flavinto-footer-mint) !important;
	border-color: rgba(42, 38, 36, 0.12) !important;
}

#bloghash-scroll-top:hover::before,
#bloghash-scroll-top:hover:before {
	background-color: var(--flavinto-footer-ink) !important;
	box-shadow: 0 0.4rem 1rem rgba(42, 38, 36, 0.18) !important;
}

#bloghash-scroll-top svg {
	fill: #fff !important;
}

#bloghash-scroll-top:hover svg {
	fill: #fff !important;
}

/* Section labels: warm accent bar (latest posts, categories, etc.) */
#bloghash-footer .flavinto-footer-heading,
#bloghash-footer .widget:has(.wp-block-latest-posts) > .widget-title,
#bloghash-footer .widget_categories .widget-title,
#bloghash-footer .wp-block-column:has(> .wp-block-latest-posts) > .wp-block-heading:first-child,
#bloghash-footer .wp-block-column:has(> .wp-block-categories) > .wp-block-heading:first-child {
	margin: 0 0 1.1rem;
	padding: 0 0 0.65rem;
	border-bottom: none;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--flavinto-footer-mint-soft) !important;
	position: relative;
}

#bloghash-footer .flavinto-footer-heading::after,
#bloghash-footer .widget:has(.wp-block-latest-posts) > .widget-title::after,
#bloghash-footer .widget_categories .widget-title::after,
#bloghash-footer .wp-block-column:has(> .wp-block-latest-posts) > .wp-block-heading:first-child::after,
#bloghash-footer .wp-block-column:has(> .wp-block-categories) > .wp-block-heading:first-child::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.25rem;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--flavinto-footer-mint), rgba(212, 160, 130, 0.65));
	opacity: 0.95;
}

#bloghash-footer .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

#bloghash-footer .wp-block-latest-posts li {
	display: grid;
	grid-template-columns: 3.6rem minmax(0, 1fr);
	column-gap: 0.85rem;
	row-gap: 0.25rem;
	align-items: start;
	margin: 0 0 0.7rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.65rem;
	background: #fff;
	border: 1px solid var(--flavinto-footer-border);
	box-shadow: 0 4px 22px rgba(42, 38, 36, 0.06);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#bloghash-footer .wp-block-latest-posts li:hover {
	background: #fffefb;
	border-color: rgba(181, 74, 50, 0.18);
	box-shadow: 0 10px 32px rgba(42, 38, 36, 0.09);
	transform: translateY(-1px);
}

#bloghash-footer .wp-block-latest-posts li:last-child {
	margin-bottom: 0;
}

#bloghash-footer .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)) {
	grid-template-columns: minmax(0, 1fr);
}

#bloghash-footer .wp-block-latest-posts__featured-image {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	margin: 0;
	overflow: hidden;
	border-radius: 0.5rem;
	box-shadow: 0 2px 10px rgba(42, 38, 36, 0.08);
	width: 3.6rem;
	flex: unset;
}

#bloghash-footer .wp-block-latest-posts__post-title,
#bloghash-footer .wp-block-latest-posts__post-author,
#bloghash-footer .wp-block-latest-posts__post-date {
	grid-column: 2;
}

#bloghash-footer .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-title,
#bloghash-footer .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-author,
#bloghash-footer .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-date {
	grid-column: 1;
}

#bloghash-footer .wp-block-latest-posts__post-excerpt {
	grid-column: 2;
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--flavinto-footer-muted);
}

#bloghash-footer .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-excerpt {
	grid-column: 1;
}

#bloghash-footer .wp-block-latest-posts__featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

#bloghash-footer .wp-block-latest-posts__post-title {
	margin: 0;
	display: block;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.38;
	overflow-wrap: anywhere;
}

/* Core outputs the title as <a class="wp-block-latest-posts__post-title"> */
#bloghash-footer a.wp-block-latest-posts__post-title {
	color: var(--flavinto-footer-ink) !important;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

#bloghash-footer a.wp-block-latest-posts__post-title:hover,
#bloghash-footer a.wp-block-latest-posts__post-title:focus {
	color: var(--flavinto-footer-mint) !important;
	opacity: 0.98;
}

#bloghash-footer .wp-block-latest-posts__post-author {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 500;
	color: rgba(107, 101, 96, 0.88);
}

#bloghash-footer .wp-block-latest-posts__post-date {
	margin: 0;
	padding-top: 0;
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(107, 101, 96, 0.82);
	text-align: left;
	justify-self: start;
	align-self: start;
	white-space: normal;
}

/* Tighter copyright bar (less empty band below text) */
#bloghash-copyright > .bloghash-container > .bloghash-flex-row {
	padding-top: 1.35rem !important;
	padding-bottom: 1.1rem !important;
}

#bloghash-copyright > .bloghash-container > .bloghash-flex-row > div {
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
}

/* -------------------------------------------------------------------------
   Global: entry meta row — date/author/icons on one optical baseline
   (theme uses line-height 1.5 on .posted-on only, which sits “low”)
   ------------------------------------------------------------------------- */
.entry-meta .entry-meta-elements > span.posted-on {
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* Icon + date share one flex box (markup puts SVG inside <time>) */
.entry-meta .posted-on time {
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	vertical-align: middle;
}

.entry-meta .posted-on time .bloghash-icon,
.entry-meta .posted-on time svg {
	flex-shrink: 0;
	display: block;
}

.entry-meta .bloghash-icon {
	vertical-align: middle;
	flex-shrink: 0;
	align-self: center;
}

.entry-meta .post-author .author-avatar {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.entry-meta .post-author .author-avatar img {
	display: block;
	vertical-align: middle;
}

.entry-meta .entry-meta-elements > span.edit-link {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}

.ticker-slide-item .slide-inner .entry-meta span.posted-on {
	line-height: 1.2;
}

/* Top Stories: one horizontal line (title + date), fits fixed ticker height */
.ticker-slide-item .slide-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.55rem 0.85rem;
	min-width: 0;
}

.ticker-slide-item .slide-inner h6 {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ticker-slide-item .slide-inner .entry-meta {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
}

.ticker-slide-item .slide-inner .entry-meta .entry-meta-elements {
	flex-wrap: nowrap;
	align-items: center;
}

/* -------------------------------------------------------------------------
   Homepage hero (horizontal slider): less vertical “float”, tighter rhythm,
   calmer side padding, light card polish
   ------------------------------------------------------------------------- */
/* Stretch both columns; avoid vertically centering the text block (theme default), which leaves dead space */
#hero .bloghash-blog-horizontal .bloghash-article:not(.format-quote) .bloghash-blog-entry-wrapper {
	align-items: stretch;
}

@media (min-width: 869px) {
	/* Was padding-right-only 5rem — balance L/R for symmetry */
	.bloghash-layout__boxed-separated #hero .bloghash-hero-slider.bloghash-blog-horizontal .bloghash-article {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

#hero .bloghash-blog-horizontal .bloghash-entry-content-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1 1 auto;
	min-height: 0;
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
	box-sizing: border-box;
}

#hero .bloghash-blog-horizontal .post-category {
	margin-bottom: 0.5rem;
}

#hero .bloghash-blog-horizontal .entry-header {
	margin-top: 0;
	margin-bottom: 0;
}

#hero .bloghash-blog-horizontal .entry-header .entry-title {
	margin-top: 0;
	margin-bottom: 0.35rem;
	line-height: 1.28;
}

#hero .bloghash-blog-horizontal .entry-summary {
	margin: 0.45rem 0 0.75rem;
	flex: 0 1 auto;
}

#hero .bloghash-blog-horizontal .entry-footer {
	margin: 0.35rem 0 0.65rem;
}

#hero .bloghash-blog-horizontal .entry-meta {
	margin-top: auto;
	padding-top: 0.65rem;
}

#hero .bloghash-horizontal-slider .bloghash-container__wide .bloghash-swiper,
#hero .bloghash-horizontal-slider .bloghash-hero-container .bloghash-swiper {
	padding-left: clamp(1rem, 4vw, 3rem);
	padding-right: clamp(1rem, 4vw, 3rem);
}

#hero .bloghash-blog-horizontal .bloghash-article {
	border-radius: var(--bloghash-radius, 2rem);
	box-shadow: 0 14px 42px -18px rgba(14, 74, 61, 0.22);
	border: 1px solid rgba(27, 143, 110, 0.14);
	overflow: hidden;
}

#hero .bloghash-blog-horizontal .entry-meta .entry-meta-elements {
	gap: 0.15rem 0;
}

#hero .bloghash-blog-horizontal .entry-header .entry-title a {
	color: var(--flavinto-ink);
}

#hero .bloghash-blog-horizontal .entry-header .entry-title a:hover,
#hero .bloghash-blog-horizontal .entry-header .entry-title a:focus {
	color: var(--bloghash-primary, #1b8f6e);
}

/* Hero image: theme forces min-height 30rem — shorten so text column isn’t dwarfed */
#hero .bloghash-blog-horizontal .bloghash-article .entry-media .entry-image-link,
#hero .bloghash-blog-horizontal .bloghash-article .entry-media img {
	min-height: 0 !important;
	max-height: min(32rem, 52vh);
}

#hero .bloghash-blog-horizontal .bloghash-article .entry-media .entry-image-link {
	display: block;
	overflow: hidden;
	border-radius: inherit;
}

#hero .bloghash-blog-horizontal .bloghash-article .entry-media img {
	width: 100%;
	height: min(32rem, 52vh);
	object-fit: cover;
	display: block;
}

@media (max-width: 868px) {
	#hero .bloghash-blog-horizontal .bloghash-article .entry-media img,
	#hero .bloghash-blog-horizontal .bloghash-article .entry-media .entry-image-link {
		max-height: none;
	}

	#hero .bloghash-blog-horizontal .bloghash-article .entry-media img {
		height: auto;
		min-height: 20rem !important;
	}
}

/* -------------------------------------------------------------------------
   PYML post cards: same visual height for titles → meta row lines up across columns
   ------------------------------------------------------------------------- */
.bloghash-pyml .bloghash-post-content .entry-header .entry-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	line-height: 1.32;
	/* Match Customizer #pyml title size (~2rem) so rows align across cards */
	min-height: calc(3 * 1.32 * 2rem);
	margin-bottom: 0.35rem;
}

.bloghash-pyml .bloghash-post-content .entry-meta {
	margin-top: 0.35rem;
}

.bloghash-pyml .bloghash-post-content .entry-meta .entry-meta-elements {
	align-items: center;
	flex-wrap: nowrap;
}

@media (max-width: 599px) {
	.bloghash-pyml .bloghash-post-content .entry-meta .entry-meta-elements {
		flex-wrap: wrap;
	}
}

/* -------------------------------------------------------------------------
   Category pills: one colour per category (classes flavinto-cat--{slug})
   ------------------------------------------------------------------------- */
.post-category .cat-links a.flavinto-cat {
	font-weight: 600;
	border: 1px solid transparent;
	box-shadow: 0 1px 2px rgba(14, 74, 61, 0.08);
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post-category .cat-links a.flavinto-cat:hover,
.post-category .cat-links a.flavinto-cat:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(14, 74, 61, 0.15);
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--home-decor-ideas {
	background-color: #0e4a3d !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--diy-crafts {
	background-color: #1b8f6e !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--organization-storage {
	background-color: #115e59 !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--gifts-celebrations {
	background-color: #a61e4d !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--wall-art-signs {
	background-color: #4338ca !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--paint-furniture {
	background-color: #b45309 !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--room-guides {
	background-color: #0e7490 !important;
	color: #fff !important;
}

.post-category .cat-links a.flavinto-cat--seasonal-diy {
	background-color: #166534 !important;
	color: #fff !important;
}

/* Image overlay cards (PYML etc.): same palette, slightly stronger edge */
.bloghash-post-item.style-1 .post-category .cat-links a.flavinto-cat {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	border-color: rgba(255, 255, 255, 0.2);
}

.bloghash-post-item.style-1 .post-category .cat-links a.flavinto-cat:hover,
.bloghash-post-item.style-1 .post-category .cat-links a.flavinto-cat:focus,
.featured-one .bloghash-post-item.style-1 .post-category .cat-links a.flavinto-cat:hover,
.featured-one .bloghash-post-item.style-1 .post-category .cat-links a.flavinto-cat:focus {
	color: #fff !important;
	filter: brightness(1.12);
}

/* -------------------------------------------------------------------------
   Blog cards (#main articles): animated underline only on the title link,
   not when hovering the image/excerpt (theme ties underline to whole card).
   ------------------------------------------------------------------------- */
#main .bloghash-article:hover .entry-header .entry-title a:not(:hover):not(:focus),
#main .bloghash-article:focus-within .entry-header .entry-title a:not(:hover):not(:focus) {
	background-size: 0 1px !important;
	color: inherit !important;
}

#main .bloghash-article .entry-header .entry-title a:hover,
#main .bloghash-article .entry-header .entry-title a:focus-visible,
#main .bloghash-article .entry-header .entry-title a:focus {
	color: var(--bloghash-primary, #1b8f6e) !important;
	background-size: 100% 1px !important;
}
