/*
 * Explore our recipes (hub/recipes.php). Grace: explore-recipes.png.
 * Also the recipe card (hub/parts/recipe-card.php), shared with the recipe page.
 */

.vh-hero--recipes { min-height: 440px; padding-bottom: 32px; }
.vh-hero--recipes .vh-hero__lead { max-width: 40rem; }
.vh-hero--recipes::after { background: linear-gradient(180deg, rgb(11 35 63 / 72%) 0%, rgb(11 35 63 / 78%) 55%, rgb(10 33 63 / 100%) 100%); }

.vh-recipes { padding: 36px 0 84px; background: #0a213f; }
.vh-recipes .vh-h2 { color: #fff; }
.vh-recipes__featured .vh-h2 { margin-bottom: 22px; }
.vh-recipes__all { margin-top: 62px; }
.vh-recipes__all .vh-head { margin-bottom: 16px; align-items: center; }
.vh-recipes__count { font-size: 14px; color: rgb(255 255 255 / 88%); }
.vh-recipes__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vh-recipes__none { margin-top: 8px; color: rgb(255 255 255 / 85%); }
.vh-recipes .vh-more { margin-top: 36px; }

/* Dark filters and search */
.vh-filters--dark button {
	min-height: 44px; padding: 0 16px; border: 1px solid rgb(255 255 255 / 35%);
	background: transparent; color: #fff; font-size: 14px;
}
.vh-filters--dark button:hover { background: rgb(255 255 255 / 8%); }
.vh-filters--dark button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0a213f; }
.vh-filters--dark button span { font-weight: 600; }
.vh-search--dark input { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 35%); color: #fff; }
.vh-search--dark input::placeholder { color: rgb(255 255 255 / 70%); }

/* Grids */
.vh-rgrid { display: grid; gap: 20px; }
.vh-rgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vh-rgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vh-rgrid > li { display: flex; }
.vh-rgrid > li[hidden] { display: none; }

/* Recipe card */
.vh-rcard { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; color: #0a213f; }
.vh-rcard__photo { margin: 0; aspect-ratio: 273 / 160; overflow: hidden; background: #dfe4ea; }
.vh-rcard--large .vh-rcard__photo { aspect-ratio: 371 / 220; }
.vh-rcard__photo img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.vh-rcard:hover .vh-rcard__photo img { transform: scale(1.03); }
.vh .vh-rcard__heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; }
.vh .vh-rcard__heart svg { width: 15px; height: 15px; }
.vh-rcard__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 18px 22px; }
.vh-rcard--large .vh-rcard__body { padding: 21px 20px 28px; }
.vh-rcard .vh-chip { padding: 5px 8px; font-size: 10px; letter-spacing: .06em; }
.vh-rcard__title { margin-top: 10px !important; font: 600 17px/1.25 var(--vh-body); color: #0a213f; letter-spacing: -.005em; }
.vh-rcard--large .vh-rcard__title { margin-top: 12px !important; font-size: 19px; }
.vh-rcard__title a { color: inherit; text-decoration: none; }
.vh-rcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vh-rcard__title a:focus-visible { outline: none; }
.vh-rcard:has(.vh-rcard__title a:focus-visible) { outline: 3px solid var(--vh-gold); outline-offset: 3px; }
.vh-rcard__line { margin-top: 8px !important; font-size: 14px; line-height: 1.45; color: #56657a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-rcard__go { margin-top: auto; padding-top: 22px; font: 700 14px/1 var(--vh-body); color: #0a213f; }
.vh-rcard:hover .vh-rcard__go { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
	.vh-rgrid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.vh-rgrid--3, .vh-rgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-recipes__tools .vh-search { width: 100%; }
}
@media (max-width: 560px) {
	.vh-rgrid--3 { grid-template-columns: 1fr; }
	.vh-rgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } /* minmax(0): long chip labels made plain 1fr columns wider than the screen */
	.vh-rgrid--4 .vh-rcard .vh-chip { max-width: 100%; white-space: normal; line-height: 1.25; }
	.vh-rgrid--4 .vh-rcard__body { padding: 12px 12px 16px; }
	.vh-rgrid--4 .vh-rcard__title { font-size: 15px; }
	.vh-rgrid--4 .vh-rcard__line { display: none; }
	.vh-recipes__count { width: 100%; }
	.vh-filters--dark { width: 100%; }
	.vh-filters--dark button { min-height: 40px; padding: 0 12px; font-size: 13px; }
}
