:root {
  color-scheme: dark;
  --paper: #121214;
  --ink: #f2f2f2;
  --muted: #c8c9cc;
  --line: #343538;
  --soft: #1b1b1d;
  --brand: #8ab4ff;
  --focus: #8ab4ff;
  --warning: #f5cb72;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--brand); text-underline-offset: .17em; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button, select { font: inherit; }
button { cursor: pointer; }
.site-header, main, .site-footer { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  margin-top: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, .92);
  backdrop-filter: blur(14px);
}
.site-header-actions { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 12px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-header nav a { color: var(--muted); padding: 4px 7px; border-radius: 6px; font-size: .79rem; text-decoration: none; }
.site-header nav a:hover { background: #232426; color: white; }
.site-header .language-flags { border-left: 1px solid var(--line); padding-left: 10px; }
.language-flags a[aria-current] { background: #1253ff; color: white; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 30px; }
.brand img { display: block; width: 148px; height: auto; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: .875rem; }
.hero { padding: 35px 0 32px; border-bottom: 1px solid var(--line); }
.eyebrow, .date { color: var(--muted); font-size: .875rem; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: baseline; }
.eyebrow span { border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; }
h1, h2, h3 { line-height: 1.35; }
h1 { max-width: 930px; margin: 14px 0; font-size: clamp(27px, 3.4vw, 42px); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.95rem); margin: 0 0 15px; }
h3 { margin: 20px 0 8px; font-size: 1.12rem; }
p { margin: 0 0 12px; }
.dek { max-width: 57ch; font-size: 1.08rem; }
.hero .date { margin-bottom: 0; }
main section { padding: 30px 0; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
section > p, section > ul { max-width: 84ch; }
ul { padding-inline-start: 1.3em; }
.contents { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; margin: 20px 0 0; }
blockquote, .note { margin: 16px 0; padding: 10px 16px; border-inline-start: 3px solid var(--line); background: var(--soft); }
.note p:last-child { margin-bottom: 0; }
.ref { display: inline-block; font: 700 .77rem/1.55 ui-monospace, monospace; padding: 1px 4px; text-decoration: underline; }
table { width: 100%; border-collapse: collapse; table-layout: auto; margin: 20px 0 26px; background: var(--soft); }
caption { color: var(--muted); text-align: left; font-weight: 650; margin-bottom: 7px; }
th, td { text-align: left; vertical-align: top; padding: 9px 11px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead { background: #232426; }
tbody th { min-width: 7em; }
td p { margin: 0 0 7px; }
td p:last-child { margin-bottom: 0; }
:target { scroll-margin-block: 7.5rem; }
span:target { background: #223459; outline: 2px solid #223459; }
.skip { position: absolute; top: 8px; left: 8px; padding: 7px 12px; transform: translateY(-160%); background: var(--paper); z-index: 10; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

figure { margin: 18px 0 0; }
figcaption { color: var(--muted); margin-bottom: 12px; font-size: .9rem; }
.graph {
  overflow: hidden;
  background: var(--graph-background);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.graph-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 18px 8px;
}
.graph-header h3 { margin: 0; font-size: .875rem; line-height: 1.45; color: #f7f7f7; }
.graph-header p { margin: 3px 0 0; font-size: .75rem; line-height: 1.45; color: var(--muted); }
.graph-header-controls, .map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-inline-size: 0;
  max-inline-size: 100%;
  font-size: .8125rem;
  line-height: 1.4;
}
.map-controls { padding: 12px 16px 16px; }
.graph-header-controls label, .map-controls label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  min-inline-size: 0;
  max-inline-size: 100%;
  color: var(--muted);
}
.graph-header-controls :is(button, select), .map-controls :is(button, select), .detail-close {
  border: 1px solid #535660;
  background: #1b1b1f;
  color: var(--ink);
  border-radius: 6px;
  min-block-size: 36px;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 5px 9px;
  font: inherit;
}
.graph-header select, .map-controls select {
  inline-size: 15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.graph-header-controls button, .map-controls button { overflow-wrap: anywhere; }
.graph-header-controls :is(button, select):hover, .map-controls :is(button, select):hover { background: #222329; }
.graph-header-controls :is(button, select):focus-visible, .map-controls :is(button, select):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
@media (max-width: 650px) {
  .graph-header { padding: 12px 14px 8px; }
  .graph-header-controls { flex: 1 1 100%; }
  .graph-header-controls label, .map-controls label { grid-template-columns: minmax(0, 1fr); flex: 1 1 100%; }
  .graph-header-controls :is(button, select), .map-controls :is(button, select) { min-block-size: 40px; }
  .graph-header select, .map-controls select { inline-size: 100%; }
}
.map-hint { color: var(--muted); font-size: .8rem; margin: 0 16px 13px; }
.map-legend { margin: 12px 16px; padding: 12px 14px; background: #1b1b1d; border: 1px solid var(--line); border-radius: 8px; }
.map-legend summary { padding: 0; min-height: auto; font-weight: 700; font-size: .875rem; }
.map-legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px 17px; flex-wrap: wrap; }
.map-legend li { display: flex; align-items: center; gap: 7px; font-size: .83rem; }
.line { display: inline-block; flex: 0 0 27px; height: 3px; border-top: 2px solid var(--edge-verified); }
.line.statement { height: 2px; border: 0; background: repeating-linear-gradient(90deg, var(--edge-statement) 0 10px, transparent 10px 13px, var(--edge-statement) 13px 15px, transparent 15px 18px); }
.line.unresolved { border-top: 2px dashed var(--edge-unresolved); }
.line.context { border-top: 2px dotted var(--edge-context); }
.graph-surface { position: relative; overflow: hidden; }
.graph-surface canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translate(calc(-50% + var(--drift-x, 0px)), calc(var(--diameter) / -2 + var(--drift-y, 0px)));
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #e7e8ec;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  padding: calc(var(--diameter) + 5px) 0 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.node span { background: var(--graph-background); text-wrap: balance; overflow-wrap: anywhere; padding-inline: 2px; }
.node[data-group="root"] { font-weight: 800; color: white; }
.node.moving { z-index: 4; cursor: grabbing; }
.node:hover, .node[aria-pressed="true"] { z-index: 3; color: white; }
.node:focus-visible { z-index: 5; outline-color: var(--focus); }
.graph-detail { position: relative; margin: 12px 16px; border: 1px solid var(--line); padding: 14px 16px; border-radius: 8px; background: #1b1b1d; }
.graph-detail h3 { margin: 0 54px 9px 0; }
.graph-detail h4 { margin: 13px 0 4px; }
.graph-detail p, .graph-detail li { font-size: .87rem; }
.graph-detail ul { padding-left: 1.1em; margin: 8px 0; }
.graph-detail li + li { margin-top: 9px; }
.graph-detail .source-links a { display: block; }
.detail-close { position: absolute; top: 8px; right: 8px; }
.tag { font-size: .79rem; font-weight: 750; }
.tag.unresolved { color: var(--warning); }
.map-fallback { margin: 15px 0 0; }
summary { cursor: pointer; min-height: 44px; padding-block: 8px; }
@media (max-width: 650px) {
  .site-header, main, .site-footer { width: calc(100% - 28px); }
  .site-header { position: relative; top: auto; }
  .site-header-actions { justify-content: flex-start; }
  .site-header .language-flags { border-left: 0; padding-left: 0; }
  .hero { padding-block: 24px; }
  table, tbody, tbody tr, tbody th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { border-top: 1px solid var(--line); }
  tbody th, td { border: 0; padding: 4px 3px; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .82rem; font-weight: 650; }
}
.subtitle { color: var(--muted); font-size: .95rem; font-weight: 600; }
.edge-marker { font: 700 .78rem/1 ui-monospace, monospace; }

.video-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.video-card { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 16px; }
.video-card h3 { margin-top: 0; }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #121214; border-radius: 6px; }
.video-card p:last-child { margin-top: 8px; margin-bottom: 0; }
.graph .tag.unresolved { color: var(--edge-unresolved); }
.graph[data-motion="on"] .node { will-change: transform; }
.research-answers { margin: 22px 0; max-width: 84ch; }
.research-answers dt { font-weight: 670; margin-top: 12px; }
.research-answers dd { margin: 2px 0 0; color: var(--muted); }
