/* Recipe list (frames 8/9/13) and recipe detail (frames 3/4). */
.flip { transform: scaleY(-1); }
.list-toolbar { display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 24px; margin-bottom: 48px; }
.list-search { grid-column: 2; position: relative; }
.list-search > img { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.list-search .input { min-height: 56px; padding-left: 52px; padding-right: 60px; }
.list-search .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.list-sort { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.list-sort .select { width: 180px; }
.filters { grid-column: 1 / -1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 32px 24px; }
.filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.filters .field > label { padding-left: 24px; }
.list-count { margin: -24px 0 24px; font-size: 14px; font-weight: 600; }

.recipe { display: grid; grid-template-columns: minmax(0, 530px) minmax(0, 750px); justify-content: space-between; gap: 24px 40px; margin-top: 24px; }
.recipe__top, .recipe__byline { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.recipe__top { justify-content: space-between; }
.recipe__stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.recipe__actions { display: flex; align-items: center; gap: 16px; }
.recipe__save { border: 0; background: none; padding: 6px; }
.recipe__save[aria-pressed="true"] img { filter: brightness(0) saturate(100%) invert(44%) sepia(63%) saturate(453%) hue-rotate(122deg) brightness(91%) contrast(87%); /* brand green */ }
.recipe__byline { font-size: 14px; }
.recipe__author { font-weight: 600; }
.recipe__rating { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.stars--input { gap: 2px; }
.stars--input button { border: 0; background: none; padding: 6px; margin: -4px; min-width: 36px; min-height: 36px; display: grid; place-items: center; }
.stars--input img { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .stars--input button:hover img { transform: scale(1.15); } }
.stars--input button:focus-visible img { transform: scale(1.15); }
.stars--input button:active img { transform: scale(0.9); }
.recipe__aside { grid-column: 1; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 32px; }
.recipe__main { grid-column: 2; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 32px; }
.recipe__title { font-size: 32px; font-weight: 700; line-height: 1.2; }
.recipe__summary { color: var(--c-muted); font-size: 15px; margin-top: -16px; }
.recipe__h { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.ing-group { font-size: 15px; font-weight: 700; margin: 16px 0 10px; }
.ing-list { list-style: none; display: grid; gap: 8px; }
.ing-list li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--c-muted); }
.ing-list li span:last-child { color: #000; font-weight: 600; text-align: right; }
.kcal { border: 2px dashed var(--c-primary-line); border-radius: var(--radius); padding: 28px 30px; display: grid; gap: 12px; }
.kcal__h, .tips__h, .where__h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.kcal__row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.kcal__list { color: var(--c-muted); font-size: 14px; padding-left: 20px; }
.kcal__note { color: var(--c-muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0 30px; }
.facts dt { color: var(--c-muted); font-size: 14px; }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 17px; }
.where { padding: 0 0 0 0; display: grid; gap: 8px; }
.where__h { color: var(--c-primary); }
.where p { color: var(--c-muted); font-size: 14px; padding-left: 34px; }
.tips { background: var(--c-primary-soft); border-radius: var(--radius); padding: 28px 30px; display: grid; gap: 12px; }
.tips p { color: var(--c-muted); font-size: 14px; }
.recipe__cover, .step__img, .gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #eee; }
.recipe__cover img, .step__img img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.recipe__cover, .step__img, .gallery figure { aspect-ratio: 750 / 550; }
.recipe__video { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: #000; }
.recipe__video iframe { width: 100%; height: 100%; border: 0; }
.recipe__video-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; }
.recipe__video-btn img:first-child { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.recipe__video-btn .tile__play { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; }
.recipe__video-btn .tile__play span { width: 68px; height: 68px; }
.steps { list-style: decimal; padding-left: 20px; display: grid; gap: 28px; }
.step p { font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.step::marker { font-weight: 700; }
.gallery { display: grid; gap: 16px; }

.comments { max-width: 760px; margin: 80px auto 0; }
.comments__title { text-align: center; font-size: 20px; font-weight: 700; padding-bottom: 24px; border-bottom: 1.5px solid var(--c-primary-line); margin-bottom: 32px; }
.comments__count { text-align: center; font-size: 20px; font-weight: 700; margin: 48px 0 24px; }
.comments__guest { padding: 24px 0; }
.comment-form { display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.comment-form .reply-to { font-size: 13px; color: var(--c-muted); }
.comment { padding: 20px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 10px; }
.comment--reply { margin-left: 32px; border-bottom: 0; padding-bottom: 0; }
.comment__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.comment__body { font-size: 15px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.comment__reply-btn { justify-self: end; display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--c-muted); font-size: 13px; }
.comment__replies summary { cursor: pointer; color: var(--c-muted); font-size: 13px; }

@media (max-width: 960px) {
  .list-toolbar { grid-template-columns: 1fr; }
  .list-search, .list-sort { grid-column: 1; justify-self: stretch; }
  .list-sort .select { flex: 1; width: auto; }
  .recipe { grid-template-columns: 1fr; }
  .recipe__aside, .recipe__main { grid-column: 1; grid-row: auto; }
  .recipe__main { order: -1; }
  .recipe__top { order: -3; } .recipe__byline { order: -2; }
  .recipe__rating { margin-left: 0; width: 100%; }
  .facts { padding: 0; }
}


/* 2026 refresh: detail page */
.recipe__title { font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.1; }
.recipe__h { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.recipe__cover { box-shadow: var(--shadow-card); }
.ing-list li { border-bottom: 1px dashed var(--c-line); }
.ing { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; font-size: 15px; color: var(--c-ink); }
.ing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ing span:first-of-type { display: inline-flex; align-items: center; gap: 12px; transition: color 150ms ease; }
.ing span:first-of-type::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--c-primary-line); transition: background-color 150ms ease, box-shadow 150ms ease; }
.ing span:last-child { font-weight: 600; text-align: right; }
.ing input:focus-visible + span::before { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.ing:has(input:checked) span { color: var(--c-muted); }
.ing:has(input:checked) span:first-child { text-decoration: line-through; text-decoration-color: var(--c-primary); }
.ing:has(input:checked) span:first-child::before { background: var(--c-primary) url("../img/icons/check.svg") center / 12px no-repeat; box-shadow: none; }
.ing-hint { font-size: 13px; color: var(--c-muted); margin: -10px 0 8px; }
.kcal, .tips { background: var(--c-surface); border: 0; box-shadow: var(--shadow-card); }
.kcal { border: 1.5px dashed var(--c-primary-line); box-shadow: none; background: transparent; }
.facts { background: var(--c-surface); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-card); }
.facts dd { font-size: 18px; font-weight: 700; }
.steps { list-style: none; padding: 0; counter-reset: step; gap: 36px; }
.step { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 6px 16px; }
.step::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-ink); font-size: 15px; font-weight: 800; }
.step p { font-size: 16px; font-weight: 500; line-height: 1.65; margin: 4px 0 0; }
.step__img { grid-column: 2; margin-top: 14px; box-shadow: var(--shadow-card); }
.comments__title, .comments__count { font-size: 24px; }
.comment { border-bottom-color: var(--c-line); }
.list-search .input { border-color: var(--c-line); }

.ing-list li { display: block; padding: 0; }
.ing { width: 100%; align-items: center; }
.ing span:first-of-type { color: var(--c-ink); }
.ing span:first-of-type::before { background: var(--c-surface); box-shadow: inset 0 0 0 1.5px #9fcfc7; }
@media (hover: hover) and (pointer: fine) { .ing:hover span:first-child::before { box-shadow: inset 0 0 0 1.5px var(--c-primary); } }
.facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* Mobile: one column in reading order — meta, title, photo, facts, ingredients, steps, extras. */
@media (max-width: 960px) {
  .recipe { display: flex; flex-direction: column; gap: 24px; }
  .recipe__aside, .recipe__main { display: contents; }
  .recipe__top { order: 1; }
  .recipe__byline { order: 2; }
  .recipe__title { order: 3; }
  .recipe__summary { order: 4; margin-top: -8px; }
  .recipe__cover { order: 5; }
  .recipe__video { order: 6; }
  .facts { order: 7; }
  .recipe__block { order: 8; }
  .kcal { order: 9; }
  .recipe__steps { order: 10; }
  .gallery { order: 11; }
  .where { order: 12; }
  .tips { order: 13; }
  .recipe__ad { order: 14; }
  .recipe__related { order: 15; }
  .recipe__top { justify-content: flex-start; gap: 12px 20px; }
  .recipe__actions { margin-left: auto; }
}
/* ===== Facts (servings / times): white card, hairline edge + barely-there shadow ===== */
.facts { background: var(--c-surface); border-radius: var(--radius); padding: 18px 22px; gap: 0;
  box-shadow: 0 0 0 1px rgba(22, 22, 22, .05), 0 1px 2px rgba(16, 32, 29, .05); border: 0; }
.facts__item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 16px; }
.facts__item:first-child { padding-left: 0; }
.facts__item + .facts__item { border-left: 1px solid var(--c-line); }
.facts__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary-soft); }
.facts dt { font-size: 14px; color: var(--c-muted); line-height: 1.3; }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; padding: 4px 18px; }
  .facts__item { padding: 12px 0; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--c-line); }
}

