/* ==========================================================================
   One Pan Pantry — recipe article page
   Loaded only on single recipe posts. Every rule is scoped to .opr.
   ========================================================================== */

.opr { --opr-ease: cubic-bezier(.16, 1, .3, 1); --opr-aside: 300px; }

/* ---------- Hero ---------- */
.opr-hero { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.opr-hero::before {
	content: ""; position: absolute; z-index: -1; right: -12vw; top: -30%; width: 62vw; height: 150%;
	background: radial-gradient(closest-side, var(--opp-saffron-soft), transparent 72%);
}
.opr-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.opr-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.opr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opr-chips .opp-chip { gap: 6px; }
.opr-chips .opp-ico { width: 15px; height: 15px; }
.opr-title { margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-variation-settings: "opsz" 144, "SOFT" 30; text-wrap: balance; }
.opr-title__mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.opr-title__mask > span { display: inline-block; }
.opr-lead { margin: 0; font-size: clamp(17.5px, 1.6vw, 20px); line-height: 1.6; color: var(--opp-muted); max-width: 560px; }

.opr-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 18px 14px 14px; border-radius: 999px; background: var(--opp-card); box-shadow: inset 0 0 0 1px var(--opp-line); }
.opr-byline__txt { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; color: var(--opp-muted); }
.opr-byline__txt b { color: var(--opp-ink); font-size: 15px; }
.opr-byline__txt a { color: var(--opp-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--opp-line); }
.opr-stars { display: inline-flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid var(--opp-line); }
.opr-stars i { color: var(--opp-line); font-style: normal; display: inline-flex; }
.opr-stars i.is-on { color: var(--opp-saffron); }
.opr-stars i.is-on .opp-ico { fill: currentColor; }
.opr-stars .opp-ico { width: 17px; height: 17px; }
.opr-stars small { margin-left: 6px; font-size: 13.5px; font-weight: 600; color: var(--opp-ink); }

.opr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.opr-actions .opp-btn { padding: 14px 22px; font-size: 15px; }
.opr-actions .opp-btn .opp-ico { width: 18px; height: 18px; }
.opr-share { font: inherit; }

.opr-hero__media { position: relative; margin: 0; }
.opr-hero__frame { position: relative; border-radius: var(--opp-r-xl) var(--opp-r-xl) var(--opp-r-xl) 160px; overflow: hidden; box-shadow: var(--opp-shadow-lg); background: var(--opp-saffron-soft); aspect-ratio: 5 / 4; will-change: transform; }
.opr-hero__img, .opr-hero__frame .opp-media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opr-hero__frame .opp-media__art { position: absolute; inset: 0; }
.opr-badge-time { left: -18px; bottom: 28px; }
.opr-hero__media .opp-dot--a { top: -18px; left: auto; right: 12%; }
.opr-hero__media .opp-dot--c { bottom: -14px; left: 40%; }

/* Facts bar */
.opr-facts { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-radius: var(--opp-r-lg); background: var(--opp-card); box-shadow: var(--opp-shadow); overflow: hidden; }
.opr-fact { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 20px 22px; }
.opr-fact + .opr-fact::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--opp-line); }
.opr-fact i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--opp-saffron-soft); color: var(--opp-terra); font-style: normal; transition: transform .5s var(--opr-ease); }
.opr-fact:nth-child(3n+2) i { background: var(--opp-blush); color: var(--opp-terra-deep); }
.opr-fact:nth-child(3n) i { background: var(--opp-sage); color: var(--opp-herb); }
.opr-fact:hover i { transform: rotate(-10deg) scale(1.08); }
.opr-fact .opp-ico { width: 22px; height: 22px; }
.opr-fact dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--opp-muted); }
.opr-fact dd { margin: 0; font-family: var(--opp-serif); font-size: 20px; font-weight: 500; color: var(--opp-ink); white-space: nowrap; }

