/*
  The Mock Test start page (mock-test.html, S2 of the mock redesign, owner
  D1): the exam-style overview table, the rules and the Start / Continue
  button. Linked by mock-test.html only, after attempt-log.css, whose
  .info-page rules set the page's column and type.
*/

.mock-test-lead {
  margin: 0 0 24px;
  color: var(--ink-secondary);
}

.mock-test-overview {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  font-size: 16px;
}

.mock-test-overview caption {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

.mock-test-overview th,
.mock-test-overview td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.mock-test-overview thead th {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-strong);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

.mock-overview-part {
  white-space: nowrap;
}

.mock-overview-section {
  font-weight: 600;
}

.mock-overview-tasks {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.mock-test-overview .mock-overview-items,
.mock-test-overview .mock-overview-time {
  font-family: var(--font-mono);
  font-size: 14px;
}

.mock-test-overview .mock-overview-items {
  text-align: right;
}

.mock-overview-total th,
.mock-overview-total td {
  border-top: 1px solid var(--border-strong);
  border-bottom: none;
  font-weight: 700;
}

.mock-test-rules {
  margin: 0 0 32px;
  padding-left: 24px;
}

.mock-test-rules li + li {
  margin-top: 8px;
}

/* The page's one primary action. */
.mock-test-start {
  min-width: 160px;
  min-height: 48px;
  padding: 12px 32px;
  border: none;
  border-radius: var(--pill);
  background: var(--brand-purple);
  color: var(--surface);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mock-test-start:hover:not(:disabled) {
  background: var(--brand-purple-dark);
}

.mock-test-start:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

.mock-test-start:disabled {
  cursor: default;
  opacity: 0.6;
}

.mock-test-error {
  color: var(--rubric);
}

@media (max-width: 480px) {
  .mock-test-overview th,
  .mock-test-overview td {
    padding: 8px 4px;
  }
}
