.post--item {
    padding: 25px 40px;
    border-radius: 5px;
    body:not(.is-cleanMode) & {
        &:hover {
            background-color: rgba(234, 243, 255, 0.5);
            background-image: linear-gradient(12deg, #fff 50%, hsla(0, 0%, 100%, 0));
            border-radius: 18px;
            transform: none;
            transform-origin: 50% 50% 0px;
        }
    }
    &__status {
        .avatar {
            border-radius: 100%;
            margin-right: 10px;
            width: 36px;
            height: 36px;
        }
        header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            a {
                color: var(--farallon-text-gray);
                display: flex;
                align-items: center;
                font-size: var(--farallon-text-size-small);
                &:hover {
                    color: var(--farallon-hover-color);
                }
            }
        }
        border-radius: 5px;
        margin-top: 10px;
        margin-bottom: 10px;
        .description {
            margin-bottom: 0;
        }
    }
    .post--title {
        font-size: 20px;
        font-weight: bold;
        line-height: 1.4;
        margin-bottom: 5px;
        .sticky--post {
            font-size: 12px;
            color: #fff;
            font-weight: normal;
            background: linear-gradient(90deg, #8a63d2, #f81ce5);
            padding: 3px 5px;
            border-radius: 5px;
            line-height: 1;
            display: inline-block;
            vertical-align: middle;
        }
        &:hover {
            color: var(--farallon-hover-color);
        }
        & + .meta {
            margin-top: 10px;
        }
    }
    .content {
        flex: 1 1 auto;
    }
    &:last-child {
        border-bottom: 0;
    }
    .description {
        font-size: 15px;
        color: var(--farallon-text-light);
        line-height: 1.6;
        //letter-spacing: 0.2px;
        // text-align: justify;
    }
    .meta {
        font-size: var(--farallon-text-size-small);
        color: var(--farallon-text-gray-lightest);
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 2px;
        time {
            display: flex;
            align-items: center;
        }
        svg {
            margin-right: 4px;
            fill: var(--farallon-text-gray-lightest);
            margin-left: 10px;
            &:first-child {
                margin-left: 0;
            }
        }
        a {
            &:hover {
                text-decoration: underline;
            }
        }
    }

    .cover--link {
        position: relative;
        width: 150px;
        flex: 0 0 auto;
        margin-left: 20px;
        display: flex;
        align-items: center;
        height: 100px;
        border-radius: 5px;
        overflow: hidden;
        &:hover {
            .cover {
                transform: scale(1.1);
            }
        }
        .marker--tips {
            left: auto;
            right: 8px;
            top: 8px;
        }
        .cover--count {
            position: absolute;
            bottom: 8px;
            left: 8px;
            background-color: rgba(0, 0, 0, 0.5);
            color: rgba(255, 255, 255, 0.95);
            padding: 0px 5px;
            border-radius: 5px;
            font-size: 12px;
            display: flex;
            align-items: center;
            font-weight: bold;
            svg {
                margin-right: 5px;
            }
        }
    }

    .cover {
        width: 150px;
        height: 100px;
        object-fit: cover;
        border-radius: 5px;
        aspect-ratio: 150/100;
        transition: 0.5s;
    }
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    //mask-image: linear-gradient(90deg, transparent, #fff 90px, #fff calc(100% - 90px), transparent);
    .loadmore {
        border: 1px solid var(--farallon-border-color);
        cursor: pointer;
        position: relative;
        padding: 4px 32px;
        border-radius: 8px;
        font-size: var(--farallon-text-size-smallest);
        color: var(--farallon-text-gray);
        &:hover {
            border-color: var(--farallon-hover-color);
            color: var(--farallon-hover-color);
        }
    }
    .page-numbers,
    .post-page-numbers {
        //border-radius: 999rem;
        padding: 20px;
        &:hover {
            color: var(--farallon-hover-color);
        }
        // border: 1px solid #eee;
        &.current {
            font-size: 20px;
            font-weight: bold;
            cursor: not-allowed;
            body:not(.is-cleanMode) & {
                &:after {
                    border: 12px solid transparent;
                    background-clip: padding-box;
                    content: '';
                    filter: blur(36px);
                    height: 50%;
                    opacity: 0.8;
                    position: absolute;
                    width: 50%;
                    //z-index: -1;
                    background-image: linear-gradient(165deg, #007cf0, #00dfd8);
                    left: 0;
                }
            }
        }

        &.dots {
            color: var(--farallon-text-gray);
        }
        position: relative;
    }

    &__comment {
        .page-numbers,
        .post-page-numbers {
            padding: 10px;
            line-height: 1;
            font-size: var(--farallon-text-size-small);
            &.current {
                font-size: 16px;
                &:after {
                    border: 6px solid transparent;
                    background-clip: padding-box;
                    content: '';
                    filter: blur(10px);
                    height: 50%;
                    opacity: 0.8;
                    position: absolute;
                    width: 50%;
                    background-image: linear-gradient(165deg, #007cf0, #00dfd8);
                    left: 0;
                }
            }
        }
    }
}

@media (max-width: 820px) {
    .post--item {
        padding: 15px 25px;
    }
}

@media (max-width: 768px) {
    .post--item {
        padding: 15px 0;
        &__status {
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
            padding-bottom: 10px;
            .avatar {
                width: 32px;
                height: 32px;
            }
        }
        &:hover {
            background-color: transparent;
        }
        &:not(&__status) {
            .description {
                min-height: 2.6em;
                line-height: 1.3em;
                font-size: 14px;
                letter-spacing: 0;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                margin-bottom: 5px;
            }
        }
        .cover--link {
            width: 75px;
            height: 75px;
            margin-left: 10px;
        }
        .cover {
            width: 75px;
            height: 75px;
            aspect-ratio: 1/1;
        }
        .post--title {
            font-size: 18px;
        }

        .meta {
            font-size: 12px;
        }
    }
}

.post-navigation {
    &.is-active {
        .nav-links {
            transform: translate3d(0, 0, 0);
        }
    }
    overflow: hidden;
    padding-top: 20px;
    .nav-links {
        position: relative;
        transform: translate3d(0, 150%, 0);
        display: flex;
        justify-content: space-between;
        transition: 0.5s;
        & > div {
            &:only-child {
                text-align: center !important;
                width: 100%;
            }
        }
    }
    .nav-previous,
    .nav-next {
        padding: 15px;
        background-color: var(--farallon-background-white);
        width: 48%;
        box-sizing: border-box;
        a {
            display: flex;
            flex-direction: column;
        }
        text-align: right;
        background-origin: border-box;
        background-clip: padding-box, border-box;
        border: 1px solid transparent;
    }

    .nav-previous {
        text-align: left;
    }
    .meta-nav {
        font-size: var(--farallon-text-size-smallest);
        text-transform: uppercase;
        color: var(--farallon-text-gray);
    }

    .post-title {
        font-size: 14px;
        min-height: 3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        &:hover {
            color: var(--farallon-hover-color);
        }
    }
}

.post--cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    padding-bottom: 20px;
}

.post--card {
    border: 1px solid var(--farallon-border-color);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;

    body:not(.is-cleanMode) & {
        &:hover {
            background-color: #fafafa;
            background: linear-gradient(
                    89.99999999999999deg,
                    rgba(255, 233, 244, 0.3) 0%,
                    rgba(234, 243, 255, 0.5) 100%
            );
            border-radius: 18px;
            transform: none;
            transform-origin: 50% 50% 0px;
        }
    }

    .cover--link {
        display: flex;
        align-items: center;
        position: relative;
    }
    .cover {
        border-radius: 10px;
        margin-bottom: 12px;
        object-fit: cover;
        aspect-ratio: 60/36;
    }
    .post--title {
        font-size: 20px;
        font-weight: bold;
        line-height: 1.4;
        margin-bottom: 5px;
        &:hover {
            color: var(--farallon-hover-color);
        }
        & + .meta {
            margin-top: 10px;
        }
    }

    .content {
        position: relative;
        .date {
            height: 36px;
            width: 36px;
            background-color: var(--farallon-background-white);
            border-radius: 100%;
            position: absolute;
            text-align: center;
            font-weight: bold;
            font-size: 24px;
            line-height: 36px;
            text-align: center;
            color: var(--farallon-text-gray);
            right: 15px;
            top: -30px;
            box-shadow: 0 0 0 5px var(--farallon-border-color-light);
        }
    }

    .description {
        font-size: 15px;
        color: var(--farallon-text-light);
        line-height: 1.6;
    }

    .meta {
        font-size: var(--farallon-text-size-small);
        color: var(--farallon-text-gray-lightest);
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 2px;
        time {
            display: flex;
            align-items: center;
        }
        svg {
            margin-right: 4px;
            fill: var(--farallon-text-gray-lightest);
            margin-left: 10px;
            &:first-child {
                margin-left: 0;
            }
        }
        a {
            &:hover {
                text-decoration: underline;
            }
        }
    }
}

@media (max-width: 414px) {
    .post--cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .post--card {
        padding: 15px;
    }
}

.farallon--toc {
    background-color: var(--farallon-background-gray);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: var(--farallon-text-size-small);
    margin-bottom: 15px;
    color: var(--farallon-text-light);
    summary {
        cursor: pointer;
    }
    ul {
        margin-bottom: 0 !important;
        li {
            margin-bottom: 0 !important;
            margin-left: 20px !important;
            &::before {
                padding-right: 6px !important;
            }
        }
    }
    line-height: 1.4 !important;
    a {
        box-shadow: none !important;
        &:hover {
            color: var(--farallon-hover-color);
        }
    }
}
