:root {
  --global-bg-color: var(--bg-color, #1f2228);
  --global-code-bg-color: rgba(255, 255, 255, 0.03);
  --global-text-color: var(--text-color, #ffffff);
  --global-text-color-light: var(--text-muted, rgba(255, 255, 255, 0.5));
  --global-theme-color: var(--theme-color-bright, rgb(62, 183, 240));
  --global-hover-color: rgba(255, 255, 255, 0.5);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  border-radius: 0;
  background: rgba(4, 51, 97, 0.38);
  color: #ffffff !important;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  vertical-align: baseline;
  white-space: nowrap;
  box-shadow: none;
}

blockquote {
  margin: 32px 0;
  padding: 16px 0 16px 24px;
  border-left: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  background: transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-size: 1rem;
}

.publications {
  margin-top: 24px;
}

.publications h1 {
  margin: 48px 0;
  color: var(--text-color, #ffffff);
  font-size: 30px;
  font-weight: 400;
  text-align: left;
}

.publications h2 {
  margin-bottom: 24px;
}

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

.publications h2.year {
  margin-top: 48px;
  margin-bottom: 0;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  text-align: right;
}

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

.publications ol.bibliography li {
  min-height: 0;
  margin-bottom: 16px;
}

.publications ol.bibliography li + br {
  display: none;
}

.publications ol.bibliography li .abbr {
  position: relative;
  height: auto;
  min-height: 124px;
  margin-bottom: 0;
}

.publications ol.bibliography li .abbr abbr {
  position: absolute;
  top: 8px;
  left: 8px;
}

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

.publications ol.bibliography li .abbr abbr a:hover {
  color: var(--interactive-hover, rgba(255, 255, 255, 0.5));
  text-decoration: none;
}

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

.publications ol.bibliography li .title {
  margin-bottom: 8px;
  color: var(--text-color, #ffffff);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.publications ol.bibliography li .title a {
  color: var(--text-color, #ffffff);
}

.publications ol.bibliography li .title a:hover {
  color: var(--interactive-hover, rgba(255, 255, 255, 0.5));
}

.publications ol.bibliography li .author,
.publications ol.bibliography li .periodical {
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.publications ol.bibliography li .periodical {
  margin-bottom: 12px;
}

.publications ol.bibliography li .author a {
  border-bottom: 1px solid transparent;
}

.publications ol.bibliography li .author a:hover {
  border-bottom-color: currentColor;
  text-decoration: none;
}

.publications ol.bibliography li .author > em {
  border-bottom: 1px solid var(--global-theme-color);
  font-style: normal;
}

.publications ol.bibliography li .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.publications ol.bibliography li .links a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  border-radius: 0;
  background: transparent;
  color: var(--text-color, #ffffff);
  font-family: var(--mono-font);
  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.publications ol.bibliography li .links .pub-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.publications ol.bibliography li .links a.btn:hover {
  border-color: var(--global-theme-color);
  background: var(--surface-color, rgba(255, 255, 255, 0.03));
  color: var(--interactive-hover, rgba(255, 255, 255, 0.5));
}

.publications ol.bibliography li .hidden {
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-size: 0.875rem;
  text-align: left;
  transition: all 0.15s ease;
}

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

.publications ol.bibliography li .hidden pre {
  padding: 16px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: var(--surface-color, rgba(255, 255, 255, 0.03));
  font-size: 1em;
  line-height: 1.4;
}

.publications ol.bibliography li .hidden.open {
  max-height: 100em;
}

.publications ol.bibliography li div.abstract.hidden {
  border: 1px dashed transparent;
}

.publications ol.bibliography li div.abstract.hidden.open {
  border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

.publications ol.bibliography li .teaser {
  display: block;
  width: 100%;
  height: 124px;
  margin: 0;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.experiences {
  margin-top: 24px;
}

.experiences ul.bibliography {
  margin: 0;
}

.experiences li .abbr img {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
}

.experiences .title {
  margin-bottom: 6px;
  color: var(--text-color, #ffffff);
  font-size: 18px;
  line-height: 1.35;
}

.experiences .periodical,
.experiences .author {
  margin-top: 8px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

@media print, screen and (max-width: 640px) {
  .publications ol.bibliography li .abbr {
    min-height: 0;
  }

  .publications ol.bibliography li .teaser {
    height: auto;
    max-height: 180px;
  }
}
