.cook-demo .order-copy h1 { max-width: 13ch; }
.cook-demo .order-copy .lead { max-width: 38ch; }
.cook-demo .order-stage { --device-width: 350px; }
.cook-demo .order-chapters li { min-height: 44px; }
.cook-demo .order-chapters li[aria-current] { min-height: 58px; }
.cook-demo .order-chapters a:not(.app-btn):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.cook-demo .phone-main {
  gap: 0;
  padding-block-start: 1.6cqw;
  overflow: hidden;
}

.cook-demo .phone-nav .back {
  width: max(44px, 9cqw);
  height: max(44px, 9cqw);
}

.cook-app, .cook-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-block-size: 0;
  min-inline-size: 0;
}

.cook-scroll {
  gap: 3cqw;
  padding: 2px 2px 3cqw;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.cook-scroll > * { flex: 0 0 auto; }
.cook-footer {
  display: grid;
  flex: 0 0 auto;
  gap: 1.5cqw;
  padding-block-start: 2cqw;
}

.cook-footer .app-btn, .menu-app-footer .menu-recipe-link {
  min-block-size: max(44px, 12cqw);
  font-size: max(.875rem, 3.8cqw);
}

.cook-heading { display: grid; gap: 1.45cqw; }
.cook-demo .cook-heading h2 {
  font-size: max(1.47rem, 8.3cqw);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.cook-heading p, .cook-note {
  color: var(--dim);
  font-size: max(.8125rem, 3.65cqw);
  line-height: 1.42;
  text-wrap: pretty;
}

.cook-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4.7cqw;
  background: var(--quiet);
}

.cook-photo img {
  inline-size: 100%;
  block-size: clamp(113px, 48cqw, 165px);
  object-fit: cover;
  object-position: center 54%;
}

.cook-photo--recipe img { block-size: clamp(70px, 28cqw, 96px); }
.cook-photo figcaption {
  position: absolute;
  inset: auto auto max(6px, 2cqw) max(6px, 2cqw);
  max-inline-size: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 100px;
  background: #171212df;
  color: #fffaf3;
  font-size: max(.6875rem, 3.1cqw);
  font-weight: 650;
  line-height: 1.3;
}

.cook-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2.4cqw 4cqw;
  margin: 0;
  padding-block: 2.3cqw;
  border-block: 1px solid var(--line);
}

.cook-facts dl { display: grid; gap: .6cqw; margin: 0; }
.cook-facts dt {
  color: var(--dim);
  font-size: max(.75rem, 3.05cqw);
  line-height: 1.2;
}

.cook-facts dd {
  margin: 0;
  font-size: max(.875rem, 4cqw);
  font-weight: 730;
  line-height: 1.25;
}

.cook-prompt {
  align-self: flex-end;
  inline-size: fit-content;
  max-inline-size: 88%;
  padding: 2.5cqw 3.3cqw;
  border-radius: 3.8cqw 3.8cqw 1.5cqw 3.8cqw;
  background: var(--quiet);
  color: var(--ink);
  font-size: max(.8125rem, 3.8cqw);
  line-height: 1.4;
  text-wrap: pretty;
}

.cook-options, .cook-options > div {
  display: flex;
  align-items: center;
  gap: 1cqw;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cook-options { flex-wrap: wrap; }
.cook-options > div { flex: 1 1 100%; }
.cook-options legend {
  padding: 0 0 1.2cqw;
  color: var(--dim);
  font-size: max(.75rem, 3.45cqw);
  font-weight: 650;
}

.cook-options label {
  position: relative;
  flex: 1;
  min-inline-size: 0;
  cursor: pointer;
}

.cook-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.cook-options label span {
  display: grid;
  place-items: center;
  min-block-size: 44px;
  min-inline-size: 0;
  padding: 4px 2.5cqw;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--dim);
  font-size: max(.8125rem, 3.65cqw);
  font-weight: 710;
  line-height: 1.25;
  text-align: center;
}

.cook-options input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  color: var(--ink);
}

.cook-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cook-options label:hover span { border-color: var(--accent); }
.cook-demo [data-cook-content] { display: grid; gap: 2cqw; }
.cook-demo .cook-section-title {
  font-size: max(1.05rem, 4.85cqw);
  line-height: 1.2;
}

.cook-ingredients, .cook-steps {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
}

.cook-ingredients { list-style: none; }
.cook-ingredients li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  align-items: baseline;
  gap: 2cqw;
  padding-block: 2.1cqw;
  border-block-end: 1px solid var(--line);
  font-size: max(.8125rem, 3.7cqw);
  line-height: 1.3;
}

.cook-ingredients li > :nth-child(2) {
  max-inline-size: 26cqw;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.cook-steps {
  padding-inline-start: max(20px, 6cqw);
  list-style-position: outside;
}

.cook-steps li {
  padding: 2.1cqw 0 2.5cqw 1.5cqw;
  border-block-end: 1px solid var(--line);
}

.cook-steps li::marker {
  color: var(--accent);
  font-size: max(.8125rem, 3.7cqw);
  font-weight: 780;
}

.cook-steps h4 {
  margin: 0 0 .9cqw;
  font-size: max(.9375rem, 4.2cqw);
  line-height: 1.25;
}

.cook-steps p {
  color: var(--dim);
  font-size: max(.8125rem, 3.7cqw);
  line-height: 1.44;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .cook-demo .order-chapters { margin-top: 21px; }
}
