/* ForumX XenForo-inspired responsive post layout */

body article.post.post-classic-card.post-clean-card {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-areas:
        "author topbar"
        "author main" !important;
    overflow: hidden !important;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent) !important;
    border-radius: 16px !important;
    background: var(--card) !important;
    box-shadow: 0 12px 30px rgba(2, 8, 23, .14) !important;
}

body article.post.post-clean-card > .post-classic-topbar {
    grid-area: topbar !important;
    min-height: 54px !important;
    padding: 8px 14px 8px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--card-2) 48%, var(--card)) !important;
}

body article.post.post-clean-card .post-top-date,
body article.post.post-clean-card .post-top-tools {
    min-width: 0 !important;
}

body article.post.post-clean-card .post-top-tool {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body article.post.post-clean-card .post-author-strip {
    grid-area: author !important;
    min-width: 0 !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 20px 16px !important;
    border-right: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
    border-bottom: 0 !important;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 150px),
        color-mix(in srgb, var(--card-2) 45%, var(--card)) !important;
}

body article.post.post-clean-card .post-author-profile {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    color: var(--text) !important;
    text-align: center !important;
    text-decoration: none !important;
}

body article.post.post-clean-card .post-author-avatar {
    position: relative !important;
    flex: 0 0 108px !important;
    width: 108px !important;
    height: 108px !important;
    padding: 3px !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--accent) 58%, var(--line)) !important;
    box-shadow: 0 10px 24px rgba(2, 8, 23, .18) !important;
}

body article.post.post-clean-card .post-author-avatar .avatar {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 2px solid var(--card) !important;
    border-radius: 11px !important;
}

body article.post.post-clean-card .post-author-avatar i {
    position: absolute !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 14px !important;
    height: 14px !important;
    border: 3px solid var(--card) !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--muted) 70%, transparent) !important;
}

body article.post.post-clean-card .post-author-avatar i.is-online {
    background: #22c55e !important;
}

body article.post.post-clean-card .post-author-copy {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
}

