/* Vermont Farm Fund About / VFF Team (/programs-places/vermont-farm-fund/about/meet-the-team/): page-scoped rules.
 * Enqueued on this page only (functions.php). CSS px here are canvas px (the site presents at zoom 0.8).
 *
 * 2026-10-16 (lane vffpolish-1016, ClickUp 869ew7p18, Kate's FRIDAY dev notes PACKET-300 + her 20:48Z note): the roster
 * band and the Become a Board Member block were rebuilt as hand-authored markup with semantic classes (patterns
 * ...-about-section.php, ...-about-section-2.php), so every earlier rule in this file, keyed on the compiled node classes
 * of the rust roster band (14582:247443) and the grey board block (14660:218276), had nothing left to style and was
 * retired with them (history: git log -- this file). What stands now:
 *   1. the team grid on the CAE Team convention (canon /about-cae/team/): white section, brick headings, card = photo
 *      frame 282:327 + name + role + the CAE Read-bio control. 2026-10-17 (vffteam2-1017, Kate 869ew7p18 13:15Z "all design
 *      conventions for this kind of grid of profiles is supposed to MATCH: /about-cae/team/"): the card's own anatomy
 *      (gaps, name, role, control, hidden rule, hover) is no longer written here; it is the shared TEAM PROFILE CARD
 *      convention in records-grid-cae.css, the same rules the CAE Team card takes. One box per ROW (C11), below 1024 the
 *      columns fit the width exactly as the CAE Team grid does (mobile-cae.css §7: 3 across at 768, 2 at 600, 1 at 390);
 *   2. the frost placeholder (#F3F5F7, VFF mark centred at 58% of the frame);
 *   3. (retired 2026-10-17: the disc now turns brick on hover and the chevron stays still, as on the CAE Team card);
 *   4. the Become a Board Member CTA band (dark green, light-green panel holding the Open House Photo Postcard);
 *   5. the intro's yellow Apply to the Board button. (The About the Team / Join the Board sub-menu is the shared cae-subtabs
 *      component, patterns ...-about-subtabs(.php|-board.php), styled by subtabs-cae.css, not here.) */

