.hero figure { width:100%; }
.mobile-recipe-nav { display: none; }
.facts { justify-content:flex-start; gap:clamp(14px,2.3vw,28px); }
.facts dt { font-size:clamp(15px,2vw,20px); }
.recipe { padding-top:12px; }
.ingredient-groups { display:grid; gap:12px; }
.ingredient-group, .ingredient-group + .ingredient-group { padding:12px 16px; border:0; border-radius:8px; background:var(--pale); }
.ingredient-group label:hover, .ingredient-group label:focus-within { background:white; }
.recipe-end-actions { margin-top:12px; }
.cook-toolbar { display:flex; flex-wrap:wrap; gap:8px 12px; margin-bottom:16px; }
.cook-toolbar [aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:white; }
.cook-navigation { display:flex; align-items:center; gap:8px; }
.cook-navigation output { min-width:40px; text-align:center; }
.cook-navigation button:disabled { opacity:.45; cursor:default; }
@media screen and (min-width:760px) {
  .ingredient-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ingredient-group:last-child { grid-column:1 / -1; }
  .ingredient-group:last-child ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:700px) {
  .header:has(.mobile-recipe-nav) { height: 60px; }
  .header-inner:has(.mobile-recipe-nav) {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    gap: 12px;
  }
  .header:has(.mobile-recipe-nav) nav[aria-label="Main navigation"] { display: none; }
  .mobile-recipe-nav { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
  .mobile-recipe-nav details { position: relative; }
  .mobile-recipe-nav > a,
  .mobile-recipe-nav summary { min-height: 44px; white-space: nowrap; }
  .mobile-recipe-nav > a { display: inline-flex; align-items: center; text-decoration: none; }
  .mobile-recipe-nav details > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font: inherit;
    list-style: none;
    cursor: pointer;
  }
  .mobile-recipe-nav details > summary::after {
    content: "";
    position: static;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .mobile-recipe-nav details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
  .mobile-recipe-nav summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .mobile-recipe-nav nav {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    display: grid;
    gap: 0;
    min-width: 152px;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: white;
    box-shadow: 0 8px 24px #2424211a;
  }
  .header .mobile-recipe-nav nav a[href="#tips"] { display: flex; }
  .hero-copy { padding-top: 20px; padding-bottom: 16px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); margin-bottom: 10px; }
  .hero .description { margin-bottom: 12px; }
  .hero .facts { margin-top: 14px; padding-top: 12px; }
  .hero figure {
    order: 1;
    width: calc(100% - 44px);
    margin: 0 auto 18px;
    border-radius: var(--photo-radius);
  }
  .hero figure img { width: 100%; max-height: 36vh; object-fit: cover; }
  .hero figure img.hero-plate { max-height: none; object-fit: contain; }
}
@media print {
  .cook-toolbar { display:none !important; }
  .steps > li[hidden] { display:block !important; }
  .ingredient-group { background:none; padding:0; }
}

.recipe-controls {
  padding: 0 0 14px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.recipe-controls .controls { align-items: start; justify-content: space-between; gap: 10px 20px; }
.recipe-controls .control { max-width: 100%; gap: 4px; }
.recipe-controls .control > span { color: var(--ink); font-size: 13px; }
.recipe-controls .segmented {
  gap: 2px;
  padding: 2px;
  border-color: var(--line);
  background: white;
}
.recipe-controls .segmented button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  transition: none;
}
.recipe-controls .segmented button[data-scale],
.recipe-controls .segmented button[data-custom-scale] { white-space: nowrap; }
.recipe-controls .segmented button[data-scale] {
  gap: 2px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.scale-mark {
  font-size: 1.26em;
  font-weight: 400;
  line-height: 1;
}
.recipe-controls .segmented button:hover { background: var(--pale); }
.recipe-controls .segmented button[aria-pressed="true"] {
  background: #f9ede7;
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px #eacbbf;
  font-weight: 600;
}
.recipe-controls .segmented button[data-custom-scale] {
  margin-left: 2px;
  padding-inline: 9px;
}
@media (max-width: 360px) {
  .recipe-controls .segmented button[data-scale],
  .recipe-controls .segmented button[data-custom-scale] { padding-inline: 5px; }
}
#custom-scale {
  flex: 0 0 auto;
  height: 44px;
  gap: 2px;
  margin: 0 0 0 2px;
  padding: 0 7px;
  border-radius: 5px;
  background: white;
  box-shadow: inset 0 0 0 1px #ded2c8;
  color: var(--muted);
}
#custom-scale:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
#custom-scale input {
  width: 34px;
  min-height: 0;
  padding: 5px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
