/* Just Cut, Products (ClickUp 869ew7vj9). Hand-built 2026-10-08 on the composition of Figma frame 22733:36933
 * (CAE-Programs&Services-JustCut-Products-Carrots-V5); reworked 2026-10-11 to Kate's "Just Cut – Products Page:
 * Dev Notes" (values below are hers, design px; the site presents at zoom 0.8). Loaded by this page's own template
 * (page-cae-programs-services-justcut-products.html), so it reaches no other page.
 * Reused, not restyled: full bleed = the site's canvas-span role class (full-bleed-cae.css SURFACE 6); buttons =
 * the For Buyers yellow button component; search + dropdown = the News filter row (records-grid-cae.css, the .cae-dd
 * list from records-filter.js); the CTA = About Just Cut's cta-1button block. The Buy From Us form is not on this
 * page (§1): it lives on For Buyers #buy-from-us. */

/* ── §2 Magenta block: 64 white under the Program Menu bar (the old `margin: 0 !important` here was the rule that
 *    forced it to 0, fixed at source); the ground runs edge to edge (canvas-span), the content stays in the content
 *    container: her QA line is "content inside lines up with logo/breadcrumb (left) and main menu (right)" — measured
 *    on :18182 that is 1200 design wide at >= 1152 (logo 240 / Support CAE 1200 real at 1440) and 120 in from the
 *    canvas below it (96 / 928 real at 1024). Her preview's 1168 sat 13 real px inside both edges. */
.wp-site-blocks .wp-block-post-content > .jcp-products.alignfull,
.jcp-products {
  box-sizing: border-box;
  /* Kate 2026-10-18 12:57Z (869ew7vj9): "theres' to much padding between JUST CUT'S CONVENIENT PRODUCTS title and tab menu
   * above". The 64 white above was the magenta block's offset (10-11 notes); with the magenta gone (10-17) it stacked on the
   * band's own 56 and read 120 design (96 presented) under the tab strip. The tab strip → first band gap is 56 on the tabbed
   * pages (VFF Program Goals / Testimonials, the C01 canon 56 = 44.8 presented), so the band's 56 padding is the whole gap. */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 56px 16px 88px;
  /* Kate 2026-10-17 22:52Z (869ew7vj9) "remove the BG magenta behind JUST CUT'S CONVENIENT PRODUCTS": the band sits on the
   * page's own white; heading and intro take the colours of the site's other Just Cut headings and body copy on white. */
  background-color: transparent;
}
.jcp-products__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.jcp-products__heading.jcp-products__heading {
  margin: 0 0 16px;
  font-family: var(--wp--preset--font-family--acumin-pro-condensed);
  font-size: var(--wp--preset--font-size--h-2-acumin-black);
  line-height: var(--wp--custom--line-heights--h-2-acumin-black);
  font-weight: 900;
  color: var(--wp--preset--color--primary-evergreen, #004F39);
  text-align: center;
  text-transform: uppercase;
}
.jcp-products__intro {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-2-regular);
  line-height: 1.6;
  color: var(--wp--preset--color--primary-granite-gray, #606055);
  text-align: center;
}
/* Kate 2026-10-18 12:56Z (869ew7vj9): "This font: Our produce is prepared for ease of use … Should match what you have here:
 * /programs-places/vermont-farm-fund/our-borrowers/". That intro (.cae-borrowers__intro, the VFF body paragraph shared with
 * Program Goals / VFF Team / History) is Acumin Pro 400, 22.8487 / 32, #606055, centred, at every width; this intro was the
 * fluid p-2 (20 / 32 at 1440, 17.8 / 28.4 at 1024, 15 / 24 at 390). Same type, same at every width; words unchanged. */
.jcp-products__intro.jcp-products__intro {
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif;
  font-size: 22.8487px;
  line-height: 32px;
  font-weight: 400;
  color: #606055;
}

/* ── §3 Intro buttons: centred group, 16 between, 24 above, 48 to the tan holder. Buy From Us is the For Buyers
 *    yellow button as compiled; About Just Cut is the same button on white with evergreen text and chevron. */
.jcp-intro-cta.jcp-intro-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 48px;
}
.jcp-about-btn > .wp-block-button__link.wp-block-button__link {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary-evergreen);
  border: 0;
  /* white on the white band: a 2px evergreen ring inside the box draws its edge without moving anything */
  box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary-evergreen, #004F39);
}

