/*
 * Alfa Editorial: kitchen.css
 * Кујна: the recipe index (route kitchen, after archive.css) and the recipe page (route recipe,
 * after article.css). Blocks and behaviour follow 365's "Астал"; the look is the layer's:
 * headline face, text serif, sans labels, hairlines, plain pictures, red only for kickers and
 * live times. The difficulty word is never in colour.
 */

/* ================================================================== 1. Index: head */

.ed-kitchen__titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ed-s2) var(--ed-s6);
}
.ed-kitchen__title { margin-right: auto; }
.ed-kitchen__dek { margin-top: var(--ed-s2); }
.ed-kitchen__page { margin-top: var(--ed-s3); }

/* Chips, sort and the status line share one row (the sort at the right end of the chips' hairline). */
.ed-kitchen__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--ed-s4);
  border-bottom: 1px solid var(--ed-line);
}
.ed-kitchen__tools > .ed-kfilters { grid-column: 1; grid-row: 1; min-width: 0; }
.ed-kitchen__tools > .ed-ksort { grid-column: 2; grid-row: 1; align-self: center; }
.ed-kitchen__tools > .ed-kfilters__status { grid-column: 1 / -1; grid-row: 2; }
.ed-kitchen__tools .ed-kfilters__nav { border-bottom: 0; }
.ed-kitchen__tools .ed-kfilters__status:not(:empty) { margin-block: var(--ed-s2); }
/* Phones: the chips stay on one line beside the sort and scroll sideways under a soft fade at the
   right edge (a wrapped second line left the active rule floating); the label stays for readers. */
@media (max-width: 739.98px) {
  .ed-kitchen__tools .ed-kfilters__nav {
    flex-wrap: nowrap;
    column-gap: var(--ed-s4);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-right: var(--ed-s5);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .ed-kitchen__tools .ed-kfilters__nav::-webkit-scrollbar { display: none; }
  .ed-kitchen__tools .ed-kfilters__chip { flex: none; }
  .ed-kitchen__tools .ed-kfilters__chip::after { bottom: 0; }
  .ed-kitchen__tools > .ed-ksort { align-self: start; }
  .ed-kitchen__tools .ed-ksort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Sort: a disclosure of plain links */
.ed-ksort {
  position: relative;
  margin-left: auto;
  font-family: var(--ed-sans);
}
.ed-ksort__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.ed-ksort__btn::-webkit-details-marker { display: none; }
.ed-ksort__btn::marker { content: ""; }
.ed-ksort__label { color: var(--ed-ink-4); }
.ed-ksort__value { font-weight: 700; }
.ed-ksort__chevron { color: var(--ed-ink-4); transition: transform 0.15s var(--ed-ease); }
.ed-ksort[open] .ed-ksort__chevron { transform: rotate(180deg); }
.ed-ksort__btn:hover .ed-ksort__value { text-decoration: underline; text-underline-offset: 3px; }
.ed-ksort__menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  left: auto;
  z-index: 60;
  min-width: 228px;
  max-width: calc(100vw - 2 * var(--ed-gutter));
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--ed-ink);
  background: var(--ed-bg);
}
.ed-ksort__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s3);
  min-height: 40px;
  padding: 8px 16px;
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  color: var(--ed-ink);
}
.ed-ksort__item:hover,
.ed-ksort__item:focus-visible { background: var(--ed-bg-2); }
.ed-ksort__item:focus-visible { outline-offset: -2px; }
.ed-ksort__item[aria-current] { font-weight: 700; }

/* ================================================================== 2. Index: frame */

.ed-kitchen__body { margin-top: var(--ed-rule-gap); }
/* Straight under the section masthead (no page head): the chips row opens the page. */
.ed-kitchen__body--top { margin-top: var(--ed-s4); }
.ed-kitchen__main { min-width: 0; }
.ed-kitchen__rail { display: flex; flex-direction: column; gap: var(--ed-block-gap); min-width: 0; }
/* Desktop: the rail is shorter than the list, so its last block ("Најново") stays in view under the
   compact bar while the recipes scroll (base.css .ed-sticky numbers; no motion). */
@media (min-width: 1024px) and (min-height: 560px) {
  .ed-kitchen__rail > :last-child {
    position: sticky;
    top: calc(var(--ed-sticky-top, 64px) + 16px);
    max-height: calc(100vh - var(--ed-sticky-top, 64px) - 32px);
    overflow: clip;
  }
}
.ed-kitchen__rail .ed-ad { padding-top: 0; border-top: 0; }
.ed-kitchen__rail .ed-ad__link { display: block; max-width: 100%; }
.ed-kitchen__rail .ed-ad img { width: 300px; max-width: 100%; height: auto; }

/* ================================================================== 3. Chips and status */

/* A row of toggles under a hairline; the active one is ink with a rule under it. */
.ed-kfilters__nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--ed-s5);
  border-bottom: 1px solid var(--ed-line);
}
.ed-kfilters__chip {
  position: relative;
  min-height: 40px;
  padding: 0;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink-3);
  white-space: nowrap;
  transition: color 0.15s var(--ed-ease);
}
.ed-kfilters__chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background-color 0.15s var(--ed-ease);
}
.ed-kfilters__chip:hover { color: var(--ed-ink); }
.ed-kfilters__chip:hover::after { background: var(--ed-line-2); }
.ed-kfilters__chip[aria-pressed="true"] { color: var(--ed-ink); }
.ed-kfilters__chip[aria-pressed="true"]::after { background: var(--ed-ink); }
.ed-kfilters__chip:focus-visible { outline-offset: -2px; }

.ed-kfilters__status {
  margin-top: var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ed-ink-4);
}
.ed-kfilters__status:empty { margin-top: 0; }

/* ================================================================== 4. Slider "Избрани рецепти" */

.ed-kslider {
  margin-top: var(--ed-block-gap);
  padding-bottom: var(--ed-block-gap);
  border-bottom: 1px solid var(--ed-line);
}
.ed-kslider__label { margin-bottom: var(--ed-s3); }

