/* photo-credit-cae.css — the photo caption + credit idiom (Kate, ClickUp 869ew12a8, Dev-Notes-MONDAY §1, 2026-10-12).
 * Pairs with assets/js/photo-credit-cae.js (markup contract there). Values are her theme CSS px (presented x0.8).
 * Families: hero (credit right 20 / bottom 40, just above the torn edge), feature (right 16 / bottom 10),
 * card (postcard photo, right 10 / bottom 8). The "?" button is right-aligned with the credit, 20px above it
 * (credit pill box 20px: 16px line + 2x2 padding; the "?" offsets below keep 17+20). Enqueued sitewide (inc/cae-photo-credits.php). */
[data-cae-photo] { --cae-photo-r: 16px; --cae-photo-b: 10px; }
[data-cae-photo]:not(.wp-block-cover):not([data-cae-photo="cta"]) { position: relative; }
/* CTA block photos (869fggnh8): a figure the CTA layout already positions (absolute beside the text column) keeps its own
 * position - it is the containing block for the "?" and the pill either way; only an unpositioned one becomes relative. */
:where([data-cae-photo="cta"]) { position: relative; }
/* ...and one a layout rule turns static (the compiled tablet / phone stack) is anchored again by photo-credit-cae.js
 * anchorCtas, so the ring and the pill stay on the photo at every width (869ew6tcu). inset:auto keeps any offsets the static
 * box ignored from moving it. */
:root [data-cae-photo="cta"].cae-photo--anchor { position: relative !important; inset: auto !important; }
[data-cae-photo="hero"] { --cae-photo-r: 20px; --cae-photo-b: 40px; }
[data-cae-photo="card"] { --cae-photo-r: 10px; --cae-photo-b: 8px; }
[data-cae-photo="banner"] { --cae-photo-r: 20px; --cae-photo-b: 20px; } /* program-landing banners outside .sitehero (869fg6k8y) */
[data-cae-photo="cta"] { --cae-photo-r: 20px; --cae-photo-b: 20px; } /* CTA block photos, the banner corner (869fggnh8) */
/* Tabbed panel photos with a held caption (photo-credit-cae.js convertPanels; Kate 869fgtyx9 for 869ew27tr): the credit keeps
 * the corner every Programs & Places panel credit uses (10/10) and its text ends on the ring's right edge (ring inset 6px in
 * the 40px button, credit 8px side padding), as on the main banners and CTA blocks. */
[data-cae-photo="panel"] { --cae-photo-r: 10px; --cae-photo-b: 10px; }
:root [data-cae-photo="panel"]:has(> .cae-photo__q) > .cae-photo__credit { right: calc(var(--cae-photo-r) + 6px - 8px); }
/* In-page photos with a held caption that no family takes (photo-credit-cae.js convertInline; Kate's sitewide Ring and Pill
 * rule, Ops ruling (a) 2026-11-19): the "panel" family's look - the credit stays in the corner every in-page pill uses (10/10,
 * pass B) and its text ends on the ring's right edge. --cae-inline-dr / -db (set by the script) keep both on the photo's
 * own corner when its wrapper is bigger than the photo; --cae-inline-pw (the photo's width) bounds the pill and the caption.
 * A photo with no credit corners its "?" 16px in (Kate 869ew4b87, CAE-FFBR-Dev-Notes.docx section 2: "the same corner
 * inset as other in-page photos"). */
[data-cae-photo="inline"] { --cae-photo-r: calc(10px + var(--cae-inline-dr, 0px)); --cae-photo-b: calc(10px + var(--cae-inline-db, 0px)); }
:root [data-cae-photo="inline"]:has(> .cae-photo__q) > .cae-photo__credit { right: calc(var(--cae-photo-r) + 6px - 8px); }
:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__credit { max-width: calc(var(--cae-inline-pw, 100%) - 20px); }
:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__cap { max-width: min(380px, calc(var(--cae-inline-pw, 100%) - 20px)); }
:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__cap.is-scroll { overflow-y: auto; overscroll-behavior: contain; }
:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__cap.is-scroll::after { display: none; }
/* the ring's own spans keep their drawn size: style.css (<=900px) caps every span / button inside a Figma-named block at
   calc(100% - 32px) !important, which squashes the 28px ring inside its 32px button to its border (measured 6.4 x 22.4 px
   on /support-cae/subscribe/ at 390); that rule weighs (0,5,1), so this one is written at (0,6,1) */
