/* Shared title treatment for the Blog and Publications indexes. */
body.listing-page #title-block-header {
  margin: 0.5rem 0 1.5rem;
}

body.listing-page #title-block-header.quarto-title-block.default h1.title {
  font-size: var(--site-title-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-wrap: balance;
  margin: 0;
}

body.listing-page .quarto-listing {
  margin-top: 0;
}

body.listing-page .quarto-listing-table {
  font-size: var(--site-body-size);
  overflow-wrap: normal;
  border: 0;
  margin-bottom: 0;
}

/* Each row is a stacked entry between hairlines at every width: title,
   people/date, then venue and year. Keep the column headings available to screen readers. */
body.listing-page .quarto-listing-table,
body.listing-page .quarto-listing-table tbody {
  display: block;
  width: 100%;
}

body.listing-page .quarto-listing-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.listing-page .quarto-listing-table tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.25rem;
  position: relative;
  padding: 1.1rem 0.75rem;
  border-bottom: 1px solid var(--ca-border);
  cursor: pointer;
}

/* Keep the hover background below the row text but above the page. */
body.listing-page .quarto-listing-table tbody {
  isolation: isolate;
}

body.listing-page .quarto-listing-table tbody tr:first-child {
  border-top: 1px solid var(--ca-border);
}

/* A raised background behind the row under the pointer, between the row's
   lines. The row padding keeps the text clear of its edges. */
body.listing-page .quarto-listing-table tbody tr::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ca-hover);
  opacity: 0;
  transition: opacity 0.15s;
}

body.listing-page .quarto-listing-table tbody tr:hover::before,
body.listing-page .quarto-listing-table tbody tr:focus-within::before {
  opacity: 1;
}

body.listing-page .quarto-listing-table td {
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  font-size: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.listing-page .quarto-listing-table td:first-child {
  grid-column: 1 / -1;
  font-weight: 700;
  line-height: 1.35;
}

body.listing-page .quarto-listing-table td:nth-child(2) {
  grid-column: 1 / -1;
}

body.listing-page .quarto-listing-table a.listing-title {
  color: var(--ca-ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

body.listing-page .quarto-listing-table tr:hover a.listing-title,
body.listing-page .quarto-listing-table tr:focus-within a.listing-title {
  color: var(--ca-primary);
}

body.listing-page .listing-authors {
  color: var(--ca-muted);
}

body.listing-page .listing-authors strong {
  color: var(--ca-ink);
}

/* Pending status is neutral; only an explicit .publication-venue is green. */
body.listing-page .listing-venue-status {
  color: var(--ca-muted);
}

body.listing-page .listing-year,
body.listing-page .listing-date {
  color: var(--ca-muted);
  white-space: nowrap;
}

body.listing-page .quarto-listing-table td:has(> .listing-year) {
  text-align: right;
}
