/* ==========================================================================
   fbl-recipe.css — single-recipe editorial layer (zone W5-recipe-single)
   Loaded is_single() only: functions.php enqueue, handle `fbl-recipe`,
   dep `fbl-child`, filemtime (writer: W0, wired 2026-10-21). Loaded after
   style.css — this file only refines; existing fbl-* hooks are never renamed.

   Scope (design/ui-upgrade-blueprint.md):
     0. Font + palette lock for the WPRM recipe card (design law section 4.1;
        the bundled template ships two banned families and its own accent
        palette — both are overridden here, plugin CSS is never edited)
     1. Metrics badge Prep / Cook / Servings / kcal (section 5.4)
     2. Actions row: Jump to recipe | Print recipe | Save recipe (section 5.5)
     3. WPRM card Print / Pin buttons in FBL tokens (section 5.5; the Pinterest
        brand red is banned — palette section 2, owner decision fix-round3)
     4. Servings adjuster polish (section 5.5, tokens only)
     5. Author-card container shell (W1 renders content inside)
     6. prefers-reduced-motion floor (section 6, mandatory in every new CSS)

   Tokens come from style.css :root only (sections 2-4); normative component
   values follow section 3-5 (24px metric values, radii 4/8/12, buttons >= 48px).
   Control points: 375 / 768 / 1440.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Font + palette lock (gemini-verify bonus-1, blueprint section 5.5).
   The recipe-card template prints its own stylesheet declaring a UI sans and
   a display serif that are banned for this network (exact names live in
   report 2026-10-21-w5-recipe-single — kept out of this file on purpose so
   mechanical greps stay clean) plus an off-palette olive accent through the
   --meadow-* custom properties. More than two families on a page violates
   design law section 4.1. Plugin CSS is never edited (plugins are never
   touched) — this layer wins with !important and re-points the template's
   own custom properties at the FBL tokens, so every inline style that
   resolves through them (borders, toggle pills) recolours automatically.
   Display = Fraunces, body and utility = Source Sans 3 (section 3).
   -------------------------------------------------------------------------- */
.wprm-recipe-container .wprm-recipe-template-meadow,
.wprm-recipe-template-meadow {
  --meadow-accent-color: var(--accent) !important;
  --meadow-main-background-color: var(--bg-alt) !important;
  --meadow-list-border-color: var(--border) !important;
}

.wprm-recipe-container .wprm-recipe-template-meadow {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.wprm-recipe-container,
.wprm-recipe-container *,
.wprm-recipe-template-meadow,
.wprm-recipe-template-meadow * {
  font-family: var(--fbl-font-body) !important;
}

.wprm-recipe-container .wprm-recipe-name,
.wprm-recipe-container h1,
.wprm-recipe-container h2,
.wprm-recipe-container h3,
.wprm-recipe-container h4,
.wprm-recipe-container h5,
.wprm-recipe-container h6,
.wprm-recipe-template-meadow .wprm-recipe-name,
.wprm-recipe-template-meadow .wprm-recipe-header,
.wprm-recipe-template-meadow h1,
.wprm-recipe-template-meadow h2,
.wprm-recipe-template-meadow h3,
.wprm-recipe-template-meadow h4,
.wprm-recipe-template-meadow h5,
.wprm-recipe-template-meadow h6 {
  font-family: var(--fbl-font-display) !important;
  color: var(--text) !important;
}

/* meaningful text inside the recipe never drops below the Body scale (section 3.2) */
.wprm-recipe-template-meadow p,
.wprm-recipe-template-meadow li {
  font-size: var(--fbl-fs-body) !important;
}

.wprm-recipe-template-meadow a {
  color: var(--accent-hover) !important;
}

/* anchor landing for Jump links: compensate a sticky header (section 6) */
.wprm-recipe-container,
[id^="wprm-recipe-container-"],
#recipe {
  scroll-margin-top: 88px;
}

