/* ------------------------------------------------------------------ *
 *  RLS Sibling Pages Widget — portable styles
 *
 *  Layout patterned after the antigravity theme's .sidebar-articles
 *  block: per-item bottom border, thumbnail and title in a flex row
 *  with a gap, date dropped to its own line beneath the link. The
 *  widget puts .sidebar-articles on both the sibling_pages and
 *  sibling_posts variants, so a single ruleset covers both.
 *
 *  Theme custom properties (--bg-light, --text-main, --text-light)
 *  carry literal fallbacks so the widget still renders cleanly on
 *  themes that don't define them.
 * ------------------------------------------------------------------ */

.sidebar-articles ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-articles li {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bg-light, #e5e5e5);
    list-style: none;
}

.sidebar-articles a {
    display: flex;
    gap: 0.75rem;
    color: var(--text-main, currentColor);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.sidebar-articles img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
}

.sidebar-articles span {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar-articles time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light, #777);
}