/* ---------- Layout ---------- */
.opr-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--opr-aside); gap: clamp(32px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.opr-main { min-width: 0; max-width: 760px; }

/* Sidebar */
.opr-aside__sticky { position: sticky; top: calc(var(--opp-header-h) + 24px); display: grid; gap: 16px; }
.opr-recipe-cta {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--opp-r-lg);
	background: var(--opp-terra); color: #fff; box-shadow: 0 18px 34px -18px rgba(154, 52, 18, .8);
	transition: transform .4s var(--opr-ease), background-color .3s;
}
.opr-recipe-cta:hover { color: #fff; background: var(--opp-terra-deep); transform: translateY(-3px); }
.opr-recipe-cta > span:last-child { display: flex; flex-direction: column; font-size: 13.5px; color: #FFE4D6; line-height: 1.35; }
.opr-recipe-cta b { font-size: 16.5px; color: #fff; }
.opr-recipe-cta__ring { position: relative; flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; }
.opr-recipe-cta__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.opr-recipe-cta__ring circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 3; }
.opr-recipe-cta__ring .opr-ring { stroke: #fff; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .2s linear; }
.opr-recipe-cta__ring .opp-ico { width: 20px; height: 20px; animation: opr-nudge 2.2s ease-in-out infinite; }

.opr-toc { padding: 20px 18px 16px; border-radius: var(--opp-r-lg); background: var(--opp-card); box-shadow: inset 0 0 0 1px var(--opp-line); }
.opr-toc[hidden] { display: none; }
.opr-toc__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--opp-muted); }
.opr-toc__title .opp-ico { width: 17px; height: 17px; color: var(--opp-terra); }
.opr-toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.opr-toc ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--opp-line); border-radius: 2px; }
.opr-toc li a {
	position: relative; display: block; padding: 7px 8px 7px 26px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--opp-muted);
	transition: color .25s, background-color .25s;
}
.opr-toc li a::before { content: ""; position: absolute; left: 3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--opp-cream); box-shadow: inset 0 0 0 2px var(--opp-line); transition: background-color .3s, box-shadow .3s, transform .3s var(--opr-ease); }
.opr-toc li a:hover { color: var(--opp-ink); background: var(--opp-cream); }
.opr-toc li a.is-active { color: var(--opp-ink); font-weight: 600; }
.opr-toc li a.is-active::before { background: var(--opp-terra); box-shadow: 0 0 0 4px rgba(194, 65, 12, .15); transform: scale(1.1); }
.opr-toc li a.is-recipe { color: var(--opp-terra); font-weight: 600; }

.opr-mini-news { padding: 18px; border-radius: var(--opp-r-lg); background: var(--opp-cocoa); color: var(--opp-on-dark); }
.opr-mini-news__title { margin: 0 0 8px; font-family: var(--opp-serif); font-size: 19px; line-height: 1.25; color: var(--opp-cream); }
.opr-mini-news .opp-link { color: var(--opp-saffron); font-size: 14.5px; }
.opr-mini-news .opp-link .opp-ico { color: var(--opp-saffron); }

/* ---------- Article content ---------- */
.opr-content > p:first-child { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.65; color: var(--opp-ink); }
.opr-content > p:first-child::first-letter { float: left; font-family: var(--opp-serif); font-size: 4.4em; line-height: .8; padding: .08em .1em 0 0; color: var(--opp-terra); font-variation-settings: "opsz" 144, "SOFT" 100; }
.opr-content h2 { position: relative; padding-top: 22px; margin-top: 2.2em; font-size: clamp(28px, 3.1vw, 38px); scroll-margin-top: calc(var(--opp-header-h) + 24px); }
.opr-content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--opp-terra) 0 60%, var(--opp-saffron) 60%); transform-origin: 0 50%; }
.opr-content h3 { scroll-margin-top: calc(var(--opp-header-h) + 24px); }

/* Lists become checklist cards */
.opr-content > ul.wp-block-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.opr-content > ul.wp-block-list > li {
	position: relative; margin: 0; padding: 14px 18px 14px 54px; border-radius: var(--opp-r-md); background: var(--opp-card); box-shadow: inset 0 0 0 1px var(--opp-line);
	transition: transform .4s var(--opr-ease), box-shadow .4s;
}
.opr-content > ul.wp-block-list > li:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px var(--opp-saffron), var(--opp-shadow); }
.opr-content > ul.wp-block-list > li::before {
	content: ""; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--opp-saffron-soft);
	-webkit-mask: none;
}
.opr-content > ul.wp-block-list > li::after {
	content: ""; position: absolute; left: 23px; top: 21px; width: 10px; height: 6px; border-left: 2.2px solid var(--opp-terra); border-bottom: 2.2px solid var(--opp-terra); transform: rotate(-45deg);
}
.opr-content > ul.wp-block-list > li::marker { content: ""; }

/* Step headings: "1. Brown the chicken" → numbered badge (number wrapped by recipe.js) */
.opr-content h3.opr-step { display: flex; align-items: center; gap: 14px; margin-top: 1.8em; }
.opr-stepnum {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--opp-ink); color: var(--opp-cream); font-family: var(--opp-serif); font-size: 21px; font-style: italic;
	box-shadow: 0 0 0 6px var(--opp-saffron-soft);
}

