/* css/styles.css */

/* Global page settings */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Header */
header {
  color: white;
}

/* Navigation links */
nav a {
  color: #f0e080;
  margin-right: 1rem;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  display: flex;
  align-items: flex-end;
  min-height: 50px;
  padding-top: 20px;
  padding-bottom: 0;
  font-size: 1.2em;
  background-color: #2d6da4 !important;
}

.nav-link {
  padding-top: 40px;
}

/* Page title */
main h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2d6da4;
  letter-spacing: -0.01em;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #2d6da4;
  margin-bottom: 0.75rem;
}

/* Index page: description after h1 */
main h1 + p {
  font-size: 1.05rem;
  color: #4a6e8a;
  font-style: italic;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Tagline quote on topic pages (first p, no preceding h1 in body) */
.quarto-title + * p:first-of-type,
main > p:first-of-type {
  font-size: 1rem;
  font-style: italic;
  color: #5a7a95;
  border-left: 3px solid #b8d4ec;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
  background: #eef4fb;
  border-radius: 0 4px 4px 0;
}

/* Reference link badges */
.ref-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d6da4 !important;
  background: #eef4fb;
  border: 1px solid #b8d4ec;
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 3px;
  text-decoration: none !important;
  vertical-align: middle;
  transition: background 0.15s ease, color 0.15s ease;
}

.ref-link:hover {
  background: #2d6da4;
  color: #ffffff !important;
  border-color: #2d6da4;
}

/* Project definition list */
.project-list dl {
  margin: 0;
}

.project-list dt {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2d6da4;
  text-transform: uppercase;
  border-left: 3px solid #2d6da4;
  padding-left: 0.6rem;
}

.project-list dt i {
  font-size: 1.25em;
  vertical-align: middle;
  margin-right: 0.15em;
}

.project-list dd {
  margin: 0.2rem 0 0.5rem 1rem;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  border-left: 1px solid #d5e8f5;
  padding-left: 0.75rem;
  overflow-wrap: break-word;
}

/* Publications */
#refs {
  margin-top: 1.5rem;
}

.csl-bib-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.csl-entry {
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding: 0.65rem 0 0.65rem 0.85rem;
  border-left: 2px solid #d5e8f5;
  margin-bottom: 0.6rem;
  color: #444;
}

.csl-entry a {
  color: #2d6da4;
  text-decoration: none;
  overflow-wrap: break-word;
}

.csl-entry a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: 3rem;
  border-top: 1px solid #d5e8f5;
  padding-top: 1rem;
}