.ed-kslider__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ed-kslider__track::-webkit-scrollbar { display: none; }
.ed-kslider__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.ed-kslider__link { display: block; }
.ed-kslider__media { aspect-ratio: 4 / 3; }
@media (min-width: 740px) {
  .ed-kslider__media { aspect-ratio: 16 / 9; }
}
.ed-kslider__caption { display: block; max-width: 44rem; padding-top: 14px; }
.ed-kslider__kicker { display: block; margin-bottom: 6px; }
.ed-kslider__title {
  display: block;
  font-family: var(--ed-head);
  font-size: var(--ed-fs-lg);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.003em;
  color: var(--ed-ink);
  text-wrap: balance;
  transition: color 0.12s var(--ed-ease);
}
.ed-kslider__badge {
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ed-ink);
}
.ed-kslider__badge { display: block; margin-top: 10px; line-height: 1.3; }
.ed-kslider__excerpt {
  display: block;
  max-width: 62ch;
  margin-top: 6px;
  font-family: var(--ed-serif);
  font-size: var(--ed-fs-dek);
  line-height: 1.45;
  color: var(--ed-ink-3);
  text-wrap: pretty;
}
@media (min-width: 740px) {
  .ed-kslider__excerpt { font-size: 1rem; }
}
.ed-kslider__link:hover .ed-kslider__title { color: var(--ed-ink-3); }
.ed-kslider__link:hover img { opacity: 0.9; }
.ed-kslider__link:focus-visible { outline-offset: 4px; }

/* Controls: drawn by kitchen.js (hidden without it; the strip still swipes and scrolls). */
.ed-kslider__controls { display: none; }
.js .ed-kslider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s3);
  margin-top: var(--ed-s3);
}
html:not(.js) .ed-kslider__track { scrollbar-width: thin; }
.ed-kslider__dots { display: flex; gap: 2px; margin-left: -7px; }
.ed-kslider__dot {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 40px;
}
.ed-kslider__bar {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ed-line-2);
  transition: background-color 0.2s var(--ed-ease);
}
.ed-kslider__dot:hover .ed-kslider__bar { background: var(--ed-ink-4); }
.ed-kslider__dot.is-active .ed-kslider__bar { background: var(--ed-ink); }
.ed-kslider__arrows { display: flex; gap: 6px; }
.ed-kslider__ctrl {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ed-line-2);
  border-radius: var(--ed-radius);
  color: var(--ed-ink);
  transition: border-color 0.15s var(--ed-ease), background-color 0.15s var(--ed-ease);
}
.ed-kslider__ctrl:hover { border-color: var(--ed-ink); }
.ed-kslider__ctrl:disabled { opacity: 0.35; cursor: default; }
.ed-kslider__ctrl:disabled:hover { border-color: var(--ed-line-2); }

/* ================================================================== 5. Recipes: the section stream */

/* The list is the section stream (.ed-river, archive.css): date column, bold headline, recipe meta,
   picture at the right. Only the opening and the uncut description are the kitchen's own. */
.ed-kitchen__list { margin-top: var(--ed-block-gap); padding-top: var(--ed-rule-gap); border-top: 1px solid var(--ed-ink); }
/* Recipes a little closer together than the news stream: 14px above and below each hairline. */
.ed-kcards > .ed-river__item { padding-block: var(--ed-item-gap); }
.ed-kitchen__listhead { margin-bottom: var(--ed-s2); }
.ed-kitchen__listhead + .ed-kcards { border-top: 0; }
.ed-kitchen__listhead + .ed-kcards > .ed-river__item:first-child { padding-top: var(--ed-s1); }
/* The description is cut at a word on the server (24 words), so nothing is clipped mid-word. */
.ed-kcards .ed-river__dek { display: block; overflow: visible; -webkit-line-clamp: none; }

/* ================================================================== 6. Pagination */

.ed-kitchen__pager .ed-pagination { margin-top: var(--ed-block-gap); }
/* As on the other section pages (archive.css): every target at least 40px, arrows only on phones. */
.ed-kitchen .ed-pagination a,
.ed-kitchen .ed-pagination ul > li > span { min-width: 40px; min-height: 40px; }
.ed-kitchen .ed-pagination a > span { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0; }
.ed-kitchen .ed-pagination .dots { min-width: 0; }
@media (max-width: 739.98px) {
  .ed-kitchen .ed-pagination ul { flex-wrap: nowrap; gap: 4px; }
  .ed-kitchen .ed-pagination a,
  .ed-kitchen .ed-pagination ul > li > span { min-height: 44px; padding: 0 8px; }
  .ed-kitchen .ed-pagination .prev,
  .ed-kitchen .ed-pagination .next { position: relative; min-width: 44px; padding: 0; }
  .ed-kitchen .ed-pagination .dots { padding: 0 2px; }
  .ed-kitchen .ed-pagination a > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.ed-kitchen__pagecount {
  margin-top: var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ed-ink-4);
  text-align: center;
}

/* ================================================================== 7. "Видео рецепти" */

/* Phones: a small-thumb list (headline left, picture right, light rules); from 740px three columns. */
.ed-kvideos { margin-top: var(--ed-block-gap); }
.ed-kvideos__grid { margin: 0; padding: 0; list-style: none; }
.ed-kvideos__item { position: relative; min-width: 0; }
.ed-kvideos__item + .ed-kvideos__item { margin-top: var(--ed-s4); padding-top: var(--ed-s4); border-top: 1px solid var(--ed-line); }
.ed-kvideos__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: auto 1fr;
  column-gap: var(--ed-s3);
  align-items: start;
}
.ed-kvideos__thumb { position: relative; grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 16 / 10; }
.ed-kvideos__play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  transition: background-color 0.15s var(--ed-ease);
}
.ed-kvideos__play .ed-icon { width: 13px; height: 13px; margin-left: 2px; }
.ed-kvideos__card:hover .ed-kvideos__play { background: var(--ed-ink); }
.ed-kvideos__kicker { display: block; grid-column: 1; grid-row: 1; margin: 0 0 4px; color: var(--sd-c-text, var(--ed-ink-2)); }
.ed-kvideos__title {
  display: block;
  grid-column: 1;
  grid-row: 2;
  font-family: var(--ed-head);
  font-size: var(--ed-fs-xs);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ed-ink);
  text-wrap: balance;
  transition: color 0.12s var(--ed-ease);
}
.ed-kvideos__card:hover .ed-kvideos__title { color: var(--ed-ink-3); }
.ed-kvideos__card:hover img { opacity: 0.9; }
@media (min-width: 740px) {
  .ed-kvideos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
  }
  .ed-kvideos__item + .ed-kvideos__item { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-kvideos__card { display: block; }
  .ed-kvideos__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .ed-kvideos__play .ed-icon { width: 16px; height: 16px; }
  .ed-kvideos__kicker { margin: 10px 0 4px; }
  .ed-kvideos__item + .ed-kvideos__item::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
}

