/* KevBuy Listings — front end */
:root { --kb-accent: #e4572e; }
.kb-wrap {
	--kb-ink: #1d1d1f;
	--kb-muted: #6b6b70;
	--kb-line: #e6e3de;
	--kb-card: #fff;
	--kb-soft: #f6f4f1;
	--kb-fb: #1877f2;
	--kb-radius: 12px;
	color: var(--kb-ink);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.kb-wrap *, .kb-wrap *::before, .kb-wrap *::after { box-sizing: inherit; }
.kb-wrap img { max-width: 100%; height: auto; display: block; }

/* Filters */
.kb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.kb-filter {
	appearance: none; border: 1px solid var(--kb-line); background: var(--kb-card); color: var(--kb-ink);
	border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; line-height: 1.2;
}
.kb-filter span { color: var(--kb-muted); margin-left: 4px; font-size: 13px; }
.kb-filter:hover { border-color: var(--kb-ink); }
.kb-filter.is-active { background: var(--kb-ink); border-color: var(--kb-ink); color: #fff; }
.kb-filter.is-active span { color: rgba(255,255,255,.7); }

/* Grid + cards */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0 0 32px; }
@media (max-width: 520px) { .kb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.kb-card { background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.kb-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.kb-card[hidden] { display: none; }
.kb-card-link, .kb-card-link:hover, .kb-card-link:visited { color: inherit; text-decoration: none; display: block; }
.kb-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--kb-soft); overflow: hidden; }
.kb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kb-noimg { display: grid; place-items: center; height: 100%; color: var(--kb-muted); font-size: 14px; }
.kb-card.is-sold .kb-card-img img { filter: grayscale(.7); opacity: .75; }
.kb-card-body { padding: 10px 12px 12px; }
.kb-card-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kb-card-price { font-size: 17px; font-weight: 700; margin: 0; }
.kb-card-cta { font-size: 13px; color: var(--kb-muted); margin: 4px 0 0; }
.kb-card[data-src="facebook"] .kb-card-cta { color: var(--kb-fb); }
.kb-card[data-src="direct"] .kb-card-cta { color: var(--kb-accent); }

/* Corner badges */
.kb-badge {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	font-size: 12px; font-weight: 700; letter-spacing: .01em; line-height: 1;
	padding: 5px 8px; border-radius: 6px; color: #fff; background: var(--kb-accent);
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.kb-badge-facebook { background: var(--kb-fb); }
.kb-badge-ebay { background: #fff; color: #222; border: 1px solid #ddd; }
.kb-badge-img { background: rgba(255,255,255,.92); padding: 4px; border: 0; }
.kb-badge-img img { height: 20px; width: auto; }
.kb-ebay-head .kb-badge { position: static; display: inline-block; vertical-align: middle; box-shadow: none; }
.kb-ribbon {
	position: absolute; top: 16px; right: -38px; transform: rotate(45deg); z-index: 2;
	background: #222; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 44px; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.kb-ribbon-pending { background: #f2a900; color: #1d1d1f; }
.kb-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 7px; border-radius: 6px; }

.kb-empty { color: var(--kb-muted); padding: 24px 0; }

/* eBay section */
.kb-ebay { border-top: 1px solid var(--kb-line); padding-top: 24px; margin-top: 8px; }
.kb-ebay[hidden] { display: none; }
.kb-ebay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kb-ebay-head h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.kb-ebay-all { font-size: 15px; }
.kb-ebay-fallback { display: inline-block; padding: 14px 20px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); text-decoration: none; }

/* Single item */
.kb-single { max-width: 820px; }
.kb-main-img { position: relative; border-radius: var(--kb-radius); overflow: hidden; background: var(--kb-soft); }
.kb-main-img img { width: 100%; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.kb-main-img .kb-badge { top: 12px; left: 12px; font-size: 13px; }
.kb-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.kb-thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.kb-thumb.is-active { border-color: var(--kb-accent); }
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-price { font-size: 28px; font-weight: 800; margin: 18px 0 8px; }
.kb-desc { margin-bottom: 28px; }

/* Forms */
.kb-enquiry { background: var(--kb-soft); border-radius: var(--kb-radius); padding: 20px; }
.kb-enquiry h2 { margin: 0 0 12px; font-size: 20px; }
.kb-form-front label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
.kb-form-front input[type=text], .kb-form-front input[type=email], .kb-form-front textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cfcac3; border-radius: 8px; font: inherit; background: #fff; color: var(--kb-ink);
}
.kb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .kb-form-row { grid-template-columns: 1fr; } }
.kb-btn {
	margin-top: 12px; appearance: none; border: 0; background: var(--kb-accent); color: #fff; font: inherit; font-weight: 700;
	padding: 11px 22px; border-radius: 8px; cursor: pointer;
}
.kb-btn:hover { filter: brightness(.93); }
.kb-small { font-size: 13px; color: var(--kb-muted); margin: 8px 0 0; }
.kb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kb-notice { padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--kb-line); }
.kb-ok { background: #eaf7ee; border-color: #b9e2c4; }
.kb-err { background: #fdeceb; border-color: #f2bcb7; }

/* Conversation */
.kb-convo-page { max-width: 640px; }
.kb-convo-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); text-decoration: none; color: inherit; margin-bottom: 16px; }
.kb-convo-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.kb-bubbles { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.kb-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--kb-soft); }
.kb-bubble.kb-mine { align-self: flex-end; background: var(--kb-accent); color: #fff; }
.kb-bubble-meta { font-size: 12px; opacity: .75; margin-bottom: 2px; }

/* Toolbar: search + archive link */
.kb-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; }
.kb-search { display: flex; flex: 1 1 280px; max-width: 480px; }
.kb-search input[type=search] {
	flex: 1; min-width: 0; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--kb-ink);
	border: 1px solid #cfcac3; border-right: 0; border-radius: 999px 0 0 999px; background: #fff;
}
.kb-search button {
	padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
	border: 1px solid var(--kb-ink); background: var(--kb-ink); color: #fff; border-radius: 0 999px 999px 0;
}
.kb-view-link { font-size: 15px; font-weight: 600; color: var(--kb-ink); text-decoration: none; white-space: nowrap; }
.kb-view-link:hover { color: var(--kb-accent); }
.kb-view-title { margin: 8px 0 2px; font-size: 26px; }
.kb-view-sub { margin: 0 0 16px; color: var(--kb-muted); }
.kb-search-info { color: var(--kb-muted); font-size: 15px; margin: 0 0 12px; }
.kb-screen-reader-text, .kb-wrap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Pending / sold on cards */
.kb-card { position: relative; }
.kb-card.is-pending .kb-card-cta { color: #9a6b00; font-weight: 600; }
.kb-card.is-sold .kb-card-cta { color: var(--kb-muted); }

/* Share */
.kb-share { position: relative; display: inline-block; }
.kb-share-btn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
	border: 1px solid var(--kb-line); background: #fff; color: var(--kb-ink); border-radius: 999px; padding: 7px 14px; line-height: 1;
}
.kb-share-btn:hover { border-color: var(--kb-ink); }
.kb-share-compact { position: absolute; bottom: 10px; right: 10px; z-index: 3; }
.kb-card-body { padding-right: 52px; }
.kb-share-compact .kb-share-btn { width: 34px; height: 34px; padding: 0; justify-content: center; color: var(--kb-muted); }
.kb-share-compact .kb-share-menu { top: auto; bottom: calc(100% + 6px); }
.kb-share-menu {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 160px;
	background: #fff; border: 1px solid var(--kb-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px;
}
.kb-share-menu[hidden] { display: none; }
.kb-share-menu a, .kb-share-menu button {
	display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 14px;
	color: var(--kb-ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.kb-share-menu a:hover, .kb-share-menu button:hover { background: var(--kb-soft); }

/* Item page price row */
.kb-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.kb-price-row .kb-price { margin: 0; }
.kb-price-row .kb-share { margin-left: auto; }
.kb-status-tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.kb-status-pending { background: #fff1c7; color: #7a5a00; }
.kb-status-sold { background: #e6e6e6; color: #333; }
@media (max-width: 520px) {
	.kb-card-body { padding-right: 12px; padding-bottom: 46px; }
	.kb-share-compact { bottom: 8px; right: 8px; }
}

/* Back link on item pages */
.kb-back { margin: 0 0 14px; font-size: 15px; }
.kb-back a { color: var(--kb-ink); text-decoration: none; font-weight: 600; }
.kb-back a:hover { color: var(--kb-accent); }

/* ===================== v1.2 ===================== */

/* Use the full width of the screen for the listings, not just the theme's narrow column */
.kb-wrap.kb-wide {
	box-sizing: border-box;
	width: min(1400px, calc(100vw - 48px)) !important;
	max-width: none !important;
	margin-left: calc(50% - min(700px, calc(50vw - 24px))) !important;
	margin-right: 0 !important;
}
@media (max-width: 600px) {
	.kb-wrap.kb-wide { width: calc(100vw - 24px) !important; margin-left: calc(50% - 50vw + 12px) !important; }
}

/* Source pills are links now */
a.kb-filter { text-decoration: none; display: inline-block; }
a.kb-filter:hover { color: var(--kb-ink); }
a.kb-filter.is-active, a.kb-filter.is-active:hover { color: #fff; }

/* Filter & sort panel */
.kb-refine { border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: var(--kb-card); margin: 0 0 16px; }
.kb-refine summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.kb-refine summary::-webkit-details-marker { display: none; }
.kb-refine summary::before { content: "▸"; font-size: 12px; transition: transform .15s; }
.kb-refine[open] summary::before { transform: rotate(90deg); }
.kb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-accent); display: inline-block; }
.kb-refine-grid { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 4px 14px 14px; }
.kb-refine-grid label, .kb-price-range { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--kb-muted); }
.kb-price-range { flex-direction: row; align-items: center; flex-wrap: wrap; }
.kb-price-range > span:first-child { width: 100%; }
.kb-refine-grid select, .kb-refine-grid input[type=number] {
	font: inherit; font-size: 15px; font-weight: 400; color: var(--kb-ink); background: #fff;
	border: 1px solid #cfcac3; border-radius: 8px; padding: 8px 10px; min-height: 40px;
}
.kb-refine-grid select { min-width: 170px; }
.kb-price-range input { width: 88px; }
.kb-refine-actions { display: flex; align-items: center; gap: 14px; }
.kb-refine-actions .kb-btn { margin-top: 0; padding: 9px 20px; }
.kb-refine-actions a { font-size: 14px; }
@media (max-width: 600px) {
	.kb-refine-grid label, .kb-refine-grid select { width: 100%; }
}

/* Cards: price first, bigger grid */
.kb-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .kb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.kb-card-body { padding: 10px 48px 12px 12px; }
.kb-card-price { font-size: 19px; font-weight: 800; margin: 0 0 2px; line-height: 1.2; }
.kb-was { font-size: 14px; font-weight: 400; color: var(--kb-muted); margin-left: 4px; }
.kb-card-title { font-size: 14px; font-weight: 500; margin: 0 0 2px; }
.kb-card-facts { font-size: 12.5px; color: var(--kb-muted); margin: 0; line-height: 1.35; }
.kb-card .kb-card-cta { margin-top: 4px; }
@media (max-width: 520px) {
	.kb-card-body { padding: 8px 10px 44px 10px; }
	.kb-card-price { font-size: 17px; }
}

/* Show more */
.kb-more-wrap { text-align: center; margin: 8px 0 32px; }
.kb-more-count { color: var(--kb-muted); font-size: 14px; margin: 0 0 8px; }
a.kb-more { display: inline-block; text-decoration: none; color: #fff; padding: 12px 28px; }
a.kb-more.is-loading { opacity: .6; pointer-events: none; }

/* Item page facts */
.kb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 18px; }
.kb-facts div { background: var(--kb-soft); border-radius: 10px; padding: 10px 12px; }
.kb-facts dt { font-size: 12px; color: var(--kb-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.kb-facts dd { margin: 2px 0 0; font-weight: 600; }
.kb-price .kb-was { font-size: 18px; }

/* Facebook item box */
.kb-fb-box { text-align: center; }
a.kb-btn-fb { display: inline-block; background: var(--kb-fb); color: #fff; text-decoration: none; font-size: 17px; padding: 14px 26px; margin-top: 0; }
a.kb-btn-fb:hover { color: #fff; }

/* Message / offer tabs */
.kb-tabs { display: flex; gap: 6px; margin: 0 0 12px; border-bottom: 1px solid var(--kb-line); }
.kb-tab {
	appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 700;
	font-size: 16px; padding: 8px 12px; margin-bottom: -1px; cursor: pointer; color: var(--kb-muted);
}
.kb-tab.is-active { color: var(--kb-ink); border-bottom-color: var(--kb-accent); }
.kb-offer-input { display: flex; align-items: center; max-width: 220px; border: 1px solid #cfcac3; border-radius: 8px; background: #fff; }
.kb-offer-input span { padding: 0 4px 0 12px; font-weight: 700; }
.kb-offer-input input { border: 0 !important; flex: 1; min-width: 0; padding: 10px 12px 10px 2px; font: inherit; font-size: 17px; background: transparent; }
.kb-optional { font-weight: 400; color: var(--kb-muted); }
.kb-form-front[hidden] { display: none; }

/* ===================== v1.2.1 compact cards ===================== */
.kb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.kb-card { border: 0; background: transparent; border-radius: 8px; }
.kb-card:hover { box-shadow: none; transform: none; }
.kb-card:hover .kb-card-img img { opacity: .9; }
.kb-card-img { aspect-ratio: 4 / 3; border-radius: 8px; }
.kb-card-body { padding: 6px 2px 0; }
.kb-card-price { font-size: 16px; margin: 0; }
.kb-was { font-size: 12.5px; }
.kb-card-title {
	font-size: 13.5px; font-weight: 400; margin: 1px 0 0; line-height: 1.3;
	display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset;
}
.kb-card .kb-badge { top: 6px; left: 6px; font-size: 10.5px; padding: 3px 6px; border-radius: 5px; }
.kb-card .kb-badge-img img { height: 16px; }
.kb-card .kb-ribbon { top: 10px; right: -36px; font-size: 9.5px; padding: 3px 40px; }
@media (max-width: 520px) {
	.kb-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
	.kb-card-body { padding: 4px 1px 0; }
	.kb-card-price { font-size: 14px; }
	.kb-card-title { font-size: 12px; }
	.kb-card .kb-badge { font-size: 9px; padding: 2px 5px; top: 4px; left: 4px; }
	.kb-card .kb-ribbon { font-size: 8px; top: 7px; right: -40px; }
}

/* ===================== v1.2.5 hover quick view ===================== */
.kb-peek {
	position: fixed; z-index: 99999; width: 340px; max-width: calc(100vw - 16px);
	background: #fff; color: #1d1d1f; border-radius: 12px; overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
	pointer-events: none; opacity: 0; transform: scale(.97); transition: opacity .12s ease, transform .12s ease;
	visibility: hidden; font-size: 15px; line-height: 1.4;
}
.kb-peek.is-on { opacity: 1; transform: none; visibility: visible; }
.kb-peek-img { position: relative; background: #f2f4f7; aspect-ratio: 4 / 3; }
.kb-peek-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kb-peek-src {
	position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
	background: var(--kb-accent, #e4572e); color: #fff;
}
.kb-peek-src-facebook { background: #1877f2; }
.kb-peek-src-ebay { background: #fff; color: #222; border: 1px solid #ddd; }
.kb-peek-status { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #f2a900; color: #1d1d1f; }
.kb-peek-body { padding: 10px 14px 12px; }
.kb-peek-price { font-size: 22px; font-weight: 800; margin: 0; }
.kb-peek-title { font-size: 15px; font-weight: 600; margin: 2px 0 4px; }
.kb-peek-facts { font-size: 13px; color: #6b6b70; margin: 0; }
.kb-peek-facts:empty, .kb-peek-title:empty, .kb-peek-price:empty { display: none; }
.kb-peek-hint { font-size: 12px; color: #6b6b70; margin: 8px 0 0; border-top: 1px solid #eee; padding-top: 6px; }

/* ===================== v1.2.6 favourites ===================== */
.kb-fav-layer { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; pointer-events: none; }
.kb-fav {
	pointer-events: auto; position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.25);
	display: grid; place-items: center; cursor: pointer; transition: transform .15s;
}
.kb-fav:hover { transform: scale(1.08); }
.kb-fav svg { width: 18px; height: 18px; }
.kb-heart { fill: none; stroke: #1d1d1f; stroke-width: 2; }
.kb-fav.is-saved .kb-heart { fill: #e0245e; stroke: #e0245e; }
.kb-fav.kb-pop { transform: scale(1.25); }
.kb-fav.kb-fav-labelled {
	position: static; width: auto; height: auto; display: inline-flex; gap: 6px; align-items: center;
	padding: 7px 14px; border-radius: 999px; border: 1px solid var(--kb-line); box-shadow: none; background: #fff;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--kb-ink); margin-left: auto;
}
.kb-price-row .kb-fav-labelled + .kb-share { margin-left: 0; }
a.kb-fav-pill { color: #e0245e; }
a.kb-fav-pill.is-active { background: #e0245e; border-color: #e0245e; color: #fff; }
a.kb-fav-pill .kb-fav-count { color: inherit; opacity: .8; }
.kb-fav-pill[hidden] { display: none !important; }
@media (max-width: 520px) {
	.kb-fav { width: 28px; height: 28px; right: 4px; bottom: 4px; }
	.kb-fav svg { width: 15px; height: 15px; }
}

/* Company details footer */
.kb-company{font-size:11px !important;line-height:1.5;letter-spacing:0;color:#65676b;text-align:center;padding:14px 16px;background:#f2f4f7}
.kb-company.kb-company-in{padding:0;background:none;color:inherit}
@media (min-width:760px){.kb-company{white-space:nowrap}}

/* Untested electrical warning */
.kb-elec-warn{margin:14px 0;padding:12px 14px;border-radius:8px;background:#fffbea;border:1px solid #f0d77a;color:#3d3300;font-size:14px;line-height:1.5}
.kb-elec-warn strong{display:block;margin-bottom:4px}

/* Phones: tighten the theme header and page spacing so items show without scrolling */
@media (max-width: 767px) {
	body .site-header { margin-bottom: 0 !important; }
	body .site-branding { padding: 14px 0 10px !important; }
	body .site-branding .custom-logo { max-height: 40px !important; width: auto !important; }
	body .site-content { padding-top: 0 !important; }
	body .entry-content { margin-top: 0 !important; }
	body .site-main { padding-bottom: 16px !important; }
	.kb-wrap .kb-toolbar { gap: 8px; margin-bottom: 10px; }
	.kb-wrap .kb-filters { margin-bottom: 10px; }
	.kb-wrap .kb-refine { margin-bottom: 8px; }
}

/* Header: no duplicate menu, tagline under the logo, no intro paragraph */
.kb-view-links { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
body .main-navigation { display: none !important; }
body .site-branding-text { display: block !important; }
body .site-branding .site-title { display: none !important; }
body .site-branding .site-description {
	position: static !important; clip: auto !important; width: auto !important; height: auto !important;
	margin: 4px 0 0 !important; font-size: 13px !important; line-height: 1.3 !important;
	letter-spacing: .06em; text-transform: uppercase; color: #65676b !important; text-align: center;
}
body.home .entry-content > p.has-text-align-center:first-child { display: none !important; }

/* "Not on Facebook?" fallback form */
.kb-nofb { margin-top: 18px; text-align: left; border-top: 1px solid var(--kb-line); padding-top: 14px; }
.kb-nofb > summary { cursor: pointer; font-weight: 600; text-align: center; color: var(--kb-ink); list-style: none; }
.kb-nofb > summary::-webkit-details-marker { display: none; }
.kb-nofb > summary::after { content: " \25BE"; }
.kb-nofb[open] > summary { margin-bottom: 12px; }
.kb-ebay-note { margin-top: 10px; }

/* Computers: tighter header */
@media (min-width: 768px) {
	body .site-header { margin-bottom: 0 !important; }
	body .site-branding { padding: 24px 0 14px !important; }
	body .site-content { padding-top: 8px !important; }
	body .entry-content { margin-top: 0 !important; }
}

/* Back to top button */
.kb-top {
	position: fixed; right: 16px; bottom: 20px; z-index: 9990;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
	width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
	background: var(--kb-accent, #e4572e); color: #fff; cursor: pointer;
	font: 600 10px/1 sans-serif; letter-spacing: .03em; text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(0,0,0,.22);
	opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.kb-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.kb-top:hover { filter: brightness(1.08); }
.kb-top:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.kb-top svg { margin-bottom: 1px; }
@media (min-width: 1000px) { .kb-top { right: 28px; bottom: 28px; } }

/* Facebook group invitation (Facebook tab only) */
.kb-fbgroup {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px;
	background: #fff; border: 1px solid #dbe3f3; border-left: 5px solid #1877f2;
}
.kb-fbgroup-text { flex: 1 1 240px; line-height: 1.4; }
.kb-fbgroup-text strong { display: block; font-size: 16px; margin-bottom: 2px; color: #1c1e21; }
.kb-fbgroup-text span { font-size: 14px; color: #4b4f56; }
a.kb-fbgroup-btn {
	display: inline-block; padding: 10px 18px; border-radius: 999px; background: #1877f2; color: #fff;
	font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
a.kb-fbgroup-btn:hover { background: #166fe0; color: #fff; }

/* Hotmail/Outlook tip on the conversation page */
.kb-notice.kb-mailtip { background: #fff8e1; border-color: #f0d77a; font-size: 14px; }

/* Contact form */
.kb-contact-wrap { max-width: 640px; margin: 0 auto; }
.kb-contact-form input[type=text] { width: 100%; }

/* Away mode banner */
.kb-away-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #fff8e1; border: 1px solid #f0d77a; color: #3d3300; font-weight: 600; text-align: center; }

/* Source buttons: 2 x 2 on phones so the longer labels fit */
@media (max-width: 560px) {
	.kb-filters { display: grid; grid-template-columns: 1fr 1fr; }
	.kb-filters .kb-filter { text-align: center; padding: 9px 8px; font-size: 14px; }
	.kb-filters .kb-fav-pill { grid-column: 1 / -1; }
}

/* Notice panel */
.kb-ann {
	position: relative; overflow: hidden; margin: 0 0 18px; border-radius: 14px; color: #fff;
	min-height: 190px; display: flex; align-items: flex-end;
	background: linear-gradient(135deg, var(--kb-accent, #e4572e), #1c1e21);
}
.kb-ann.has-img { background: #1c1e21 var(--kb-ann-img) center / cover no-repeat; }
.kb-ann.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%); }
.kb-ann-inner { position: relative; padding: 22px 22px 24px; max-width: 640px; }
.kb-ann-date { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--kb-accent, #e4572e); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.kb-ann-title { margin: 0 0 6px !important; color: #fff !important; font-size: 30px !important; line-height: 1.1 !important; font-weight: 800 !important; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.kb-ann-text { margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.92); }
a.kb-ann-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; color: #1c1e21; font-weight: 700; text-decoration: none; font-size: 15px; }
a.kb-ann-btn:hover { background: #f2f4f7; color: #1c1e21; }
@media (min-width: 768px) {
	.kb-ann { min-height: 260px; }
	.kb-ann-inner { padding: 34px 38px 36px; }
	.kb-ann-title { font-size: 44px !important; }
	.kb-ann-text { font-size: 18px; }
}
html { scroll-behavior: smooth; }
#kb-grid-start { scroll-margin-top: 80px; }

/* Empty listings: "New items coming shortly" */
.kb-soon { margin: 8px 0 24px; padding: 34px 20px; text-align: center; background: #fff; border: 1px solid var(--kb-line, #e4e6eb); border-radius: 14px; }
.kb-soon-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.kb-soon-title { margin: 0 0 6px !important; font-size: 26px !important; line-height: 1.2 !important; color: var(--kb-ink, #1c1e21) !important; }
.kb-soon-text { margin: 0 auto 18px; max-width: 460px; color: var(--kb-muted, #65676b); font-size: 16px; }
.kb-soon-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
a.kb-soon-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--kb-ink, #1c1e21); color: var(--kb-ink, #1c1e21); text-decoration: none; font-weight: 600; font-size: 15px; }
a.kb-soon-btn.kb-soon-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.kb-soon.has-img { position: relative; overflow: hidden; color: #fff; border: 0; background: #1c1e21 var(--kb-ann-img) center / cover no-repeat; }
.kb-soon.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.kb-soon.has-img > * { position: relative; }
.kb-soon.has-img .kb-soon-title { color: #fff !important; }
.kb-soon.has-img .kb-soon-text { color: rgba(255,255,255,.9); }
.kb-soon.has-img a.kb-soon-btn:not(.kb-soon-fb) { background: #fff; border-color: #fff; }
