/*
 * Kilagbe header search bar on service pages -- placement-safety rules
 * only. The real design (colors, border, radius, typography) comes
 * from post 512's own generated Elementor CSS file, enqueued alongside
 * this one in kilagbe-header-search.php. Scoped to body.kgsb-page,
 * the body class kilagbe-service-sidebar.php already adds on exactly
 * the approved pages -- never applies anywhere else.
 */

@media (min-width: 1025px) {
	/* Mirrors the Homepage Header template's own desktop behaviour: with
	   the sidebar covering navigation, the top-row nav text links give
	   their space to the search bar. Tablet/mobile (where the sidebar is
	   an off-canvas drawer, not a persistent rail) are untouched -- the
	   existing header hamburger panel still shows these links there. */
	body.kgsb-page .elementor-location-header .elementor-element-hdr0021 {
		display: none !important;
	}

	body.kgsb-page .kilagbe-header-search-wrap {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
	}

	body.kgsb-page .kilagbe-header-search-wrap .elementor-element-hsr0001 {
		width: 100%;
	}
}

@media (max-width: 1024px) {
	/* Same as the Homepage Header template: this bar is desktop-only. */
	body.kgsb-page .kilagbe-header-search-wrap {
		display: none !important;
	}
}

/*
 * 2026-10-29: two service-page-only visual corrections, kept out of
 * kilagbe-homepage-sidebar.php's shared body.home/body.kgsb-page rules
 * so the approved Homepage header is not touched by either change.
 */

/* Slightly smaller logo on service pages only (~13% narrower: 90px -> 78px
   desktop, 80px -> 70px tablet, 72px -> 63px mobile). Same logo image,
   same aspect ratio (height is auto) -- only the rendered width changes,
   and only on these pages; the Homepage's own logo size is untouched. */
@media (min-width: 1025px) {
	body.kgsb-page .elementor-location-header .elementor-element-baff909 img {
		width: 78px !important;
		height: auto !important;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	body.kgsb-page .elementor-location-header .elementor-element-baff909 img {
		width: 70px !important;
		height: auto !important;
	}
}
@media (max-width: 767px) {
	body.kgsb-page .elementor-location-header .elementor-element-baff909 img {
		width: 63px !important;
		height: auto !important;
	}
}

/* The wallet icon rule that used to live here (service pages only) moved
   into kilagbe-homepage-sidebar.php's shared header block on 2026-10-29,
   where one rule now covers both the Homepage and the service pages --
   so the two headers can't drift apart and there is no competing rule. */
