/* =========================================================
   CV page only (/cv.html).
   Page structure, headings, download link, subsection titles,
   error and update notes come from site.css.
   ========================================================= */

/* The CV goes straight from the title to its first section. */
.cv-body .page-heading {
  margin-bottom: 3.5rem;
}

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section.teaching-tight .cv-item {
  margin-bottom: 0.45rem;
}

/* Teaching format headers inside an institution (Lectures, Seminars...). */
.cv-format-header {
  padding-left: 0.6rem;
  margin-top: 1.75rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.cv-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
}

.cv-item-role {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 515;
  line-height: 1.4;
}

.cv-section.role-light .cv-item-role {
  font-weight: 425;
}

.cv-item-institution {
  margin-top: 0.1rem;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 500;
}

.cv-item-date {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: right;
}

.cv-item-details {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: justify;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .cv-item {
    grid-template-columns: 1fr;
  }

  .cv-item-date {
    margin-bottom: 0.2rem;
    text-align: left;
  }
}
