/* Heiwa / block theme mobile menu: keep submenus collapsed by default */
@media (max-width: 782px) {
	/* Make the opened mobile menu scroll, so About / Contact can still be reached */
	.wp-block-navigation__responsive-container.is-menu-open {
		overflow-y: auto;
		max-height: 100vh;
	}
	
	/* Hide all submenu panels by default inside the mobile overlay */
	.wp-block-navigation__responsive-container.is-menu-open 
	  .wp-block-navigation__submenu-container {
		display: none;
	}
	
	/* Show submenu only when its toggle is expanded */
	.wp-block-navigation__responsive-container.is-menu-open
	  .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-container,
	  .wp-block-navigation__responsive-container.is-menu-open
	  .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		display: block;
	}
}
/* Stack posts in a vertical list with uniform spacing */
.wp-block-post-template > li.wp-block-post {
  border-bottom: 1px dotted #8c8c8c; /* Dotted line divider */
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

/* Remove border from the last insight in the list */
.wp-block-post-template > li.wp-block-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Ensure image fills its column height neatly */
.wp-block-post-template .wp-block-post-featured-image {
  margin: 0;
}

.wp-block-post-template .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0px; /* Sharp architectural edges */
}

/* Typography alignment for text block */
.wp-block-post-template .wp-block-post-terms {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.wp-block-post-template .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Mobile Responsiveness: Stack image above text on small screens */
@media (max-width: 600px) {
  .wp-block-post-template .wp-block-columns {
    flex-wrap: wrap !important;
  }
  
  .wp-block-post-template .wp-block-column {
    flex-basis: 100% !important;
  }
}
/* 1. Set the card container as the boundary anchor */
.wp-block-post-template > li.wp-block-post {
  position: relative;
}

/* 2. Stretch the post title link over the entire card area */
.wp-block-post-title a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* 3. Keep category terms above the stretch overlay so they remain independently clickable */
.wp-block-post-terms a {
  position: relative;
  z-index: 2;
}

/* Optional: Add a subtle lift or image zoom effect on hover */
.wp-block-post-template > li.wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}
/* Provide vertical margins for custom blocks */
.direct-answer-snippet,
.key-takeaways-block,
.comparison-table,
blockquote {
  margin-bottom: 2rem;
}

/* Ensure headings and lists maintain proper spacing */
h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p, ul {
  margin-bottom: 1.25rem;
}

hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid #ddd;
}
.direct-answer-snippet,
.key-takeaways-block {
  white-space: pre-line; /* Converts raw text line breaks into visual breaks */
}