/* Page-scoped hand fix — CAE Partnerships (/about-cae/partnerships/) ONLY.
 * Enqueued by functions.php on get_page_uri() === 'about-cae/partnerships'; every rule is ALSO
 * scoped to the page's body class .cae-page--cae-aboutus-ourpartners-v4.
 *
 * Kate 869ew1ad4 90120269573438 (2026-09-28 00:26Z, repeat of 90120266896395):
 *   "When I expand this panel: Orleans Southwest Supervisory Union — the text overlaps the
 *    buttons ... There should always be padding between the text and buttons. Also the space
 *    between paragraphs is missing from the accordion expanded panel views"
 *
 * CAUSE (shared, reported not edited): unbound-literals.css:726 gives every OSSU paragraph
 * (.…__body-figma-text-19268-553113, one class on all four <p> of the expanded copy) the
 * drawn collapsed height `height:64px`. assets/interact/disclosure.css releases the PANEL
 * (the group div) but not the paragraphs inside it, so each 3-line paragraph overflowed its
 * 64px box by 32px: the overflow painted over the 32px paragraph margin (spacing "missing")
 * and the last paragraph ran into the button row. The same drawn 64px literal sits on the
 * body text of the three added cards (hfm/vhcb/vwlc, unbound-literals.css:758/770/782) and
 * the 511px card literal on their boxes (754/766/778): their full copy ran under the buttons
 * at rest. Releasing the block axis (height:auto) hands every box back to its own text; the
 * drawn 24px column gap then keeps the buttons below the text at every length.
 */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-19268-553113,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-19268-553093,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-19268-553103,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-19268-553123,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-hfm-card--19268-553123,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-vhcb-card--19268-553123,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__body-figma-text-vwlc-card--19268-553123,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-hfm-card--19268-553118,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-vhcb-card--19268-553118,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-vwlc-card--19268-553118 {
  height: auto;
}

/* Kate 869ew1ad4 90120266896473 ("The list of partners ... with corresponding descriptions,
 * logos, website URLs etc is supposed to be THIS: [the CAE Partners sheet]"): the three
 * sheet rows after the four drawn cards (Hardwick Farmers Market, VHCB Farm & Forest
 * Viability, Vermont Working Lands Coalition) take the drawn Town of Hardwick card's box
 * exactly — style.css gives the drawn column (…column-19268-553118) align-items:center,
 * gap 24, padding-block 40 / padding-inline 48; the added columns had none of the three, so
 * their copy ran edge to edge and the button row sat on the card's bottom edge. */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-hfm-card--19268-553118,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-vhcb-card--19268-553118,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-vwlc-card--19268-553118 {
  align-items: center;
  gap: 24px;
  padding-block: 40px;
  padding-inline: 48px;
}

/* PROGRAMS & PLACES band at 1024 (CTA-1Button 19268:553128, drawn 1440x351: evergreen plate
 * 747x351 at x0, copy column 579 wide at (120,51), photograph 693x351 at x747). CAUSE: below
 * the 1151.98 tablet gate (style.css ground arm + content-bound-bands.css) the plate is
 * display:none, the photograph goes static full width on top and the copy runs under it — the
 * band collapsed to one column 1080 frame px tall (served, 1024). FIX (below the same gate):
 * the 1440 composition in the 1280 canvas — plate on the left 51.875% (747/1440), photograph
 * on the right 48.125% (693/1440) at the band's full height, copy in the plate at 80 from
 * the edge, 40 before the photograph, 51 above and below as drawn. */
@media (max-width: 1151.98px) {
  body.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic.cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic { position: relative; padding: 0; background-color: transparent; min-height: 351px; height: auto; }
  body.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__decor-figma-generic-decor-i19268-553128-5490-45883.cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__decor-figma-generic-decor-i19268-553128-5490-45883 { display: block; position: absolute; left: 0; right: auto; top: 0; bottom: 0; width: 51.875%; height: auto; margin: 0; }
  body.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__media-figma-image-i19268-553128-5490-45892.cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__media-figma-image-i19268-553128-5490-45892 { position: absolute; left: auto; right: 0; top: 0; bottom: 0; width: 48.125%; max-width: none; height: auto; margin: 0; }
  body.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__media-figma-image-i19268-553128-5490-45892.cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__media-figma-image-i19268-553128-5490-45892 img { display: block; width: 100%; height: 100%; object-fit: cover; }
  body.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__column-figma-generic-column-i19268-553128-5490-45884.cae-website-redesign-cae-aboutus-ourpartners-v4-cta-1button-generic__column-figma-generic-column-i19268-553128-5490-45884 { position: relative; margin: 51px 0 51px 80px; width: calc(51.875% - 120px); max-width: 579px; align-self: flex-start; }
}

/* CARD RULE (d) — Betty after-fix grade: the seven partner cards at rest were 417/424/375/411/
 * 412/412/411 CSS px at 1440 (Δ49) and 412/398/375/386/412/412/412 at 1024 (Δ37). CAUSE: each
 * card is sized by its own logo (natural heights 164 / 180 NEKO / 118 OSSU) and its own teaser
 * line count. FIX: one logo slot for all seven, 180 tall (the tallest logo), logo centred in
 * it; one teaser slot at least two lines (2 x 32) tall. Every card then takes one rest height
 * and Read More sits at the same offset from the card top; expanded panels still grow (min,
 * not fixed). */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [class*="__column-figma-generic-column-"] > figure.wp-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: 0;
}
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-intsurf-disc-panel] {
  min-height: 64px;
}
/* NEKO (…column-19268-553098) is the one card style.css:18738 gives no border-block-end; the other
 * six carry 1px solid #c7c6c6, which left NEKO 1 CSS px shorter. Same edge, same box. */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic__column-figma-generic-column-19268-553098 {
  border-block-end: 1px solid #c7c6c6;
}