/* ================================================================== 8. "Најново" (rail) */

.ed-klatest { padding-top: var(--ed-rule-gap); border-top: 1px solid var(--ed-ink); }
.ed-klatest__head { margin-bottom: var(--ed-s3); }
.ed-klatest__list { margin: 0; padding: 0; list-style: none; }
.ed-klatest__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--ed-s3);
  align-items: start;
  padding-block: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
}
.ed-klatest__item.has-media { grid-template-columns: minmax(0, 1fr) 72px; }
.ed-klatest__item:first-child { padding-top: 0; border-top: 0; }
.ed-klatest__body { min-width: 0; }
.ed-klatest__time {
  margin-bottom: 4px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.ed-klatest__title {
  font-family: var(--ed-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ed-ink);
  text-wrap: pretty;
}
.ed-klatest__title a:hover { color: var(--ed-ink-3); }

/* Under a recipe: the same list as a grid of two, then four columns. */
.ed-klatest--wide { margin-top: var(--ed-block-gap); }
@media (min-width: 740px) {
  .ed-klatest--wide .ed-klatest__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
  }
  .ed-klatest--wide .ed-klatest__item { position: relative; }
  .ed-klatest--wide .ed-klatest__item:nth-child(-n + 2) { padding-top: 0; border-top: 0; }
  .ed-klatest--wide .ed-klatest__item:nth-child(2n)::before {
    content: "";
    position: absolute;
    top: var(--ed-s3); bottom: var(--ed-s3);
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
  .ed-klatest--wide .ed-klatest__item:nth-child(-n + 2)::before { top: 0; }
}
@media (min-width: 1024px) {
  .ed-klatest--wide .ed-klatest__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-klatest--wide .ed-klatest__item:nth-child(-n + 4) { padding-top: 0; border-top: 0; }
  .ed-klatest--wide .ed-klatest__item:not(:nth-child(4n + 1))::before {
    content: "";
    position: absolute;
    top: var(--ed-s3); bottom: var(--ed-s3);
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
  .ed-klatest--wide .ed-klatest__item:nth-child(4n + 1)::before { display: none; }
  .ed-klatest--wide .ed-klatest__item:nth-child(-n + 4)::before { top: 0; }
}

/* ================================================================== 9. Recipe: head, picture */

/* As on a news article: headline, lead, picture, then the byline under the picture. */
.ed-recipe__meta > .ed-recipe__byline { margin-top: var(--ed-s5); }
.ed-byline__views { font-variant-numeric: tabular-nums; }
.ed-recipe__lead { margin-top: var(--ed-s5); }
@media (min-width: 740px) {
  .ed-recipe__lead { margin-top: var(--ed-s6); }
}
.ed-recipe__image { aspect-ratio: 3 / 2; overflow: hidden; }
.ed-recipe__image img { height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ================================================================== 10. Recipe: intro, facts, video */

.ed-recipe__body { margin-top: var(--ed-s8); }
@media (min-width: 740px) {
  .ed-recipe__body { margin-top: var(--ed-s10); }
}

.ed-recipe__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ed-s4) var(--ed-s4);
  margin: var(--ed-s6) 0 0;
  padding-block: var(--ed-s4);
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}
.ed-recipe__fact { min-width: 0; }
.ed-recipe__fact dt {
  font-family: var(--ed-sans);
  font-size: 0.65625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-recipe__fact dd {
  margin: 5px 0 0;
  font-family: var(--ed-head);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: lining-nums;
  color: var(--ed-ink);
}
.ed-recipe__fact-note {
  display: block;
  margin-top: 3px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ed-ink-4);
}
.ed-recipe__fact:has(.ed-recipe__fact-note) { grid-column: 1 / -1; }
/* From 740px every fact gets an equal column on one line; a time note wraps inside its own cell. */
@media (min-width: 740px) {
  .ed-recipe__facts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: var(--ed-s6);
  }
  .ed-recipe__fact:has(.ed-recipe__fact-note) { grid-column: auto; }
  .ed-recipe__fact dd { font-size: var(--ed-fs-sm); }
}

.ed-recipe__video { margin: var(--ed-s8) 0 0; }
.ed-recipe__video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ed-ink); }
.ed-recipe__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-prose .ed-recipe__video figcaption {
  margin-top: var(--ed-s2);
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  color: var(--ed-ink-4);
}

/* ================================================================== 11. Recipe: ingredients and steps */

.ed-recipe__cook {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--ed-s10);
  margin-top: var(--ed-s8);
}
.ed-recipe__cook > * { min-width: 0; }
@media (min-width: 740px) {
  .ed-recipe__cook { max-width: calc(var(--ed-measure) + 2 * var(--ed-gutter)); margin-top: var(--ed-s10); }
}
@media (min-width: 1024px) {
  .ed-recipe__cook {
    max-width: calc(945px + 2 * var(--ed-gutter));
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    column-gap: calc(2 * var(--ed-col-pad));
    align-items: start;
  }
  .ed-recipe__steps { position: relative; }
  .ed-recipe__steps::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
}
@media (min-width: 1024px) and (min-height: 760px) {
  /* The ingredients stay in view while the steps are read. */
  .ed-recipe__ingredients { position: sticky; top: calc(var(--ed-top) + 72px); }
  .ed-recipe__panel { max-height: calc(100vh - var(--ed-top) - 96px); overflow-y: auto; scrollbar-width: thin; }
}

.ed-recipe__h {
  font-family: var(--ed-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ed-ink);
}

