/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 14 2026 | 12:16:08 */
/* ==========================================================
   FIN — FEATURED FIN | FEATURE INDEX
   Version: v0.1.8 — Consolidated desktop/mobile editorial cards
   ==========================================================

   EDITORIAL GRID / FEATURED POSTS
   - Three-column desktop card grid
   - Two-column tablet and single-column mobile layouts
   - Grid spacing, card dimensions and alignment
   - Native SureDash card borders, corners and shadows

   FEATURED FIN HERO / INTRO
   - Featured introduction banner and image
   - Intro heading, description and content spacing
   - Responsive introduction layout and typography

   FEATURED POST CARDS
   - Card structure and content positioning
   - Featured images with 16:9 cropping
   - Avatar/title vertically balanced in a stable grid row, including wrapped titles
   - Post titles only (hide excerpt + See More in Space 18 cards)
   - Whole-card click navigation and pointer cursor
   - Single-image normalization: Cover/Featured Images, 16:9 cropping

   CARD CONTROLS / ENGAGEMENT
   - Hide native sorting and grid/view controls
   - Hide native author text and post-action controls
   - Hide inline comment entry areas
   - Desktop: compact right-aligned native reaction controls
   - Mobile: compact transparent controls with 44px tap targets

   RESPONSIVE / MOBILE
   - Three-column desktop, two-column tablet, one-column phone
   - Mobile grid gutters and card spacing
   - Mobile introduction sizing and typography
   - One mobile rule group; no duplicate mobile grid overrides

   DEPENDENCIES
   - FIN — Featured FIN Card Grid PHP snippet:
     JavaScript-generated card enhancements and introduction
   - Featured FIN space uses #portal-post-18
   - Mobile outer gutters supplied by FIN — Feed; inner grid padding is 0

   ========================================================== */

/* =========================================
   FEATURED FIN — SPACING CONTROLS
   Desktop values remain owner-tuned; phone settings
   are independent. Change these values only.

   PHONE REACTIONS GAP: negative = closer to title.
   PHONE BOTTOM: below reaction buttons, in px.
   PHONE RIGHT SHIFT: positive = move buttons right.
   ========================================= */

#portal-post-18 {
    --fin-featured-footer-top: 10px;
    --fin-featured-footer-bottom: 10px;
    --fin-featured-reactions-gap: -10px;

    --fin-featured-phone-reactions-gap: -10px;
    --fin-featured-phone-footer-bottom: 2px;
    --fin-featured-phone-reactions-right-shift: 5px;
}

/* FIN — Featured FIN Card Grid | migrated from PHP CSS output */

/* =========================================
   EDITORIAL GRID — SPACE 18 ONLY
   ========================================= */

#portal-post-18.portal-content-type-posts_discussion .portal-feeds-posts-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
}


/* =========================================
   HIDE NATIVE SORT / VIEW CONTROLS
   ========================================= */

#portal-post-18 .portal-feeds-controls {
    display: none !important;
}


/* =========================================
   FEATURED FIN HERO
   ========================================= */

#portal-post-18 .fin-featured-intro {
    width: 100%;
    margin: 0 0 28px 0;
    overflow: hidden;
    background: var(--portal-content-bg-color, #fff);
    border: 1px solid var(--portal-border-color, #e5e7eb);
    border-radius: 12px;
    box-sizing: border-box;
}

#portal-post-18 .fin-featured-intro-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

#portal-post-18 .fin-featured-intro-copy {
    padding: 22px 24px 24px;
}

#portal-post-18 .fin-featured-intro-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

#portal-post-18 .fin-featured-intro-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   CARD — GRID STRUCTURE
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post {
    position: relative !important;
    cursor: pointer !important;
    display: grid !important;
    grid-template-columns:
        20px 40px 8px minmax(0, 1fr) 20px !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}


/* =========================================
   FEATURED IMAGE
   ========================================= */

#portal-post-18 .fin-featured-card-image {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

#portal-post-18 .fin-featured-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* =========================================
   IMAGE GRID PLACEMENT
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post > :is(.fin-featured-card-image, .portal-post-cover-image) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}


/* =========================================
   AVATAR — ALIGNED WITH TITLE
   ========================================= */

#portal-post-18 .portal-store-list-post > .portal-store-post-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    z-index: 10 !important;
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    margin: var(--fin-featured-footer-top) 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#portal-post-18 .portal-store-post-header .portal-post-author {
    display: none !important;
}

#portal-post-18 .portal-store-post-header .portal-store-post-actions {
    display: none !important;
}

#portal-post-18 .portal-store-post-header .portal-store-post-author-data,
#portal-post-18 .portal-store-post-header .portal-store-post-author-wrap {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#portal-post-18 .portal-store-post-header .portal-user-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


/* =========================================
   CONTENT — SAME ROW AS AVATAR
   ========================================= */

#portal-post-18 .portal-store-list-post > .sd-p-container.sd-force-pt-0 {
    grid-column: 4 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    position: relative !important;
    padding: var(--fin-featured-footer-top) 0 var(--fin-featured-footer-bottom) !important;
}

#portal-post-18 .portal-space-post-content {
    margin: 0 !important;
    padding: 0 !important;
}

#portal-post-18 .portal-store-post-title {
    margin: 0 0 4px 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

