/* FIXED, ALWAYS-VISIBLE HEADER (Byrne / block themes) */
.site-header,
.wp-site-blocks > header,
.wp-block-template-part[area="header"],
header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: #D5B09C;
/* your Coffee colour */
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Push the page content down so it isn't hidden behind the fixed header */
body {
	padding-top: 96px;
/* tweak this to match your header height */
}

/* If you’re logged in (admin bar showing), drop the header a bit */
.admin-bar .site-header,
.admin-bar .wp-site-blocks > header,
.admin-bar .wp-block-template-part[area="header"],
.admin-bar header.wp-block-template-part {
	top: 32px;
}

/* Optional: menu link colours on the Coffee background */
header a {
	color: #4A3C31;
/* Deep Brown */
	text-decoration: none;
}

header a:hover {
	color: #C97B63;
/* Terracotta */
}

/* Menu link colours (default + hover) */
header .wp-block-navigation a,
.wp-block-navigation a:where(:not(.wp-element-button)) {
	color: #4A3C31 !important;
/* Deep Brown default */
	transition: color .2s ease-in-out;
}

header .wp-block-navigation a:hover,
.wp-block-navigation a:where(:not(.wp-element-button)):hover {
	color: #C97B63 !important;
/* Terracotta on hover */
/* Optional: active page link */
	color: #C97B63 !important;
/* Terracotta for current page */
}

/* Breathing room at the very left and right edges */
header .wp-block-site-logo {
	margin-left: 24px !important;
/* space before the logo */
}

header .wp-block-navigation {
	margin-right: 24px !important;
/* space after the menu */
}

/* ===== Mobile fixes ===== */
@media (max-width: 782px) {
	/* Make sure the page content clears the fixed header on phones */
	body {
		padding-top: 88px;
	/* increase to 96–110px if the title is still clipped */
	}
	
	/* Treat the first row inside the header as a flex row */
	.wp-site-blocks > header > .wp-block-group,
							  header.wp-block-template-part > .wp-block-group {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding-left: 16px !important;
	/* space before logo */
		padding-right: 16px !important;
	/* space after hamburger */
		box-sizing: border-box;
	}
	
	/* Keep the logo on the left */
	header .wp-block-site-logo {
		margin: 0 !important;
	}
	
	/* Keep the hamburger on the right */
	header .wp-block-navigation {
		margin: 0 0 0 auto !important;
	}
	
	/* Make sure the mobile menu panel opens below the fixed header */
	.wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		top: 88px;
	/* match body padding-top above */
		right: 0;
		left: 0;
		z-index: 9999;
	}
	
	/* If you see the WordPress admin bar on mobile, nudge things down a bit */
	.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
		top: 120px;
	/* 88 + approx 32px admin bar */
	}
}

/* Nudge burger menu inward on mobile */
@media (max-width: 782px) {
	header .wp-block-navigation__responsive-container-open {
		margin-right: 16px;
	/* adjust this number, e.g. 12–24px */
	}
}

/* Make featured images responsive only on mobile */
@media (max-width: 782px) {
	.single-post .wp-block-post-featured-image,
					  .single-post .wp-block-post-featured-image.alignwide,
					  .single-post .wp-block-post-featured-image.alignfull,
					  .single-post .wp-block-post-featured-image img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		object-fit: cover !important;
		display: block;
	}
}

/* Hide the Site Title only in the header */
header .wp-block-site-title,
header .wp-block-site-title a,
header .site-title {
	display: none !important;
}

/* Default button style */
.wp-block-button .wp-block-button__link,
.wp-element-button {
	background-color: #C97B63 !important;
/* Terracotta */
	color: #E9E6E4 !important;
/* Ivory text */
	transition: all .25s ease-in-out;
	border-radius: 6px;
}

/* Hover state */
.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: #EBCDC4 !important;
/* Blush */
	color: #C97B63 !important;
}

/* Home – Latest Posts: safe hover tint only (no card-wide link) */
.home .entry-wrapper {
	position: relative;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

/* Coffee hover overlay */
.home .entry-wrapper::after {
	content: "";
	position: absolute;
	background: rgba(213,176,156,0.22);
/* Coffee */
	opacity: 0;
	transition: opacity .15s ease;
	pointer-events: none;
	z-index: 1;
/* below text */
}

/* lift + tint on hover (desktop only) */
@media (hover:hover) {
	.home .entry-wrapper:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 18px rgba(0,0,0,.08);
	}
	
	.home .entry-wrapper:hover::after {
		opacity: 1;
	}
}

/* Musings only: hide any page title variants */
body.page-id-46 h1,
body.page-id-46 .wp-block-post-title,
body.page-id-46 .wp-block-query-title,
body.page-id-46 header.entry-header,
body.page-id-46 .page-header {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}
.entry-title, .post-title {
  display: block !important;
  visibility: visible !important;
}
.blog .wp-block-post-title,
.home .wp-block-post-title,
.archive .wp-block-post-title,
.entry-title,
.post-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}