.ed-recipe__panel {
  padding: var(--ed-s5) var(--ed-s5) var(--ed-s2);
  background: var(--ed-bg-2);
}
@media (min-width: 740px) {
  .ed-recipe__panel { padding: var(--ed-s6) var(--ed-s6) var(--ed-s3); }
}
.ed-recipe__yield {
  margin-top: 4px;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ed-ink-4);
}
.ed-recipe__group {
  margin-top: var(--ed-s5);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.ed-recipe__checklist { margin: var(--ed-s3) 0 0; padding: 0; list-style: none; }
.ed-recipe__group + .ed-recipe__checklist { margin-top: var(--ed-s1); }
.ed-recipe__ing + .ed-recipe__ing { border-top: 1px solid var(--ed-line); }
.ed-recipe__ing label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--ed-s3);
  align-items: start;
  padding-block: 10px;
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ed-ink-2);
  cursor: pointer;
}
.ed-recipe__check {
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--ed-ink-4);
  border-radius: 2px;
  background: var(--ed-bg);
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ed-ease), border-color 0.15s var(--ed-ease);
}
.ed-recipe__check::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
}
.ed-recipe__check:hover { border-color: var(--ed-ink); }
.ed-recipe__check:checked { border-color: var(--ed-ink); background: var(--ed-ink); }
.ed-recipe__check:checked::after { opacity: 1; }
.ed-recipe__qty { font-weight: 700; color: var(--ed-ink); }
.ed-recipe__ing-text { transition: color 0.15s var(--ed-ease); }
.ed-recipe__ing.is-done .ed-recipe__ing-text,
.ed-recipe__ing:has(.ed-recipe__check:checked) .ed-recipe__ing-text {
  color: var(--ed-ink-4);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.ed-recipe__ing.is-done .ed-recipe__qty,
.ed-recipe__ing:has(.ed-recipe__check:checked) .ed-recipe__qty { color: inherit; }

.ed-recipe__steplist { margin: var(--ed-s3) 0 0; padding: 0; list-style: none; }
.ed-recipe__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  padding-block: var(--ed-s4) var(--ed-s5);
  border-top: 1px solid var(--ed-line);
}
.ed-recipe__step:first-child { border-top-color: var(--ed-ink); }
.ed-recipe__num {
  font-family: var(--ed-head);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ed-ink);
}
.ed-recipe__step-text {
  font-family: var(--ed-serif);
  font-size: 1.0625rem;
  line-height: 1.53;
  color: var(--ed-ink-2);
  text-wrap: pretty;
}
@media (min-width: 740px) {
  .ed-recipe__ing label { font-size: 1.0625rem; }
  .ed-recipe__step { grid-template-columns: 56px minmax(0, 1fr); padding-block: var(--ed-s5) var(--ed-s6); }
  .ed-recipe__num { font-size: 1.875rem; }
  .ed-recipe__step-text { font-size: 1.125rem; line-height: 1.55; }
}

/* ================================================================== 12. Recipe: tip, credit, end */

.ed-recipe__after { margin-top: var(--ed-s8); }
.ed-recipe__tip {
  padding: var(--ed-s4) var(--ed-s5);
  background: var(--ed-bg-2);
}
.ed-recipe__tip p {
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ed-ink-2);
}
.ed-recipe__tip-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
@media (min-width: 740px) {
  .ed-recipe__tip { padding: var(--ed-s5) var(--ed-s6); }
  .ed-recipe__tip p { font-size: 1.0625rem; }
}
.ed-prose .ed-recipe__note {
  margin-top: var(--ed-s6);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ed-ink-4);
}

.ed-recipe__end { margin-top: var(--ed-s8); }
.ed-recipe__byline--bottom { margin-top: 0; padding-top: var(--ed-s4); border-top-color: var(--ed-ink); }
.ed-recipe__byline-label {
  flex: 1 1 auto;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ed-ink);
}
.ed-recipe__end > .ed-slot--article-end { margin-top: var(--ed-s8); }

/* ================================================================== 13. Below the recipe: related, newest */

.ed-krelated-wrap { margin-top: var(--ed-s10); }
@media (min-width: 1024px) {
  .ed-krelated-wrap { margin-top: var(--ed-s12); }
}
.ed-krelated { margin-top: 0; }
.ed-krelated__bar { display: none; }
.js .ed-krelated__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s3);
  margin-bottom: var(--ed-s4);
  border-bottom: 1px solid var(--ed-line);
}
.ed-archive__head.ed-kitchen__head--under { padding-top: var(--ed-s4); }
/* A sub-section's name under the masthead reads like the other fronts' sub-section heads. */
.ed-kitchen__head--under .ed-kitchen__title {
  font-family: var(--ed-head);
  font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: normal;
  line-height: 1.1;
}
@media (max-width: 739px) {
  .ed-krelated__bar { flex-wrap: wrap; }
  .ed-krelated__tabs { flex: 1 1 100%; }
}
.ed-krelated__tabs { display: flex; flex-wrap: wrap; column-gap: var(--ed-s5); min-width: 0; }
.ed-krelated__tab {
  position: relative;
  min-height: 40px;
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ed-ink-4);
  text-align: left;
}
.ed-krelated__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
}
.ed-krelated__tab:hover { color: var(--ed-ink); }
.ed-krelated__tab[aria-selected="true"] { color: var(--ed-ink); }
.ed-krelated__tab[aria-selected="true"]::after { background: var(--ed-ink); }
.ed-krelated__tab:focus-visible { outline-offset: -2px; }
.ed-krelated__pager { display: flex; flex: none; gap: 6px; padding-bottom: 6px; }

.ed-krelated__title { margin-bottom: var(--ed-s4); }
.js .ed-krelated__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html:not(.js) .ed-krelated__panel + .ed-krelated__panel { margin-top: var(--ed-s8); }
.js .ed-krelated__panel[data-aed-later],
.js .ed-krelated__item.is-off { display: none; }

.ed-krelated__list { margin: 0; padding: 0; list-style: none; }
.ed-krelated__item + .ed-krelated__item { margin-top: var(--ed-s4); padding-top: var(--ed-s4); border-top: 1px solid var(--ed-line); }
.js .ed-krelated__item.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
/* Phones: small picture at the right of the headline, as in every list. */
@media (max-width: 739.98px) {
  .ed-krelated__list .ed-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-krelated__list .ed-story .ed-media { grid-column: 2; grid-row: 1; }
  .ed-krelated__list .ed-story .ed-story__body { grid-column: 1; grid-row: 1; }
}
@media (min-width: 740px) {
  .ed-krelated__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
    row-gap: var(--ed-s6);
  }
  .ed-krelated__item,
  .ed-krelated__item + .ed-krelated__item { position: relative; margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-krelated__item::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
  .ed-krelated__item.is-first::before,
  html:not(.js) .ed-krelated__item:nth-child(3n + 1)::before { display: none; }
}

/* ================================================================== 14. Print: one clean recipe */

