/* Small layout fixes for DHC page markup (loaded on every page from the header template). */

/* Search fields that put the icon before their input (e.g. /marketplace-integrations "Search marketplaces and platforms…")
   without the .sbar wrapper of the main search: same position as .sbar .lead-ic, so the icon sits inside the field. */
div:has(> svg.lead-ic + input) > svg.lead-ic,
div[style*="position:relative"] > svg.lead-ic,
div[style*="position: relative"] > svg.lead-ic {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
    color: var(--purple, #8500C8); pointer-events: none; z-index: 1;
}
div:has(> svg.lead-ic + input) { position: relative; }
[dir="rtl"] div:has(> svg.lead-ic + input) > svg.lead-ic { left: auto; right: 18px; }

/* The custom dropdown of the /ask-the-club form (.dh-dd of dhc.js): another rule turns its button into a grid, which
   centred "Select…". Keep it left-aligned like every other field of the site. */
.dh-dd .dh-dd-btn { display: flex; align-items: center; justify-content: flex-start; text-align: start; }
