/* LWN Recipe - Archive / Taxonomy Pages */

.lwn-recipe-container {
  display: block;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .lwn-recipe-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 1.5rem;
  }
}

.lwn-recipe-content {
  max-width: 100%;
  flex: 1;
}

/* Recipe grid */
.lwn-recipe-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .lwn-recipe-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lwn-recipe-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lwn-recipe-thumbnail img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.the-recipe-content {
  padding: 1rem;
}

.lwn-recipe-title a {
  font-size: 1rem;
  font-weight: 700;
  color: #22261e;
  text-decoration: none;
}
.lwn-recipe-title a:hover {
  text-decoration: underline;
}

.lwn-recipe-text {
  font-size: 0.85rem;
  color: #555;
  margin: 0.4rem 0 0;
}

/* Sidebar / widgets */
.lwn-recipe-sidebar {
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) {
  .lwn-recipe-sidebar {
    width: 260px;
    flex-shrink: 0;
  }
}
.lwn-recipe-widget {
  background: #f4f4f0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.lwn-recipe-widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #22261e;
}
.lwn-recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lwn-recipe-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e5e0;
}
.lwn-recipe-item:last-child {
  border-bottom: none;
}
.lwn-recipe-link {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}
.lwn-recipe-link:hover {
  text-decoration: underline;
}

/* Pagination */
.lwn-recipe-pagination,
.lw-recipe-pagination {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.lwn-recipe-pagination a,
.lw-recipe-pagination a {
  display: inline-block;
  background: #22261e;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
}
.lwn-recipe-pagination a:hover,
.lw-recipe-pagination a:hover {
  opacity: 0.85;
}