@media print {
  .ed-kfilters, .ed-kfilters__status, .ed-ksort, .ed-kslider__controls, .js .ed-kslider__controls, .ed-kvideos, .ed-kitchen__rail,
  .ed-recipe__byline, .ed-recipe__end, .ed-krelated-wrap, .ed-recipe__video, .ed-recipe .ed-breadcrumbs,
  .ed-recipe__check { display: none; }
  .ed-recipe { padding-top: 0; }
  .ed-recipe .ed-article__title { font-size: 22pt; }
  .ed-recipe .ed-article__dek { font-size: 12pt; }
  .ed-recipe__lead { margin-top: 10pt; }
  .ed-recipe__image { aspect-ratio: auto; max-height: 7cm; }
  .ed-recipe__image img { max-height: 7cm; width: 100%; }
  .ed-recipe__body { margin-top: 12pt; }
  .ed-recipe__cook {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    column-gap: 18pt;
    max-width: none;
    margin-top: 14pt;
  }
  .ed-recipe__steps::before { display: none; }
  .ed-recipe__ingredients { position: static; }
  .ed-recipe__panel { max-height: none; overflow: visible; padding: 0; background: none; }
  .ed-recipe__ing label { display: block; padding-block: 3pt; font-size: 10pt; }
  .ed-recipe .ed-recipe__checklist .ed-recipe__ing .ed-recipe__ing-text,
  .ed-recipe .ed-recipe__checklist .ed-recipe__ing .ed-recipe__qty { color: #000; text-decoration: none; }
  .ed-view-recipe .ed-bar { display: none; }
  .ed-recipe__step { grid-template-columns: 22pt minmax(0, 1fr); padding-block: 5pt; break-inside: avoid; }
  .ed-recipe__num { font-size: 14pt; }
  .ed-recipe__step-text { font-size: 10.5pt; }
  .ed-recipe__tip { padding: 8pt 10pt; border: 1px solid #999; background: none; break-inside: avoid; }
  .ed-recipe__facts { margin-top: 10pt; padding-block: 6pt; }
}

/* ================================================================== 15. Washes and motion (platform pass: shared contract)
   The warm gold of Кујна as a paper tint: the masthead fades from it to white, the featured slider
   sits on it, the ingredient panel is the one stronger surface of a recipe. Motion is transform and
   opacity only; reveals and parallax are switched on by core.js (html.js-motion) and are off for
   reduced motion. */

.ed-view-kitchen,
.ed-view-recipe {
  --k-wash: var(--sd-c-wash, color-mix(in srgb, var(--sd-c) 5%, #fff));
  --k-wash-2: var(--sd-c-wash-2, color-mix(in srgb, var(--sd-c) 10%, #fff));
  --k-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The section's masthead (printed by the fronts lane) on the warm wash, fading to white. */
.ed-view-kitchen .ed-mast {
  background: linear-gradient(180deg, var(--k-wash) 0%, var(--k-wash) 45%, var(--ed-bg) 100%);
}

/* Empty sub-section: a compact notice on the wash (as on the other fronts), then Кујна's newest. */
.ed-kempty {
  margin-bottom: var(--ed-block-gap);
  padding: var(--ed-s4) var(--ed-s5);
  background: var(--k-wash);
  border-left: 3px solid var(--sd-c);
  border-radius: 0 3px 3px 0;
}
.ed-kempty__label { color: var(--sd-c-text); }
.ed-kempty__title {
  margin-top: var(--ed-s2);
  font-family: var(--ed-head);
  font-size: var(--ed-fs-sm);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-kempty__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-s2);
  margin: var(--ed-s3) 0 0;
  padding: 0;
  list-style: none;
}
.ed-kempty__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 600;
  color: var(--sd-c-text);
  background: var(--ed-bg);
  border: 1px solid var(--sd-line, var(--ed-line));
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.18s var(--ed-motion, ease), transform 0.18s var(--ed-motion, ease);
}
.ed-kempty__link:hover,
.ed-kempty__link:focus-visible { border-color: var(--sd-c); }
.ed-kempty__link:active { transform: translateY(1px) scale(0.98); }
.ed-kempty__text {
  margin-top: var(--ed-s3);
  font-family: var(--ed-serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ed-ink-3);
}

/* "Избрани рецепти" on a quiet panel of the wash. */
.ed-kslider {
  margin-inline: calc(-1 * var(--ed-gutter));
  padding: var(--ed-s5) var(--ed-gutter) var(--ed-s5);
  border-bottom: 0;
  background: var(--k-wash);
}
@media (min-width: 740px) {
  .ed-kslider { margin-inline: 0; padding: var(--ed-s6) var(--ed-s6) var(--ed-s5); border-radius: var(--ed-radius); }
}
.ed-kslider__caption { transition: opacity 0.4s var(--k-ease), transform 0.4s var(--k-ease); }
.ed-kslider__track:has(.is-current) .ed-kslider__slide:not(.is-current) .ed-kslider__caption { opacity: 0.35; transform: translateY(6px); }
.ed-kslider__link:hover .ed-kslider__title { color: var(--ed-ink-3); }

/* Recipe page: the top of the page carries the wash, fading to white under the headline. */
.ed-recipe { position: relative; isolation: isolate; }
.ed-recipe::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 420px;
  background: linear-gradient(180deg, var(--k-wash) 0%, var(--k-wash) 30%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
}
.ed-recipe .ed-article__kicker,
.ed-recipe .ed-article__kicker a { color: var(--sd-c-text); }
.ed-recipe__panel { background: var(--k-wash-2); border-radius: var(--ed-radius); }
.ed-recipe__tip { background: var(--k-wash); border-left: 3px solid var(--sd-c); }
.ed-recipe__num { color: var(--sd-c-text); }
.ed-recipe__check:checked { border-color: var(--sd-c-text); background: var(--sd-c-text); }
.ed-recipe__check:checked::after { animation: ed-k-tick 0.25s var(--k-ease) both; }
@keyframes ed-k-tick { from { opacity: 0; transform: rotate(-45deg) scale(0.4); } to { opacity: 1; transform: rotate(-45deg) scale(1); } }

/* The lead picture is scaled just enough for its parallax (max 16px) never to show an edge. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js-motion .ed-recipe__image[data-parallax] { overflow: hidden; }
  .js-motion .ed-recipe__image[data-parallax] img { scale: 1.06; will-change: transform; }
}

/* Hover on desktop pointers: video thumbs lift their play mark. */
@media (hover: hover) and (pointer: fine) {
  .ed-kvideos__play { transition: transform 0.3s var(--k-ease), background-color 0.15s var(--ed-ease); }
  .ed-kvideos__card:hover .ed-kvideos__play { transform: scale(1.08); }
  .ed-kvideos__card:hover img { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-kslider__caption,
  .ed-kvideos__play { transition: none; }
  .ed-kslider__track:has(.is-current) .ed-kslider__slide:not(.is-current) .ed-kslider__caption { transform: none; }
  .ed-recipe__check:checked::after { animation: none; }
}
@media print {
  .ed-recipe::before { display: none; }
  .ed-kslider { background: none; padding: 0; margin-inline: 0; }
  .ed-recipe__panel, .ed-recipe__tip { background: none; }
}

/* ================================================================== 16. Final polish (owner, 2026-11-26)
   Calmer character, one easing family (--k-ease), 180 to 520ms. Pictures of recipes that enter the
   window open with a short wipe and settle from 1.04; the numbers of the steps slide 6px and their
   rules draw in from the left; the ingredient rows answer the finger. Hues are derived in oklch, fades interpolate in oklab
   where the browser can (the hex washes stay as the fallback); hairlines on a wash take the gold at
   about 20 %. Nothing here hides anything without JS (html.js-motion); all of it is off for reduced
   motion. */

.ed-view-kitchen,
.ed-view-recipe {
  --k-dur: 520ms;
  --k-fast: 180ms;
  --k-rule: color-mix(in srgb, var(--sd-c) 22%, var(--ed-line));
  --k-band: linear-gradient(90deg, var(--k-wash-2) 0%, var(--k-wash) 55%, rgb(255 255 255 / 0.6) 100%);
  --k-top: linear-gradient(180deg, var(--k-wash-2) 0%, var(--k-wash) 38%, rgb(255 255 255 / 0) 100%);
  --k-glow: radial-gradient(60% 90% at 100% 0%, rgb(230 140 40 / 0.10), transparent 70%);
}
@supports (color: oklch(from red l c h)) {
  .ed-view-kitchen,
  .ed-view-recipe {
    --k-rule: color-mix(in oklab, var(--sd-c) 22%, var(--ed-line));
    --k-band: linear-gradient(90deg in oklab, var(--k-wash-2) 0%, var(--k-wash) 55%, oklch(from var(--k-wash) l c h / 0.4) 100%);
    --k-top: linear-gradient(180deg in oklab, var(--k-wash-2) 0%, var(--k-wash) 38%, oklch(1 0 0 / 0) 100%);
    /* A faint second hue: the gold turned 25 degrees towards terracotta, a glow in the top corner. */
    --k-glow: radial-gradient(60% 90% at 100% 0%, oklch(from var(--sd-c) 0.86 0.08 calc(h - 25) / 0.32), transparent 70%);
  }
}

/* ---- Tools: the chips' rule draws in from the left, in the section colour; buttons press. */
.ed-view-kitchen .ed-kitchen__tools { border-bottom-color: var(--k-rule); }
.ed-kfilters__chip { min-height: 44px; }
.ed-kfilters__chip::after {
  background: var(--sd-c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--k-fast) var(--k-ease), background-color var(--k-fast) var(--k-ease);
}
.ed-kfilters__chip:hover::after { background: var(--k-rule); transform: scaleX(1); }
.ed-kfilters__chip[aria-pressed="true"]::after { background: var(--sd-c); transform: scaleX(1); }
.ed-kfilters__chip:active { transform: translateY(1px); }
.ed-kfilters__status:not(:empty) { color: var(--sd-c-text); font-weight: 600; }
.ed-ksort__btn { min-height: 44px; }
.ed-ksort__menu { border-color: var(--k-rule); box-shadow: 0 1px 2px rgb(31 22 3 / 0.05), 0 8px 24px rgb(31 22 3 / 0.08); }
.ed-ksort__item { min-height: 44px; transition: background-color var(--k-fast) var(--k-ease); }
.ed-ksort__item:hover,
.ed-ksort__item:focus-visible { background: var(--k-wash); }
.ed-ksort__item[aria-current] { color: var(--sd-c-text); }
.ed-ksort[open] .ed-ksort__menu { animation: ed-k-drop 0.22s var(--k-ease) both; }
@keyframes ed-k-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- "Избрани рецепти": a horizontal fade with the warm glow, not a flat panel. */
.ed-kslider { background: var(--k-glow), var(--k-band); }
.ed-kslider__label { padding-bottom: var(--ed-s2); border-bottom: 1px solid var(--k-rule); }
.ed-kslider__media { overflow: hidden; }
.ed-kslider__badge { color: var(--sd-c-text); }
.ed-kslider__dot.is-active .ed-kslider__bar { background: var(--sd-c-text); }
.ed-kslider__bar { transition: background-color var(--k-fast) var(--k-ease), transform var(--k-fast) var(--k-ease); }
.ed-kslider__dot:hover .ed-kslider__bar { transform: scaleY(1.6); }
.ed-kslider__ctrl {
  min-width: 44px;
  min-height: 44px;
  background: rgb(255 255 255 / 0.7);
  transition: border-color var(--k-fast) var(--k-ease), background-color var(--k-fast) var(--k-ease), transform var(--k-fast) var(--k-ease);
}
.ed-kslider__ctrl:hover { border-color: var(--sd-c-text); background: var(--ed-bg); }
.ed-kslider__ctrl:active:not(:disabled) { transform: scale(0.94); }
/* Once the reader moves the slider (kitchen.js adds .is-moved), each new picture settles from 1.04. */
.ed-kslider.is-moved .ed-kslider__media img { transition: scale var(--k-dur) var(--k-ease), opacity 0.3s var(--k-ease); }
.ed-kslider.is-moved .ed-kslider__slide:not(.is-current) .ed-kslider__media img { scale: 1.04; }

/* ---- Recipe rows: a headline underline that draws in, the picture zooms 3 %; rows read as targets. */
.ed-kcard .ed-kcard__title a,
.ed-klatest__title a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--k-fast) var(--k-ease), color var(--k-fast) var(--k-ease);
}
.ed-kcard:hover .ed-kcard__title a,
.ed-kcard:focus-within .ed-kcard__title a,
.ed-klatest__item:hover .ed-klatest__title a,
.ed-klatest__title a:focus-visible { background-size: 100% 1px; color: var(--ed-ink); }
.ed-kcard .ed-river__media { overflow: hidden; }
.ed-klatest,
.ed-kitchen__list { border-top-color: var(--sd-c); }
.ed-kempty { background: var(--k-glow), var(--k-band); }

/* Reveal: the picture of a row (and of a bridge story) opens with a short wipe and settles. */
html.js-motion .ed-kcard[data-reveal]:not(.is-in) .ed-river__media img,
html.js-motion .ed-recipe__bridge[data-reveal]:not(.is-in) .ed-story__media img,
html.js-motion .ed-kitchen__bridge[data-reveal]:not(.is-in) .ed-story__media img {
  clip-path: inset(0 100% 0 0);
  scale: 1.04;
}
html.js-motion .ed-kcard[data-reveal]:not(.is-done) .ed-river__media img,
html.js-motion .ed-recipe__bridge[data-reveal]:not(.is-done) .ed-story__media img,
html.js-motion .ed-kitchen__bridge[data-reveal]:not(.is-done) .ed-story__media img {
  transition: clip-path var(--k-dur) var(--k-ease) 80ms, scale var(--k-dur) var(--k-ease) 80ms, opacity 0.35s var(--k-ease);
}

/* ---- Recipe: the top of the page in two depths. The picture drifts (data-parallax, core.js); the
   gold wash behind the head drifts slower, by a CSS scroll-driven animation where it exists. */
.ed-recipe::before {
  height: 520px;
  background: var(--k-glow), var(--k-top);
}
.ed-recipe .ed-breadcrumbs a { transition: color var(--k-fast) var(--k-ease); }
.ed-recipe .ed-breadcrumbs a:hover { color: var(--sd-c-text); }
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .js-motion .ed-recipe::before {
      animation: ed-k-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 640px;
    }
  }
}
@keyframes ed-k-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 36px, 0); } }

