/* S1 People (s1-people.js): directory and profile. Hue-free; semantic color only. */
.s1pp-host { display: block; }
.s1p .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-av.s1pp-av { position: relative; overflow: hidden; flex: none; }
.s1pp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.s1pp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.s1pp-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.s1pp-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--s1-mute); pointer-events: none; }
.s1pp-search .k-input { padding-left: 34px; }
.s1pp-filters .k-select { flex: 0 1 170px; width: auto; min-width: 130px; }
.s1pp-tools, .s1pp-mine { margin-bottom: 14px; }
.s1pp-mine-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.s1pp-mine-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s1pp-mine-t span { color: var(--s1-mute); font-size: 13px; }
.s1pp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.s1pp-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--s1-line); border-radius: 12px; background: #fff; min-width: 0; }
.s1pp-card:hover { border-color: #b9bec9; }
.s1pp-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.s1pp-card-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.s1pp-name { font: 700 15px/1.3 var(--k-font-ui); color: var(--s1-ink); text-decoration: none; overflow-wrap: anywhere; }
.s1pp-name:hover { text-decoration: underline; }
.s1pp-mail { color: var(--s1-mute); font-size: 12.5px; text-decoration: none; overflow-wrap: anywhere; display: block; }
a.s1pp-mail:hover { color: var(--s1-ink); text-decoration: underline; }
.s1pp-label { font: 650 12px var(--k-font-ui); color: var(--s1-mute); text-transform: none; }
.s1pp-card-work { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s1pp-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.s1pp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.s1pp-more { text-decoration: none; }
.s1pp-tablewrap { overflow-x: auto; }
.s1pp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.s1pp-table th { text-align: left; font: 650 12px var(--k-font-ui); color: var(--s1-mute); padding: 10px 14px; border-bottom: 1px solid var(--s1-line); }
.s1pp-table td { padding: 10px 14px; border-bottom: 1px solid var(--s1-line-soft); vertical-align: middle; }
.s1pp-table tr:last-child td { border-bottom: 0; }
.s1pp-tid { display: flex; align-items: center; gap: 10px; }
.s1pp-td-act .s1pp-acts { margin: 0; flex-wrap: nowrap; justify-content: flex-end; }
.s1pp-skel { flex-direction: row; align-items: center; }
.s1pp-skel i { width: 48px; height: 48px; border-radius: 50%; background: var(--s1-column); }
.s1pp-skel span { display: grid; gap: 8px; flex: 1; }
.s1pp-skel b, .s1pp-skel em { display: block; height: 10px; border-radius: 5px; background: var(--s1-column); }
.s1pp-skel b { width: 60%; } .s1pp-skel em { width: 40%; }
.s1pp-back { margin: 0 0 10px; }
.s1pp-back a { display: inline-flex; align-items: center; gap: 4px; color: var(--s1-mute); font: 600 13px var(--k-font-ui); text-decoration: none; }
.s1pp-back a:hover { color: var(--s1-ink); }
.s1pp-hero { margin-bottom: 14px; }
.s1pp-hero-body { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.s1pp-hero-t { min-width: 0; }
.s1pp-hero-t .k-title { margin: 0 0 6px; overflow-wrap: anywhere; }
.s1pp-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.s1pp-sub { margin: 8px 0 0; color: var(--s1-mute); }
.s1pp-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.s1pp-twocol { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.s1pp-col { display: grid; gap: 14px; min-width: 0; }
.s1pp-bio { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.s1pp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s1pp-pad { padding: 14px; }
.s1pp-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
/* own-profile and profile extras */
.s1pp-back { display: flex; align-items: center; gap: 8px; color: var(--s1-mute); font: 600 13px var(--k-font-ui); }
.s1pp-herophoto { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.s1pp-photolink { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--k-font-ui); color: var(--s1-mute); text-decoration: none; }
.s1pp-photolink:hover { color: var(--s1-ink); text-decoration: underline; }
.s1pp-complete { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--s1-line); border-radius: 10px; background: #fff; font-size: 13.5px; }
.s1pp-complete a { color: var(--s1-ink); font-weight: 650; }
.s1pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 14px; }
.s1pp-projs { list-style: none; margin: 0; padding: 0; }
.s1pp-proj { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--s1-line-soft); min-width: 0; position: relative; }
.s1pp-proj:last-child { border-bottom: 0; }
.s1pp-pm { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.s1pp-pt { font: 700 14.5px/1.3 var(--k-font-ui); color: var(--s1-ink); text-decoration: none; overflow-wrap: anywhere; }
a.s1pp-pt::after { content: ''; position: absolute; inset: 0; }
a.s1pp-pt:hover { text-decoration: underline; }
.s1pp-pmeta { font: 600 12.5px var(--k-font-ui); color: var(--s1-mute); }
.s1pp-psum { font-size: 13px; color: var(--s1-ink-2, var(--s1-mute)); overflow-wrap: anywhere; }
.s1pp-pgo { color: var(--s1-mute); flex: none; }
.s1pp-outs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.s1pp-out { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--s1-line-soft); min-width: 0; }
.s1pp-out:last-child { border-bottom: 0; padding-bottom: 0; }
.s1pp-out b { overflow-wrap: anywhere; }
.s1pp-outmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s1pp-oj { font-style: italic; font-size: 13px; }
.s1pp-olinks { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.s1pp-olinks a { color: var(--s1-ink); font-weight: 600; }
.s1pp-actlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s1pp-actlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13.5px; }
.s1pp-actlist .s1pp-akind { grid-column: 1; }
.s1pp-actlist li > a, .s1pp-actlist li > b { grid-column: 1; overflow-wrap: anywhere; }
.s1pp-actlist li > span:not(.s1pp-akind) { grid-column: 1; }
.s1pp-actlist time { grid-column: 2; grid-row: 1; }
.s1pp-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s1pp-ci { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; color: var(--s1-ink); text-decoration: none; min-width: 0; }
.s1pp-ci:hover { background: var(--s1-column); }
.s1pp-ci > svg { flex: none; color: var(--s1-mute); }
.s1pp-ci span { display: flex; flex-direction: column; min-width: 0; }
.s1pp-ci small { color: var(--s1-mute); font-size: 12px; }
.s1pp-ci b { font-weight: 650; overflow-wrap: anywhere; }
.s1pp-none { margin: 0; }
.s1pp-sk { display: grid; gap: 6px; margin-top: 14px; }
.s1pp-login { margin: 12px 0 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .s1pp-hero-body { flex-direction: column; align-items: flex-start; }
  .s1pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s1pp-hero-acts .k-btn { flex: 1 1 auto; justify-content: center; }
  .s1pp-twocol { grid-template-columns: minmax(0, 1fr); }
  .s1pp-grid { grid-template-columns: minmax(0, 1fr); }
  .s1pp-filters .k-select { flex: 1 1 140px; }
  .s1pp-hero-acts { width: 100%; }
}

/* Who-to-show chips (Students / Residents / Faculty / Everyone) and the unclaimed-authors switch */
.s1pp-groupbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 0; }
.s1pp-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.s1pp-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--s1-ink-2); font: 500 13px var(--s1-font-ui); cursor: pointer; }
@media (max-width: 760px) { .s1pp-groups { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .s1pp-groups .k-fchip { flex: none; } }


/* Phone: the member table becomes one card per person (a 760px table widened the whole page and crushed names to one letter per line). */
@media (max-width: 760px) {
  .s1pp-tablewrap { min-width: 0; max-width: 100%; overflow-x: hidden; }
  .s1pp-table { min-width: 0; }
  .s1pp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .s1pp-table, .s1pp-table tbody, .s1pp-table tr, .s1pp-table td { display: block; width: 100%; }
  .s1pp-table tr { padding: 12px 14px; border-bottom: 1px solid var(--s1-line-soft); }
  .s1pp-table tr:last-child { border-bottom: 0; }
  .s1pp-table td { padding: 4px 0; border: 0; min-width: 0; }
  .s1pp-table td:empty, .s1pp-table td:has(> .s1pp-chips:empty) { display: none; }
  .s1pp-table .s1pp-td-act { padding-top: 8px; }
}

/* Requests panel 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: 6px 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--s1-line-soft); }
.s1pp-rq:last-child { border-bottom: 0; }
.s1pp-rq-main { display: grid; gap: 2px; min-width: 0; }
.s1pp-rq-t { font-weight: 650; overflow-wrap: anywhere; }
.s1pp-rq-msg { font-size: 13px; color: var(--s1-mute); overflow-wrap: anywhere; }
.s1pp-rq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s1pp-rqpast { border-top: 1px solid var(--s1-line-soft); }
.s1pp-rqpast > summary { cursor: pointer; padding: 12px 14px; font-weight: 650; list-style-position: inside; }
.s1pp-rqpast > summary:focus-visible { outline: 2px solid var(--s1-ink); outline-offset: -2px; }
@media (max-width: 760px) {
  .s1pp-rq { grid-template-columns: minmax(0, 1fr); }
  .s1pp-rq-act .k-btn { width: 100%; justify-content: center; }
}
