/* Public member pages. Color and type follow the existing membership settings. */
.kbma-community-profile,.kbma-directory-page{--kbma-paper:#fcf9f5;--kbma-teal:#087b70;--kbma-soft-teal:#e8f6f1;--kbma-amber:#fff2d9;--kbma-purple:#f2eafa}
body.kbma-public-profile #content{background:#fbf8fd}
.kbma-community-profile.kbma-public{max-width:1120px;padding:0;border:0;background:transparent}
.kbma-community-profile a{text-underline-offset:5px}
.kbma-person-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px 36px;background:var(--kbma-brand);border-radius:24px;color:white}
.kbma-person-hero::after{content:"";position:absolute;inset-inline-end:-70px;top:-140px;width:350px;height:350px;border:50px solid #ffffff08;border-radius:50%;pointer-events:none}
.kbma-person-identity{display:flex;align-items:center;gap:22px;min-width:0;position:relative;z-index:1}
.kbma-person-avatar{display:grid;place-items:center;width:100px;height:100px;flex:0 0 100px;border:5px solid #ffffff30;border-radius:28px;background:#efe4f8;color:var(--kbma-brand);overflow:hidden;font-size:38px}
.kbma-person-avatar img{display:block;width:100%;height:100%;object-fit:cover}
/* Keep the name aligned with the avatar after removing the redundant eyebrow. */
.kbma-person-heading{min-width:0;padding-block-start:24px}
.kbma-person-heading h1{color:white;font-size:30px;line-height:1.6;margin:2px 0 6px;overflow-wrap:anywhere}
.kbma-eyebrow{display:block;font-size:12px;font-weight:500;letter-spacing:0;line-height:1.8;color:var(--kbma-muted)}
.kbma-person-hero .kbma-kind-badge{background:#f4e7ff;color:#511c63}
.kbma-person-hero .kbma-origin{color:#fff1ca}
.kbma-person-tenure{position:relative;z-index:1;padding:14px 20px;border:1px solid #ffffff38;border-radius:14px;background:#ffffff0e;color:#fff;font-size:15px;line-height:1.8}
.kbma-person-overview{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:14px;margin:18px 0}
.kbma-person-score,.kbma-person-stat{display:flex;align-items:center;gap:14px;padding:18px 22px;border-radius:16px;min-width:0}
.kbma-person-score{background:var(--kbma-amber);color:#714a1b}
.kbma-score-medal{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#fff9eb;flex-shrink:0}
.kbma-score-medal .kbma-rank-icon{width:34px;height:34px}
.kbma-person-score .kbma-eyebrow{color:#795c37}
.kbma-person-score strong{display:block;font-size:19px;line-height:1.7}
.kbma-score-caption{font-size:12px}
.kbma-person-stat{background:var(--kbma-soft-teal);color:#085e57!important;text-decoration:none!important;flex-wrap:wrap}
.kbma-person-stat:last-child{background:var(--kbma-purple);color:var(--kbma-brand)!important}
.kbma-person-stat strong{font-size:30px;font-weight:750;line-height:1.2}
.kbma-person-stat span{font-size:13px}
.kbma-person-stat span[aria-hidden]{margin-inline-start:auto;font-size:22px}
.kbma-person-nav{display:flex;gap:8px;align-items:center;overflow-x:auto;margin:26px 0 20px;padding:0 0 12px;border-bottom:1px solid var(--kbma-line);scrollbar-width:thin}
.kbma-person-nav a{white-space:nowrap;padding:7px 13px;font-size:14px;color:var(--kbma-ink);text-decoration:none!important;border-radius:9px}
.kbma-person-nav a:hover,.kbma-person-nav a:focus-visible{background:var(--kbma-purple);color:var(--kbma-brand)}
.kbma-person-nav .kbma-person-edit{margin-inline-start:auto;color:var(--kbma-brand)}
.kbma-person-columns{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}
.kbma-person-side,.kbma-person-content{display:grid;gap:20px;min-width:0}
.kbma-person-section{border:1px solid var(--kbma-line);border-radius:18px;background:#fff;padding:24px;scroll-margin-top:24px;min-width:0}
.kbma-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.kbma-person-section h2{font-size:20px;line-height:1.7;margin:0;color:var(--kbma-ink)}
.kbma-section-index{color:#9f8ca8;font-size:14px;font-variant-numeric:tabular-nums}
.kbma-person-shelf{background:var(--kbma-paper)}
.kbma-shelf-book{display:block;text-align:center;color:var(--kbma-ink);text-decoration:none!important}
.kbma-book-plinth{padding:14px 22px 0;margin:0 0 20px;border-bottom:8px solid #e6d4bd;border-radius:0 0 5px 5px;background:linear-gradient(0deg,#f1e9df,transparent 65%)}
.kbma-book-cover{width:130px;min-height:175px;display:grid;place-items:center;margin:0 auto;transform:rotate(-4deg);transform-origin:bottom;box-shadow:7px 5px 12px #3e1a251c;border-radius:3px 9px 9px 3px;overflow:hidden;background:var(--kbma-brand);color:#fff}
.kbma-book-cover img{display:block;width:130px;height:185px;object-fit:contain;background:#fff}
.kbma-book-cover>span{padding:16px;line-height:2}
.kbma-book-reason{font-size:11px;color:#795537;background:#f6e7d5;padding:5px 11px;border-radius:20px}
.kbma-shelf-book h3{font-size:17px;line-height:1.9;margin:16px 0 8px}
.kbma-book-more{display:flex;justify-content:center;gap:14px;font-size:12px;color:var(--kbma-brand)}
.kbma-person-about p{white-space:pre-line;font-size:14px;line-height:2.1;margin:12px 0 0;overflow-wrap:anywhere}
.kbma-person-timeline{border-inline-start:2px solid #d7eae6;padding-inline-start:22px;margin-inline-start:6px}
.kbma-person-comment{position:relative;margin-bottom:18px;padding:16px 18px;background:#f8fbfa;border:1px solid #e0eeea;border-radius:12px}
.kbma-person-comment:last-child{margin-bottom:0}
.kbma-person-comment::before{content:"";position:absolute;inset-inline-start:-29px;top:22px;width:10px;height:10px;border-radius:50%;background:var(--kbma-teal);border:2px solid white;box-sizing:content-box}
.kbma-comment-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px;color:#4d7169}
.kbma-person-comment h3,.kbma-person-post h3{font-size:16px;line-height:1.9;margin:10px 0}
.kbma-person-comment h3 a,.kbma-person-post h3 a{color:var(--kbma-ink);text-decoration:none}
.kbma-person-comment p,.kbma-person-post p{font-size:14px;line-height:2;margin:0 0 12px;white-space:pre-line;overflow-wrap:anywhere}
.kbma-comment-open{font-size:12px;color:var(--kbma-teal)!important;text-decoration:none!important;display:inline-flex;gap:12px}
.kbma-person-post{padding:16px 0;border-top:1px solid var(--kbma-line)}
.kbma-person-post time{font-size:12px;color:var(--kbma-muted)}
.kbma-person-pages{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:20px;font-size:13px}
.kbma-community-empty{text-align:center;padding:24px 12px 30px;color:var(--kbma-muted);font-size:14px}
.kbma-community-empty h3{font-size:18px;color:var(--kbma-ink);margin:0 0 10px}
.kbma-community-empty p{margin:10px 0;font-size:13px}
.kbma-empty-chat{display:grid;place-items:center;font-family:Georgia,serif;font-size:66px;line-height:1;width:70px;height:70px;margin:0 auto 16px;border-radius:24px 24px 5px;background:var(--kbma-soft-teal);color:var(--kbma-teal)}
.kbma-empty-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;color:var(--kbma-brand)}
.kbma-empty-mark svg{width:44px;height:44px}
.kbma-directory-page{padding:26px 28px 28px;border:1px solid #e8ddef;background:#f9f5fc;border-radius:22px}
.kbma-directory-heading{border-bottom:0;padding-bottom:0}
.kbma-directory-heading h1{font-size:clamp(22px,2.5vw,32px);font-weight:900;line-height:1.65;color:var(--kbma-brand);margin:0}
.kbma-directory-page .kbma-directory-tools{display:block;margin:0 0 22px;padding:20px;border:1px solid #e8ddef;border-radius:16px;background:#fff}
.kbma-directory-top{display:flex;align-items:center;justify-content:space-between;gap:24px}
.kbma-directory-top .kbma-directory-heading{min-width:0;flex:1}
.kbma-directory-top .kbma-directory-search{flex:0 1 420px}
.kbma-directory-tools .kbma-directory-groups{margin-top:16px;padding-top:16px;border-top:1px solid #eee5f2}
.kbma-directory-page .kbma-directory-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:24px 20px 18px;border:1px solid #e8deed;border-radius:18px;background:#fff;box-shadow:0 5px 18px #3f174e06}
.kbma-directory-page .kbma-directory-card::before{content:"";position:absolute;top:-1px;inset-inline-start:24px;width:48px;height:4px;border-radius:0 0 6px 6px;background:var(--kbma-brand)}
.kbma-directory-page .kbma-member-link{margin:0;align-items:center}
.kbma-directory-page .kbma-member-link,.kbma-directory-page .kbma-member-link strong,.kbma-directory-page .kbma-member-link:hover strong,.kbma-directory-page .kbma-member-link:focus strong{text-decoration:none!important}
.kbma-directory-role:empty{display:none}
.kbma-directory-role .kbma-origin{display:inline-flex;padding:6px 12px;border-radius:9px;background:#eef4ff;color:#335488;font-size:12px}
.kbma-directory-role .kbma-kind-badge{margin:0}
.kbma-directory-card .kbma-directory-avatar{width:56px;height:56px;border-radius:18px;background:var(--kbma-purple);border:0}
.kbma-directory-card .kbma-directory-avatar img{border-radius:18px}
.kbma-community-rank{display:flex;gap:7px;align-items:center;padding:8px 10px;border-radius:10px;background:#fff7e8;color:#6b491f;font-size:12px}
.kbma-community-rank .kbma-rank-points{margin-inline-start:auto;font-size:11px}
.kbma-directory-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.kbma-directory-tenure,.kbma-directory-page .kbma-directory-activity{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;border:0;border-radius:11px;padding:12px;margin:0;line-height:1.8;font-size:12px}
.kbma-directory-tenure{background:var(--kbma-purple);color:var(--kbma-brand)}
.kbma-directory-page .kbma-directory-activity{background:var(--kbma-soft-teal);color:#085e57;gap:1px}
.kbma-directory-page .kbma-directory-activity b{font-size:19px;line-height:1.3;color:inherit}
.kbma-directory-page .kbma-directory-activity span{font-size:11px}
.kbma-directory-bottom{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-top:auto;padding-top:2px}
.kbma-profile-open{display:inline-flex;gap:8px;align-items:center;font-size:12px;text-decoration:none!important;color:var(--kbma-brand)}
.kbma-directory-groups a[aria-current=page]{background:var(--kbma-brand);color:#fff;border-color:var(--kbma-brand)}
.kbma-directory-search-row input::placeholder{color:#73657b;opacity:1}
@media(max-width:900px){
 .kbma-directory-page{padding:24px}
 .kbma-directory-top{gap:18px}
}
@media(max-width:800px){
 .kbma-person-columns{grid-template-columns:240px minmax(0,1fr);gap:16px}
 .kbma-person-section{padding:18px}
 .kbma-person-overview{gap:10px}
 .kbma-person-score,.kbma-person-stat{padding:16px;gap:10px}
 .kbma-person-stat span[aria-hidden]{display:none}
}
@media(max-width:620px){
 .kbma-community-profile.kbma-public{padding:0 4px}
 .kbma-person-hero{padding:24px 20px;align-items:flex-start;flex-direction:column;gap:20px;border-radius:20px}
 .kbma-person-identity{gap:16px;width:100%}
 .kbma-person-avatar{width:72px;height:72px;flex-basis:72px;border-radius:22px;border-width:3px;font-size:30px}
 .kbma-person-heading h1{font-size:24px}
 .kbma-person-tenure{width:100%;padding:10px 14px;font-size:13px}
 .kbma-person-overview{grid-template-columns:1fr 1fr}
 .kbma-person-score{grid-column:1/-1;padding:14px 18px}
 .kbma-person-score>div:last-child{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 12px;flex:1}
 .kbma-person-score .kbma-eyebrow{grid-column:1}
 .kbma-person-score strong{grid-column:1}
 .kbma-score-caption{grid-column:2;grid-row:1/3}
 .kbma-person-stat{gap:10px;padding:16px 12px;justify-content:center}
 .kbma-person-stat strong{font-size:24px}
 .kbma-person-stat span{font-size:11px}
 .kbma-person-nav{margin-top:20px;gap:0}
 .kbma-person-nav a{font-size:13px;padding:7px 10px}
 .kbma-person-columns{grid-template-columns:1fr}
 .kbma-person-side{gap:16px}
 .kbma-shelf-book{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 20px;align-items:center;text-align:right}
 .kbma-book-plinth{grid-column:1;grid-row:1/4;margin:0;padding:6px 0 0;border-bottom-width:6px}
 .kbma-book-cover{width:88px;min-height:120px}
 .kbma-book-cover img{width:88px;height:126px}
 .kbma-book-cover>span{font-size:12px;padding:10px}
 .kbma-book-reason{justify-self:start;align-self:end}
 .kbma-shelf-book h3{font-size:16px;margin:0}
 .kbma-book-more{justify-content:flex-start;align-self:start}
 .kbma-person-section h2{font-size:19px}
 .kbma-person-comment{padding:14px}
 .kbma-person-timeline{padding-inline-start:16px}
 .kbma-person-comment::before{inset-inline-start:-23px}
 .kbma-directory-page{padding:20px 14px;border-radius:18px}
 .kbma-directory-page .kbma-directory-tools{margin:0 0 20px;padding:16px}
 .kbma-directory-top{flex-direction:column;align-items:stretch;gap:14px}
 .kbma-directory-top .kbma-directory-search{flex:auto}
 .kbma-directory-heading h1{font-size:24px}
}
