/* Profile additions preserve the relationship map as the primary characters view. */
/* Numerical reader ancestry wraps as a single semantic trail, including at 320px. */
.character-profile-reader-top .breadcrumb ol{display:flex;flex-wrap:wrap;gap:.15rem .6rem;margin:0;padding:0;list-style:none}
.character-profile-reader-top .breadcrumb li{display:flex;align-items:center;gap:.6rem;min-width:0;max-width:100%}
.character-profile-reader-top .breadcrumb a,.character-profile-reader-top .breadcrumb [aria-current]{min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
.character-profile-reader-top .breadcrumb li+li:before{content:"›";opacity:.7}[dir="rtl"] .character-profile-reader-top .breadcrumb li+li:before{content:"‹"}
@media(max-width:650px){.character-profile-reader-top .breadcrumb{font-size:.83rem}.reader-character-profile .profile-reader-exit{margin-block-start:1.75rem;padding-block-start:1.15rem}.reader-character-profile .profile-reader-exit a{display:inline-flex;min-height:44px;align-items:center;line-height:1.6;white-space:normal}}

.character-name-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.character-name-link:focus-visible,.character-profile a:focus-visible,.profile-directory a:focus-visible{outline:3px solid #ed2939;outline-offset:4px;border-radius:2px}
.profile-directory{margin-block:2rem;padding:1.5rem 0;border-block:1px solid #cbd4e6;display:grid;grid-template-columns:minmax(12rem,1fr) 2fr;gap:2rem;align-items:start}
.profile-directory h2{font-size:1.25rem;margin:0 0 .45rem}.profile-directory p{margin:0;font-size:.95rem;max-width:32rem}
.profile-directory ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem 1rem;margin:0;padding:0;list-style:none}.profile-directory a{display:inline-flex;align-items:center;min-height:44px;line-height:1.55}
.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:2rem;max-width:64rem}.profile-heading h1{overflow-wrap:anywhere}
.profile-role{font-size:1.25rem!important;margin-block:.75rem 0!important}.profile-emblem{display:block;flex:0 0 6rem;width:6rem;height:6rem;color:var(--blue,#002395)}.profile-emblem svg{width:100%;height:100%}
.character-profile{max-width:76rem}.profile-map-return{margin-block-end:1.25rem;display:inline-flex;align-items:center;min-height:44px}.profile-prose{max-width:50rem;margin-inline:auto;font-size:1.15rem;line-height:1.9}.profile-prose p{margin-block:0 1.5rem}.profile-intro{font-size:1.2rem;font-weight:500}
.profile-gate{padding:1.25rem;margin-block:1.5rem;background:#f1f4fb;border-inline-start:4px solid #002395}.profile-gate h2{margin:0 0 .8rem;font-size:1.4rem}.profile-gate .btn{white-space:normal;line-height:1.5;text-align:start}
.profile-spoiler-banner{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem;margin-block:2rem;border-block:1px solid #d5ddec;font-size:.95rem;line-height:1.5}.profile-spoiler-banner button{flex-shrink:0}
.profile-next{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-block-start:3rem;padding-block-start:2rem;border-top:1px solid #cbd4e6}.profile-next h2{font-size:1.3rem}.profile-next ul{padding-inline-start:1.3rem;line-height:1.8}.profile-next li{margin-block:.5rem}.profile-references{grid-column:1/-1}.profile-references a{overflow-wrap:anywhere}
.reader-character-profile{max-width:52rem}.reader-character-identity{font-size:1.35rem;line-height:1.8}.profile-scope-note{max-width:42rem;line-height:1.8;color:#536177}.profile-reader-exit{margin-block-start:3rem;padding-block-start:1.5rem;border-top:1px solid #cbd4e6}.reader-character-profile .btn{white-space:normal;text-align:start;line-height:1.6}
.graph-person-context .profile-selected-link{display:inline-flex;align-items:center;min-height:44px;font-weight:700;border-bottom:2px solid currentColor;text-decoration:none}.graph-person-context{gap:1rem}
@media(max-width:650px){.profile-directory{grid-template-columns:1fr;gap:1.25rem}.profile-directory ul{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-heading{gap:1rem}.profile-emblem{flex-basis:3.5rem;width:3.5rem;height:3.5rem}.profile-prose{font-size:1.05rem}.profile-intro{font-size:1.12rem}.profile-gate{padding:1.15rem}.profile-next{grid-template-columns:1fr}.profile-references{grid-column:auto}.profile-spoiler-banner{display:block}.profile-spoiler-banner button{display:block;margin-block-start:.7rem}.character-profile{padding-inline:1rem}.profile-heading h1{font-size:clamp(2rem,9vw,3.5rem)}}

.character-profile-top .breadcrumb ol{display:flex;flex-wrap:wrap;gap:.35rem .8rem;list-style:none;padding:0;margin:0}.character-profile-top .breadcrumb li{display:flex;gap:.8rem;align-items:center}.character-profile-top .breadcrumb li+li:before{content:"›";opacity:.7}.character-profile-top .breadcrumb a,.character-profile-top .breadcrumb [aria-current]{display:inline-flex;align-items:center;min-height:44px}[dir="rtl"] .character-profile-top .breadcrumb li+li:before{content:"‹"}
