/* Each publication entry as a subtle card */
.pub {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.pub:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Publication type + status tags */
.pub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin: 0 0.3rem 0.5rem 0;
  line-height: 1.4;
}
.tag-article     { background: #e6f1fb; color: #0c447c; }  /* research article */
.tag-chapter     { background: #e1f5ee; color: #085041; }  /* book chapter */
.tag-thesis      { background: #ede8f7; color: #3d1a78; }  /* BA / MSc thesis */
.tag-preprint    { background: #faece7; color: #993c1d; }  /* preprint */
.tag-review      { background: #fbeaf0; color: #72243e; }  /* book review */
.tag-talk        { background: #eeedfe; color: #3c3489; }  /* talk */
.tag-status      { background: #faeeda; color: #854f0b; }  /* under review / forthcoming */
.tag-accepted    { background: #eaf3de; color: #3b6d11; }  /* accepted for publication */
.tag-unpublished { background: #f0f0f0; color: #555555; }  /* unpublished */

/* Talk entries: three-line structure with purple accent */
.talk {
  border: 1px solid #e4e4e4;
  border-left: 3px solid #534ab7;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.talk:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.talk-event {
  font-size: 1.04rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.talk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.talk-meta > p {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}
.talk-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: #f1efe8;
  color: #444441;
  font-size: 0.72rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}
.talk-meta span.bub-talk {
  background: #eeedfe;
  color: #3c3489;
  font-weight: 500;
}
.talk-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a6a6a;
  line-height: 1.45;
  margin-bottom: 0;
}
.talk-event > p,
.talk-title > p {
  margin: 0;
}
.talk-detail {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.45;
  margin-top: 0.25rem;
}
.talk-detail > p {
  margin: 0;
}
.tag-talk .bi { margin-right: 0.25rem; }

.talk-list-item > p:first-child,
.talk-list-item > p:has(.listing-id),
.talk-list-item .listing-id,
.talk-list-item .listing-date,
.talk-list-item .listing-date-display,
.talk-list-item .listing-location,
.talk-list-item .listing-event,
.talk-list-item .listing-title,
.talk-list-item .listing-details,
.talk-list-item .listing-abstract,
.talk-list-item .listing-links {
  display: none;
}

/* Footer row: links + abstract toggle on one line with a divider */
.talk-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 0.9rem;
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eee;
  font-size: 0.78rem;
}
.talk-foot.abstract-only {
  display: block;
  text-align: right;
}
.talk-links {
  grid-column: 1;
}
.talk-links > p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.talk-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  color: #6a6a6a;
  text-decoration: none;
  white-space: nowrap;
}
.talk-foot a:hover {
  background: #f3f3f3;
  color: #000;
}
.foot-link-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #bbb;
  white-space: nowrap;
}
.talks-year-heading {
  display: none;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}
.talks-year-heading.is-visible {
  display: block;
}
.talks-year-heading > p {
  margin: 0;
}

/* Native abstract toggle; summary stays in footer row, body opens below */
.talk-abstract > summary {
  cursor: pointer;
  color: #6a6a6a;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  user-select: none;
  list-style: none;
  grid-column: 2;
  justify-self: end;
}
.talk-foot.abstract-only .talk-abstract > summary {
  display: inline-flex;
}
.talk-foot.abstract-only .abstract-body {
  text-align: left;
}
.talk-abstract > summary:hover { color: #000; }
.talk-abstract {
  display: contents;
}
.talk-abstract > summary::-webkit-details-marker {
  display: none;
}
.abstract-body {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid #eee;
  line-height: 1.55;
}
.talk-abstract[open] > .abstract-body { display: block; }

/* The clickable Abstract toggle (publications page) */
.pub details {
  margin-top: 0.5rem;
}
.pub summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  list-style: none;
  user-select: none;
}
.pub summary:hover { color: #000; }
.pub details[open] summary { margin-bottom: 0.5rem; }
.pub details > *:not(summary) {
  font-size: 0.92rem;
  color: #333;
}

/* Small pill-style link buttons (Preprint / PDF / Data ...) */
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  padding: 0.1rem 0.55rem;
  margin: 0.25rem 0.25rem 0 0;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  text-decoration: none;
  color: #444;
}
.pub-link:hover {
  background: #f3f3f3;
  color: #000;
}

/* CV page */
.cv-actions {
  margin-bottom: 0.8rem;
}
.cv-actions > p {
  margin: 0;
}
.cv-frame {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.cv-frame object {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 78vh;
  border: 0;
}
.cv-frame object > p {
  margin: 1rem;
}

/* Homepage subtitle: only ever break at the comma, stay centred */
.subtitle .nowrap {
  white-space: nowrap;
}
/* The theme only centres the jolla title + description, not the subtitle, so
   below its 992px breakpoint the subtitle falls back to left. Keep it centred. */
.quarto-about-jolla .subtitle {
  text-align: center;
}

/* At the same theme breakpoint (992px) where the jolla layout reflows,
   left-align the body prose, while image, title, subtitle and links stay centred. */
@media (max-width: 991.98px) {
  .quarto-about-jolla #quarto-document-content {
    text-align: left;
  }
  .quarto-about-jolla #quarto-document-content .quarto-figure-center {
    text-align: center;
  }
}
