/* Resident profiles stay in HTML. Adding an article also adds a picker tab. */
.resident-book{position:relative;z-index:1;display:flex;flex-direction:column;max-width:920px;margin:34px auto 0}
.resident-stage{min-height:350px}
.resident-book-ready .resident-stage{display:grid}
.resident-page{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,1.15fr);align-items:center;gap:48px;padding:18px 20px 30px;min-height:350px}
.resident-page[hidden]{display:none}
/* Hidden profiles reserve space so longer names/copy cannot move the picker. */
.resident-book-ready .resident-page{grid-area:1 / 1}
.resident-book-ready .resident-page[hidden]{display:grid;visibility:hidden;pointer-events:none}
.resident-portrait{height:310px;display:flex;align-items:center;justify-content:center}
.resident-portrait img{width:auto;height:auto;max-width:100%;max-height:285px;image-rendering:pixelated;transform-origin:50% 90%}
.resident-page--pair .resident-portrait img{max-width:350px;width:100%}
.resident-copy{min-width:0}
.resident-book h3{font-family:"Pote Pixel Heading","Hiragino Maru Gothic ProN",sans-serif;font-size:28px;font-weight:900;line-height:1.85;letter-spacing:.1em;margin:0 0 24px;text-wrap:balance}
.resident-book h3 small{font-size:.65em}
.resident-book p{font-size:20px;line-height:2.05;letter-spacing:.1em;margin:0;text-wrap:pretty;overflow-wrap:anywhere}
.resident-picker{order:1;display:flex;flex-wrap:wrap;justify-content:center;gap:24px 24px;max-width:900px;margin:24px auto 0;padding:8px}
.resident-tab{font-family:inherit;font-size:18px;font-weight:900;line-height:1.8;letter-spacing:.06em;padding:9px 22px;min-height:48px}
.resident-page:focus-visible{outline:3px solid var(--ink);outline-offset:5px;border-radius:14px}
@media(max-width:760px){
 .resident-book{display:flex;flex-direction:column;max-width:560px;margin-top:24px}
 .resident-stage{min-height:360px}
 .resident-page{grid-template-columns:1fr;grid-template-rows:190px 1fr;align-items:start;gap:12px;text-align:center;min-height:360px;padding:10px 14px 24px}
 .resident-portrait{height:190px}
 .resident-portrait img{max-height:176px;max-width:192px}
 .resident-page--pair .resident-portrait img{max-width:224px}
 .resident-copy{width:100%;max-width:18rem;margin-inline:auto}
 .resident-book h3{font-size:20px;margin-bottom:12px}
 .resident-book p{font-size:clamp(14px,4.2vw,16px);line-height:1.9;letter-spacing:.04em}
 .resident-picker{order:-1;gap:20px 14px;margin:0 auto 20px;padding:6px 0}
 .resident-tab{font-size:15px;padding:8px 10px;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.resident-tab{transition:none}}
/* Static blobs still distinguish the selected resident without adding a line. */
.resident-book-ready .resident-tab[data-blob-static="true"][aria-selected="false"]::before{opacity:0}
