.recipes-shell {
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 5.4rem;
}

.recipes-hero,
.recipes-toolbar,
.recipes-list-section,
.recipes-nearby-panel {
  border: 1px solid rgba(223, 212, 195, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.9));
}

.recipes-hero {
  display: grid;
  gap: 0.46rem;
  padding: 0.64rem;
}

.recipes-hero p,
.recipes-hero h1,
.recipes-hero span {
  margin: 0;
}

.recipes-hero p {
  color: var(--heop-orange);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recipes-hero h1,
.recipes-section-heading h2 {
  color: var(--heop-forest);
  font-family: var(--heop-display);
  line-height: 0.98;
}

.recipes-hero h1 {
  font-size: clamp(1.34rem, 6.6vw, 1.86rem);
}

.recipes-hero > div:first-child > span {
  display: block;
  color: rgba(27, 29, 24, 0.72);
  font-size: 0.73rem;
  font-weight: 740;
  line-height: 1.26;
}

.recipes-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.recipes-hero-stats article {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.48rem;
  padding: 0.42rem;
  border: 1px solid rgba(223, 212, 195, 0.68);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.72);
}

.recipes-hero-stats strong {
  display: block;
  overflow: hidden;
  color: var(--heop-forest);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipes-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recipes-toolbar {
  padding: 0.5rem;
}

.recipes-toolbar form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  margin: 0;
}

.recipes-toolbar label,
.recipes-toolbar button {
  min-width: 0;
}

.recipes-toolbar label {
  display: grid;
  gap: 0;
}

.recipes-search-stack,
.recipes-submit,
.recipes-locate {
  grid-column: 1 / -1;
}

.recipes-search-stack {
  display: grid;
  gap: 0.24rem;
}

.recipes-search-field {
  gap: 0.24rem;
}

.recipes-toolbar input,
.recipes-toolbar select,
.recipes-toolbar button {
  width: 100%;
  min-height: 2.06rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.recipes-toolbar input,
.recipes-toolbar select {
  padding: 0 0.72rem;
  color: var(--heop-ink);
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(223, 212, 195, 0.92);
}

.recipes-search-suggestions {
  display: grid;
  gap: 0.18rem;
  padding: 0.28rem;
  margin-top: -0.08rem;
  border: 1px solid rgba(223, 212, 195, 0.96);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 8px 18px rgba(32, 38, 31, 0.08);
  max-height: 12.5rem;
  overflow-y: auto;
}

.recipes-search-suggestions[hidden] {
  display: none;
}

.recipes-search-suggestion {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.72rem;
  color: var(--heop-ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
}

.recipes-search-suggestion:hover,
.recipes-search-suggestion:focus-visible {
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.72);
  outline: none;
}

.recipes-toolbar button {
  border: 0;
  cursor: pointer;
}

.recipes-submit {
  color: #fffdf7;
  background: var(--heop-forest);
}

.recipes-locate {
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.78);
  border: 1px solid rgba(36, 90, 59, 0.18);
}

.recipes-list-section,
.recipes-nearby-panel {
  display: grid;
  gap: 0.38rem;
  padding: 0.5rem;
}

.recipes-results-meta,
.recipes-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  margin: 0;
  padding-bottom: 0.26rem;
  border-bottom: 1px solid rgba(95, 102, 93, 0.13);
}

.recipes-results-meta {
  padding-bottom: 0;
  border-bottom: 0;
}

.recipes-results-meta h2,
.recipes-section-heading h2 {
  margin: 0;
  color: var(--heop-forest);
  font-family: var(--heop-display);
  font-size: 0.96rem;
  line-height: 1;
}

.recipes-results-meta span,
.recipes-section-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 1.38rem;
  padding: 0 0.46rem;
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.72);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
}

.recipes-results-meta span {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipes-list {
  display: grid;
  gap: 0.34rem;
}

.recipe-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(223, 212, 195, 0.54);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.96);
}

.recipe-card-link {
  position: relative;
  display: grid;
  grid-template-columns: 4.15rem minmax(0, 1fr);
  gap: 0.36rem;
  min-width: 0;
  padding: 0.36rem 1.55rem 0.36rem 0.36rem;
  color: inherit;
}

.recipe-card-image {
  grid-row: span 5;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(223, 232, 220, 0.72);
}

