/* =====================================================================
   Our Borrowers (VFF › About › Our Borrowers) — restored style fixes
   Re-created 2026-10-16. Load after borrowers-library-cae.css.
   Reference conventions: Impact › Where We Are map popup,
   Atkins Field › Events view toggle, VFF About tab intro copy.
   ===================================================================== */

/* ---------- 1. Intro copy: match the other VFF About tabs ---------- */
.cae-borrowers__intro {
  font-size: 22.8487px !important;   /* same as Program Goals / VFF Team / History body */
  line-height: 32px !important;
  color: #606055 !important;
  text-align: center !important;
  margin: 24px 0 24px !important;
}

/* ---------- 2. Filter bar: breathing room between the two rules ---------- */
/* The column was clipping the 56px pill row inside a 45px gap. */
[class*="ourborrowers-frame-1261152255-generic__column"]:has(> hr + .cae-website-redesign-cae-flow-programs-services-vermontfarmfund-about-ourborrowers-frame-1261152255-generic__row-figma-generic-row-8058-137011 + hr){
  height: auto !important;
}
[class*="ourborrowers-frame-1261152255-generic__column"] > hr + [class*="__row-figma-generic-"] {
  padding: 24px 0 !important;   /* equal space above and below the filter pills */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important;
}

/* ---------- 3. List / Map toggle: match the Events toggle ---------- */
[data-cae-borrowers-library] [data-cae-borrowers-switch][data-cae-borrowers-switch] {            /* switch */
  position: relative !important;
  width: 72px !important;
  height: 38px !important;
  flex: 0 0 72px !important;
  cursor: pointer;
}
[data-cae-borrowers-library] [data-cae-borrowers-switch][data-cae-borrowers-switch] > [class*="__decor-figma-generic-decor"] {   /* track */
  position: absolute !important; inset: 0 !important;
  width: 72px !important; height: 38px !important;
  background: #F2A518 !important;
  border-radius: 100px !important;
}
[data-cae-borrowers-library] [data-cae-borrowers-switch][data-cae-borrowers-switch] > [class*="__dot-figma-generic-dot"] {    /* knob */
  position: absolute !important; top: 4px !important; left: 4px !important;
  width: 30px !important; height: 30px !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 50% !important;
  transition: transform .12s !important;
  transform: translateX(0) !important;
}
[data-cae-borrowers-library] [data-cae-borrowers-switch][data-cae-borrowers-switch].is-map > [class*="__dot-figma-generic-dot"] { transform: translateX(34px) !important; }

