/* S1 People (s1-people.js). The page head and filter bar are the approved mockup's, drawn by redesign-v3.css: .hd .hdr .hda .tabs (Kit.groupHead), .fbar .seg .srch .btn;
 * a person's page uses its .blk .bh in one column. Here: the directory table and Cards, the filter fold, and the person page's header, project groups and lists. */
.s1pp-host { display: block; }
.s1p .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s1p [data-s1pp-body] { min-width: 0; } /* a grid item: nowrap rows must not widen the page */
.s1pp-tools { padding: calc(16px * var(--s1-scale, 1)) var(--gut) 0; }
.s1pp-segb { flex: none; }
.s1pp-tools .srch { margin: 0; flex: 1 1 220px; max-width: 340px; }
.s1pp-tools .srch input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); }
.s1pp-fbtn { flex: none; }
.s1pp-fold { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: calc(10px * var(--s1-scale, 1)); }
.s1pp-fold[data-folded] { display: none; } /* not [hidden]: s1-base forces that to display:none */
.s1pp-ghost { display: inline-flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); font-size: var(--s1-fs-1); cursor: pointer; }
.s1pp-ghost .n { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---- The directory table (List): one dense row per person, a grid template built from the columns this viewer has (data-c), so the header and every
 * row line up. Name carries the email under it, Role the school under it; text wraps, never cuts. The name link covers the row; the email and the
 * buttons sit above it. The table answers to its own width: Training goes under 1000px, and under 700px a row folds to three short lines. ---- */
[data-s1pp-body] { container: s1pp / inline-size; }
.s1pp-tbl { --c-training: ; --c-last: ; --c-act: ; --gap: 18px; max-width: 1800px; font-size: var(--s1-fs-2);
  --cols: minmax(220px, 1.3fr) minmax(180px, 1.2fr) 112px var(--c-training) var(--c-last) var(--c-act); }
.s1pp-tbl[data-c~="training"] { --c-training: 168px; }
.s1pp-tbl[data-c~="last"] { --c-last: 148px; }
.s1pp-tbl[data-c~="act"] { --c-act: 104px; }
.s1pp-tbl[data-c~="manage"] { --c-act: 186px; } /* fixed, so every row's buttons line up whatever that row offers */
.s1pp-th, .s1pp-row { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: center; }
.s1pp-th { position: sticky; top: 52px; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); padding: calc(10px * var(--s1-scale, 1)) 0 calc(8px * var(--s1-scale, 1)); } /* 52px: the top bar it sticks under */
.s1pp-th > * { font: 650 var(--s1-fs-1)/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: left; white-space: nowrap; min-width: 0; }
.s1pp-th button { display: inline-flex; align-items: center; gap: 4px; justify-self: start; border: 0; background: none; padding: 2px 0; margin: 0; cursor: pointer; border-radius: 4px; }
.s1pp-th button:hover, .s1pp-th button.on { color: var(--ink); }
.s1pp-th button .ic { width: 13px; height: 13px; }
.s1pp-th .c-name { padding-left: calc(40px * var(--s1-scale, 1)); } /* over the names, not the initials */
.s1pp-row { position: relative; min-height: 44px; padding: calc(7px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); line-height: 1.35; }
.s1pp-row:hover { background: var(--well); box-shadow: -12px 0 0 var(--well), 12px 0 0 var(--well); }
.s1pp-row:hover .s1pp-nl b { text-decoration: underline; text-underline-offset: 3px; }
.s1pp-row > span { min-width: 0; overflow-wrap: anywhere; }
.s1pp-row .c-name { display: flex; align-items: center; gap: calc(12px * var(--s1-scale, 1)); }
.s1pp-row .c-name .av { width: 28px; height: 28px; font-size: var(--s1-fs-1); flex: none; }
.s1pp-row .c-nm { display: grid; min-width: 0; }
.s1pp-nl { color: var(--ink); text-decoration: none; }
.s1pp-nl::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the person */
.s1pp-nl b { font-weight: 650; }
.s1pp-row .c-contact, .s1pp-row .c-act { position: relative; z-index: 1; }
.s1pp-row .c-contact { justify-self: start; color: var(--mute); font-size: var(--s1-fs-1); text-decoration: none; overflow-wrap: break-word; } /* breaks after @ and dots (a <wbr> there), mid-word only when one piece is wider than the column */
.s1pp-row .c-contact:hover { color: var(--ink); text-decoration: underline; }
.s1pp-row .c-role { display: grid; }
.s1pp-row .c-school { color: var(--mute); font-size: var(--s1-fs-1); }
.s1pp-row .c-sub { display: none; }
.s1pp-row .c-projects { color: var(--ink); font-variant-numeric: tabular-nums; }
.s1pp-row .c-last { font-variant-numeric: tabular-nums; white-space: nowrap; }
.s1pp-row .c-act { display: flex; gap: 6px; justify-content: flex-end; }
.s1pp-row .c-act .btn { white-space: nowrap; }
.s1pp-row .st { font-size: inherit; max-width: 100%; }
.st.s1pp-fine { color: var(--ink-2); font-weight: 500; } .st.s1pp-fine .ic { color: var(--mute); } .st.s1pp-ok .ic { color: var(--ok); } /* nothing to do: the tick is green, the words stay quiet */
.s1pp-tools .k-dd:has(.s1pp-sortsel) { display: none; } /* the header row sorts; a phone has none, so the choice shows there (below) */
@container s1pp (max-width: 1000px) { .s1pp-tbl { --c-training: ; } .s1pp-tbl .c-training { display: none; } }
@container s1pp (min-width: 1500px) { .s1pp-tbl { font-size: var(--s1-fs-3); --gap: 26px; } .s1pp-row .c-name .av { width: 30px; height: 30px; } .s1pp-th .c-name { padding-left: calc(42px * var(--s1-scale, 1)); } }
@container s1pp (max-width: 700px) {
  .s1pp-th { display: none; }
  .s1pp-tbl { font-size: var(--s1-fs-2); }
  .s1pp-row { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "av name last" "av sub act" "av mail act"; column-gap: 12px; row-gap: 0; min-height: 0; padding: 5px 0; align-items: start; }
  .s1pp-row:hover { box-shadow: none; background: none; }
  .s1pp-row .c-name, .s1pp-row .c-nm { display: contents; }
  .s1pp-row .c-name .av { grid-area: av; width: 32px; height: 32px; margin-top: 2px; }
  .s1pp-row .s1pp-nl { grid-area: name; font-size: var(--s1-fs-3); line-height: 19px; min-width: 0; }
  .s1pp-row .c-contact { grid-area: mail; line-height: 16px; }
  .s1pp-row .c-sub { display: block; grid-area: sub; color: var(--ink-2); line-height: 17px; }
  .s1pp-row .c-sub .st { display: inline-flex; font-size: var(--s1-fs-1); }
  .s1pp-row .c-role, .s1pp-row .c-projects, .s1pp-row .c-training { display: none; }
  .s1pp-row .c-last { grid-area: last; justify-self: end; font-size: var(--s1-fs-1); color: var(--mute); line-height: 19px; }
  .s1pp-row .c-act { grid-area: act; align-self: end; gap: 4px; }
  .s1pp-row .c-act .btn { min-height: 34px; min-width: 34px; padding: 0; justify-content: center; } /* icon and name for a screen reader; the email keeps the width */
  .s1pp-row .c-act .s1pp-al { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Cards: the same people as faces, a grid of whole-card links divided by hairlines (no box per person) ---- */
.s1pp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 calc(36px * var(--s1-scale, 1)); max-width: 1920px; }
.s1pp-card { min-width: 0; border-bottom: 1px solid var(--line-soft); display: flex; }
.s1pp-cardlink { flex: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: calc(14px * var(--s1-scale, 1)); align-items: start; padding: calc(16px * var(--s1-scale, 1)) 0; color: var(--ink-2); text-decoration: none; min-width: 0; }
.s1pp-cardlink .av.l { width: 44px; height: 44px; font-size: var(--s1-fs-3); }
.s1pp-cardt { display: grid; gap: 2px; min-width: 0; font-size: var(--s1-fs-2); line-height: 1.4; }
.s1pp-cardt > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1pp-name { font: 650 var(--s1-fs-4)/1.3 var(--ui); color: var(--ink); }
.s1pp-cardlink:hover .s1pp-name { text-decoration: underline; text-underline-offset: 3px; }
.s1pp-inst::before { content: " \00b7  "; }
.s1pp-inst { color: var(--mute); }
.s1pp-cwork { color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.s1pp-cskills::before { content: "Skills: "; }
.s1pp-cnames::before { content: "  \2014  "; white-space: pre; }
.s1pp-card .s1pp-plus { flex: 1; border-bottom: 0; padding: calc(16px * var(--s1-scale, 1)) 0; grid-template-columns: 44px minmax(0, 1fr); gap: calc(14px * var(--s1-scale, 1)); cursor: pointer; }
.s1pp-card .s1pp-plus .av.l { width: 44px; height: 44px; }

/* ---- A person's page: one column on the page's left edge (--gut), no side column. The header says who they are (photo, name, role and school,
 * contact, a line of bio, skills) and what you can do; then blocks in reading order: Now (your own page), Projects by status, About, Publications,
 * Outputs, Recent activity, Account (your own page). A block is a heading and its rows, divided by a hairline; nothing is boxed. ---- */
.s1pp-who { display: flex; gap: calc(20px * var(--s1-scale, 1)); align-items: flex-start; min-width: 0; }
.s1pp-who .av.s1pp-hav { width: 72px; height: 72px; font-size: var(--s1-fs-6); margin-top: 2px; }
.s1pp-whot { min-width: 0; }
.s1pp-who h1 { overflow-wrap: anywhere; }
.hd .s1pp-hero-meta { margin-top: 6px; color: var(--ink); font-weight: 600; }
.hd .s1pp-hero-meta .sch { font-weight: 500; }
.hd .s1pp-contact { margin-top: 4px; font-size: var(--s1-fs-2); overflow-wrap: anywhere; }
.hd .s1pp-lede { margin-top: 10px; max-width: 70ch; color: var(--ink-2); }
.hd .s1pp-skills { margin-top: 4px; font-size: var(--s1-fs-2); }
.hd .s1pp-skills .mu { margin-right: 6px; }
.s1pp-hacts { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)); margin-top: 14px; }
.s1pp-page { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.s1pp-page > .blk, .s1pp-page > [data-s1pp-requests] > .blk { padding: calc(20px * var(--s1-scale, 1)) var(--gut) calc(22px * var(--s1-scale, 1)); border-top: 1px solid var(--line-soft); }
.s1pp-page > .blk:first-child, .s1pp-page > div:empty + .blk, .s1pp-page > div:empty + div:empty + .blk { border-top: 0; }
.s1pp-page [data-s1pp-invite-state]:not(:empty) { padding: calc(16px * var(--s1-scale, 1)) var(--gut) 0; }
.s1pp-page .blk > * { max-width: 980px; }
.s1pp-page .bh { font-size: var(--s1-fs-4); margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s1pp-pnote { font: 500 var(--s1-fs-2)/1.3 var(--ui); color: var(--mute); }
.s1pp-bio { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-width: 76ch; font-size: var(--s1-fs-3); }
.s1pp-none { margin: 0; font-size: var(--s1-fs-3); }
/* Now: one line per thing, an icon in the margin. */
.s1pp-now { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(8px * var(--s1-scale, 1)); font-size: var(--s1-fs-3); }
.s1pp-now li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.s1pp-now li > .ic { color: var(--mute); transform: translateY(3px); }
.s1pp-now .late { font-weight: 650; }
.s1pp-nowp [data-s1-pauses]:not(:empty) { margin-top: 12px; }
/* Projects: status buttons with counts, then the chosen status's rows: the title (the link) and, quietly, its phase and their part when it is not the usual one. */
.s1pp-pgseg { margin: 0 0 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.s1pp-pgh { display: flex; align-items: baseline; gap: calc(8px * var(--s1-scale, 1)); margin: 0; padding-bottom: calc(7px * var(--s1-scale, 1)); border-bottom: 1px solid var(--line); font: 650 var(--s1-fs-1)/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.s1pp-pgh .n { font: 650 var(--s1-fs-1)/1 var(--ui); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.s1pp-projs { list-style: none; margin: 0; padding: 0; display: grid; }
.s1pp-proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: calc(16px * var(--s1-scale, 1)); align-items: baseline; padding: calc(7px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); min-width: 0; font-size: var(--s1-fs-3); }
.s1pp-pg[data-folded] .s1pp-proj[data-more] { display: none; }
.s1pp-pt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1pp-pph { color: var(--mute); font-size: var(--s1-fs-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.s1pp-pgmore { margin: 8px 0 0 -9px; }
/* Publications and outputs. */
.s1pp-outs { list-style: none; margin: 0; padding: 0; display: grid; }
.s1pp-out { display: grid; gap: 3px; padding: calc(11px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--line-soft); min-width: 0; font-size: var(--s1-fs-3); }
.s1pp-out:first-child { border-top: 0; padding-top: 0; }
.s1pp-out b, .s1pp-status { overflow-wrap: anywhere; }
.s1pp-outmeta { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)); align-items: center; font-size: var(--s1-fs-2); }
.s1pp-oj { font-style: italic; }
.s1pp-olinks { display: flex; flex-wrap: wrap; gap: calc(14px * var(--s1-scale, 1)); font-size: var(--s1-fs-2); }
.s1pp-olinks a { font-weight: 600; }
/* Recent activity: a day heading, then "3:42 PM  Reordered the author list on <project>." */
.s1pp-actlist { list-style: none; margin: 0; padding: 0; display: grid; font-size: var(--s1-fs-3); }
.s1pp-aday { font: 650 var(--s1-fs-1)/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 12px 0 4px; }
.s1pp-aday:first-child { padding-top: 0; }
.s1pp-act { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 4px 0; align-items: baseline; }
.s1pp-act time { color: var(--mute); font-size: var(--s1-fs-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s1pp-act > span { overflow-wrap: anywhere; line-height: 1.45; }
.s1pp-act a.ob, .s1pp-now a.ob, .s1pp-contact a.ob { display: inline; min-height: 0; padding-block: 0; }
/* Account: the four places you change it, two to a row. */
.s1pp-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12px * var(--s1-scale, 1)) calc(28px * var(--s1-scale, 1)); font-size: var(--s1-fs-3); }
.s1pp-links li { display: grid; gap: 1px; }
.s1pp-links span { font-size: var(--s1-fs-2); }
.s1pp-login { margin: 14px 0 0; font-size: var(--s1-fs-2); overflow-wrap: anywhere; }
.s1pp-stack { display: grid; gap: calc(10px * var(--s1-scale, 1)); }
.s1pp-line { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }

/* Requests on a person's page (reviewers only): one row per request; stacked on a phone. */
.s1pp-rqlist { list-style: none; margin: 0; padding: 0; }
.s1pp-rq { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: calc(6px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); align-items: center; padding: calc(12px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--line-soft); }
.s1pp-rq-main { display: grid; gap: 2px; min-width: 0; }
.s1pp-rq-t { font-weight: 650; overflow-wrap: anywhere; }
.s1pp-rq-msg { font-size: var(--s1-fs-1); color: var(--mute); overflow-wrap: anywhere; }
.s1pp-rq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }
.s1pp-rqpast > summary { cursor: pointer; padding: calc(12px * var(--s1-scale, 1)) 0; font-weight: 650; list-style-position: inside; }

@media (max-width: 760px) {
  .s1pp-grid { grid-template-columns: minmax(0, 1fr); }
  .s1pp .fbar.s1pp-tools .seg { flex-wrap: wrap; overflow: visible; max-width: 100%; width: 100%; } /* wraps, never scrolls inside */
  .s1pp-key { display: none; } /* every row says its role in words on a phone */
  .s1pp-tools .srch { flex: 1 1 0; min-width: 0; max-width: none; width: auto; padding: 0 8px 0 10px; justify-content: flex-start; margin-left: 0; background: var(--well); border-color: var(--line-soft); } /* the shell's phone rule shrinks every .srch to the top bar's icon */
  .s1pp-tools .k-dd:has(.s1pp-sortsel) { display: inline-flex; }
  /* The page head and the filter bar each keep to one line: layout buttons show their icon only, search and Filter share a row. */
  .s1pp .hda { flex-wrap: nowrap; width: 100%; }
  .s1pp .hda .k-dd { flex: 1 1 0; min-width: 0; } .s1pp .hda .k-dd .k-dd-btn { width: 100%; min-width: 0; }
  .s1pp-segl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .s1pp .hda .seg { margin-left: auto; flex: none; }
  .s1pp-tools .s1pp-ghost { flex: 1 1 100%; }
  /* The photo sits beside the name only; the lines under it use the full width of the screen and wrap, never cut. */
  .s1pp-who { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; align-items: center; }
  .s1pp-whot { display: contents; }
  .s1pp-who .av.s1pp-hav { width: 52px; height: 52px; font-size: var(--s1-fs-4); margin: 0; grid-row: 1 / span 2; }
  .s1pp-whot > .s1pp-back, .s1pp-whot > h1 { grid-column: 2; }
  .s1pp-whot > .s1pp-back { margin-bottom: 2px; align-self: end; } .s1pp-whot > h1 { align-self: start; }
  .s1pp-whot > .sub, .s1pp-whot > .s1pp-hacts { grid-column: 1 / -1; }
  .hd .sub.s1pp-hero-meta { margin-top: 12px; white-space: normal; overflow: visible; display: block; }
  .hd .s1pp-hero-meta .sch { white-space: normal; }
  .hd .sub.s1pp-lede { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: normal; }
  .s1pp-hacts .btn { min-height: 44px; flex: 1 1 auto; }
  .s1pp-proj { grid-template-columns: minmax(0, 1fr); gap: 1px 12px; padding: 10px 0; }
  .s1pp-pph { text-align: left; }
  .s1pp-links { grid-template-columns: minmax(0, 1fr); }
  .s1pp-act { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .s1pp-proj { position: relative; }
  .s1pp-proj a.s1pp-pt { display: block; min-height: 0; padding-block: 0; margin-block: 0; }
  .s1pp-proj a.s1pp-pt::after { content: ""; position: absolute; inset: 0; transform: none; width: auto; height: auto; left: 0; top: 0; } /* the row is the one link's touch target */
  .s1pp-pt { grid-column: 1 / -1; white-space: normal; font-size: var(--s1-fs-4); line-height: 1.35; }
  .s1pp-pgmore { min-height: 44px; }
  .s1pp-rq { grid-template-columns: minmax(0, 1fr); }
  .s1pp-rq-act .btn { width: 100%; }
}

/* The invite row (s1-people-invite.js): the mockup's .band > .invf; the band's own padding is the mockup's inline 14px, and typed text reads as ink, not the placeholder grey. */
.s1pp-invite { padding-block: calc(14px * var(--s1-scale, 1)); }
.invf input.field { color: var(--ink); }
a.pr { text-decoration: none; }
.s1pp-plus { background: none; border: 0; border-bottom: 1px solid var(--line-soft); font: inherit; color: inherit; text-align: left; }
.s1pp-plusav { background: none; border: 1px dashed var(--line); }
@media (max-width: 640px) {
  .s1pp-invite .invf { gap: 10px; } .s1pp-invite .invf > * { box-sizing: border-box; max-width: 100%; }
  .s1pp-invite .invf .field, .s1pp-invite .invf .dd, .s1pp-invite .invf .ddb { min-width: 0; width: 100%; flex: 1 1 100%; }
  .s1pp-invite .invf .btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
}
/* A long school name wraps onto a second line instead of being cut off. */
.s1pp-row .c-school { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
@container s1pp (max-width: 700px) { .s1pp-row .c-sub { white-space: normal; overflow: visible; text-overflow: clip; } } /* the phone line "Medical Student · school" wraps whole */
