.exam-page [hidden] { display: none !important; }

.exam-page .content-page-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.exam-verified,
.exam-note {
  color: var(--content-page-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.exam-flag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #8a4b12;
  font-weight: 800;
  font-size: .88rem;
}

.exam-level-cards,
.exam-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.exam-level-card,
.exam-download {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: #fff;
}

.exam-level-card h3,
.exam-download h3 { margin: 0 0 8px; font-size: 1.1rem; }

.exam-level-card dl,
.exam-summary { margin: 12px 0; }

.exam-level-card dt,
.exam-summary dt { font-weight: 800; margin-top: 8px; }

.exam-level-card dd,
.exam-summary dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.exam-card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 900;
  color: #245941;
}

.exam-table-wrap { width: 100%; }

.exam-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .95rem;
}

.exam-table caption {
  text-align: left;
  font-weight: 800;
  padding: 0 0 8px;
}

.exam-table th,
.exam-table td {
  padding: 10px;
  border: 1px solid var(--content-page-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.exam-table th { background: #eaf1ea; }

.exam-chapter { display: block; margin: 0 0 6px; }

.exam-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: #eaf1ea;
  color: var(--content-page-ink);
  font-size: .75rem;
  font-weight: 800;
}

.exam-details {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: #fff;
}

.exam-details summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 24px;
}

.exam-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.exam-filter label {
  display: grid;
  gap: 4px;
  font-weight: 800;
  font-size: .9rem;
}

.exam-filter select,
.exam-filter input {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.exam-filter-count { grid-column: 1 / -1; margin: 0; color: var(--content-page-muted); }

.exam-resource-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-resource {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}

.exam-resource a { font-weight: 800; color: #245941; }

.exam-resource-type {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #16392c;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.exam-resource-meta {
  display: block;
  margin-top: 4px;
  color: var(--content-page-muted);
  font-size: .85rem;
}

.exam-resource p { margin: 6px 0 0; }

.exam-empty {
  padding: 14px;
  border: 1px dashed var(--content-page-line);
  border-radius: 8px;
  background: #fff;
}

.exam-disclaimer {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #e8c98f;
  border-left: 6px solid #c9822b;
  border-radius: 8px;
  background: #fff8ec;
}

.exam-disclaimer p { margin: 6px 0 0; line-height: 1.7; }

.exam-question {
  min-width: 0;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}

.exam-question-id { margin: 0 0 6px; font-size: 1rem; }
.exam-question-meta { margin: 0 0 8px; color: var(--content-page-muted); font-size: .88rem; }

.exam-ai-tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: #8a5410;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
}

.exam-question-stem { font-weight: 700; line-height: 1.7; }

.exam-options {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.exam-options li { display: flex; gap: 8px; }

.exam-option-key {
  flex: none;
  width: 1.6em;
  font-weight: 900;
  color: #245941;
}

.exam-refs, .exam-changelog ul { margin: 4px 0 8px; padding-left: 1.2em; }

.exam-report { margin-top: 10px; }

.exam-report-button,
.exam-practice-controls button,
.exam-report-actions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #245941;
  border-radius: 8px;
  background: #fff;
  color: #245941;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.exam-practice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.exam-practice-controls p { flex-basis: 100%; margin: 0; }

.exam-report-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: var(--content-page-surface);
}

.exam-report-form label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.exam-report-form .exam-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.exam-report-form .exam-check input { margin-top: 4px; flex: none; }

.exam-report-form select,
.exam-report-form textarea,
.exam-report-form input[type="email"],
.exam-report-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.exam-question-search {
  display: grid;
  gap: 4px;
  flex: 1 1 220px;
  font-weight: 800;
  font-size: .9rem;
}

.exam-question-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.exam-practice-link { display: inline-block; margin-top: 6px; font-weight: 800; color: #245941; }

.exam-hub-results { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.exam-hub-results li {
  padding: 10px 12px;
  border: 1px solid var(--content-page-line);
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
}
.exam-hub-results a { display: block; font-weight: 800; color: #245941; }
.exam-hub-stem { display: block; margin-top: 4px; color: var(--content-page-muted); font-size: .9rem; }

.exam-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.exam-report-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.exam-report-actions .exam-report-submit { background: #245941; color: #fff; }
.exam-report-actions button:disabled { opacity: .6; cursor: progress; }

.exam-report-error { margin: 0; color: #a3321f; font-weight: 800; }
.exam-report-done { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #eaf1ea; font-weight: 700; }

@media (max-width: 640px) {
  .exam-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .exam-table,
  .exam-table caption,
  .exam-table tbody,
  .exam-table tr,
  .exam-table td { display: block; width: 100%; box-sizing: border-box; }
  .exam-table tr {
    margin: 0 0 10px;
    border: 1px solid var(--content-page-line);
    border-radius: 8px;
    background: #fff;
  }
  .exam-table td { border: 0; border-bottom: 1px solid var(--content-page-line); }
  .exam-table td:last-child { border-bottom: 0; }
  .exam-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    color: var(--content-page-muted);
    font-size: .82rem;
  }
  .exam-table td:empty { display: none; }
}
