/* One person's page (#/person/:id), drawn by screenPerson in app/people.js.
   Kept in its own sheet so the contact-card layout can change without
   touching the shared rules in app.css. Every color is a token from app.css,
   so the light and dark rooms (and a published House palette) both apply
   without a second set of values here. */

.pp{max-width:640px;margin:0 auto;overflow-wrap:anywhere}
/* From 1200px the page photograph is pinned to the right of #view and sized
   (app.css .pagewash) on the assumption that the column starts at the left
   edge. A centered column ran 180px under it at 1280, covering the right-aligned
   values (name, email). Left-align here so the two never meet. */
@media (min-width:1200px){.pp{margin-left:0}}

/* ---- the face and who they are ---- */
.pp-head{display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:8px 0 4px}
.pp-avatar{position:relative;width:96px;height:96px;border-radius:50%;padding:0;
  border:1px solid var(--line);background:var(--sunk);color:var(--muted);cursor:pointer;
  display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.pp-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  border-radius:50%;z-index:1}
.pp-initials{font-family:var(--f-d);font-size:32px;letter-spacing:.02em;color:var(--soft)}
/* The pencil sits on the rim, above the photo, so a face never hides it. */
.pp-badge{position:absolute;right:-2px;bottom:-2px;z-index:2;width:30px;height:30px;
  border-radius:50%;display:grid;place-items:center;background:var(--raised);
  color:var(--accent);border:1px solid var(--firm)}
.pp-avatar:active{opacity:.8}
.pp-avatar:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

.pp-name{font-family:var(--f-d);font-weight:400;font-size:30px;line-height:1.15;
  color:var(--ink);margin:14px 0 8px}
.pp-tags{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.pp-chip{font-family:var(--f-s);font-size:10.5px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);background:var(--tint);
  border:1px solid var(--line);border-radius:999px;padding:5px 11px}
.pp-songs{display:inline-flex;align-items:center;gap:6px;min-height:32px;
  font:500 13px var(--f-s);color:var(--soft);background:none;cursor:pointer;
  border:1px solid var(--firm);border-radius:999px;padding:4px 12px}
.pp-songs:active{background:var(--sunk)}

/* ---- the one thing worth doing now ---- */
.pp-nudge{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:20px 0 0;padding:12px 14px;border-radius:12px;
  background:rgba(var(--amber),.12);border:1px solid rgba(var(--amber),.38)}
.pp-nudge p{margin:0;font:500 14px/1.4 var(--f-s);color:var(--ink)}
.pp-nudge-b{flex:none;min-height:44px;padding:0 16px;border-radius:999px;cursor:pointer;
  font:600 14px var(--f-s);color:var(--oncta);background:var(--cta);border:0}

/* Everything else the server noticed: said, but not raised. */
.pp-gaps{list-style:none;margin:14px 0 0;padding:0}
.pp-gaps li{font:400 13px/1.45 var(--f-s);color:var(--muted);padding:3px 0 3px 14px;
  position:relative}
.pp-gaps li::before{content:"";position:absolute;left:2px;top:.75em;width:5px;height:5px;
  border-radius:50%;background:var(--faint)}

/* ---- rows: songs, details, and the ones not filled in yet ---- */
.pp-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.pp-row{display:grid;grid-template-columns:minmax(96px,auto) 1fr 16px;align-items:center;
  gap:12px;min-height:48px;padding:10px 0;border:0;border-bottom:1px solid var(--line);
  background:none;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;
  text-decoration:none;-webkit-tap-highlight-color:transparent}
.pp-row:active{background:var(--sunk)}
.pp-row:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.pp-k{font-family:var(--f-l);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--faint)}
.pp-v{font:400 14.5px/1.4 var(--f-s);color:var(--ink);text-align:right;min-width:0}
.pp-v.pp-pre{white-space:pre-line}
.pp-chev{grid-column:3}
/* A song row leads with the title, the roles trail in the quieter tone. */
.pp-row .pp-song{font:500 15px/1.35 var(--f-s);color:var(--ink);min-width:0}
.pp-row .pp-song + .pp-v{color:var(--muted);font-size:13px}
.pp-songrow{grid-template-columns:1fr auto 16px}
.pp-songrow .pp-v{max-width:45vw}
/* An unfilled field has no answer (and a song may have no role), so the
   first thing in the row spans to the chevron. */
.pp-row > :first-child:nth-last-child(2){grid-column:1 / 3}
.pp-morelist .pp-k{font-family:var(--f-s);font-size:14.5px;letter-spacing:0;
  text-transform:none;color:var(--soft)}

.pp-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  min-height:46px;margin:14px 0 0;border:1px dashed var(--firm);border-radius:12px;
  background:none;cursor:pointer;font:500 14px var(--f-s);color:var(--soft)}
.pp-more[aria-expanded="true"]{border-bottom-left-radius:0;border-bottom-right-radius:0}
.pp-more:active{background:var(--sunk)}
.pp-morelist{border-top:0;margin-bottom:4px}
.pp-morelist .pp-row{padding-left:12px;padding-right:12px}

/* ---- the older sections, kept, with quieter empties ---- */
.pp .kvr{min-height:44px;align-items:center}
.pp .fld.none{color:var(--faint);font-style:normal}

@media (max-width:420px){
  .pp-name{font-size:27px}
  .pp-row{grid-template-columns:minmax(84px,auto) 1fr 16px;gap:10px}
  .pp-songrow{grid-template-columns:1fr auto 16px}
}

/* A photo on its way up: the one bar (app/bar.js), under the avatar. */
.pp-up{width:120px;margin:10px auto 0}
