/* Shared publication and abstract styles (no body font-size override) */
.pub-title {
  font-size: 120%;
  font-weight: bold;
}

details.abstract {
  margin-top: 0.5em;
  margin-bottom: 1rem;
  text-align: justify;
}

details.abstract summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  text-align: left;
}

details.abstract summary::-webkit-details-marker {
  display: none;
}

details.abstract summary::before {
  content: "► ";
  font-size: 0.9em;
}

details.abstract[open] summary::before {
  content: "▼ ";
}

/* Key figure inside Summary */
.key-figure {
  max-width: 100%;
  margin-bottom: 0.75rem;
}
.key-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.key-figure-caption {
  font-size: 0.9em;
  color: #94a3b8;
  font-style: italic;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Extra space before Other Publications section */
.pub-section-gap {
  margin-top: 2.5rem;
}

/* ----- Dark premium theme ----- */
body {
  --bs-body-bg: #1e293b;
  --bs-body-color: #e2e8f0;
  --bs-primary: #f59e0b;
  --bs-link-color: #fbbf24;
  background: #1e293b;
  color: #e2e8f0;
}

.navbar {
  background: #0f172a !important;
  border-bottom: 1px solid #334155;
}

.navbar-brand,
.navbar .nav-link {
  color: #f8fafc !important;
}

.navbar .nav-link.active {
  color: #fbbf24 !important;
  font-weight: 600;
}

#quarto-content,
.quarto-body,
main {
  background: #1e293b;
  color: #e2e8f0;
}

h1, h2, h3, h4, h5, h6 {
  color: #f8fafc;
}

.card {
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 0.5rem;
}

.card-title {
  color: #fff;
}

.card .text-muted,
.card-text.text-muted {
  color: #94a3b8 !important;
}

.btn-primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
}

.btn-primary:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #0f172a;
}

a {
  color: #fbbf24;
}

a:hover {
  color: #fcd34d;
}

code:not(pre code) {
  background: #475569;
  color: #fbbf24;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

pre, pre code {
  background: #334155 !important;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 0.5rem;
}

.table {
  color: #e2e8f0;
}

.table th,
.table td {
  border-color: #475569;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(51, 65, 85, 0.5);
}

