#sidebar .site-sidebar {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

#sidebar .site-sidebar > br {
    display: none;
}

#sidebar .sidebar-card.box {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce7ed;
    border-radius: .68rem;
    background: #fff;
    box-shadow: 0 .2rem .85rem rgb(32 72 94 / 6%);
}

#sidebar .sidebar-card.card-accent-side-1 {
    border-left-width: 2px !important;
}

#sidebar .sidebar-card.card-accent-side-2 {
    border-top-width: 2px !important;
}

#sidebar .sidebar-card.card-accent-side-3 {
    border-right-width: 2px !important;
}

#sidebar .sidebar-card.card-accent-side-4 {
    border-bottom-width: 2px !important;
}

#sidebar .sidebar-card > .border {
    padding: .65rem .72rem;
}

#sidebar .sidebar-card .sidebar-card__title {
    display: flex;
    align-items: center;
    gap: .38rem;
    margin: 0 0 .42rem;
    padding: 0 0 .42rem;
    border-bottom: 1px solid #e8eff3;
    color: #30434e;
    font-family: "PT Sans", sans-serif;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
    text-shadow: none;
}

#sidebar .sidebar-card__title svg {
    flex: 0 0 auto;
    width: .95rem;
    height: .95rem;
    fill: #1683c7;
}

#sidebar .sidebar-card__title a {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: .38rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

#sidebar .sidebar-card__title a::after {
    content: "›";
    margin-left: auto;
    color: #8ca7b5;
    font-size: 1rem;
    font-weight: 400;
    line-height: .8;
}

#sidebar .sidebar-card__title a:hover,
#sidebar .sidebar-card__title a:focus-visible {
    color: #1683c7;
    text-decoration: none;
}

#sidebar .sidebar-card__title a:hover::after,
#sidebar .sidebar-card__title a:focus-visible::after {
    color: #1683c7;
}

#sidebar .sidebar-ranking,
#sidebar .sidebar-link-list,
#sidebar .sidebar-tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar .sidebar-ranking {
    counter-reset: sidebar-author;
}

#sidebar .sidebar-ranking li {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .32rem;
    min-height: 1.55rem;
    margin: 0;
    border-bottom: 1px solid #eef3f6;
    counter-increment: sidebar-author;
}

#sidebar .sidebar-ranking li::before {
    content: counter(sidebar-author);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    color: #687b86;
    background: #edf4f7;
    font-size: .56rem;
    font-weight: 700;
}

#sidebar .sidebar-ranking li:nth-child(1)::before {
    background: #edc94f;
}

#sidebar .sidebar-ranking li:nth-child(2)::before {
    background: #d4dce0;
}

#sidebar .sidebar-ranking li:nth-child(3)::before {
    background: #cf8b54;
}

#sidebar .sidebar-ranking li > span:first-of-type {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 1.55rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#sidebar .sidebar-ranking a,
#sidebar .sidebar-link-list a {
    display: inline-flex;
    align-items: center;
    color: #277d9e;
    font-size: .73rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
}

#sidebar .sidebar-ranking a:hover,
#sidebar .sidebar-link-list a:hover {
    color: #0a6fa8;
    text-decoration: underline;
}

#sidebar .sidebar-ranking .counter,
#sidebar .sidebar-link-list .counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 1rem;
    margin: 0;
    padding: .1rem .32rem;
    border: 0;
    border-radius: 999px;
    color: #59717e;
    background: #eef4f7;
    font-size: .59rem;
    font-weight: 700;
    line-height: 1.2;
}

#sidebar .sidebar-link-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .32rem;
    min-height: 1.58rem;
    margin: 0;
    border-bottom: 1px solid #eef3f6;
}

#sidebar .sidebar-link-list li:last-child,
#sidebar .sidebar-ranking li:last-child {
    border-bottom: 0;
}

#sidebar .sidebar-link-list li > a {
    min-width: 0;
    min-height: 1.58rem;
}

#sidebar .sidebar-card .bottom-box-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: right;
    gap: .22rem;
    margin: .35rem 0 0;
    padding: .2rem .38rem;
    border: 1px solid #cfe5f0;
    border-radius: .38rem;
    color: #1683c7;
    background: #f1f8fb;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}

#sidebar .sidebar-card .bottom-box-link::after {
    content: "→";
    font-size: .7rem;
}

#sidebar .sidebar-card .bottom-box-link:hover,
#sidebar .sidebar-card .bottom-box-link:focus-visible {
    color: #0a6fa8;
    background: #eaf6fb;
    text-decoration: none;
}

#sidebar .sidebar-card > .border::after {
    content: "";
    display: block;
    clear: both;
}

#sidebar .sidebar-useful-links {
    display: grid;
    gap: .35rem;
}

#sidebar .sidebar-useful-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2.45rem;
    padding: .35rem .45rem;
    overflow: hidden;
    border: 1px solid #e2ebef;
    border-radius: .5rem;
    background: #f8fbfc;
    transition: border-color .15s ease, background-color .15s ease;
}

#sidebar .sidebar-useful-link:hover,
#sidebar .sidebar-useful-link:focus-visible {
    border-color: #b9d9e8;
    background: #eef8fc;
}

#sidebar .sidebar-useful-link img {
    display: block;
    max-width: 100%;
    max-height: 2.25rem;
    object-fit: contain;
}

#sidebar .sidebar-article-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

#sidebar .sidebar-article-list .card {
    display: grid;
    grid-template-columns: 3.8rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    flex: none;
    gap: .16rem .45rem;
    padding: .36rem;
    border: 1px solid #e3ebef;
    border-radius: .55rem;
    background: #fff;
    box-shadow: none;
}

#sidebar .sidebar-article-list .card-image-link {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 3.8rem;
    min-width: 0;
    height: 3.8rem;
    border: 0;
    border-radius: .42rem;
}

#sidebar .sidebar-article-list .card-title {
    display: -webkit-box;
    grid-column: 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #30434e;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sidebar .sidebar-article-list .card-title:hover {
    color: #1683c7;
}

#sidebar .sidebar-article-list .card-description {
    display: -webkit-box;
    grid-column: 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #6b7d87;
    font-size: .61rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sidebar .sidebar-article-list .card-meta {
    display: flex;
    align-self: end;
    grid-column: 2;
    gap: .5rem;
    margin: 0;
    padding: .12rem 0 0;
    border: 0;
    color: #82929a;
    font-size: .58rem;
}

#sidebar .sidebar-article-list .card-meta svg {
    width: .72rem;
    height: .72rem;
}

@media (max-width: 760px) {
    #sidebar .site-sidebar {
        gap: .5rem;
    }
}
