.corpus-summary {
  display: flex;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.corpus-summary strong {
  font:
    500 26px Manrope,
    sans-serif;
}
.corpus-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  scroll-margin-top: 100px;
}
.corpus-filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  min-width: 0;
}
.corpus-search {
  flex: 1;
  min-width: 220px !important;
}
.corpus-filters input,
.corpus-filters select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 10px 12px;
  color: var(--text);
}
.corpus-results-count {
  margin: 18px 0 8px;
}
.corpus-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.corpus-results {
  min-width: 0;
}
.corpus-results[aria-busy="true"] {
  opacity: 0.55;
}
.corpus-results {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.corpus-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  text-align: left;
}
.corpus-table th {
  height: 38px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.corpus-table th:first-child {
  width: 40%;
}
.corpus-table th:nth-child(2) {
  width: 16%;
}
.corpus-table th:nth-child(3) {
  width: 14%;
}
.corpus-table th:nth-child(4),
.corpus-table th:nth-child(5) {
  width: 11%;
}
.corpus-table th:last-child {
  width: 8%;
}
.corpus-row td {
  height: 44px;
  padding: 4px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.corpus-row:nth-child(4n + 3) {
  background: var(--surface-2);
}
.corpus-row:hover {
  background: var(--surface-3);
}
.corpus-document > a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.5;
}
.corpus-publisher {
  color: var(--muted);
}
.corpus-date {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.corpus-copy {
  color: var(--muted);
  margin-left: 6px;
  font-size: 10px;
}
.corpus-type .badge {
  padding: 2px 5px;
  font-size: 10px;
}
.corpus-action .text-button {
  min-height: 34px;
  padding: 4px 0;
  font-size: 12px;
}
.corpus-detail-title {
  margin: 0 0 8px;
  font-size: 16px;
}
.corpus-expanded td {
  padding: 20px 24px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
  white-space: normal;
}
.corpus-expanded .document-excerpt {
  max-width: 1000px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.corpus-page .change-history {
  max-height: 380px;
  overflow: auto;
}
.corpus-page > .text-button {
  margin-top: 14px;
}
@media (max-width: 650px) {
  .corpus-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .corpus-filters .corpus-search {
    grid-column: 1/-1;
    min-width: 0 !important;
  }
  .corpus-pagination .button {
    padding: 9px 12px;
  }
  .corpus-summary strong {
    font-size: 23px;
  }
  .corpus-expanded .document-excerpt {
    max-width: 300px;
  }
}
