.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  max-width: 100%;
}
.two-col > .col { min-width: 0; padding: 0 2.5rem; }
.two-col > .col:first-child { padding-left: 0; border-right: 1px solid var(--site-rule); }
.two-col > .col:last-child  { padding-right: 0; }

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col > .col { min-width: 0; padding: 0; }
  .two-col > .col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--site-rule);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.col-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--site-accent);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--site-accent);
  margin-bottom: 0.4rem;
}
.sem-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--site-rule-soft);
}
.sem-label {
  width: 65px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 1px;
  margin-right: 14px;
}
.sem-label .sem-num {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ccc;
}
.sem-label .sem-date {
  display: block;
  font-size: 13px;
  color: var(--site-muted);
  line-height: 1.4;
}
.sem-divider {
  width: 1px;
  background: var(--site-rule);
  flex-shrink: 0;
  margin: 2px 0;
}
.course-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 16px;
  padding-top: 1px;
  padding-left: 16px;
  flex: 1;
  min-width: 0;
}
.course-item {
  line-height: 1.45;
  color: var(--site-text);
  position: relative;
}
.course-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: #3a3d42;
}
.course-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.course-header .course-name {
  flex: 1;
  min-width: 0;
}
.course-item .sub {
  display: block;
  font-size: 14.5px;
  color: var(--site-muted);
  margin-top: 1px;
}
.scribe-link {
  font-size: 13.5px;
  color: var(--site-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.scribe-link:hover { text-decoration: none; }

/* Keep semester rows readable alongside the desktop sidebar. */
@media (min-width: 850px) and (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > .col { padding: 0; }
  .two-col > .col:first-child { border-right: 0; border-bottom: 1px solid var(--site-rule); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
}
