.human-statement {
  display: block;
  line-height: 1.5;
}

.relation-list details {
  margin-top: 8px;
  color: var(--muted);
}

.relation-list summary {
  cursor: pointer;
  font: 500 .63rem DM Mono, monospace;
  text-transform: uppercase;
}

.relation-list code {
  display: block;
  margin-top: 7px;
  padding: 7px;
  background: rgba(17, 17, 15, .07);
  font: 400 .62rem/1.5 DM Mono, monospace;
  overflow-wrap: anywhere;
}

.source-tag {
  display: block;
}

.source-block ol {
  list-style: none;
  padding-left: 0;
}

.source-block li {
  padding-left: 2rem;
  text-indent: -2rem;
}

.source-key {
  display: block;
  margin-bottom: 3px;
  font: 500 .65rem DM Mono, monospace;
  text-transform: uppercase;
  text-indent: 0;
}

.source-citation {
  display: block;
  text-indent: 0;
}

.source-citation cite {
  font-family: inherit;
}

.source-identifiers {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-indent: 0;
}

.network-hidden {
  display: none;
}

.node.context-node {
  opacity: .34;
}

.node.context-node circle,
.node.context-node rect {
  transform: scale(.76);
  transform-origin: center;
}

.edge-group.context-edge .edge {
  opacity: .34;
  stroke-dasharray: 4 4;
}

.edge-group.context-edge .edge-label {
  opacity: .55;
}

.node-focus-person circle {
  fill: var(--red);
}

.node-contextual-person circle {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 3;
}

.dot.focus-person {
  background: var(--red);
}

.dot.contextual-person {
  background: var(--white);
  border: 2px solid var(--blue);
}

.reset-filter { margin-left: auto; }

.edge-label {
  opacity: 0;
  transition: opacity .15s;
}

.edge-group:hover .edge-label,
.edge-group.selected-edge .edge-label {
  opacity: 1;
}

.node.dimmed { opacity: .16; }

.node:focus { outline: none; }

.node:focus-visible circle,
.node:focus-visible rect {
  stroke-width: 4;
  filter: drop-shadow(0 0 2px var(--white));
}

.node text {
  font: 700 14px/1.2 Manrope, sans-serif;
}

.node-event text { font-size: 13px; }

.detail-action {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: .7rem .8rem;
  font: 500 .68rem DM Mono, monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-panel {
  height: 610px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-summary {
  flex: 0 0 auto;
}

.detail-connections {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  margin-top: 1.25rem;
  padding-right: .55rem;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.detail-connections:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.detail-connections .relation-list {
  margin-top: 0;
  margin-bottom: 0;
}

.timeline-person {
  border-top: 1px solid #77746c;
}

#timeline-list { border-top: 0; }

.timeline-person:last-child { border-bottom: 1px solid #77746c; }

.timeline-person > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--paper);
}

.timeline-person > summary::-webkit-details-marker { display: none; }
.timeline-person > summary::before { content: '+'; width: 1.5rem; color: var(--yellow); font: 500 1.4rem DM Mono, monospace; }
.timeline-person[open] > summary::before { content: '−'; }
.timeline-person > summary span { font-size: clamp(1.2rem,2vw,1.7rem); font-weight: 700; }
.timeline-person > summary strong { margin-left: auto; color: var(--yellow); font: 500 .7rem DM Mono, monospace; text-transform: uppercase; }
.timeline-person-events {
  max-height: min(560px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-left: 2.5rem;
  padding-right: .75rem;
}
.timeline-person-events:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}
.timeline-person-events .timeline-list { border-top: 0; }

@media (max-width: 720px) {
  .reset-filter { margin-left: 0; }
  .timeline-person-events {
    max-height: min(500px, 65vh);
    padding-left: 0;
  }
  .detail-panel { height: 500px; }
}

.intro {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  grid-template-areas: "copy index";
  grid-template-rows: 1fr;
  gap: 4vw;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.intro-copy { grid-area: copy; }
.intro-index { grid-area: index; }

.intro-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.intro::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .72) 0%, rgba(8, 8, 8, .48) 43%, rgba(8, 8, 8, .24) 72%, rgba(8, 8, 8, .42) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, .62) 0%, transparent 46%);
}

.intro-copy,
.intro-index,
.intro-credit { position: relative; z-index: 2; }

.intro .eyebrow { color: var(--yellow); }

.intro h1 {
  max-width: 980px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .38);
}

.intro .lede {
  max-width: 680px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}

.intro-index {
  border-color: rgba(255, 253, 247, .72);
  background: rgba(8, 8, 8, .3);
  padding: 0 1rem;
  backdrop-filter: blur(3px);
}

.intro-index div { border-color: rgba(255, 253, 247, .55); }

.intro-credit {
  position: absolute;
  right: 1rem;
  bottom: .65rem;
  margin: 0;
  padding: .3rem .45rem;
  background: rgba(8, 8, 8, .62);
  color: var(--paper);
  font: 500 .58rem/1.35 DM Mono, monospace;
  text-transform: uppercase;
}

.publication-section {
  padding: 100px 4vw;
  background: var(--paper);
}

.publication-heading {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) 1.55fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.publication-heading .kicker { margin: 0; }

.publication-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: .95;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.publication-grid article {
  min-width: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.publication-grid h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.publication-grid p { margin: 0 0 1rem; }
.citation-text { color: var(--muted); }

.contact-line {
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 15, .35);
}

.contact-line a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  color: var(--red);
}

.data-download {
  display: inline-block;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.data-download:hover { border-bottom-color: var(--red); color: var(--red); }

@media (max-width: 1100px) {
  .intro {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "index";
    grid-template-rows: auto;
  }
  .intro-index { max-width: 520px; }
}

@media (max-width: 760px) {
  .intro { min-height: calc(100svh - 60px); padding-bottom: 5rem; }
  .intro-media img { object-position: 56% center; }
  .intro::after { background: rgba(8, 8, 8, .58); }
  .intro-credit { left: 5vw; right: 5vw; }
  .publication-heading { grid-template-columns: 1fr; }
  .publication-grid { grid-template-columns: 1fr; }
}