#custom-scale input::-webkit-inner-spin-button,
#custom-scale input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.recipe-controls .measure-note { line-height: 1.55; }

.recipe-nutrition {
  padding: clamp(16px, 3vw, 26px);
  border: 0;
  border-radius: var(--photo-radius);
  background: #f8f4f0;
}
.recipe-nutrition h2 { font-size: 24px; }
.recipe-nutrition .nutrition-values {
  grid-template-columns: repeat(auto-fit, minmax(min(95px, 100%), 1fr));
  max-width: none;
  gap: 8px 12px;
  padding-block: 12px;
  border-block: 1px solid #e6dbd1;
}
.recipe-nutrition .nutrition-values > div { flex-direction: column; align-items: start; }
.recipe-nutrition .nutrition-values dt { font-size: 13px; }
.recipe-nutrition .nutrition-values dd { color: var(--ink); font-size: 24px; }
.recipe-nutrition dd span { font-size: 13px; font-weight: 400; }
.recipe-nutrition .nutrition-note + .nutrition-note { margin-top: 4px; }

.recipe-source {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  margin-top: 32px;
  border-radius: var(--control-radius);
  background: #f9ede7;
}
.author-credit,
.recipe-source .author-bio { padding: 22px; }
.author-credit {
  border-radius: var(--control-radius) 0 0 var(--control-radius);
  background: #a62e23;
  color: white;
}
.author-credit h2 { margin: 0 0 5px; color: #ffebe2; font-size: 13px; }
.recipe-source p { margin: 0; }
.author-credit .source-author {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.author-credit a { display: inline-flex; align-items: center; min-height: 44px; }
.author-credit a:focus-visible { outline-color: white; }
.recipe-source .author-bio {
  align-self: center;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
@media screen and (max-width: 560px) {
  .recipe-source { grid-template-columns: 1fr; }
  .author-credit { border-radius: var(--control-radius) var(--control-radius) 0 0; }
  .author-credit,
  .recipe-source .author-bio { padding: 14px 16px; }
}
@media print {
  .recipe-nutrition { display: block !important; background: transparent; padding: 0; break-inside: avoid; }
  .recipe-source {
    display: block;
    margin-top: 12px;
    padding: 10px 0;
    border-block: 1px solid var(--line);
    background: none;
    break-inside: avoid;
  }
  .author-credit,
  .recipe-source .author-bio { padding: 0; background: none; color: var(--ink); }
  .author-credit h2 { color: var(--ink); }
  .author-credit .source-author { margin-bottom: 4px; font-size: 18px; }
  .author-credit a { display: inline; min-height: 0; }
}

.recipe-timing { margin: 0 0 10px; color: var(--body); line-height: 1.65; }

.more-recipes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-bottom: 16px;
}
.more-recipes .more-recipes-head h2 {
  margin: 0;
}
.more-recipes-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 700;
}
.more-recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.more-recipe-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}
.more-recipe-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
  background: var(--pale);
}
.more-recipe-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
}
.more-recipe-name { font-size: 17px; line-height: 1.25; font-weight: 700; }
.more-recipe-time { color: var(--muted); font-size: 13px; line-height: 1.3; }
.more-recipe-card:hover .more-recipe-name,
.more-recipe-card:focus-visible .more-recipe-name {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media screen and (max-width: 639px) {
  .more-recipes-head { margin-bottom: 10px; }
  .more-recipes-grid { grid-template-columns: 1fr; gap: 8px; }
  .more-recipe-card { display: grid; grid-template-columns: clamp(84px, 25%, 125px) minmax(0, 1fr); }
  .more-recipe-card img { height: 100%; min-height: 68px; }
  .more-recipe-copy { align-content: center; padding: 9px 12px; }
}
@media screen and (min-width: 701px) {
  .steps > li.text-step { display: block; }
}
