/* Scoped, data-backed tables for the two work landing pages only. */
.wl-course-summary {
  background: var(--vt-bg, #f8fafc);
  color: var(--vt-text, #1e293b);
}

html.vt-sub .wl-course-summary h2 {
  color: var(--vt-text, #1e293b);
}

.wl-course-summary__comparison {
  margin-top: 2.25rem;
}

.wl-course-summary__comparison h2 {
  margin-bottom: .65rem;
}

.wl-course-summary__table-wrap {
  width: 100%;
  max-width: 100%;
}

.wl-course-summary__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--vt-line, #cbd5e1);
  background: var(--vt-surface, #ffffff);
  color: var(--vt-text, #1e293b);
  font-size: .92rem;
}

.wl-course-summary__table caption {
  padding: .85rem 1rem;
  border: 1px solid var(--vt-line, #cbd5e1);
  border-bottom: 0;
  background: var(--vt-surface-2, #edf2f7);
  color: var(--vt-text, #1e293b);
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.wl-course-summary__table th,
.wl-course-summary__table td {
  padding: .8rem .9rem;
  border: 1px solid var(--vt-line, #cbd5e1);
  color: var(--vt-text, #1e293b);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wl-course-summary__table thead th {
  background: var(--vt-surface-2, #edf2f7);
  font-weight: 800;
}

.wl-course-summary__table tbody th[scope="row"] {
  background: var(--vt-bg, #f8fafc);
  font-weight: 700;
}

.wl-course-summary__table th:first-child {
  width: 25%;
}

.wl-course-summary__note,
.wl-course-summary__intro {
  margin-top: .85rem;
  color: var(--vt-text-2, #475569);
  overflow-wrap: anywhere;
}

.wl-course-summary a:focus-visible {
  outline: 3px solid var(--vt-accent, #5b4da5);
  outline-offset: 3px;
}

/* The white-theme experiment has broad high-specificity table defaults. */
html[data-experiment-theme="white"].vt-sub .wl-course-summary__table,
html[data-experiment-theme="white"].vt-sub .wl-course-summary__table caption,
html[data-experiment-theme="white"].vt-sub .wl-course-summary__table th,
html[data-experiment-theme="white"].vt-sub .wl-course-summary__table td {
  background-color: var(--vt-surface, #ffffff) !important;
  color: var(--vt-text, #18251f) !important;
  border-color: var(--vt-line, #74897d) !important;
}

html[data-experiment-theme="white"].vt-sub .wl-course-summary__table caption,
html[data-experiment-theme="white"].vt-sub .wl-course-summary__table thead th {
  background-color: var(--vt-surface-2, #f0f3ef) !important;
}

html[data-experiment-theme="white"].vt-sub .wl-course-summary__table tbody th[scope="row"] {
  background-color: var(--vt-bg, #f4f6f2) !important;
}

html[data-experiment-theme="white"].vt-sub .wl-course-summary__note,
html[data-experiment-theme="white"].vt-sub .wl-course-summary__intro {
  color: var(--vt-text-2, #3f5148) !important;
}

html[data-experiment-theme="white"].vt-sub .wl-course-summary a:focus-visible {
  outline-color: #176b58;
}

@media (max-width: 640px) {
  .wl-course-summary__table {
    font-size: .82rem;
  }

  .wl-course-summary__table th,
  .wl-course-summary__table td {
    padding: .62rem .5rem;
  }

  .wl-course-summary__table caption {
    padding: .72rem .7rem;
  }
}
