.wb-notes {
    min-height: 66vh;
    padding-top: calc(var(--wb-header-height) + clamp(2.5rem, 6vw, 5rem));
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.wb-notes-heading,
.wb-notes-empty {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.wb-notes h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    overflow-wrap: anywhere;
}

.wb-notes-heading p,
.wb-note-card p,
.wb-note-order-hint {
    line-height: 1.65;
}

.wb-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.wb-note-card {
    min-width: 0;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.wb-note-card-link {
    display: block;
    height: 100%;
}

.wb-note-card-link:focus-visible {
    outline-offset: -3px;
}

.wb-note-card-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wb-note-card-copy {
    padding: 1.15rem;
}

.wb-note-card h2 {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.wb-note-card p {
    color: #585858;
    font-size: .92rem;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.wb-note {
    max-width: 47.5rem;
    margin: 0 auto;
}

.wb-note-back,
.wb-note-source,
.wb-notes-pagination a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.wb-note-heading h1 {
    margin: 1rem 0 .8rem;
}

.wb-notes-date {
    color: #686868;
    font-size: .9rem;
}

.wb-note-content {
    margin: 2rem 0 3rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.wb-note-content :is(ul, ol) {
    list-style: revert;
    margin: 1rem 0 1rem 1.5rem;
}

.wb-note-content :is(figure, img, video) {
    max-width: 100%;
    height: auto;
}

.wb-note-content figure {
    margin: 1.8rem 0;
}

.wb-note-actions,
.wb-notes-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.5rem;
    align-items: center;
}

.wb-note-actions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-light-gray);
}

.wb-note-order-hint {
    flex-basis: 100%;
    margin: 0;
    color: #585858;
    font-size: .9rem;
}

.wb-notes-pagination {
    justify-content: center;
    margin-top: 2rem;
}