/* ---- 1. TEAM GRID ---- */
body section.cae-vffteam {
  background: #fff;
  margin: 0 !important;
  padding: 40px max(40px, calc((100% - 1200px) / 2)) 64px !important;
  box-sizing: border-box;
}
body section.cae-vffteam > .cae-vffteam__heading {
  margin: 0 0 24px !important;
  text-align: center;
  color: var(--wp--preset--color--primary-brick, #B15533);
  font-family: var(--wp--preset--font-family--acumin-pro-condensed), "Acumin Pro Condensed", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  text-transform: none;
}
body section.cae-vffteam > .cae-vffteam__divider {
  margin: 40px 0 !important;
  border: 0;
  border-block-start: 1px solid #c7c6c6;
  opacity: 1;
  width: 100%;
  max-width: none;
}
body section.cae-vffteam .cae-vffteam__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;             /* the card rule, one box per row: every card in a row takes the row's tallest box */
  column-gap: 24px;
  row-gap: 40px;
  margin: 0 !important;
}
body section.cae-vffteam .cae-vffteam__card {
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0;
  background: none;
  min-width: 0;
  position: relative;
}
body section.cae-vffteam .cae-vffteam__card > :not(.cae-recgrid__readbio) { margin: 0 !important; }
body section.cae-vffteam .cae-vffteam__photo {
  width: 100%;
  aspect-ratio: 282 / 327;
  overflow: hidden;
  flex: none;
}
body section.cae-vffteam .cae-vffteam__photo a { display: block; width: 100%; height: 100%; }
body section.cae-vffteam .cae-vffteam__photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  object-fit: cover;
}
/* 2. placeholder: the same frame as a photo, frost ground, the VFF mark centred at 58% of the frame width */
body section.cae-vffteam .cae-vffteam__photo--placeholder {
  background: #F3F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the photo link fills the frame as a block (records-grid-cae.css team-grid rule, 0,5,3), so the mark sat at its top-left
 * corner (dx -59, dy -88 design px; ClickUp 1amzwvgayt7): on a placeholder the link centres the mark itself (id-weight no-op) */
body section.cae-vffteam .cae-vffteam__photo--placeholder > a:not(#cae-vffph-centre) {
  display: flex;
  align-items: center;
  justify-content: center;
}
body section.cae-vffteam .cae-vffteam__photo--placeholder img {
  width: 58% !important;
  height: auto !important;
  object-fit: contain;
}
body section.cae-vffteam .cae-vffteam__text { flex: none; }
@media (max-width: 1023.98px) {
  body section.cae-vffteam .cae-vffteam__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media (max-width: 599.98px) {
  body section.cae-vffteam { padding-inline: 25px !important; }
}

/* ---- 1b. PAST ADVISORY BOARD MEMBERS: A PLAIN LIST (client QA sheet Vermont Farm Fund row 43, ticket 1amzwvgaufp,
 * Kelly 2026-11-04: "Switch the past advisory board members to a list for now. We don't have photos or permission for
 * photos on the staging site."). The past-board cards (photo + name + role) became ul.cae-vffteam__pastlist in the
 * pattern: names in the team card's name type (Acumin Pro, P1, evergreen), a founding role after a comma in the card's
 * role type (P2, granite gray), bullets, in rows of 3 at 1024 and up (the team grid's 24px column gap), 2 from 600, 1 below
 * (rows, not CSS columns: columns put 1/2/3 names in the three columns at 1440 because the founding roles wrap). */
body section.cae-vffteam > .cae-vffteam__pastlist {
  margin: 0 !important;
  padding: 0 0 0 1.2em;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 12px;
  list-style: disc outside;
  color: var(--wp--preset--color--primary-evergreen, #004F39);
}
body section.cae-vffteam > .cae-vffteam__pastlist > li {
  margin: 0 !important;
  display: list-item;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif;
  font-size: var(--wp--preset--font-size--p-1-pro-regular, 24px);
  line-height: var(--wp--custom--line-heights--p-1-pro-regular, 32px);
  font-weight: var(--wp--custom--font-weights--p-1-pro-regular, 400);
}
body section.cae-vffteam .cae-vffteam__pastname { color: var(--wp--preset--color--primary-evergreen, #004F39); }
body section.cae-vffteam .cae-vffteam__pastrole {
  color: var(--wp--preset--color--primary-granite-gray, #5F5F5F);
  font-size: var(--wp--preset--font-size--p-2-regular, 20px);
  line-height: var(--wp--custom--line-heights--p-2-regular, 28px);
  font-weight: var(--wp--custom--font-weights--p-2-regular, 400);
}
@media (max-width: 1023.98px) {
  body section.cae-vffteam > .cae-vffteam__pastlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  body section.cae-vffteam > .cae-vffteam__pastlist { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 4. BECOME A BOARD MEMBER CTA (CAE CTA backdrop-panel convention, Annual Reports on About > Board) ---- */
body section.cae-vffboard-cta {
  background: var(--wp--preset--color--primary-evergreen, #004F39);
  margin: 0 !important;
  padding: 0 max(40px, calc((100% - 1200px) / 2)) !important;
  box-sizing: border-box;
}
body section.cae-vffboard-cta .cae-vffboard-cta__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 440px;
  column-gap: 64px;
  align-items: stretch;
  margin: 0 !important;
}
body section.cae-vffboard-cta .cae-vffboard-cta__content { padding: 64px 0; margin: 0 !important; align-self: center; }
body section.cae-vffboard-cta .cae-vffboard-cta__content > * { margin-block: 0 !important; }
body section.cae-vffboard-cta .cae-vffboard-cta__title {
  margin: 0 0 12px !important;
  color: #fff;
  font-family: var(--wp--preset--font-family--bookman-press-sans), "Bookman Press Sans", serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--wp--preset--font-size--h-2-bookman, 48px);
  line-height: 56px;
  text-transform: uppercase;
  text-align: left;
}
body section.cae-vffboard-cta .cae-vffboard-cta__body {
  color: #fff;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--p-1-pro-regular, 24px);
  line-height: 32px;
  text-align: left;
}
body section.cae-vffboard-cta .cae-vffboard-cta__involved {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 !important;
  padding: 0;
  border-block: 1px solid rgba(255, 255, 255, 0.28);
}
body section.cae-vffboard-cta .cae-vffboard-cta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 20px 24px;
}
body section.cae-vffboard-cta .cae-vffboard-cta__item:first-child { padding-inline-start: 0; }
body section.cae-vffboard-cta .cae-vffboard-cta__item + .cae-vffboard-cta__item { border-inline-start: 1px solid rgba(255, 255, 255, 0.28); }
body section.cae-vffboard-cta .cae-vffboard-cta__label {
  color: #F5A81C;
  font-family: var(--wp--preset--font-family--acumin-pro-condensed), "Acumin Pro Condensed", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}
body section.cae-vffboard-cta .cae-vffboard-cta__detail {
  color: #fff;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--p-2-regular, 20px);
  line-height: 28px;
}
body section.cae-vffboard-cta .cae-vffboard-cta__actions { justify-content: flex-start !important; margin: 0 !important; }
body section.cae-vffboard-cta .cae-vffboard-cta__panel {
  background: var(--wp--preset--color--green, #C5E3BF);
  padding: 40px 48px;
  margin: 0 !important;
  display: flex;
  box-sizing: border-box;
}
/* the Photo Postcard fills the panel: the photo takes the height the caption leaves (object-fit cover) */
body section.cae-vffboard-cta figure.cae-postcard.cae-jcf-pc.cae-jcf-pc {
  align-self: stretch;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
}
body section.cae-vffboard-cta figure.cae-postcard.cae-jcf-pc > .cae-jcf-pc__photo { flex: 1 1 auto; height: auto; min-height: 280px; }
@media (max-width: 900px) {
  body section.cae-vffboard-cta { padding-block: 48px 56px !important; }
  body section.cae-vffboard-cta .cae-vffboard-cta__inner { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  body section.cae-vffboard-cta .cae-vffboard-cta__content { padding: 0; }
  body section.cae-vffboard-cta .cae-vffboard-cta__involved { grid-template-columns: minmax(0, 1fr); border-block-end: 0; }
  body section.cae-vffboard-cta .cae-vffboard-cta__item { padding: 16px 0; border-block-end: 1px solid rgba(255, 255, 255, 0.28); }
  body section.cae-vffboard-cta .cae-vffboard-cta__item + .cae-vffboard-cta__item { border-inline-start: 0; }
  body section.cae-vffboard-cta .cae-vffboard-cta__panel { padding: 32px 24px; }
  body section.cae-vffboard-cta figure.cae-postcard.cae-jcf-pc > .cae-jcf-pc__photo { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 599.98px) {
  body section.cae-vffboard-cta { padding-inline: 25px !important; }
  body section.cae-vffboard-cta .cae-vffboard-cta__title { font-size: 32px; line-height: 40px; }
}

/* ---- 5. INTRO BUTTON ---- */
body .cae-vffteam-intro__actions { justify-content: center !important; margin: 24px 0 0 !important; }
/* The two hand-authored Apply to the Board buttons (intro + CTA band) carry no compiled node class, which is what painted
 * the generated yellow pill; they take the site's yellow button as served on the Annual Reports CTA (measured on
 * /about-cae/team/board/ 2026-10-16: #F2A518, white, CAE Button Cond p-2 20/28, 12/24/11 padding, 40 radius). */
body :is(.cae-vffteam-intro__button, .cae-vffboard-cta__button).fg-ground-primary-butter-yellow > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--wp--preset--color--primary-butter-yellow, #F2A518) !important;
  color: #fff !important;
  font-family: "CAE Button Cond", var(--wp--preset--font-family--acumin-pro-condensed), "Acumin Pro Condensed", sans-serif;
  font-weight: 400;
  font-size: var(--wp--preset--font-size--p-2-regular, 20px);
  line-height: 28px;
  padding: 12px 24px 11px;
  border-radius: 40px;
  border: 0;
  text-decoration: none;
}
/* (a linked name keeping the name's own weight is the shared TEAM PROFILE CARD convention, records-grid-cae.css) */
