/* CV entry containers are layout lists; nested highlight lists keep their bullets. */
.cv ul.list-group {
  list-style: none;
  padding-left: 0;
}

.cv ul.list-group > li.list-group-item {
  list-style: none;
}

/* All dated entries use the same two-column layout, including awards. */
.cv .list-group-item > .row {
  align-items: flex-start;
}

.cv .row > .col-sm-2 {
  /* Match the visible title text, accounting for its taller line box. */
  padding-top: 10px;
  top: auto;
  transform: none;
  text-align: center;
}

/* Center the date table and remove inherited table spacing and rules. */
.cv .row > .col-sm-2 table.table-cv {
  width: 100%;
  table-layout: fixed;
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.cv .row > .col-sm-2 table.table-cv,
.cv .row > .col-sm-2 table.table-cv tr,
.cv .row > .col-sm-2 table.table-cv td,
.cv .row > .col-sm-2 table.table-cv th {
  border: 0;
}

.cv .row > .col-sm-2 table.table-cv td {
  padding: 0;
  text-align: center;
  vertical-align: top;
}

.cv .row > .col-sm-2 .badge {
  flex: 0 0 auto;
  width: max-content;
  min-width: 75px;
  white-space: nowrap;
  vertical-align: top;
}

.cv .row > .col-sm-2 table.table-cv td {
  display: flex;
  justify-content: center;
}

/* Reserve enough space for the longest date; use the same track in every card. */
.cv .list-group-item > .row:has(> .col-sm-2 > .table-cv) {
  display: grid;
  grid-template-columns: minmax(120px, 20%) minmax(0, 1fr);
  column-gap: 16px;
  margin-inline: 0;
}

.cv .row:has(> .col-sm-2 > .table-cv) > .col-sm-2,
.cv .row:has(> .col-sm-2 > .table-cv) > .col-sm-10 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding-inline: 0;
}

.cv .row:has(> .col-sm-2 > .table-cv) > .col-sm-10 {
  overflow-wrap: anywhere;
}

/* Small screens keep the date centered above its entry, without narrow text columns. */
@media (max-width: 575px) {
  .cv .list-group-item > .row:has(> .col-sm-2 > .table-cv) {
    grid-template-columns: minmax(0, 1fr);
  }
}
