/* ==========================================
   Follow Button
========================================== */

.aff-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    min-height: 22px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: all .2s ease;
    vertical-align: middle;
}

.aff-follow-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

.aff-follow-btn.following {
    background: #fff;
    color: #2271b1;
}

.aff-follow-btn.loading {
    opacity: .6;
    pointer-events: none;
}

/* Make the button line up nicely with the author name */

.cs-meta-author-name + .aff-follow-btn {
    margin-left: 8px;
    position: relative;
    top: -1px;
}

.cs-page__title + .aff-follow-btn {
    margin-left: 10px;
    vertical-align: middle;
}

.cs-page__author-name {
    display: grid;
    text-align-last: left;
}


/* ==========================================
   Feed
========================================== */

.aff-feed{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin:30px 0;
}

.aff-feed-item{
    display:flex;
    align-items:flex-start;
    gap:18px;
    padding:16px;
    border:1px solid #7f7f7f57;
    border-radius:8px;
    background:#00000000;
    transition:.2s ease;
}

.aff-feed-item:hover{
    border-color:#d8d8d8;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
}

/* Fixed thumbnail */

.aff-feed-item > a:first-child{
    flex:0 0 150px;
    width:150px;
}

.aff-feed-item img{
    width:150px;
    height:100px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}

/* Content */

.aff-feed-item > :not(a:first-child){
    flex:1;
    min-width:0;
}

.aff-feed-title{
    margin:0 0 8px;
    font-size:21px;
    line-height:1.35;
    font-weight:700;
}

.aff-feed-title a{
    color:#222;
    text-decoration:none;
}

.aff-feed-title a:hover{
    color:#2271b1;
}

.aff-feed-meta{
    margin-bottom:10px;
    font-size:13px;
    color:#8d8d8d;
}

.aff-feed-meta a{
    color:#2271b1;
    text-decoration:none;
    font-weight:600;
}

.aff-feed-excerpt{
    color:#8d8d8d;
    font-size:15px;
    line-height:1.65;
}

.aff-feed-excerpt p{
    margin:0;
}

/* Mobile */

@media (max-width:700px){

    .aff-feed-item{
        flex-direction:column;
    }

    .aff-feed-item>a:first-child{
        width:100%;
        flex:none;
    }

    .aff-feed-item img{
        width:100%;
        height:auto;
    }

}



/* ==========================================
   Pagination
========================================== */

.aff-pagination {
    margin-top: 30px;
}

.aff-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 0px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 100px;
}

.aff-pagination .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    padding: 0 13px;
}