.tommys-sidebar {
    display: grid;
    gap: 30px;
    color: #151515;
    font: 0.9375rem/1.6 system-ui, sans-serif;
}

.tommys-sidebar .tommys-sidebar-search,
.tommys-sidebar .tommys-sidebar-recent {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    border: 1px solid #151515;
    background: #fff;
}

.tommys-sidebar .tommys-sidebar-search input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0.6rem 1rem;
    border: 1px solid #151515;
    border-radius: 2px;
    background: #fff;
    color: #151515;
    font: inherit;
}

.tommys-sidebar .tommys-sidebar-search button:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.tommys-sidebar .tommys-sidebar-recent li {
    margin: 0;
    padding: 5px 0 20px;
    list-style: none;
}

.tommys-sidebar .tommys-sidebar-recent li + li {
    padding-top: 36px;
    border-top: 1px solid #ddd;
}

.tommys-sidebar .tommys-sidebar-recent li:last-child {
    padding-bottom: 12px;
}

.tommys-sidebar .tommys-sidebar-post {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tommys-sidebar .tommys-sidebar-image {
    display: block;
    width: 75px;
    height: 75px;
    background: #f2f2f2;
}

.tommys-sidebar .tommys-sidebar-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tommys-sidebar time {
    display: block;
    color: #404040;
}

.tommys-sidebar .tommys-sidebar-post:hover .tommys-sidebar-title,
.tommys-sidebar .tommys-sidebar-post:focus-visible .tommys-sidebar-title {
    text-decoration: underline;
}

@media (min-width: 783px) {
    .tommys-sidebar-anchor.is-pinned {
        min-height: var(--tommys-sidebar-space);
    }

    .tommys-sidebar-anchor.is-pinned > .tommys-sidebar {
        position: fixed;
        top: var(--tommys-sidebar-top);
        left: var(--tommys-sidebar-left);
        width: var(--tommys-sidebar-width);
        max-height: var(--tommys-sidebar-height);
        box-sizing: border-box;
        overflow: auto;
        overscroll-behavior: contain;
    }
}
