/* Person archives: scoped styles; no changes to the writer or private archive. */
.person-page {max-width:1080px;margin:0 auto;padding:12px 0 48px;color:var(--ink,#253449)}
.person-back {display:inline-flex;align-items:center;min-height:44px;margin-bottom:18px}
.person-hero {display:flex;align-items:center;gap:28px;padding:28px 0 36px;border-bottom:1px solid #c8c4ba}
.person-portrait {flex:0 0 96px;width:96px;height:96px}
.person-portrait .identity-picture,.person-initial {width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:#e9edf1;font-size:34px;font-family:serif}
.person-portrait .identity-picture img {width:100%;height:100%;object-fit:cover;border-radius:50%}
.person-heading {min-width:0;flex:1}
.person-heading .eyebrow {font-size:12px;letter-spacing:.1em;margin:0 0 10px;color:#596370}
.person-heading h1 {font-size:clamp(26px,3vw,38px);line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.person-heading>p:last-child {font-size:14px;line-height:1.8;color:#596370;margin:0}
.person-illustration {width:140px;height:110px;object-fit:contain;mix-blend-mode:normal}
.person-scopes {display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 20px}
.person-scopes button {min-height:46px;padding:10px 18px;border:1px solid #c8c4ba;border-radius:24px;background:transparent;color:#253449;font-size:14px;display:flex;gap:10px;align-items:center}
.person-scopes button[aria-pressed=true] {background:#253449;color:white;border-color:#253449}
.person-scopes button span {font-variant-numeric:tabular-nums;opacity:.8}
.person-tools {display:flex;gap:16px;justify-content:space-between;align-items:center}
.person-search {display:flex;flex:1;max-width:520px;align-items:center;border:1px solid #c8c4ba;border-radius:10px;background:#fffefa;padding:0 10px 0 0}
.person-search input {min-width:0;width:100%;border:0;background:transparent;padding:12px 14px;box-shadow:none}
.person-search button {white-space:nowrap;min-height:46px;padding:6px 10px}
.person-order select {min-height:46px;max-width:150px;background:#fffefa;border:1px solid #c8c4ba;border-radius:8px;padding:8px 12px;color:inherit}
.person-result {font-size:13px;color:#596370;margin:24px 0 14px}
.person-stories {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.person-story {min-width:0;border:1px solid #c8c4ba;border-radius:14px;overflow:hidden;background:#fffefa;box-shadow:0 3px 10px #25344905}
.person-story-open {display:flex;flex-direction:column;width:100%;height:100%;text-align:left;border:0;background:transparent;padding:0;color:inherit}
.person-story-open:hover {background:#f1ebdf}
.person-story-copy {padding:26px;display:flex;flex-direction:column;flex:1;min-width:0;width:100%;box-sizing:border-box}
.person-story-meta {display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:#596370;line-height:1.7}
.person-story-copy>strong {font-family:'Noto Serif JP',serif;font-size:22px;line-height:1.7;margin:14px 0 12px;font-weight:500;overflow-wrap:anywhere}
.person-story-excerpt {font-size:14px;line-height:1.95;color:#596370;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:24px}
.person-story-bottom {display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;margin-top:auto}
.person-story-badges {display:flex;gap:6px;flex-wrap:wrap}
.person-badge {display:inline-block;font-size:11px;padding:4px 8px;border-radius:5px;line-height:1.5}
.person-badge.shared {color:#253449;background:#e9edf1}
.person-badge.public {color:#596370;background:#e9edf1}
.person-story-read {font-size:13px;white-space:nowrap;color:#253449}
.person-story-photo {order:-1;width:100%;height:180px;object-fit:cover}
.person-more {display:block;margin:26px auto 0;min-width:180px}
.person-status {font-size:14px;line-height:1.8;margin-top:20px}
.person-status:empty {display:none}
.person-status[role=alert] {padding:18px;background:#fff2ec;border-radius:10px;color:#7d3629}
.person-empty {grid-column:1/-1;text-align:center;padding:35px 20px}
.person-empty img {width:120px;height:100px;object-fit:contain;mix-blend-mode:normal}
.person-empty h2 {font-size:20px;margin:16px 0}
.person-empty p {font-size:14px;line-height:1.8}
.person-link {display:inline-flex;align-items:center;gap:9px;min-height:44px;max-width:100%;background:transparent;border:0;color:#253449;padding:4px 0;text-align:left;font-size:14px;border-radius:6px}
.person-link>span:not(.initial-avatar):not(.identity-picture) {overflow-wrap:anywhere}
.person-link .identity-picture {width:34px;height:34px;flex-shrink:0}
.person-link .identity-picture img {width:100%;height:100%;object-fit:cover;border-radius:50%}
.person-link>.initial-avatar {flex-shrink:0}
.person-link:hover>span:nth-last-child(2) {text-decoration:underline}
.person-link:focus-visible,.person-page button:focus-visible {outline:3px solid #596370;outline-offset:3px}
.arrival-with-author {min-width:0}
.arrival-with-author>.person-link {margin:8px 0 0}
@media(max-width:760px){
 .person-page {padding:0 0 24px}
 .person-back {margin-bottom:4px}
 .person-hero {gap:16px;align-items:flex-start;padding:22px 0 26px}
 .person-portrait,.person-portrait .identity-picture,.person-initial {width:64px;height:64px;flex-basis:64px;font-size:26px}
 .person-heading h1 {font-size:26px}
 .person-heading .eyebrow {font-size:11px;letter-spacing:0}
 .person-heading>p:last-child {font-size:13px}
 .person-illustration {display:none}
 .person-scopes {gap:6px;margin:22px 0 16px}
 .person-scopes button {padding:9px 11px;font-size:13px;gap:5px}
 .person-tools {gap:10px;flex-wrap:wrap}
 .person-search {flex-basis:100%;max-width:none}
 .person-order {margin-left:auto}
 .person-result {margin:14px 0}
 .person-stories {grid-template-columns:minmax(0,1fr);gap:16px}
 .person-story-copy {padding:22px}
 .person-story-copy>strong {font-size:21px}
 .person-story-photo {height:165px}
}
.discover-grid>.public-person-card {min-width:0;display:flex;flex-direction:column;gap:8px}
.discover-grid>.public-person-card>button {display:flex;flex:1;flex-direction:column;background:white;border:1px solid var(--line);border-radius:12px;padding:0;overflow:hidden;text-align:left;min-height:280px;width:100%;color:inherit}
.discover-grid>.public-person-card>button>div {display:flex;flex:1;flex-direction:column;gap:16px;padding:20px}
.public-person-card>.person-link {margin-top:8px}
.person-list-row>.person-link {flex:1;min-width:0}
.person-theme select {min-height:46px;max-width:180px;background:#fffefa;border:1px solid #c8c4ba;border-radius:8px;padding:8px 12px;color:inherit}
.person-tools {flex-wrap:wrap}
@media(max-width:760px){.person-theme{flex:1;min-width:0}.person-theme select{width:100%;max-width:none}.person-order{margin-left:0}.person-hero{padding:14px 0 22px}.person-heading .eyebrow{display:none}.person-scopes{margin-top:20px}}
/* Name/avatar is one target; preserve the person's name and group on narrow screens. */
.person-list-row:has(>.person-link) {grid-template-columns:minmax(0,1fr) auto;gap:0 16px}
.person-list-row>.person-link {grid-column:1;grid-row:1;justify-self:start;width:auto;max-width:100%}
.person-list-row>.person-link+span {grid-column:1;grid-row:2;margin-left:43px}
.person-list-row:has(>.person-link)>.button {grid-column:2;grid-row:1 / span 2;justify-self:end;align-self:center}
.arrival-person-heading {display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:8px}
.arrival-person-heading>small {color:var(--muted);font-size:12px;margin-left:auto}
.arrival-with-author .integrated-story-row .story-date {display:none!important}
