/* people.css — BUDU People v2 (2026-11-09). Pairs with people.js. */

/* header */
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-tools { display: flex; gap: 8px; flex: 0 0 auto; }
.pp-filter-btn { position: relative; }
.pp-filter-btn.set { background: var(--violet-50); border-color: var(--violet-100, #dbe6fd); color: var(--violet); }
.pp-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--violet); color: #fff; font: 700 11px/18px var(--f-ui); text-align: center; }
.pp-badge[hidden] { display: none; }
.scope-world #ppDistBtn, .scope-world #ppSort [data-sort="nearest"] { display: none; }
.pp-active { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-active[hidden] { display: none; }
.pp-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; font: 600 12.5px var(--f-ui); }
.pp-chip i { font-size: 11px; opacity: .7; }
.pp-chip-reset { background: none; color: var(--violet); padding: 0 6px; }

/* card: info under the photo */
.pp-card .mt-bio { display: none; }
.pp-info { display: flex; flex-direction: column; gap: 6px; padding: 10px 2px 0; text-align: left; min-width: 0; }
.pp-job { display: flex; gap: 7px; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; }
.pp-job i { color: var(--violet); font-size: 11px; flex: 0 0 auto; }
.pp-job { white-space: nowrap; text-overflow: ellipsis; }
.pp-status {
    align-self: flex-start; max-width: 100%; padding: 7px 10px; border-radius: 13px 13px 13px 4px; background: var(--sun); color: var(--ink);
    font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pp-bio { font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-muted { color: var(--faint); }
.pp-open { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-open-i { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--violet-50); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.pp-open-i i { color: var(--violet); font-size: 10px; }
.pp-new { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 11px var(--f-ui); }
@media (max-width: 420px) { .pp-open-i:nth-child(n+3) { display: none; } }

/* admin delete: small and quiet until you hover the card */
.mt-photo .adm-trash { width: 28px; height: 28px; font-size: 11px; top: 10px; right: 10px; bottom: auto; background: rgba(22,32,44,.55); opacity: 0; transition: opacity .15s; }
.member-tile:hover .adm-trash, .member-tile:focus-within .adm-trash, .adm-trash:focus-visible { opacity: 1; }
.mt-photo .adm-trash:hover { background: #c9313a; }
@media (hover: none) { .mt-photo .adm-trash { opacity: .85; } }
.mt-photo:has(.adm-trash) .pp-new, .mt-photo:has(.adm-trash) .mt-live { right: 44px; }

/* filters sheet */
.pp-sheet-wrap { position: fixed; inset: 0; z-index: 7000; background: rgba(22,32,44,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .18s; }
.pp-sheet-wrap.open { opacity: 1; }
.pp-sheet { width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; background: var(--card); border-radius: 24px 24px 0 0; box-shadow: var(--pop); transform: translateY(24px); transition: transform .2s; }
.pp-sheet-wrap.open .pp-sheet { transform: none; }
@media (min-width: 760px) { .pp-sheet-wrap { align-items: center; } .pp-sheet { border-radius: 24px; } }
.pp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.pp-sheet-head h3 { margin: 0; font: 700 20px var(--f-display); color: var(--ink); }
.pp-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; color: var(--ink); }
.pp-sheet-body { overflow-y: auto; padding: 4px 20px 12px; display: grid; gap: 18px; }
.pp-sheet fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pp-sheet legend { font: 700 14px var(--f-ui); color: var(--ink); margin-bottom: 10px; padding: 0; }
.pp-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--paper); border-radius: 14px; padding: 4px; }
.pp-seg button { border: 0; background: none; padding: 9px 4px; border-radius: 10px; font: 600 13.5px var(--f-ui); color: var(--ink-2); cursor: pointer; }
.pp-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22,32,44,.15); }
.pp-age { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-age label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pp-age select { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 10px; font: 16px var(--f-ui); color: var(--ink); background: #fff; }
.pp-opens { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-opens button { display: inline-flex; gap: 7px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 600 13px var(--f-ui); color: var(--ink-2); cursor: pointer; }
.pp-opens button i { color: var(--muted); font-size: 12px; }
.pp-opens button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.pp-opens button.on i { color: #fff; }
.pp-toggles { display: grid; gap: 4px; }
.pp-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.pp-tog:last-child { border-bottom: 0; }
.pp-tog b { display: block; font-size: 14.5px; color: var(--ink); } .pp-tog small { font-size: 12.5px; color: var(--muted); }
.pp-tog input { position: absolute; opacity: 0; pointer-events: none; }
.pp-tog i { flex: 0 0 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.pp-tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.pp-tog input:checked + i { background: var(--live); }
.pp-tog input:checked + i::after { transform: translateX(18px); }
.pp-tog input:focus-visible + i { outline: 3px solid var(--violet-100, #dbe6fd); outline-offset: 2px; }
.pp-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.pp-sheet-foot .ac-btn { min-height: 48px; }
.pp-seg button:focus-visible, .pp-opens button:focus-visible, .pp-x:focus-visible { outline: 3px solid var(--violet-100, #dbe6fd); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pp-sheet-wrap, .pp-sheet { transition: none; } }
@media (max-width: 440px) {
    .pp-filter-btn > span:not(.pp-badge) { display: none; }
    .pp-filter-btn { padding: 0 11px; }
    .pp-tools { gap: 6px; }
    #ppSort button { padding: 7px 10px; }
}