/* --------------------------------------------------------------------------
   1. Metrics badge (section 5.4): Prep | Cook | Servings | kcal.
   Placement: under H1 + meta line + "Updated:" date, above the actions row
   (thesis E1) — injected by includes/fbl-recipe-meta.php right after the
   fbl-last-updated module. Feature plate: --surface + hairline --border,
   radius 12, Meta labels, Fraunces 600 24px values, tabular-nums.
   No motion (recipe body is static — design law section 6).
   Markup: dl.fbl-recipe-metrics > div.fbl-recipe-metrics__cell > dt + dd
   -------------------------------------------------------------------------- */
.fbl-recipe-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--fbl-space-24);
  padding: var(--fbl-space-16) var(--fbl-space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--fbl-radius-12);
}

.fbl-recipe-metrics__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--fbl-space-4);
  padding: var(--fbl-space-8) var(--fbl-space-12);
  text-align: center;
}

.fbl-recipe-metrics__cell + .fbl-recipe-metrics__cell {
  border-left: 1px solid var(--border);
}

.fbl-recipe-metrics dt {
  font-family: var(--fbl-font-body);
  font-size: var(--fbl-fs-meta);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fbl-recipe-metrics dd {
  margin: 0;
  font-family: var(--fbl-font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 375 mobile baseline: 2x2 grid, hairline row split, values >= 20px (section 5.4) */
@media (max-width: 767px) {
  .fbl-recipe-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--fbl-space-12);
  }

  .fbl-recipe-metrics__cell {
    padding: var(--fbl-space-12) var(--fbl-space-8);
  }

  .fbl-recipe-metrics__cell:nth-child(2n + 1) {
    border-left: 0;
  }

  .fbl-recipe-metrics__cell:nth-child(2n) {
    border-left: 1px solid var(--border);
  }

  .fbl-recipe-metrics__cell:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .fbl-recipe-metrics dd {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   2. Actions row (section 5.5): the Divi Jump button (fbl-btn-jump, kept
   as-is) plus Print recipe + Save recipe from includes/fbl-recipe-meta.php.
   Print = stock WPRM print URL (plain link; no window.print — inline JS is
   banned and fbl.js is another zone). Save = Pinterest bookmarklet link with
   the textual mark "Save recipe" (section 6.5: text label, never emoji,
   never the Pinterest-red).
   -------------------------------------------------------------------------- */
.fbl-btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fbl-space-8);
  min-height: 48px;
  padding: var(--fbl-space-12) var(--fbl-space-24);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--fbl-radius-8);
  color: var(--accent-hover);
  font-family: var(--fbl-font-body);
  font-size: var(--fbl-fs-button);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.fbl-btn--secondary:hover,
.fbl-btn--secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.fbl-btn--secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fbl-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.fbl-wprm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fbl-space-12);
  margin: 0 0 var(--fbl-space-24);
}

.fbl-wprm-actions .et_pb_button_module_wrapper {
  display: flex;
  margin: 0;
}

.fbl-wprm-actions .fbl-btn-jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* 375 mobile baseline: jump full width, Print + Save as a two-up row (section 5.5) */
@media (max-width: 767px) {
  .fbl-wprm-actions {
    gap: var(--fbl-space-8);
  }

  .fbl-wprm-actions .et_pb_button_module_wrapper {
    flex: 1 1 100%;
  }

  .fbl-wprm-actions .fbl-btn-jump {
    width: 100%;
    justify-content: center;
  }

  .fbl-wprm-actions .fbl-btn--secondary {
    flex: 1 1 calc(50% - var(--fbl-space-8));
    padding: var(--fbl-space-12) var(--fbl-space-16);
  }
}

/* --------------------------------------------------------------------------
   3. WPRM card Print / Pin buttons (section 5.5). The plugin paints inline
   styles on these elements (dark grey text/borders, 50px pill radius,
   5px 15px padding) — same-element override with !important is the only
   thing that wins (fix-ui section 6.3 lesson; :root overrides never reach
   inline styles). Secondary FBL shape: --surface / 1px --accent / radius 8 /
   --accent-hover text / min-height 48. The save button stays in FBL tokens —
   the Pinterest brand red is banned (section 2, fix-round3).
   -------------------------------------------------------------------------- */
