.detail-article {
  background: #F3F4FF;
  padding: 40px 0 60px;
}

.detail-recipe {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primary-dark);
}

.detail-recipe__head {
  display: flex;
  position: relative;
  gap: 30px;
  margin-bottom: 60px;
}

.box-featured {
  flex: 1;
  margin-bottom: auto;
}

.views-exposed-filter-block-recipe .views-exposed-form .form-box {
  width: unset;
}

.box-featured__image {
  aspect-ratio: 5/4;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.box-featured__image .media--blazy {
  position: inherit;
}

.box-featured__image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.recipe-resume {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.recipe-resume p {
  margin-bottom: 0;
}

.recipe-resume .recipe-resume__infos-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 40px;
  row-gap: 20px;
  padding: 0;
  margin: 0;
}

.recipe-resume .recipe-resume__info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.recipe-resume .recipe-resume__info-illustration {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 999px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}

.recipe-resume .recipe-resume__info-value {
  font-weight: bold;
}

.recipe-resume .recipe-resume__nutrition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  grid-auto-rows: 1fr;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.recipe-resume .recipe-resume__nutrition-item {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.recipe-resume .recipe-resume__nutrition-value {
  font-weight: bold;
}

.recipe-resume .recipe-resume__nutrition-description {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 25px;
  row-gap: 10px;
}

.recipe-resume .recipe-resume__nutrition-description [title]:after {
  position: relative;
  right: -5px;
  top: -5px;
  content: "";
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../img/information.svg);
  display: inline-block;
}

.detail-recipe__content {
  display: flex;
  gap: 30px;
}

.recipe-tools {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.recipe-instruction {
  flex: 2;
}

.recipe-instruction__content {
  margin: 30px 60px;
}

.detail-article.detail-recipe .recipe-instruction__content {
  margin-left: 0;
}

.recipe-instruction ul {
  padding-left: 25px;
}

.recipe-tool {
  background: white;
  border-radius: 20px;
  padding: 30px;
}

.recipe-tool .recipe-tool__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.recipe-tool .recipe-tool__title {
  margin-bottom: 0;
}

.recipe-tool .quantity-btn {
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--color-grey);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.recipe-tool .quantity-btn .btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--color-primary-highlight);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-tool .recipe-tool__list {
  list-style-type: none;
  font-weight: bold;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 44px;
  font-size: 16px;
}

.recipe-resume__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (max-width: 1023px) {

  .detail-recipe__content,
  .detail-recipe__head {
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {
  .article-category__heading .t-title {
    margin-bottom: 0;
  }

  .recipe-tools,
  .box-featured__image {
    min-width: 500px;
  }

  .box-featured .action-control {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1;
  }

  .recipe-resume__intro .tag {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .detail-article {
    padding-block: 40px;
  }

  .detail-article~.recipes-cards {
    padding: 10px 0 40px;
  }

  .recipe-resume .recipe-resume__infos-list {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-around;
    column-gap: 25px;
  }

  .recipe-resume .recipe-resume__info-item {
    flex-direction: column;
    flex: 1;
  }

  .recipe-resume .recipe-resume__info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .recipe-tool .recipe-tool__head {
    flex-direction: column;
  }

  .recipe-tool .quantity-btn {
    font-size: 18px;
  }

  .recipe-tool .quantity-btn,
  .recipe-tool .recipe-tool__title {
    width: 100%;
  }

  .recipe-instruction__content {
    margin: 30px 0 0 0;
  }

  .recipe-instruction__content .c-accordion:last-child {
    margin-bottom: 0;
  }

  .article-category__heading {
    display: flex;
    flex-direction: column-reverse;
  }

  .detail-recipe {
    font-size: 14px;
  }

  .recipe-resume .recipe-resume__nutrition-list {
    grid-template-columns: repeat(auto-fill, 70px);
  }

  .recipe-resume .recipe-resume__nutrition-item {
    padding: 16px;
  }

  .recipe-tool {
    padding: 20px;
  }
}


.c-accordion .c-accordion-title {
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  cursor: pointer;
}

.c-accordion .c-accordion-title h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #1A3461;
  margin: 0;
}

.c-accordion .c-accordion-title .icon {
  background: url(../img/icons/my-academy.png);
  transform: initial !important;
}

.c-accordion .c-accordion-title .icon {
  width: 35px;
  height: 35px;
  background-color: #FFD439;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  transform: rotate(90deg);
  position: unset;
  margin-bottom: auto;
  flex: none;
}

.c-accordion {
  box-shadow: none;
  border-radius: 20px;
  margin-bottom: 15px;
  background: #FFF;
  color: #1A3461;
}

.c-accordion .c-accordion-content {
  padding: 0 35px 10px 35px;
  display: none;
}

.c-accordion-head-title {
  display: flex;
  gap: 30px;
  align-items: center;
}

.c-accordion .c-accordion-head-title .icon-default {
  display: flex;
  width: 30px;
  align-items: center;
  justify-content: center;
}

#block-recipes-introduction p,
#block-recipes-introduction ol,
#block-recipes-introduction ul {
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

/* ── feature/2029 – Recipe pill: desktop (≥1024px) ──────────────────────────────
   Two-column layout: .recipe-resume sits beside the image.
   Pill stays INSIDE the image (right: 15px) so numbers are fully visible and
   don't overlap the resume text on the right.
   Specificity 0,3,0 beats recipe.css 0,2,0 and style.css 0,2,0 rules. */
@media screen and (min-width: 1024px) {
  .detail-recipe .box-featured .action-control {
    position: absolute;
    top: 50%;
    right: 15px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 10;
  }
}

/* ── feature/2029 – Recipe pill: tablet 768–1023px ───────────────────────────────
   Single-column layout. Wrapper = 90% → margin = 38px > 35px pill projection.
   Straddling fits without viewport clip. */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .detail-recipe .box-featured .action-control {
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    bottom: auto;
    transform: translate(50%, -50%);
    z-index: 10;
  }
}

/* ── feature/2029 – Recipe pill: phone <768px ────────────────────────────────────
   Wrapper = 85% → margin = ~30px < 35px pill projection → straddling overflows
   html { overflow-x: hidden } and gets clipped.
   Fix: keep pill fully inside the image, 10px from the right border. */
@media screen and (max-width: 767px) {
  .detail-recipe .box-featured .action-control {
    position: absolute;
    top: 50%;
    right: 10px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 10;
  }
}