.research-field-ending { white-space: nowrap; }
.research-field-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  min-width: 24px;
  min-height: 24px;
  margin: -0.15em 0;
  padding: 3px;
  vertical-align: -0.32em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.research-field-button[hidden], .research-field-popover[hidden] { display: none; }
.research-field-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.research-field-button:hover, .research-field-button[aria-expanded="true"] { background: #edf0eb; }
.research-field-button:focus-visible, .research-field-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.research-field-popover {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-sizing: border-box;
  width: 27rem;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 0;
  border: 1px solid #a6b5a0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 18px rgb(35 48 34 / 10%);
  overflow: hidden;
  text-align: left;
  animation: research-field-open 140ms ease-out;
}
.research-field-header { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 0.875rem 0.625rem; border-bottom: 1px solid var(--rule); }
.research-field-header h3 { margin: 0; color: var(--green); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.research-field-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; margin: -2px -4px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 1.125rem; line-height: 1; cursor: pointer; }
.research-field-close:hover { color: var(--ink); background: var(--paper); }
.research-field-content { flex: 1 1 auto; padding: 0.75rem 0.875rem; max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; min-height: 0; }
.research-field-description { margin: 0 0 0.875rem; font-size: 0.875rem; line-height: 1.55; }
.research-field-citations { display: inline; margin: 0; white-space: nowrap; }
.research-field-citation sup { position: relative; top: -0.35em; vertical-align: baseline; font-size: 0.7em; line-height: 0; }
.research-field-citation-button { min-width: 0; margin: 0; padding: 0.2em 0; border: 0; border-radius: 0; background: transparent; color: var(--green); font: inherit; line-height: 1.1; cursor: pointer; }
.research-field-citation-button:hover, .research-field-citation-button[aria-expanded="true"] { background: #edf0eb; }
.research-field-citation-button:focus-visible, .research-field-reference-title:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.research-field-reference { position: fixed; z-index: 41; display: block; box-sizing: border-box; width: 22rem; max-width: calc(100vw - 24px); padding: 0.625rem 0.75rem; border: 1px solid #a6b5a0; border-radius: 0; background: var(--white); color: var(--ink); box-shadow: 0 3px 14px rgb(35 48 34 / 12%); font-size: 0.75rem; font-weight: 300; line-height: 1.5; white-space: normal; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.research-field-reference[hidden] { display: none; }
.research-field-reference-authors, .research-field-reference-title, .research-field-reference-venue { display: block; }
.research-field-reference-title { margin: 0.2rem 0; color: var(--green); text-decoration: underline; text-underline-offset: 0.15em; }
.research-field-reference-venue { color: var(--muted); font-size: 0.6875rem; }
.research-field-subheading { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.research-field-papers { list-style: none; margin: 0; padding: 0; }
.research-field-papers > li { margin: 0; padding: 0.625rem 0; border-top: 1px solid var(--rule); font-size: 0.8125rem; line-height: 1.45; }
.research-field-papers > li:first-child { padding-top: 0; border-top: 0; }
.research-field-papers > li:last-child { padding-bottom: 0; }
.research-field-paper-title { color: var(--ink); }
a.research-field-paper-title { text-decoration: none; }
a.research-field-paper-title:hover { color: var(--green); text-decoration: underline; }
.research-field-paper-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.6875rem; line-height: 1.45; }
@keyframes research-field-open { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .research-field-popover { animation: none; } }
@media print { .research-field-button, .research-field-popover { display: none !important; } }