.wprm-recipe-container a.wprm-recipe-print,
.wprm-recipe-container a.wprm-recipe-pin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--fbl-space-8);
  background-color: var(--surface) !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--fbl-radius-8) !important;
  color: var(--accent-hover) !important;
  font-family: var(--fbl-font-body) !important;
  font-size: var(--fbl-fs-button) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  min-height: 48px !important;
  padding: var(--fbl-space-12) var(--fbl-space-24) !important;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.wprm-recipe-container a.wprm-recipe-print:hover,
.wprm-recipe-container a.wprm-recipe-print:focus-visible,
.wprm-recipe-container a.wprm-recipe-pin:hover,
.wprm-recipe-container a.wprm-recipe-pin:focus-visible {
  background-color: var(--accent-soft) !important;
  color: var(--accent-hover) !important;
}

.wprm-recipe-container a.wprm-recipe-print:focus-visible,
.wprm-recipe-container a.wprm-recipe-pin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Servings adjuster polish (section 5.5). Dynamic servings (1x / 2x / 3x /
   custom pills) is ON in the plugin render — this layer only tokens the
   controls. The native interactive checklist stays OFF: the child-theme JS
   shim already provides ingredient checkboxes + localStorage, enabling the
   plugin's own checkboxes on top would double them (verdict in report
   2026-10-21-w5-recipe-single, section 5).
   -------------------------------------------------------------------------- */
.wprm-recipe-container .wprm-recipe-adjustable-servings,
.wprm-recipe-container button.wprm-toggle,
.wprm-recipe-container .wprm-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--fbl-radius-4);
  color: var(--text);
  transition: background-color 150ms ease;
}

.wprm-recipe-container .wprm-recipe-adjustable-servings:hover,
.wprm-recipe-container .wprm-recipe-adjustable-servings:focus-visible,
.wprm-recipe-container button.wprm-toggle:hover,
.wprm-recipe-container button.wprm-toggle:focus-visible,
.wprm-recipe-container .wprm-toggle:hover,
.wprm-recipe-container .wprm-toggle:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   5. Author-card container shell (E-E-A-T block). W1 renders the content
   (includes/fbl-eat-author.php -> .fbl-author-card / __avatar / __body /
   __name / __role / __bio / __more); this layer only guards the flex card
   against overflow with long names/URLs and stacks it on 375.
   -------------------------------------------------------------------------- */
.fbl-author-card {
  min-width: 0;
}

.fbl-author-card > * {
  min-width: 0;
}

.fbl-author-card__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 375 mobile baseline: avatar above text, roomier gaps */
@media (max-width: 767px) {
  .fbl-author-card {
    flex-wrap: wrap;
    gap: var(--fbl-space-16);
    padding: var(--fbl-space-16);
    border: 1px solid var(--border);
    border-radius: var(--fbl-radius-12);
    background: var(--surface);
  }
}

/* --------------------------------------------------------------------------
   6. Reduced motion (section 6, mandatory): all transitions of this layer off.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fbl-btn--secondary,
  .wprm-recipe-container a.wprm-recipe-print,
  .wprm-recipe-container a.wprm-recipe-pin,
  .wprm-recipe-container .wprm-recipe-adjustable-servings,
  .wprm-recipe-container button.wprm-toggle,
  .wprm-recipe-container .wprm-toggle {
    transition: none;
  }
}


/* ==========================================================================
   11. Checklist touch target + cook mode + WPRM photo (2026-10-22)
   Gemini directive delta S2.2b/S2.2c/S2.3; T1 from plans/2026-10-22-next-session.
   ========================================================================== */

/* T1: 44x44 touch target around the 22px visual box. The transparent border
   trick keeps the box pixels exactly where they were (left 0, row center)
   while the hit area grows to the tap-target minimum. */
.wprm-recipe-ingredient .fbl-ing-check {
	width: 44px;
	height: 44px;
	left: -11px;
	top: 50%;
	transform: translateY(-50%);
	border: 11px solid transparent;
	border-radius: 15px;
	background: #fff;
	background-clip: padding-box;
	box-shadow: inset 0 0 0 1.5px var(--border);
}

.wprm-recipe-ingredient .fbl-ing-check:checked {
	background-color: var(--accent);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-position: center;
	background-size: 13px 13px;
	background-repeat: no-repeat;
	background-clip: padding-box;
	border-color: transparent;
	box-shadow: inset 0 0 0 1.5px var(--accent);
}