/* Images */
.opr-content .wp-block-image { margin: 1.8em 0; }
.opr-content .wp-block-image img { width: 100%; border-radius: var(--opp-r-lg); box-shadow: var(--opp-shadow); }
.opr-content .wp-block-image.opp-pin-image { max-width: 380px; margin: 1.8em auto; }
.opr-content .wp-block-image.opp-pin-image img { width: 100%; }

/* Tip card */
.opr-content .wp-block-quote, .opr-content blockquote {
	position: relative; padding: 26px 28px 26px 84px; border-radius: var(--opp-r-lg); background: var(--opp-saffron-soft);
	font-family: var(--opp-sans); font-size: 17px; line-height: 1.65; border: 0;
}
.opr-content .wp-block-quote::before, .opr-content blockquote::before {
	content: "Tip"; position: absolute; left: 22px; top: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--opp-terra); color: #fff; font: italic 600 15px/44px var(--opp-serif); text-align: center;
}

/* FAQ accordions */
.opr-content .wp-block-details { margin: 0 0 10px; padding: 0; border-radius: var(--opp-r-md); background: var(--opp-card); box-shadow: inset 0 0 0 1px var(--opp-line); overflow: hidden; transition: box-shadow .3s; }
.opr-content .wp-block-details[open] { box-shadow: inset 0 0 0 1px var(--opp-saffron), var(--opp-shadow); }
.opr-content .wp-block-details summary { position: relative; list-style: none; padding: 18px 56px 18px 20px; font-weight: 600; cursor: pointer; }
.opr-content .wp-block-details summary::-webkit-details-marker { display: none; }
.opr-content .wp-block-details summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
	background: var(--opp-cream) linear-gradient(var(--opp-terra), var(--opp-terra)) center / 10px 2px no-repeat;
	transition: transform .35s var(--opr-ease);
}
.opr-content .wp-block-details summary::before {
	content: ""; position: absolute; right: 30px; top: 50%; width: 2px; height: 10px; margin-top: -5px; background: var(--opp-terra); z-index: 1;
	transition: transform .35s var(--opr-ease), opacity .3s;
}
.opr-content .wp-block-details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.opr-content .wp-block-details > *:not(summary) { margin: 0; padding: 0 20px 18px; color: var(--opp-muted); }
.opr-content .wp-block-details[open] > *:not(summary) { animation: opr-drop .45s var(--opr-ease); }

/* Recipe card spacing inside the article */
.opr-content .wprm-recipe-container { margin: 2.6em 0 !important; }

/* ---------- Mobile action bar + toast ---------- */
.opr-bar {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 880;
	display: none; align-items: center; gap: 8px; padding: 8px; border-radius: 999px;
	background: rgba(43, 29, 22, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--opp-shadow-lg);
	transform: translateY(140%); transition: transform .55s var(--opr-ease);
}
.opr-bar.is-visible { transform: none; }
.opr-bar__main { flex: 1 1 auto; min-width: 0; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; background: var(--opp-terra); color: #fff; font-weight: 600; font-size: 15px; }
.opr-bar__main:hover { color: #fff; }
.opr-bar__main span { overflow: hidden; text-overflow: ellipsis; }
.opr-bar__main .opp-ico { flex: 0 0 auto; }
.opr-bar__icon { flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 244, 234, .1); color: var(--opp-cream); cursor: pointer; }
.opr-bar__icon:hover { color: var(--opp-saffron); }
.opr-bar .opp-ico { width: 20px; height: 20px; }

.opr-toast {
	position: fixed; left: 50%; top: calc(var(--opp-header-h) + 16px); z-index: 1001; padding: 12px 20px; border-radius: 999px;
	background: var(--opp-ink); color: var(--opp-cream); font-size: 14.5px; font-weight: 600; box-shadow: var(--opp-shadow-lg);
	opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .3s, transform .4s var(--opr-ease);
}
.opr-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Motion (only after JS starts)
   ========================================================================== */
.opp-js .opr .opr-in { opacity: 0; transform: translate3d(0, 20px, 0); animation: opr-rise 1s var(--opr-ease) forwards; animation-delay: calc(var(--i, 0) * .1s + .05s); }
.opp-js .opr .opr-title__mask > span { transform: translate3d(0, 105%, 0); animation: opr-line 1.1s var(--opr-ease) .2s forwards; }
.opp-js .opr .opr-hero__frame { animation: opr-wipe 1.3s var(--opr-ease) .15s both; }
.opp-js .opr .opr-hero__frame img { animation: opr-settle 2s var(--opr-ease) .15s both; }
.opp-js .opr .opr-badge-time { animation: opp-pop .9s var(--opp-ease-out) .9s both, opp-bob 5s ease-in-out 2s infinite alternate; }

/* Content blocks revealed on scroll by recipe.js */
.opp-js .opr-content > .opr-r { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--opr-ease), transform .7s var(--opr-ease); }
.opp-js .opr-content > .opr-r.is-in { opacity: 1; transform: none; }
.opp-js .opr-content > .wp-block-image.opr-r img { clip-path: inset(0 0 100% 0 round 22px); transform: scale(1.06); transition: clip-path 1.2s var(--opr-ease), transform 1.6s var(--opr-ease); }
.opp-js .opr-content > .wp-block-image.opr-r.is-in img { clip-path: inset(0 0 0 0 round 22px); transform: none; }
.opp-js .opr-content > h2.opr-r::before { transform: scaleX(0); transition: transform .9s var(--opr-ease) .2s; }
.opp-js .opr-content > h2.opr-r.is-in::before { transform: scaleX(1); }
.opp-js .opr-content > ul.opr-r > li { opacity: 0; transform: translate3d(-14px, 0, 0); transition: opacity .7s var(--opr-ease), transform .7s var(--opr-ease); }
.opp-js .opr-content > ul.opr-r.is-in > li { opacity: 1; transform: none; }
.opp-js .opr-content > ul.opr-r.is-in > li:nth-child(2) { transition-delay: .08s; }
.opp-js .opr-content > ul.opr-r.is-in > li:nth-child(3) { transition-delay: .16s; }
.opp-js .opr-content > ul.opr-r.is-in > li:nth-child(4) { transition-delay: .24s; }
.opp-js .opr-content > ul.opr-r.is-in > li:nth-child(n+5) { transition-delay: .32s; }
.opp-js .opr-content > h3.opr-step.opr-r .opr-stepnum { transform: scale(.4) rotate(-90deg); transition: transform .8s var(--opr-ease) .1s; }
.opp-js .opr-content > h3.opr-step.opr-r.is-in .opr-stepnum { transform: none; }