/* Facts: the ink rule draws in from the left as the row arrives; the cells follow in reading order. */
.ed-recipe__facts { position: relative; border-top-color: transparent; border-bottom-color: var(--k-rule); }
.ed-recipe__facts::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ed-ink);
  transform-origin: 0 50%;
}
.ed-recipe__fact dt { color: var(--sd-c-text); }
html.js-motion .ed-recipe__facts[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
html.js-motion .ed-recipe__facts[data-reveal]:not(.is-done)::before { transition: transform var(--k-dur) var(--k-ease); }

/* Ingredients: the panel on the wash (top to bottom), gold hairlines, rows that answer the finger. */
.ed-recipe__panel {
  background: var(--k-glow), linear-gradient(180deg, var(--k-wash-2), var(--k-wash) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-c) 14%, transparent);
}
.ed-recipe__ing + .ed-recipe__ing { border-top-color: var(--k-rule); }
.ed-recipe__ing label {
  min-height: 44px;
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 3px;
  transition: background-color var(--k-fast) var(--k-ease);
  -webkit-tap-highlight-color: transparent;
}
.ed-recipe__ing label:hover { background: rgb(255 255 255 / 0.55); }
.ed-recipe__check {
  transition: background-color var(--k-fast) var(--k-ease), border-color var(--k-fast) var(--k-ease),
    transform var(--k-fast) var(--k-ease), box-shadow var(--k-fast) var(--k-ease);
}
.ed-recipe__check:hover { border-color: var(--sd-c-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-c) 18%, transparent); }
.ed-recipe__ing label:active .ed-recipe__check { transform: scale(0.88); }
.ed-recipe__check:focus-visible { outline: 2px solid var(--sd-c-text); outline-offset: 2px; }
.ed-recipe__ing-text { transition: color 0.3s var(--k-ease); }
.ed-recipe__ing.is-done label { background: rgb(255 255 255 / 0.4); }

