/* VFF OUR BORROWERS — list + map paint for inc/cae-borrowers-library.php (ClickUp 869ew7j93, 2026-10-08).
 * Enqueued on /programs-places/vermont-farm-fund/our-borrowers/ only; every rule is scoped to [data-cae-borrowers-library].
 * Lengths are DESIGN px (the site presents at zoom 0.8). Card values are the drawn card's (frame 8058:137019):
 * 384 wide, white, photo 256 tall, 16 gap, 16 bottom padding, title Acumin Pro 24/32 #004F39 centred, 24 column / 32 row gap. */

[data-cae-borrowers-library] [hidden] { display: none !important; }

/* The drawn band boxes were fixed to the drawn content (192 / 136); the intro paragraph needs the box to follow it. */
[data-cae-borrowers-library] [class*="__column-figma-generic-column-8058-137032"],
[data-cae-borrowers-library] [class*="__column-figma-generic-column-8058-137008"] { height: auto !important; }
[data-cae-borrowers-library] [class*="__column-figma-generic-column-8058-137008"] { padding-bottom: 0; }

[data-cae-borrowers-library] .cae-borrowers__intro {
  margin: 32px 0 32px; font-family: "Acumin Pro", sans-serif; font-size: 20px; line-height: 28px; color: #606055; text-align: center;
}
[data-cae-borrowers-library] .cae-borrowers__intro a { color: #004f39; text-decoration: underline; }
/* Title above the intro (Kate 869fjnc9v, 2026-10-18): the h-2-acumin-black heading canon the VFF Team tab's visible
   title uses (evergreen, centred, 12px to the intro). Kate's borrowers-fixes-cae.css keeps the intro's own top margin
   for a page without the title; under the title it closes to the sibling tab's 12px. */
[data-cae-borrowers-library] .cae-borrowers__heading {
  margin: 32px 0 0; 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: var(--wp--custom--font-weights--h-2-acumin-black);
  color: var(--wp--preset--color--primary-evergreen); text-align: center; text-wrap: balance;
  /* C37 case addendum (lane titles-1018, Kate 869fjnc9v 2026-10-19 00:1xZ "this title needs to be UPPERCASE: Flexible
     Financing for Vermont Farmers and Food Businesses"): the H2 Acumin Black display family reads in capitals; the words
     in inc/cae-borrowers-library.php stay as written. */
  text-transform: uppercase;
}
[data-cae-borrowers-library] .cae-borrowers__heading + .cae-borrowers__intro.cae-borrowers__intro { margin-top: 12px !important; }
/* Phone: the 58-character title wraps to two lines; the token's 56px line (one-line titles) would open a 27px gap
   between them, so a wrapped title reads at 1.2. */
@media (max-width: 767px) { [data-cae-borrowers-library] .cae-borrowers__heading { line-height: 1.2; } }

/* Pills: the drawn box stays the .wp-block-button__link (border, radius, padding, width); the control fills it. */
[data-cae-borrowers-library] .cae-borrowers__pill { display: flex !important; align-items: center; gap: 8px; cursor: pointer; position: relative; }
[data-cae-borrowers-library] .cae-borrowers__pill .button-icon { flex: none; pointer-events: none; }
[data-cae-borrowers-library] .cae-borrowers__control {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; margin: 0;
  font: inherit; color: inherit; line-height: 28px; height: 28px; -webkit-appearance: none; appearance: none; cursor: pointer;
}
[data-cae-borrowers-library] input.cae-borrowers__control { cursor: text; }
[data-cae-borrowers-library] input.cae-borrowers__control::placeholder { color: inherit; opacity: 1; }
[data-cae-borrowers-library] input.cae-borrowers__control::-webkit-search-cancel-button { -webkit-appearance: none; }
[data-cae-borrowers-library] .cae-borrowers__pill:focus-within { outline: 2px solid #004f39; outline-offset: 2px; }
/* THE WHOLE DROPDOWN PILL OPENS IT (client QA sheet Vermont Farm Fund row 22, ticket 1amzwvgauew, Kelly: "The Year and Loan
   Type dropdown menus don't drop down when you click on the down arrow - only when you click farther to the left of the
   button"). The arrow is pointer-events: none over the LABEL, and a click on a label only focuses its select; a native
   select opens on a press on the select itself. So the select now covers the whole pill (absolute, inset 0, the pill's own
   14/16/12/16 padding, plus 32px on the right for the 24px arrow and the 8px gap): a press anywhere on the pill, arrow and
   padding included, lands on the select. The arrow stays where it was (pushed right), painted over the transparent select
   and still click-through; a 28px in-flow spacer keeps the pill's height (the select used to give it its 28px line). */
[data-cae-borrowers-library] .cae-borrowers__pill:has(> select.cae-borrowers__control)::before { content: ""; flex: none; width: 0; height: 28px; }
[data-cae-borrowers-library] .cae-borrowers__pill > select.cae-borrowers__control {
  position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 14px 48px 12px 16px;
  border-radius: inherit; text-overflow: ellipsis;
}
[data-cae-borrowers-library] .cae-borrowers__pill:has(> select.cae-borrowers__control) > .button-icon { margin-inline-start: auto; position: relative; }

/* List | Map switch. */
[data-cae-borrowers-library] button.cae-borrowers__view { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
[data-cae-borrowers-library] button.cae-borrowers__view.is-active { color: #004f39; font-weight: 600; }
[data-cae-borrowers-library] [data-cae-borrowers-switch] { cursor: pointer; position: relative; }
/* The drawn track (48x24, #F2A518, radius 100) and knob (16, white): pinned the same at every width (the shared <1152 arm drops decor). */
/* Old 48x24 switch geometry (width/height, track, knob) retired 2026-10-16: Kate 869ew7j93 FRIDAY note 2 asked for the
   Events-toggle 72x38 switch and for these rules to be deleted rather than out-specified; her borrowers-fixes-cae.css draws it. */
[data-cae-borrowers-library] [data-cae-borrowers-switch] [class*="__decor-figma-generic-decor"] { display: block !important; z-index: 0 !important; }
[data-cae-borrowers-library] [data-cae-borrowers-switch] [class*="__dot-figma-generic-dot"] { z-index: 1; }

/* Grid: every card one box. */
[data-cae-borrowers-library] .cae-borrowers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin: 0 0 40px; }
/* The library's cards are the Recent Loans card (.cae-loan-card, inc/cae-borrowers-library.php cae_borrowers_lib_card(),
   Kate 869ew7j93 2026-10-17 "the EXACT same postcard style"); the grid only places them: each fills its cell. */
[data-cae-borrowers-library] .cae-borrowers__grid > .cae-loan-card { width: 100% !important; max-width: none !important; margin: 0 !important; }
/* ...on the ground the card is drawn for: the Recent Loans band's #F3F5F7 (fix-vfflanding-cae.css .cae-vffl-recent), full
   bleed, so the white card with no shadow keeps its edge exactly as under Recent Loans (seat ruling 2026-10-17 on the
   borrowers3-1017 report: white cards on the white page had no edge). The list view only; the map view draws no cards. */
[data-cae-borrowers-library] .cae-borrowers__list:has(.cae-loan-card) {
  background: #F3F5F7; box-shadow: 0 0 0 100vmax #F3F5F7; clip-path: inset(0 -100vmax); padding-top: 40px;
}
[data-cae-borrowers-library] .cae-borrowers__card {
  display: flex; flex-direction: column; gap: 16px; background: #fff; padding: 0 0 16px; height: 384px; box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.1) 4px -4px 100px 0; overflow: hidden;
}
[data-cae-borrowers-library] .cae-borrowers__media { margin: 0; height: 256px; flex: none; background: #f4f1e6; overflow: hidden; }
[data-cae-borrowers-library] .cae-borrowers__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Faces never cut (Kate 869ew7j93 2026-10-17 13:33Z): the cover crop sits on the photo's declared focal point
   (--cae-focal on the photo box: the record's image_position, else the photo's photo-credits.json "focal"); with none
   declared it is top-biased, 50% 25%, so a portrait or square photo keeps its heads instead of the centre band. */
[data-cae-borrowers-library] .cae-borrowers__media img { object-position: var(--cae-focal, 50% 25%); }
[data-cae-borrowers-library] .cae-borrowers__text { padding: 0 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
[data-cae-borrowers-library] .cae-borrowers__title {
  font-family: "Acumin Pro", sans-serif; font-size: 24px; line-height: 32px; color: #004f39; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-cae-borrowers-library] .cae-borrowers__meta { margin: 0; font-family: "Acumin Pro", sans-serif; font-size: 18px; line-height: 26px; color: #606055; }
[data-cae-borrowers-library] .cae-borrowers__empty { font-family: "Acumin Pro", sans-serif; font-size: 20px; line-height: 28px; color: #606055; margin: 0 0 40px; }
[data-cae-borrowers-library] [data-cae-borrowers-more] { cursor: pointer; background: transparent; }
/* Kate 1amzwvgc7xg (A): the pager row lives inside the grey list holder, under the grid (the grid's own 40px bottom margin
   is the gap above it); the holder closes 40px below it, as it does under the grid when the row is hidden. */
[data-cae-borrowers-library] .cae-borrowers__list > [data-cae-borrowers-more-wrap] { margin: 0 0 40px; }

/* Map view: the Vermont art (715x1021) beside the borrower panel. */
[data-cae-borrowers-library] .cae-borrowers__map { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 48px; align-items: start; margin: 0 0 48px; }
[data-cae-borrowers-library] .cae-borrowers__stage { position: relative; }
[data-cae-borrowers-library] .cae-borrowers__viewport { width: 600px; height: 857px; overflow: hidden; border: 1px solid #e4e0d2; background: #fff; }
[data-cae-borrowers-library] .cae-borrowers__viewport.is-zoomed { overflow: auto; }
[data-cae-borrowers-library] .cae-borrowers__canvas { position: relative; width: 100%; aspect-ratio: 715 / 1021; }
[data-cae-borrowers-library] .cae-borrowers__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[data-cae-borrowers-library] .cae-borrowers__pin {
  position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0;
  border-radius: 50%; border: 2px solid #fff; background: #b15533; cursor: pointer; box-sizing: border-box;
}
[data-cae-borrowers-library] .cae-borrowers__pin.is-town-centre { background: #fff; border-color: #b15533; border-width: 3px; }
[data-cae-borrowers-library] .cae-borrowers__pin:hover,
[data-cae-borrowers-library] .cae-borrowers__pin.is-active { background: #004f39; border-color: #f2a518; z-index: 2; transform: scale(1.3); }
[data-cae-borrowers-library] .cae-borrowers__pin:focus-visible { outline: 2px solid #004f39; outline-offset: 2px; }
[data-cae-borrowers-library] .cae-borrowers__zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
[data-cae-borrowers-library] .cae-borrowers__zoom button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.25px solid #598527; background: #fff; color: #598527; font-size: 28px; line-height: 1; cursor: pointer; padding: 0;
}
[data-cae-borrowers-library] .cae-borrowers__panel { font-family: "Acumin Pro", sans-serif; color: #606055; font-size: 20px; line-height: 28px; position: relative; }
[data-cae-borrowers-library] .cae-borrowers__panel-hint { margin: 0 0 24px; }
[data-cae-borrowers-library] .cae-borrowers__panel-body { position: relative; background: #f4f1e6; padding: 24px 56px 24px 24px; margin: 0 0 24px; }
[data-cae-borrowers-library] .cae-borrowers__panel-close {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f2a518; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
[data-cae-borrowers-library] .cae-borrowers__panel-title { margin: 0 0 12px; font-family: "Acumin Pro", sans-serif; font-size: 28px; line-height: 36px; color: #004f39; }
[data-cae-borrowers-library] .cae-borrowers__panel-title a { color: inherit; text-decoration: none; }
[data-cae-borrowers-library] .cae-borrowers__loans { margin: 0 0 12px; padding: 0; list-style: none; }
[data-cae-borrowers-library] .cae-borrowers__loans a { color: #004f39; text-decoration: underline; }
[data-cae-borrowers-library] .cae-borrowers__approx { margin: 0 0 12px; font-style: italic; font-size: 18px; }
[data-cae-borrowers-library] .cae-borrowers__website {
  display: inline-block; border: 1.25px solid #004f39; border-radius: 40px; padding: 8px 24px; color: #004f39; text-decoration: none; font-family: "CAE Button Cond", "Acumin Pro Condensed", sans-serif;
}
[data-cae-borrowers-library] .cae-borrowers__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
[data-cae-borrowers-library] .cae-borrowers__legend li { display: flex; align-items: center; gap: 10px; }
[data-cae-borrowers-library] .cae-borrowers__key { width: 18px; height: 18px; border-radius: 50%; background: #b15533; border: 2px solid #fff; box-shadow: 0 0 0 1px #b15533; box-sizing: border-box; }
[data-cae-borrowers-library] .cae-borrowers__key.is-town-centre { background: #fff; border: 3px solid #b15533; box-shadow: none; }


/* PHONE + TABLET (mobile3-1009, Kate 2026-10-09 mobile/tablet). The drawn 384 x 384 card held a 2-line title and a
 * 1-line meta at 1440; at 390 three cards across were 117 px wide, so titles clamped mid-word and the meta lines
 * ran under the next row. Below 1024 cards size to their content and the List / Map buttons are 32 design px (25.6)
 * tap targets (were 23 x 18). Below 600: the library takes the 20 px phone gutter, two cards across with square
 * photos, the List | switch | Map row stays one centred row, and the map view stacks (map 100% wide, then panel). */
@media (max-width: 1023.98px) {
  [data-cae-borrowers-library] .cae-borrowers__card { height: auto; }
  [data-cae-borrowers-library] button.cae-borrowers__view { min-height: 32px; min-width: 32px; padding: 0 4px; }
}
@media (max-width: 599.98px) {
  /* one card across (borrowers3-1017): the card is the Recent Loans card, which the VFF landing shows one across on a phone
     (405 design px wide); two across made it 211 wide with a 102 px photo and a two-line pill */
  [data-cae-borrowers-library] .cae-borrowers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 24px; }
  [data-cae-borrowers-library] .cae-borrowers__grid:has(> .cae-loan-card) { grid-template-columns: minmax(0, 1fr); }
  /* THE CARD RULE at phone width (borrowers-1016): with the white-framed postcards (Kate 869ew7j93 FRIDAY note 11) a
     two-line name made its row 25 screen px taller than a one-line row (measured 169x293 vs 169x268 at 390); every row
     now takes the tallest card's height, as the 600-1023 arm in mobile-cae.css already does. */
  [data-cae-borrowers-library] .cae-borrowers__grid { grid-auto-rows: 1fr; }
  [data-cae-borrowers-library] .cae-borrowers__media { height: auto; aspect-ratio: 1 / 1; }
  [data-cae-borrowers-library] .cae-borrowers__card { gap: 12px; padding-bottom: 12px; }
  [data-cae-borrowers-library] .cae-borrowers__card :is(.cae-borrowers__title, .cae-borrowers__meta) { padding-inline: 8px; }
  [data-cae-borrowers-library] .cae-borrowers__title { font-size: 20px; line-height: 26px; }
  [data-cae-borrowers-library] .cae-borrowers__meta { font-size: 16px; line-height: 22px; }
  [data-cae-borrowers-library] { padding-inline: 25px !important; box-sizing: border-box; }
  .wp-site-blocks:not(#cae-m) [data-cae-borrowers-library] [class*="-generic__row-"]:has(> button.cae-borrowers__view) {
    flex-wrap: nowrap; justify-content: center; align-items: center; gap: 12px;
  }
  .wp-site-blocks:not(#cae-m) [data-cae-borrowers-library] [class*="-generic__row-"]:has(> button.cae-borrowers__view) > button.cae-borrowers__view { flex: 0 0 auto; width: auto; }
  .wp-site-blocks:not(#cae-m) [data-cae-borrowers-library] [data-cae-borrowers-switch] { flex: 0 0 72px !important; width: 72px !important; }
  [data-cae-borrowers-library] .cae-borrowers__map { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  [data-cae-borrowers-library] .cae-borrowers__viewport { width: 100%; height: auto; aspect-ratio: 600 / 857; }
}

/* Our Borrowers Community Voices (ClickUp 869ew7j93): the block holds one quote, so the two compiled arrow circles
   (nodes 11844-55218 / -55228, not wired to any slider) do not render. Scoped to this block's own card list. */
.wp-site-blocks:not(#cae-a9) [class*="ourborrowers-testimonial-generic__card-list-figma-generic-card-list-11844-55217"] { display: none !important; }


/* ==========================================================================
   Our Borrowers — MAP VIEW matches Impact › Where We Are (Kate 2026-10-12).
   Text column left (hint, divider, legend, divider, borrower detail), map
   right at Impact's 715px width with no frame, zoom controls outside the map's
   right edge as the same outlined-circle icons, sticky while scrolling.
   ========================================================================== */
[data-cae-borrowers-library] .cae-borrowers__map {
  grid-template-columns: 316px minmax(0, 1fr);
  column-gap: 48px;
  margin: 56px 0 72px;
}
[data-cae-borrowers-library] .cae-borrowers__stage {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 44.6875rem; /* 715px, Impact map width */
  margin-left: auto;
}
[data-cae-borrowers-library] .cae-borrowers__viewport {
  width: 100%;
  height: auto;
  aspect-ratio: 715 / 1021;
  border: 0;
  background: transparent;
}
[data-cae-borrowers-library] .cae-borrowers__zoom {
  position: absolute;
  inset: 0 auto 0 calc(100% + 28px);
  display: block;
  pointer-events: none;
  z-index: 5;
}
[data-cae-borrowers-library] .cae-borrowers__zoom .cae-zoom-sticky {
  position: sticky;
  top: var(--cae-zoom-top, 275px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}
[data-cae-borrowers-library] .cae-borrowers__zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.375rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #598527;
  font-size: 0;
  transition: opacity .15s;
}
[data-cae-borrowers-library] .cae-borrowers__zoom button svg { width: 4.5rem; height: 4.375rem; }
[data-cae-borrowers-library] .cae-borrowers__zoom button:hover { opacity: .8; }
[data-cae-borrowers-library] .cae-borrowers__zoom button:focus:not(:focus-visible) { outline: none; }

/* Text column: hint, legend between Impact's dividers, then the selected borrower. */
[data-cae-borrowers-library] .cae-borrowers__panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  font-size: 20px;
  line-height: 28px;
  color: #606055;
}
[data-cae-borrowers-library] .cae-borrowers__panel-hint { order: 1; margin: 0 0 24px; }
[data-cae-borrowers-library] .cae-borrowers__legend {
  order: 2;
  gap: 8px;
  padding: 20px 0;
  margin: 0 0 32px;
  border-top: 1px solid #567B8E;
  border-bottom: 1px solid #567B8E;
  font-size: 20px;
  line-height: 28px;
}
[data-cae-borrowers-library] .cae-borrowers__legend li { gap: 12px; }
[data-cae-borrowers-library] .cae-borrowers__panel-body { order: 3; padding: 24px 52px 24px 24px; }
[data-cae-borrowers-library] .cae-borrowers__panel-title { font-size: 24px; line-height: 30px; }

@media (max-width: 1199.98px) {
  [data-cae-borrowers-library] .cae-borrowers__stage { margin-right: 88px; width: auto; }
}
@media (max-width: 1023.98px) {
  [data-cae-borrowers-library] .cae-borrowers__map { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  [data-cae-borrowers-library] .cae-borrowers__stage { grid-column: 1; grid-row: 1; margin: 0 auto; max-width: 44.6875rem; width: 100%; }
  [data-cae-borrowers-library] .cae-borrowers__panel { grid-column: 1; grid-row: 2; }
  [data-cae-borrowers-library] .cae-borrowers__zoom { inset: 8px 8px auto auto; }
  [data-cae-borrowers-library] .cae-borrowers__zoom .cae-zoom-sticky { position: static; gap: 4px; }
  [data-cae-borrowers-library] .cae-borrowers__zoom button,
  [data-cae-borrowers-library] .cae-borrowers__zoom button svg { width: 3rem; height: 2.9rem; }
}

/* Map-view intro line (Kate 2026-10-12): larger, dark green, in a cream holder. */
[data-cae-borrowers-library] .cae-borrowers__panel-hint {
  margin: 0 0 28px;
  padding: 24px 24px 24px 28px;
  background: #F7F4E2;
  border-left: 4px solid #B15533;
  font-family: "Acumin Pro", sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: #004F39;
}

/* Map view drops the grey "N Results" bar (Kate 2026-10-12). */
[data-cae-borrowers-library][data-cae-borrowers-mode="map"] [data-cae-borrowers-count] { display: none !important; }

/* Map view sits on a full-width light-grey band (Kate 2026-10-12), same grey as the list view's results band. */
[data-cae-borrowers-library] .cae-borrowers__map {
  position: relative;
  margin: 40px 0 0;
  padding: 64px 0 80px;
  background: #F3F5F7;
  box-shadow: 0 0 0 100vmax #F3F5F7;
  clip-path: inset(0 -100vmax);
}
[data-cae-borrowers-library] .cae-borrowers__legend { border-color: #567B8E; }

/* On the grey map band the intro holder is white with a yellow rule (Kate 2026-10-12). */
[data-cae-borrowers-library] .cae-borrowers__panel-hint { background: #FFFFFF; border-left-color: #F2A518; }

/* Intro card: white holder, yellow rule, holds the intro line and the legend (Kate 2026-10-12). */
[data-cae-borrowers-library] .cae-borrowers__intro-card {
  order: 1;
  margin: 0 0 28px;
  padding: 32px 28px 32px 32px;
  background: #FFFFFF;
  border-left: 5px solid #F2A518;
}
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__panel-hint {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
}
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__legend {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid #567B8E;
  border-bottom: 0;
}
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__panel-hint[hidden] + .cae-borrowers__legend {
  padding-top: 0;
  border-top: 0;
}

/* Wider intro card so the legend sits on single lines (Kate 2026-10-12). */
@media (min-width: 1024px) {
  [data-cae-borrowers-library] .cae-borrowers__map { grid-template-columns: 400px minmax(0, 1fr); column-gap: 40px; }
}
[data-cae-borrowers-library] .cae-borrowers__intro-card { padding: 36px 32px 36px 36px; }
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__legend { font-size: 20px; line-height: 28px; gap: 10px; }
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__legend li { white-space: nowrap; }

/* Applied search + filters row (site-standard component), full width under the filter row. */
[data-cae-borrowers-library] .cae-borrowers__applied { width: 100%; margin: 16px 0 0; }
[data-cae-borrowers-library] .cae-borrowers__applied[hidden] { display: none !important; }

/* Applied row lines up with the filter row above it (same 978px measure, centred). */
[data-cae-borrowers-library] .cae-borrowers__applied { max-width: 978px; margin-left: auto; margin-right: auto; align-self: center; }

/* ===== Our Borrowers map view, laptop widths 1024–1199 (ClickUp 869fg6109, 2026-10-12) =====
   Kate's ≤1199.98 rule gives the stage `width:auto` + `margin-right:88px`; with her
   `margin-left:auto` a grid item shrink-wraps, and the viewport's width:100% resolves against
   nothing, so the map collapsed to 0x0 at 1024. Here the stage takes the column minus her 88px
   zoom gutter, capped at Impact's 715px, still right-aligned; zoom icons stay outside its right
   edge. ≥1200 (her 572x817 at 1440) and ≤1023.98 (her stacked layout) are not touched. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  [data-cae-borrowers-library] .cae-borrowers__stage { width: min(44.6875rem, calc(100% - 88px)); }
}

/* Loan type pills on the borrower postcards (Kate Shawver, ClickUp 869ew7j93, 2026-10-17 13:32Z: "in the postcards put the
 * loan type in the green pill treatment"): the Story Postcard Program Tag pill, one per loan type, centred under the year. */
[data-cae-borrowers-library] .cae-borrowers__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; }
[data-cae-borrowers-library] .cae-borrowers__pills p.cae-recgrid__chip {
  display: inline-block; box-sizing: border-box; margin: 0; padding: 4.5px 10px 1.5px; border-radius: 999px;
  background: #DCEBD3; color: #004F39; font-family: "Acumin Pro", sans-serif; font-size: 12px; line-height: 18px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* List / Map toggle centred in the content well (Kate 869fjnbqe, 2026-10-18 19:37Z: "the list/view toggle doesn't look
   perfectly centered in the content well"). The drawn row kept its Figma 142px max-width under margin-inline:auto, but
   Kate's Events-matched toggle (List View + 72px switch + Map View, 11px gaps) is ~265px wide, so the row was centred
   and its contents overflowed to the right (+61.6px off centre at 1440 and 1024). The row takes its contents' width. */
.wp-site-blocks:not(#cae-m) [data-cae-borrowers-library] [class*="-generic__row-"]:has(> button.cae-borrowers__view) {
  width: max-content !important; max-width: 100% !important; margin-inline: auto !important;
}

/* ONE CARD PER BORROWER (Kate Shawver, ClickUp 1amzwvgdu2q, 2026-11-29, spec 3): "Loan-type tags: one tag per distinct loan
 * type, side by side in one row. They wrap only if they truly don't fit. Global postcard rule still applies: dates align
 * across a row whether a card has one tag row or two." The tags sit in div.cae-recgrid__chips (inc/cae-borrowers-library.php
 * cae_recent_loans_card()): a wrapping row, 8 gap both ways. The canon's flex-column rule for a div holding chips
 * (kate-global-rules-cae.css STORY POSTCARD CANON) is out-ranked here for this row only. The date-alignment half is the
 * library script's: every visible card of one visual row gets the row's tallest tag-row height as its min-height, so a
 * card whose tags wrap to two rows does not lift its date above its neighbours'. GATED: body.cae-borrower-groups, printed only
 * when cae_borrower_groups_enabled() (inc/cae-borrower-groups-gate.php); :where() keeps the specificity the rules were tuned at. */
:root body:where(.cae-borrower-groups) .wp-site-blocks [data-cae-borrowers-library] [data-cae-borrowers-grid] > .cae-loan-card div.cae-recgrid__chips.cae-recgrid__chips.cae-recgrid__chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  flex: none !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* the years line: "2015 · 2017 · 2025", the post dateline's middle dot (spaces in the markup) */
:where(body.cae-borrower-groups) [data-cae-borrowers-library] .cae-recgrid__date--years .cae-recgrid__date-sep { white-space: pre; }