.recipe-card-main,
.recipe-card-title {
  display: grid;
  gap: 0.14rem;
}

.recipe-card-title h3 {
  margin: 0;
  color: var(--heop-forest);
  font-family: var(--heop-display);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 0.94;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-card-title p,
.recipe-match-line,
.recipe-detail summary,
.recipe-ingredients p,
.recipe-products small,
.recipe-products em,
.recipes-nearby-item span,
.recipe-empty-product span {
  color: rgba(27, 29, 24, 0.68);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.32;
}

.recipe-card-title p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.67rem;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.recipe-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
  margin: 0;
}

.recipe-facts div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.18rem;
  padding: 0.1rem 0.16rem;
  border-radius: 7px;
  background: rgba(247, 244, 239, 0.56);
}

.recipe-facts dt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recipe-facts dd {
  margin: 0;
  color: var(--heop-ink);
  font-size: 0.54rem;
  font-weight: 930;
  text-align: center;
}

.recipe-match-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  padding-right: 0.1rem;
}

.recipe-match-line strong {
  color: var(--heop-forest);
  font-size: 0.66rem;
  font-weight: 950;
}

.recipe-match-line span {
  font-size: 0.64rem;
}

.recipe-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
  margin-top: 0;
}

.recipe-product-pills span {
  padding: 0.12rem 0.34rem;
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.78);
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-open-link {
  position: absolute;
  right: 0.42rem;
  bottom: 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  color: var(--heop-forest);
  background: transparent;
  border-radius: 0;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 950;
}

.recipe-detail-shell {
  gap: 0.66rem;
}

.recipe-back-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.72rem;
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.72);
  border: 1px solid rgba(36, 90, 59, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
}

.recipe-detail-hero,
.recipe-cooking-panel,
.recipe-products-panel {
  border: 1px solid rgba(223, 212, 195, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.9));
}

.recipe-detail-hero {
  display: grid;
  overflow: hidden;
}

.recipe-detail-hero img {
  width: 100%;
  height: 11.2rem;
  object-fit: cover;
  background: rgba(223, 232, 220, 0.72);
}

.recipe-detail-hero > div {
  display: grid;
  gap: 0.28rem;
  padding: 0.78rem 0.8rem 0.48rem;
}

.recipe-detail-hero p,
.recipe-detail-hero h1,
.recipe-detail-hero span,
.recipe-detail-facts {
  margin: 0;
}

.recipe-detail-hero p {
  color: var(--heop-orange);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recipe-detail-hero h1 {
  color: var(--heop-forest);
  font-family: var(--heop-display);
  font-size: clamp(1.65rem, 8vw, 2.35rem);
  line-height: 0.96;
}

.recipe-detail-hero > div > span {
  color: rgba(27, 29, 24, 0.72);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.32;
}

.recipe-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
  padding: 0 0.8rem 0.8rem;
}

.recipe-detail-facts div {
  min-width: 0;
  padding: 0.46rem;
  border: 1px solid rgba(223, 212, 195, 0.68);
  border-radius: 10px;
  background: rgba(247, 244, 239, 0.72);
}

.recipe-detail-facts dt {
  color: rgba(27, 29, 24, 0.56);
  font-size: 0.55rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recipe-detail-facts dd {
  margin: 0.1rem 0 0;
  color: var(--heop-ink);
  font-size: 0.78rem;
  font-weight: 930;
}

.recipe-cooking-panel,
.recipe-products-panel {
  display: grid;
  gap: 0.62rem;
  padding: 0.68rem;
}

.recipe-ingredients h3,
.recipe-steps h3 {
  margin: 0;
  color: var(--heop-forest);
  font-size: 0.9rem;
  font-weight: 950;
}

.recipe-quantities p {
  margin: 0;
  padding: 0.58rem;
  color: rgba(27, 29, 24, 0.68);
  background: rgba(223, 232, 220, 0.46);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.32;
}

.recipe-ingredients li em {
  color: rgba(27, 29, 24, 0.6);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
}

.recipe-steps ol {
  counter-reset: recipe-step;
}

.recipe-steps li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.52rem;
  align-items: start;
}

.recipe-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.82);
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 950;
}

.recipe-steps li p {
  margin: 0;
}

.recipe-tip {
  display: grid;
  gap: 0.16rem;
  padding: 0.62rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(36, 90, 59, 0.1), rgba(205, 96, 53, 0.08));
}