body article.post.post-clean-card .post-author-copy > strong {
    max-width: 100% !important;
    overflow: hidden !important;
    color: var(--text) !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body article.post.post-clean-card .post-author-copy > small {
    display: none !important;
}

body article.post.post-clean-card .post-author-ranks-inline {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    overflow: visible !important;
}

body article.post.post-clean-card .post-author-ranks-inline .fx-rank-stack {
    display: contents !important;
}

body article.post.post-clean-card .post-author-ranks-inline .fx-rank,
body article.post.post-clean-card .post-author-ranks-inline .role-badge,
body article.post.post-clean-card .post-author-ranks-inline .badge {
    width: 100% !important;
    max-width: none !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body article.post.post-clean-card .post-author-ranks-inline .fx-rank__copy {
    gap: 0 !important;
}

body article.post.post-clean-card .post-author-ranks-inline .fx-rank__copy small,
body article.post.post-clean-card .post-author-ranks-inline small {
    display: none !important;
}

body article.post.post-clean-card .post-author-stats {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-top: 2px !important;
    color: var(--muted) !important;
}

body article.post.post-clean-card .post-author-stats > span {
    min-height: 34px !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 9px !important;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent) !important;
    border-radius: 8px !important;
    background: color-mix(in srgb, var(--card) 84%, transparent) !important;
}

body article.post.post-clean-card .post-author-stats svg {
    width: 15px !important;
    height: 15px !important;
    color: color-mix(in srgb, var(--accent) 70%, var(--muted)) !important;
}

body article.post.post-clean-card .post-author-stats small {
    overflow: hidden !important;
    color: var(--muted) !important;
    font-size: .72rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body article.post.post-clean-card .post-author-stats b {
    color: var(--text) !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
}

body article.post.post-clean-card > .post-classic-main {
    grid-area: main !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body article.post.post-clean-card .post-classic-body {
    min-height: 190px !important;
    padding: 28px 24px !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

body article.post.post-clean-card .post-classic-signature {
    margin-inline: 24px !important;
    padding-block: 15px !important;
    background: transparent !important;
}

body article.post.post-clean-card .post-classic-signature,
body article.post.post-clean-card .post-classic-signature * {
    font-style: normal !important;
    transform: none !important;
}

body article.post.post-clean-card .post-classic-footer {
    min-height: 62px !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--card-2) 30%, transparent) !important;
}

body article.post.post-clean-card .post-action-button {
    min-height: 36px !important;
    padding-inline: 10px !important;
    border-radius: 8px !important;
}

@media (max-width: 900px) {
    body article.post.post-classic-card.post-clean-card {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas:
            "topbar"
            "author"
            "main" !important;
    }

    body article.post.post-clean-card > .post-classic-topbar {
        padding-inline: 12px !important;
    }

    body article.post.post-clean-card .post-author-strip {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 10px 14px !important;
        padding: 12px 14px !important;
        border-right: 0 !important;
        border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
        background:
            linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 45%),
            color-mix(in srgb, var(--card-2) 36%, var(--card)) !important;
    }

    body article.post.post-clean-card .post-author-profile {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
    }

    body article.post.post-clean-card .post-author-avatar {
        flex-basis: 54px !important;
        width: 54px !important;
        height: 54px !important;
        padding: 2px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    body article.post.post-clean-card .post-author-avatar .avatar {
        border-radius: 9px !important;
    }

    body article.post.post-clean-card .post-author-copy {
        width: auto !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    body article.post.post-clean-card .post-author-copy > strong {
        font-size: .98rem !important;
        text-align: left !important;
    }

    body article.post.post-clean-card .post-author-ranks-inline {
        width: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    body article.post.post-clean-card .post-author-ranks-inline .fx-rank,
    body article.post.post-clean-card .post-author-ranks-inline .role-badge,
    body article.post.post-clean-card .post-author-ranks-inline .badge {
        width: auto !important;
        max-width: 145px !important;
        min-height: 22px !important;
        padding: 3px 7px !important;
        border-radius: 999px !important;
        font-size: .62rem !important;
    }

    body article.post.post-clean-card .post-author-stats {
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    body article.post.post-clean-card .post-author-stats > span {
        min-height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 8px !important;
        border: 0 !important;
        border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body article.post.post-clean-card .post-author-stats > span:first-child {
        border-left: 0 !important;
    }

    body article.post.post-clean-card .post-author-stats small,
    body article.post.post-clean-card .post-author-stat-joined {
        display: none !important;
    }

    body article.post.post-clean-card .post-classic-body {
        min-height: 130px !important;
        padding: 20px 16px !important;
    }

    body article.post.post-clean-card .post-classic-signature {
        margin-inline: 16px !important;
    }
}

@media (max-width: 620px) {
    body article.post.post-classic-card.post-clean-card {
        border-radius: 13px !important;
        box-shadow: 0 8px 22px rgba(2, 8, 23, .11) !important;
    }

    body article.post.post-clean-card > .post-classic-topbar {
        min-height: 48px !important;
        padding: 7px 9px !important;
    }

    body article.post.post-clean-card .post-author-strip {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    body article.post.post-clean-card .post-author-avatar {
        flex-basis: 44px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
    }

    body article.post.post-clean-card .post-author-avatar .avatar {
        border-radius: 8px !important;
    }

    body article.post.post-clean-card .post-author-avatar i {
        width: 10px !important;
        height: 10px !important;
        border-width: 2px !important;
    }

    body article.post.post-clean-card .post-author-copy > strong {
        font-size: .9rem !important;
    }

    body article.post.post-clean-card .post-author-ranks-inline .fx-rank,
    body article.post.post-clean-card .post-author-ranks-inline .role-badge,
    body article.post.post-clean-card .post-author-ranks-inline .badge {
        max-width: 125px !important;
        min-height: 20px !important;
        padding: 2px 6px !important;
        font-size: .56rem !important;
    }

    body article.post.post-clean-card .post-author-stats {
        display: none !important;
    }

    body article.post.post-clean-card .post-classic-body {
        min-height: 90px !important;
        padding: 15px 11px !important;
        font-size: .94rem !important;
        line-height: 1.58 !important;
    }

    body article.post.post-clean-card .post-classic-signature {
        margin-inline: 11px !important;
        padding-block: 10px !important;
    }

    body article.post.post-clean-card .post-classic-footer {
        min-height: 0 !important;
        padding: 8px 9px !important;
    }

    body article.post.post-clean-card .post-action-button {
        min-height: 34px !important;
        padding-inline: 8px !important;
        font-size: .8rem !important;
    }
}

/* Elite post management row */
body article.post.post-clean-card .post-management-row {
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 24px !important;
    padding: 12px 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
    background: transparent !important;
}
body article.post.post-clean-card .post-management-row > time {
    color: var(--muted) !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
}
body article.post.post-clean-card .post-management-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: auto !important;
}
body article.post.post-clean-card .post-management-actions form {
    display: inline-flex !important;
    margin: 0 !important;
}
body article.post.post-clean-card .post-management-button,
body article.post.post-clean-card .post-more-trigger {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--card-2) 46%, transparent) !important;
    color: color-mix(in srgb, var(--text) 86%, var(--muted)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    font: inherit !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
}
body article.post.post-clean-card .post-management-button:hover,
body article.post.post-clean-card .post-more-trigger:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
    background: color-mix(in srgb, var(--accent) 8%, var(--card-2)) !important;
    color: var(--text) !important;
}
body article.post.post-clean-card .post-management-button.danger {
    color: #ff7f91 !important;
    border-color: color-mix(in srgb, #ef476f 24%, var(--line)) !important;
    background: color-mix(in srgb, #ef476f 6%, var(--card-2)) !important;
}
body article.post.post-clean-card .post-management-button.danger:hover {
    color: #ff9aaa !important;
    border-color: color-mix(in srgb, #ef476f 42%, var(--line)) !important;
    background: color-mix(in srgb, #ef476f 11%, var(--card-2)) !important;
}
body article.post.post-clean-card .post-management-button .forumx-icon,
body article.post.post-clean-card .post-management-button > svg,
body article.post.post-clean-card .post-more-trigger > svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
}
body article.post.post-clean-card .post-more-menu {
    position: relative !important;
    display: inline-flex !important;
}
body article.post.post-clean-card .post-more-trigger {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    list-style: none !important;
}
body article.post.post-clean-card .post-more-trigger::-webkit-details-marker {
    display: none !important;
}
body article.post.post-clean-card .post-more-popover {
    position: absolute !important;
    z-index: 50 !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    width: min(280px, calc(100vw - 32px)) !important;
    display: grid !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent) !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--card) 98%, #020617) !important;
    box-shadow: 0 20px 42px rgba(2,8,23,.32) !important;
}
body article.post.post-clean-card .post-more-vote {
    display: grid !important;
    gap: 8px !important;
}
body article.post.post-clean-card .post-more-vote > span {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: var(--muted) !important;
    font-size: .78rem !important;
}
body article.post.post-clean-card .post-more-vote form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}
body article.post.post-clean-card .post-more-option {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 10px !important;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent) !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, var(--card-2) 52%, transparent) !important;
    color: var(--text) !important;
    font: inherit !important;
    font-size: .78rem !important;
    cursor: pointer !important;
}
body article.post.post-clean-card .post-more-option.active {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line)) !important;
    background: color-mix(in srgb, var(--accent) 10%, var(--card-2)) !important;
}
body article.post.post-clean-card .post-more-option.danger {
    color: #ff8497 !important;
}
body article.post.post-clean-card .post-classic-footer {
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 12px 24px !important;
    border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent) !important;
    background: color-mix(in srgb, var(--card-2) 24%, transparent) !important;
}
body article.post.post-clean-card .post-classic-actions-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: auto !important;
}
body article.post.post-clean-card .post-action-button {
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--card-2) 42%, transparent) !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    font-size: .9rem !important;
    font-weight: 750 !important;
}
body article.post.post-clean-card .post-action-button:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
    background: color-mix(in srgb, var(--accent) 8%, var(--card-2)) !important;
}
body article.post.post-clean-card .post-action-button.post-action-like {
    min-width: 130px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #3156a5), color-mix(in srgb, var(--accent) 64%, #213d7d)) !important;
    border-color: color-mix(in srgb, var(--accent) 58%, transparent) !important;
    color: #f8fbff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body article.post.post-clean-card .post-action-button.post-action-like:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #3156a5), color-mix(in srgb, var(--accent) 70%, #213d7d)) !important;
}

