/* Recipe post template: section headings, ingredients, steps, and tools. */
.recipe-post .post-layout {
  align-items: start;
}
.recipe-post .post-aside {
  position: sticky;
  top: 28px;
}
.recipe-post .post-content {
  font-size: 18px;
}
.recipe-content .recipe-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 0;
  padding-top: 0;
  margin: 74px 0 22px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.075em;
}
.recipe-content .recipe-section-heading::before {
  content: "";
  display: block;
  width: 34px;
  height: 7px;
  background: var(--accent);
  border-radius: 99px;
}
.recipe-content .recipe-section-heading::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
  margin-left: 8px;
}
.recipe-content .recipe-ingredients,
.recipe-content .recipe-method {
  padding: 0;
  margin: 0;
  list-style: none;
}
.recipe-content .recipe-ingredients li,
.recipe-content .recipe-method li {
  position: relative;
  margin: 0;
  padding: 17px 18px 17px 48px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.recipe-content .recipe-ingredients li:first-child,
.recipe-content .recipe-method li:first-child {
  border-top: 1px solid var(--line);
}
.recipe-content .recipe-ingredients li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--paper);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.recipe-content .recipe-ingredients li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}
.recipe-content .recipe-ingredients li.ingredient-checked {
  color: var(--muted);
  text-decoration: none;
  background: rgba(28, 28, 26, 0.035);
}
.recipe-content .recipe-ingredients li.ingredient-checked::before {
  background: var(--accent);
  border-color: var(--accent);
}
.recipe-content .recipe-ingredients li.ingredient-checked::after {
  transform: rotate(-45deg) scale(1);
}
.recipe-content .recipe-method {
  counter-reset: recipe-step;
}
.recipe-content .recipe-method li {
  counter-increment: recipe-step;
  padding-left: 58px;
  cursor: default;
}
.recipe-content .recipe-method li::before {
  content: counter(recipe-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 17px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.recipe-content .recipe-notes {
  margin: 24px 0 0;
  padding: 23px 26px;
  color: var(--ink);
  background: #e8dfd2;
  border: 0;
  border-left: 4px solid var(--accent);
  font-size: 17px;
}
.recipe-post .recipe-tools,
.recipe-post .share-block {
  padding-top: 17px;
}
.recipe-post .recipe-tools button,
.recipe-post .share-block a,
.recipe-post .share-block button {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.recipe-post .recipe-tools button:hover,
.recipe-post .share-block a:hover,
.recipe-post .share-block button:hover {
  color: var(--accent);
}
@media (max-width: 800px) {
  .recipe-post .post-aside {
    position: static;
  }
  .recipe-content .recipe-section-heading {
    margin-top: 54px;
  }
  .recipe-post .post-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .recipe-post .recipe-tools,
  .recipe-post .share-block {
    margin-bottom: 0;
  }
}
.is-dark .recipe-content .recipe-notes {
  background: #302d29;
  color: var(--ink);
}
.recipe-post .post-comments {
  max-width: 680px;
  margin-inline: auto;
}
@media (max-width: 500px) {
  .recipe-post .post-aside {
    display: block;
  }
  .recipe-content .recipe-section-heading {
    font-size: 35px;
  }
  .recipe-content .recipe-ingredients li,
  .recipe-content .recipe-method li {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
