/* Simply Desserts recipes hub. Sits on top of the theme's own sd.css (loaded first, from the store) and only adds
   what the theme has no component for: hero, filter bar, recipe grid, recipe page, product panel.
   Same rules as the theme: pills for buttons/chips/inputs, 20px+ for cards and media, Poppins, Anton for the hero.
   Breakpoints follow the theme: phone < 640, tablet 640 to 1023 (follows phone layout), desktop 1024+. */

.rx { --rx-cream: #FFF6E5; --rx-yellow: #FFEFAC; --rx-ink-2: rgba(73, 47, 35, .72); }
.rx-eyebrow { margin: 0 0 .9rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rx-ink-2); }
.rx-small { font-size: .875rem; color: var(--rx-ink-2); }
.rx-link { background: none; border: 0; padding: 8px 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------------------------------------------------------------- hub hero */
/* The yellow shape is the Trending band below rising into the hero: the same solid colour, cut off at the hero's
   bottom edge by its own clip (--rx-cut = the share of the shape hanging below). The hero itself only clips sideways
   and sits above the band, so the photo shadows fall onto the yellow without a cut line. */
.rx-hero { position: relative; z-index: 1; overflow-x: clip; background: var(--header); padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.rx-hero::before { content: ""; position: absolute; inset: auto -10% -42% 38%; height: 90%; border-radius: 50%; background: var(--rx-yellow); --rx-cut: 46.67%; clip-path: inset(0 0 var(--rx-cut) 0); }
.rx-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rx-hero__title { font-family: var(--font-hero); font-weight: 400; text-transform: uppercase; font-size: clamp(3.25rem, 7.6vw, 7.25rem); line-height: .92; letter-spacing: 0; }
.rx-hero__lead { margin: 1.4rem 0 0; max-width: 46ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); }
.rx-search { display: flex; align-items: center; gap: 10px; margin-top: 2rem; max-width: 560px; padding: 6px 6px 6px 22px; background: #fff; border-radius: 999px; box-shadow: 0 18px 40px -22px rgba(73, 47, 35, .55); }
.rx-search > .icon { width: 22px; height: 22px; opacity: .7; }
.rx-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 1.0625rem; color: var(--ink); }
.rx-search input::placeholder, .rx-bar__search input::placeholder { color: rgba(73, 47, 35, .62); }
.rx-search input:focus { outline: none; }
.rx-search:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.rx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; list-style: none; }
.rx-quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background .2s, color .2s; }
@media (hover: hover) { .rx-quick a:hover { background: var(--ink); color: #fff; } }

.rx-hero__art { position: relative; height: clamp(380px, 40vw, 560px); }
.rx-hero__pic { position: absolute; display: block; width: 46%; aspect-ratio: 2 / 3; border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 30px 50px -28px rgba(43, 24, 15, .7); transition: transform .6s var(--ease); }
.rx-hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.rx-hero__pic--0 { left: 27%; top: 2%; z-index: 2; rotate: -2deg; }
.rx-hero__pic--1 { left: 0; top: 18%; rotate: -9deg; }
.rx-hero__pic--2 { right: 0; top: 22%; rotate: 8deg; }
@media (hover: hover) { .rx-hero__pic:hover { transform: translateY(-8px) scale(1.02); } }
.rx-hero__sticker { --sticker: clamp(104px, 10vw, 150px); position: absolute; z-index: 3; left: 18%; bottom: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .rx-hero__pic { animation: rx-rise .9s var(--ease) both; }
  .rx-hero__pic--1 { animation-delay: .08s; } .rx-hero__pic--2 { animation-delay: .16s; }
  @keyframes rx-rise { from { opacity: 0; translate: 0 40px; } }
}

/* ---------------------------------------------------------------- cook with your mix */
.rx-lines__grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
/* phones and tablets: the five mixes scroll sideways, with the same round arrows as the store's product carousels */
.rx-lines__rail { position: relative; }
.rx-lines__btn { display: none; position: absolute; top: 50%; translate: 0 -50%; z-index: 3; background: #fff; box-shadow: 0 6px 18px rgba(73, 47, 35, .16); transition: opacity .2s, background .2s; }
.rx-lines__btn .icon { width: 20px; height: 20px; }
.rx-lines__btn--prev { left: 0; } .rx-lines__btn--next { right: 0; }
.rx-lines__btn[disabled] { opacity: .25; cursor: default; pointer-events: none; }
.rx-line { display: grid; justify-items: center; text-align: center; gap: 6px; height: 100%; padding: 22px 16px 24px; border-radius: 28px; background: var(--soft); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rx-line__plate { display: grid; place-items: center; width: min(170px, 100%); aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; background: var(--plate); }
.rx-line__plate img { width: 82%; height: auto; transition: transform .6s var(--ease); }
.rx-line__name { font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }
.rx-line__blurb { font-size: .9375rem; color: var(--rx-ink-2); }
.rx-line__n { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .9375rem; }
.rx-line__n .icon { width: 1em; height: 1em; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .rx-line:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(73, 47, 35, .5); }
  .rx-line:hover .rx-line__plate img { transform: scale(1.08) rotate(-4deg); }
  .rx-line:hover .rx-line__n .icon { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- browse: filter bar */
.rx-browse { padding-top: clamp(2rem, 4vw, 3rem); }
.rx-browse__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.rx-browse__head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.rx-count { margin: 0; font-size: 1.0625rem; }
.rx-count strong { font-weight: 700; }

.rx-bar { position: sticky; top: calc(var(--rx-stick, 0px) + 12px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-inline: -10px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.rx-bar.is-stuck { box-shadow: 0 14px 30px -20px rgba(73, 47, 35, .45); }
.rx-bar__search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.rx-bar__search > .icon { position: absolute; left: 18px; width: 20px; height: 20px; opacity: .7; pointer-events: none; }
.rx-bar__search input { width: 100%; min-height: 50px; padding: 0 18px 0 48px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 1rem; }
.rx-bar__search input:focus { outline: none; border-color: var(--ink); }
.rx-bar__dds { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-bar__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.rx-dd { position: relative; }
.rx-dd__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px 0 20px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.rx-dd__btn .icon { width: 16px; height: 16px; transition: rotate .25s var(--ease); }
.rx-dd__btn[aria-expanded="true"] { border-color: var(--ink); }
.rx-dd__btn[aria-expanded="true"] .icon { rotate: 180deg; }
.rx-dd.is-on .rx-dd__btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.rx-dd__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--header); color: var(--ink); font-size: .75rem; font-weight: 700; }
@media (hover: hover) { .rx-dd__btn:hover { border-color: var(--ink); } }
.rx-dd__panel { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: max(280px, 100%); padding: 10px; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -16px rgba(60, 30, 20, .35); }
.rx-dd__panel fieldset { margin: 0; padding: 0; border: 0; }
.rx-dd__panel ul { list-style: none; max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.rx-dd__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 6px 2px; margin-top: 6px; border-top: 1px solid var(--line); }

.rx-check { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.rx-check input, .rx-ing__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx-check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; transition: background .15s; }
.rx-check__box .icon { width: 15px; height: 15px; opacity: 0; color: #fff; transition: opacity .15s; }
.rx-check input:checked + .rx-check__box, .rx-ing__row input:checked + .rx-check__box { background: var(--ink); }
.rx-check input:checked + .rx-check__box .icon, .rx-ing__row input:checked + .rx-check__box .icon { opacity: 1; }
.rx-check input:focus-visible + .rx-check__box, .rx-ing__row input:focus-visible + .rx-check__box { outline: 3px solid var(--ink); outline-offset: 3px; }
.rx-check__label { flex: 1; }
.rx-check__n { font-size: .8125rem; color: var(--rx-ink-2); font-variant-numeric: tabular-nums; }
.rx-check.is-zero { opacity: .45; }
@media (hover: hover) { .rx-check:hover { background: var(--soft); } }

.rx-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 6px; font-weight: 600; font-size: .9375rem; cursor: pointer; white-space: nowrap; }
.rx-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rx-toggle__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #CFC6C1; transition: background .2s; }
.rx-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: translate .25s var(--ease); }
.rx-toggle input:checked + .rx-toggle__track { background: var(--ink); }
.rx-toggle input:checked + .rx-toggle__track::after { translate: 18px 0; }
.rx-toggle input:focus-visible + .rx-toggle__track { outline: 3px solid var(--ink); outline-offset: 3px; }

.rx-sort { position: relative; display: inline-flex; align-items: center; }
.rx-sort select { appearance: none; -webkit-appearance: none; min-height: 50px; padding: 0 44px 0 20px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.rx-sort select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.rx-sort .icon { position: absolute; right: 18px; width: 16px; height: 16px; pointer-events: none; }

.rx-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.rx-active button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: var(--rx-yellow); font-weight: 600; font-size: .875rem; color: var(--ink); }
.rx-active button .icon { width: 14px; height: 14px; }
.rx-active .rx-link { font-size: .875rem; }

/* ---------------------------------------------------------------- grid of recipe cards (the home page's rcard) */
.rx-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.rx-grid .rcard { aspect-ratio: 4 / 5; }
.rx-grid .rcard__link { border-radius: 24px; }
.rx-grid .rcard__body { padding: 18px 70px 18px 18px; }
.rx-grid .rcard__body h3 { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rx-grid .rcard.is-hidden, .rx-grid .rcard.is-paged { display: none; }
.rx-grid .rcard.is-new { animation: rx-in .5s var(--ease) both; }
@keyframes rx-in { from { opacity: 0; translate: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .rx-grid .rcard.is-new { animation: none; } }
.rx-empty { text-align: center; padding: 4rem 1rem; }
.rx-empty h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.rx-empty .btn { margin-top: 1rem; }
.rx-more { display: grid; justify-items: center; gap: 10px; margin-top: 2.5rem; }
.rx-more__note { margin: 0; font-size: .9375rem; color: var(--rx-ink-2); }

.rx-share__in { text-align: center; max-width: 640px; }
.rx-share h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.rx-share p { margin: .9rem auto 1.6rem; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- recipe page */
/* The page wears its lead product's colours, as that product's own page does: --rp-page behind the hero and the shop
   panel, --rp-ink on top of it, --rp-chip (ink on it: the theme's brown, or --rp-ink when the chip is the page colour)
   for the small accents. Set per recipe on .rx-recipe by build.py. */
.rx-recipe { --rp-page: #FFF6E5; --rp-ink: #492F23; --rp-chip: #FFEFAC; --rp-soft: color-mix(in srgb, var(--rp-ink) 11%, transparent); --rp-ink-2: color-mix(in srgb, var(--rp-ink) 92%, var(--rp-page)); }
.rx-rhero { background: var(--rp-page); color: var(--rp-ink); padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3rem, 6vw, 5.5rem); }
.rx-rhero a:focus-visible, .rx-rhero button:focus-visible, .rx-panel__in > :focus-visible, .rx-panel__note a:focus-visible, .rx-panel__all .btn:focus-visible { outline-color: var(--rp-ink); }
.rx-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; font-size: .875rem; margin-bottom: clamp(1rem, 2.4vw, 1.75rem); }
.rx-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.rx-crumbs li + li::before { content: "/"; opacity: .5; }
.rx-crumbs a { font-weight: 600; text-underline-offset: 3px; }
.rx-crumbs a { color: inherit; }
.rx-crumbs [aria-current] { color: var(--rp-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.rx-rhero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
/* photo mosaic, the product page's own: the recipe photo large, the next two stacked beside it */
.rx-rhero__mosaic { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rx-rhero__mosaic--solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; max-width: 560px; }
.rx-rhero__media { position: relative; grid-row: 1 / -1; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; background: #2B180F; box-shadow: 0 34px 60px -34px rgba(30, 16, 10, .7); }
.rx-rhero__thumb { position: relative; border-radius: 24px; overflow: hidden; background: #2B180F; min-height: 0; }
.rx-rhero__media img, .rx-rhero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-rhero__thumb img { position: absolute; inset: 0; }   /* the big photo sets the height, never a tall thumbnail */
.sticker--rhero { position: absolute; top: -22px; left: -22px; z-index: 2; --sticker: clamp(104px, 9.5vw, 136px); rotate: -9deg; }
@media (prefers-reduced-motion: no-preference) {
  .rx-rhero__media, .rx-rhero__thumb { animation: rx-rise .8s var(--ease) both; }
  .rx-rhero__thumb { animation-delay: .08s; } .rx-rhero__thumb + .rx-rhero__thumb { animation-delay: .16s; }
}
.rx-rhero__media .rx-hero-play { top: auto; left: auto; right: 22px; bottom: 22px; width: 72px; height: 72px; }
.rx-rhero__media .rx-hero-play .icon { width: 28px; height: 28px; }
.rx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 1.1rem; }
.rx-chips li { padding: 7px 14px; border-radius: 999px; background: var(--rp-soft); font-weight: 600; font-size: .8125rem; }
.rx-chips li:first-child { background: var(--rp-ink); color: var(--rp-page); }
.rx-rhero__title { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.025em; line-height: 1.02; color: inherit; text-wrap: balance; }
.rx-by { margin: 1rem 0 0; font-weight: 600; }
.rx-by a, .rx-lead a { color: inherit; text-underline-offset: 3px; }
.rx-lead { margin-top: 1rem; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); max-width: 52ch; }
.rx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.6rem 0 0; max-width: 540px; }
.rx-facts--2, .rx-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
.rx-facts div { padding: 14px 16px; border-radius: 20px; background: var(--rp-soft); }
.rx-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rp-ink-2); }
.rx-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; }
.rx-actions { margin-top: 1.75rem; align-items: center; }
.rx-actions .btn .icon { width: 1.05em; height: 1.05em; }
.rx-iconbtn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rp-ink); background: transparent; color: var(--rp-ink); transition: background .2s, color .2s; }
.rx-iconbtn .icon { width: 20px; height: 20px; }
/* buttons on the product colour take the product's ink, the way the product page's own Add to Cart does */
.rx-rhero .btn, .rx-panel__all .btn { background: var(--rp-ink); border-color: var(--rp-ink); color: var(--rp-page); }
.rx-rhero .btn--outline { background: transparent; color: var(--rp-ink); }
@media (hover: hover) {
  .rx-iconbtn:hover, .rx-rhero .btn--outline:hover { background: var(--rp-ink); border-color: var(--rp-ink); color: var(--rp-page); }
  .rx-rhero .btn:not(.btn--outline):hover, .rx-panel__all .btn:hover { background: transparent; border-color: var(--rp-ink); color: var(--rp-ink); }
}

.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-areas: "ing panel" "method panel" "rest panel"; column-gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.rx-ingredients { grid-area: ing; }
.rx-method { grid-area: method; }
.rx-rest { grid-area: rest; }
.rx-panel { grid-area: panel; position: sticky; top: calc(var(--rx-stick, 0px) + 20px); }
.rx-block + .rx-block, .rx-method, .rx-rest { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rx-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.rx-block__title { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.rx-block > .rx-block__title { margin-bottom: 1.1rem; }
.rx-sub { margin: 1.4rem 0 .4rem; font-size: 1.125rem; }

.rx-ing { list-style: none; }
.rx-ing li + li { border-top: 1px solid var(--line); }
.rx-ing__row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 4px; cursor: pointer; }
.rx-ing__row .rx-check__box { margin-top: 1px; }
.rx-ing__text { font-size: 1.0625rem; line-height: 1.45; transition: opacity .2s; }
.rx-ing__text b { font-weight: 700; }
.rx-ing__note { color: var(--rx-ink-2); }
.rx-ing__row input:checked ~ .rx-ing__text { opacity: .45; text-decoration: line-through; }

.rx-steps { list-style: none; counter-reset: none; }
.rx-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 18px 0; cursor: pointer; }
.rx-step + .rx-step { border-top: 1px solid var(--line); }
.rx-step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rp-chip); color: var(--rp-chip-ink, var(--ink)); font-weight: 700; font-size: 1.125rem; transition: background .2s, color .2s; }
.rx-step__text { font-size: 1.0625rem; line-height: 1.65; padding-top: 8px; }
.rx-step__text p { margin: 0 0 .6em; }
.rx-step__img { margin-top: 12px; border-radius: 20px; max-width: 420px; }
.rx-step.is-done .rx-step__n { background: var(--ink); color: #fff; }
.rx-step.is-done .rx-step__text { opacity: .5; }

.rx-prose a { font-weight: 600; text-underline-offset: 3px; }
.rx-notes .rx-prose { padding: 20px 24px; border-radius: 24px; background: var(--rp-chip); color: var(--rp-chip-ink, var(--ink)); }
.rx-notes .rx-prose a { color: inherit; }
.rx-notes .rx-prose > :last-child { margin-bottom: 0; }
.rx-nut { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0 0 .75rem; }
.rx-nut div { padding: 14px 16px; border-radius: 20px; background: var(--soft); }
.rx-nut dt { font-size: .8125rem; color: var(--rx-ink-2); }
.rx-nut dd { margin: 0; font-weight: 700; font-size: 1.25rem; }
/* the video band: copy beside the player, on the product colour; Shorts play upright */
.rx-video { background: var(--rp-page); color: var(--rp-ink); padding-block: clamp(3rem, 6vw, 5rem); }
.rx-video__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rx-video--short .rx-video__in { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); justify-content: center; max-width: 900px; }
.rx-video .rx-eyebrow { color: var(--rp-ink-2); }
.rx-video .rx-block__title { color: inherit; font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.rx-video__copy p:last-child { margin: 1rem 0 0; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); max-width: 36ch; }
.rx-video .rx-yt { box-shadow: 0 34px 60px -34px rgba(30, 16, 10, .7); }
.rx-video--short .rx-yt { aspect-ratio: 9 / 16; border-radius: 32px; }
.rx-video .rx-yt__play:focus-visible { outline-color: #fff; }
.rx-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.rx-yt img, .rx-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rx-yt__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), background .2s, color .2s; }
.rx-yt__play .icon { width: 30px; height: 30px; margin-left: 4px; }
@media (hover: hover) { .rx-yt__play:hover { transform: scale(1.1); background: var(--ink); color: #fff; } }
.rx-gal { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rx-gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* four in one row, never three and a stray */
.rx-gal--1, .rx-gal--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.rx-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }

/* ---------------------------------------------------------------- product panel */
.rx-panel__in { padding: 26px 22px 22px; border-radius: 32px; background: var(--rp-page); color: var(--rp-ink); }
.rx-panel__in .rx-eyebrow { margin-bottom: .35rem; color: var(--rp-ink-2); }
.rx-panel__title { font-size: 1.875rem; margin-bottom: 1.1rem; color: inherit; }
.rx-prod, .rx-promo { color: var(--ink); }
.rx-panel__list { display: grid; gap: 14px; }
.rx-prod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px -18px rgba(73, 47, 35, .5); }
.rx-prod__media { grid-row: span 1; display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: 50%; background: var(--card-plate, #DAC2BA); }
.rx-prod__media img { width: 86%; height: auto; transition: transform .5s var(--ease); }
@media (hover: hover) { .rx-prod__media:hover img { transform: scale(1.08) rotate(-4deg); } }
.rx-prod__body { min-width: 0; }
.rx-prod__title { font-size: 1.0625rem; line-height: 1.25; margin: 2px 0 4px; }
.rx-prod__title a { text-decoration: none; }
.rx-prod__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rx-prod__price { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.rx-prod__price s { font-weight: 500; opacity: .6; margin-left: 4px; }
.rx-prod .rx-flavor { grid-column: 1 / -1; margin: 8px 0 0; max-width: none; }
.rx-prod .flavor__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rx-prod .flavor__btn { min-height: 48px; border-width: 2px; border-color: var(--line); font-size: .9375rem; }
.rx-prod .flavor__btn:hover { border-color: var(--ink); }
.rx-prod .flavor__icon { width: 34px; height: 34px; }
.rx-prod .flavor__icon img { width: 28px; height: 28px; }
.rx-prod__buy { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.rx-prod__buy .qty { border-color: var(--line); }
.rx-prod__add { flex: 1; }
.rx-prod.is-busy { opacity: .6; }
.rx-prod__soldout .rx-prod__add { background: #fff; color: var(--ink); }
.rx-panel__all { margin-top: 14px; }
.rx-panel__note { margin: 14px 0 0; font-size: .875rem; text-align: center; color: var(--rp-ink-2); }
.rx-panel__note a { font-weight: 600; color: var(--rp-ink); text-underline-offset: 3px; }

.rx-related .rx-grid { margin-top: 0; }

/* ---------------------------------------------------------------- tablet and phone (tablet follows phone) */
/* hub grids use the main site's full-width standard (sd.css .section--wide / .rwall: 1680px of content, 60px side padding), so Trending, Cook With Your Mix and All Recipes share the homepage's left and right edges (Shaun 13 Oct) */
.rx-hero > .wrap, .rx-lines > .wrap, .rx-browse > .wrap { max-width: calc(1680px + var(--gutter) * 2); }
@media (min-width: 1024px) { .rx-hero > .wrap, .rx-lines > .wrap, .rx-browse > .wrap { padding-inline: clamp(24px, 4.2vw, 60px); } }
@media (min-width: 1600px) { .rx-browse .rx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1279px) { .rx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rx-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .rx-hero { text-align: center; }
  .rx-hero::before { inset: auto -30% -30% -30%; height: 50%; --rx-cut: 60%; }
  .rx-hero__in { grid-template-columns: minmax(0, 1fr); }
  .rx-hero__lead, .rx-search { margin-inline: auto; }
  .rx-quick { justify-content: center; }
  .rx-hero__art { height: clamp(300px, 62vw, 460px); max-width: 560px; width: 100%; margin-inline: auto; }
  /* same build as the store's Find Your Flavor slider: an arrow at each end, the tiles in a row between them, first tile right beside the left arrow */
  .rx-lines__rail { padding-inline: 60px; }
  .rx-lines__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; scrollbar-width: none; }
  .rx-lines__grid::-webkit-scrollbar { display: none; }
  .rx-lines__btn { display: grid; }
  .rx-lines__btn { top: calc(50% - 7px); }
  /* the count sticker closes the hero and Trending Now follows on the same cream: one short gap between them */
  .rx-hero { padding-bottom: 1.25rem; }
  .rx-fresh.section { padding-top: 1.75rem; }
  .rx-lines__grid li { scroll-snap-align: start; }
  .rx-bar { border-radius: 28px; }
  .rx-bar__search { flex-basis: 100%; }
  .rx-bar__dds { flex: 1 1 auto; }
  .rx-dd__panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 75vh; border-radius: 28px; padding: 14px; }
  .rx-dd__panel ul { max-height: 55vh; }
  .rx-rhero__in { grid-template-columns: minmax(0, 1fr); }
  .rx-rhero__mosaic, .rx-rhero__mosaic--solo { max-width: 640px; width: 100%; margin-inline: auto; }
  .rx-facts { margin-inline: auto; text-align: left; }
  .rx-video__in, .rx-video--short .rx-video__in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .rx-video__copy p:last-child { margin-inline: auto; }
  .rx-video .rx-yt { width: 100%; }
  .rx-video--short .rx-yt { max-width: 340px; }
  .rx-rhero__copy { text-align: center; }
  .rx-chips, .rx-actions { justify-content: center; }
  .rx-lead, .rx-facts { margin-inline: auto; }
  .rx-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ing" "panel" "method" "rest"; }
  .rx-panel { position: static; margin-top: clamp(2rem, 5vw, 3rem); }
  .rx-panel__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .rx-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 859px) { .rx-lines__grid { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 639px) {
  .rx-lines__rail { padding-inline: 56px; }
  .rx-lines__grid { grid-auto-columns: 100%; }
  .rx-hero__title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .rx-search { padding-left: 16px; }
  .rx-search .btn { padding: 0 18px; min-height: 44px; }
  .rx-hero__art { height: 96vw; max-height: 420px; }
  .rx-hero__pic { width: 50%; border-width: 4px; border-radius: 22px; }
  .rx-hero__pic--0 { left: 25%; }
  .rx-bar { position: static; margin-inline: 0; padding: 0; border-radius: 0; background: none; backdrop-filter: none; }
  .rx-hero .rx-search { max-width: 100%; }
  .rx-bar__dds { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rx-dd__btn { width: 100%; justify-content: space-between; padding: 0 14px 0 16px; }
  .rx-bar__end { width: 100%; justify-content: space-between; margin-left: 0; }
  .rx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rx-grid .rcard { aspect-ratio: 3 / 4.4; }
  .rx-grid .rcard__link { border-radius: 20px; }
  .rx-grid .rcard__body { padding: 12px; }
  .rx-grid .rcard__body h3 { font-size: .9375rem; }
  .rx-grid .rcard__chips i:nth-child(n+2), .rx-grid .rcard__go { display: none; }
  .rx-grid .rcard__chips i { font-size: .6875rem; padding: 6px 9px; }
  .rx-rhero__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  .rx-rhero__mosaic--solo { grid-template-columns: minmax(0, 1fr); }
  .rx-rhero__media { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 1; border-radius: 24px; }
  .rx-rhero__thumb { aspect-ratio: 3 / 2; border-radius: 18px; }
  .sticker--rhero { --sticker: 92px; top: -14px; left: -8px; }
  .rx-facts div { padding: 12px 14px; }
  .rx-facts dt { font-size: .6875rem; letter-spacing: .06em; }
  .rx-facts dd { font-size: 1.0625rem; }
  .rx-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .rx-step__n { width: 36px; height: 36px; font-size: 1rem; }
  .rx-step__text { padding-top: 5px; }
  .rx-gal, .rx-gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-panel__in { padding: 22px 16px 16px; border-radius: 26px; margin-inline: calc(var(--gutter) * -.5); }
}

/* ---------------------------------------------------------------- print: just the recipe */
@media print {
  .announce, .site-header, .sheet, .site-footer, .to-top, .toast, .rx-panel, .rx-related, .rx-actions, .rx-crumbs, .rx-video, .rx-gallery, .rcard__video, [class*="shopify-section-group"] { display: none !important; }
  .rx-rhero { background: none; color: #000; padding: 0; }
  .rx-rhero__thumb, .sticker--rhero, .rx-video { display: none !important; }
  .rx-rhero__mosaic { display: block; }
  .rx-facts div { background: none; padding: 0; }
  .rx-rhero__in { grid-template-columns: 180px 1fr; gap: 24px; }
  .rx-rhero__media { box-shadow: none; aspect-ratio: 1; border-radius: 12px; }
  .rx-rhero__copy { text-align: left; }
  .rx-layout { display: block; padding: 0; }
  .rx-rhero__title { font-size: 28pt; }
  .rx-step, .rx-ing li { break-inside: avoid; }
}

/* the theme pads anchor jumps 150px for its own jump bar; these pages only need to clear the sticky header */
html:has(body.rx) { scroll-padding-top: calc(var(--rx-stick, 0px) + 12px); }
.rx-promo { display: grid; justify-items: center; gap: 12px; padding: 20px; border-radius: 24px; background: #fff; text-align: center; text-decoration: none; }
.rx-promo img { width: 160px; height: auto; }
.rx-promo b { display: block; font-size: 1.25rem; margin-bottom: 4px; color: var(--ink); }
.rx-promo span:not(.btn) { color: var(--rx-ink-2); }

/* The owner writes CREAMi with a lowercase i: an uppercase heading must not change it. sup.tm comes with sd.css. */
.tm-case { text-transform: none; }
.rx-crumbs [aria-current] > .rx-crumbs__here { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: .35em; margin-top: -.35em; }
/* sd.css sizes sup.tm for the store's big headings. At body size the symbol needs more of the line to stay legible. */
.rx main sup.tm { font-size: .68em; }
.rx main h1 sup.tm, .rx main h2 sup.tm { font-size: .5em; }