.cae-borrowers__view {
  font-family: "Acumin Pro", sans-serif !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  color: #004F39 !important;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cae-borrowers__view:hover { text-decoration: underline; }
.cae-borrowers__view { white-space: nowrap; width: auto !important; flex: 0 0 auto; }
[data-cae-borrowers-switch] ~ * , .cae-borrowers__view { align-self: center; }
/* toggle row spacing (Events: ~17px under filters; here under the rule) */
[class*="ourborrowers-frame-1261152255-generic__row-figma-generic-row-8072"] {
  gap: 11px !important;
  height: 38px !important;
  align-items: center;
  margin-top: 32px !important;
  overflow: visible !important;
}
[class*="ourborrowers-frame-1261152255-generic__row-figma-generic-row-8072"] > * { overflow: visible !important; }

/* ---------- 4. Map popup: anchored over the pin like Impact › Where We Are ---------- */
.cae-borrowers__stage { position: relative; }
.cae-borrowers__pop {
  position: absolute;
  z-index: 30;
  width: 400px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 28px 30px;
  background: #fff;
  border: 1.6667px solid #004F39;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transform: translate(-50%, calc(-100% - 22px)); /* sits above the pin, arrow points down */
  margin: 0;
}
.cae-borrowers__pop[hidden] { display: none; }
/* arrow: green outline triangle with white fill, like Impact */
.cae-borrowers__pop::before,
.cae-borrowers__pop::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0; height: 0;
  border-left: solid transparent;
  border-right: solid transparent;
  border-top: solid;
}
.cae-borrowers__pop::before {
  bottom: -13.66px;
  transform: translateX(calc(-11.67px + var(--arrow-shift, 0px)));
  border-width: 11.67px 11.67px 0;
  border-top-color: #004F39;
}
.cae-borrowers__pop::after {
  bottom: -10.66px;
  transform: translateX(calc(-10px + var(--arrow-shift, 0px)));
  border-width: 10px 10px 0;
  border-top-color: #fff;
}
.cae-borrowers__pop.is-below {
  transform: translate(-50%, 22px);
}
.cae-borrowers__pop.is-below::before { bottom: auto; top: -13.66px; border-top: 0; border-bottom: 11.67px solid #004F39; }
.cae-borrowers__pop.is-below::after  { bottom: auto; top: -10.66px; border-top: 0; border-bottom: 10px solid #fff; }

.cae-borrowers__pop .cae-borrowers__panel-body {
  position: static !important;
  display: flex; flex-direction: column; gap: 16px;
  background: none; padding: 0; margin: 0; border: 0;
}
/* header: title + yellow round close */
.cae-borrowers__pop .cae-borrowers__panel-title {
  order: 0;
  margin: 0;
  padding-right: 36px;
  font-family: "Acumin Pro", sans-serif;
  font-size: 20px; line-height: 28px; font-weight: 700;
  color: #004F39;
}
.cae-borrowers__pop .cae-borrowers__panel-title a { color: inherit; text-decoration: none; }
.cae-borrowers__pop .cae-borrowers__panel-title a:hover { text-decoration: underline; }
.cae-borrowers__pop .cae-borrowers__panel-close {
  position: absolute; top: 30px; right: 30px; left: auto; bottom: auto;
  width: 24px; height: 24px; padding: 0; border: 0;
  border-radius: 50%;
  background: #F2A518 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.4 7.4l9.2 9.2M16.6 7.4l-9.2 9.2' stroke='%23fff' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center/24px no-repeat;
  font-size: 0; color: transparent; cursor: pointer;
}
/* tan detail box (loans + town-centre note + website button) */
.cae-borrowers__pop .cae-pop-box {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 14px 16px 16px;
  background: #F7F4E2;
  border: .8333px solid #D7BD92;
  border-radius: 8px;
}
.cae-borrowers__pop .cae-borrowers__loans {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cae-borrowers__pop .cae-borrowers__loans a {
  font-family: "Acumin Pro", sans-serif;
  font-size: 18px; line-height: 26px; font-weight: 700;
  color: #004F39; text-decoration: underline;
}
.cae-borrowers__pop .cae-borrowers__loans a:hover { text-decoration: none; }
.cae-borrowers__pop .cae-borrowers__approx {
  margin: 0;
  font-family: "Acumin Pro", sans-serif; font-size: 16px; line-height: 24px; color: #4E3F3E;
}
.cae-borrowers__pop .cae-borrowers__website {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px 5px;
  border: 1.6667px solid #004F39; border-radius: 40px;
  font-family: "Acumin Pro", sans-serif; font-size: 16px; line-height: 24px; font-weight: 600;
  color: #004F39; background: transparent; text-decoration: none;
}
.cae-borrowers__pop .cae-borrowers__website:hover { background: #004F39; color: #fff; }

@media (max-width: 781px) {
  .cae-borrowers__pop { width: 300px; padding: 22px 20px; }
  .cae-borrowers__pop .cae-borrowers__panel-close { top: 22px; right: 20px; }
}

/* ---------- 5. Remove the "Meet Our Borrowers" title bar ---------- */
/* Kate 2026-10-16: the rust "Meet Our Borrowers" bar goes away. It is the page's only H1,
   so it is hidden visually but kept for screen readers / SEO. If the block is deleted in the
   editor instead, add a visually-hidden H1 ("Our Borrowers") so the page keeps one. */
[class*="ourborrowers-frame-1261152255-generic__column-figma-generic-column-8058-137015"] {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 6. Toggle: current vs. non-current view ---------- */
/* Current view = bold dark green, not a link-looking state; the other view = regular
   body grey, turns green + underlined on hover/focus so it reads as clickable. */
.cae-borrowers__view {
  font-weight: 400 !important;
  color: #606055 !important;
  text-decoration: none !important;
}
.cae-borrowers__view:hover,
.cae-borrowers__view:focus-visible {
  color: #004F39 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.cae-borrowers__view.is-active,
.cae-borrowers__view[aria-pressed="true"] {
  font-weight: 700 !important;
  color: #004F39 !important;
  text-decoration: none !important;
  cursor: default;
}

/* ---------- 7. The map NEVER shows a scrollbar ---------- */
/* Same as Impact › Where We Are: the viewport clips (overflow hidden) and, when zoomed,
   pans by dragging (borrowers-fixes-cae.js). No scrollbar at any zoom level or width. */
[data-cae-borrowers-library] .cae-borrowers__viewport.cae-borrowers__viewport {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.cae-borrowers__viewport::-webkit-scrollbar,
.cae-borrowers__stage::-webkit-scrollbar,
.cae-borrowers__map::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.cae-borrowers__stage, .cae-borrowers__map { scrollbar-width: none !important; }
.cae-borrowers__viewport.is-zoomed { cursor: grab; touch-action: none; }
.cae-borrowers__viewport.is-zoomed.is-dragging { cursor: grabbing; user-select: none; }
.cae-borrowers__viewport.is-zoomed .cae-borrowers__pin { cursor: pointer; }

/* ---------- 8. Pin hover / active: grow, keep colours (Impact convention) ---------- */
/* Impact: .marker:hover, .marker.is-active { scale(1.35) } with no colour change.
   Replaces the green fill + yellow ring from borrowers-library-cae.css. */
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin {
  transition: transform .15s ease;
}
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin:hover,
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin.is-active,
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin:focus-visible {
  background: #B15533;          /* borrower location: unchanged rust */
  border-color: #fff;
  transform: scale(1.35);
  z-index: 3;
}
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin.is-town-centre:hover,
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin.is-town-centre.is-active,
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin.is-town-centre:focus-visible {
  background: #fff;             /* town centre: unchanged hollow rust ring */
  border-color: #B15533;
}
[data-cae-borrowers-library] .cae-borrowers__pin.cae-borrowers__pin:focus-visible { outline: none; }

/* ---------- 9. Legend intro text always stays visible ---------- */
/* "Explore Vermont Farm Fund borrowers across the region. Select a marker…" must not
   disappear when a pin opens. borrowers-library-cae.js sets [hidden] on it (left over from
   when details replaced it in the side card); details now live in the popup, so keep it. */
[data-cae-borrowers-library] [data-cae-borrowers-hint][hidden] {
  display: block !important;
}
/* keep the divider + spacing under the hint too (library drops them when the hint is [hidden]) */
[data-cae-borrowers-library] .cae-borrowers__intro-card .cae-borrowers__panel-hint[hidden] + .cae-borrowers__legend.cae-borrowers__legend {
  padding-top: 20px !important;
  border-top: 1px solid #567B8E !important;
}

/* ---------- 10. Popup: loans read as clickable case studies ---------- */
/* Eyebrow label + one white row card per loan inside the cream box (postcard-on-cream look).
   Whole row is the link; hover = green border, arrow fills green and nudges right. */
.cae-borrowers__pop .cae-pop-eyebrow {
  margin: 0 0 -2px;
  font-family: "Acumin Pro", sans-serif;
  font-size: 14px; line-height: 20px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #B15533;
}
.cae-borrowers__pop .cae-borrowers__loans.is-enhanced {
  align-self: stretch;
  gap: 8px;
}
.cae-borrowers__pop .cae-borrowers__loans.is-enhanced li { margin: 0; padding: 0; }
.cae-borrowers__pop .cae-borrowers__loans a.cae-loan {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px;
  background: #fff;
  border: .8333px solid #D7BD92;
  border-radius: 6px;
  text-decoration: none !important;
  color: #004F39;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cae-borrowers__pop a.cae-loan:hover,
.cae-borrowers__pop a.cae-loan:focus-visible {
  border-color: #004F39;
  box-shadow: 0 2px 8px rgba(0,79,57,.12);
  outline: none;
}
.cae-borrowers__pop .cae-loan__year {
  flex: 0 0 auto;
  padding: 3px 7px 1px;
  border-radius: 4px;
  background: #B15533; color: #fff;
  font-family: "Acumin Pro Condensed", "Acumin Pro", sans-serif;
  font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: .02em;
}
.cae-borrowers__pop .cae-loan__body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
}
.cae-borrowers__pop .cae-loan__type {
  font-family: "Acumin Pro", sans-serif;
  font-size: 17px; line-height: 22px; font-weight: 700; color: #004F39;
}
.cae-borrowers__pop .cae-loan__status {
  font-family: "Acumin Pro", sans-serif;
  font-size: 14px; line-height: 18px; color: #606055;
}
.cae-borrowers__pop .cae-loan__go {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.6667px solid #004F39; border-radius: 50%;
  color: #004F39; background: transparent;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.cae-borrowers__pop a.cae-loan:hover .cae-loan__go,
.cae-borrowers__pop a.cae-loan:focus-visible .cae-loan__go {
  background: #004F39; color: #fff; transform: translateX(3px);
}
/* website pill sits a little apart from the case-study list */
.cae-borrowers__pop .cae-pop-box .cae-borrowers__website { margin-top: 4px; }

/* ---------- 11. Section explainer: light tan callout under the intro ---------- */
/* Makes clear what this section links to (loan case studies). Cream #F7F4E2 like the
   other cream panels; centred, same body size as the intro but set apart. */
.cae-borrowers__explainer {
  margin: 0 0 40px !important;
  padding: 20px 32px;
  background: #F7F4E2;
  border-radius: 8px;
  text-align: center;
  font-family: "Acumin Pro", sans-serif;
  font-size: 20px; line-height: 28px;
  color: #4E3F3E;
}
.cae-borrowers__explainer strong { color: #004F39; font-weight: 700; }
@media (max-width: 781px) {
  .cae-borrowers__explainer { padding: 16px 20px; font-size: 18px; line-height: 26px; }
}

/* ---------- 12. List view postcards: same white-framed postcard as the rest of the site ---------- */
/* Reference: Impact › Stories of Impact cards (.cae-recgrid__cardbox): photo inset in a 16px
   white frame (16 top/sides), 200px tall, object-fit cover on frost #F3F5F7; text block
   16px 16px 40px; title 22.85/32 regular green; meta 16/24 grey. Card shadow + hover stay. */
[data-cae-borrowers-library] .cae-borrowers__card.cae-borrowers__card {
  padding: 0 !important;
  gap: 0 !important;
  background: #fff;
}
[data-cae-borrowers-library] .cae-borrowers__card .cae-borrowers__media {
  padding: 16px 16px 0 !important;
  margin: 0 !important;
  background: #fff !important;
  height: auto !important;
}
[data-cae-borrowers-library] .cae-borrowers__card .cae-borrowers__media img {
  display: block;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  background: #F3F5F7;
}
[data-cae-borrowers-library] .cae-borrowers__card .cae-borrowers__text {
  padding: 16px 16px 40px !important;
  gap: 0 !important;
}
[data-cae-borrowers-library] .cae-borrowers__card .cae-borrowers__title {
  margin: 0 0 12px !important;
  font-size: 22.8487px !important;
  line-height: 32px !important;
  font-weight: 400 !important;
  color: #004F39 !important;
}
[data-cae-borrowers-library] .cae-borrowers__card .cae-borrowers__meta {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #606055 !important;
}
