/* 1. Make .site-brand the anchor and add a buffer zone for the menu */
.site-brand {
	position: relative !important;
	padding-right: 60px !important;
/* Creates an empty space on the right so text never touches the menu */
	width: 100% !important;
/* Ensures the container stretches the full width available */
}

/* 2. Anchor the navigation inside .site-brand */
.site-brand .wp-block-navigation {
	position: absolute !important;
	right: 15px !important;
/* Locks it to the right edge of .site-brand */
	top: 50% !important;
	transform: translateY(-50%) !important;
/* Perfectly centers it vertically */
	z-index: 99999 !important;
/* Forces it to the top layer */
	margin: 0 !important;
	display: block !important;
/* Fights any theme hidden rules */
}

/* 3. Force the specific hamburger button to stay on at 500px */
.site-brand .wp-block-navigation__responsive-container-open {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Remove heavy title background on single posts */
.single .wp-block-post-title,
.single-post .wp-block-post-title,
.single .wp-block-post-title a,
.single-post .wp-block-post-title a {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Remove background if title is wrapped in a group */
.single .wp-block-group:has(.wp-block-post-title),
.single-post .wp-block-group:has(.wp-block-post-title) {
	background: transparent !important;
}

/* Ensure post container never adds background */
.wp-block-post {
	background: transparent !important;
}

/* Archive / loop post titles: subtle structural card treatment */
.wp-block-post-template .wp-block-post-title {
	display: inline-block !important;
	background: rgba(11, 26, 42, 0.3) !important;
	border-left: 2px solid #5C6B7A !important;
	padding: 16px 6px 16px 10px !important;
	box-shadow: none !important;
	line-height: 1.15 !important;
}

/* Keep archive / loop title links clean */
.wp-block-post-template .wp-block-post-title a {
	display: inline !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Section heading style */
h2 {
	background: transparent !important;
	border-bottom: 1px solid #5C6B7A;
	padding-bottom: 8px;
}

/* Site title badge */
.wp-block-site-title a {
	display: inline-block;
	background: #0B1A2A;
	padding: 12px 24px;
}

/* Center the overlay menu block itself */
.wp-block-navigation__responsive-container-content {
	display: flex !important;
	justify-content: center !important;
	align-items: flex-start !important;
	width: 100% !important;
}

/* Make the nav list a centered column */
.wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

/* Center each item */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	width: auto !important;
	text-align: center !important;
}

/* Smaller type */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	font-size: 24px !important;
}

.entry-content h3.wp-block-heading {
	background: transparent !important;
	border-bottom: 1px solid #5C6B7A !important;
	padding: 0 0 8px !important;
}

/* Tilted Background Squares CSS 
body {
	overflow-x: hidden;
}*/
/* Top square
.wp-block-group.alignfull::before {
	content: "" !important;
	position: absolute;
	top: -120px;
	width: 68vw;
	max-width: 1200px;
	height: 520px;
	background: #2B3A4A !important;
	opacity: .4;
	transform: translateX(-50%) rotate(-22deg);
	pointer-events: none;
	z-index: 0;
	display: block !important;
}*/
/* Container setup
.wp-block-group.alignfull {
	position: relative !important;
	overflow: visible !important;
}

.wp-block-group.alignfull > * {
	position: relative;
	z-index: 1;
}

.wp-block-group.quadrat-site-footer {
	overflow: hidden !important;
}

.wp-block-group.quadrat-site-footer::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 90%;
	width: 500px;
	height: 400px;
	transform: translate(-65%, 220px) rotate(102deg);
	background: #2B3A4A;
	opacity: .6;
	pointer-events: none;
	z-index: 0;
	display: block !important;
}*/
/* Disable original Quadrat panels */
.wp-block-group::before,
.wp-block-group::after {
/*display: none !important;*/
	opacity: .2;
}

/*==================*/
/* Fix header logo shrinking on mobile */
@media (max-width: 768px) {
	.wp-block-site-logo {
		flex-shrink: 0 !important;
	}
	
	.wp-block-site-logo img {
		display: block !important;
		height: 40px !important;
		width: auto !important;
		max-width: none !important;
	}
	
	.wp-block-site-title {
		font-size: 18px !important;
		line-height: 1.2 !important;
	}
	
	.wp-block-site-tagline {
		display: none !important;
	}
}