/* The people finder (people-finder.js): a sheet of everyone a doorstop asks
   for help, shared by career day and mentorship. Every rule is scoped under
   .bf-page, the flow wrapper, which also lets it outrank the zine chrome's
   `.dl button` reset; the page decides how wide the step around it gets.

   A sheet, not a list of cards: one row per person, columns for who they
   are, why they'd be great, email and links, field and status, and the
   invite on the row. Below ~1000px each row stacks. */

.bf-page .pl-finder { margin-top: 6px; }
.bf-page .pl-top { display: flex; justify-content: flex-end; margin: 8px 0 0; }
@media (max-width: 760px) { .bf-page .pl-top { justify-content: stretch; } .bf-page .pl-top > * { width: 100%; } }
.bf-page .pl-stats-nums { display: flex; gap: 18px; }
.bf-page .pl-stats-nums span { display: grid; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bf-soft); text-align: center; }
.bf-page .pl-stats-nums strong { font-family: var(--dl-font-display); font-size: 30px; line-height: 1.1; letter-spacing: 0; text-transform: none; color: #16130f; }
.bf-page .pl-stats-nums .is-yes strong { color: #148d75; }
.bf-page .pl-meter { height: 10px; margin-top: 8px; border: 2px solid #16130f; background: #fff; }
.bf-page .pl-meter span { display: block; height: 100%; background: #3ECFB0; transition: width .4s ease; }
@media (max-width: 760px) {
  .bf-page .pl-stats-nums { justify-content: space-between; }
}

.bf-page .pl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 10px; }
.bf-page .pl-find:disabled { opacity: .75; cursor: progress; }
.bf-page .pl-focus { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bf-soft); }
.bf-page .pl-focus span { display: inline; }
.bf-page .pl-focus .bf-input { margin: 0; width: auto; min-width: 190px; padding: 8px 10px; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 500; }
@media (max-width: 620px) { .bf-page .pl-focus { margin-left: 0; width: 100%; } .bf-page .pl-focus .bf-input { flex: 1; } }

.bf-page .pl-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 4px 0 10px; }
.bf-page .pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-page .pl-chip {
  padding: 5px 10px; border: 2px solid #16130f; border-radius: 0; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; color: #16130f; cursor: pointer;
}
.bf-page .pl-chip span { display: inline; margin-left: 2px; color: var(--bf-soft); font-weight: 500; }
.bf-page .pl-chip:hover { background: #FDF3D8; }
.bf-page .pl-chip.is-active { background: #16130f; color: #FBF6EC; }
.bf-page .pl-chip.is-active span { color: #FBF6EC; opacity: .7; }

/* the sheet */
.bf-page .pl-sheet { border-top: 2px solid #16130f; border-bottom: 2px solid #16130f; }
.bf-page .pl-sheet-head, .bf-page .pl-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(180px, 1.4fr) minmax(130px, .8fr) 150px 232px 112px;
  gap: 14px;
  align-items: start;
}
.bf-page .pl-sheet-head { padding: 8px 0; border-bottom: 1px solid #16130f; }
.bf-page .pl-sheet-head span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bf-soft); }
.bf-page .pl-sheet-body { list-style: none; padding: 0 !important; margin: 0; max-height: 720px; overflow-y: auto; }
.bf-page .pl-row, .bf-page .bf-solution .pl-row { list-style: none; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bf-line); font-size: 14.5px; line-height: 1.5; color: var(--bf-ink); }
.bf-page .pl-row:last-child { border-bottom: 0; }
.bf-page .pl-row.is-yes { background: #E4F6E9; }
.bf-page .pl-row.is-no { background: #FBF6EC; }
.bf-page .pl-row.is-no .pl-row-person, .bf-page .pl-row.is-no .pl-row-why { opacity: .55; }
.bf-page .pl-row.is-fresh { animation: pl-row-in .5s ease both; }
@keyframes pl-row-in { from { opacity: 0; transform: translateY(-6px); background: #FDF3D8; } to { opacity: 1; transform: none; } }

.bf-page .pl-row-person { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.bf-page .pl-row-person > div { min-width: 0; }
.bf-page .pl-row-person strong { display: block; font-size: 15px; color: #16130f; overflow-wrap: anywhere; }
.bf-page .pl-avatar {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid #16130f; font-size: 13px; font-weight: 700; color: #16130f;
}
.bf-page .pl-row-job { display: block; font-size: 13.5px; color: var(--bf-soft); }
.bf-page .pl-row-tag { display: inline-block; margin-top: 4px; padding: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid #16130f; background: #fff; }
.bf-page .pl-row-tag.is-alumni { background: #E6ECFF; }
.bf-page .pl-row-tag.is-local { background: #FDF3D8; }
.bf-page .pl-row-why { font-size: 14px; }
.bf-page .pl-row-links { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.bf-page .pl-row-links a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bf-accent); }
.bf-page .pl-select { width: 100%; padding: 6px 6px; border: 2px solid #16130f; border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: #16130f; }
.bf-page .pl-row-status { display: flex; flex-wrap: wrap; gap: 4px; }
.bf-page .pl-pill {
  padding: 4px 8px; border: 2px solid #16130f; border-radius: 0; background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #16130f; cursor: pointer;
}
.bf-page .pl-pill:hover { background: #FDF3D8; }
.bf-page .pl-pill.is-active { background: #16130f; color: #FBF6EC; }
.bf-page .pl-row.is-yes .pl-pill.is-active { background: #148d75; border-color: #148d75; }
.bf-page .pl-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.bf-page .pl-invite-btn {
  display: inline-block; padding: 5px 9px; border: 2px solid #16130f; background: #3ECFB0;
  font-size: 13px; font-weight: 700; color: #16130f; text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 #16130f;
}
.bf-page .pl-invite-btn:hover { background: #FDF3D8; }
.bf-page .pl-row-x { width: 28px; height: 28px; padding: 0; border: 2px solid #16130f; border-radius: 0; background: #fff; font-size: 16px; line-height: 1; color: #16130f; cursor: pointer; }

.bf-page .pl-sheet-empty, .bf-page .bf-solution .pl-sheet-empty { list-style: none; margin: 0; padding: 26px 0; text-align: center; font-size: 15px; color: var(--bf-soft); }

/* loading rows: grey bars that shimmer while ten more people load */
.bf-page .pl-row--skeleton { grid-template-columns: 1.25fr 1.3fr .9fr; }
.bf-page .pl-row--skeleton span { display: block; height: 14px; margin: 6px 0; background: linear-gradient(90deg, #efe8da 0%, #fbf6ec 50%, #efe8da 100%); background-size: 200% 100%; animation: pl-shimmer 1.1s linear infinite; }
@keyframes pl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* under ~1000px the sheet becomes stacked rows */
@media (max-width: 999px) {
  .bf-page .pl-sheet-head { display: none; }
  .bf-page .pl-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "person actions" "why why" "links links" "field status";
    gap: 8px 12px;
  }
  .bf-page .pl-row-person { grid-area: person; }
  .bf-page .pl-row-actions { grid-area: actions; }
  .bf-page .pl-row-why { grid-area: why; }
  .bf-page .pl-row-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .bf-page .pl-row-links a { max-width: 100%; }
  .bf-page .pl-row-field { grid-area: field; }
  .bf-page .pl-row-status { grid-area: status; justify-content: flex-end; }
  .bf-page .pl-row--skeleton { grid-template-columns: 1fr; grid-template-areas: none; }
  .bf-page .pl-sheet-body { max-height: none; }
}
@media (max-width: 480px) {
  .bf-page .pl-row { grid-template-areas: "person actions" "why why" "links links" "field field" "status status"; }
  .bf-page .pl-row-status { justify-content: flex-start; }
}

.bf-page .pl-addperson { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.bf-page .pl-addperson .bf-input { flex: 1 1 220px; margin: 0; }
.bf-page .pl-coverage-k { display: inline; margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bf-soft); }

.bf-page .pl-coverage { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.bf-page .pl-cov {
  display: inline-block;
  padding: 3px 9px;
  border: 2px solid #16130f;
  font-size: 13px;
  font-weight: 600;
  color: #16130f;
  background: #fff;
}
.bf-page .pl-cov.is-yes { background: #E4F6E9; }

/* the flow skin underlines and recolors every link in a step
   (.bf-page :is(.bf-step-body ...) a:not(.bf-btn), 0,3,1); these two are buttons */
.bf-page .pl-sheet .pl-row a.pl-invite-btn { text-decoration: none; color: #16130f; }
.bf-page .pl-sheet .pl-row a.pl-li { text-decoration: none; color: #fff; }
/* 16px keeps iPhones from zooming in; on a desktop sheet it crowds the column */
@media (min-width: 1000px) { .bf-page .pl-select { font-size: 14px; } }

/* the name, with a LinkedIn people-search button beside it */
.bf-page .pl-row-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bf-page .pl-row-name strong { display: inline; }
.bf-page .pl-sheet .pl-row a.pl-li {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px;
  background: #0A66C2; color: #fff; border: 1.5px solid #16130f; text-decoration: none;
}
.bf-page .pl-sheet .pl-row a.pl-li:hover { background: #004182; }
.bf-page .pl-li svg { display: block; }

/* email first in the links column: the address, or a button to go find one */
.bf-page .pl-row-email { display: block; }
.bf-page .pl-row-email a { font-weight: 600; }
.bf-page .pl-email-kind { display: block; font-size: 12px; color: var(--bf-soft); white-space: normal; }
.bf-page .pl-find-email {
  padding: 3px 8px; border: 2px solid #16130f; border-radius: 0; background: #FDF3D8;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #16130f; cursor: pointer;
}
.bf-page .pl-find-email:hover { background: #3ECFB0; }

/* neighboring towns: a checkbox beside the search buttons, and the town on rows from elsewhere */
.bf-page .pl-nearby { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--bf-ink); cursor: pointer; }
.bf-page .pl-nearby span { display: inline; }
.bf-page .pl-nearby input { width: 18px; height: 18px; margin: 0; accent-color: #148d75; }
.bf-page .pl-row-town { display: block; font-size: 12.5px; color: var(--bf-soft); }
