/* ============================================================================
   team.css — boreal.vc Team page as one long page (/our-team, /fr/our-team).
   A sticky shortcut row, then four full-width bands: Team (ink) → Advisors (forest grey)
   → LPAC (paper-2) → Guild (paper). The Team and Advisors cards keep their Webflow styles;
   this file only adds the frame around them, the LPAC cards and the Guild matrix.
   Same tokens as resources.css. Hairlines, no rounded cards, one accent (lime) used once:
   the mark under the current shortcut.
   Markup: lib/make-team-templates.mjs. Data: lib/site-schema.mjs (TEAM). Spy: team.js.
   ============================================================================ */
:root {
  --tm-ink: #011814;
  --tm-paper: #f9f7f1;
  --tm-paper-2: #f0efea;
  --tm-muted: #26403d;
  --tm-lime: #c7f29c;
  --tm-rule: rgba(1, 24, 20, .16);
  --tm-serif: 'Crimson Pro', Georgia, serif;
  --tm-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --tm-nav-h: 70px;      /* the site's fixed nav bar */
  --tm-jump-h: 52px;     /* the shortcut row */
}

/* The site's inline "html, body { overflow-x: hidden }" makes body a scroll container, which
   stops position: sticky. clip gives the same protection without one (same fix as resources.css). */
html:has(> body.body-team), body.body-team { overflow-x: clip; }
.body-team .main-content { align-items: stretch; }
.body-team .footer_bg { margin-top: 0; }

.tm-wrap { width: 100%; max-width: 972px; margin: 0 auto; padding: 0 10px; }
@media (min-width: 1280px) { .tm-wrap { max-width: 1350px; } }
@media (min-width: 1920px) { .tm-wrap { max-width: 1565px; } }
@media (max-width: 991px)  { .tm-wrap { padding: 0 20px; } }

/* ---- shortcut row: the old tab menu, now anchors, stuck under the nav ---- */
.tm-jump {
  position: sticky; top: var(--tm-nav-h); z-index: 800;      /* below the nav (900), above the bands */
  margin-top: var(--tm-nav-h);
  background: var(--tm-ink);
  border-bottom: 1px solid rgba(249, 247, 241, .14);
}
.tm-jump-in {
  display: flex; align-items: stretch; gap: 30px; height: var(--tm-jump-h);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-jump-in::-webkit-scrollbar { display: none; }
.tm-jump-link {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  font-family: var(--tm-sans); font-size: 16px; line-height: 1; letter-spacing: .01em;
  color: var(--tm-paper); opacity: .72; text-decoration: none;
  border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.tm-jump-link:hover { opacity: 1; }
.tm-jump-link[aria-current="true"] { opacity: 1; border-bottom-color: var(--tm-lime); }
.tm-jump-link:focus-visible { outline: 2px solid var(--tm-lime); outline-offset: -4px; }

/* ---- bands. No z-index / transform / overflow here: the Team modal is position: fixed inside
        the Team band and must stay in the page's own stacking context. ---- */
.tm-band { position: relative; width: 100%; padding: 64px 0 88px; }
.tm-band--team     { background: var(--tm-ink);     color: var(--tm-paper); padding-top: 56px; }
.tm-band--advisors { background: var(--tm-muted);   color: var(--tm-paper); }
.tm-band--lpac     { background: var(--tm-paper-2); color: var(--tm-ink); }
.tm-band--guild    { background: var(--tm-paper);   color: var(--tm-ink); border-top: 1px solid var(--tm-rule); }
/* Section ids sit on these: both a direct link and Webflow's own smooth scroll (which ignores
   scroll-margin) then stop with the band's top just under the nav + shortcut row. */
.tm-anchor { position: absolute; left: 0; top: calc(-1 * (var(--tm-nav-h) + var(--tm-jump-h))); width: 0; height: 0; }

.tm-eyebrow {
  font-family: var(--tm-serif); font-weight: 200; font-size: 18px; line-height: 130%;
  letter-spacing: .2em; text-transform: uppercase; color: inherit; margin: 0 0 18px;
}
.tm-lead { max-width: 760px; }
.tm-band--lpac .heading, .tm-band--guild .heading { color: var(--tm-ink); }
/* Webflow's advisor-hover interaction leaves every .card_component at .95 opacity; with all
   sections on one page that would dim the Team cards for good. */
[data-tm-section="team"] .card_component { opacity: 1 !important; }

/* ---- shared cell parts (LPAC cards + Guild cells) ---- */
.tm-grid { list-style: none; margin: 0; padding: 0; display: grid; }
.tm-grid > li { margin: 0; padding: 0; min-width: 0; }
.tm-card-link, .tm-cell-link { color: inherit; text-decoration: none; }
.tm-photo { position: relative; width: min(140px, 100%); aspect-ratio: 1 / 1; overflow: hidden; background: rgba(1, 24, 20, .07); }
.tm-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1); }
.tm-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--tm-serif); font-weight: 200; font-size: 44px; letter-spacing: .04em; color: var(--tm-muted);
}
.tm-name { font-family: var(--tm-serif); font-weight: 300; font-size: 22px; line-height: 118%; color: var(--tm-ink); margin: 16px 0 5px; }
.tm-role { font-family: var(--tm-sans); font-weight: 400; font-size: 13px; line-height: 145%; color: var(--tm-muted); }
.tm-card-link:hover .tm-photo img, .tm-cell-link:hover .tm-photo img,
.tm-card-link:focus-visible .tm-photo img, .tm-cell-link:focus-visible .tm-photo img { filter: none; }
.tm-card-link:focus-visible, .tm-cell-link:focus-visible { outline: 2px solid var(--tm-ink); outline-offset: 4px; }

