/* OHELP_COMPACT_ANDROID_CARDS_V1 */

/* Preserve the responsive landing feed grid. */
.landing-feed-grid,
.ohelp-native-featured-grid {
    align-items: start !important;
}

/* Compact both artisan and customer cards. */
.landing-feed-grid .landing-feed-card,
.ohelp-native-featured-grid .landing-feed-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    overflow: hidden !important;
}

/* Smaller headings, like Android cards. */
.landing-feed-card h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Limit descriptions to two lines. */
.landing-feed-card .landing-description {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Keep location and posting details concise. */
.landing-feed-card .landing-meta {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Smaller category badges. */
.landing-feed-card .landing-card-label {
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

.landing-feed-card .landing-card-label span,
.landing-feed-card .landing-card-label small {
    font-size: 9px !important;
    line-height: 1.2 !important;
}

/* Compact media previews without distortion. */
.landing-feed-card img,
.landing-feed-card video {
    max-width: 100% !important;
    max-height: 125px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* Compact budget display. */
.landing-feed-card .landing-budget {
    font-size: 12px !important;
    margin: 0 !important;
}

/* Small action buttons, preserving click handlers. */
.landing-feed-card .actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

.landing-feed-card .actions button,
.landing-feed-card .landing-card-action,
.landing-feed-card .ohelp-artisan-view-work {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    border-radius: 9px !important;
}

.landing-feed-card .ohelp-artisan-view-work {
    flex: 1 1 auto !important;
}

.landing-feed-card .ohelp-artisan-share-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-height: 34px !important;
    padding: 5px !important;
}

/* Phone: two compact columns. */
@media (max-width: 600px) {
    .landing-feed-grid,
    .ohelp-native-featured-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .landing-feed-grid .landing-feed-card,
    .ohelp-native-featured-grid .landing-feed-card {
        padding: 8px !important;
        gap: 5px !important;
    }

    .landing-feed-card img,
    .landing-feed-card video {
        max-height: 105px !important;
    }
}

/* Tablet: three columns. */
@media (min-width: 601px) and (max-width: 1023px) {
    .landing-feed-grid,
    .ohelp-native-featured-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Desktop: four columns. */
@media (min-width: 1024px) {
    .landing-feed-grid,
    .ohelp-native-featured-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}