/* BasicCode Layout Builder - frontend structural styles */

.blb-region {
	width: 100%;
}

.blb-row {
	display: flex;
	flex-wrap: nowrap; /* keep columns on one line; they shrink to absorb the gap */
	gap: 20px;
}

.blb-col {
	box-sizing: border-box;
	min-width: 0; /* allow columns to shrink to absorb the row gap (no wrap) */
}

.blb-widget + .blb-widget {
	margin-top: 12px;
}

/* Logo */
.blb-logo {
	text-decoration: none;
	color: inherit;
	display: inline-block;
}

.blb-logo img {
	display: block;
	max-height: 60px;
	width: auto;
}

/* Navigation */
.blb-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.blb-nav a {
	text-decoration: none;
	color: inherit;
}

.blb-nav-right ul {
	justify-content: flex-end;
}

.blb-nav-center ul {
	justify-content: center;
}

/* Text */
.blb-text {
	line-height: 1.6;
}

/* Dynamic page/post title.
   The element's Style options are applied as inline styles on the wrapper
   (.blb-widget-title). The inner <h1> inherits its typography from that wrapper
   so the element's settings win over the theme's global `h1 { … }` rule — a
   class selector here outranks the theme's bare element selector. The wrapper
   carries sensible heading defaults so an unstyled title still looks like one. */
.blb-widget-title {
	font-size: 1.8em;
	font-weight: 700;
	line-height: 1.2;
}

.blb-page-title {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-align: inherit;
	text-transform: inherit;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
	.blb-row {
		flex-direction: column;
	}
	.blb-col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	.blb-nav ul,
	.blb-nav-right ul,
	.blb-nav-center ul {
		justify-content: flex-start;
	}
}