#portal-post-18 .portal-space-post-content p {
    margin: 0 !important;
}


/* =========================================
   EDITORIAL TITLE — 40px avatar alignment
   Unlocked Space 18 cards only
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post) > .sd-p-container.sd-force-pt-0
> .portal-space-post-content {
    display: flex;
    align-items: center;
    min-height: 40px;
}

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post) > .sd-p-container.sd-force-pt-0 > .portal-space-post-content
> .portal-store-post-title {
    min-width: 0;
    margin: 0 !important;
}

/* =========================================
   TITLE-ONLY PREVIEW — Card listing only
   Leave native Excerpt mode enabled. Retain
   locked notices and full opened-post content.
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post) > .sd-p-container.sd-force-pt-0 > .portal-space-post-content
> :not(.portal-store-post-title) {
    display: none !important;
}


/* =========================================
   ENGAGEMENT
   ========================================= */

#portal-post-18 .portal-comments-wrapper {
    margin: 8px 0 0 0 !important;
    padding: 4px 0 0 0 !important;
    border: 0 !important;
    min-height: 0 !important;
}

/* In unlocked Featured FIN cards, reactions stay in normal
   document flow so text cannot collide with their buttons. */
#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post) > .sd-p-container.sd-force-pt-0
> .portal-comments-wrapper {
    position: static !important;
    width: 100% !important;
    margin: var(--fin-featured-reactions-gap) 0 0 !important;
    padding: 0 !important;
}

#portal-post-18 .portal-comments-wrapper .portal-content,
#portal-post-18 .portal-comments-wrapper .inline-comment-box,
#portal-post-18 .portal-comments-wrapper .jodit-comment-box-wrapper {
    display: none !important;
}

#portal-post-18 .portal-comments-block,
#portal-post-18 .portal-comment-header {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   RIGHT-ALIGNED NATIVE ENGAGEMENT
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comments-wrapper > .portal-comments-block
> .portal-comment-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}


/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (max-width: 1024px) {
    #portal-post-18 .portal-feeds-posts-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================
   RESPONSIVE — PHONE (FEATURED FIN ONLY)
   All mobile-specific card rules live here.
   ========================================= */

@media screen and (max-width: 767px) {

    /* Grid and native card surfaces: one-column phone design. */
    #portal-post-18 .portal-feeds-posts-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    #portal-post-18 .portal-feeds-posts-container[data-view-mode="grid"] {
        padding-left: 0;
        padding-right: 0;
    }

    #portal-post-18 .portal-feeds-posts-container[data-view-mode="grid"] > .portal-store-list-post {
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 1 / -1 !important;
        background: #fff;
        border: 1px solid var(--portal-border-color, #E4E7EB) !important;
        border-radius: 8px !important;
        box-shadow: 0 24px 64px -12px rgb(228, 231, 235);
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Intro: retain accepted mobile proportions. */
    #portal-post-18 .fin-featured-intro {
        margin-bottom: 20px;
    }

    #portal-post-18 .fin-featured-intro-copy {
        padding: 18px;
    }

    #portal-post-18 .fin-featured-intro-title {
        font-size: 21px;
    }

    /* Mobile-only spacing: top remains shared with desktop. */
    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post)
    > .sd-p-container.sd-force-pt-0 {
        padding-bottom: var(--fin-featured-phone-footer-bottom) !important;
    }

    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post:not(.is-locked):not(.portal-locked-post) > .sd-p-container.sd-force-pt-0
    > .portal-comments-wrapper {
        margin-top: var(--fin-featured-phone-reactions-gap) !important;
    }

    /* Retain native reaction markup; undo SureDash mobile pill presentation. */
    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comments-wrapper > .portal-comments-block
    > .portal-comment-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
        gap: 2px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: translateX(var(--fin-featured-phone-reactions-right-shift));
    }

    /* The native wrappers occupy half a row on mobile;
       restore auto width and transparent surfaces. */
    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comment-header > .sd-flex {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Visually small, but still 44px touch-sized native buttons. */
    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comment-header button.sd-post-reaction {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 50% !important;
        box-shadow: none !important;
    }

    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comment-header button.sd-post-reaction svg {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px;
    }

    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comment-header :is(.portal-likes-count, .portal-comments-count) {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #portal-post-18 .portal-feeds-posts-container > .portal-store-list-post .portal-comment-header .counter {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
}


/* =========================================
   SINGLE-IMAGE CARD NORMALIZATION v0.1.0
   =========================================
   Display native SureDash Cover Images at
   the same 16:9 dimensions as WP Featured
   Image cards.

   If both fields exist, show one card image.
   The cover remains inside the full post.
   ========================================= */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post > .portal-post-cover-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post > .portal-post-cover-image img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Avoid duplicate card images when both fields exist. */

#portal-post-18 .portal-feeds-posts-container > .portal-store-list-post > .fin-featured-card-image ~ .portal-post-cover-image {
    display: none !important;
}


/*
 * FIN — Featured FIN Native Collection Width
 * v0.1.0
 *
 * Match SureDash's native Collection width.
 * Scope: Featured FIN Discussion Space 18 only.
 * Preserve all existing card styling.
 */

#portal-post-18.portal-content-type-posts_discussion {
    width: 100% !important;
    max-width: var(--portal-narrow-grid-width, 1030px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