@keyframes opr-rise { to { opacity: 1; transform: none; } }
@keyframes opr-line { to { transform: none; } }
@keyframes opr-wipe { from { clip-path: inset(0 0 100% 0 round 32px 32px 32px 160px); } to { clip-path: inset(0 0 0 0 round 32px 32px 32px 160px); } }
@keyframes opr-settle { from { transform: scale(1.15); } to { transform: none; } }
@keyframes opr-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes opr-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (prefers-reduced-motion: reduce) {
	.opp-js .opr .opr-in, .opp-js .opr .opr-title__mask > span, .opp-js .opr-content > .opr-r, .opp-js .opr-content > ul.opr-r > li { opacity: 1 !important; transform: none !important; }
	.opp-js .opr-content > .wp-block-image.opr-r img { clip-path: none !important; transform: none !important; }
	.opr-recipe-cta__ring .opp-ico { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.opr { --opr-aside: 260px; }
}
@media (max-width: 1024px) {
	.opr-hero__grid { grid-template-columns: 1fr; }
	.opr-hero__media { order: -1; }
	.opr-hero__frame { aspect-ratio: 16 / 11; border-radius: var(--opp-r-xl) var(--opp-r-xl) var(--opp-r-xl) 90px; }
	.opr-layout { grid-template-columns: 1fr; }
	.opr-aside { display: none; }
	.opr-main { max-width: none; }
	.opr-bar { display: flex; }
}
@media (max-width: 680px) {
	.opr-title { font-size: clamp(34px, 9.6vw, 46px); }
	.opr-byline { border-radius: var(--opp-r-lg); }
	.opr-stars { padding-left: 0; border-left: 0; width: 100%; }
	.opr-actions .opp-btn:not(:first-child) { padding: 12px 16px; }
	.opr-actions .opr-share span { display: none; }
	.opr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opr-fact { padding: 16px; }
	.opr-fact:nth-child(odd)::before { display: none; }
	.opr-fact:nth-child(n+3) { border-top: 1px solid var(--opp-line); }
	.opr-fact dd { font-size: 18px; white-space: normal; }
	.opr-badge-time { left: 10px; bottom: 12px; }
	.opr-content blockquote, .opr-content .wp-block-quote { padding: 74px 20px 20px; }
	.opr-content blockquote::before, .opr-content .wp-block-quote::before { left: 20px; top: 18px; }
	.opr-comments { padding-bottom: 96px; }
}

/* Phones: lighter block reveals */
@media (max-width: 767px) {
	.opp-js .opr-content > .opr-r { transform: translate3d(0, 14px, 0); transition-duration: .6s; }
}
