/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 15 2026 | 14:22:47 */
/* ==========================================================
   FIN — PROFILES | FEATURE INDEX
   ==========================================================

   PROFILE EDITOR / MEMBER IDENTITY
   - Hide first name and last name editing fields
   - Hide display-name editing
   - Keep hidden fields in the DOM for SureDash submissions
   - Visual hiding only; not server-side permission enforcement

   PROFILE EDITOR / PHOTO UPLOAD
   - Hide native cover image editing controls
   - Larger 96px profile photo in editor
   - Circular uploaded photos and Gravatar fallback
   - Initials fallback display and centering
   - Mobile photo upload alignment and controls
   - Prevent iOS input zoom in profile editing fields

   PUBLIC PROFILE / HEADER
   - Remove native SureDash cover image
   - Convert cover/banner layout into profile header
   - Return overlay to normal document flow
   - Member name and identity information
   - Desktop 150px and mobile 120px profile avatars
   - Uploaded photo, Gravatar and initials fallback
   - Centered mobile profile header
   - Standard 12px mobile gutters for the entire public profile
   - Header, navigation tabs and About card alignment

   PUBLIC PROFILE / ABOUT SECTIONS
   - Motto / Quote / Mantra
   - About Me biography and extended text
   - Location, occupation, hobbies and interests
   - Favorite foods and other profile fields
   - Section labels, typography and spacing
   - SureDash theme-colored section dividers
   - First-section and last-section spacing
   - Long text expands naturally without truncation
   - Hide duplicate native motto display

   MEMBER SINCE / NAVIGATION
   - Member Since visibility on mobile
   - Back to Members navigation link
   - Mobile link spacing and touch-target sizing

   DEPENDENCIES
   - Member Since visibility relies on JavaScript adding
     the .fin-member-since-ready class.
   - About section content uses custom .fin-profile-* markup.

   PUBLIC PROFILE / IDENTITY CARD & BADGES
   - Desktop 40/60 photo and member information layout
   - Larger desktop profile photo
   - Stacked name, full badge titles and Send Message
   - Matching profile card surface and shadow
   - Preserve approved centered mobile layout

   PUBLIC PROFILE / NAVIGATION TABS
   - White background for complete tab navigation pill
   - Distinct gray-blue selected tab treatment
   - Subtle hover feedback for unselected tabs
   - Preserve native Posts, Comments and About switching
   - Dark mode and reduced-motion support


   ========================================================== */


/* ----------------------------------------------------------
   LOCK FIN MEMBER IDENTITY

   Keep the fields in the DOM so SureDash continues submitting
   their existing values, but do not expose them for editing.
   ---------------------------------------------------------- */

.portal-user-profile-editor-fields:has(.portal-name-field) {
    display: none !important;
}

.portal-user-profile-editor-field:has(#display_name) {
    display: none !important;
}


/* ----------------------------------------------------------
   REMOVE COVER IMAGE FROM FIN PROFILE EXPERIENCE
   ---------------------------------------------------------- */

.portal-user-profile-editor-fields:has(.portal-user-profile-cover-banner) {
    display: none !important;
}


/* ----------------------------------------------------------
   LARGER PROFILE PHOTO IN EDITOR
   ---------------------------------------------------------- */

.portal-user-profile-gravatar-setup .portal-user-avatar,
.portal-user-profile-gravatar-setup .portal-avatar-initials {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex: 0 0 96px;
}


/* Uploaded SureDash profile image */

.portal-user-profile-gravatar-setup img.portal-user-avatar {
    object-fit: cover !important;
    aspect-ratio: 1 / 1;
}


/* Initials fallback */

