/* KnowledgeMaster Listings. Inherits the theme's fonts and link colours. */
.kml-single, .kml-listings { --kml-border: #dfe3e8; --kml-muted: #5f6b7a; --kml-bg: #f6f8fa; --kml-accent: #08276e; }

/* Badges */
.kml-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8em; font-weight: 600; background: #e6f4ea; color: #1e6b34; }
.kml-badge--under_offer { background: #fff4e0; color: #8a5300; }
.kml-badge--filled, .kml-badge--sold, .kml-badge--acquired { background: #eceff3; color: #5f6b7a; }
.kml-ref { font-size: .8em; color: var(--kml-muted); }

/* Single listing: key facts grid, small label above each value.
   .kml-single prefix needed to beat the theme's dt/dd styles. */
.kml-single .kml-facts { border: 1px solid var(--kml-border); background: var(--kml-bg); border-radius: 6px; padding: 16px 20px 18px; margin: 0 0 24px; font-size: 15px; line-height: 1.4; }
.kml-single .kml-facts__head { margin: 0 0 12px; }
.kml-single .kml-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.kml-single .kml-fact { display: block; margin: 0; }
.kml-single .kml-fact--wide { grid-column: span 2; }
.kml-single .kml-facts dt { display: block; float: none; width: auto; margin: 0 0 2px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; line-height: 1.3; }
.kml-single .kml-facts dd { display: block; margin: 0; padding: 0; color: #1f2937; font-weight: 500; }
@media (max-width: 1199px) { .kml-single .kml-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kml-enquire { border-top: 1px solid var(--kml-border); margin-top: 32px; padding-top: 24px; }

/* Desktop: enquiry form in a right-hand column that stays in view. */
@media (min-width: 992px) {
	.kml-single.has-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
	.kml-single.has-form .kml-enquire { position: sticky; top: 110px; margin-top: 0; padding: 20px 24px; border: 1px solid var(--kml-border); border-radius: 6px; background: var(--kml-bg); }
	.kml-single.has-form .kml-enquire h2 { font-size: 24px; line-height: 30px; margin-top: 0; }
}

.kml-closed { padding: 12px 16px; background: var(--kml-bg); border-left: 4px solid var(--kml-muted); }
.kml-back { margin-top: 24px; }

/* Filters */
.kml-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.kml-filters label { margin: 0; flex: 1 1 160px; }
.kml-filters .kml-filters__search { flex: 2 1 220px; }
.kml-filters input, .kml-filters select { width: 100%; padding: 8px 10px; border: 1px solid var(--kml-border); border-radius: 4px; background: #fff; }
.kml-filters button { padding: 9px 20px; border: 0; border-radius: 4px; background: var(--kml-accent); color: #fff; cursor: pointer; }
.kml-filters__reset { font-size: .9em; }
.kml-count { color: var(--kml-muted); font-size: .9em; margin: 0 0 12px; }

/* Cards */
.kml-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.kml-card { display: flex; flex-direction: column; border: 1px solid var(--kml-border); border-radius: 6px; padding: 18px 20px; background: #fff; }
.kml-card.is-closed { opacity: .7; }
.kml-card__head { display: flex; justify-content: space-between; align-items: center; }
.kml-card__title { margin: 10px 0 8px; font-size: 1.15em; line-height: 1.3; }
.kml-card__title a { text-decoration: none; }
.kml-card__facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: .9em; }
.kml-card__facts dt { color: var(--kml-muted); margin: 0; }
.kml-card__facts dd { margin: 0; }
.kml-card__excerpt { font-size: .95em; margin: 0 0 12px; flex: 1; }
.kml-card__more { font-weight: 600; }
.kml-pagination { margin-top: 24px; }
.kml-pagination .page-numbers { padding: 4px 10px; }
.kml-empty { padding: 16px; background: var(--kml-bg); border-radius: 6px; }

@media (max-width: 600px) {
	.kml-single .kml-facts dl { grid-template-columns: 1fr; }
	.kml-single .kml-fact--wide { grid-column: auto; }
	.kml-filters button { width: 100%; }
}

/* Form field styling is site-wide, in the child theme's style.css. */

/* -------------------------------------------------------------------------
 * Consultix theme: match normal posts and hide the sidebar on listings.
 * ---------------------------------------------------------------------- */
.single-km_opportunity .entry-header .entry-title,
.single-km_business_sale .entry-header .entry-title,
.single-km_business_wanted .entry-header .entry-title { font-size: 220%; }

.kml-single h2 { font-size: 30px; }

.single-km_opportunity .wraper_blog_main .row > .col-lg-3,
.single-km_business_sale .wraper_blog_main .row > .col-lg-3,
.single-km_business_wanted .wraper_blog_main .row > .col-lg-3 { display: none; }

.single-km_opportunity .wraper_blog_main .row > .col-lg-9,
.single-km_business_sale .wraper_blog_main .row > .col-lg-9,
.single-km_business_wanted .wraper_blog_main .row > .col-lg-9 { width: 100%; float: none; }

/* Consultix draws its own bullet dot on list items in post content. Hide the
   browser bullet and move the theme's dot to the left of the text. */
.kml-single .kml-body ul { list-style: none !important; padding-left: 20px !important; }
.kml-single .kml-body ul li { list-style: none !important; }
.kml-single .kml-body ul li::before { left: -16px !important; top: 4px !important; }

/* Space between the listing (and enquiry form) and the theme's next/previous links. */
.single-km_opportunity .post-navigation,
.single-km_business_sale .post-navigation,
.single-km_business_wanted .post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid #dfe3e8; }