/* Steps: one by one; the number slides 6px in after its rule has drawn in from the left. */
.ed-recipe__steps .ed-recipe__h { padding-bottom: var(--ed-s1); }
.ed-recipe__step { position: relative; border-top-color: transparent; }
.ed-recipe__step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ed-line);
  transform-origin: 0 50%;
}
.ed-recipe__step:first-child::before { background: var(--ed-ink); }
.ed-recipe__num { display: inline-block; }
html.js-motion .ed-recipe__step[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
html.js-motion .ed-recipe__step[data-reveal]:not(.is-in) .ed-recipe__num { opacity: 0; transform: translate3d(-6px, 0, 0); }
html.js-motion .ed-recipe__step[data-reveal]:not(.is-done)::before { transition: transform var(--k-dur) var(--k-ease); }
html.js-motion .ed-recipe__step[data-reveal]:not(.is-done) .ed-recipe__num { transition: opacity 0.36s var(--k-ease) 140ms, transform 0.36s var(--k-ease) 140ms; }

/* The tip: a horizontal fade from the wash, the gold rule at its left. */
.ed-recipe__tip { background: var(--k-band); }
.ed-recipe__tip-label { color: var(--sd-c-text); }

/* Related: the tabs carry an indicator that slides between them (kitchen.js draws it). */
.ed-krelated__tabs { position: relative; }
.ed-krelated__tab { min-height: 44px; transition: color var(--k-fast) var(--k-ease); }
.ed-krelated__ind {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 2px;
  background: var(--sd-c);
  transform-origin: 0 50%;
  pointer-events: none;
}
.ed-krelated__tabs.has-ind .ed-krelated__ind { transition: transform 0.32s var(--k-ease); }
.ed-krelated__tabs.has-ind .ed-krelated__tab::after { display: none; }
.js .ed-krelated__bar { border-bottom-color: var(--k-rule); }

@media (prefers-reduced-motion: reduce) {
  .ed-kfilters__chip::after,
  .ed-kslider__bar,
  .ed-kslider__ctrl,
  .ed-ksort__item,
  .ed-kcard .ed-kcard__title a,
  .ed-klatest__title a,
  .ed-recipe__ing label,
  .ed-recipe__check,
  .ed-krelated__tabs.has-ind .ed-krelated__ind,
  .ed-kslider.is-moved .ed-kslider__media img { transition: none; }
  .ed-ksort[open] .ed-ksort__menu { animation: none; }
  .ed-kslider.is-moved .ed-kslider__slide:not(.is-current) .ed-kslider__media img { scale: none; }
  .ed-kfilters__chip:active,
  .ed-kslider__ctrl:active:not(:disabled),
  .ed-recipe__ing label:active .ed-recipe__check { transform: none; }
  html.js-motion .ed-kcard[data-reveal] .ed-river__media img,
  html.js-motion .ed-recipe__bridge[data-reveal] .ed-story__media img,
  html.js-motion .ed-kitchen__bridge[data-reveal] .ed-story__media img { clip-path: none; scale: none; }
  html.js-motion .ed-recipe__facts[data-reveal]::before,
  html.js-motion .ed-recipe__step[data-reveal]::before { transform: none; }
  html.js-motion .ed-recipe__step[data-reveal] .ed-recipe__num { opacity: 1; transform: none; }
}
@media print {
  .ed-recipe__facts::before, .ed-recipe__step::before { transform: none !important; }
  .ed-recipe__facts { border-top-color: #000; }
  .ed-krelated__ind { display: none; }
  .ed-recipe__panel { box-shadow: none; }
}

/* ================================================================== 17. Round 6 (2026-11-26)
   The recipe answers a cook's first questions on the first screen (time, servings, difficulty under
   the lead); a slim bar jumps between Состојки and Подготовка (sticky on phones and tablets) and
   prints; a step can be marked done (dimmed), and ticks and steps survive a reload. */

.ed-recipe__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--ed-s4);
  margin: var(--ed-s4) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-recipe__quick li { position: relative; }
.ed-recipe__quick li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-0.5 * var(--ed-s4) - 2px);
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.ed-recipe__jump {
  display: flex;
  align-items: center;
  gap: var(--ed-s2);
  margin-top: var(--ed-s6);
  padding-block: 6px;
  border-bottom: 1px solid var(--ed-line);
  background: var(--ed-bg);
}
.ed-recipe__jump-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--ed-s3);
  border: 1px solid var(--ed-line-2);
  border-radius: 999px;
  background: var(--ed-bg);
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ed-ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ed-ease), background-color 0.15s var(--ed-ease);
}
.ed-recipe__jump-link:hover { border-color: var(--ed-ink); }
.ed-recipe__print { margin-left: auto; }
.ed-recipe__print[hidden] { display: none; }
@media (pointer: coarse) {
  .ed-recipe__jump-link { min-height: 44px; }
}
@media (max-width: 1023.98px) {
  .ed-recipe__jump {
    position: sticky;
    top: var(--ed-sticky-top, 57px);
    z-index: 5;
  }
  .ed-recipe__h { scroll-margin-top: calc(var(--ed-sticky-top, 57px) + 72px); }
  .ed-recipe__cook { margin-top: var(--ed-s6); }
  /* Stuck under the compact bar, it slides up with the bar when the bar tucks away (core.js
     .is-tucked; kitchen.js .is-stuck), so no strip of the page shows above it. Transform only. */
  .ed-recipe__jump { transition: transform 300ms var(--ed-motion, ease); }
  body:has(.ed-bar.is-tucked) .ed-recipe__jump.is-stuck { transform: translate3d(0, calc(var(--ed-top, 0px) - var(--ed-sticky-top, 57px)), 0); }
  /* On the way up the bar brings the sections' row (chrome.css .is-row: 40px and its 1px rule):
     the jump bar steps down under it rather than hiding half behind it. */
  body:has(.ed-bar.is-row:not(.is-tucked)) .ed-recipe__jump.is-stuck { transform: translate3d(0, 41px, 0); }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) {
  .ed-recipe__jump { transition: none; }
}
/* The recipe's own closing row («Споделете го рецептот», labelled «Сподели» and «Зачувај») already
   ends the text, so the article footer's second share-and-save row is left out here. */