/* ORG NAMES AS LINKS (Kate 869ew1ad4 90120270106476, 2026-09-28: "in each Partner description, make the org names
 * bold and green and link to the org website with underline and the underline disappears on hover"). The name in each
 * partner's description (first mention, caeassist PACKET-100 runs on the P-037 rev4 blurbs) is an <a> to that
 * partner's website; OSSU's description never names it, so its card title carries the link instead (PACKET-100).
 * Bold (700), the site's evergreen #004F39, underline at rest, none on hover and keyboard focus; the collapsed teaser
 * keeps the same link (assets/interact/disclosure.js writes it from the drawn markup). */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-intsurf-disc-panel] a,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic a.cae-partner-org-link {
  font-weight: 700;
  color: var(--wp--preset--color--primary-evergreen, #004F39);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-intsurf-disc-panel] a:hover,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-intsurf-disc-panel] a:focus-visible,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic a.cae-partner-org-link:hover,
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic a.cae-partner-org-link:focus-visible {
  text-decoration-line: none;
}

/* LOGOS LINK AND ANIMATE (Kate 869ew1ad4 90120273407490, 2026-10-06: "make none of the org names directly under the
 * logo links, but make the names in the descriptions links, and animate the logos on hover"). Each logo is wrapped in
 * an <a> to the partner's website (the card's own Visit Website URL, new tab), out of the tab order and hidden from
 * assistive tech because Visit Website is the same destination and already the card's one keyboard stop (card-surface.js
 * "NO SECOND TAB STOP"). The logos already rose on hover through the declared `lift-plain` card surface, but by 3 px
 * (2.4 device px at the site's 0.8 zoom), which does not read as an animation. They now take the site's postcard lift
 * distance, 8 px (fix-vffloans-cae.css, the Local TA logo postcards), with NO box and NO shadow (Kate's 2026-09-10 logo
 * rule, select-one-of-n.css lift-plain). The transition (180 ms) and the reduced-motion opt-out stay the surface's own.
 * A transform lays nothing out: every card keeps its box. */
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [class*="__column-figma-generic-column-"] > figure.wp-block-image > a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-cardsurf-hover="lift-plain"].is-cae-cardsurf-hot {
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .cae-page--cae-aboutus-ourpartners-v4 .cae-website-redesign-cae-aboutus-ourpartners-v4-our-partners-generic [data-cae-cardsurf-hover="lift-plain"].is-cae-cardsurf-hot {
    transform: none;
  }
}

/* NARROWER DESCRIPTION COLUMN (Kate 869ew1ad4, 2026-10-13 13:38Z, "CAE Partnerships — Partner Description Dev
 * Notes" docx §1, caeassist PACKET-262: "Max width: 740px, centred in the card (margin-left/right: auto). Text stays
 * centre-aligned as now. Apply it to the description element in every partner card, in both the collapsed and
 * expanded states. Selector used for the approved preview: [data-cae-intsurf-disc="our-partners-disclosure"]").
 * Her selector is the surface's own attribute (inc/cae-interact-surface.php stamps it), not a node key. On this build
 * the same attribute is ALSO stamped on each card's box (data-cae-intsurf-disc-box), and her rule alone shrank the
 * CARDS to 740 (measured: card 1200 -> 740 CSS px, text 644) where she asks that card width not change; so the rule
 * is narrowed to the description element by the panel attribute the same stamp carries. It lands on the panel in both
 * shapes: the <p> on six cards and the group <div> wrapping the paragraphs on Orleans Southwest Supervisory Union.
 * The panel element persists across Read More / Show Less (disclosure.js rewrites its contents), so one rule covers
 * both states. The panel's parent column is shrink-to-fit and centred, so it takes the 740 and stays centred; below
 * 740 px of card the max-width never binds and the column fills the card as before. Was: 1103.98 CSS px (883
 * rendered px at the site's 0.8 zoom), the card's full inner width; the drawn max-width 1104px on the paragraphs is
 * (0,1,0), this is (0,3,1). */
body.cae-page--cae-aboutus-ourpartners-v4 [data-cae-intsurf-disc="our-partners-disclosure"][data-cae-intsurf-disc-panel] {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* CARD RULE with the longer teasers (Kate 869ew1ad4 docx 2026-10-13 section 2, PACKET-262): at the 740 column her seven
 * teasers run 4-5 lines at 1440 and 3-4 lines at 1024 (32 px line height, measured), so the two-line slot above
 * (min-height 64) let the cards differ by a line at rest. The teaser slot is now the longest teaser at each width:
 * 5 lines (160) on the desktop canvas, 4 lines (128) below the site's 1151.98 tablet gate. Every card again takes one
 * rest height and Read More sits at the same offset; expanded panels still grow (min, not fixed).
 * 2026-10-13 (Kate 869fgrfht, paragraph break kept before Read More): HAFP and Town of Hardwick now show their
 * <br><br> break in the teaser, one blank line more (192 at both widths, measured), so the slot is 192 at both widths. */
body.cae-page--cae-aboutus-ourpartners-v4 [data-cae-intsurf-disc="our-partners-disclosure"][data-cae-intsurf-disc-panel] {
  min-height: 192px;
}
@media (max-width: 1151.98px) {
  body.cae-page--cae-aboutus-ourpartners-v4 [data-cae-intsurf-disc="our-partners-disclosure"][data-cae-intsurf-disc-panel] {
    min-height: 192px;
  }
}