.portal-user-profile-gravatar-setup .portal-avatar-initials-text {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/* Gravatar fallback */

.portal-user-profile-gravatar-setup .portal-user-gravatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

/* =========================================
   PUBLIC MEMBER PROFILE — HEADER & IDENTITY
   ========================================= */


/* ----------------------------------------------------------
   REMOVE SUREDASH COVER IMAGE
   ---------------------------------------------------------- */

.portal-user-view-header > img {
    display: none !important;
}


/* ----------------------------------------------------------
   CONVERT HEADER FROM BANNER TO PROFILE HEADER
   ---------------------------------------------------------- */

/* Keep the public profile header in normal flow. */
.portal-user-view-header {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

/* CRITICAL: Restore SureDash profile overlay positioning. */
.portal-user-view-header > .portal-user-view-overlay {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}

/* FIN — PUBLIC PROFILE CARD SURFACE */
.portal-user-profile-user-view-wrap .portal-user-view-header {
    background: #fff !important;
    border: 1px solid var(--portal-border-color, #e5e7eb) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}




/* ----------------------------------------------------------
   MEMBER IDENTITY AREA
   ---------------------------------------------------------- */

.portal-user-view-details {
    position: relative !important;
    inset: auto !important;

    display: flex !important;
    align-items: center !important;
    gap: 24px !important;

    width: 100% !important;
    padding: 24px !important;
}


/* ----------------------------------------------------------
   LARGE PROFILE PHOTO
   ---------------------------------------------------------- */

.portal-user-view-details > .portal-user-avatar,
.portal-user-view-details > .portal-avatar-initials {
    width: 150px !important;
    height: 150px !important;

    min-width: 150px !important;
    min-height: 150px !important;

    max-width: 150px !important;
    max-height: 150px !important;

    flex: 0 0 150px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}


/* ----------------------------------------------------------
   GRAVATAR FALLBACK
   ---------------------------------------------------------- */

.portal-user-view-details .portal-user-gravatar {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    border-radius: inherit !important;
}


/* ----------------------------------------------------------
   INITIALS FALLBACK
   ---------------------------------------------------------- */

.portal-user-view-details .portal-avatar-initials-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;
}


/* ----------------------------------------------------------
   MEMBER TEXT
   ---------------------------------------------------------- */

.portal-user-view-details .portal-user-intro-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}



/* ----------------------------------------------------------
   MOBILE — CENTER MEMBER IDENTITY & BADGES
   Version 0.1.3 TEST

   - Center name, badges and Member Since
   - Restore FIN emoji badges with full names
   - Remove native +N when FIN badges are present
   - Preserve 120px photo and desktop layout
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    .portal-user-view-details {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 24px 16px !important;
    }

    /* Keep existing mobile photo dimensions. */
    .portal-user-view-details > .portal-user-avatar,
    .portal-user-view-details > .portal-avatar-initials {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        flex: 0 0 120px !important;
    }

    /* Center the information column. */
    .portal-user-profile-user-view-wrap
    .portal-user-view-details .portal-user-intro-details,
    .portal-user-profile-user-view-wrap
    .portal-user-name-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    /* Stack the name, badges and message button. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Center the member name. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap > [role="heading"] {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Display all FIN emoji badges. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap
    > .fin-feed-author-emoji-badges {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }

    /* Emoji badge appearance. */
    .portal-user-profile-user-view-wrap
    .fin-feed-author-emoji-badges
    > .fin-feed-author-emoji {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        padding: 4px 9px;
        border: 1px solid
            var(--portal-border-color, #e5e7eb);
        border-radius: 999px;
        background:
            var(--portal-secondary-color, #f3f4f6);
        font-size: 15px;
        line-height: 1.4;
        white-space: nowrap;
    }

    /* Show full SureDash badge names on profiles. */
    .portal-user-profile-user-view-wrap
    .fin-feed-author-emoji-badges
    > .fin-feed-author-emoji::after {
        content: attr(title);
        font-size: 12px;
    }

    /* Hide the duplicate native badge groups
       only when FIN badges are available. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap:has(
        > .fin-feed-author-emoji-badges
    ) > .portal-user-badges-wrap {
        display: none !important;
    }

    /* Center native fallback badges if needed. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap
    > .portal-user-badges-wrap {
        justify-content: center !important;
    }

    /* Center Member Since and any headline. */
    .portal-user-profile-user-view-wrap
    .portal-user-name-wrapper > .portal-thread-details {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px 6px;
        width: 100% !important;
        margin-top: 10px !important;
        text-align: center !important;
    }

	

	/* ----------------------------------------------------------
	   FIN — MOBILE PROFILE ELEMENT ORDER
	   Version 0.1.5 TEST

	   Name → Badges → Member Since → Send Message
	   REPLACES v0.1.4 order rules
	   ---------------------------------------------------------- */

	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 8px !important;
		width: 100% !important;
		text-align: center !important;
	}

	/* Allow the native Member Since container and button
	   to participate in the same mobile flex layout. */
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-user-details-inner-wrap {
		display: contents !important;
	}

	/* Member name */
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-user-details-inner-wrap > [role="heading"] {
		order: 1;
	}

	/* Badges */
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-user-details-inner-wrap > .fin-feed-author-emoji-badges,
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-user-details-inner-wrap > .portal-user-badges-wrap {
		order: 2;
	}

	/* Member Since and existing profile headline */
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-thread-details {
		order: 3;
		margin-top: 2px !important;
		justify-content: center !important;
		text-align: center !important;
	}

	/* Separate member action, below identity information */
	.portal-user-profile-user-view-wrap
	.portal-user-name-wrapper > .portal-user-details-inner-wrap > .bm-suredash-profile-actions {
		order: 4;
		margin-top: 6px !important;
		justify-content: center !important;
	}

	
}


/* ----------------------------------------------------------
   FIN ABOUT PROFILE
   ---------------------------------------------------------- */

.fin-profile-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--portal-border-color, #e5e7eb);
}

.fin-profile-section:first-child {
    padding-top: 0;
}

.fin-profile-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fin-profile-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
}

