/* Publications — grid aligns Abstract with title; sizes; nav-colored aux links */

.publication-section {
  font-size: 15px;
  line-height: 1.55;
  color: #3f4a5a;
}

.publication-section .section-title {
  margin: 0 0 0.75em;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
}

/* Number | title+meta (meta aligns with title column) */
.pub-card {
  display: grid;
  grid-template-columns: minmax(1.5em, auto) 1fr;
  gap: 0.25rem 0.55rem;
  align-items: start;
  padding: 0 0 1em;
}

.pub-num {
  grid-column: 1;
  grid-row: 1;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.55;
  padding-top: 0.05em;
}

.pub-main-col {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.pub-title-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

/* Blue link = paper title only; rest black; hover bold on link only */
a.citation-lead-link {
  color: var(--pub-link-blue, #0f83c6);
  text-decoration: none;
  font-weight: 400;
}

a.citation-lead-link:hover {
  font-weight: 600;
  color: var(--pub-link-blue, #0f83c6);
}

.citation-lead-plain {
  color: var(--pub-link-blue, #0f83c6);
  font-weight: 400;
}

.citation-rest {
  color: #1a1a1a;
  font-weight: 400;
}

.citation-rest em {
  font-style: italic;
}

/* Co-author line after " with …" — gray, not part of title link (no hover bold) */
.citation-with {
  color: #6b7280;
  font-weight: 400;
}

/* Divider before Work in Progress */
.pub-wip-divider {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 1.75rem 0 1.15rem;
}

.publication-section .section-title--wip {
  margin-top: 0;
}

/* Smaller row under title; same hue as Home | CV | Personal */
.pub-meta-row {
  margin-top: 0.35em;
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e57373;
}

.abs-details {
  display: inline-block;
}

.abs-details[open] {
  flex: 1 1 100%;
}

.abs-details > summary {
  list-style: none;
  cursor: pointer;
  display: inline;
}

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

.abs-details > summary::marker {
  content: "";
}

.pub-meta-row .pub-aux-link {
  color: #e57373;
  text-decoration: none;
  font-weight: 500;
}

.pub-meta-row .pub-aux-link:hover {
  color: #d65a5a;
  font-weight: 600;
}

summary.pub-aux-link:hover {
  font-weight: 600;
}

.abstract-box {
  display: block;
  margin: 0.45em 0 0;
  padding: 0.55em 0.75em;
  font-size: 0.88em;
  line-height: 1.5;
  border-left: 3px solid #e5e7eb;
  background: #f9fafb;
  color: #334155;
}

.wip-section {
  margin: 0.35em 0 0;
  font-size: 15px;
}

.wip-line {
  margin: 0.35em 0;
  padding: 0;
  line-height: 1.55;
  display: grid;
  grid-template-columns: minmax(1.5em, auto) 1fr;
  gap: 0.55rem;
  align-items: start;
}

.wip-num {
  display: block;
  color: #9ca3af;
  font-weight: 500;
  margin-right: 0;
  font-size: 0.95em;
}

@media (prefers-color-scheme: dark) {
  .citation-rest {
    color: #e5e7eb;
  }

  .citation-with {
    color: #9ca3af;
  }

  .pub-wip-divider {
    background: #475569;
  }

  .abstract-box {
    background: #1e2937;
    border-left-color: #475569;
    color: #e2e8f0;
  }
}
