/* =========================================================
   Freshly Recipes
   Leans on the theme's custom properties. If the theme is
   ever swapped these fall back to sane values rather than
   rendering unstyled.
   ========================================================= */
/* Tokens on :root, not on a wrapper. Scoping them to a section class meant a
   new template that did not use that class rendered white text on white. */
:root{
  --ffr-green:var(--green,#15703B);
  --ffr-lime:var(--lime,#A8E80F);
  --ffr-ink:var(--ink,#0E1210);
  --ffr-grey:var(--grey,#5A6560);
  /* Used by the scale and cook notes, and never defined, so both notes fell
     back to inheriting whatever colour sat above them. */
  --ffr-muted:var(--grey,#5E615C);
  --ffr-cream:var(--cream,#F9F7ED);
  --ffr-line:var(--line,rgba(14,18,16,.12));
  --ffr-r:var(--r,14px);
  --ffr-r-lg:var(--r-lg,26px);
}

/* =========================================================
   The recipes page
   Full bleed bands, the same green to cream to white rhythm
   the homepage uses, so the page belongs to the site.
   ========================================================= */

/* ---------------- hero ---------------- */
.ffr-top{background:var(--ffr-green);color:#fff;padding-block:clamp(26px,3.4vw,42px) clamp(46px,6vw,86px);overflow:hidden}
.ffr-top .ffr-crumbs{margin-bottom:clamp(24px,3vw,44px)}
.ffr-top-in{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(28px,4vw,64px);align-items:center}
.ffr-top-h{
  font-family:var(--disp,inherit);font-size:clamp(2.2rem,5.4vw,4.1rem);line-height:var(--lh-xl,1.44);
  text-transform:uppercase;margin:14px 0 0;color:#fff;
}
.ffr-top-h em{font-style:normal;color:var(--ffr-lime)}
.ffr-top-p{margin-top:18px;font-size:16px;line-height:1.65;color:rgba(255,255,255,.78);max-width:46ch}

.ffr-stats{display:flex;flex-wrap:wrap;gap:clamp(20px,3vw,42px);margin:30px 0 0;padding:0;list-style:none}
.ffr-stats li{border-top:1px solid rgba(255,255,255,.25);padding-top:12px;min-width:104px}
.ffr-stats b{display:block;font-family:var(--disp,inherit);font-size:clamp(1.5rem,3vw,2.1rem);line-height:1}
.ffr-stats b i{font-style:normal;font-size:.5em;margin-left:3px}
.ffr-stats span{display:block;margin-top:7px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ffr-lime)}

/* The collage. Three photos at different depths, the same idea as the
   homepage hero without repeating its arrangement. */
.ffr-shelf{position:relative;min-height:clamp(300px,32vw,430px)}
.ffr-shelf-c{position:absolute;margin:0;border-radius:var(--ffr-r-lg);overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.34)}
.ffr-shelf-c img{width:100%;height:100%;object-fit:cover;display:block}
.ffr-shelf-c .rec-time{position:absolute;top:12px;left:12px}
.ffr-shelf-1{width:46%;aspect-ratio:4/5;top:0;right:0;transform:rotate(2.5deg);z-index:1}
.ffr-shelf-2{width:50%;aspect-ratio:1;left:0;top:22%;transform:rotate(-3deg);z-index:3}
.ffr-shelf-3{width:36%;aspect-ratio:4/5;right:2%;bottom:0;transform:rotate(-1.5deg);z-index:2}

/* ---------------- filter bar ---------------- */
/* top:var(--hd-h), not 0. The theme header is sticky at top:0 with z-index 120
   and is 73px tall, so a bar stuck at 0 spends the whole scroll with its top
   two rows behind the header, invisible and unclickable. z-index stays below
   110 on purpose: .mob, the mobile menu overlay, lives at 110 and is always in
   the DOM, so out-stacking the header would paint this over an open menu. */
.ffr-bar{position:sticky;top:var(--hd-h,73px);z-index:20;background:var(--ffr-cream);border-bottom:1px solid var(--ffr-line)}
/* Grid, not flex: the count keeps its own column so it can never drop to a
   line of its own and strand itself. */
.ffr-bar-in{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px 20px;padding-block:14px}
.ffr-bar-filters{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;flex:1 1 auto;min-width:0}
.ffr-group{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.ffr-group-lbl{font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ffr-grey);margin-right:2px}
.ffr-chip,.ffr-page a.ffr-chip{
  display:inline-block;padding:7px 14px;border-radius:50px;text-decoration:none;line-height:1.2;
  font-size:12.5px;background:#fff;color:var(--ffr-ink);border:1px solid var(--ffr-line);transition:all .22s;
}
.ffr-chip:hover{border-color:var(--ffr-green);color:var(--ffr-green)}
.ffr-chip.is-on{background:var(--ffr-green);border-color:var(--ffr-green);color:#fff}
.ffr-bar-meta{display:flex;align-items:center;gap:14px;white-space:nowrap;flex:0 0 auto;margin-left:auto}
.ffr-count{font-size:12.5px;color:var(--ffr-grey)}
.ffr-clear-all,.ffr-page a.ffr-clear-all{font-size:12.5px;color:var(--ffr-green);text-decoration:underline}

/* ---------------- the grid ---------------- */
.ffr-list{background:#fff;padding-block:clamp(36px,4.6vw,64px)}
.ffr-grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
/* Between the rail appearing and there being room for three cards beside it,
   two larger cards read far better than three cramped ones. */
@media (min-width:1024px) and (max-width:1199px){
  .ffr-grid-cards{grid-template-columns:repeat(2,1fr)}
}
.ffr-card{background:#fff;border-radius:var(--ffr-r-lg);overflow:hidden;border:1px solid var(--ffr-line);transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s}
.ffr-card:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(14,18,16,.13)}
.ffr-page a.ffr-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
/* The client's recipe photography is portrait 4:5, so the cards follow it. */
.ffr-card-img{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--ffr-cream)}
.ffr-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.ffr-card:hover .ffr-card-img img{transform:scale(1.05)}
.ffr-card-txt{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.ffr-card-meta{font-size:12px;color:var(--ffr-grey)}
.ffr-card h3{font-size:14px;line-height:1.4;color:var(--ffr-green);margin:8px 0 0}
.ffr-card-p{font-size:14.5px;color:var(--ffr-grey);line-height:1.6;margin:12px 0 0;max-width:52ch}
.ffr-card-go{
  margin-top:auto;padding-top:16px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ffr-ink);
}
.ffr-card-go::after{content:" \2192";transition:margin .25s}
.ffr-card:hover .ffr-card-go::after{margin-left:5px}

/* The lead card: two columns, photo beside the words. */
.ffr-card.is-wide{grid-column:span 2}
.ffr-card.is-wide .ffr-card-link{flex-direction:row}
.ffr-card.is-wide .ffr-card-img{flex:0 0 44%;aspect-ratio:auto}
.ffr-card.is-wide .ffr-card-txt{padding:clamp(26px,3vw,44px);justify-content:center}
.ffr-card.is-wide .ffr-card-go{margin-top:20px;padding-top:0}
.ffr-card.is-wide h3{font-size:clamp(1rem,1.7vw,1.35rem)}

.ffr-badge-video{
  position:absolute;top:12px;right:12px;background:var(--ffr-ink);color:#fff;
  font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:6px 10px;border-radius:10px 0;
}
.ffr-empty{padding:60px 0;text-align:center}
.ffr-empty p{color:var(--ffr-grey);margin-bottom:18px}
.ffr-pager{margin-top:34px;display:flex;justify-content:center;gap:8px}
.ffr-pager .page-numbers{padding:8px 14px;border-radius:50px;text-decoration:none;color:var(--ffr-ink)}
.ffr-pager .page-numbers.current{background:var(--ffr-green);color:#fff}

/* ---------------- closing band ---------------- */
.ffr-cta{background:var(--ffr-ink);color:#fff;padding-block:clamp(40px,5vw,72px)}
.ffr-cta-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:26px}
.ffr-cta-h{font-family:var(--disp,inherit);font-size:clamp(1.5rem,3.4vw,2.4rem);text-transform:uppercase;margin:12px 0 10px;color:#fff}
.ffr-cta p{color:rgba(255,255,255,.7);max-width:48ch;margin:0}
.ffr-cta-btns{display:flex;gap:12px;flex-wrap:wrap}
.ffr-page .btn-ghost{background:transparent;border:1px solid rgba(255,255,255,.4);color:#fff}
.ffr-page .btn-ghost:hover{border-color:#fff}

/* ---------------- single: hero ---------------- */
.ffr-hero{background:var(--ffr-green);color:#fff;padding-block:clamp(28px,4vw,48px) clamp(40px,5vw,64px)}
.ffr-crumbs{font-size:12.5px;margin-bottom:22px;color:rgba(255,255,255,.7)}
.ffr-crumbs a{color:rgba(255,255,255,.9);text-decoration:underline;text-underline-offset:3px}
.ffr-crumbs span{margin:0 7px}
.ffr-hero-in{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(24px,4vw,54px);align-items:center}
.ffr-hero .sh-h,.ffr-hero .eyebrow{color:#fff}
.ffr-hero .eyebrow{background:rgba(255,255,255,.14)}
.ffr-standfirst{margin-top:14px;font-size:16px;color:rgba(255,255,255,.8);max-width:46ch}
.ffr-facts{display:flex;flex-wrap:wrap;gap:26px;margin-top:26px;list-style:none;padding:0}
.ffr-facts li{border-top:1px solid rgba(255,255,255,.25);padding-top:10px;min-width:96px}
.ffr-facts span{display:block;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ffr-lime)}
.ffr-facts b{display:block;font-family:var(--disp,inherit);font-size:clamp(1.1rem,2vw,1.4rem);margin-top:5px}
.ffr-hero-img,.ffr-video{width:100%;border-radius:var(--ffr-r-lg);overflow:hidden;display:block;margin:0}

/* ---------------- video ---------------- */
.ffr-video{position:relative;aspect-ratio:16/9;background:#000}
.ffr-video img,.ffr-video video,.ffr-video iframe{width:100%;height:100%;object-fit:cover;display:block;border:0}
.ffr-play{
  position:absolute;inset:0;width:100%;height:100%;border:0;cursor:pointer;
  background:rgba(14,18,16,.28);display:grid;place-items:center;transition:background .3s;
}
.ffr-play:hover{background:rgba(14,18,16,.14)}
.ffr-play-icon{
  width:74px;height:74px;border-radius:50%;background:var(--ffr-lime);display:block;position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.ffr-play-icon::after{
  content:"";position:absolute;top:50%;left:54%;transform:translate(-50%,-50%);
  border-left:20px solid var(--ffr-ink);border-top:13px solid transparent;border-bottom:13px solid transparent;
}

/* ---------------- upright recipe video: card + player ----------------
   ffr_reel_html(). The photograph stays as the hero and the clip sits on its
   lower corner as a card. Beside the text the photograph is cut to a square
   so the card is on the first screen of a laptop; stacked, it keeps its 4:5. */
.ffr-hero-media.has-reel{position:relative}
@media (min-width:1001px){
  .ffr-hero-media.has-reel .ffr-hero-img{aspect-ratio:1;object-fit:cover;height:auto}
}
.ffr-reel{
  position:absolute;left:clamp(12px,1.5vw,22px);bottom:clamp(12px,1.5vw,22px);z-index:2;
  width:clamp(112px,34vw,150px);aspect-ratio:9/16;border-radius:16px;overflow:hidden;
  display:block;background:#111;color:#fff;text-decoration:none;
  box-shadow:0 0 0 3px #fff,0 18px 40px -12px rgba(0,0,0,.65);
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s;
}
@media (min-width:1001px){ .ffr-reel{width:clamp(140px,11.7vw,168px)} }
.ffr-reel:hover{transform:translateY(-4px);box-shadow:0 0 0 3px #fff,0 26px 50px -14px rgba(0,0,0,.7)}
.ffr-reel:focus-visible{outline:3px solid var(--ffr-lime);outline-offset:6px}
.ffr-reel .ffr-reel-img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0}
.ffr-reel::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 48%,rgba(0,0,0,.74));pointer-events:none}
.ffr-reel-play{
  position:absolute;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;z-index:1;
  border-radius:50%;background:var(--ffr-lime);box-shadow:0 8px 22px rgba(0,0,0,.4);
}
.ffr-reel-play::after{
  content:"";position:absolute;top:50%;left:55%;transform:translate(-50%,-50%);
  border-left:13px solid var(--ffr-ink);border-top:8px solid transparent;border-bottom:8px solid transparent;
}
.ffr-reel-txt{position:absolute;left:11px;right:11px;bottom:11px;z-index:1}
.ffr-reel-txt b{display:block;font-family:var(--disp,inherit);font-weight:400;font-size:12px;line-height:1.3;letter-spacing:.05em;text-transform:uppercase}
.ffr-reel-len{
  position:absolute;top:8px;right:8px;z-index:1;padding:4px 7px 3px;border-radius:20px;
  background:rgba(8,10,9,.66);font-size:10.5px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em;
}

html.ffr-vlock,html.ffr-vlock body{overflow:hidden}
.ffr-vdlg{padding:0;margin:auto;border:0;background:transparent;color:#fff;max-width:none;max-height:none;overflow:visible}
.ffr-vdlg::backdrop{background:rgba(8,10,9,.88)}
.ffr-vdlg-in{position:relative;height:min(88vh,860px);aspect-ratio:9/16;max-width:calc(100vw - 32px)}
.ffr-vdlg-v{display:block;width:100%;height:100%;object-fit:contain;background:#000;border-radius:16px}
.ffr-vdlg-x{
  position:absolute;top:-16px;right:-16px;width:44px;height:44px;border:0;border-radius:50%;
  background:#fff;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.ffr-vdlg-x::before,.ffr-vdlg-x::after{
  content:"";position:absolute;top:50%;left:50%;width:18px;height:2px;margin:-1px 0 0 -9px;
  background:var(--ffr-ink);border-radius:2px;transform:rotate(45deg);
}
.ffr-vdlg-x::after{transform:rotate(-45deg)}
.ffr-vdlg-x:focus-visible{outline:3px solid var(--ffr-lime);outline-offset:3px}
/* A phone: the player is the screen, the way the clip was shot. */
@media (max-width:640px){
  .ffr-vdlg-in{width:100vw;height:100vh;height:100dvh;max-width:none;aspect-ratio:auto}
  .ffr-vdlg-v{border-radius:0}
  .ffr-vdlg-x{top:calc(env(safe-area-inset-top, 0px) + 12px);right:12px}
}
@media (prefers-reduced-motion:reduce){
  .ffr-reel{transition:none}
  .ffr-reel:hover{transform:none}
}

/* ---------------- single: body ---------------- */
.ffr-body{padding-block:clamp(40px,5vw,70px);background:#fff}
.ffr-body-in{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(28px,4vw,60px);align-items:start}
.ffr-panel{background:var(--ffr-cream);border-radius:var(--ffr-r-lg);padding:26px 24px;margin-bottom:20px}
.ffr-panel-h{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ffr-green);margin:0 0 12px}
.ffr-ings{list-style:none;padding:0;margin:0}
.ffr-ings li{border-top:1px solid var(--ffr-line);padding:10px 0 9px;font-size:14.5px;color:var(--ffr-grey)}
.ffr-ings b{color:var(--ffr-ink);margin-right:6px}
.ffr-made b{display:block;font-family:var(--disp,inherit);font-size:13px;text-transform:uppercase;margin:4px 0 16px;color:var(--ffr-ink)}
.ffr-made-lbl{font-size:12px;color:var(--ffr-grey)}
.ffr-allergens p{font-size:14.5px;color:var(--ffr-ink);margin:0 0 8px}
.ffr-small{font-size:12px;color:var(--ffr-grey)}

.ffr-method-h{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ffr-green);margin:0 0 18px}
.ffr-steps{list-style:none;padding:0;margin:0;counter-reset:ffr}
.ffr-step{display:flex;gap:20px;padding:22px 0;border-top:1px solid var(--ffr-line)}
.ffr-step-n{flex:0 0 auto;font-family:var(--disp,inherit);font-size:13px;color:var(--ffr-lime);background:var(--ffr-green);border-radius:50px;padding:7px 12px 5px;height:fit-content}
.ffr-step h3{font-size:14px;color:var(--ffr-green);margin:0 0 6px}
.ffr-step p{margin:0;font-size:15.5px;color:var(--ffr-grey);line-height:1.65}
.ffr-tip{background:var(--ffr-green);color:#fff;border-radius:var(--ffr-r-lg);padding:26px 28px;margin-top:28px}
.ffr-tip-lbl{display:block;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ffr-lime);margin-bottom:8px}
.ffr-tip p{margin:0;color:rgba(255,255,255,.86)}
.ffr-disclaimer{margin-top:26px;font-size:12.5px;color:var(--ffr-grey)}

.ffr-related{padding-block:clamp(40px,5vw,70px);background:var(--ffr-cream)}

@media (max-width:1000px){
  .ffr-grid-cards{grid-template-columns:repeat(2,1fr)}
  .ffr-hero-in,.ffr-body-in,.ffr-top-in{grid-template-columns:1fr}
  .ffr-shelf{min-height:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  /* relative, not static: the time badge is absolutely positioned inside the
     figure, and dropping the positioning context stacked all three badges in
     the corner of the collage instead. */
  .ffr-shelf-c{position:relative;inset:auto;width:auto;transform:none;aspect-ratio:1;box-shadow:none}
  .ffr-card.is-wide{grid-column:span 2}
  .ffr-bar{position:sticky;top:var(--hd-h,73px)}
}
@media (max-width:640px){
  .ffr-grid-cards{grid-template-columns:1fr}
  .ffr-card.is-wide{grid-column:span 1}
  .ffr-card.is-wide .ffr-card-link{flex-direction:column}
  .ffr-card.is-wide .ffr-card-img{flex:none;aspect-ratio:4/5}
  .ffr-stats{gap:18px}
  .ffr-stats li{min-width:84px}
  .ffr-bar-in{padding-block:12px}
  .ffr-group-lbl{display:none}
  .ffr-filter{align-items:flex-start;flex-direction:column;gap:8px}
  .ffr-filter-label{flex:none}
  .ffr-step{gap:14px}
  .ffr-play-icon{width:58px;height:58px}
}

/* The linked pack, with the spec pulled from the product record. */
.ffr-spec{list-style:none;padding:0;margin:14px 0 18px}
.ffr-spec li{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--ffr-line);padding:8px 0 7px;font-size:13.5px}
.ffr-spec span{color:var(--ffr-grey)}
.ffr-spec b{color:var(--ffr-ink);text-align:right}
.ffr-made-btns{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.ffr-pack-link{font-size:12.5px;color:var(--ffr-green);text-decoration:underline}

/* Pager */
.ffr-pager{margin-top:34px;display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.ffr-pg,.ffr-page a.ffr-pg{
  min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 14px;border-radius:50px;text-decoration:none;font-size:13px;
  color:var(--ffr-ink);border:1px solid var(--ffr-line);background:#fff;transition:all .2s;
}
.ffr-pg:hover{border-color:var(--ffr-green);color:var(--ffr-green)}
.ffr-pg.is-on{background:var(--ffr-green);border-color:var(--ffr-green);color:#fff}
/* A filtered hero drops the collage, so the band should not keep its height. */
.ffr-page .ffr-top-in:has(> .ffr-top-txt:only-child){grid-template-columns:1fr}

/* ---------------- filter bar, rebuilt ---------------- */
.ffr-bar-in{display:grid;grid-template-columns:1fr auto auto;align-items:start;gap:12px 18px;padding-block:12px}
.ffr-primary{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.ffr-chip i{font-style:normal;margin-left:6px;opacity:.55;font-size:11px;font-variant-numeric:tabular-nums}
.ffr-chip.is-on i{opacity:.75}
/* A term that would return nothing is shown, not offered. Half the two pill
   combinations used to return zero, and nothing warned you first. */
.ffr-chip.is-empty{opacity:.4;border-style:dashed;cursor:default;background:transparent}

.ffr-refine{position:relative}
.ffr-refine-btn{
  list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;
  padding:7px 15px;border-radius:50px;font-size:12.5px;background:var(--ffr-ink);color:#fff;
  min-height:34px;user-select:none;
}
.ffr-refine-btn::-webkit-details-marker{display:none}
.ffr-refine-btn::after{content:"+";font-size:14px;line-height:1;opacity:.7}
.ffr-refine[open] .ffr-refine-btn::after{content:"\2212"}
.ffr-refine-btn i{font-style:normal;background:var(--ffr-lime);color:var(--ffr-ink);border-radius:50px;padding:1px 7px;font-size:11px}
.ffr-panel-in{
  position:absolute;z-index:5;top:calc(100% + 10px);right:0;width:min(560px,86vw);
  background:#fff;border:1px solid var(--ffr-line);border-radius:var(--ffr-r-lg);
  padding:22px 24px;box-shadow:0 24px 50px rgba(14,18,16,.16);display:grid;gap:18px;
}
.ffr-panel-group{display:grid;gap:9px}

.ffr-empty-drop{margin-top:6px;font-size:13px;color:var(--ffr-grey)}
.ffr-empty-chips{justify-content:center;margin:12px 0 22px}
.ffr-chip-drop i{margin-left:8px;opacity:.8}

@media (max-width:1000px){
  .ffr-bar-in{grid-template-columns:1fr auto}
  .ffr-bar-meta{grid-column:2}
  .ffr-refine{grid-column:2;grid-row:1;justify-self:end}
  .ffr-panel-in{width:min(520px,92vw)}
}
@media (max-width:640px){
  .ffr-bar-in{grid-template-columns:1fr auto;gap:10px 12px}
  .ffr-primary{gap:6px}
  /* 44px targets: these are the primary control on a very long document. */
  .ffr-chip,.ffr-page a.ffr-chip{min-height:38px;display:inline-flex;align-items:center;padding:8px 14px}
  .ffr-refine-btn{min-height:38px}
  .ffr-panel-in{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:64vh;overflow:auto}
}

/* The active state has to out-rank `.ffr-page a.ffr-chip`, which is (0,0,2,1)
   and appears later in this file. Same trick the theme needed for Elementor. */
.ffr-page a.ffr-chip.is-on,.ffr-chip.is-on{background:var(--ffr-green);border-color:var(--ffr-green);color:#fff}
.ffr-page a.ffr-chip.is-on i{opacity:.8}

/* A filtered view drops the collage, so the band should not keep a height it
   no longer needs. Tall only when there is something to be tall for. */
.ffr-top{padding-block:clamp(22px,2.6vw,32px) clamp(26px,3vw,38px)}
.ffr-top:has(.ffr-shelf){padding-block:clamp(26px,3.4vw,42px) clamp(46px,6vw,86px)}
.ffr-top:has(.ffr-shelf) .ffr-top-in{grid-template-columns:1.05fr .95fr}
.ffr-top-in{grid-template-columns:1fr}

/* ---------------- the conversion band ---------------- */
.ffr-convert{background:var(--ffr-ink);color:#fff;padding-block:clamp(38px,4.6vw,64px)}
.ffr-convert-in{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(26px,4vw,56px);align-items:center}
.ffr-convert-h{font-family:var(--disp,inherit);font-size:clamp(1.4rem,2.8vw,2.1rem);text-transform:uppercase;margin:12px 0 10px;color:#fff;line-height:var(--lh-lg,1.44)}
.ffr-convert p{color:rgba(255,255,255,.7);margin:0;max-width:46ch}
.ffr-convert-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ffr-path{
  display:block;padding:22px 22px 20px;border-radius:var(--ffr-r-lg);text-decoration:none;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);transition:all .25s;
}
.ffr-path:hover{background:rgba(255,255,255,.12);transform:translateY(-3px)}
.ffr-path.is-trade{background:var(--ffr-lime);border-color:var(--ffr-lime)}
.ffr-path.is-trade:hover{background:var(--ffr-lime);filter:brightness(1.04)}
.ffr-path-lbl{display:block;font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--ffr-lime)}
/* Ink, not ink at 60 and 66 per cent: on the lime card those measured 3.6:1
   and 4.1:1, under the 4.5:1 that 10.5px and 12.5px text needs. */
.ffr-path.is-trade .ffr-path-lbl{color:var(--ffr-ink)}
.ffr-path b{display:block;font-family:var(--disp,inherit);font-size:15px;text-transform:uppercase;margin:9px 0 7px;color:#fff}
.ffr-path.is-trade b{color:var(--ffr-ink)}
.ffr-path-note{display:block;font-size:12.5px;color:rgba(255,255,255,.6)}
.ffr-path.is-trade .ffr-path-note{color:var(--ffr-ink)}
@media (max-width:900px){
  .ffr-convert-in{grid-template-columns:1fr}
}
@media (max-width:520px){
  .ffr-convert-paths{grid-template-columns:1fr}
}

@media (max-width:1000px){
  /* The :has() rule above is (0,0,2,0) and out-ranks the plain .ffr-top-in
     override in the earlier media query, so the hero kept two columns on a
     phone and squeezed the collage off the right edge. Match its weight. */
  .ffr-top:has(.ffr-shelf) .ffr-top-in{grid-template-columns:1fr}
  .ffr-top:has(.ffr-shelf){padding-block:clamp(22px,3vw,32px) clamp(28px,4vw,40px)}
}


/* The display face ships one weight. A <b> or a heading asking for more
   makes the browser synthesise a bold, which smears the letterforms. This
   is the same guard the theme applies. */
.ffr-page :where(h1,h2,h3,h4) ,
.ffr-stats b,.ffr-facts b,.ffr-made b,.ffr-step-n,.ffr-cta-h,.ffr-top-h,
.ffr-panel-h,.ffr-method-h,.ffr-tip-lbl,.ffr-path-lbl{font-weight:400}

/* Leading follows size, matching the theme. */
.ffr-top-h{line-height:var(--lh-xl,1.44);letter-spacing:-.015em}
.ffr-cta-h{line-height:var(--lh-lg,1.44)}
.ffr-card h3{line-height:1.56}
.ffr-card h3{margin-top:var(--s3,12px)}
.ffr-step h3{line-height:var(--lh-sm,1.44);margin-bottom:var(--s2,8px)}
.ffr-step p{line-height:1.65}

/* The recipe card title and its "Read the recipe" cue were touching. */
.ffr-card h3{margin-bottom:var(--s3,12px)}
/* Cards in a row are stretched to a common height, but the CTA sat directly
   under the title, so a two line title put its "Read the recipe" 75px above
   its neighbour's. .ffr-card-txt is already a flex column with flex:1, so
   auto margin drops the link to the foot of every card and the row reads on
   one line. The leftover space falls between title and link, inside the card. */
.ffr-card-go{margin-top:auto;padding-top:var(--s3,12px);display:inline-block}
.ffr-card-meta{margin-bottom:var(--s2,8px)}

/* =========================================================
   Match the products archive filter exactly.
   front.css loads after the theme, so the shared rules in
   main.css lose here. These restate them at the right
   specificity rather than leaving the two bars to drift.
   ========================================================= */
.ffr-chip,.ffr-page a.ffr-chip{
  padding:9px 14px;font-size:12.5px;line-height:1.15;
  border-radius:50px;border:1px solid var(--ffr-line);background:#fff;color:var(--ffr-ink);
}
.ffr-chip i{font-style:normal;margin-left:7px;font-size:11px;opacity:.55;font-variant-numeric:tabular-nums}
.ffr-chip.is-on i{opacity:.7}
.ffr-chip.is-on,.ffr-page a.ffr-chip.is-on{background:var(--ffr-ink);border-color:var(--ffr-ink);color:#fff}
.ffr-chip:hover{border-color:var(--ffr-ink);color:var(--ffr-ink);background:rgba(11,11,11,.04)}
.ffr-chip.is-empty{opacity:.34;text-decoration:line-through;border-style:dashed;pointer-events:none}

.ffr-group,.ffr-chips,.ffr-primary{gap:10px}
.ffr-bar-filters{gap:10px 26px}
.ffr-group-lbl{margin-right:10px;letter-spacing:.14em;opacity:.72}

@media (max-width:900px){
  /* One scrolling line per group instead of a wall of wrapped pills pinned
     to the top of the screen. The bar was 140px, 17% of a 375px viewport. */
  .ffr-primary,.ffr-chips{
    flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;padding-bottom:2px;width:100%;
  }
  .ffr-primary::-webkit-scrollbar,.ffr-chips::-webkit-scrollbar{display:none}
  .ffr-chip{white-space:nowrap;flex:0 0 auto}
  .ffr-bar-in{padding-block:12px;gap:10px}
}

/* The recipe title is content, not a hand-set display heading: it can run to
   three or four lines. At the section-heading leading of 1.12 those lines
   overlapped. */
.ffr-hero-txt .sh-h,
.ffr-hero-txt h1{line-height:var(--lh-title,1.44);letter-spacing:-.008em}
.ffr-hero-txt .eyebrow{margin-bottom:var(--s5,24px)}

/* =========================================================
   FILTER SYSTEM, matching the products archive exactly.
   Sidebar of checkbox rows on desktop, the same markup as a
   drawer below 1024px. With 28 options across four groups a
   pill cloud was unscannable; a list is not.
   ========================================================= */
.ffr-layout{background:#fff;padding-block:clamp(26px,3.4vw,44px) clamp(40px,5vw,72px)}
.ffr-layout-in{
  width:min(var(--w,1240px) - var(--pad,24px) * 2, 100% - var(--pad,24px) * 2);margin-inline:auto;
  display:grid;
  /* A flat 264px rail meant a recipe card measured 305px at 1023 and 207px at
     1024: the window got wider and the cards got a third smaller. The rail
     gives a little back on narrow desktops and is flat again from about 1150. */
  grid-template-columns:clamp(228px,23vw,264px) minmax(0,1fr);
  gap:clamp(24px,3vw,44px);align-items:start;
}
.ffr-side{
  background:var(--ffr-cream);border:1px solid var(--ffr-line);
  border-radius:var(--ffr-r-lg);position:sticky;top:calc(var(--hd-h,73px) + 16px);
  display:flex;flex-direction:column;max-height:calc(100vh - var(--hd-h,73px) - 32px);
}
.ffr-side-head{
  display:flex;align-items:center;gap:12px;
  padding:24px 24px 16px;border-bottom:1px solid var(--ffr-line);
}
.ffr-side-h{
  font-family:var(--disp,inherit);font-weight:400;font-size:13px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ffr-ink);margin:0;flex:1;
}
.ffr-clear{font-size:12.5px;color:var(--ffr-green);text-decoration:underline;text-underline-offset:3px}
.ffr-close{display:none}
.ffr-side-scroll{overflow-y:auto;padding:24px;display:grid;gap:32px;flex:1;min-height:0}

.ffr-fs{border:0;margin:0;padding:0;min-width:0}
.ffr-legend{
  padding:0;font-family:var(--disp,inherit);font-weight:400;font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ffr-green);margin-bottom:14px;
}
/* "Without" hides recipes listing an ingredient. It is a filter, not a
   guarantee, and the wording says so. */
.ffr-legend-note{font-size:11.5px;line-height:1.5;color:var(--ffr-grey);margin:-6px 0 12px}

.ffr-opt{
  display:flex;align-items:center;gap:12px;padding:7px 0;cursor:pointer;
  color:var(--ffr-ink);font-size:14px;line-height:1.35;
}
.ffr-opt input{
  appearance:none;-webkit-appearance:none;flex:none;
  width:17px;height:17px;border-radius:5px;border:1.5px solid rgba(11,11,11,.28);
  background:#fff;cursor:pointer;position:relative;transition:background .18s,border-color .18s;
}
.ffr-opt input:checked{background:var(--ffr-ink);border-color:var(--ffr-ink)}
.ffr-opt input:checked::after{
  content:"";position:absolute;inset:0;background:var(--ffr-lime);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
/* Focus rings: see "Focus, two tone" further down. */
.ffr-opt-t{flex:1;min-width:0}
.ffr-opt-n{font-size:12px;color:var(--ffr-grey);font-variant-numeric:tabular-nums;flex:none}
.ffr-opt.is-off{opacity:.34;cursor:not-allowed}
.ffr-opt.is-off input{cursor:not-allowed}

.ffr-side-foot{padding:16px 24px 24px;border-top:1px solid var(--ffr-line)}
/* The rail's Show button goes only once the script is running, because the
   script is what makes a tick apply by itself. Without it, the button is the
   only way to apply a filter, and hiding it at every desktop width (as this
   file used to) left a no-JS visitor with boxes that did nothing. */
@media (min-width:1024px){
  .ffr-side.is-live .ffr-side-foot{display:none}
}

/* What a tick does, said before the first box (WCAG 3.2.2). Each line shows
   only at the width where it is true, and only once the script is live. */
.ffr-side-note{display:none;margin:0;padding:14px 24px 0;font-size:12.5px;line-height:1.5;color:var(--ffr-grey)}
.ffr-side.is-live .ffr-side-note{display:block}
.ffr-note-drawer{display:none}
@media (max-width:1023px){
  .ffr-note-rail{display:none}
  .ffr-note-drawer{display:inline}
}

/* The rail scrolls inside itself when it is taller than the window. With
   overlay scrollbars nothing showed that it did, so the last options sat out
   of sight with the bottom row cut in half. Two cues: a scrollbar that stays
   drawn (WebKit and Blink draw a styled scrollbar permanently; the standard
   scrollbar-width and scrollbar-color are left unset on purpose, because
   setting them makes Chrome ignore these rules and go back to overlay), and a
   fade at the foot while there is more below. Firefox keeps its own overlay
   scrollbar and relies on the fade. */
.ffr-side-scroll::-webkit-scrollbar{width:8px}
.ffr-side-scroll::-webkit-scrollbar-track{background:transparent}
.ffr-side-scroll::-webkit-scrollbar-thumb{background:rgba(11,11,11,.28);border-radius:8px;border:2px solid var(--ffr-cream)}
.ffr-side.is-more-below .ffr-side-scroll{
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 56px),transparent);
          mask-image:linear-gradient(to bottom,#000 calc(100% - 56px),transparent);
}

.ffr-main{min-width:0}
.ffr-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.ffr-open{display:none}
.ffr-count{
  margin:0;font-family:var(--disp,inherit);font-weight:400;font-size:12px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ffr-green);
}
.ffr-activechips{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ffr-activechip{
  display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:50px;
  font-size:12.5px;background:var(--ffr-cream);border:1px solid var(--ffr-line);
  color:var(--ffr-ink);text-decoration:none;
}
.ffr-activechip:hover{border-color:var(--ffr-ink)}
.ffr-activechip span{opacity:.55;font-size:15px;line-height:1}
.ffr-chip-clear{
  display:inline-flex;align-items:center;padding:7px 12px;font-size:12.5px;
  color:var(--ffr-green);text-decoration:underline;text-underline-offset:3px;
}
.ffr-list{background:transparent;padding-block:0}

.ffr-scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:125;opacity:0;pointer-events:none;transition:opacity .25s}
body.ffr-drawer-open .ffr-scrim{opacity:1;pointer-events:auto}

@media (max-width:1023px){
  .ffr-layout-in{grid-template-columns:minmax(0,1fr)}
  .ffr-open{
    display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:9px 16px;
    border-radius:50px;border:1px solid var(--ffr-line);background:#fff;color:var(--ffr-ink);
    cursor:pointer;font-family:var(--disp,inherit);font-weight:400;font-size:11.5px;
    letter-spacing:.09em;text-transform:uppercase;
  }
  .ffr-open b{background:var(--ffr-ink);color:#fff;border-radius:50px;min-width:19px;height:19px;display:grid;place-items:center;font-size:10.5px}
  /* Off screen is not hidden. With the transform alone, the shut drawer kept
     its close button, every checkbox and "Show 40 recipes" in the tab order:
     thirty Tab stops at x=403 on a 375px screen, each one invisible, and
     Space on any of them ticked a box nobody could see. visibility takes the
     whole panel out of the tab order and the accessibility tree while it is
     shut. It waits for the slide to finish on the way out (the .28s delay)
     and flips at once on the way in, so the first box can take focus the
     moment the drawer opens. Same fix as the products drawer. */
  .ffr-side{
    position:fixed;top:0;right:0;bottom:0;left:auto;width:min(360px,88vw);
    max-height:none;border-radius:0;z-index:126;transform:translateX(101%);visibility:hidden;
    transition:transform .28s cubic-bezier(.22,1,.36,1),visibility 0s linear .28s;
    border:0;border-left:1px solid var(--ffr-line);
  }
  body.ffr-drawer-open .ffr-side{
    transform:none;visibility:visible;
    transition:transform .28s cubic-bezier(.22,1,.36,1),visibility 0s;
  }
  body.ffr-drawer-open{overflow:hidden}
  .ffr-close{
    display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;
    border:1px solid var(--ffr-line);background:transparent;color:var(--ffr-ink);
    font-size:20px;line-height:1;cursor:pointer;
  }
  .ffr-side-foot{display:block}
  .ffr-opt{padding:11px 0}
}

/* Card text rhythm: metadata is supporting information, the title leads. */
/* Full strength. At opacity .7 the grey measured 3.2:1 on the white card,
   under the 4.5:1 that 12px text needs. #5E615C on white is 6.3:1. opacity:1
   is stated rather than left out so the theme's own .72 on this class (in
   main.css, which loads first) cannot bring the failure back. */
.ffr-card-meta{font-size:12px;letter-spacing:.02em;opacity:1;margin-bottom:10px}
.ffr-card-p{margin-top:12px;line-height:1.62;max-width:56ch}
.ffr-card-go{margin-top:auto;padding-top:16px}

/* Recipe facts: "Total time" sat 5px above its own value. Same binding as the
   air fryer guide, where the label leads and the figure answers it. */
.ffr-facts li{display:grid;gap:9px}
.ffr-facts b{margin-top:0}
.ffr-facts li + li{margin-left:0}


/* Every multi-line display heading in this plugin, held above the measured
   1.21em ink floor of Boldonse. Single-line figures (.ffr-stats b) may stay at
   1 because they cannot wrap. */
.ffr-top-h,.ffr-cta-h,.ffr-convert-h,.ffr-hero-txt .sh-h,
.ffr-card h3,.ffr-step h3,.ffr-made b,.ffr-empty p{line-height:var(--lh-lg,1.44)}
.ffr-hero-txt .sh-h{line-height:var(--lh-title,1.44)}
.ffr-card h3{line-height:1.56}

/* ============================================================
   Single recipe: the working parts
   Serving scaler, ingredient checklist, cook mode, sticky buy
   bar. All of it degrades to the plain recipe without JS.
   ============================================================ */

.ffr-panel-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s3,12px);flex-wrap:wrap}
.ffr-panel-top .ffr-panel-h{margin:0}

.ffr-scale{display:inline-flex;align-items:center;gap:2px;background:#fff;
  border:1px solid var(--ffr-line);border-radius:50px;padding:3px}
.ffr-scale-b{
  width:28px;height:28px;border:0;border-radius:50%;background:transparent;cursor:pointer;
  font-size:16px;line-height:1;color:var(--ffr-ink);display:grid;place-items:center;
  transition:background .2s,color .2s;
}
.ffr-scale-b:hover:not(:disabled){background:var(--lime,#76BC21);color:#0B0B0B}
.ffr-scale-b:disabled{opacity:.3;cursor:default}
.ffr-scale-v{display:inline-flex;align-items:baseline;gap:4px;padding:0 4px;min-width:62px;justify-content:center}
.ffr-scale-v b{font-family:var(--disp,inherit);font-weight:400;font-size:15px;font-variant-numeric:tabular-nums}
.ffr-scale-v i{font-style:normal;font-size:11px;letter-spacing:.04em;color:var(--ffr-muted)}

/* The whole row is the hit target, so it works with a thumb. */
.ffr-ing{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:2px 0;min-height:24px}
.ffr-ing-x{
  appearance:none;-webkit-appearance:none;margin:2px 0 0;flex:none;
  width:17px;height:17px;border:1.5px solid var(--ffr-line);border-radius:5px;background:#fff;
  cursor:pointer;transition:background .18s,border-color .18s;
}
.ffr-ing-x:checked{background:var(--lime,#76BC21);border-color:var(--lime,#76BC21)}
.ffr-ing-x:checked::after{
  content:"";display:block;width:5px;height:9px;margin:1px auto 0;
  border:solid #0B0B0B;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.ffr-ing-t{transition:opacity .2s}
.ffr-ing-x:checked + .ffr-ing-t{opacity:.42;text-decoration:line-through}
/* A quantity that has just been rescaled gets a brief nudge, so the change is
   noticed on a long list rather than happening silently off screen. */
.ffr-ings b.is-new{animation:ffr-qty .5s ease}
@keyframes ffr-qty{0%{color:var(--lime,#76BC21)}100%{color:inherit}}

.ffr-scale-note{margin:10px 0 0;font-size:11.5px;line-height:1.5;color:var(--ffr-muted)}

.ffr-copy{
  margin-top:14px;border:1px solid var(--ffr-line);background:#fff;color:var(--ffr-ink);
  border-radius:50px;padding:9px 16px;font-size:11.5px;letter-spacing:.06em;
  text-transform:uppercase;cursor:pointer;transition:border-color .2s,background .2s;
}
.ffr-copy:hover{border-color:var(--ffr-ink)}
.ffr-copy.is-done{background:var(--lime,#76BC21);border-color:var(--lime,#76BC21)}

.ffr-method-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s3,12px);flex-wrap:wrap}
.ffr-method-top .ffr-method-h{margin:0}
.ffr-cook{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ffr-line);
  background:#fff;color:var(--ffr-ink);border-radius:50px;padding:9px 15px;
  font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
  transition:border-color .2s,background .2s,color .2s;
}
.ffr-cook-dot{width:7px;height:7px;border-radius:50%;background:var(--ffr-line);transition:background .2s}
.ffr-cook:hover{border-color:var(--ffr-ink)}
.ffr-cook[aria-pressed="true"]{background:var(--ffr-ink);border-color:var(--ffr-ink);color:#fff}
.ffr-cook[aria-pressed="true"] .ffr-cook-dot{background:var(--lime,#76BC21)}
.ffr-cook-note{margin:10px 0 0;font-size:12px;line-height:1.5;color:var(--ffr-muted)}

/* The step number is the control: tap it as you finish that step. */
button.ffr-step-n{border:0;cursor:pointer;font:inherit;transition:opacity .2s,transform .2s}
button.ffr-step-n:hover{transform:scale(1.08)}
.ffr-step.is-done > div{opacity:.4}
.ffr-step.is-done button.ffr-step-n{background:var(--ffr-ink);color:var(--lime,#76BC21)}

.ffr-steps.is-cooking .ffr-step p{font-size:17px;line-height:1.65}
.ffr-steps.is-cooking .ffr-step h3{font-size:1.15em}
.ffr-steps.is-cooking .ffr-step{padding-block:var(--s4,16px)}

/* Sticky buy bar. The sidebar pack panel scrolls away early on a phone. */
.ffr-buybar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:rgba(11,11,11,.96);border-top:1px solid rgba(255,255,255,.12);
  padding:10px max(12px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  transform:translateY(110%);transition:transform .3s cubic-bezier(.22,1,.36,1);
}
.ffr-buybar.is-on{transform:none}
.ffr-buybar-in{display:flex;align-items:center;justify-content:space-between;gap:12px;
  max-width:var(--w,1240px);margin-inline:auto}
.ffr-buybar-t{display:flex;flex-direction:column;min-width:0}
.ffr-buybar-t i{font-style:normal;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--lime,#76BC21)}
/* Two lines, not one. On one line the pack name was cut to "TEMPURA
   BATTERED..." or "FALAFEL TRADITIONAL..." at every phone width, on the one
   prompt that stays on screen. At 375px two lines hold 38 of the 40 names on
   recipes; the longest two are clamped with an ellipsis rather than growing
   the bar, and keep their leading words. */
.ffr-buybar-t b{font-family:var(--disp,inherit);font-weight:400;font-size:13px;line-height:var(--lh-sm,1.44);
  color:#fff;text-transform:uppercase;overflow:hidden;white-space:normal;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.ffr-buybar-a{display:flex;gap:8px;flex:none}
@media (min-width:1000px){ .ffr-buybar{display:none} }
@media (max-width:420px){
  .ffr-buybar-a .btn:last-child{display:none}
  .ffr-buybar-t b{font-size:12px}
}
/* The narrowest phones get a third line: at 320px twelve of the forty pack
   names on recipes still ran out of room at two. With three, one does ("Hand
   Coated Butterfly Shrimps with Japanese Panko Crumbs"), and it keeps its
   leading words. */
@media (max-width:360px){
  .ffr-buybar-t b{font-size:11px;-webkit-line-clamp:3;line-clamp:3}
}

@media (prefers-reduced-motion:reduce){
  .ffr-buybar{transition:none}
  .ffr-ings b.is-new{animation:none}
  button.ffr-step-n:hover{transform:none}
}

/* =========================================================
   Focus, two tone
   The recipe tools set a 2px lime ring of their own, which
   replaced the theme's ring and measured 2.3:1 on white and
   2.1:1 on the cream panels, under the 3:1 a focus indicator
   needs. They now use the theme's own two-tone ring: the ink
   outline carries the contrast on light grounds, the lime
   halo on dark ones (the step numbers, the play button).
   ========================================================= */
.ffr-scale-b:focus-visible,.ffr-ing-x:focus-visible,.ffr-copy:focus-visible,.ffr-cook:focus-visible,
button.ffr-step-n:focus-visible,.ffr-opt input:focus-visible,
.ffr-open:focus-visible,.ffr-close:focus-visible{
  outline:3px solid var(--ffr-ink);outline-offset:2px;box-shadow:0 0 0 6px var(--ffr-lime);
}
/* The play button covers the whole video frame, and the frame clips its own
   overflow for the rounded corners, so a ring drawn outside the button was
   cut away. It is drawn inside instead: lime at the edge, ink within. */
.ffr-play:focus-visible{
  outline:3px solid var(--ffr-ink);outline-offset:-9px;box-shadow:inset 0 0 0 6px var(--ffr-lime);
}
/* Same clipping on the recipe cards: .ffr-card hides its overflow for the
   photo zoom and the rounded corners, and that removed the link's focus ring
   completely. Tabbing through the recipes showed nothing at all. The ring
   moves to the card. Guarded, so a browser without :has() keeps the link's
   own ring rather than losing both. */
@supports selector(:has(a)){
  .ffr-card:has(.ffr-card-link:focus-visible){
    outline:3px solid var(--ffr-ink);outline-offset:2px;box-shadow:0 0 0 6px var(--ffr-lime);
  }
  .ffr-card-link:focus-visible{outline:none;box-shadow:none}
}

/* The allergen panel's caveat is a safety line, so it is set in ink, not in
   the small grey used for asides. */
.ffr-allergens .ffr-allergen-warn{font-size:13px;line-height:1.55;color:var(--ffr-ink);margin:0}
.ffr-allergens p + .ffr-allergen-warn{margin-top:10px}

/* An old "Without ..." link: the list is not screened, and says so. */
.ffr-withdrawn{
  margin:0 0 22px;padding:14px 18px;border-radius:var(--ffr-r);background:var(--ffr-cream);
  border:1px solid var(--ffr-line);border-left:4px solid var(--ffr-ink);
}
.ffr-withdrawn p{margin:0;font-size:14px;line-height:1.55;color:var(--ffr-ink)}
.ffr-withdrawn b{display:block;margin-bottom:4px}

/* Printing a recipe is a real thing people do in a kitchen. */
/* Windows High Contrast and other forced-colour modes strip backgrounds, and
   a ticked box here was only a background colour, so ticked and unticked
   filters and ingredients looked exactly alike. System colours bring the
   state back. */
@media (forced-colors:active){
  /* forced-color-adjust:none, or the browser forces the background back to
     Canvas and the Highlight below never shows. */
  .ffr-opt input,.ffr-ing-x{forced-color-adjust:none;border-color:ButtonText;background:Canvas}
  .ffr-opt input:checked,.ffr-ing-x:checked{background:Highlight;border-color:Highlight}
  .ffr-opt input:checked::after{background:HighlightText}
  .ffr-ing-x:checked::after{border-color:HighlightText}
}

@media print{
  .ffr-hero-media,.ffr-buybar,.ffr-cook,.ffr-copy,.ffr-scale,.ffr-related,
  .ffr-convert,.ffr-crumbs,.hd,.ft,.pre,.ann{display:none !important}
  /* The hero is white on black on screen. On paper the black goes and the
     white text stayed, so the title and the facts printed pale grey. */
  .ffr-hero,.ffr-hero *{color:#000 !important;background:none !important}
  .ffr-body{display:block}
  .ffr-page,.ffr-single{background:#fff;color:#000}
  .ffr-panel{border:1px solid #ccc;break-inside:avoid}
  .ffr-step{break-inside:avoid}
  .ffr-ing-x{display:none}
  .ffr-ing-t{opacity:1 !important;text-decoration:none !important}
  /* The tip and the step numbers are white and lime on the dark ground on
     screen. A printer drops the ground, so the tip's text printed white on
     white and its label and the numbers 01 to 05 printed lime, about 2.3:1.
     On paper they go black, the tip keeps a rule round it, and a step the
     cook has ticked off prints at full strength rather than at 40%. */
  .ffr-tip{background:none !important;border:1px solid #000;color:#000}
  .ffr-tip p,.ffr-tip-lbl{color:#000 !important}
  .ffr-steps .ffr-step-n,.ffr-steps .ffr-step.is-done .ffr-step-n{color:#000 !important;background:none !important;border:1px solid #000}
  .ffr-step.is-done > div{opacity:1}
  a[href]::after{content:""}
}

/* =========================================================
   22 October 2026: final audit. Register:
   audit-2026-10-22/AUDIT-2026-10-22.md (section 6).
   ========================================================= */

/* Display values in capitals, as everywhere else on the site ("30 min",
   "Easy" were the only mixed-case display type). */
.ffr-facts b,.ffr-stats b{text-transform:uppercase}

/* Step badges sized to their digits, so step 1's text started 4px left of
   the others. One width for all. */
.ffr-step-n{min-width:44px;text-align:center}

/* Method and allergen lines ran 100 to 120 characters on tablets. */
.ffr-step p{max-width:68ch}
.ffr-allergens .ffr-allergen-warn{max-width:72ch}

/* Hero photograph: square beside the text on desktop (a 4:5 photo ran past
   the fold and left the text floating in its middle), 4:3 stacked on tablets
   (it was a 768x959 tower before the ingredients). Phones keep 4:5. */
@media (min-width:1001px){ .ffr-hero-img{aspect-ratio:1;object-fit:cover;height:auto} }
@media (min-width:641px) and (max-width:1000px){ .ffr-hero-img{aspect-ratio:4/3;object-fit:cover;height:auto} }

/* More ideas: three cards, three across, wherever two across would strand
   the third. */
@media (min-width:641px) and (max-width:1199px){
  .ffr-related .ffr-grid-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Filter rail: tighter, so more of it fits a laptop screen, and a shorter fade
   at the foot, which had made the last visible option look switched off. */
.ffr-side-scroll{gap:24px}
.ffr-side.is-more-below .ffr-side-scroll{
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent);
          mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent);
}

/* Servings stepper: 28px buttons were small for a thumb in a kitchen. */
.ffr-scale-b{width:36px;height:36px}

/* 27 October 2026: pre-launch audit. The cards in "More ideas" are the
   listing's cards, and now keep "Read the recipe" on the bottom line too. */
.ffr-related a.ffr-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.ffr-card h3{text-wrap:balance}