:root:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__q.cae-photo__q, :root:root [data-cae-photo="inline"][data-cae-ring-inline] > .cae-photo__q.cae-photo__q span { max-width: none !important; }
:root [data-cae-photo="inline"].cae-photo--nocredit:not(.cae-photo--bleed) > .cae-photo__q { right: calc(16px + var(--cae-inline-dr, 0px)); bottom: calc(16px + var(--cae-inline-db, 0px)); }
:root [data-cae-photo="inline"].cae-photo--nocredit:not(.cae-photo--bleed) > .cae-photo__cap { right: calc(16px + var(--cae-inline-dr, 0px)); bottom: calc(16px + var(--cae-inline-db, 0px) + 40px + 12px); }
/* ...and one that runs to the viewport's right edge (cae-photo--bleed, from 600 up) puts its "?" on the back-to-top column,
 * the banner / CTA rule below (--cae-photo-qr), its credit text still ending on the ring's right edge (C04) */
@media (min-width: 600px) {
  [data-cae-photo="inline"].cae-photo--bleed { --cae-photo-qr: calc((59px + var(--cae-half-sb, 7.5px)) / var(--cae-bleed-z, 0.8) - 20px); }
  :root [data-cae-photo="inline"].cae-photo--bleed:has(> .cae-photo__q) > .cae-photo__credit { right: calc(var(--cae-photo-qr) + 6px - 8px); }
}
/* THE "?" ON THE BACK-TO-TOP COLUMN (Kate, ClickUp 869fghkhh, 2026-10-13 12:07Z: "i want it to line up with the placement of
 * the browse to top icon so that it's vertically centered in alignment with it. sitewide change."). The back-to-top disc is
 * fixed to the viewport (utility-chrome-cae.css: right 32px, 54px box, screen px - it lives outside the 0.8 canvas), so its
 * centre line is 32 + 27 = 59 screen px in from the right edge at every width from 600 up. The banner / CTA photos run to
 * the viewport's right edge, so the "?" (40px canvas, inside the 0.8 canvas) takes right = 59 / 0.8 - 20 canvas px and its
 * centre sits on the disc's centre line; the caption box keeps its pointer over the "?". The credit pill stays in its corner.
 * Kate's formula (Dev Notes "Banner Credit and Question Button" TUESDAY, 2026-10-13 12:52Z): right = (59px + half-scrollbar)
 * / site zoom - 20px. The full-bleed photo runs under half of a classic scrollbar (its right edge is clientWidth + sb/2) while
 * the disc does not, so the half-scrollbar is added; photo-credit-cae.js measures it as --cae-half-sb = (innerWidth -
 * clientWidth) / 2 (0 with overlay scrollbars; her 7.5px Windows figure is the fallback). The zoom is --cae-bleed-z (0.8, and
 * 1.15 / 1.3 under the ADA text sizes; her note offers it in place of her --cae-site-zoom). Set on the shared variable, not on
 * the button alone, so the caption box keeps its pointer over the "?". */
@media (min-width: 600px) {
  [data-cae-photo="hero"], [data-cae-photo="banner"], [data-cae-photo="cta"] { --cae-photo-qr: calc((59px + var(--cae-half-sb, 7.5px)) / var(--cae-bleed-z, 0.8) - 20px); }
}

/* THE CREDIT PILL — one look sitewide (Kate, ClickUp 869fdvtqv, 2026-10-13 01:17Z): inside the image wrapper, absolute
 * right/bottom, 12px white text in a faint dark translucent pill, never interactive. Every credit element on the site
 * resolves to this: .cae-credit (inc/cae-photo-credits.php + photo-credit-cae.js), the idiom's .cae-photo__credit, and the
 * interim homepage corner credit figcaption.cae-photo-credit. */
