/**
 * Recept (single) — R1 "Kookkaart".
 * Split: sticky foto links, kookkolom rechts.
 */

.rc__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink-950); }

/* Foto */
.rc__photo { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); margin: 0; overflow: hidden; background: var(--ink-850); }
.admin-bar .rc__photo { top: calc(var(--header-h) + 32px); height: calc(100vh - var(--header-h) - 32px); }
.rc__img { width: 100%; height: 100%; object-fit: cover; }
.rc__badge { position: absolute; left: 28px; bottom: 28px; background: var(--ink-950); padding: 16px 18px; }
.rc__badge b { display: block; font: 900 56px/.85 var(--font-display); color: var(--amber); }
.rc__badge span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

/* Kolom */
.rc__col { padding: 56px var(--gutter) 96px 56px; color: var(--text-soft); min-width: 0; }
.rc__crumbs { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.rc__crumbs a { color: inherit; text-decoration: none; }
.rc__crumbs a:hover { color: var(--amber); }
.rc__crumbs i { font-style: normal; margin: 0 8px; color: var(--text-dim); }
.rc__title { margin: 20px 0 16px; font: 900 clamp(56px, 6.4vw, 112px)/.84 var(--font-display); text-transform: uppercase; color: var(--paper); letter-spacing: -.005em; overflow-wrap: anywhere; }

.rc__score { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text-soft); text-decoration: none; font-size: 14px; }
.rc__score b { font: 900 26px/1 var(--font-display); color: var(--paper); }
.rc__score:hover span { color: var(--amber); }

.stars { position: relative; display: inline-block; line-height: 0; }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.stars__bg { color: var(--line-dark-strong); display: inline-flex; gap: 2px; }
.stars__fg { position: absolute; inset: 0 auto 0 0; width: var(--pct); overflow: hidden; color: var(--amber); display: inline-flex; gap: 2px; white-space: nowrap; }

.rc__by { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14.5px; color: var(--text-soft); }
.rc__by img { width: 40px; height: 40px; object-fit: cover; flex: none; background: var(--ink-850); }
.rc__by > span { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.rc__by a { color: var(--paper); font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--amber); }
.rc__by a:hover { color: var(--amber); }
.rc__by small { font-size: 12.5px; color: var(--text-muted); }
.rc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rc__tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-dark-strong); color: var(--text-soft); }
.rc__tag.is-hot { background: var(--amber); border-color: var(--amber); color: var(--ink-950); }
.rc__tag a { color: inherit; text-decoration: none; }
.rc__tag:has(a):hover { border-color: var(--amber); }
.rc__tag:not(.is-hot):has(a):hover a { color: var(--amber); }

.rc__meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0; padding: 18px 0; border-block: 1px solid var(--line-dark); }
.rc__meta div { display: flex; flex-direction: column-reverse; }
.rc__meta dd { margin: 0; font: 900 34px/.9 var(--font-display); color: var(--paper); }
.rc__meta dt, .rc__mac dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.rc__intro { font-size: 18px; line-height: 1.65; }
.rc__intro p { margin: 0 0 1em; }
.rc__intro a, .rc__steps a, .rc__tip a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--amber); }

/* Macro's */
.rc__mac { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border-block: 1px solid var(--line-dark); }
.rc__mac div { display: flex; flex-direction: column-reverse; padding: 18px 16px; border-left: 1px solid var(--line-dark); }
.rc__mac div:first-child { border-left: 0; padding-left: 0; }
.rc__mac dd { margin: 0; font: 900 48px/.9 var(--font-display); color: var(--paper); }
.rc__mac dd small { font-size: .45em; color: var(--text-muted); margin-left: 2px; }
.rc__mac .is-kcal dd { color: var(--amber); }
.rc__mac-note { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }

/* Voedingsschema-CTA */
.rc__vs { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-top: 28px; padding: 24px 24px 24px 26px; background: var(--amber-tint-dark); border-left: 6px solid var(--amber); text-decoration: none; color: var(--text-soft); transition: background var(--t-fast); }
.rc__vs:hover { background: #221b12; }
.rc__vs-txt { display: flex; flex-direction: column; gap: 6px; }
.rc__vs-txt b { font: 900 34px/.9 var(--font-display); text-transform: uppercase; color: var(--paper); }
.rc__vs-txt > span:last-child { font-size: 15px; line-height: 1.5; }
.rc__vs .btn { white-space: nowrap; }

/* Blokken */
.rc__blk { margin-top: 56px; }
.rc__blk-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.rc__h2 { margin: 0; font: 900 clamp(40px, 4.4vw, 64px)/.86 var(--font-display); text-transform: uppercase; color: var(--paper); }
.rc__h3 { margin: 0; font: 900 clamp(30px, 3vw, 40px)/.9 var(--font-display); text-transform: uppercase; color: var(--paper); }

/* Porties */
.rc__serv { display: inline-flex; align-items: center; border: 2px solid var(--line-dark-strong); }
.rc__serv button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font: 900 26px/1 var(--font-display); color: var(--paper); }
.rc__serv button:hover, .rc__serv button:focus-visible { background: var(--amber); color: var(--ink-950); }
.rc__serv output { min-width: 110px; text-align: center; font-weight: 800; font-size: 15px; color: var(--paper); }