/* ── §4 Products holder: light tan, 32 top (sides and bottom unchanged). */
.jcp-products__panel {
  box-sizing: border-box;
  padding: 32px 56px 56px;
  background-color: var(--wp--preset--color--light-cream);
}

/* ── §5 Search by Keyword + By Product: centred above the grid, 24 between, 32 below; both white, 54 tall. */
.jcp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
}
.jcp-filters .wp-block-button__link.cae-recgrid-search,
.jcp-filters .wp-block-button__link.cae-recgrid-filter {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  width: 384px;
  max-width: 100%;
  height: 54px;
  margin: 0;
  border-radius: 5px;
  background-color: var(--wp--preset--color--white);
  /* the News row's served type (measured on /news/ at 1440): Acumin Pro token 20, granite gray text and placeholder */
  color: var(--wp--preset--color--primary-granite-gray);
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-2-regular); /* News' token, not its 1440 value (C28) */
}
.jcp-filters .cae-recgrid-search__field::placeholder,
.jcp-filters .cae-recgrid-filter__select {
  color: inherit;
  font: inherit;
  opacity: 1;
}
.jcp-filters .wp-block-button__link.cae-recgrid-filter {
  padding: 0 16px;
}
.jcp-filters .cae-recgrid-filter__select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
}
.jcp-filters .wp-block-button__link.cae-recgrid-search {
  gap: 8px;
  padding: 0 7px 0 16px;
}
.jcp-filters .cae-recgrid-search__field {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
}
.jcp-filters .cae-recgrid-search__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.jcp-filters .cae-recgrid-search__go .button-icon {
  width: 24px;
  height: 24px;
  margin: 0;
}
.jcp-empty {
  margin: 0;
  padding: 32px 0;
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-2-regular);
  color: var(--wp--preset--color--black-24-133);
  text-align: center;
}
.jcp-empty[hidden],
.jcp-card[hidden] {
  display: none !important;
}

/* ── §6 Postcards, the News & Events postcard conventions. Rows size to their own tallest card (auto, not 1fr);
 *    cards in a row stretch to it. No hover: the cards are not links. */
.jcp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jcp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 0;
  box-shadow: 0 0 0 1px #E6E3D9; /* Kate's outline value (Dev Notes §6); no palette token carries it */
  background-color: var(--wp--preset--color--white);
}
.jcp-card,
.jcp-card * {
  transition: none;
}
.jcp-card:hover,
.jcp-card:focus-within {
  transform: none;
  box-shadow: 0 0 0 1px #E6E3D9;
}
.jcp-card__media {
  display: block;
  margin: 0;
  padding: 16px 16px 0;
}
.jcp-card__media img,
.jcp-card__media--placeholder img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 200px;
  aspect-ratio: auto;
  object-fit: cover;
  background-color: var(--wp--preset--color--light-gray);
  opacity: 1;
}
.jcp-card__media--placeholder img {
  object-fit: contain;
  padding: 48px 64px;
}
.jcp-card:hover .jcp-card__media img {
  transform: none;
}
.jcp-card__caption {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-4-medium);
  line-height: 20px;
  color: var(--wp--preset--color--primary-granite-gray);
}
.jcp-card__credit {
  font-style: italic;
}
.jcp-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}
/* Kate 2026-10-18 12:57Z (869ew7vj9): "add horizontal underline under caption and above product title with nice padding
 * rules". The rule is the site's divider (the testimonial / Community Voices rule: 1.25 solid #C7C6C6, C21), drawn as the
 * body's first flex item so the body's own 16 sits above it and its 16 gap below it (caption 16, rule, 16 title): the same
 * on every card, with or without a caption, at every width. */