.cae-credit-host { position: relative; }
:where(figure:has(> .cae-credit)) { position: relative; }
:root .cae-credit,
:root [data-cae-photo] > .cae-photo__credit,
:root figure > figcaption.cae-photo-credit.cae-photo-credit {
  position: absolute; right: 10px; bottom: 10px; left: auto; top: auto; z-index: 3;
  display: block; box-sizing: border-box; width: auto; max-width: calc(100% - 20px); margin: 0;
  padding: 2px 8px; border: 0; border-radius: 11px; background: rgba(0, 0, 0, 0.45);
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif; font-weight: 400; font-style: normal;
  font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-align: right; text-transform: none; text-shadow: none;
  color: #fff; white-space: normal; pointer-events: none; opacity: 1;
}
:root [data-cae-photo] > .cae-photo__credit { right: var(--cae-photo-r); bottom: var(--cae-photo-b); max-width: calc(100% - 2 * var(--cae-photo-r)); }
/* The old credit line of a photo whose credit now rides on the photo (and "[Credit placeholder]" lines): hidden. */
.cae-credit-moved { display: none !important; }

/* Caption button: 40px white ring, 28px #004F39 inner circle, bold cream "?" ~22px; "?" rotates out / X rotates in. */
[data-cae-photo] > .cae-photo__q {
  position: absolute; right: var(--cae-photo-qr, var(--cae-photo-r)); bottom: calc(var(--cae-photo-b) + 17px + 20px); z-index: 4;
  width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, transform .2s ease;
  pointer-events: auto; /* emitted figures carry pointer-events:none */
}
[data-cae-photo].cae-photo--nocredit > .cae-photo__q { bottom: calc(var(--cae-photo-b) + 17px + 20px); }
/* An in-page photo with no credit corners its "?" (lane ffbrland-1018, Kate 869ew4b87 22:20Z, CAE-FFBR-Dev-Notes.docx
 * section 2: "when a photo has no credit, anchor the '?' in the bottom-right corner using the same corner inset as other
 * in-page photos. The preview used 16px."). cae-photo--inset = a CTA photo whose right edge stays inside the page
 * (photo-credit-cae.js anchorCtas); full-bleed banner / CTA photos keep the back-to-top column (--cae-photo-qr). The caption
 * box keeps its pointer over the "?" (same right, 40 + 12 above it). */
[data-cae-photo].cae-photo--nocredit.cae-photo--inset > .cae-photo__q { right: 16px; bottom: 16px; }
[data-cae-photo].cae-photo--nocredit.cae-photo--inset > .cae-photo__cap { right: 16px; bottom: calc(16px + 40px + 12px); }
/* The "?" on a photo card with no credit pill (Kate 1amzwvgd1qv, ClickUp 2026-11-23 00:31Z, every photo postcard: ring
 * "change right: 10px; bottom: 45px to right: 18px; bottom: 23px", about 14 screen px from the photo's right edge and 18 from
 * its bottom). Written on the card family's own offsets (+8 / +15 over --cae-photo-r 10 / --cae-photo-b 8), so the post photo
 * fit that grows them for a narrower painted photo (photo-postcard-cae.js postFit) still applies. The caption box keeps its
 * pointer over the "?" (same right, 40 + 12 above it). A card that carries a credit pill keeps the ring above the pill. */