.recipe-tip strong {
  color: var(--heop-orange-2);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recipe-tip span {
  color: var(--heop-ink);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.32;
}

.recipe-detail {
  display: grid;
  overflow: hidden;
  border-top: 1px solid rgba(95, 102, 93, 0.13);
}

.recipe-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.35rem;
  cursor: pointer;
  list-style: none;
  color: var(--heop-forest);
  font-weight: 950;
}

.recipe-detail summary::-webkit-details-marker {
  display: none;
}

.recipe-detail summary::after {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.recipe-detail[open] summary::after {
  transform: rotate(225deg);
}

.recipe-detail-grid,
.recipe-ingredients,
.recipe-steps {
  display: grid;
  gap: 0.48rem;
}

.recipe-detail-grid {
  margin-top: 0.2rem;
}

.recipe-ingredients h4,
.recipe-steps h4 {
  margin: 0;
  color: var(--heop-forest);
  font-size: 0.88rem;
  font-weight: 950;
}

.recipe-ingredients ul,
.recipe-steps ol {
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-ingredients li,
.recipe-steps li {
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(223, 212, 195, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.recipe-ingredients li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.44rem;
}

.recipe-ingredients li span {
  color: rgba(27, 29, 24, 0.58);
  font-size: 0.66rem;
  font-weight: 860;
}

.recipe-ingredients li strong,
.recipe-steps li {
  color: var(--heop-ink);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.28;
}

.recipe-ingredients li.is-missing {
  background: rgba(205, 96, 53, 0.07);
}

.recipe-products {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.62rem;
}

.recipe-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem;
  border: 1px solid rgba(223, 212, 195, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.recipe-product-row.has-image {
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
}

.recipe-product-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.recipe-product-row div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.recipe-product-row div > span {
  color: var(--heop-orange-2);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.recipe-product-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--heop-ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-products em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-product-info {
  width: fit-content;
  min-height: 1.62rem;
  padding: 0 0.52rem;
  color: var(--heop-forest);
  background: rgba(223, 232, 220, 0.78);
  border: 0;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
}

.recipe-product-form button {
  min-width: 4.7rem;
  min-height: 2.18rem;
  padding: 0 0.68rem;
  color: #fffdf7;
  background: var(--heop-forest);
  border: 0;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 950;
}

.recipe-product-form button:disabled {
  opacity: 0.48;
}

.recipe-empty-product {
  display: grid;
  gap: 0.16rem;
  padding: 0.68rem;
  border-radius: 10px;
  background: rgba(223, 232, 220, 0.46);
}

.recipe-empty-product strong {
  color: var(--heop-forest);
  font-size: 0.78rem;
  font-weight: 950;
}

.recipes-nearby-strip {
  display: grid;
  gap: 0.44rem;
}

.recipes-nearby-item {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.44rem;
  color: inherit;
  border: 1px solid rgba(223, 212, 195, 0.68);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.recipes-nearby-item img {
  grid-row: span 2;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.recipes-nearby-item strong {
  overflow: hidden;
  color: var(--heop-ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipes-nearby-strip > p {
  margin: 0;
  color: rgba(27, 29, 24, 0.68);
  font-size: 0.78rem;
  font-weight: 780;
}

@media (min-width: 720px) {
  .recipes-hero {
    grid-template-columns: minmax(0, 1fr) 17rem;
    align-items: end;
  }

  .recipes-toolbar form {
    grid-template-columns: minmax(0, 1.2fr) 9rem 8rem 7rem 11rem;
    align-items: end;
  }

  .recipes-search-field,
  .recipes-submit,
  .recipes-locate {
    grid-column: auto;
  }

  .recipe-card-link {
    grid-template-columns: 6.2rem minmax(0, 1fr);
  }

  .recipe-card-image {
    aspect-ratio: 1;
  }

  .recipe-detail-hero {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: stretch;
  }

  .recipe-detail-hero img {
    grid-row: span 2;
    height: 100%;
    min-height: 13rem;
  }

  .recipe-detail-hero > div {
    align-content: end;
    padding: 1rem 1rem 0.54rem;
  }

  .recipe-detail-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 1rem 1rem;
  }

  .recipe-detail {
    grid-column: 1 / -1;
  }

  .recipe-detail-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }

  .recipes-nearby-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
