/* fix-vffpostcards-cae.css — Vermont Farm Fund Photo Postcards (Kate 869fhw1pv BATCH 3, 2026-10-15). The card, caption,
 * credit pill, magnifier, hover lift and modal are the shared component (photo-postcard-cae.css); this sheet only keeps
 * each photo at the shape the page drew it (--vffpc-ar, set by fix-vffpostcards-cae.js from the image's own box) instead
 * of the shared fixed 223px photo height, so tall column photos stay tall and wide ones stay wide. Classes only, no node keys. */
body figure.cae-postcard.cae-jcf-pc.cae-vffpc > .cae-jcf-pc__photo { height: auto; aspect-ratio: var(--vffpc-ar, 1.5); }
/* a postcard drawn inside a scaled canvas layer (the Emergency Loans lead photo): the card takes normal flow at the
 * section's width, and the section grows to hold it instead of clipping it to the drawn photo height */
body figure.cae-postcard.cae-jcf-pc.cae-vffpc.cae-website-redesign-scale-layer { position: relative; inset: auto; width: min(100%, var(--fg-section-width, 100%)); height: auto; transform: none; }
body section:has(> figure.cae-postcard.cae-vffpc.cae-website-redesign-scale-layer) { height: auto; overflow: visible; }
/* the row a postcard sits in sizes to the card (some drawn rows carry the photo's own height, so the taller card ran
 * out of its row into the next band: Emergency Loans examples card 23px into How to Apply) */
body .wp-block-group:has(> figure.cae-postcard.cae-vffpc) { height: auto; min-height: 0; max-height: none; }
/* a page sheet that pinned the photo's figure to a fixed height (!important: Loan Application photos in
 * fix-vffloans-cae.css) would squeeze the card's caption to nothing; the card sizes to its content, and the script fits
 * the photo inside the drawn box instead */
body figure.cae-postcard.cae-jcf-pc.cae-vffpc { height: auto !important; max-height: none !important; }
/* PHONE: A POSTCARD PHOTO IS NO TALLER THAN 4:5 (Kate ClickUp 1amzwvgdu2y, photos a real phone height; visual grade
 * 2026-11-30). The photo box keeps the drawn shape (--vffpc-ar), so a tall column photo kept its column on a phone: the
 * Loan Application ice-cream photo (drawn 0.42) stood 309x737 at 375, taller than the screen. Below 600 the box is never
 * narrower than 4:5 (309x387 at 375; the photo covers it); every other VFF postcard is already wider than 4:5 and does
 * not move (census 2026-11-30: History, Program Goals, Loan Application rate cards). 600 and up unchanged. */
@media (max-width: 599.98px) {
  body figure.cae-postcard.cae-jcf-pc.cae-vffpc > .cae-jcf-pc__photo { aspect-ratio: max(var(--vffpc-ar, 1.5), 0.8); }
}
/* FEATURE POSTCARD BLOCKS (Kate 869ew7n81 90120277507959, 2026-10-16: the Loan Application LOAN AMOUNT AND RATE cards take
 * the Food Hub Features convention; fix-vffpostcards-cae.js marks them .cae-feature-block). The Food Hub Features block:
 * the Photo Postcard, then a 1px #e7e3cf divider 16 below it with 14 above the title, the title in Acumin Pro Condensed
 * 700 30/40 evergreen, the text left-aligned under it (the Learn More button keeps its place at the card foot). Classes only, no node keys; the id-weight no-op lifts
 * these over the page sheet's !important centred granite heading. */