:root [data-cae-photo="card"].cae-photo--nocredit > .cae-photo__q { right: calc(var(--cae-photo-qr, var(--cae-photo-r)) + 8px); bottom: calc(var(--cae-photo-b) + 15px); }
:root [data-cae-photo="card"].cae-photo--nocredit > .cae-photo__cap { right: calc(var(--cae-photo-qr, var(--cae-photo-r)) + 8px); bottom: calc(var(--cae-photo-b) + 15px + 40px + 12px); }
/* THE "?" JUST ABOVE THE CREDIT on every photo postcard that carries a credit label (Kate, ClickUp 1amzwvgd1qv, 2026-11-29
 * 19:10Z: "On every photo that has a credit label, the "?" ring sits just above the credit, never on top of it: about 6px
 * between the bottom of the ring and the top of the credit, with the ring's right edge lined up with the credit's right edge
 * ... This is the global rule for all postcard photos sitewide (posts, program pages, intro cards)"; the treatment she
 * approved on the Grow Your Own intro cards the same day). Keyed on cae-photo--credited, which photo-credit-cae.js
 * (creditRoom) sets on a wrapper while it shows a credit label. The "card" family is the postcard photo holder
 * (photo-postcard-cae.js, ringCardCaptions, the intro cards). Her 6px is screen px as on Grow Your Own (site at zoom 0.8): 7.5.
 *  - right: the credit is text only (kate-global-rules-cae.css), right-aligned with 8px side padding, its box at
 *    --cae-photo-r, so its text ends at --cae-photo-r + 8: the ring's right edge goes there (on the card's own 10 / 8 corner
 *    that is the no-credit ring's 18; a post photo's postFit / a direct card's ringFit move credit and ring together).
 *  - bottom: the credit's first line top sits --cae-cred-top over the credit box's bottom edge (--cae-photo-b): the box
 *    height less its 2px top padding, written by creditRoom (18 for one 12/16 line, 22.3125 for one mobile-cae.css
 *    16.25 / 1.25 line under 768, more when a long credit wraps). The ring's bottom is 7.5 over that line (--cae-q-b).
 *  - the caption box keeps its pointer over the ring (same right, 40 + 12 above it), as on the no-credit card.
 * Photos without a credit keep the rule above (right 18 / bottom 23). The other families (hero, banner, CTA, panel, inline,
 * feature) keep their own placement. A page sheet that sets its own card inset reads --cae-q-r / --cae-q-b. */
