/**
 × publications.css × created 2026-02-09 × v0.1 (2026-02-09)
 × raimundo p. solar ×
**/

/**** 
        × PUBLICATIONS — BASE ×
****/

.publi-stack {
  display: grid;
  gap: 0;
}

.publi-block {
  padding-top: var(--gap-y);
}

.publi-block:first-child {
  padding-top: 0;
}

.publi-section {
  display: grid;
  gap: 0;
}

/* Anchor offset for in-page jumps (TOC links) */
.publi-anchor {
  scroll-margin-top: calc(var(--header-offset, 0px) + 0.75rem);
}

/**** 
        × PUBLICATIONS — TOC ×
****/

.publi-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

/* Make the whole TOC item feel clickable */
.publi-toc a {
  display: inline-block;
  text-decoration: none;
}

/* Keep TOC text from wrapping too aggressively */
@media (min-width: 731px) {
  .publi-toc a {
    white-space: nowrap;
  }
}

/**** 
        × PUBLICATIONS — KEYWORDS ×
****/

.publi-keywords {
  padding-top: 0.5rem; /* small gap after abstract block */
}

/**** 
        × PUBLICATIONS — FIGURES ×
****/

.publi-figure {
  display: grid;
  gap: 0.5rem;
  margin: 0; /* reset default figure margins */
}

.publi-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/**** 
        × PUBLICATIONS — LEFT STICKY (DESKTOP ONLY) ×
****/

/* Default (mobile): no sticky */
.sticky-left {
  position: static;
  top: auto;
}

/* Desktop: sticky column */
@media (min-width: 731px) {
  .sticky-left {
    position: sticky;
    top: calc(var(--header-offset, 0px) + 2.4rem);
    align-self: start;
  }
}

/**** 
        × CBC ARCHIVE (LIST SPACING) ×
****/

#journal article {
  margin-bottom: var(--breche-s);
}

#journal article:last-child {
  margin-bottom: 0;
}
