body.research-site, html[data-theme="dark"] body.research-site { background-image: none; }
.research-hub, .research-detail {
  --research-ink: var(--global-text-color);
  --research-muted: var(--global-text-color-light);
  --research-line: var(--global-divider-color);
  --research-link: #176a74;
  color: var(--research-ink);
  letter-spacing: 0;
}
.research-hub *, .research-detail * { letter-spacing: 0; }
.research-hub [hidden], .research-detail [hidden] { display: none !important; }
.research-hub a, .research-detail a { color: var(--research-link); }
.research-hub button, .research-hub input, .research-hub select, .research-detail button { font: inherit; }
.research-hub button, .research-detail button { cursor: pointer; }
.research-hub :focus-visible, .research-detail :focus-visible { outline: 3px solid var(--research-link); outline-offset: 4px; }
.research-intro { padding-bottom: 2rem; max-width: 49rem; }
.research-eyebrow { font-size: .73rem; font-weight: 700; text-transform: uppercase; color: var(--research-muted); margin-bottom: .65rem; }
.research-intro h1 { font-size: 2.5rem; margin-bottom: .6rem; }
.research-intro h2 { font-size: 1.4rem; line-height: 1.35; margin-bottom: .8rem; }
.research-intro > p:not(.research-eyebrow) { color: var(--research-muted); font-size: 1rem; max-width: 46rem; }
.research-intro-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; font-size: .85rem; }
.research-intro-links i { font-size: .65rem; margin-left: .35rem; }
.research-map-section { border-top: 1px solid var(--research-line); padding-top: 1.35rem; }
.research-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.research-section-heading h2 { font-size: 1.2rem; margin: 0; }
.research-reset { border: 0; padding: .35rem 0 .35rem .5rem; color: var(--research-link); background: none; font-size: .8rem !important; white-space: nowrap; }
.research-reset i { font-size: .7rem; margin-right: .3rem; }
.research-map { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "predictions control energy" "structure games agents"; gap: 3rem 2.75rem; padding: 1.5rem 0; }
.research-map-edges { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.research-map-edges path { fill: none; stroke: var(--research-line); stroke-width: 1.6; transition: stroke .2s, opacity .2s; }
.research-map-edges path[data-active="true"] { stroke: var(--research-link); stroke-width: 2; }
.research-map-edges path[data-active="false"] { opacity: .3; }
[data-node="predictions"] { grid-area: predictions; }
[data-node="control"] { grid-area: control; }
[data-node="energy"] { grid-area: energy; }
[data-node="structure"] { grid-area: structure; }
[data-node="games"] { grid-area: games; }
[data-node="agents"] { grid-area: agents; }
[data-topic="predictions"] { --topic-color: #247486; }
[data-topic="control"] { --topic-color: #346b4e; }
[data-topic="agents"] { --topic-color: #9a485d; }
[data-topic="energy"] { --topic-color: #906611; }
[data-topic="games"] { --topic-color: #6d5791; }
[data-topic="structure"] { --topic-color: #526877; }
.research-node { display: flex; position: relative; align-items: flex-start; gap: .65rem; padding: 1rem .85rem; min-height: 122px; border: 1px solid var(--research-line); border-top: 3px solid var(--topic-color); border-radius: 6px; background: var(--global-surface-color); color: var(--research-ink) !important; transition: border-color .2s, box-shadow .2s; text-decoration: none !important; }
.research-node:hover, .research-node[aria-current="true"] { border-color: var(--topic-color); box-shadow: 0 0 0 1px var(--topic-color); }
.research-node > i:first-child { color: var(--topic-color); font-size: .95rem; width: 1.1rem; flex-shrink: 0; margin-top: .2rem; }
.research-node > span { min-width: 0; }
.research-node strong { display: block; font-size: .88rem; line-height: 1.4; font-weight: 600; }
.research-node span span { display: block; font-size: .74rem; line-height: 1.5; margin-top: .4rem; color: var(--research-muted); }
.research-node-arrow { color: var(--topic-color); font-size: .65rem; margin-top: .4rem; margin-left: auto; }
.research-focus { border-left: 2px solid var(--research-link); padding: .2rem 0 .2rem 1rem; margin: .3rem 0 2rem; min-height: 100px; }
.research-focus h3 { font-size: 1rem; margin: 0 0 .35rem; }
.research-focus p { margin: 0 0 .25rem; font-size: .9rem; }
.research-focus span, .research-focus a { font-size: .8rem; color: var(--research-muted); }
.research-focus a { color: var(--research-link); }
.research-tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--research-line); margin-bottom: 1.5rem; }
.research-tabs a { padding: .7rem 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--research-muted); font-size: .88rem; text-decoration: none; }
.research-tabs a[aria-selected="true"], .research-tabs a:hover { color: var(--research-ink); border-bottom-color: var(--research-link); }
.research-section-title { font-size: 1.35rem; margin-bottom: 1rem; }
.research-section-lead { color: var(--research-muted); font-size: .88rem; max-width: 42rem; }
.research-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(160px, 1fr) 105px 130px; gap: .6rem; margin-bottom: 1.4rem; }
.research-filters label { margin: 0; min-width: 0; }
.research-filters select, .research-filters input { display: block; width: 100%; height: 42px; font-size: .8rem; border: 1px solid var(--research-line); border-radius: 4px; background: var(--global-surface-color); color: var(--research-ink); padding: 0 .65rem; }
.research-search { position: relative; }
.research-search input { padding-left: 2rem; }
.research-search i { position: absolute; left: .7rem; top: 14px; font-size: .85rem; color: var(--research-muted); }
.research-filter-status { color: var(--research-muted); font-size: .8rem; margin-bottom: .6rem; }
.research-paper-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.4rem; border-top: 1px solid var(--research-line); padding: 1.45rem 0; }
.research-paper-date { font-size: .76rem; line-height: 1.5; }
.research-paper-date span { display: block; color: var(--research-muted); }
.research-paper-date span:first-child { font-size: 1rem; font-weight: 600; color: var(--research-ink); margin-bottom: .3rem; font-variant-numeric: tabular-nums; }
.research-paper-body { min-width: 0; }
.research-paper-body h3 { font-size: 1.1rem; line-height: 1.4; margin: 0 0 .5rem; }
.research-paper-body h3 a { color: var(--research-ink); }
.research-authors { font-size: .75rem; color: var(--research-muted); margin: 0 0 .55rem; line-height: 1.6; }
.research-paper-summary { font-size: .87rem; line-height: 1.7; margin: 0 0 .7rem; }
.research-paper-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.research-paper-links a { font-size: .72rem; }
.research-topic { color: var(--topic-color) !important; }
.research-source { margin-left: auto; }
.research-source i { transform: rotate(45deg); font-size: .6rem; }
.research-empty { padding: 3rem 1rem; text-align: center; border-top: 1px solid var(--research-line); }
.research-empty h3 { font-size: 1.2rem; }
.research-empty p { color: var(--research-muted); font-size: .9rem; }
.research-empty button, .research-bibtex button { border: 1px solid var(--research-line); border-radius: 4px; background: var(--global-surface-color); color: var(--research-link); padding: .45rem .75rem; font-size: .85rem; }
.research-connection, .research-direction { border-top: 1px solid var(--research-line); padding: 1.6rem 0; }
.research-connection-route { display: flex; gap: .65rem; margin-bottom: .75rem; font-size: .73rem; font-weight: 600; }
.research-connection h3, .research-direction h3 { font-size: 1.25rem; line-height: 1.4; }
.research-connection > p:not(.research-connection-route), .research-direction > p:not(.research-eyebrow) { font-size: .9rem; max-width: 47rem; }
.research-evidence { list-style: none; margin: .9rem 0 0; padding: 0; }
.research-evidence li { padding: .4rem 0 .4rem 1rem; border-left: 2px solid var(--research-line); font-size: .82rem; line-height: 1.55; }
.research-evidence li + li { margin-top: .15rem; }
.research-evidence span { display: block; color: var(--research-muted); font-size: .7rem; margin-top: .15rem; }
.research-direction-question { font-weight: 600; }
.research-direction h4 { font-family: var(--global-font-body); font-size: .78rem; margin-top: 1.2rem; }
.research-footer { display: flex; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--research-line); margin-top: 2rem; padding-top: 1rem; font-size: .75rem; }
.research-view { scroll-margin-top: 90px; }
.research-breadcrumbs { display: flex; gap: .7rem; align-items: baseline; font-size: .8rem; margin-bottom: 2rem; }
.research-breadcrumbs span { color: var(--research-muted); }
.research-paper-header { padding-bottom: 1.6rem; border-bottom: 1px solid var(--research-line); }
.research-paper-header h1, .research-theme-header h1 { font-size: 2rem; line-height: 1.25; overflow-wrap: break-word; }
.research-detail-authors { font-size: .95rem; line-height: 1.8; margin: 1.2rem 0 .5rem; }
.research-publication, .research-note { color: var(--research-muted); font-size: .85rem; }
.research-note { font-size: .78rem; }
.research-resource-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .83rem; margin-top: 1.3rem; }
.research-resource-links i { margin-right: .35rem; }
.research-contribution { padding: 2rem 0; max-width: 48rem; }
.research-contribution h2 { font-size: 1.4rem; line-height: 1.4; margin-bottom: 1rem; }
.research-contribution p { font-size: 1rem; line-height: 1.85; }
.research-detail-section { border-top: 1px solid var(--research-line); padding: 1.5rem 0; }
.research-detail-section > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.research-detail-section > h3 { font-size: 1.05rem; line-height: 1.4; margin: 1.25rem 0 .55rem; }
.research-detail-section > p { font-size: .9rem; }
.research-theme-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .7rem 1.4rem; margin: 0; font-size: .88rem; }
.research-theme-list a { color: var(--topic-color); }
.research-citation { overflow-wrap: anywhere; line-height: 1.8; }
.research-bibtex summary { cursor: pointer; font-size: .85rem; color: var(--research-link); }
.research-bibtex pre { margin: 1rem 0; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--global-muted-band); }
.research-bibtex code { font-size: .75rem; background: none; color: var(--research-ink); }
[data-copy-status] { font-size: .8rem; margin-left: .65rem; }
.research-theme-header { padding-bottom: 2rem; max-width: 48rem; }
.research-theme-header h2 { font-size: 1.25rem; line-height: 1.5; margin: 1rem 0; }
.research-theme-header > a { font-size: .85rem; }
html[data-theme="dark"] .research-hub, html[data-theme="dark"] .research-detail { --research-link: #76c9c4; }
html[data-theme="dark"] [data-topic="predictions"] { --topic-color: #75bfda; }
html[data-theme="dark"] [data-topic="control"] { --topic-color: #83be95; }
html[data-theme="dark"] [data-topic="agents"] { --topic-color: #e89cb0; }
html[data-theme="dark"] [data-topic="energy"] { --topic-color: #dcc072; }
html[data-theme="dark"] [data-topic="games"] { --topic-color: #baaae0; }
html[data-theme="dark"] [data-topic="structure"] { --topic-color: #a1bacb; }
@media (max-width: 800px) {
  .research-map { column-gap: 1.5rem; }
  .research-node { gap: .5rem; padding: .8rem .6rem; min-height: 145px; }
  .research-node-arrow { display: none; }
  .research-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 575px) {
  .research-intro h1 { font-size: 2rem; }
  .research-intro h2 { font-size: 1.2rem; }
  .research-section-heading h2 { font-size: 1.08rem; }
  .research-map { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "predictions control" "structure agents" "games energy"; gap: 1.4rem 1.25rem; }
  .research-node { min-height: 142px; }
  .research-node > i:first-child { display: none; }
  .research-node strong { font-size: .85rem; }
  .research-node span span { font-size: .73rem; }
  .research-focus { min-height: 0; }
  .research-tabs { gap: 1.3rem; }
  .research-tabs a { font-size: .83rem; }
  .research-filters { gap: .5rem; }
  .research-search { grid-column: 1 / -1; }
  .research-filters label:nth-child(2) { grid-column: 1 / -1; }
  .research-paper-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1.3rem 0; }
  .research-paper-date { display: flex; align-items: baseline; gap: .7rem; }
  .research-paper-date span:first-child { font-size: .82rem; margin: 0; flex-shrink: 0; }
  .research-paper-date span:last-child { font-size: .72rem; }
  .research-paper-body h3 { font-size: 1.05rem; }
  .research-paper-header h1, .research-theme-header h1 { font-size: 1.65rem; }
  .research-detail-authors { font-size: .87rem; }
  .research-contribution h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .research-hub *, .research-detail * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .research-hub .research-view[hidden], .research-hub [data-paper][hidden], .research-hub [data-connection][hidden], .research-hub [data-direction][hidden] { display: block !important; }
  .research-filters, .research-tabs, .research-reset, .research-map-edges, [data-copy-citation] { display: none !important; }
  .research-paper-row { break-inside: avoid; }
}
