/* Human Earth Lab v33 — connected research graph, static-output hardening and navigation consistency. */
:root{--hel-v33-ink:#1d201d;--hel-v33-muted:#666b65;--hel-v33-line:rgba(29,32,29,.12);--hel-v33-paper:#f7f4ef;--hel-v33-green:#385a4a;--hel-v33-red:#8f1b28;--hel-v33-sand:#d8c29a}
.hel-research-graph{background:linear-gradient(180deg,#f8f6f2 0%,#fff 100%);border-block:1px solid var(--hel-v33-line)}
.hel-graph-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2rem;align-items:end;margin-bottom:2rem}
.hel-graph-head h2{font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:clamp(2.2rem,4.2vw,4rem);font-weight:600;letter-spacing:-.04em;line-height:1;margin:.2rem 0 .85rem}
.hel-graph-head>div:first-child>p:last-child{max-width:820px;color:var(--hel-v33-muted);font-size:1.04rem;line-height:1.65;margin:0}
.hel-graph-count{display:flex;align-items:baseline;gap:.55rem;white-space:nowrap;padding-bottom:.35rem}.hel-graph-count strong{font:600 clamp(2.2rem,4vw,3.6rem)/1 Georgia,serif}.hel-graph-count span{color:var(--hel-v33-muted);font-size:.82rem}
.hel-graph-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.7rem;align-items:end;margin-bottom:1rem;padding:1rem;border:1px solid var(--hel-v33-line);border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 12px 35px rgba(30,34,30,.04)}
.hel-graph-controls label{display:grid;gap:.36rem}.hel-graph-controls label>span{font-size:.72rem;font-weight:750;letter-spacing:.04em;color:#5c615b}.hel-graph-controls select{width:100%;min-height:42px;border:1px solid rgba(29,32,29,.18);border-radius:10px;background:#fff;padding:.55rem 2rem .55rem .7rem;color:var(--hel-v33-ink)}
.hel-graph-reset{min-height:42px;border:1px solid rgba(29,32,29,.2);border-radius:10px;background:#fff;padding:.55rem .9rem;font-size:.82rem;font-weight:700}.hel-graph-reset:hover{background:#f2efe9}
.hel-graph-column-head,.hel-graph-path{display:grid;grid-template-columns:.82fr 1.35fr 1.12fr 1.55fr .9fr 1.05fr;gap:0}
.hel-graph-column-head{padding:0 .9rem .55rem;color:#777b75;font-size:.68rem;font-weight:760;letter-spacing:.08em;text-transform:uppercase}.hel-graph-column-head span{padding-inline:.65rem}
.hel-graph-list{display:grid;gap:.65rem}.hel-graph-path{position:relative;border:1px solid var(--hel-v33-line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 12px 30px rgba(30,34,30,.035);transition:transform .16s ease,box-shadow .16s ease}.hel-graph-path:hover{transform:translateY(-1px);box-shadow:0 17px 36px rgba(30,34,30,.07)}
.hel-graph-path[hidden]{display:none!important}.hel-graph-node{position:relative;min-width:0;padding:1rem .85rem;border-inline-end:1px solid var(--hel-v33-line);display:flex;flex-direction:column;justify-content:center;gap:.38rem}.hel-graph-node:last-child{border-inline-end:0}.hel-graph-node:not(:last-child)::after{content:"";position:absolute;inset-inline-end:-4px;top:50%;width:7px;height:7px;border-radius:50%;background:#fff;border:2px solid rgba(56,90,74,.45);z-index:2;transform:translateY(-50%)}
.hel-graph-stage{display:none;font-size:.64rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#81857e}.hel-graph-site{background:rgba(56,90,74,.045)}.hel-graph-site a{font-weight:800;color:var(--hel-v33-green);text-decoration:none}.hel-graph-site a:hover{text-decoration:underline;text-underline-offset:.18em}
.hel-graph-question p{margin:0;font-size:.83rem;line-height:1.5;color:#3f443f}.hel-graph-chips{display:flex;flex-wrap:wrap;gap:.28rem}.hel-graph-chip{border:1px solid rgba(29,32,29,.1);border-radius:999px;background:#f5f2ec;padding:.24rem .43rem;font-size:.66rem;font-weight:690;color:#535852}.hel-graph-chip:hover{border-color:rgba(56,90,74,.34);color:var(--hel-v33-green)}
.hel-graph-study{background:rgba(143,27,40,.026)}.hel-graph-study a{display:grid;gap:.28rem;color:inherit;text-decoration:none}.hel-graph-study small{color:var(--hel-v33-red);font-size:.67rem;font-weight:760;letter-spacing:.03em}.hel-graph-study strong{font-size:.82rem;line-height:1.42}.hel-graph-study a:hover strong{text-decoration:underline;text-underline-offset:.18em}
.hel-graph-data-link{font-size:.75rem;font-weight:750;color:var(--hel-v33-green);text-decoration:none}.hel-graph-data-link:hover{text-decoration:underline}.hel-graph-muted{font-size:.72rem;color:#8a8d88;line-height:1.35}.hel-graph-people{display:flex;flex-wrap:wrap;gap:.28rem}.hel-graph-person{font-size:.69rem;font-weight:700;color:#3f443f;text-decoration:none;padding:.24rem .38rem;border-radius:7px;background:#f7f5f1;border:1px solid rgba(29,32,29,.08)}.hel-graph-person:hover{color:var(--hel-v33-red);border-color:rgba(143,27,40,.2)}
.hel-graph-empty{padding:1.4rem;text-align:center;color:var(--hel-v33-muted);border:1px dashed rgba(29,32,29,.18);border-radius:14px;background:#fff;margin:1rem 0 0}
/* Static study cards remain useful and indexable with JavaScript disabled; JS now only enhances filtering. */
#outputs-grid[data-static="true"]{min-height:0}.hel-static-study-card[id]{scroll-margin-top:8rem}
/* After removing unfinished placeholder cards, let advisor grids use available width naturally. */
.advisor-grid:has(.advisor-placeholder){align-items:stretch}
@media(max-width:1199.98px){.hel-graph-column-head{display:none}.hel-graph-path{grid-template-columns:repeat(2,minmax(0,1fr))}.hel-graph-node{border-bottom:1px solid var(--hel-v33-line)}.hel-graph-node:nth-child(even){border-inline-end:0}.hel-graph-node::after{display:none}.hel-graph-stage{display:block}.hel-graph-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.hel-graph-reset{width:100%}}
@media(max-width:767.98px){.hel-graph-head{grid-template-columns:1fr}.hel-graph-count{padding:0}.hel-graph-controls{grid-template-columns:1fr}.hel-graph-path{grid-template-columns:1fr}.hel-graph-node{border-inline-end:0}.hel-graph-node:last-child{border-bottom:0}.hel-graph-head h2{font-size:clamp(2.35rem,12vw,3.5rem)}}
@media(prefers-reduced-motion:reduce){.hel-graph-path{transition:none}.hel-graph-path:hover{transform:none}}
