.trip-log {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.35;
  font-size: .91em;
}

.log-title { color: var(--forest); }

.trip-log th,
.trip-log td { padding: .55rem .6rem; text-align: left; vertical-align: top; }
.trip-log thead { color: white; background: var(--forest); }
.trip-log .log-year th { color: var(--forest); background: #d6e8ac; border-block: 1px solid var(--line); }
.trip-log .log-entry { background: #fbfced; border-bottom: 1px solid #d9e4b8; }
.trip-log .log-entry:nth-child(odd) { background: #eff5d6; }
.trip-log .log-number,
.trip-log .log-date,
.trip-log .log-distance { font-variant-numeric: tabular-nums; }
.trip-log time { white-space: nowrap; }

.log-number-col { width: 3rem; }
.log-date-col { width: 9rem; }
.log-transport-col { width: 7rem; }
.log-distance-col { width: 7rem; }
.log-companions-col { width: 10rem; }
.log-field { display: none; }

@media (max-width: 960px) {
  .trip-log,
  .trip-log tbody,
  .trip-log .log-year { display: block; }

  .trip-log colgroup { display: none; }
  .trip-log thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .trip-log .log-year th { display: block; }
  .trip-log .log-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .4rem .8rem;
    padding: .75rem;
  }
  .trip-log .log-entry th,
  .trip-log .log-entry td { padding: 0; }
  .trip-log .log-date { grid-area: 1 / 1; }
  .trip-log .log-number { grid-area: 1 / 2; justify-self: end; color: var(--forest); }
  .trip-log .log-route,
  .trip-log .log-companions { grid-column: 1 / -1; }
  .trip-log .log-route { font-size: 1.08em; }
  .log-field { display: inline; margin-inline-end: .35em; color: var(--forest); font-weight: 700; }
  .trip-log td[data-empty] { display: none; }
}
