/* people.css: the shared real-people pieces used on every public page.
   .pm      photo mosaic, one real person per kind of borrower (Wikimedia Commons photos, credited on
            each page that shows them; the people are not Finclus customers)
   .pm-strip  the same tiles as a 4×2 strip, for narrow columns and page banners
   .seal    ink seals for the four kinds of experts on a case (needs the #ink SVG filter in the page)
   .team-line  seals + one sentence, under a page's lead */
.pm { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); grid-template-areas:"f b b" "f m p" "d w a"; gap:10px; width:100%; height:100%; }
.pm-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); grid-template-areas:"f b b m" "f d w p"; gap:8px; width:100%; aspect-ratio:16/8; }
@media (min-width:900px) { .pm-strip.pm-wide { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:1fr; grid-template-areas:"f b m p d w"; aspect-ratio:6/1.35; } }
.pm-t { position:relative; display:block; overflow:hidden; border-radius:22px; background:#dfe8e1; text-decoration:none; isolation:isolate; }
.pm-strip .pm-t { border-radius:16px; }
.pm-t img, .pm-t video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; transition:transform .7s cubic-bezier(.23,1,.32,1); }
.pm-t:hover img, .pm-t:hover video { transform:scale(1.06); }
.pm-t span { position:absolute; left:8px; top:8px; padding:4px 10px; border-radius:999px; background:rgba(10,20,14,.82); color:#fff; font-size:12px; font-weight:700; line-height:1.2; }
.pm-f { grid-area:f; } .pm-b { grid-area:b; } .pm-m { grid-area:m; } .pm-p { grid-area:p; } .pm-d { grid-area:d; } .pm-w { grid-area:w; } .pm-a { grid-area:a; }
.pm-f img { object-position:50% 30%; } .pm-b img { object-position:50% 40%; } .pm-d img { object-position:62% 30%; } .pm-p img { object-position:68% 40%; } .pm-m img { object-position:70% 50%; }
@media (max-width:520px) { .pm, .pm-strip { gap:6px; } .pm-t, .pm-strip .pm-t { border-radius:14px; } .pm-t span { left:5px; top:5px; padding:3px 7px; font-size:10px; } }
@media (prefers-reduced-motion: no-preference) {
  .pm-t { animation:pmIn .8s cubic-bezier(.23,1,.32,1) both; }
  .pm-b { animation-delay:.06s; } .pm-m { animation-delay:.12s; } .pm-p { animation-delay:.18s; } .pm-d { animation-delay:.24s; } .pm-w { animation-delay:.3s; } .pm-a { animation-delay:.36s; }
}
@keyframes pmIn { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:none; } }

/* ink seals, one per kind of expert */
.seal { --paper:#fff; display:inline-grid; place-items:center; flex:none; width:48px; height:48px; border-radius:50%; border:2px solid currentColor; background:var(--paper); box-shadow:inset 0 0 0 3px var(--paper), inset 0 0 0 4px currentColor; font-style:normal; font-weight:700; font-size:11px; letter-spacing:.06em; filter:url(#ink); }
.ink-ias { color:#B42318; } .ink-ca { color:#1D4ED8; } .ink-law { color:#6D28D9; } .ink-bank { color:#15803D; }
[data-theme="dark"] .ink-ias { color:#F97066; } [data-theme="dark"] .ink-ca { color:#7CA6FF; } [data-theme="dark"] .ink-law { color:#B794F6; } [data-theme="dark"] .ink-bank { color:#4ADE80; }
.team-line { display:flex; align-items:center; gap:14px; margin-top:16px; font-size:14px; font-weight:600; line-height:1.4; color:inherit; }
.team-seals { display:flex; flex:none; }
.team-seals .seal { --paper:var(--team-paper, #fff); width:38px; height:38px; font-size:9px; margin-left:-9px; } .team-seals .seal:first-child { margin-left:0; }
.team-line small { display:block; font-weight:500; opacity:.8; margin-top:2px; }

/* photo credits under a page that shows the mosaic */
.pm-credits { font-size:12px; opacity:.85; margin-top:10px; } .pm-credits summary { cursor:pointer; font-weight:600; min-height:36px; display:inline-flex; align-items:center; }
.pm-credits ul { display:grid; gap:3px; margin:4px 0 0; padding:0; list-style:none; } .pm-credits a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
/* on a dark band: lighter inks so the seals stay legible */
.on-dark .ink-ias { color:#FDA29B; } .on-dark .ink-ca { color:#A4C2FF; } .on-dark .ink-law { color:#D6BBFB; } .on-dark .ink-bank { color:#86EFAC; }
