.page-header {
    margin: 1.5rem 0 1rem;
}

.page-header h1 {
    margin-bottom: 0.25rem;
}

.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.controls input[type="search"] {
    flex: 2 1 20rem;
    margin-bottom: 0;
}

.controls select {
    flex: 1 1 12rem;
    margin-bottom: 0;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.recipe-grid article {
    margin-bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.recipe-grid article .thumb {
    display: block;
    margin: -1rem -1rem 0.75rem;
}

.recipe-grid article img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--pico-border-radius) var(--pico-border-radius) 0 0;
    display: block;
}

.recipe-grid article h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.recipe-grid article h3 a {
    text-decoration: none;
}

.tags {
    margin-bottom: 0.5rem;
}

kbd {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.description {
    font-size: 0.9rem;
}

.description .snippet,
.description .full {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.expand-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination button {
    margin-bottom: 0;
    width: auto;
}

#empty-state {
    text-align: center;
    padding: 2rem 0;
    color: var(--pico-muted-color);
}