.fin-profile-value {
    font-size: 16px;
    line-height: 1.65;
}

/* ----------------------------------------------------------
   MOBILE PROFILE PHOTO CONTROLS
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .portal-user-profile-gravatar-setup {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 24px !important;
    }

    .portal-user-profile-gravatar-setup
    .portal-avatar-data-wrapper {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px !important;
        flex: 0 0 96px !important;
        position: relative !important;
    }
	
	.portal-user-profile-photo-upload {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 8px !important;
		position: static !important;
		margin: 0 !important;
		transform: none !important;
	}
}

/* ----------------------------------------------------------
   FIN MEMBER SINCE
   ---------------------------------------------------------- */

/* SureDash normally hides Member Since on mobile.
   JS removes sd-hide-mobile and marks it ready. */

.portal-user-view-header
.portal-thread-details
.fin-member-since-ready {
    display: inline-flex !important;
    align-items: center;
}


/* ----------------------------------------------------------
   FIN NATIVE MOTTO
   ---------------------------------------------------------- */

.fin-native-motto,
.fin-native-motto-separator {
    display: none !important;
}

/* ----------------------------------------------------------
   BACK TO MEMBERS
   ---------------------------------------------------------- */

.fin-back-to-members {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

@media (max-width: 600px) {

    .fin-back-to-members {
        min-height: 44px;
        margin-bottom: 10px;
    }
}

/* ----------------------------------------------------------
   PREVENT iOS EDIT PROFILE INPUT ZOOM
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .portal-user-profile-editor-field input,
    .portal-user-profile-editor-field textarea {
        font-size: 16px !important;
    }

}


/* =========================================
   PUBLIC PROFILE — MOBILE PAGE GUTTERS
   ========================================= */

@media (max-width: 767px) {
    .portal-user-profile-user-view-wrap {
        padding-left: var(--fin-mobile-gutter) !important;
        padding-right: var(--fin-mobile-gutter) !important;
        box-sizing: border-box !important;
    }
}



/* =========================================
   FIN — PROFILE IDENTITY / DESKTOP SPLIT
   Version 0.1.1 TEST
   REPLACE desktop-specific layout rules
   ========================================= */

@media (min-width: 768px) {

    /* Photo column 40%, information column 60%. */
    .portal-user-profile-user-view-wrap
    .portal-user-view-details {
        display: grid !important;
        grid-template-columns:
            minmax(0, 2fr)
            minmax(0, 3fr) !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 24px !important;
    }


/* Larger circular photo within its column. */
.portal-user-profile-user-view-wrap
.portal-user-view-details > .portal-user-avatar,
.portal-user-profile-user-view-wrap
.portal-user-view-details > .portal-avatar-initials {
    width: min(100%, 250px) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 250px !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    justify-self: center !important;
    border-radius: 50% !important;
    flex: none !important;
}


    /* Give the member information its full column. */
    .portal-user-profile-user-view-wrap
    .portal-user-view-details .portal-user-intro-details {
        width: 100% !important;
        min-width: 0 !important;
        align-self: center;
    }

    /* Stack name, badges and message button. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: start;
        align-items: start !important;
        gap: 10px !important;
    }

    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap > [role="heading"] {
        grid-column: 1;
        grid-row: 1;
    }

    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap > .fin-feed-author-emoji-badges,
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap > .portal-user-badges-wrap {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
    }

    /* Message button no longer floats to far right. */
    .portal-user-profile-user-view-wrap
    .portal-user-details-inner-wrap > .bm-suredash-profile-actions {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        justify-content: flex-start;
        margin-top: 0 !important;
    }

    .portal-user-profile-user-view-wrap
    .portal-user-name-wrapper > .portal-thread-details {
        margin-top: 10px;
    }
}


/* ==========================================================
   FIN — PUBLIC PROFILE TABS
   Version 0.1.0 TEST

   - White background for the complete tab pill
   - Distinct fill for the active tab
   - Preserve native SureDash tab switching
   - Respect SureDash dark mode
   - Public member profiles only
   ========================================================== */

/* Complete tab navigation pill */
.portal-user-profile-user-view-wrap
.portal-user-profile-tabs-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 4px !important;

    background: #fff !important;
    border: 1px solid
        var(--portal-border-color, #e5e7eb) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Individual tabs */
.portal-user-profile-user-view-wrap
.portal-user-profile-tab {
    border-radius: 999px !important;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

/* Selected tab — Posts, Comments or About */
.portal-user-profile-user-view-wrap
.portal-user-profile-tab.active {
    background: #e9eef5 !important;
    color: #182737 !important;
    box-shadow: inset 0 0 0 1px #d9e1eb !important;
}

/* Hover on unselected tabs */
.portal-user-profile-user-view-wrap
.portal-user-profile-tab:not(.active):hover {
    background: #f4f6f9 !important;
}

/* Dark mode */
body.dark-mode
.portal-user-profile-user-view-wrap
.portal-user-profile-tabs-wrapper {
    background: var(
        --portal-content-bg-color,
        #202a36
    ) !important;
    border-color: var(
        --portal-border-color,
        #465466
    ) !important;
    box-shadow: none !important;
}

body.dark-mode
.portal-user-profile-user-view-wrap
.portal-user-profile-tab.active {
    background: #354458 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px #516078 !important;
}

body.dark-mode
.portal-user-profile-user-view-wrap
.portal-user-profile-tab:not(.active):hover {
    background: #2b394b !important;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .portal-user-profile-user-view-wrap
    .portal-user-profile-tab {
        transition: none !important;
    }
}




/* ==========================================================
   FIN — PUBLIC PROFILE PHOTO ENLARGEMENT
   Version: v0.1.2 TEST

   Desktop 1100px+: 50/50, 380px photo, 40px gap
   Smaller desktop/tablet: 40/60, up to 320px
   Mobile/PWA: 200px

   Individual public member profiles only.
   ========================================================== */

/* Desktop and tablet */

@media (min-width: 768px) {

    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-user-avatar,
    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-avatar-initials {
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        height: auto !important;
        max-height: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
}

/* Wide desktop */

@media (min-width: 1100px) {

    .portal-user-profile-user-view-wrap
    .portal-user-view-details {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 40px !important;
    }

    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-user-avatar,
    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-avatar-initials {
        width: min(100%, 380px) !important;
        max-width: 380px !important;
    }
}

/* Mobile / PWA */

@media (max-width: 767px) {

    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-user-avatar,
    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-avatar-initials {
        width: 200px !important;
        height: 200px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        flex: 0 0 200px !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
}

/* Initials fallback */

.portal-user-profile-user-view-wrap
.portal-user-view-details > .portal-avatar-initials
.portal-avatar-initials-text {
    font-size: 42px !important;
}

@media (min-width: 1100px) {

    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-avatar-initials
    .portal-avatar-initials-text {
        font-size: 50px !important;
    }
}

@media (max-width: 767px) {

    .portal-user-profile-user-view-wrap
    .portal-user-view-details > .portal-avatar-initials
    .portal-avatar-initials-text {
        font-size: 36px !important;
    }
}


/* ==========================================================
   FIN — PROFILES | MEMBER SINCE CALENDAR
   Version: 1.0.1 TEST — 2026-11-15
   Action: APPEND to existing CSS #147
   Scope: Individual member profiles only
   ========================================================== */

.portal-user-view-header
.portal-thread-details
.fin-member-since-ready svg {
    color: #E5A900 !important;
    stroke: currentColor !important;
}
