.guided-recipe {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
}
.recipe-mise {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
}
.recipe-mise h3:first-child { margin-top: 0; }
.recipe-mise .ingredient-list { margin-bottom: 0; }
.recipe-mise .equipment { margin: 0; }
.recipe-method {
  margin-top: clamp(38px, 6vw, 76px);
  scroll-margin-top: 48px;
}
.recipe-method > #prep-title {
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}
.recipe-method .prep-credit { margin: .45rem 0 1.1rem; }
.recipe-method .method-steps { list-style: none; margin: 0 0 2rem; padding: 0; }
.method-steps > .method-step,
.method-steps > .method-step:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(40%, 384px));
  grid-template-rows: auto 1fr;
  column-gap: clamp(22px, 5vw, 68px);
  row-gap: .65rem;
  align-items: start;
  padding: clamp(22px, 3.2vw, 40px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 48px;
}
.method-steps > .method-step:last-child { border-bottom: 1px solid var(--line); }
.method-number {
  grid-area: 1 / 1;
  font: 650 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--serif);
  letter-spacing: -.025em;
  color: var(--green);
  margin: 0;
}
.method-step > p {
  grid-area: 2 / 1;
  margin: 0;
  max-width: 57ch;
  font-size: clamp(1.06rem, 1.55vw, 1.22rem);
  line-height: 1.66;
}
.method-photos { grid-area: 1 / 2 / 3; min-width: 0; }
.method-photo { margin: 0; }
.method-photo + .method-photo { margin-top: 1rem; }
.method-photos[data-ready] > .method-photo { margin: 0; }
.method-enlarge {
  display: block;
  position: relative;
  color: white;
  background: #f2eee5;
  border-radius: 5px;
  overflow: hidden;
  cursor: zoom-in;
}
.method-enlarge > img, .method-enlarge > picture, .method-enlarge > picture > img { width: 100%; height: auto; display: block; }
.method-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 3px;
  background: #17392ff0;
  color: white;
  font-size: .82rem;
  line-height: 1;
  font-weight: 650;
  padding: 8px 10px;
}
.method-photo figcaption { color: var(--ink); margin: 8px 0 0; font-size: .95rem; line-height: 1.42; }
.method-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.method-choices button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
}
.method-choices button[aria-pressed="true"] { border-color: var(--green); }
.method-choices img { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; display: block; }
.method-choices button:focus-visible, .method-enlarge:focus-visible, .method-viewer button:focus-visible {
  outline: 3px solid #087153;
  outline-offset: 2px;
}
.method-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: calc(100vw - 20px);
  max-height: 95vh;
  max-height: 95dvh;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: clamp(12px, 2vw, 22px);
  color: var(--ink);
  background: var(--paper, white);
}
.method-viewer::backdrop { background: rgba(10, 23, 18, .82); }
.method-viewer header, .method-viewer footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.method-viewer header { margin-bottom: 10px; }
.method-viewer-actions { display: flex; gap: 6px; flex-shrink: 0; }
.method-viewer h2 { margin: 0; font: 600 1.15rem/1.25 var(--serif); }
.method-viewer figure { margin: 0; }
.method-stage {
  width: min(80vw, 740px);
  height: min(62vh, 680px);
  height: min(62dvh, 680px);
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f3efe7;
}
.method-stage:focus-visible { outline: 3px solid #087153; outline-offset: 2px; }
.method-stage img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.method-stage.is-zoomed img { width: 200%; height: auto; max-width: none; }
.method-viewer figcaption { margin: 10px 0 0; max-width: min(80vw, 740px); line-height: 1.4; }
.method-viewer footer { justify-content: space-between; padding-top: 8px; }
.method-viewer button {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--green);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.method-viewer button:disabled { opacity: .42; cursor: default; }
.method-viewer footer[hidden], .method-photo[hidden] { display: none !important; }
@media (max-width: 720px) {
  .recipe-mise { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .method-steps > .method-step, .method-steps > .method-step:first-child {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 9px;
  }
  .method-number, .method-step > p, .method-photos { grid-area: auto; }
  .method-photos { width: min(100%, 420px); margin-top: 5px; }
  .method-viewer { max-width: calc(100vw - 8px); padding: 8px; }
  .method-stage { width: min(calc(100vw - 24px), 620px); }
  .method-viewer header { gap: 6px; }
  .method-viewer button { padding-inline: 10px; }
}
@media print {
  .guided-recipe, .recipe-mise, .recipe-method { display: block; margin: 0; }
  .method-photos, .method-viewer, .recipe-method .prep-credit { display: none !important; }
  .method-steps > .method-step, .method-steps > .method-step:first-child { display: block; padding: 6pt 0; break-inside: avoid; }
  .recipe-method > #prep-title { font-size: 17pt; }
  .method-number { font-size: 12pt; }
  .method-step > p { max-width: none; font-size: 10pt; line-height: 1.35; }
}
