.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.badge {
    color: #fff !important;
    border-radius: 0.125rem;
    -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

:root { --global-bg-color: #ffffff; --global-code-bg-color: rgba(181, 9, 172, 0.05); --global-text-color: #333333; --global-text-color-light: #666666; --global-theme-color: #2a5db0; --global-hover-color: #1a3d70; --global-footer-bg-color: #1c1c1c; --global-footer-text-color: #e8e8e8; --global-footer-link-color: #ffffff; --global-distill-app-color: #828282; }

blockquote { background: var(--global-bg-color); border-left: 2px solid var(--global-theme-color); margin: 1.5em 10px; padding: 0.5em 10px; font-size: 1.2rem; }
@media print, screen and (min-width: 480px) {.col-sm-9 {width: 100%;}}

.publications { margin-top: 0; }

.publications h1 { color: var(--global-theme-color); font-size: 2rem; text-align: center; margin-top: 1em; margin-bottom: 1em; }

.publications h2 { margin-bottom: 1rem; }

.publications h2 span { font-size: 1.5rem; }

.publications h2.year { color: #e8e8e8; border-top: 1px solid #e8e8e8; margin-top: 2rem; margin-bottom: 0rem; text-align: right; }

.publications ol.bibliography { list-style: none; padding: 0;  margin-top: 0;}

.publications ol.bibliography li { margin-bottom: 1rem; }

.publications ol.bibliography li .abbr { margin-bottom: 0; }

.publications ol.bibliography li .abbr abbr { display: inline-block; background-color: var(--global-theme-color); padding-left: 1rem; padding-right: 1rem; position: absolute; top: 8px; left: 16px; }

.publications ol.bibliography li .abbr abbr a { color: white; }

.publications ol.bibliography li .abbr abbr a:hover { text-decoration: none; }

.publications ol.bibliography li .abbr .award { color: var(--global-theme-color) !important; border: 1px solid var(--global-theme-color); }

.publications ol.bibliography li .title { font-weight: bolder; }

.publications ol.bibliography li .title a { transition: color 0.15s ease; }

.publications ol.bibliography li .title a:hover { color: #1a4a90; text-decoration: underline; }

.publications ol.bibliography li .author a { transition: color 0.15s ease; }

.publications ol.bibliography li .author a:hover { color: #1a4a90; text-decoration: underline; }

.publications ol.bibliography li .author > em { border-bottom: 1px solid; font-style: normal; }

.publications ol.bibliography li .pub-journal a { transition: color 0.15s ease; }

.publications ol.bibliography li .pub-journal a:hover { color: #1a4a90; text-decoration: underline; }

/* Spacing before buttons */
.publications ol.bibliography li .links {
  margin-top: 0.2rem;
}

/* Spacing after journal */
.pub-journal {
  margin-bottom: 0.4rem;
}

/* Colorful buttons */
.publications ol.bibliography li .links a.btn {
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 12px;
  border: none;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
  display: inline-block;
  transition: background 0.2s ease, transform 0.1s ease;
}

.publications ol.bibliography li .links a.btn:hover {
  transform: translateY(-1px);
}

/* Blue for papers/WP */
.btn-paper {
  background: #007bff !important;
}
.btn-paper:hover {
  background: #0056b3 !important;
}

/* Green for code */
.btn-code {
  background: #28a745 !important;
}
.btn-code:hover {
  background: #1e7e34 !important;
}

/* Orange for slides */
.btn-slides {
  background: #fd7e14 !important;
}
.btn-slides:hover {
  background: #e96b02 !important;
}

/* Deep green for Replication */
.btn-replication {
  background: #198754 !important;
}
.btn-replication:hover {
  background: #146c43 !important;
}

/* Yellow for BibTeX */
.btn-bibtex {
  background: #ffc107 !important;
  color: #212529 !important;
}
.btn-bibtex:hover {
  background: #e0a800 !important;
}

/* Purple for project page */
.btn-page {
  background: #6f42c1 !important;
}
.btn-page:hover {
  background: #5a32a3 !important;
}

/* Deep red for outreach / policy publications */
.btn-outreach {
  background: #b02a37 !important;
}
.btn-outreach:hover {
  background: #8e1f2b !important;
}

/* Expandable panel listing outreach / policy links */
.outreach-content {
  margin-top: 0.4rem;
  font-size: 0.98em;
  font-weight: 500;
  line-height: 1.3;
}
.outreach-content ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}
.publications ol.bibliography li .outreach-content li {
  margin-bottom: 0;
}
.outreach-content li::marker {
  color: #b02a37;
  font-size: 1.15em;
}

/* Publication journal link */
.pub-journal {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* Publication notes (e.g., "Submitted") */
.pub-note {
  display: block;
  width: fit-content;
  color: #444;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 500;
  background: #ececec;
  padding: 0.12rem 0.6rem;
  border-radius: 11px;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

/* Collapsible BibTeX content */
.bibtex-content {
  width: 100%;
  max-width: 50%;
  box-sizing: border-box;
  margin-top: 0.6rem;
  background: #ffc107;
  border: 1px solid #d39e00;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: bibtex-pop 0.18s ease;
}
@keyframes bibtex-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  background: #e9b500;
  border-bottom: 1px solid #d39e00;
}
.bibtex-label {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #212529;
}
.bibtex-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #212529;
  color: #212529;
  font-size: 11px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bibtex-copy:hover {
  background: #212529;
  color: #ffc107;
}
.bibtex-copy.copied {
  background: #146c43;
  border-color: #146c43;
  color: #fff;
}
.bibtex-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 12.5px;
  line-height: 1.5;
  background: transparent;
  border: none;
  padding: 0.75rem 0.9rem;
  color: #212529;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.publications ol.bibliography li .hidden { font-size: 0.875rem; max-height: 0px; overflow: hidden; text-align: justify; -webkit-transition: 0.15s ease; -moz-transition: 0.15s ease; -ms-transition: 0.15s ease; -o-transition: 0.15s ease; transition: all 0.15s ease; }

.publications ol.bibliography li .hidden p { line-height: 1.4em; margin: 10px; }

.publications ol.bibliography li .hidden pre { font-size: 1em; line-height: 1.4em; padding: 10px; }

.publications ol.bibliography li .hidden.open { max-height: 100em; -webkit-transition: 0.15s ease; -moz-transition: 0.15s ease; -ms-transition: 0.15s ease; -o-transition: 0.15s ease; transition: all 0.15s ease; }

.publications ol.bibliography li div.abstract.hidden { border: dashed 1px var(--global-bg-color); }

.publications ol.bibliography li div.abstract.hidden.open { border-color: var(--global-text-color); }

.publications ol.bibliography li .teaser { border-radius: 8px; box-shadow: 3px 3px 6px #888; height: 123px; width: 270px; margin-top: 5px; margin-left: 5px; margin-bottom: 5px; object-fit: cover; }

/* Mobile responsiveness - only apply on small screens */
@media screen and (max-width: 600px) {
  .pub-row {
    display: block !important;
  }

  .pub-row .col-sm-3,
  .pub-row .col-sm-9 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.5rem 0 !important;
  }

  .publications ol.bibliography li .teaser {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .bibtex-content {
    max-width: 100%;
  }
}