@media (max-width: 700px) {
    body article.post.post-clean-card .post-management-row {
        margin: 0 12px !important;
        padding: 10px 0 !important;
        align-items: center !important;
        gap: 10px !important;
    }
    body article.post.post-clean-card .post-management-row > time {
        font-size: .72rem !important;
    }
    body article.post.post-clean-card .post-management-actions {
        gap: 7px !important;
    }
    body article.post.post-clean-card .post-management-button {
        min-height: 36px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: .76rem !important;
    }
    body article.post.post-clean-card .post-more-trigger {
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
    }
    body article.post.post-clean-card .post-classic-footer {
        min-height: 0 !important;
        padding: 10px 12px !important;
    }
    body article.post.post-clean-card .post-classic-actions-right {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1.1fr 1fr 1fr !important;
        gap: 8px !important;
    }
    body article.post.post-clean-card .post-footer-reaction-form {
        min-width: 0 !important;
    }
    body article.post.post-clean-card .post-action-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 0 9px !important;
        font-size: .78rem !important;
    }
}

@media (max-width: 440px) {
    body article.post.post-clean-card .post-management-row {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
    body article.post.post-clean-card .post-management-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    body article.post.post-clean-card .post-management-button {
        flex: 1 1 auto !important;
    }
    body article.post.post-clean-card .post-classic-actions-right {
        grid-template-columns: 1fr 1fr !important;
    }
    body article.post.post-clean-card .post-footer-reaction-form {
        grid-column: 1 / -1 !important;
    }
}