.jcp-card__body::before {
  content: "";
  display: block;
  flex: none;
  height: 0;
  border-top: 1.25px solid #C7C6C6;
}
.jcp-card__title.jcp-card__title {
  margin: 0;
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: 23.4776px;
  line-height: 32px;
  font-weight: 400;
  color: var(--wp--preset--color--primary-evergreen);
}
.jcp-card__meta {
  display: flex;
  gap: 24px;
  margin: 0;
}
.jcp-card__meta dt {
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-4-medium);
  line-height: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--black-24-133);
}
.jcp-card__meta dd {
  margin: 0;
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-4-regular);
  line-height: 22px;
  color: var(--wp--preset--color--black-24-133);
  overflow-wrap: anywhere;
}
/* ── §6 / §8 Buy From Us on every card: the yellow button, pinned to the card's foot so a row's buttons line up. */
.jcp-card__buy.jcp-card__buy {
  margin: auto 0 0;
}

/* ── §7 BUY FROM US CTA: About Just Cut's block, full bleed (canvas-span). Two equal columns (evergreen text left,
 *    photo right, cover, min 351); text 48 top/bottom, 64 right, left on the content edge; no max-width on the text
 *    column so the body runs on two lines at desktop; caption on a strip along the photo's foot, right-aligned;
 *    64 above, no bottom margin (the footer's own spacing gives the gap). Stacks below 782. */
.wp-site-blocks .wp-block-post-content > .jcp-cta.alignfull,
.jcp-cta.jcp-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 351px;
  margin-top: 64px !important;
  margin-bottom: 0 !important;
  padding: 0;
  background-color: var(--wp--preset--color--primary-evergreen);
}
.jcp-cta > [class*="__column-figma-generic-column-"] {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 48px 64px 48px 120px;
  box-sizing: border-box;
}
.jcp-cta [class*="__column-figma-generic-column-"] {
  max-width: none;
}
.jcp-cta > figure[class*="__media-figma-image-"] {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: auto;
  height: auto;
  min-height: 351px;
  margin: 0;
  overflow: hidden;
}
.jcp-cta > figure[class*="__media-figma-image-"] > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.jcp-cta__caption.jcp-cta__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px 9px;
  background: rgba(0, 79, 57, 0.88);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--acumin-pro);
  font-size: var(--wp--preset--font-size--p-4-medium);
  line-height: 20px;
  text-align: right;
}

/* The photo runs to the right browser edge: canvas-span keeps the content box on the 1440 canvas and paints the
 * surplus as a transparent border, so at >= 1152 the figure takes that border back on the right (About Just Cut's
 * own value for its CTA photo); the evergreen ground already reaches the left edge. Columns are then the two
 * browser halves. Below 1152 the surplus is 0. */
@supports (zoom: 0.8) {
  @media (min-width: 1152px) {
    .jcp-cta.cae-band--canvas-span > figure[class*="__media-figma-image-"] {
      margin-right: calc(720px - 50vw / 0.8);
    }
  }
}

@media (max-width: 1151.98px) {
  .wp-site-blocks .wp-block-post-content > .jcp-products.alignfull,
  .jcp-products {
    padding-inline: 120px;
  }
  .jcp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jcp-products__panel {
    padding: 32px 40px 40px;
  }
}
@media (max-width: 781.98px) {
  .jcp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .jcp-products__panel {
    padding: 24px 20px 20px;
  }
  .wp-site-blocks .wp-block-post-content > .jcp-products.alignfull,
  .jcp-products {
    padding-inline: 16px;
  }
  .wp-site-blocks .wp-block-post-content > .jcp-cta.alignfull,
  .jcp-cta.jcp-cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .jcp-cta > [class*="__column-figma-generic-column-"] {
    padding: 40px 20px;
  }
  .jcp-cta > figure[class*="__media-figma-image-"] {
    grid-column: 1;
    grid-row: 2;
    min-height: 240px;
  }
}

/* ── No results (noresults-1130): the site's standard box (window.caeAppliedRow.emptyState; paint from records-grid-cae.css
 *    and Kate's mobile sheet) stands in the grid's place at the grid's width. On a phone Kate's sheet insets the box 10px each
 *    side; the holder steps out by the same 10px so the box lines up with the full-width search field above it. */
.jcp-noresults > .cae-recgrid__empty {
  margin-top: 0;
}
@media (max-width: 781.98px) {
  .jcp-products__panel > .jcp-noresults {
    margin: 0 -10px;
  }
}
