article h3[id] { scroll-margin-top: 6rem; }
#bibtex-dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: 85vh;
  margin: auto;
  padding: 0.5rem;
  border: 1px solid #a1a1aa;
  border-radius: 0.75rem;
  background: var(--bg, #f4f4f5);
  color: #18181b;
  box-shadow: 0 1rem 3rem #0004;
}
#bibtex-dialog::backdrop { background: #0008; }
.dark #bibtex-dialog { background: var(--bg-dark, #18181b); color: #f4f4f5; }
#bibtex-dialog .bibtex-panel { position: relative; margin: 0; background: #80808018; border-radius: 10px; }
#bibtex-dialog #bibtex-copy { position: absolute; top: 0.4rem; right: 0.4rem; padding: 0.25rem; background: transparent; color: inherit; z-index: 1; }
#bibtex-dialog #bibtex-copy:hover { background: #80808025; }
#bibtex-dialog pre {
  max-height: 55vh;
  overflow: auto;
  margin: 0;
  padding: 1rem 2.5rem 1rem 1rem;
  background: transparent;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.4;
}
#bibtex-dialog code { color: inherit; line-height: inherit; }
#bibtex-dialog pre:focus { outline: none; }
#bibtex-dialog button { appearance: none; background: #3f3f46; color: #f4f4f5; font: inherit; font-size: 0.75rem; line-height: 1.4; border: 0; border-radius: 0.25rem; padding: 0.2rem 0.55rem; cursor: pointer; }
#bibtex-dialog button:hover { background: #52525b; }
#bibtex-dialog button:disabled { opacity: 0.5; cursor: default; }
#bibtex-dialog button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#bibtex-status { display: block; font-size: 0.875rem; }
#bibtex-status:not(:empty) { padding: 0 1rem 0.75rem; }
.journals-panel { position: relative; }
.journals-copy-toolbar { position: absolute; top: 0.4rem; right: 0.4rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.journals-copy { display: inline-flex; align-items: center; padding: 0.25rem; border: 0; border-radius: 0.25rem; background: transparent; color: inherit; cursor: pointer; }
.journals-copy svg { width: 22px; height: 22px; margin: 0; flex: none; }
.journals-copy:hover { background: #80808025; }
.journals-copy:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.journals-copy-status { font-size: 0.75rem; font-weight: normal; }
.publication-copy { vertical-align: middle; margin-left: auto; margin-right: 0.5rem; flex-shrink: 0; }
.publication-copy svg { width: 16px; height: 16px; }
.publication-resource-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; width: 100%; max-width: 100%; margin-top: 0.6rem; }
.articles-year-group { margin: 1rem 0; }
.articles-year-group > summary { cursor: pointer; font-weight: 600; padding: 0.35rem 0; }
.articles-year-group > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 0.25rem; }
.articles-year-list-panel { position: relative; padding-top: 2.5rem; }
.articles-year-copy-toolbar { position: absolute; top: 0.4rem; right: 0.4rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