.ed-recipe__end .ed-article__end-tools { display: none; }
@media (min-width: 1024px) {
  /* Ingredients and steps already sit side by side: the bar keeps only a quiet print button. */
  .ed-recipe__jump { justify-content: flex-end; max-width: calc(945px + 2 * var(--ed-gutter)); padding-block: 0; border-bottom: 0; background: none; }
  .ed-recipe__jump > a { display: none; }
  .ed-recipe__jump:not(:has(.ed-recipe__print:not([hidden]))) { display: none; }
  .ed-recipe__h { scroll-margin-top: calc(var(--ed-sticky-top, 78px) + 16px); }
}

/* A finished step: dimmed, its number ticked; the whole step is the target. */
.ed-recipe__step.is-toggle { cursor: pointer; }
.ed-recipe__step.is-toggle .ed-recipe__num {
  border-radius: 2px;
  cursor: pointer;
}
.ed-recipe__step.is-toggle .ed-recipe__num:focus-visible { outline: 2px solid var(--sd-focus, var(--ed-ink)); outline-offset: 3px; }
.ed-recipe__step-text { transition: color 0.3s var(--k-ease, ease); }
.ed-recipe__step.is-cooked .ed-recipe__step-text { color: var(--ed-ink-4); }
.ed-recipe__step.is-cooked .ed-recipe__num { color: var(--ed-ink-4); opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .ed-recipe__step.is-toggle:hover .ed-recipe__num { color: var(--ed-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .ed-recipe__step-text, .ed-recipe__jump-link { transition: none; }
}
@media print {
  .ed-recipe__jump { display: none; }
  .ed-recipe__quick { color: #000; }
  .ed-recipe__step.is-cooked .ed-recipe__step-text,
  .ed-recipe__step.is-cooked .ed-recipe__num { color: #000; opacity: 1; }
}
/* The save button carries its word («Зачувај» / «Зачувано») like «Сподели»; on phones both are icons
   in the byline row, as on a news article, and their words stay for screen readers. */
.ed-recipe__byline .ed-save { min-height: 40px; padding-inline: 12px 14px; gap: 6px; }
.ed-recipe__byline .ed-save[aria-pressed="true"] { border-color: var(--sd-c, var(--ed-ink)); color: var(--sd-c-text, var(--ed-ink)); }
.ed-recipe__byline .ed-save[aria-pressed="true"] svg { fill: currentColor; }
@media (pointer: coarse) {
  .ed-recipe__byline .ed-save { min-height: 44px; }
}
@media (max-width: 739.98px) {
  .ed-recipe__byline .ed-save { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .ed-recipe__byline .ed-save__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
/* Chips and sort on phones (round 6): every chip visible, nothing behind the sort. The chips take the
   whole first line (and wrap on the narrowest phones); the sort sits at the right of the second line,
   beside the result count. A chip or a sort choice reloads onto this row (#ed-krecipes). */
.ed-kitchen__tools { scroll-margin-top: calc(var(--ed-sticky-top, 57px) + 8px); }
@media (max-width: 599.98px) {
  .ed-kitchen__tools > .ed-kfilters { grid-column: 1 / -1; grid-row: 1; }
  .ed-kitchen__tools > .ed-kfilters__status { grid-column: 1; grid-row: 2; align-self: center; }
  .ed-kitchen__tools > .ed-ksort { grid-column: 2; grid-row: 2; align-self: center; }
  .ed-kitchen__tools .ed-kfilters__nav {
    flex-wrap: wrap;
    column-gap: var(--ed-s4);
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ed-kitchen__tools .ed-ksort__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ed-kitchen__tools .ed-kfilters__status:not(:empty) { margin-block: 0; }
}