body[data-page-type="people"] { min-height: 100%; height: auto; }
.connections-page { min-height: calc(100vh - 48px); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.connections-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.connections-header h1 { font: 700 2.2rem var(--font-serif); margin: .1rem 0; }
.connections-header p { margin: .35rem 0; color: var(--color-text-muted); }
.connections-header label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 650; }
.connections-header select, #people-search { padding: .55rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: white; }
.connections-filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.connections-layout { flex: 1; min-height: 560px; display: grid; grid-template-columns: minmax(220px, .65fr) minmax(360px, 1.4fr) minmax(270px, .8fr); gap: 1rem; }
.people-browser, .connections-canvas, .people-detail { min-width: 0; overflow: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 9px; }
.people-browser { padding: .8rem; }
.people-browser > label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .3rem; }
#people-search { width: 100%; margin-bottom: .7rem; }
#people-list { display: grid; gap: .25rem; }
.people-row { width: 100%; border: 0; border-radius: 5px; background: transparent; padding: .55rem; text-align: left; display: flex; justify-content: space-between; gap: .5rem; color: var(--color-text); }
.people-row:hover, .people-row:focus-visible, .people-row.is-selected { background: #f0eadc; }
.people-row small { display: block; margin-top: .15rem; color: var(--color-text-muted); font-weight: 400; }
.people-book-badges { flex: 0 0 auto; color: var(--color-accent); font-size: .72rem; }
.connections-canvas { padding: .6rem; display: flex; align-items: stretch; }
.connections-graph, .connections-graph .graph-svg { width: 100%; min-height: 480px; }
.connections-empty { margin: auto; padding: 2rem; text-align: center; color: var(--color-text-muted); }
.people-detail { padding: 1rem; }
.people-profile-header { display: flex; gap: .7rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
.people-profile-header .entity-row-side { width: 7px; min-height: 60px; border-radius: 5px; flex: 0 0 auto; }
.people-profile-header h2 { font: 700 1.55rem var(--font-serif); margin: 0; }
.people-profile-header h2 span { font-size: .78em; color: var(--color-text-muted); font-weight: 400; }
.people-profile-header p { margin: .4rem 0 0; color: var(--color-text-muted); }
.people-detail section { margin-top: 1.2rem; }
.people-detail h3 { margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.appearance-card { border-left: 3px solid var(--color-accent); padding: .5rem .7rem; margin-bottom: .55rem; background: #faf8f3; }
.appearance-card h4, .appearance-card p { margin: 0 0 .25rem; }
.connection-evidence { border-top: 1px solid var(--color-border); padding: .6rem 0; font-size: .88rem; }
.connection-evidence button { border: 0; background: transparent; padding: 0; color: var(--color-accent); text-align: left; }
.connection-evidence p { margin: .3rem 0 0; color: var(--color-text-muted); }
.noscript-evidence { padding: 2rem; }
@media (max-width: 1000px) { .connections-layout { grid-template-columns: minmax(220px, .7fr) minmax(360px, 1.3fr); } .people-detail { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 700px) { .connections-header { align-items: stretch; flex-direction: column; gap: .7rem; } .connections-layout { display: flex; flex-direction: column; } .people-browser { max-height: 45vh; } .connections-graph, .connections-graph .graph-svg { min-height: 390px; } }