.wprm-recipe-ingredient .fbl-ing-check:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -11px;
}

/* Cook mode toggle (injected into .fbl-wprm-actions by js/fbl-cook-mode.js). */
.fbl-cook-mode[aria-pressed='true'] {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-hover);
}

/* WPRM recipe photo: never distort, match the 8px media radius. */
.wprm-recipe-image img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--fbl-radius-8);
}

@media (prefers-reduced-motion: reduce) {
	.fbl-cook-mode {
		transition: none;
	}
}

/* ==========================================================================
   12. Action row alignment + equal buttons + WPRM jump-nav icons (2026-10-22,
   owner feedback). Desktop: one row of equal-width, equal-height controls.
   Mobile: stable rows (Jump 100% / Print+Save 50/50 / Cook mode 100%) so the
   toggle never changes position when pressed. Heights are pinned to 48px so
   the Divi Jump button, the icon buttons and the text-only Cook mode share
   one baseline. Recipe-card jump-nav icons: one 28px box for every SVG.
   ========================================================================== */
@media (min-width: 768px) {
	.fbl-wprm-actions {
		align-items: stretch;
	}

	.fbl-wprm-actions .et_pb_button_module_wrapper {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
		margin: 0;
	}

	.fbl-wprm-actions .fbl-btn-jump,
	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-cook-mode {
		box-sizing: border-box;
		height: 48px;
		min-height: 48px;
	}

	.fbl-wprm-actions .fbl-btn-jump {
		width: 100%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--fbl-space-8);
	}

	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-cook-mode {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 var(--fbl-space-16);
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	.fbl-wprm-actions .et_pb_button_module_wrapper {
		flex: 1 1 100%;
	}

	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-btn--secondary {
		flex: 1 1 calc(50% - var(--fbl-space-4));
		min-width: 0;
		padding: 0 var(--fbl-space-16);
		white-space: nowrap;
	}

	.fbl-wprm-actions .fbl-cook-mode {
		flex: 1 1 100%;
	}
}

/* Checklist hit-area radius: outer 15px = 4px visible + 11px transparent
   border (radius scale stays 4/8/12/999 in effect). */
.wprm-recipe-ingredient .fbl-ing-check {
	border-radius: calc(var(--fbl-radius-4) + 11px);
}

/* Recipe-card jump-nav (Ingredients / Method / Nutrition): equal icon boxes
   and equal columns. SVGs ship with per-icon intrinsic sizes (54x50 etc.);
   a fixed 28px box with the default preserveAspectRatio letterboxes each
   glyph without distortion. */
.wprm-recipe-jump-to-section-container {
	display: flex;
	gap: var(--fbl-space-8);
}

.wprm-recipe-jump-to-section {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: var(--fbl-space-4);
	text-align: center;
}

