/*----- START 사고팔기 temp CSS -----*/
body:has(.knewscommunity-novabb-thread-single--featured) .buy-sell-grid, body:has(.knewscommunity-novabb-thread-single--featured) .novabb-page__header, body:has(.knewscommunity-novabb-thread-single--featured) .single-region-btns {
    display: none !important;
}


/* Ensure the meta container is visible */
.novabb-thread-title-meta {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.buy-sell-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    gap: 10px;
}

/* Card Foundation */
.knewscommunity-buy-sell-card {
    aspect-ratio: 16 / 8;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    overflow: hidden;
}

/* Title at the top */
.buy-sell-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0px;
    line-height: 1.3;
    color: #111;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Body Layout (Image Left, Info Right) */
.buy-sell-body {
    flex-grow: 1;
    gap: 8px;
    min-height: 0; /* Prevents flex items from breaking ratio */
	align-items: center;
}

.buy-sell-thumb {
    width: 40%;
    height: 90%;
}

.buy-sell-thumb img {
    width: 95%;
    height: 100%;
	max-height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.buy-sell-info {
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

/* Gray Category Pills */
.buy-sell-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 50px;
    width: fit-content;
	font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 500;
}

.buy-sell-price {
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
	margin-left: 8px;
}

.novabb-category-table--buy-sell .novabb-column--buy-sell-region,
.novabb-category-table--buy-sell .novabb-column--buy-sell-category,
.novabb-category-table--buy-sell .novabb-column--buy-sell-price,
.novabb-category-table--buy-sell .novabb-column--buy-sell-date,
.novabb-category-table--buy-sell .novabb-column--buy-sell-views {
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.novabb-category-table--buy-sell .novabb-column--buy-sell-title {
	display: flex;
	align-items: center;
	gap: 12px;
	vertical-align: middle;
}

.novabb-category-table--buy-sell th.novabb-column--buy-sell-title {
	display: table-cell;
}

.novabb-buy-sell-thread-thumbnail {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: 3px;
	margin: 5px 0;
}

.novabb-buy-sell-thread-title-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-left: 1rem;
}

td.novabb-column.novabb-column--buy-sell-price {
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: .85rem;
}

/* Red text for "Free" or special prices */
.text-red {
    color: #cc0000 !important;
}

/* Featured Banner Specifics */
.buy-sell-featured-banner {
    padding: 0; /* Ensures banner fills the border-to-border */
}

.buy-sell-featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) { .buy-sell-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .buy-sell-grid { grid-template-columns: repeat(2, 1fr); } }
/*----- END 사고팔기 temp CSS -----*/