/* Only the recent-posts widget: leave article typography and other widgets alone. */
#right-sidebar .widget:has(.ig-recent-posts) {
    padding: 26px 24px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgb(24 45 72 / 3%);
    background: #fff;
}
#right-sidebar .ig-recent-posts,
#right-sidebar .ig-recent-posts * { box-sizing: border-box; }
#right-sidebar .ig-recent-posts h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e7ecf2;
    color: #253449;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.025em;
}
#right-sidebar .ig-recent-posts h2::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #3268b1;
}
#right-sidebar .ig-recent-posts .wp-block-latest-posts {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ig-recent;
}
#right-sidebar .ig-recent-posts .wp-block-latest-posts > li {
    position: relative;
    margin: 0;
    padding: 15px 0 15px 32px;
    border-bottom: 1px solid #eef1f5;
    counter-increment: ig-recent;
}
#right-sidebar .ig-recent-posts .wp-block-latest-posts > li:last-child { border-bottom: 0; padding-bottom: 0; }
#right-sidebar .ig-recent-posts .wp-block-latest-posts > li::before {
    content: counter(ig-recent, decimal-leading-zero);
    position: absolute;
    top: 18px;
    left: 0;
    color: #8b9aaf;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    font-variant-numeric: tabular-nums;
}
#right-sidebar .ig-recent-posts .wp-block-latest-posts__post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #35445a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -.02em;
    text-decoration: none;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transition: color .15s;
}
#right-sidebar .ig-recent-posts .wp-block-latest-posts__post-title:hover { color: #215bb0; }
#right-sidebar .ig-recent-posts .wp-block-latest-posts__post-title:focus-visible {
    outline: 2px solid #3268b1;
    outline-offset: 4px;
    border-radius: 2px;
    -webkit-line-clamp: unset;
}
@media (max-width: 768px) {
    #right-sidebar .widget:has(.ig-recent-posts) { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    #right-sidebar .ig-recent-posts .wp-block-latest-posts__post-title { transition: none; }
}