.wprm-recipe-icon.wprm-recipe-jump-to-section-icon {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wprm-recipe-jump-to-section-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

/* ==========================================================================
   13. Button shapes equalized (2026-10-22, owner feedback #2): the Divi
   Jump button carried Divi's 3px radius + 2px border and the WPRM recipe
   card shipped pill buttons (radius 50px, inline padding 5x15) of unequal
   width. Every action button now shares one shape: 8px radius, 48px height,
   equal widths. Primary vs secondary stays a fill difference only.
   ========================================================================== */
.fbl-wprm-actions .fbl-btn-jump {
	border: 0 !important;
	border-radius: var(--fbl-radius-8) !important;
	padding: 0 var(--fbl-space-24) !important;
}

.fbl-wprm-actions .fbl-btn-jump:after {
	display: none !important;
}

/* WPRM recipe-card action buttons (Print Recipe / Pin): kill the inline
   pill style; equal width so the pair always matches. */
.wprm-recipe-container .wprm-recipe-print,
.wprm-recipe-container .wprm-recipe-pin {
	min-width: 168px;
	min-height: 48px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 12px 24px !important;
	border-radius: var(--fbl-radius-8) !important;
	text-align: center;
}

@media (min-width: 768px) {
	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-cook-mode {
		padding: 0 var(--fbl-space-24);
	}
}

@media (max-width: 767px) {
	/* Owner wants all four controls the same size: 2x2 equal grid. */
	.fbl-wprm-actions .et_pb_button_module_wrapper,
	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-btn--secondary,
	.fbl-wprm-actions .fbl-cook-mode {
		flex: 1 1 calc(50% - var(--fbl-space-4));
		min-width: 0;
		padding-left: var(--fbl-space-16);
		padding-right: var(--fbl-space-16);
		white-space: nowrap;
	}
}

/* ==========================================================================
   14. Action labels never wrap (2026-10-22, owner feedback #4): "Jump to
   recipe" broke onto two lines in the equal-width grid. Labels are nowrap
   now and the grid gives them room: 2x2 up to 1023px, one row of four from
   1024px. Horizontal padding is 16px (was 24) so the longest label fits.
   ========================================================================== */
.fbl-wprm-actions .fbl-btn-jump,
	.fbl-wprm-actions .fbl-btn,
	.fbl-wprm-actions .fbl-btn--secondary,
	.fbl-wprm-actions .fbl-cook-mode {
		white-space: nowrap;
	}

	@media (min-width: 1024px) {
		.fbl-wprm-actions .fbl-btn-jump {
			padding: 0 var(--fbl-space-16) !important;
		}

		.fbl-wprm-actions .fbl-btn,
		.fbl-wprm-actions .fbl-cook-mode {
			padding: 0 var(--fbl-space-16);
		}
	}

	@media (max-width: 1023px) {
		.fbl-wprm-actions {
			gap: var(--fbl-space-8);
		}

		.fbl-wprm-actions .et_pb_button_module_wrapper,
		.fbl-wprm-actions .fbl-btn-jump,
		.fbl-wprm-actions .fbl-btn,
		.fbl-wprm-actions .fbl-btn--secondary,
		.fbl-wprm-actions .fbl-cook-mode {
			flex: 1 1 calc(50% - var(--fbl-space-4));
			min-width: 0;
			padding-left: var(--fbl-space-16) !important;
			padding-right: var(--fbl-space-16) !important;
			white-space: nowrap;
		}
	}

/* ==========================================================================
   13. TZ 2026-11-13 stream W2 - Single Recipe Hero + WPRM (worker W2).
   W2.1 hero photo render guarantee - W2.2 actions-bar 4x1 / 2x2 grid -
   W2.3a step dividers - W2.3b Protein accent - W2.3c sidebar compactness.
   Token note: this project's :root exposes --fbl-font-body, --fbl-radius-8,
   --fbl-fs-button (ui-upgrade-blueprint 3.2/4); the TZ snippet aliases
   --fbl-font-sans / --fbl-radius-md map to these. Palette HEX values below
   appear only as var() fallbacks (design law 0.1.2). No new colors, no blur,
   no gradients, no pill radii outside chips; touch targets >= 44px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   W2.1. Guaranteed hero photo render - kills the blank ~450px hole
   (qa-recipe-1440/768). Beats style.css .fbl-hero-image img aspect-ratio
   (recon: style.css 1093-1100) via load order + !important; img aspect-ratio
   is reset to auto so only the wrap owns the frame ratio.
   -------------------------------------------------------------------------- */
.single .et_pb_image_0_tb_body.fbl-hero-image,
.single .fbl-hero-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 var(--fbl-space-24, 24px) 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.single .fbl-hero-image .et_pb_image_wrap {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  border-radius: var(--fbl-radius-8, 8px) !important;
  overflow: hidden !important;
  background-color: var(--bg-alt, #F3EEE6) !important;
  aspect-ratio: 16 / 10 !important;
  /* TZ W2.1: cap the frame with the img so bg-alt never shows below the
     photo when the wrap would compute taller than 540px */
  max-height: 540px !important;
}

.single .fbl-hero-image .et_pb_image_wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 540px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: var(--fbl-radius-8, 8px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  aspect-ratio: auto !important;
}

@media (max-width: 767px) {
  .single .fbl-hero-image .et_pb_image_wrap {
    aspect-ratio: 4 / 3 !important;
  }
}

/* --------------------------------------------------------------------------
   W2.2. Actions bar (.fbl-wprm-actions): one mathematical axis on all widths -
   4x1 grid desktop, 2x2 at <= 1023px. Overrides the older flex layer
   (sections 2/12 of this file) by source order + !important. Cell 4 is the
   Cook mode toggle injected by js/fbl-cook-mode.js. Divi wrapper margins
   stripped so Button #1 aligns with #2-#4. Font/radius per project tokens.
   -------------------------------------------------------------------------- */
.single .fbl-wprm-actions,
.single .et_pb_row .fbl-wprm-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: var(--fbl-space-16, 16px) 0 var(--fbl-space-24, 24px) 0 !important;
  padding: 0 !important;
}

.single .fbl-wprm-actions > *,
.single .fbl-wprm-actions .et_pb_button_module_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
}

