/* Accessibility Test Display Styles */
/* Used in component test results and test library pages */

.a11y-test-list {
  list-style: none;
  margin: 0 0 3rem 0;
  padding: 1rem 0 0;
}

.a11y-test-list > li {
  border-bottom: 1px solid var(--vads-color-base-light);
  padding: 1.5rem 0 1rem;
  max-width: 100%;
}

.a11y-test-list > li:first-of-type {
  padding-top: 0;
}

.a11y-test-list > li:last-of-type {
  border: none;
  padding-bottom: 0;
}

.a11y-test-list li > p {
  margin-block: 0;
  max-width: 77ch;
}

.a11y-test-list li > p.a11y-subtest-tag {
  margin-top: .5rem;
}

.a11y-test-details-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0.5rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.a11y-test-details-list li {
  margin-right: 1rem;
}

/* Nested subtests */
.a11y-test-list .a11y-test-subtest-list {
  list-style: none;
  margin: 1rem 0 0 1rem;
  padding: 0;
  border-left: 2px solid var(--vads-color-base-lighter);
}

/* Table header with icons */
.a11y-table-header {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Icon colors for test results */
.a11y-icon-success {
  color: var(--vads-color-success-darker);
}

.a11y-icon-info {
  color: var(--vads-color-info-darker);
}

.a11y-icon-error {
  color: var(--vads-color-error-dark);
}

.a11y-test-list .a11y-test-subtest-list > li {
  border-bottom: none;
  padding: 1rem 0 1rem 1rem;
  border-top: 1px solid var(--vads-color-base-lighter);
}

.a11y-test-list .a11y-test-subtest-list > li:first-child {
  border-top: none;
  padding-top: 0.5rem;
}
/* WCAG criterion headers */
h3.a11y-wcag-criterion-header {
  border-bottom: 2px solid var(--vads-color-base-lighter);
  padding-bottom: 0.5rem;
}

/* Accessibility test results table styles */
.a11y-test-list va-table-row {
  display: none;
}
