/* publications.css — Publications page only: the DOI list (with the
   <details> expand pattern and its search/filter box) and the
   correction-trail summary box. Depends on tokens defined in base.css. */

.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li {
  padding: 0;
  border-bottom: 1px dashed var(--line);
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li:not(:has(details)) {
  padding: 0.9rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.pub-list details { padding: 0.9rem 0; }
.pub-list summary {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
}
.pub-list summary::-webkit-details-marker { display: none; }
/* display:flex silently drops the browser's native disclosure
   triangle, leaving no visual sign these rows expand -- a bare arrow
   glyph in its place was still too small/subtle to notice, so this is
   an explicit, state-aware text label instead ("Details ▾" / "Hide
   ▴"). Deliberately NOT pushed to the row's far right (no
   margin-left:auto): a trailing edge-aligned label needs a separate
   eye movement to notice after reading the title. Sitting right after
   the title keeps it inside the same read path. */
.pub-toggle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-toggle-open { display: none; }
.pub-list details[open] > summary .pub-toggle-closed { display: none; }
.pub-list details[open] > summary .pub-toggle-open { display: inline; }
.pub-list summary:hover .pub-title { color: var(--accent); }
.pub-list summary:hover .pub-toggle { text-decoration: underline; }
.pub-desc {
  margin: 0.8rem 0 0;
  padding-left: 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.pub-desc a { color: var(--accent); }
.pub-includes {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}
.pub-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-title { font-size: 0.95rem; }
.pub-note { font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-soft); display: block; margin-top: 0.15rem; }

@media (max-width: 600px) {
  /* Tag + date + title squeezed into one row leaves too little width
     for the title on a phone screen. Keep tag+date on their own
     compact first line and drop the title to a full-width line below
     instead of cramming all three side by side. */
  .pub-list li:not(:has(details)),
  .pub-list summary {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }
  .pub-title { flex-basis: 100%; }
}

.correction-trail {
  background: #fbf6ea;
  border: 1px solid #e6d9b8;
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  border-radius: 2px;
}
.correction-trail h2 { margin-top: 0; }
.trail-step { font-family: var(--font-sans); font-size: 0.88rem; padding: 0.4rem 0; }
.trail-arrow { color: var(--accent); margin: 0 0.4rem; }

@media (prefers-color-scheme: dark) {
  .correction-trail { background: #262215; border-color: #4a4020; }
}