.single .fbl-wprm-actions a,
.single .fbl-wprm-actions button,
.single .fbl-wprm-actions .et_pb_button,
.single .fbl-wprm-actions .fbl-cook-mode {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  font-family: var(--fbl-font-body) !important;
  font-size: var(--fbl-fs-button, 1rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border-radius: var(--fbl-radius-8, 8px) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 1023px) {
  .single .fbl-wprm-actions,
  .single .et_pb_row .fbl-wprm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* --------------------------------------------------------------------------
   W2.3a. Thin dividers between Method steps (WPRM meadow instructions).
   The inline style="margin-bottom: 10px" on .wprm-recipe-instruction-text is
   neutralised so the rhythm is exactly 16px text -> hairline -> 16px (each
   step li holds a single text div - verified on live DOM /kundyumy/).
   -------------------------------------------------------------------------- */
.wprm-recipe-template-meadow .wprm-recipe-instructions > li.wprm-recipe-instruction {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid var(--border, #E4DDD3) !important;
}

.wprm-recipe-template-meadow .wprm-recipe-instructions > li.wprm-recipe-instruction:last-child {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.wprm-recipe-template-meadow .wprm-recipe-instructions .wprm-recipe-instruction-text {
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   W2.3b. Protein accent in Nutrition Facts. Actual WPRM meadow markup (live
   DOM): span.wprm-nutrition-label-text-nutrition-container
   .wprm-nutrition-label-text-nutrition-container-protein > label/value/unit
   spans with inline colors - !important is required to beat them. The unit is
   part of the value display ("19 g") and shares its emphasis.
   -------------------------------------------------------------------------- */
.wprm-nutrition-label-text-nutrition-container-protein {
  background-color: var(--cat-avocado-soft, #EEF3E2) !important;
  border: 1px solid var(--cat-avocado, #5A7A2C) !important;
  border-radius: var(--fbl-radius-8, 8px) !important;
  padding: var(--fbl-space-8, 8px) var(--fbl-space-12, 12px) !important;
}

.wprm-nutrition-label-text-nutrition-container-protein .wprm-nutrition-label-text-nutrition-value,
.wprm-nutrition-label-text-nutrition-container-protein .wprm-nutrition-label-text-nutrition-unit {
  color: var(--text, #22302A) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   W2.3c. Sidebar compactness (.fbl-single-sidebar): drop the 6-line excerpts,
   force 16:10 card photos, and hide the dead newsletter modules - CSS safety
   net only, a DUPLICATE of the W6 PHP removal (delete both together).
   -------------------------------------------------------------------------- */
.fbl-single-sidebar .fbl-card-recipe .post-content,
.fbl-single-sidebar .fbl-card-recipe .post-excerpt {
  display: none !important;
}

.fbl-single-sidebar .fbl-card-recipe .et_pb_image_container img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
}

.fbl-single-sidebar .fbl-newsletter,
.fbl-single-sidebar .fbl-newsletter-form {
  display: none !important; /* duplicate of W6 PHP removal - keep until W6 ships */
}

/* TZ 2026-11-13 QA: WPRM meta pills rendered label:value without a visual
   gap ("Servings:4 servings"). A 2px margin is typographic glue, not a font
   size change. */
.wprm-recipe-tag-label,
.wprm-recipe-details-label {
	margin-right: 2px;
}