body .wp-site-blocks .cae-feature-block:not(#cae-fb) { text-align: left !important; }
body .wp-site-blocks .cae-feature-block:not(#cae-fb) > figure.cae-jcf-pc { margin: 0 !important; }
/* the Feature Postcard spans its block (loanphotos-1017, ClickUp 869ew7n81 "Loan Amount and Rate images"): the shared card is
 * align-self: flex-start with its photo absolutely placed, so on a phone the card sized to its caption's width and the New
 * Producer card, which has no caption yet, drew a 26 px wide strip with a 0x0 photo (390, both engines). Same cure as the
 * timeline cards below; at 1024 and 1440 the card already fills the block and nothing moves. Classes only, no node keys. */
body .wp-site-blocks .cae-feature-block:not(#cae-fb) > figure.cae-postcard.cae-jcf-pc { width: 100%; max-width: 100%; align-self: stretch; }
body .wp-site-blocks .cae-feature-block:not(#cae-fb) .cae-feature-block__title {
  margin: 16px 0 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e7e3cf !important;
  text-align: left !important;
  font-family: var(--wp--preset--font-family--acumin-pro-condensed), "Acumin Pro Condensed", sans-serif !important;
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 40px !important;
  color: var(--wp--preset--color--primary-evergreen, #004F39) !important;
}
body .wp-site-blocks .cae-feature-block:not(#cae-fb) .cae-feature-block__title ~ p { text-align: left !important; }
/* LOAN AMOUNT AND RATE cards on cream, buttons left (Kate 869ew7n81 90120277589807, 2026-10-17 13:38Z: "Add cream bg to LOAN
 * AMOUNT AND RATE postcard bgs and left align the buttons in those blocks"). Each Feature Postcard block takes the site's
 * light cream (the Just Cut cream box, light-cream #F7F4E2) behind its white Photo Postcard, and its button sits at the
 * left edge of the text column instead of centred; the button stays at the card foot, so the three buttons still line up
 * across the row (card rule: the three cards keep one box). Classes only, no node keys. */
body .wp-site-blocks .cae-feature-block:not(#cae-fb) { background-color: var(--wp--preset--color--light-cream, #F7F4E2) !important; }
/* loanpages3-1017 (Kate Shawver, ClickUp 869ew7n81 comment 90120277596777, 2026-10-17 15:37Z, verbatim: "remove the outline
 * around LOAN AMOUNT AND RATE postcards and also the dropshadow in the photo postcards"). The cream Features block draws no
 * outline (was the card's 1 px #C7C6C6 border) and its Photo Postcard no drop shadow (was 4 -4 100 rgba(0,0,0,.1)). Scoped to
 * the Feature Postcard in its cream block: the Photo Postcard canon on Mission, Vision and Values keeps its resting shadow
 * (measured 2026-10-17), and so do the Loan Application's other Photo Postcards. The title's cream divider stays. */
body .wp-site-blocks .cae-feature-block:not(#cae-fb),
body .wp-site-blocks .cae-feature-block:not(#cae-fb):is(:hover, :focus-within) { border: 0 !important; outline: 0 !important; }
/* vffpc-1018: the REST shadow only. Kate 869ew7hvq 2026-10-18 11:28Z ("Animate hte image with caption photo postacrdcs on
 * hover in the Vermont Farm FundLoans section to be consistnet with our global standards") gives these cards the shared
 * Photo Postcard hover (photo-postcard-cae.css, C25: lift 6, shadow 4 10 40 .18); the none no longer holds on hover/focus. */
body .wp-site-blocks .cae-feature-block:not(#cae-fb) > figure.cae-jcf-pc:not(:hover):not(:focus-visible) { box-shadow: none !important; }
body .wp-site-blocks .cae-feature-block:not(#cae-fb) .wp-block-buttons {
  align-self: flex-start !important;
  justify-content: flex-start !important;
  margin-inline: 0 !important;
}
/* TIMELINE PHOTO CARDS (Kate 869ew7pjh 90120277517301, 2026-10-16: the History captions take the Photo Postcard type):
 * fix-vffpostcards-cae.js turns each timeline entry's lightbox card into a shared Photo Postcard and marks its column
 * .cae-vffpc-col. The postcard is the white holder now, so the column drawn as the old card's holder (white, 16px padding)
 * steps back: no second white frame around the card. Classes only, no node keys. */
body .wp-site-blocks .cae-vffpc-col:not(#cae-fb) { background: transparent; padding: 0; box-shadow: none; }
/* the card spans its column: the shared card's photo is absolutely placed, so a column that shrink-wraps its content
 * (the phone layout) sized each card to its caption's width (390: 32px with no caption, 328 / 384 / 390 with one) */
body .wp-site-blocks .cae-vffpc-col:not(#cae-fb) > figure.cae-postcard.cae-jcf-pc { width: 100%; max-width: 100%; align-self: stretch; }

/* PROGRAM GOALS INTRO ON EVERGREEN (Kate 869fjbx2b 90120277587813, 2026-10-17 13:12Z: "i want the BG of goals intro block
 * to be dark green"): the block that holds the page's one h1 (GOALS OF THE VERMONT FARM FUND) and its paragraph takes the
 * site's dark green (primary evergreen #004F39) instead of the drawn brick; heading and copy stay white and in-copy links
 * are white 700 (RULE 2e, kate-global-rules-cae.css; kate-global-rules-cae.js also stamps them data-cae-on-dark).
 * Found by the page's body class and the block's own h1, never by node. */
body.cae-page--cae-flow-programs-services-vermontfarmfund-about-programgoals main .wp-block-group:has(> h1.wp-block-heading) {
  background-color: var(--wp--preset--color--primary-evergreen, #004F39);
  /* the drawn box is a fixed 244 tall: on a phone the paragraph ran 112 px out of the band, white copy on the white
   * page, so its last lines could not be read (measured 390: box 244, content 356). The box grows with its copy; at
   * 1440 and 1024 the copy fits the drawn 244 and nothing moves. */
  height: auto;
  min-height: 244px;
}
body.cae-page--cae-flow-programs-services-vermontfarmfund-about-programgoals main .wp-block-group:has(> h1.wp-block-heading) > :is(h1, p) { color: #fff; }
body.cae-page--cae-flow-programs-services-vermontfarmfund-about-programgoals main .wp-block-group:has(> h1.wp-block-heading) a { color: #fff; font-weight: 700; text-decoration-color: #fff; }

/* VFF RECORD CARD RULE (client QA sheet Vermont Farm Fund rows 34, 36, 37, 39; tickets 1amzwvgauff, 1amzwvgaufd,
 * 1amzwvgaufg, 1amzwvgaufj: "Make the borrower tiles larger or condense the text area so the image is bigger in the tile,
 * with less white space. Fill the space by cropping automatically to fill the space if it's a vertical shot"; Stories:
 * "some of the photos look small, especially vertical ones"; Testimonials: "a lot of white space. Expand the image?").
 * ONE rule for every Vermont Farm Fund record tile: the photo takes at least 60% of the tile's height, a vertical shot
 * fills its box (cover, top-biased so heads stay in), and the text under it sits tight. This sheet is enqueued on the
 * Vermont Farm Fund pages and borrower records only (functions.php, $vffpc_uri), so no other program's grid moves.
 * Photos marked has-text (assets/thumb-has-text.json: posters, the carrot placeholder) keep the sitewide whole-on-grey
 * rule (kate-global-rules-cae.css section 1); cropping them would cut their words. The four :not(#id) out-weigh the
 * records-grid, Stories and Recent Loans sheets' !important aspect rules (352 / 200) on these same photos. */
/* (a) Borrower, Recent Loans and Stories postcards: a square photo box (was 352 / 200, 1.76:1). The tile is a size
 * container and the photo's figure is as tall as the tile is wide less its 16 px frame each side, so the photo box is
 * square inside the frame. An aspect-ratio on the img or the figure was under-counted when the card sized itself (390,
 * Our Borrowers: the card stayed 395 px presented tall and its chip ran 25 px out under the next card); a length is not. */
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox):has(img.cae-recgrid__photo) { container-type: inline-size; }
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) figure:has(img.cae-recgrid__photo) {
  flex: none !important;
  aspect-ratio: auto !important;
  box-sizing: content-box !important;
  width: auto !important;
  height: calc(100cqi - 32px) !important;
  min-height: 0 !important;
  max-height: none !important;
}
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) figure a.cae-recgrid__photo-link { height: 100% !important; }
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) img.cae-recgrid__photo {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) img.cae-recgrid__photo.is-portrait:not(.has-text) {
  object-fit: cover !important;
  object-position: 50% 30%;
  padding: 0 !important;
  background: transparent !important;
}
/* the text under the photo: 12 above the title (was 16), 4 title to date (was 12 + 12), chip 8 under the date */
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) figure:has(img.cae-recgrid__photo) + .wp-block-group { padding-top: 12px !important; }
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) figure:has(img.cae-recgrid__photo) + .wp-block-group > p:first-child { margin-bottom: 4px !important; }
body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-loan-card, .cae-recgrid__cardbox) .cae-recgrid__date { padding-top: 0 !important; }
/* (a2) tablets (600-1023): the two library grids (Our Borrowers, Stories) set two tiles a row instead of three, so a tile
 * is ~370 px presented wide, not ~240, and a three-line Stories title still leaves the photo over 60% of the tile. Stories
 * draws its tablet grid as three column lists side by side; here the lists step aside (display: contents) and the row
 * places the cards itself, in the same reading order the 1440 grid shows. The three-card Recent Loans bands keep three. */
@media (min-width: 600px) and (max-width: 1023.98px) {
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) .cae-borrowers__grid:has(> .cae-loan-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) [class*="__row-figma-generic-rootrow-"]:has(> :is(.cae-website-redesign-cae-programs-services-communityconnection-stories-section-generic__card-list-figma-generic-card-list-17826-16772, .cae-website-redesign-cae-programs-services-communityconnection-stories-section-generic__card-list-figma-generic-card-list-17826-16775, .cae-website-redesign-cae-programs-services-communityconnection-stories-section-generic__card-list-figma-generic-card-list-17826-16778) > .cae-recgrid__cardbox){
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    padding-inline: 12px !important; /* the ~10 px presented inset the column lists gave the cards */
    box-sizing: border-box !important;
  }
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) [class*="__row-figma-generic-rootrow-"] > [class*="__card-list-"]:has(> .cae-recgrid__cardbox) { display: contents !important; }
}
/* (b) Testimonial tiles (Community Voices slides, side by side from 1024): the photo column 44% of the tile (was 34%),
 * tighter tile padding, so the photo is the tile's main surface; stacked below 1024 the photo already spans
 * the tile and only the padding tightens. */
@media (min-width: 1024px) {
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) .cae-voice:has(> .cae-voice__quote):not(.cae-slide--no-photo) {
    grid-template-columns: 44% minmax(0, 1fr) !important;
    column-gap: 56px !important; /* the drawn gutter kept: the quote mark hangs 35 px left into it */
    padding: 32px 40px 32px 32px !important;
  }
}
/* (c) phones: the testimonial band's 48 px side gutter and the tile's 24 px padding left the photo 209 px presented wide
 * in a 390 viewport; the band drops its side gutter and the tile pads 16, so the photo spans the phone's column. */
@media (max-width: 599.98px) {
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) :is(.cae-voices, .wp-block-group):has(> .cae-voice) { padding-left: 0 !important; padding-right: 0 !important; }
  body .wp-site-blocks:not(#cae-m):not(#cae-x):not(#cae-v):not(#cae-vc) .cae-voice:has(> .cae-voice__quote):not(.cae-slide--no-photo) { padding: 16px 16px 24px !important; }
}

/* PLACEHOLDER ART CENTRED (ClickUp 1amzwvgayt7): a record with no photo shows the placeholder art (data-cae-svg
 * "*-placeholder.svg", has-text: whole on frost grey); the face-safe top bias meant for photos lifted the mark above the
 * frame's centre. Placeholder art sits at 50% 50% (id-weight no-op over the page and canon rules). */
body .wp-site-blocks img.cae-recgrid__photo.has-text[data-cae-svg$="placeholder.svg"]:not(#cae-ph-centre) { object-position: 50% 50% !important; }

/* VERTICAL PHOTOS FILL THE POSTCARD (client QA 1amzwvgb871, "a vertical photo is cropped to fill the box like its
 * neighbours"; seat ruling 2026-11-10): these portrait photos were drawn whole on the grey holder (data-cae-pc-fit="contain",
 * photo-postcard-cae.js), leaving 86 (Our Story card 04) and 80.2 (Loan Application emergency rate) design px bands. They cover the photo box; the crop sits on the photo's registry focal
 * (assets/photo-credits.json "focal" -> --cae-focal) or 50% 30%. Keyed on the photo file, so no other postcard moves. */
body figure.cae-postcard.cae-jcf-pc[data-cae-pc-fit="contain"]:not(#cae-pc-fit):not(#cae-b871) > .cae-jcf-pc__photo img[src*="cae-vff-ourstory-card04-hillsidegoatdairy"],
body figure.cae-postcard.cae-jcf-pc[data-cae-pc-fit="contain"]:not(#cae-pc-fit):not(#cae-b871) > .cae-jcf-pc__photo img[src*="vff-loanapp-rate-emergency"] { object-fit: cover !important; object-position: var(--cae-focal, 50% 30%) !important; }
/* Our Story card 04 (Hillside Goat Dairy, 1200x1600, no registry focal) is TOP-anchored: 50% 30% cut the standing adult's
 * head (vision QA 2026-11-10). Pixel map of the file: the adult's hair/face occupy rows 0-136 (y 0.000-0.085, x 0.12-0.20)
 * and the held baby's face rows 32-136 (y 0.02-0.085, x 0.26-0.32), i.e. the heads touch the photo's own top edge, so the
 * crop window must start at y 0. Window at 50% 0%: y 0-0.45 (1440/1024 box 313x188), y 0-0.394 (390 box 357.5x188). */
body figure.cae-postcard.cae-jcf-pc[data-cae-pc-fit="contain"]:not(#cae-pc-fit):not(#cae-b871):not(#cae-card04) > .cae-jcf-pc__photo img[src*="cae-vff-ourstory-card04-hillsidegoatdairy"] { object-position: 50% 0% !important; }

/* One credit per postcard photo (Betty task:dl9fgd3oxykwawzz9eyn, 2026-11-30): on Loan Application the postcard figure
   (figure.cae-vffpc, credited) wraps the credited photo box (.cae-jcf-pc__photo), and both printed "1000 Stone Farm" — two
   stacked lines at 390, two lines 41 px apart at 1440. The photo box keeps its credit; the figure's own copy is hidden only
   when the photo box inside it already carries one (the figure itself is not always marked credited: at 1440 it lacks
   the class, so the rule keys on the photo box only). */
body figure.cae-vffpc:has(> .cae-jcf-pc__photo.cae-photo--credited) > .cae-credit { display: none !important; }
