/* Inspirasi Rakata archive — fully scoped to the recipe archive. */
body.post-type-archive-rakata_recipe { background: #f6ead3; }
body.post-type-archive-rakata_recipe .site-footer { display: none; }
.rakata-recipes { min-height: calc(100svh - 3.25rem); background: linear-gradient(180deg, #f4e1b7 0%, #f9f0df 48%, #f6ead3 100%); color: #3c2416; }
.rakata-recipes__hero { isolation: isolate; position: relative; display: grid; min-height: clamp(13rem, 28vh, 17rem); overflow: hidden; border-bottom: 1px solid rgb(144 89 25 / 26%); }
.rakata-recipes__hero::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(247 229 187 / 98%) 0%, rgb(247 229 187 / 94%) 50%, rgb(238 190 92 / 62%) 72%, rgb(93 44 17 / 18%) 100%); content: ""; pointer-events: none; }
.rakata-recipes__hero-art, .rakata-recipes__hero-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.rakata-recipes__hero-art { z-index: 0; opacity: .16; mix-blend-mode: multiply; }
.rakata-recipes__hero-art img { object-fit: cover; object-position: center 20%; filter: sepia(.35) saturate(.82); }
.rakata-recipes__hero-cobek { position: absolute; z-index: 2; top: .15rem; right: clamp(.25rem, 2vw, 2rem); bottom: .15rem; display: block; width: min(48vw, 37.5rem); pointer-events: none; }
.rakata-recipes__hero-cobek img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; filter: drop-shadow(0 .8rem .65rem rgb(72 32 10 / 24%)); }
.rakata-recipes__hero-content { position: relative; z-index: 3; align-self: center; width: min(100% - 2rem, 78rem); margin-inline: auto; padding-block: clamp(1.5rem, 4vh, 2.75rem); }
.rakata-recipes__hero h1 { max-width: 44rem; margin: 0 0 1.2rem; color: #4c2818; font-size: clamp(2rem, 4.3vw, 4.35rem); letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
.rakata-recipes__search { position: relative; display: flex; align-items: center; width: min(100%, 32rem); }
.rakata-recipes__search svg { position: absolute; left: 1rem; width: 1.15rem; height: 1.15rem; fill: none; stroke: #87501e; stroke-linecap: round; stroke-width: 1.8; pointer-events: none; }
.rakata-recipes__search input { width: 100%; min-height: 3rem; padding: .72rem 3.15rem .72rem 2.8rem; border: 1px solid rgb(131 76 22 / 42%); border-radius: 999px; background: rgb(255 252 243 / 94%); box-shadow: 0 .5rem 1.4rem rgb(91 45 13 / 12%); color: #3c2416; font: inherit; }
.rakata-recipes__search input::-webkit-search-cancel-button { display: none; }
.rakata-recipes__search-clear { position: absolute; right: .45rem; display: grid; width: 2.15rem; height: 2.15rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #8f251d; color: #fffaf0; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.rakata-recipes__result-count { margin: .65rem 0 0 1rem; color: #6d421e; font-size: .875rem; font-weight: 700; }
.rakata-recipes__carousel { width: min(100% - 2rem, 82rem); margin-inline: auto; padding-block: clamp(1.1rem, 2.4vh, 2rem); }
.rakata-recipes__viewport { overflow: hidden; padding: .2rem; border-radius: 1rem; }
.rakata-recipes__track { --recipe-gap: 1rem; display: grid; grid-auto-columns: 88%; grid-auto-flow: column; column-gap: var(--recipe-gap); transition: transform 260ms ease; will-change: transform; }
.rakata-recipe-card { overflow: hidden; min-width: 0; border: 1px solid rgb(139 87 30 / 30%); border-radius: 1rem; background: #fffaf0; box-shadow: 0 .7rem 1.6rem rgb(91 45 13 / 11%); }
.rakata-recipe-card[hidden] { display: none; }
.rakata-recipe-card__link { display: grid; height: 100%; grid-template-rows: auto minmax(4.6rem, auto); color: inherit; text-decoration: none; }
.rakata-recipe-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ead3a4; }
.rakata-recipe-card__thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.rakata-recipe-card__body { position: relative; display: grid; min-height: 4.8rem; padding: .85rem 4.25rem .85rem 1rem; align-items: center; }
.rakata-recipe-card h2 { display: -webkit-box; overflow: hidden; margin: 0; color: #4b2a18; font-size: clamp(.95rem, 1.25vw, 1.08rem); line-height: 1.25; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rakata-recipe-card__bottle { position: absolute; right: .55rem; bottom: .15rem; display: block; width: 3.25rem; height: 4.25rem; pointer-events: none; }
.rakata-recipe-card__bottle img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .3rem .25rem rgb(59 27 8 / 24%)); }
.rakata-recipe-card__link:hover .rakata-recipe-card__thumb { transform: scale(1.035); }
.rakata-recipe-card__link:hover h2 { color: #a3261d; }
.rakata-recipes__controls { display: flex; margin-top: .85rem; align-items: center; justify-content: center; gap: .9rem; }
.rakata-recipes__controls[hidden] { display: none; }
.rakata-recipes__arrow { display: grid; width: 2.6rem; height: 2.6rem; padding: 0; place-items: center; border: 1px solid #9e5a1d; border-radius: 50%; background: #fffaf0; color: #84251d; font-size: 1.2rem; cursor: pointer; }
.rakata-recipes__arrow:disabled { opacity: .38; cursor: default; }
.rakata-recipes__pager { min-width: 3.5rem; margin: 0; color: #6c421f; font-size: .85rem; font-weight: 800; text-align: center; }
.rakata-recipes__empty { margin: 2rem auto; padding: 1.25rem; border: 1px dashed #b57531; border-radius: .9rem; background: rgb(255 250 240 / 72%); color: #5b321a; text-align: center; }
.rakata-recipes__empty[hidden], .rakata-recipes__viewport[hidden] { display: none; }
.rakata-recipes :focus-visible { outline: 3px solid #c93025; outline-offset: 3px; }

/* Recipe detail: Owner-supplied amber pattern, scoped away from the archive. */
body.single-rakata_recipe { background: #f4c86f url("../images/recipes/recipe-download-background.png") center top / cover fixed no-repeat; }
.rakata-recipe-single { width: 90vw; max-width: none; margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.rakata-recipe-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.25rem; }
.rakata-recipe-actions .button { min-height: 2.75rem; }
.rakata-recipe-preview { display: block; width: 100%; margin: 1.25rem auto; background: #fffaf0; }
.rakata-recipe-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
.rakata-recipe-content { width: min(100%, 72rem); margin-inline: auto; }
.rakata-recipe-single :focus-visible { outline: 3px solid #8d3f18; outline-offset: 3px; }

@media (min-width: 40rem) {
	.rakata-recipes__track { grid-auto-columns: calc(33.333333% - .666667rem); }
}

@media (min-width: 64rem) {
	.rakata-recipes__track { grid-auto-columns: calc(20% - .8rem); }
}

@media (max-width: 47.99rem) {
	.rakata-recipes__hero { min-height: clamp(14rem, 31vh, 17rem); }
	.rakata-recipes__hero::after { background: linear-gradient(180deg, rgb(247 229 187 / 92%) 0%, rgb(247 229 187 / 82%) 58%, rgb(147 76 23 / 30%) 100%); }
	.rakata-recipes__hero-art img { object-position: 62% 16%; }
	.rakata-recipes__hero-cobek { top: .4rem; right: -1rem; bottom: .4rem; width: min(60vw, 17rem); opacity: .92; }
	.rakata-recipes__hero-cobek img { object-position: right center; }
	.rakata-recipes__hero h1 { max-width: 20rem; font-size: clamp(2rem, 10.5vw, 3rem); }
	.rakata-recipes__carousel { width: min(100% - 1rem, 30rem); }
	.rakata-recipe-single { width: calc(100% - 1rem); }
}

@media (prefers-reduced-motion: reduce) {
	.rakata-recipes__track, .rakata-recipe-card__thumb { transition: none; }
}
