/* Recipe pillar landing - docs/design/Recept.html */

body.recipe-pillar {
  background: var(--white);
}

.recipe-archive {
  background: var(--white);
}

.recipes-hero {
  padding: 2.5rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
}

.recipes-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.recipes-hero img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.recipes-intro {
  padding: 2rem 0 1rem;
}

.recipe-toolbar-wrap {
  position: sticky;
  top: var(--header-sticky-offset, var(--header-h));
  z-index: 90;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  background: var(--white);
}

.recipe-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-height: 40px;
  overflow: visible;
}

.recipe-category-picker {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
}

.category-dropdown {
  height: 100%;
}

.category-dropdown summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-text);
  cursor: pointer;
  min-height: 40px;
  height: 100%;
  white-space: nowrap;
  user-select: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.category-dropdown summary::-webkit-details-marker {
  display: none;
}

.category-dropdown summary::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--green-text);
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.category-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.category-dropdown[open] summary {
  border-color: var(--green-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.category-dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 30;
  margin: 0;
  padding: 0.375rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--green-dark);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-soft);
  min-width: 100%;
}

.category-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.category-dropdown-menu button:hover,
.category-dropdown-menu button.is-active {
  background: var(--green-muted);
  color: var(--green-text-strong);
  font-weight: 700;
}

.recipe-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.recipe-search:focus-within {
  border-color: var(--green-dark);
  outline: 2px solid rgba(68, 126, 126, 0.2);
  outline-offset: 1px;
}

.recipe-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  min-height: 40px;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.recipe-search input::-webkit-search-decoration,
.recipe-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.recipe-search input::placeholder {
  color: var(--text-muted);
}

.recipe-search input:focus {
  outline: none;
}

.recipe-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  border: none;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
}

.recipe-search-submit:hover {
  background: var(--green-dark);
}

.recipe-search-empty {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

.recipe-search-empty[hidden] {
  display: none;
}

.recipe-archive .recipe-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 1.5rem;
}

.recipe-archive .recipe-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.recipe-archive .recipe-card:hover {
  border-color: var(--green-text);
  box-shadow: var(--shadow-soft);
}

.recipe-archive .recipe-card.is-hidden,
.recipe-archive .recipe-card.is-pagination-hidden {
  display: none;
}

.recipe-load-more {
  display: flex;
  justify-content: center;
  padding-bottom: 2.5rem;
}

.recipe-load-more[hidden] {
  display: none;
}

.recipe-archive .recipe-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.recipe-archive .recipe-card-body {
  padding: 1rem 1.125rem 1.25rem;
}

.recipe-archive .recipe-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.recipe-archive .recipe-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.app-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, #3a7373 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  isolation: isolate;
}

.app-banner::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -8%;
  width: min(55vw, 260px);
  aspect-ratio: 1;
  background: rgba(249, 208, 187, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.app-banner-content {
  position: relative;
  z-index: 1;
}

.app-banner-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.app-banner h2 {
  color: var(--white);
  margin-bottom: 0.625rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.app-banner-lead {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  line-height: 1.55;
}

.app-banner-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
}

.app-banner-list li {
  padding-left: 1.125rem;
  position: relative;
}

.app-banner-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.recipe-archive .app-banner-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.app-banner-note {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.app-banner-visual {
  position: relative;
  z-index: 1;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-banner-stack {
  position: relative;
  width: min(100%, 280px);
  height: 168px;
}

.app-banner-stack img {
  position: absolute;
  width: 46%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.app-banner-stack img:nth-child(1) {
  left: 0;
  top: 12%;
  transform: rotate(-7deg);
}

.app-banner-stack img:nth-child(2) {
  left: 27%;
  top: 0;
  z-index: 2;
  transform: rotate(2deg);
}

.app-banner-stack img:nth-child(3) {
  right: 0;
  top: 14%;
  transform: rotate(8deg);
}

.recipe-archive-cta {
  margin-top: 1rem;
}

.recipe-archive-cta-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.recipe-archive-cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 640px) {
  .recipe-archive .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .recipes-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-banner {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 2.25rem 2rem;
  }

  .app-banner-visual {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .recipe-archive .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
