/* Unified content: one stylesheet for the editor (content_editor.php) and the
   rendered page (includes/content-doc.php -> wl_doc_render). Anything that
   changes how content looks belongs here, so editing stays WYSIWYG.
   Keep the palette/font/size keys in step with includes/content-doc.php. */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap");
@font-face { font-family: 'Myriad Black'; src: url('fonts/myriad-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Myriad Regular'; src: url('fonts/myriad-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Elephant Regular'; src: url('fonts/elephant-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat Brush'; src: url('fonts/caveat-brush.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bernard MT Condensed'; src: url('fonts/bernard-mt-condensed.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Segoe Print Bold'; src: url('fonts/segoe-print-bold.woff2') format('woff2'); font-display: swap; }

.wl-doc {
  --wlc-green: #49ae50; --wlc-green-dark: #006837; --wlc-ink: #22281f; --wlc-muted: #5c655a;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--wlc-ink);
  max-width: 820px; margin: 0 auto; overflow-wrap: break-word;
}
.wl-doc::after { content: ''; display: table; clear: both; }

/* The site stylesheet centres and capitalises every heading (.wl-scope h1-h6
   in redesign.css). Content headings show exactly as typed and aligned in the
   editor, so these rules are written to outrank that. */
.wl-doc.wl-doc :is(h1, h2, h3, h4, h5, h6) { text-transform: none; text-align: inherit; letter-spacing: normal; }

/* Sections (rails) */
.wl-doc.wl-doc .wl-sec--title {
  font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; color: var(--wlc-green);
  margin: 0 0 .6em;
}
.wl-doc .wl-sec--body > :first-child { margin-top: 0; }

/* Text */
.wl-doc p { margin: 0 0 1em; }
.wl-doc.wl-doc h2, .wl-doc.wl-doc h3, .wl-doc.wl-doc h4 {
  font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900;
  color: var(--wlc-green-dark); line-height: 1.2; margin: 1.4em 0 .5em;
}
.wl-doc.wl-doc h2 { font-size: 1.75em; }
.wl-doc.wl-doc h3 { font-size: 1.35em; }
.wl-doc.wl-doc h4 { font-size: 1.1em; }
.wl-doc ul, .wl-doc ol { margin: 0 0 1em; padding-left: 1.4em; }
.wl-doc li > p { margin: 0 0 .3em; }
.wl-doc blockquote {
  margin: 1.4em 0; padding: .9em 1.2em; border-left: 5px solid var(--wlc-green);
  background: #f2f9f3; border-radius: 0 12px 12px 0; font-style: italic;
}
.wl-doc blockquote > :last-child { margin-bottom: 0; }
.wl-doc hr { border: 0; height: 3px; width: 72px; background: var(--wlc-green); border-radius: 2px; margin: 2em auto; }
.wl-doc a { color: var(--wlc-green-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Brand colours (wlStyle mark) */
/* Headlines keep hyphenated words whole ("Weigh-Less"), see wl_doc_render_inline. */
.wl-doc .wl-nobr { white-space: nowrap; }
.wl-doc .wl-c-green { color: #49ae50; }
.wl-doc .wl-c-green-dark { color: #006837; }
.wl-doc .wl-c-pink { color: #ef2b7c; }
.wl-doc .wl-c-teal { color: #1d76bb; }
.wl-doc .wl-c-navy { color: #1b1464; }
.wl-doc .wl-c-red { color: #c1272d; }
.wl-doc .wl-c-ink { color: #22281f; }
.wl-doc .wl-c-muted { color: #5c655a; }
.wl-doc .wl-c-mint { color: #e8f5e9; }
.wl-doc .wl-c-cream { color: #f7f3ea; }
.wl-doc .wl-c-white { color: #ffffff; }

/* Brand fonts */
.wl-doc .wl-f-body { font-family: 'Poppins', 'Segoe UI', sans-serif; }
.wl-doc .wl-f-display { font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900; }
.wl-doc .wl-f-brand { font-family: 'Myriad Regular', 'Poppins', Arial, sans-serif; }
.wl-doc .wl-f-editorial { font-family: 'Elephant Regular', Georgia, serif; }
.wl-doc .wl-f-quote { font-family: 'Caveat Brush', cursive; }
.wl-doc .wl-f-bernard { font-family: 'Bernard MT Condensed', Impact, 'Arial Narrow', sans-serif; }
.wl-doc .wl-f-hand { font-family: 'Segoe Print Bold', 'Segoe Print', cursive; }

/* Sizes, relative to the surrounding text so headings scale too */
.wl-doc .wl-s-sm { font-size: .82em; }
.wl-doc .wl-s-md { font-size: 1em; }
.wl-doc .wl-s-lg { font-size: 1.3em; }
.wl-doc .wl-s-xl { font-size: 1.7em; line-height: 1.25; }
.wl-doc .wl-s-xxl { font-size: 2.3em; line-height: 1.15; }

/* Caveat Brush draws much smaller than the other fonts at the same size
   (x-height .42 vs Poppins .55, and narrow), so Jade had to pick Extra large
   to match normal text (2026-11-10). It is scaled by 1.7 at every size, so
   "Normal" now looks like the old Extra large. Existing quote+xl text was
   migrated to quote+md (deploy-11), so nothing published changed size. */
.wl-doc .wl-f-quote { font-size: 1.7em; line-height: 1.25; }
.wl-doc .wl-f-quote.wl-s-sm { font-size: calc(.82em * 1.7); }
.wl-doc .wl-f-quote.wl-s-md { font-size: 1.7em; }
.wl-doc .wl-f-quote.wl-s-lg { font-size: calc(1.3em * 1.7); }
.wl-doc .wl-f-quote.wl-s-xl { font-size: calc(1.7em * 1.7); }
.wl-doc .wl-f-quote.wl-s-xxl { font-size: calc(2.3em * 1.7); line-height: 1.15; }

/* Images */
.wl-doc .wl-img { margin: 1.4em auto; display: block; }
.wl-doc .wl-img--sm { width: 33%; }
.wl-doc .wl-img--md { width: 50%; }
.wl-doc .wl-img--lg { width: 75%; }
.wl-doc .wl-img--full { width: 100%; }
.wl-doc .wl-img--left { margin-left: 0; margin-right: auto; }
.wl-doc .wl-img--right { margin-left: auto; margin-right: 0; }
.wl-doc .wl-img--wrap.wl-img--left { float: left; margin: .3em 1.6em 1em 0; }
.wl-doc .wl-img--wrap.wl-img--right { float: right; margin: .3em 0 1em 1.6em; }
.wl-doc .wl-img__frame { position: relative; overflow: hidden; box-sizing: border-box; line-height: 0; }
.wl-doc .wl-img__frame img { display: block; width: 100%; height: auto; }
.wl-doc .wl-img__frame.is-cropped img { height: 100%; object-fit: cover; }
.wl-doc .wl-img figcaption { font-size: .85em; color: var(--wlc-muted); text-align: center; margin-top: .5em; line-height: 1.4; }

@container wl-host (max-width: 600px) {
  .wl-doc { font-size: 16px; }
  .wl-doc .wl-img--sm, .wl-doc .wl-img--md { width: 70%; }
  .wl-doc .wl-img--lg { width: 100%; }
  .wl-doc .wl-img--wrap.wl-img--left, .wl-doc .wl-img--wrap.wl-img--right { float: none; margin: 1.2em auto; }
}

/* ---------------------------------------------------------- block library */

/* Accent colour used by boxes. Doubled class: .wl-box sets the default
   accent with the same specificity further down, which used to win, so
   picking a colour in the box palette changed nothing. */
.wl-doc.wl-doc .wl-accent-green { --wl-accent: #49ae50; }
.wl-doc.wl-doc .wl-accent-green-dark { --wl-accent: #006837; }
.wl-doc.wl-doc .wl-accent-pink { --wl-accent: #ef2b7c; }
.wl-doc.wl-doc .wl-accent-teal { --wl-accent: #1d76bb; }
.wl-doc.wl-doc .wl-accent-navy { --wl-accent: #1b1464; }
.wl-doc.wl-doc .wl-accent-red { --wl-accent: #c1272d; }
.wl-doc.wl-doc .wl-accent-ink { --wl-accent: #22281f; }
.wl-doc.wl-doc .wl-accent-muted { --wl-accent: #5c655a; }
.wl-doc.wl-doc .wl-accent-mint { --wl-accent: #cfe9d1; }
.wl-doc.wl-doc .wl-accent-cream { --wl-accent: #e9dfc8; }
.wl-doc.wl-doc .wl-accent-white { --wl-accent: #e5ebe4; }

.wl-doc ul.wl-list-check { list-style: none; padding-left: 0; }
.wl-doc ul.wl-list-check > li { position: relative; padding-left: 1.9em; margin-bottom: .45em; }
.wl-doc ul.wl-list-check > li::before { content: '✓'; position: absolute; left: .2em; top: 0; color: var(--wlc-green); font-weight: 900; }

.wl-doc .wl-box { position: relative; margin: 1.6em 0; display: flow-root; --wl-accent: #49ae50; }
.wl-doc .wl-box > :last-child { margin-bottom: 0; }
.wl-doc .wl-box > :first-child { margin-top: 0; }
.wl-doc .wl-box--tip { background: #f2f9f3; border-left: 6px solid var(--wl-accent); border-radius: 0 14px 14px 0; padding: 20px 24px; }
.wl-doc .wl-box--feature { background: rgba(73, 174, 80, .07); border-radius: 26px; padding: 40px 32px 32px; text-align: center; overflow: hidden; }
.wl-doc .wl-box--feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--wl-accent); }
.wl-doc .wl-box--card { background: #fff; border: 1px solid #e5ebe4; border-radius: 16px; box-shadow: 0 1px 3px rgba(20, 30, 20, .06), 0 1px 2px rgba(20, 30, 20, .08); padding: 22px; }
.wl-doc .wl-box--price { background: #fff; border: 4px solid var(--wl-accent); border-radius: 26px; padding: 44px 32px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.wl-doc .wl-box--plain { background: #f7f3ea; border-radius: 16px; padding: 24px; }
.wl-doc .wl-box__ribbon {
  position: absolute; top: -20px; right: 20px; background: var(--wl-accent); color: #fff; font-weight: 800; font-size: .95rem;
  padding: 10px 20px; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); line-height: 1.2; z-index: 1;
}
.wl-doc .wl-box--price .wl-box__ribbon, .wl-doc .wl-box--card .wl-box__ribbon { top: -22px; }

.wl-doc .wl-cols { display: grid; gap: 22px; margin: 1.6em 0; align-items: start; }
.wl-doc .wl-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wl-doc .wl-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wl-doc .wl-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wl-doc .wl-cols__item { min-width: 0; display: flow-root; }
.wl-doc .wl-cols__item > :first-child { margin-top: 0; }
.wl-doc .wl-cols__item > :last-child { margin-bottom: 0; }
.wl-doc .wl-cols__item .wl-img { margin: 0 auto .8em; }
.wl-doc .wl-cols__item .wl-box { margin: 0; height: 100%; box-sizing: border-box; }

.wl-doc .wl-doc-btnrow { margin: 1.4em 0; }
.wl-doc .wl-doc-btnrow--left { text-align: left; }
.wl-doc .wl-doc-btnrow--center { text-align: center; }
.wl-doc .wl-doc-btnrow--right { text-align: right; }
.wl-doc .wl-doc-btn {
  display: inline-block; padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.wl-doc .wl-doc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 30, 20, .14); }
.wl-doc .wl-doc-btn--primary { background: #49ae50; color: #fff; }
.wl-doc .wl-doc-btn--pink { background: #ef2b7c; color: #fff; }
.wl-doc .wl-doc-btn--outline { background: #fff; color: #006837; border-color: #49ae50; }

.wl-doc .wl-media { margin: 1.4em 0; }
.wl-doc .wl-media video { display: block; width: 100%; border-radius: 12px; background: #000; }
.wl-doc .wl-media audio { display: block; width: 100%; }
.wl-doc .wl-media figcaption { font-size: .85em; color: var(--wlc-muted); text-align: center; margin-top: .5em; }

/* ----------------------------------------------------------- story layout */

.wl-doc.wl-doc .wl-sec--subtitle { font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900; color: var(--wlc-green); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; margin: 0 0 .7em; }
.wl-doc .wl-sec--quote { font-family: 'Caveat Brush', cursive; font-size: 1.45em; line-height: 1.35; color: var(--wlc-ink); margin: 0 0 1.2em; padding: 0; border: 0; background: none; font-style: normal; }
.wl-doc .wl-sec--quote::before { content: '“'; color: var(--wlc-green); }
.wl-doc .wl-sec--quote::after { content: '”'; color: var(--wlc-green); }

.wl-doc .wl-ba { position: relative; max-width: 420px; margin: 0 auto 1.5em; --wl-ba-radius: 16px; --wl-ba-bg: #f4f6f3; }
.wl-doc .wl-ba__after, .wl-doc .wl-ba__before { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--wl-ba-radius); background: var(--wl-ba-bg); line-height: 0; }
.wl-doc .wl-ba img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-doc .wl-ba__before { position: absolute; bottom: 4%; width: 40%; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(20, 30, 20, .22); }
.wl-doc .wl-ba--before-right .wl-ba__before { right: 4%; }
.wl-doc .wl-ba--before-left .wl-ba__before { left: 4%; }

.wl-doc .wl-stats { background: #fff; border: 1px solid #e5ebe4; border-top: 5px solid var(--wlc-green); border-radius: 16px; padding: 20px 20px 14px; margin: 0 0 1.5em; box-shadow: 0 1px 3px rgba(20, 30, 20, .06); }
.wl-doc .wl-stats__title { font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900; color: var(--wlc-green-dark); text-align: center; font-size: 1.15em; margin: 0 0 .8em; }
.wl-doc .wl-stats__list { margin: 0; display: grid; gap: 8px; }
.wl-doc .wl-stats__item { border: 1px solid #e5ebe4; border-radius: 10px; padding: 8px 12px; }
.wl-doc .wl-stats__item dt { font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: var(--wlc-muted); }
.wl-doc .wl-stats__item dd { margin: 0; font-weight: 800; color: var(--wlc-green-dark); }

/* Layout follows the width of the area the content sits in (the editor
   canvas or the public page), not the window, so both switch at the same point.
   Hosts: .wl-doc-host (public pages) and .wl-ce-page (editor). */
.wl-doc-host, .wl-ce-page { container-type: inline-size; container-name: wl-host; }
/* Story layout. Wide: the photos and facts & figures float as a left column
   and everything after them wraps around it, so the story runs full width as
   soon as that column ends. How much space that column takes is decided by each
   story's own content, not a fixed grid. Narrow: one column. */
@container wl-host (min-width: 860px) {
  .wl-doc--story { max-width: 1120px; }
  .wl-doc--story > .wl-sec--hero,
  .wl-doc--story > .wl-sec--stats {
    float: left; clear: left; width: 36%; max-width: 400px; margin: 0 40px 18px 0; box-sizing: border-box;
  }
  .wl-doc--story > .wl-sec--hero .wl-ba { margin: 0 0 18px; max-width: none; }
  .wl-doc--story > .wl-sec--stats .wl-stats { margin: 0; }
}
@container wl-host (max-width: 859px) {
  .wl-doc--story { display: flex; flex-direction: column; }
  .wl-doc--story > .wl-sec--hero { order: 1; }
  .wl-doc--story > .wl-sec--title { order: 2; }
  .wl-doc--story > .wl-sec--subtitle { order: 3; }
  .wl-doc--story > .wl-sec--quote { order: 4; }
  .wl-doc--story > .wl-sec--stats { order: 5; }
  .wl-doc--story > .wl-sec--body { order: 6; }
}


/* Blog: cover above the title */
.wl-doc--blog .wl-sec--cover .wl-img { margin-top: 0; }

@container wl-host (max-width: 700px) {
  .wl-doc .wl-cols--3, .wl-doc .wl-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container wl-host (max-width: 500px) {
  .wl-doc .wl-cols--2, .wl-doc .wl-cols--3 { grid-template-columns: minmax(0, 1fr); }
  .wl-doc .wl-box--feature, .wl-doc .wl-box--price { padding: 32px 20px; }
}

/* Polish */
.wl-doc .wl-sec--quote::before { margin-right: .12em; }
.wl-doc .wl-sec--quote::after { margin-left: .06em; }
.wl-doc .wl-stats__item { display: block; box-sizing: border-box; width: 100%; }

/* Blog: author and date under the title */
.wl-doc .wl-doc-meta { color: var(--wlc-muted); font-size: .9em; margin: -.3em 0 1.6em; }

/* The site stylesheet draws a big absolutely-positioned quote mark on every
   blockquote, and gives .wl-stats a flex row (old story pages). Inside
   content, quotes and the facts & figures box use their own styles. */
.wl-doc.wl-doc blockquote::before { content: none; }
.wl-doc.wl-doc .wl-sec--quote::before,
.wl-doc.wl-doc .wl-sec--quote::after {
  position: static; display: inline; width: auto; left: auto; top: auto;
  font-size: inherit; line-height: inherit; color: var(--wlc-green);
}
.wl-doc.wl-doc .wl-sec--quote::before { content: '“'; }
.wl-doc.wl-doc .wl-sec--quote::after { content: '”'; }
.wl-doc.wl-doc .wl-stats { display: block; flex-wrap: nowrap; gap: 0; margin: 0 0 1.5em; }

/* Story: keep vertical space tight (Trasi). */
.wl-doc.wl-doc--story { font-size: 16.5px; line-height: 1.62; }
.wl-doc--story p { margin: 0 0 .75em; }
.wl-doc.wl-doc--story h2, .wl-doc.wl-doc--story h3, .wl-doc.wl-doc--story h4 { margin: 1em 0 .35em; }
.wl-doc.wl-doc--story .wl-sec--title { margin: 0 0 .3em; }
.wl-doc.wl-doc--story .wl-sec--subtitle { margin: 0 0 .5em; }
.wl-doc.wl-doc--story .wl-sec--quote { margin: 0 0 .9em; }
.wl-doc--story .wl-img { margin: .8em auto; }
.wl-doc--story .wl-img--wrap.wl-img--left { margin: .2em 1.4em .6em 0; }
.wl-doc--story .wl-img--wrap.wl-img--right { margin: .2em 0 .6em 1.4em; }
.wl-doc--story .wl-box { margin: 1.1em 0; }
.wl-doc--story ul, .wl-doc--story ol { margin-bottom: .75em; }

/* Empty paragraphs (blank lines) take no space on the page. In the editor they
   hold the cursor, so they stay visible there. */
.wl-doc p:empty { display: none; }

/* Facts & figures: two compact columns instead of one tall list. */
.wl-doc.wl-doc .wl-stats { padding: 14px 14px 12px; }
.wl-doc .wl-stats__title { margin: 0 0 .5em; font-size: 1.05em; }
.wl-doc .wl-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wl-doc .wl-stats__item { padding: 6px 10px; }
.wl-doc .wl-stats__item dd { line-height: 1.3; }

/* The after photo always keeps its own shape: no forced portrait crop, so no
   cut-off heads/feet. Before 9 Nov 2026 only a lone photo did; adding a before
   photo turned the after into a 3:4 crop that looked zoomed in and couldn't be
   zoomed back out (Jade). The small before photo stays 3:4. */
.wl-doc .wl-ba .wl-ba__after { aspect-ratio: auto; }
.wl-doc .wl-ba .wl-ba__after img { height: auto; }

/* Shaded blocks sit beside the floating photo/stats column instead of running
   underneath it. */
.wl-doc blockquote, .wl-doc .wl-doc-btnrow, .wl-doc .wl-media { display: flow-root; }
/* framework.css gives every blockquote width:100%, which pushes it below the
   floating column instead of beside it. */
.wl-doc.wl-doc blockquote { width: auto; z-index: auto; }

/* ---------------------------------------------------------- recipe layout */
/* Wide: the ingredients float as a panel on the right; the name, serving info
   and method flow beside it and run full width once the panel ends. */
.wl-doc .wl-sec__heading {
  font-family: 'Myriad Black', 'Poppins', Arial, sans-serif; font-weight: 900; color: var(--wlc-green-dark);
  font-size: 1.45em; line-height: 1.2; margin: .2em 0 .45em; text-transform: none; text-align: start;
}
.wl-doc--recipe .wl-sec--photo .wl-img { margin: 0 0 22px; }
.wl-doc--recipe .wl-sec--ingredients {
  background: #fff; border: 1px solid #e5ebe4; border-top: 5px solid var(--wlc-green); border-radius: 16px;
  padding: 16px 20px 6px; box-shadow: 0 1px 3px rgba(20, 30, 20, .06); margin: 0 0 22px; box-sizing: border-box;
}
.wl-doc--recipe .wl-sec--ingredients .wl-sec__heading { font-size: 1.15em; }
.wl-doc--recipe .wl-sec--ingredients ul { margin-bottom: .6em; }
.wl-doc.wl-doc--recipe .wl-sec--title { margin: 0 0 .4em; }
.wl-doc--recipe p { margin: 0 0 .7em; }
.wl-doc--recipe .wl-sec--method ol { padding-left: 1.6em; }
.wl-doc--recipe .wl-sec--method li { margin-bottom: .45em; }
.wl-doc--recipe .wl-sec--method li::marker { color: var(--wlc-green); font-weight: 800; }
/* Serving info: a row of small tiles, as on the old recipe page. */
.wl-doc.wl-doc--recipe .wl-stats { border: 0; box-shadow: none; padding: 0; background: none; margin: 0 0 1em; }
.wl-doc--recipe .wl-stats__list { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-doc--recipe .wl-stats__item { width: auto; max-width: 100%; }
.wl-doc--recipe .wl-doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.wl-doc--recipe .wl-doc-tag { font-size: .7em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wlc-green-dark); }

@container wl-host (min-width: 860px) {
  .wl-doc--recipe { max-width: 1120px; }
  .wl-doc--recipe > .wl-sec--ingredients { float: right; clear: right; width: 34%; max-width: 380px; margin: 0 0 18px 36px; }
}
@container wl-host (max-width: 859px) {
  .wl-doc--recipe { display: flex; flex-direction: column; }
  .wl-doc--recipe > .wl-sec--photo { order: 1; }
  .wl-doc--recipe > .wl-sec--title { order: 2; }
  .wl-doc--recipe > .wl-sec--stats { order: 3; }
  .wl-doc--recipe > .wl-sec--ingredients { order: 4; }
  .wl-doc--recipe > .wl-sec--method { order: 5; }
}

/* Floating columns sit above the sections that flow around them. Any
   positioned element (the editor's sections, quotes) would otherwise paint
   over the float and catch its clicks. */
.wl-doc > .wl-sec--hero, .wl-doc > .wl-sec--stats, .wl-doc > .wl-sec--ingredients { position: relative; z-index: 2; }

/* A photo floated inside the story/method never sits beside the floating side
   column (photos + stats, or recipe ingredients): two floats side by side leave
   a one-word-wide strip of text between them. */
.wl-doc--story .wl-sec--body .wl-img--wrap,
.wl-doc--recipe .wl-sec--method .wl-img--wrap { clear: both; }
/* Boxes and quotes move below a float rather than shrink to a sliver. */
.wl-doc .wl-box, .wl-doc blockquote, .wl-doc .wl-cols { min-width: min(100%, 300px); }

/* The site stylesheet sets every heading to the site font with !important
   (h1-h6 { font-family: var(--font-base) !important }). Use the same here so
   the editor, which doesn't load the site stylesheet, shows headings exactly as
   the public page does. A font picked for selected words still applies. */
.wl-doc :is(h1, h2, h3, h4, h5, h6) { font-family: var(--font-base, 'Poppins', 'Segoe UI', sans-serif) !important; }

/* ------------------------------------------- block options (checklist V2) */

/* Buttons: sizes and full width. Colours and outlines come as inline styles
   (wl_doc_button_style), so any brand colour works. */
.wl-doc .wl-doc-btn--sm { padding: 9px 22px; font-size: .88rem; }
.wl-doc .wl-doc-btn--lg { padding: 18px 44px; font-size: 1.15rem; }
.wl-doc .wl-doc-btn--xl { padding: 22px 58px; font-size: 1.35rem; }
.wl-doc .wl-doc-btn--block { display: block; width: 100%; box-sizing: border-box; text-align: center; }

/* Corner ribbon sizes (price card, card) */
.wl-doc .wl-box__ribbon--sm { font-size: .78rem; padding: 7px 14px; }
.wl-doc .wl-box__ribbon--lg { font-size: 1.15rem; padding: 13px 26px; }
.wl-doc .wl-box__ribbon--xl { font-size: 1.4rem; padding: 16px 32px; }
.wl-doc .wl-box--price .wl-box__ribbon--lg, .wl-doc .wl-box--card .wl-box__ribbon--lg { top: -26px; }
.wl-doc .wl-box--price .wl-box__ribbon--xl, .wl-doc .wl-box--card .wl-box__ribbon--xl { top: -30px; }
.wl-doc .wl-box__ribbon--light { color: #22281f; }

/* Video / audio: size, position and text wrap, like photos */
.wl-doc .wl-media--sm { width: 33%; }
.wl-doc .wl-media--md { width: 50%; }
.wl-doc .wl-media--lg { width: 75%; }
.wl-doc .wl-media--full { width: 100%; }
.wl-doc .wl-media--audio.wl-media--sm { min-width: min(100%, 260px); }
.wl-doc .wl-media--center { margin-left: auto; margin-right: auto; }
.wl-doc .wl-media--left { margin-left: 0; margin-right: auto; }
.wl-doc .wl-media--right { margin-left: auto; margin-right: 0; }
.wl-doc .wl-media--wrap.wl-media--left { float: left; margin: .3em 1.6em 1em 0; }
.wl-doc .wl-media--wrap.wl-media--right { float: right; margin: .3em 0 1em 1.6em; }
.wl-doc--story .wl-sec--body .wl-media--wrap, .wl-doc--recipe .wl-sec--method .wl-media--wrap { clear: both; }
.wl-doc .wl-media__transcript { margin-top: .6em; font-size: .9em; text-align: left; }
.wl-doc .wl-media__transcript > div { white-space: pre-line; margin-top: .4em; }
.wl-doc .wl-media__transcript summary { cursor: pointer; font-weight: 700; color: var(--wlc-green-dark, #006837); }
.wl-doc .wl-media video::cue { font-size: 1em; }
@container wl-host (max-width: 600px) {
  .wl-doc .wl-media--sm, .wl-doc .wl-media--md { width: 70%; }
  .wl-doc .wl-media--lg { width: 100%; }
  .wl-doc .wl-media--wrap.wl-media--left, .wl-doc .wl-media--wrap.wl-media--right { float: none; margin: 1.2em auto; }
}

/* Columns: first or last column twice as wide */
.wl-doc .wl-cols--2.wl-cols--wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wl-doc .wl-cols--2.wl-cols--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.wl-doc .wl-cols--3.wl-cols--wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.wl-doc .wl-cols--3.wl-cols--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
@container wl-host (max-width: 700px) {
  .wl-doc .wl-cols--3.wl-cols--wide-left, .wl-doc .wl-cols--3.wl-cols--wide-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container wl-host (max-width: 500px) {
  .wl-doc .wl-cols--2.wl-cols--wide-left, .wl-doc .wl-cols--2.wl-cols--wide-right,
  .wl-doc .wl-cols--3.wl-cols--wide-left, .wl-doc .wl-cols--3.wl-cols--wide-right { grid-template-columns: minmax(0, 1fr); }
}
