/* "Рецепты" page: recipe cards and the install hint. */
.recipecards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  margin-top: 22px;
}

.recipe {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid #4b443a;
  border-radius: 20px;
  overflow: hidden;
  background: #201e1b;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.recipe:hover, .recipe:focus-visible { transform: translateY(-3px); border-color: #7a6a50; box-shadow: 0 18px 40px #0007; outline: none; }

.recipe-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.recipe:hover .recipe-photo { transform: scale(1.04); }
.recipe-photo.empty {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7%;
  background: radial-gradient(circle at 50% 30%, #4a3c28, #241f19 75%);
}
.recipe-photo.empty img { height: 58%; width: auto; }

.recipe-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, #0b0a09e6 62%);
}
.recipe-caption h3 { margin: 0; font-size: 21px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.recipe-caption p { margin: 3px 0 0; font-size: 14px; color: #e6dccd; overflow-wrap: anywhere; }

.recipe-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #151412d9;
  color: var(--gold);
  font-size: 12px;
}

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; }
.howto h3 { margin-bottom: 14px; }
.howto ol { margin: 0; padding-left: 22px; color: var(--muted); }
.howto li { margin-bottom: 12px; }
.howto li:last-child { margin-bottom: 0; }
.howto li::marker { color: var(--gold); font-weight: 800; }
.howto strong { color: var(--cream); }

.section-title { margin: 0; }
#recipes-status:empty { display: none; }

@media (max-width: 750px) {
  .hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
}


.installhint {
  padding: 12px 16px;
  background: #29231c;
  border: 1px solid #564a37;
  border-radius: 13px;
  color: #e4d1b4;
  font-size: 13px;
  margin: 15px 0;
}
.installbtn { display: none; }

/* Only worth offering on a phone, and not inside the already installed app. */
@media (min-width: 751px), (display-mode: standalone) {
  .installhint { display: none; }
}