/* Ingrediënten (afvinkbaar) */
.rc__ing { margin: 0; padding: 0; list-style: none; }
.rc__ing li { position: relative; border-bottom: 1px solid var(--line-dark); }
.rc__ing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rc__ing label { display: grid; grid-template-columns: 22px 104px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; cursor: pointer; font-size: 17px; }
.rc__ing label::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--line-dark-strong); transform: translateY(3px); }
.rc__ing input:checked + label::before { background: var(--amber); border-color: var(--amber); }
.rc__ing input:checked + label .n { text-decoration: line-through; color: var(--text-dim); }
.rc__ing input:focus-visible + label::before { outline: 2px solid var(--amber); outline-offset: 2px; }
.rc__ing .q { font-weight: 800; color: var(--paper); }
.rc__tools { margin: 18px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* Stappen */
.rc__steps { margin: 12px 0 0; padding: 0; list-style: none; }
.rc__steps li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.rc__steps .no { font: 900 80px/.8 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--amber); }
.rc__steps p { margin: 0; font-size: 17.5px; line-height: 1.65; }
.rc__tip { margin-top: 20px; padding: 18px 20px; background: var(--ink-900); font-size: 15.5px; line-height: 1.6; }
.rc__tip b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.rc__tip p { margin: 0 0 .5em; }
.rc__tip p:last-child { margin: 0; }

/* Stemmen */
.rc__rate { margin-top: 56px; padding: 28px; border: 1px solid var(--line-dark-strong); scroll-margin-top: calc(var(--header-h) + 24px); }
.rc__vote fieldset { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 18px 0 10px; padding: 0; border: 0; }
.rc__vote input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rc__vote label { cursor: pointer; line-height: 0; color: var(--line-dark-strong); transition: color var(--t-fast), transform var(--t-fast); }
.rc__vote label svg { width: 40px; height: 40px; fill: currentColor; }
.rc__vote label:hover, .rc__vote label:hover ~ label,
.rc__vote input:checked ~ label { color: var(--amber); }
.rc__vote label:hover { transform: scale(1.08); }
.rc__vote input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.rc__vote.is-done label { cursor: default; pointer-events: none; }
.rc__vote-msg { margin: 0; font-size: 14px; color: var(--text-muted); }
.rc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Na de split */
.rc__after { border-top: 1px solid var(--line-dark); }
.rc__rel-h { margin: 20px 0 36px; }
.rc__rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rc__rel a { display: block; text-decoration: none; color: inherit; }
.rc__rel .ph { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink-850); }
.rc__rel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-slide); }
.rc__rel a:hover img { transform: scale(1.05); }
.rc__rel h3 { margin: 14px 0 6px; font: 900 28px/.9 var(--font-display); text-transform: uppercase; color: var(--paper); }
.rc__rel p { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); }

.rc__kg { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-top: 72px; padding: 32px; background: var(--amber-tint-dark); border-left: 6px solid var(--amber); }
.rc__kg .rc__h3 { margin: 8px 0 8px; }
.rc__kg p { margin: 0; }

@media (max-width: 900px) {
	.rc__split { grid-template-columns: minmax(0, 1fr); }
	.rc__photo, .admin-bar .rc__photo { position: relative; top: 0; height: auto; aspect-ratio: 4 / 3; }
	.rc__col { padding: 32px var(--gutter) 64px; }
	.rc__rel { grid-template-columns: repeat(2, 1fr); }
	.rc__kg, .rc__vs { grid-template-columns: 1fr; }
	.rc__kg { padding: 24px; }
}
@media (max-width: 520px) {
	.rc__mac dd { font-size: 36px; }
	.rc__mac div { padding: 14px 8px; }
	.rc__ing label { grid-template-columns: 22px 84px 1fr; font-size: 16px; }
	.rc__steps li { grid-template-columns: 56px 1fr; }
	.rc__steps .no { font-size: 56px; }
	.rc__badge b { font-size: 40px; }
}

/* Geschreven reviews (optioneel, via moderatie) */
.rc__review { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.rc__review-intro { margin: 0; font-size: 15px; color: var(--text-soft); }
.rc__review-row { display: grid; grid-template-columns: minmax(0, 320px); gap: 10px; }
.rc__review input, .rc__review textarea { width: 100%; padding: 0 14px; border: 1.5px solid var(--line-dark-strong); border-radius: 0; background: var(--ink-950); color: var(--paper); font: 16px var(--font-body); outline: none; }
.rc__review input { height: 48px; }
.rc__review textarea { padding-block: 12px; resize: vertical; }
.rc__review input::placeholder, .rc__review textarea::placeholder { color: var(--text-dim); }
.rc__review input:focus, .rc__review textarea:focus { border-color: var(--amber); }
.rc__review .is-invalid { border-color: var(--error); }
.rc__review-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rc__review .btn[disabled] { opacity: .5; cursor: wait; }
.rc__review-msg { font-size: 14px; color: var(--text-muted); }
.rc__review-msg.is-err { color: var(--error); }
.rc__review.is-sent .rc__review-row, .rc__review.is-sent textarea, .rc__review.is-sent .btn, .rc__review.is-sent .rc__review-intro { display: none; }
.rc__review.is-sent .rc__review-msg { font-size: 16px; color: var(--paper); }

.rc__reviews { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.rc__reviews li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.rc__reviews li[hidden] { display: none; }
.rc__reviews .who { display: flex; flex-direction: column; gap: 4px; }
.rc__reviews .who strong { color: var(--paper); font-size: 15.5px; }
.rc__reviews .st { color: var(--amber); letter-spacing: 1px; }
.rc__reviews .dt { font-size: 13px; color: var(--text-dim); }
.rc__reviews p { margin: 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.rc__more { margin-top: 16px; padding: 12px 18px; border: 1.5px solid var(--line-dark-strong); background: transparent; color: var(--paper); font: 800 13.5px var(--font-body); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.rc__more:hover { border-color: var(--amber); }
@media (max-width: 520px) {
	.rc__review-row, .rc__reviews li { grid-template-columns: 1fr; }
	.rc__reviews li { gap: 8px; }
}