/* Cook-mode entry */
.cook-start { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px 14px 14px; border: 0; border-radius: 18px; background: var(--c-primary); color: #fff; text-align: left; cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.cook-start:active { transform: scale(0.98); }
.cook-start__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.cook-start__icon img, .cook-start__arrow { filter: brightness(0) invert(1); }
.cook-start__text { flex: 1; display: grid; gap: 2px; }
.cook-start__text strong { font-size: 18px; font-weight: 800; }
.cook-start__text span { font-size: 14px; opacity: .9; }
.cook-start__arrow { transition: transform 200ms var(--ease-out); }
.cook-start:focus-visible { outline: 3px solid rgba(48, 141, 128, .5); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cook-start:hover { background: #23756a; } .cook-start:hover .cook-start__arrow { transform: translateX(4px); } }
@media (max-width: 960px) { .cook-start { order: 6; } }

/* ===== Figma "3 - resept": plain ingredient rows, plain facts, tips/where blocks ===== */
.ing-group { font-size: 17px; font-weight: 700; margin: 20px 0 12px; color: var(--c-ink); }
.ing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ing-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0; border: 0; font-size: 17px; line-height: 1.35; }
.ing-list li span:first-child { color: #979797; }
.ing-list li span:last-child { color: var(--c-ink); font-weight: 500; text-align: right; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0 30px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.facts > div { min-width: 0; }
.facts dt { color: #979797; font-size: 17px; line-height: 1.2; max-width: 9ch; }
.facts dd { margin: 10px 0 0; font-size: 20px; font-weight: 500; color: var(--c-ink); }
.where { display: grid; gap: 14px; }
.where__h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--c-primary); }
.where p { padding-left: 34px; color: #979797; font-size: 16px; line-height: 1.4; }
.tips { background: rgba(48, 141, 128, .1); border-radius: 20px; padding: 28px 30px; box-shadow: none; display: grid; gap: 10px; }
.tips__h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tips p { color: #979797; font-size: 17px; line-height: 1.35; }
.kcal { border: 1px dashed var(--c-primary); border-radius: 20px; background: transparent; padding: 26px 30px; }
@media (max-width: 480px) { .facts { padding: 0; gap: 10px; } .facts dt { font-size: 15px; } .facts dd { font-size: 18px; } }

/* ===== Recipe list (after bbcgoodfood / yemek.com / Tasty): plain controls on a brand band ===== */
.rl-title { text-align: center; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 26px; }
.rl-title span { display: inline-block; margin-left: 10px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--c-muted); vertical-align: middle; }
.rl-search { position: relative; max-width: 640px; margin: 0 auto; }
.rl-search > img { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.rl-search input { width: 100%; height: 56px; padding: 0 22px 0 56px; border: 1.5px solid var(--c-primary); border-radius: 28px; background: #fff; font: inherit; font-size: 16px; color: var(--c-ink); }
.rl-search input::placeholder { color: var(--c-primary-ink); opacity: .7; }
.rl-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(48, 141, 128, .18); }
.rl-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.rl-examples { text-align: center; margin: 14px 0 30px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.rl-examples a { margin: 0 2px; font-weight: 500; color: var(--c-primary-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rl-examples span { color: #c8c8c8; margin: 0 4px; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .rl-examples a:hover { color: var(--c-ink); } }

.rl-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 22px; border-radius: 16px; background: var(--c-primary); }
.rl-band__label { font-size: 17px; font-weight: 800; color: #fff; margin-right: 6px; }
.rl-band__sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 15px; font-weight: 700; color: #fff; }
.rl-select { height: 44px; padding: 0 38px 0 14px; border: 0; border-radius: 10px; background: #fff url("../img/icons/chevron-down.svg") right 12px center / 14px no-repeat;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--c-ink); cursor: pointer; appearance: none; -webkit-appearance: none; min-width: 170px; }
.rl-select:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.rl-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; min-height: 24px; margin: 22px 0 18px; font-size: 15px; color: var(--c-muted); }
.rl-summary strong { color: var(--c-ink); }
.rl-summary a { font-weight: 700; color: var(--c-primary-ink); }
.rl-results[aria-busy="true"] { opacity: .6; transition: opacity 150ms ease; }
.rl-empty { padding: 48px 0; }

@media (max-width: 960px) {
  .rl-band { padding: 14px; }
  .rl-band__label { flex-basis: 100%; }
  .rl-select { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .rl-band__sort { flex-basis: 100%; margin-left: 0; }
  .rl-band__sort .rl-select { flex: 1; }
}
@media (max-width: 480px) {
  .rl-title span { display: block; margin: 6px 0 0; font-size: 15px; }
  .rl-examples { font-size: 14px; line-height: 1.9; }
}
@media (max-width: 480px) {
  .rl-band { gap: 8px; }
  .rl-select { font-size: 14px; padding: 0 30px 0 12px; background-position: right 10px center; }
  #f-cat { flex-basis: 100%; }
  .rl-band__sort label { font-size: 14px; }
}

/* Colour pass: green is the accent, not the surface. Light band in the green family, dark text, white controls. */
.rl-search input { border-color: #308d80; }
.rl-search input::placeholder { color: #9a9a9a; opacity: 1; }
.rl-search > img { opacity: .55; }
.rl-examples { color: var(--c-muted); font-weight: 600; }
.rl-examples a { color: var(--c-ink); text-decoration-color: rgba(48, 141, 128, .7); }
@media (hover: hover) and (pointer: fine) { .rl-examples a:hover { color: var(--c-primary-ink); } }
.rl-band { background: #e9f4f2; box-shadow: inset 0 0 0 1px #d3e8e4; }
.rl-band__label, .rl-band__sort { color: var(--c-ink); }
.rl-band__sort label { color: var(--c-muted); font-weight: 600; }
.rl-select { box-shadow: 0 0 0 1px #cfe5e1; transition: box-shadow 150ms ease; }
.rl-select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--c-primary); }
@media (hover: hover) and (pointer: fine) { .rl-select:hover { box-shadow: 0 0 0 1px #9fcfc7; } }
.rl-select:has(option:checked:not([value=""])) { box-shadow: 0 0 0 1.5px var(--c-primary); color: var(--c-primary-ink); font-weight: 600; }
#f-sort { color: var(--c-ink); font-weight: 500; box-shadow: 0 0 0 1px #cfe5e1; }
.rl-summary a { color: var(--c-primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.rl-examples a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .rl-examples a:hover { text-decoration: none; } }

/* ---- Category introduction (admin text under the title) ---------------------------------- */
.rl-intro { max-width: 760px; margin: -10px auto 28px; text-align: center; color: var(--c-muted); font-size: 16px; line-height: 1.65; }
.rl-intro p + p { margin-top: 10px; }