/* ---- LPAC: small cards, institution in text, fund label under a hairline ---- */
.tm-grid--lpac { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; }
.tm-card-link { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.tm-photo--lpac { width: min(160px, 100%); }
.tm-card .tm-name { font-size: 24px; }
.tm-inst { font-family: var(--tm-sans); font-weight: 600; font-size: 13px; line-height: 140%; color: var(--tm-ink); margin: 8px 0 14px; }
.tm-fund {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--tm-rule);    /* margin auto: labels line up along each row */
  font-family: var(--tm-sans); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tm-muted);
}

/* ---- Guild: a matrix. Every cell draws its own right + bottom hairline; the list overhangs
        the wrapper by 1px on the right and bottom and the wrapper clips it, so only the inner
        rules show, for any count (a short last row still gets a full rule above it). ---- */
.tm-matrix { overflow: hidden; }   /* hidden (not clip): also stops the list's negative margin collapsing through */
.tm-grid--guild { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.tm-cell { border-right: 1px solid var(--tm-rule); border-bottom: 1px solid var(--tm-rule); }
.tm-cell-link { display: flex; flex-direction: column; height: 100%; padding: 26px 20px 22px; }
div.tm-cell-link { cursor: default; }
a.tm-cell-link:hover { background: var(--tm-paper-2); }
.tm-cell .tm-name { font-size: 21px; }
.tm-co { margin-top: auto; padding-top: 16px; min-height: 40px; display: flex; align-items: flex-end; }
.tm-logo { display: block; width: auto; height: auto; max-width: min(118px, 100%); max-height: 24px; object-fit: contain; object-position: left bottom; filter: brightness(0); opacity: .78; }
.tm-co-name { font-family: var(--tm-sans); font-weight: 600; font-size: 11px; line-height: 130%; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-ink); opacity: .78; }

@media (max-width: 1279px) {
  .tm-grid--guild { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .tm-band { padding: 52px 0 68px; }
  .tm-grid--lpac { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 767px) {
  .tm-grid--guild { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-cell-link { padding: 20px 16px 18px; }
  .tm-jump-in { gap: 24px; }
}
@media (max-width: 479px) {
  .tm-band { padding: 44px 0 56px; }
  .tm-cell .tm-name { font-size: 19px; }
  .tm-card .tm-name { font-size: 21px; }
  .tm-cell-link { padding: 18px 12px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tm-photo img { transition: filter .35s ease; }
  .tm-jump-link { transition: opacity .2s ease, border-color .2s ease; }
  a.tm-cell-link { transition: background-color .25s ease; }
}
