/* The stove, step 3 (US3): a menu of what I can cook, on the warm dark kitchen. Each recipe is a card with its photo
   first, food as the hero (the owner asked for a foody look), its ingredient keys lit by what I have, green when I
   have them all, amber for what is missing. The time keys sit on top like an oven timer. Loaded after application.css. */

:root {
  --basil: #7ed992; /* 9.2:1 on --panel */
  --amber: var(--paprika); /* 5.8:1 on --panel */
  --plate: #2b2420; /* a recipe card: warm, a shade lighter than the kitchen */
}

.recipes-step { max-width: 64rem; margin: 0 auto; }

/* The control strip: the way back, the question, then two sets of keys side by side, each in its recessed well like an
   oven's dials: the time (US3-AC5), and meals or everything (US3-AC8) */
.stove-head { display: grid; gap: 0.9rem; padding: 1.25rem 1.25rem 1.5rem; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #2b2623, var(--charcoal)); }
.stove-head .back { justify-self: start; min-height: 2.75rem; }
.stove-head h1 { font: clamp(2.3rem, 7vw, 3.8rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--cream); }
.stove-keys { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.stove-head :is(.time-limit, .course) { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.35rem; border-radius: 11px;
  background: var(--led-well); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.6); }
.stove-head :is(.time-limit, .course) a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  gap: 0.5rem; border-radius: var(--key-radius); background: var(--panel); color: var(--silk); font-weight: 700;
  text-decoration: none; }
.stove-head :is(.time-limit, .course) a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.stove-head :is(.time-limit, .course) a[aria-current="true"] { background: var(--saffron); color: var(--charcoal); }
.stove-head :is(.time-limit, .course) a[aria-current="true"]::before { background: var(--charcoal); }
@media (max-width: 30rem) { /* each set of keys on its own row at 390 px; narrower phones wrap instead of scrolling sideways */
  .stove-head :is(.time-limit, .course) { flex: 1 1 100%; }
  .stove-head :is(.time-limit, .course) a { flex: 1 1 auto; justify-content: center; padding: 0 0.5rem; gap: 0.35rem; font-size: 0.9rem; }
  .stove-head :is(.time-limit, .course) a::before { width: 6px; height: 6px; }
}

/* The count, then the menu: one card per recipe, its photo first, in ranking order */
.recipes-step .results { max-width: none; }
.recipe-list { display: grid; gap: 1.5rem; }
/* A group of cards is named in Anton and runs into a rule of its colour to the edge, like the sections of a diner's menu
   board. The groups of what I can cook are the page's landmarks (US3-AC2): the largest type under the question, about
   twice a dish name, in their verdict's colour. The fallback's group stays a headline, a peer of "Nothing to cook yet". */
.bank-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin-bottom: 1.1rem;
  font: clamp(2rem, 5vw, 2.6rem)/0.95 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--cream); }
.bank-title::after { content: ""; flex: 1 1 3rem; height: 3px; border-radius: 3px;
  background: color-mix(in srgb, currentColor 35%, transparent); }
.recipe-list .bank-title { font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 0.9; }
.bank-ready .bank-title { color: var(--basil); } /* everything under it is at home: the green is earned */
.bank-away .bank-title { color: var(--amber); } /* one is missing, as its cards say in the same amber */
.recipe-list .bank + .bank { margin-top: 1.25rem; } /* more air above the next group than under its name */
.results-count { justify-self: start; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgb(255 244 224 / 0.08);
  color: var(--cream); font: 700 0.85rem/1 var(--text); letter-spacing: 0.06em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; }
.recipes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); }
.recipe { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--plate);
  box-shadow: 0 18px 36px -20px rgb(0 0 0 / 0.75); }
.recipe-photo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #3d3129, #211b18 72%); }
.recipe-photo > .icon { width: 3.4rem; height: 3.4rem; color: rgb(255 244 224 / 0.32); }
.recipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.recipe:hover .recipe-photo img { transform: scale(1.04); }
.recipe-body { display: grid; gap: 0.65rem; align-content: start; padding: 1rem 1.1rem 1.2rem; }
.recipe h3 { min-width: 0; font: clamp(1.45rem, 4.2vw, 1.8rem)/1.02 var(--display); text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--cream); overflow-wrap: anywhere; }
.recipe h3 a { text-decoration: none; }
.recipe h3 a:hover { color: var(--saffron); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.recipe .step { min-height: 1.7rem; padding: 0.25rem 0.5rem; font-size: 0.64rem; }
.step.more { --key: var(--rule); color: var(--cream); }
.step.more::before, .step.more::after { content: none; }
.verdict { display: flex; align-items: center; gap: 0.4rem; }
.verdict.have-all { color: var(--basil); }
.verdict.missing { color: var(--amber); }
.verdict.needs { color: var(--silk); }
.recipe .meta { display: grid; gap: 0.2rem; justify-content: start; }
.show-more { justify-self: center; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.6rem;
  border-radius: var(--key-radius); box-shadow: inset 0 0 0 2px var(--saffron); color: var(--saffron); font-weight: 800;
  text-decoration: none; transition: background 160ms var(--ease), color 160ms var(--ease); }
.show-more:hover { background: var(--saffron); color: var(--charcoal); }

/* The fallback: nothing matches, so the easiest recipes */
.guidance { max-width: 36rem; }
.guidance .key-button { justify-self: start; text-decoration: none; }
.easiest .bank-title span { padding: 0.45rem 0.8rem; border-radius: 999px; background: rgb(255 244 224 / 0.08);
  font: 700 0.85rem/1 var(--text); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; } /* a count, never in Anton */

/* The recipe page: a staple is assumed at home */
.lines .assumed .status { background: var(--cream); color: var(--charcoal); }