:root [data-cae-photo="card"].cae-photo--credited { --cae-q-r: calc(var(--cae-photo-r) + 8px); --cae-q-b: calc(var(--cae-photo-b) + var(--cae-cred-top, 18px) + 7.5px); }
:root [data-cae-photo="card"].cae-photo--credited > .cae-photo__q { right: var(--cae-q-r); bottom: var(--cae-q-b); }
:root [data-cae-photo="card"].cae-photo--credited > .cae-photo__cap { right: var(--cae-q-r); bottom: calc(var(--cae-q-b) + 40px + 12px); }
[data-cae-photo] > .cae-photo__q:hover, [data-cae-photo] > .cae-photo__q:focus-visible { background: #fff; transform: scale(1.06); }
[data-cae-photo] > .cae-photo__q:focus-visible { outline: 2px solid #004F39; outline-offset: 2px; }
.cae-photo__q-ring { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #004F39; display: block; }
.cae-photo__q-q, .cae-photo__q-x {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif; font-weight: 700; font-size: 22px; line-height: 1;
  color: #F7F4E2; transition: transform .3s ease, opacity .3s ease;
}
.cae-photo__q-x { opacity: 0; transform: rotate(-90deg); font-size: 24px; }
/* Kate 869ew7hvq 2026-10-18 "GLOBAL FIX: THe ? in the ring and pill is not centered in teh circle like it should be"
 * (register C04 glyph check). A 1-high line box centres the em box, and Acumin's "?" ink (baseline to cap height) sits
 * above the em-box middle: 2.1 px high in WebKit, 2.9 px in Chromium (presented). Trimming the line box to cap height and
 * baseline gives a box exactly as tall as the ink (trim applies to a block box, not to a flex container), and that box is
 * centred on the circle with `translate` (the individual property: the glyph's `transform` stays free for the rotate). */
.cae-photo__q-q, .cae-photo__q-x { inset: 50% auto auto 50%; display: block; translate: -50% -50%; text-box: trim-both cap alphabetic; }
[data-cae-photo].is-cap-open > .cae-photo__q .cae-photo__q-q { opacity: 0; transform: rotate(90deg); }
[data-cae-photo].is-cap-open > .cae-photo__q .cae-photo__q-x { opacity: 1; transform: rotate(0); }

/* Caption overlay: floats above the button (never moves layout), right edge on the button's right edge, 7px white
 * pointer down to the button; solid white, square corners, 6px #F2A518 bar on the left only. */
[data-cae-photo] > .cae-photo__cap {
  position: absolute; right: var(--cae-photo-qr, var(--cae-photo-r)); bottom: calc(var(--cae-photo-b) + 17px + 20px + 40px + 12px); z-index: 5;
  width: max-content; max-width: min(380px, calc(100% - 2 * var(--cae-photo-r))); box-sizing: border-box;
  margin: 0; padding: 14px 18px; background: #fff; border-radius: 0; border-left: 6px solid #F2A518;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); text-align: left; text-transform: none; letter-spacing: normal;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.4;
  color: #004F39; opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
[data-cae-photo] > .cae-photo__cap::after {
  content: ""; position: absolute; right: 13px; top: 100%; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #fff;
}
[data-cae-photo].is-cap-open > .cae-photo__cap { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  [data-cae-photo] > .cae-photo__q, .cae-photo__q-q, .cae-photo__q-x, [data-cae-photo] > .cae-photo__cap { transition: none; }
}
/* News / Impact Story photos inside old layout tables (Kate, ClickUp 869ew340f, 2026-11-10: ring and pill on the story
 * images; inc/cae-news-post-global.php makes each captioned table photo a [data-cae-photo="panel"] wrapper). On a phone the
 * table's text cell squeezed the photo to 24-97 px, too small to hold the "?" ring and the credit pill (they overlapped or
 * ran off the photo), and the opened caption was cut off by the table's sideways-scroll box. Below 782px such a layout table
 * stacks its cells, so each photo is full width between the text (Rules2 B8: "Below 782px nothing wraps; the photo sits
 * full width between paragraphs") and holds its ring, pill and opened caption. Tables without a ring photo are untouched. */
@media (max-width: 781.98px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(figure[data-cae-photo="panel"]),
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(figure[data-cae-photo="panel"]) :is(tbody, thead, tr, td, th) { display: block; width: 100% !important; box-sizing: border-box; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(figure[data-cae-photo="panel"]) figure[data-cae-photo="panel"] img { width: 100%; height: auto; }
}
/* EACH PHOTO WITH ITS STEP TEXT (Kate, ClickUp 1amzwvgber8, 2026-11-15, verbatim: "each photo needs to be with its step text").
 * Below 782px a layout table stacks its cells (rule above), so cell order decides what sits next to what. Every pair is
 * photo first, then its own text, on every News / Impact Story layout table:
 * (1) SAME-ROW tables (a row holds a photo cell and a text cell: "text | photo", or rows that zig-zag "text | photo",
 *     "photo | text"): the row stacks too (also when its photo carries no ring), and the photo cell leads its row.
 *     Before: zig-zag rows stacked text, photo, photo, text (Vermont Food Businesses Go to New York City), and a ring-less
 *     row stayed side by side with a 76-104 px photo (Hazen baguette, Cows Pickles, Stories from Schools). The wrap's
 *     data-cae-pair="row" is set by inc/cae-news-post-global.php (CSS cannot test "a cell without a photo").
 * (2) ALTERNATING tables (a photo row, then a row of the step texts under those photos, repeated: Maple Sap to Maple Syrup):
 *     the cells are re-ordered photo 1, text 1, photo 2, text 2 ... (order = row pair x 20 + column x 2 + text row).
 *     Before: all the photos of a row pair, then all their texts. post-conventions-cae.js (part A) turns such a table into
 *     the green Process band once it runs; this keeps the pairing before it runs and wherever it does not.
 * 1024 and up are untouched (all inside this query). */
@media (max-width: 781.98px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap[data-cae-pair="row"] table,
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap[data-cae-pair="row"] table :is(tbody, thead, tr, td, th) { display: block; width: 100% !important; box-sizing: border-box; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap[data-cae-pair="row"] table > :is(thead, tbody, tfoot) > tr { display: flex; flex-direction: column; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap[data-cae-pair="row"] table > :is(thead, tbody, tfoot) > tr > :is(td, th):has(img) { order: -1; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap[data-cae-pair="row"] table img { width: 100%; height: auto; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr { display: contents !important; --cae-pr: 0; --cae-pt: 0; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(even) { --cae-pt: 1; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+3) { --cae-pr: 1; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+5) { --cae-pr: 2; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+7) { --cae-pr: 3; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+9) { --cae-pr: 4; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+11) { --cae-pr: 5; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+13) { --cae-pr: 6; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+15) { --cae-pr: 7; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+17) { --cae-pr: 8; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr:nth-child(n+19) { --cae-pr: 9; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :nth-child(2) { --cae-pc: 1; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :nth-child(3) { --cae-pc: 2; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :nth-child(4) { --cae-pc: 3; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :nth-child(5) { --cae-pc: 4; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :nth-child(6) { --cae-pc: 5; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-news-table-wrap table:has(> tbody > tr:nth-child(2)):has(> tbody > tr:nth-child(odd) > :is(td, th) img):not(:has(> tbody > tr:nth-child(even) img)) > tbody > tr > :is(td, th) { order: calc(var(--cae-pr, 0) * 20 + var(--cae-pc, 0) * 2 + var(--cae-pt, 0)); }
}
/* A News / Impact Story photo's opened caption (photo-postcard-cae.js puts it behind the ring, 869ew340f) may be taller than a
 * short or phone-width photo: the card photo box stops clipping (the postcard's cover crop is off for article photos, Rules2
 * B8, so the photo itself is never cut), and the caption box opens above the photo like every other ring caption. The same for
 * a borrower profile's lead photo (Ring/Pill on the VFF borrower pages, PM ruling 2026-11-29; its 4:3 crop is the img's own
 * object-fit, so the photo is not uncropped). */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study, .cae-website-redesign-record-detail--borrower-profile) figure.cae-postcard--float.cae-pc--ring > .cae-jcf-pc__photo { overflow: visible; }
/* CONTENT-BLOCK CAPTIONS BEHIND THE "?" (Kate, ClickUp 1amzwvgbx45, 2026-11-14: "change the caption style to be the ? option,
 * where the caption shows if one hovers on the image ... across the website in similar blocks"; photo-credit-cae.js
 * ringCardCaptions / ringFigureCaptions). The printed line under (or over) the photo is hidden, kept in the DOM for the
 * postcard pop-up, which still shows the full caption. A ringed Photo Postcard keeps the no-caption card's room for its
 * magnifier under the photo (64 = 12 clear + 30 icon + 22, photo-postcard-cae.css); the page-drawn cards (.fh-pc,
 * .cae-wwu-pc) keep the same room. The open caption stays inside the photo: it spans the photo between the corner insets,
 * sits above the ring as everywhere, and scrolls rather than run off the top of a short photo. */
:root .cae-cap-ringed { visibility: hidden !important; height: 0 !important; min-height: 0 !important; max-height: 0 !important; margin-top: 0 !important;
  margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border: 0 !important; overflow: hidden !important; }
/* (kept in the flow at zero height, not display:none: a card in a shrinking flex row took its width from the printed line;
 * with the line gone it collapsed to its padding, photo 0 x 0, Community Room About at 390) */
body figure.cae-postcard.cae-jcf-pc.cae-jcf-pc.cae-pc--ring:not(#cae-pc-ring) { padding-bottom: 64px; }
body .fh-pc.cae-pc--ring:not(#cae-pc-ring), body .cae-wwu-pc.cae-pc--ring:not(#cae-pc-ring) { padding-bottom: 64px; }
.cae-pc--ring [data-cae-photo="card"] > .cae-photo__cap, .cae-pc--ring[data-cae-photo="card"] > .cae-photo__cap {
  left: var(--cae-photo-r); width: auto; max-width: none; padding: 10px 14px; font-size: 15px; line-height: 1.35;
  max-height: var(--cae-ring-max, calc(100% - var(--cae-photo-b) - 97px));
}
.cae-pc--ring [data-cae-photo="card"] > .cae-photo__cap.is-scroll, .cae-pc--ring[data-cae-photo="card"] > .cae-photo__cap.is-scroll { overflow-y: auto; overscroll-behavior: contain; }
.cae-pc--ring [data-cae-photo="card"] > .cae-photo__cap.is-scroll::after, .cae-pc--ring[data-cae-photo="card"] > .cae-photo__cap.is-scroll::after { display: none; }

/* PHOTO-BEHIND-FORM: RING, CAPTION AND CREDIT ON THE PHOTO, NEVER ON THE CREAM PANEL (Kate, ClickUp 1amzwvgdy00 item 1,
 * 2026-11-30 18:00Z: "anchor the ring, caption and credit to the photo's own box, not the panel ... credit bottom-right of
 * the photo, in the strip below the panel; ring just above it, in the strip right of the panel ... They must never overlap
 * the cream panel at any width"). The block: the form section that takes the photo as its own ::before frame (forms-cae.css,
 * inset -56 / -64 from 1024 up, a 32 band above and below under 1024) and the Just Cut inquiry card (fix-jcinquiry-cae.css,
 * the same frame, -32 / -16 under 1024). photo-credit-cae.js makes the section / card the photo wrapper, so the corner
 * offsets are measured from the PANEL; negative offsets put the parts in the frame's strips.
 *  - 1024 and up: Contact takes Kate's previewed offsets verbatim (credit right -48 / bottom -46, ring right -54 / bottom -14);
 *    Just Cut already sat in the strips (-48 / -46, its ring at -48 / -9) and keeps them.
 *  - Under 1024 there is no strip beside the panel and the 32 band is lower than the 40 ring, so the bottom band takes the
 *    desktop's own 56 while it carries the ring (Contact: the section's bottom margin follows, 32 -> 56, so the frame never
 *    runs onto the next block; Just Cut's 64 bottom padding already holds it). Ring 16 in from the photo's right edge and
 *    8 below the panel, credit beside it on the ring's left (8 apart), both inside the band.
 *  - The caption box opens DOWNWARD, hanging 8 under the photo frame (the Just Cut phone treatment, now at every width):
 *    opening upward from the ring it lay over the form fields (Contact 1440: 380 x 95 presented px of the panel).
 * Under 600 the Contact photo is not a ring-and-pill wrapper (photo-credit-cae.js convertBgCtas needs a 600 band): no ring,
 * no credit, nothing on the panel, and its band stays 32. */
:root .wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section[data-cae-photo]:has(.site-form, .site-form__thanks, .site-form__status) {
  --cae-pbf-ring-r: -54px; --cae-pbf-ring-b: -14px; --cae-pbf-cred-r: -48px; --cae-pbf-cred-b: -46px; --cae-pbf-frame-b: 56px;
}
:root body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] {
  --cae-pbf-ring-r: -48px; --cae-pbf-ring-b: -9px; --cae-pbf-cred-r: -48px; --cae-pbf-cred-b: -46px; --cae-pbf-frame-b: 56px;
}
@media (max-width: 1023.98px) {
  :root .wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section[data-cae-photo]:has(.site-form, .site-form__thanks, .site-form__status) {
    --cae-pbf-ring-r: 16px; --cae-pbf-ring-b: -48px; --cae-pbf-cred-r: 64px; --cae-pbf-cred-b: -38px;
    margin-block-end: 56px;
  }
  :root .wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section[data-cae-photo]:has(.site-form, .site-form__thanks, .site-form__status)::before {
    inset: -32px 0 -56px;
  }
  :root body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] {
    --cae-pbf-ring-r: 0px; --cae-pbf-ring-b: -48px; --cae-pbf-cred-r: 48px; --cae-pbf-cred-b: -38px;
  }
  :root body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo]::before {
    inset: -32px -16px -56px;
  }
}
:root :is(.wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section:has(.site-form, .site-form__thanks, .site-form__status),
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card)[data-cae-photo] > .cae-photo__q.cae-photo__q {
  right: var(--cae-pbf-ring-r); bottom: var(--cae-pbf-ring-b);
}
:root :is(.wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section:has(.site-form, .site-form__thanks, .site-form__status),
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card)[data-cae-photo] > .cae-photo__credit.cae-photo__credit {
  right: var(--cae-pbf-cred-r) !important; bottom: var(--cae-pbf-cred-b); max-width: none;
}
:root :is(.wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section:has(.site-form, .site-form__thanks, .site-form__status),
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card)[data-cae-photo] > .cae-photo__cap.cae-photo__cap {
  right: var(--cae-pbf-ring-r); bottom: auto; top: calc(100% + var(--cae-pbf-frame-b) + 8px);
}
:root :is(.wp-site-blocks .wp-block-post-content > [class*="fg-"]:is(:has(img), [hidden]) + section:has(.site-form, .site-form__thanks, .site-form__status),
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card)[data-cae-photo] > .cae-photo__cap.cae-photo__cap::after {
  top: auto; bottom: 100%; border-top: 0; border-bottom: 7px solid #fff;
}
