body {
  background: #f5f6f8;
}

.topics-shell {
  max-width: 1120px;
}

.topics-shell .leg-search-header-link.active {
  background: #e8f0ff;
  border-color: #bfd1f5;
}

.topics-shell .topics-filters {
  align-items: flex-end;
  gap: 10px;
}

.topics-shell .topics-query {
  flex: 1;
}

.topics-shell .topics-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topics-shell .search-results-btn,
.topics-shell .search-results-btn:visited {
  height: 36px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.topics-shell .search-results-btn:hover {
  background: #e8ecf5;
  color: #1c335f;
  border-color: #cdd4e0;
  text-decoration: none;
}

.topics-shell .search-results-btn-primary {
  background: #1c335f;
  border-color: #1c335f;
  color: #fff;
}

.topics-shell .search-results-btn-primary:hover {
  background: #284a86;
  border-color: #284a86;
  color: #fff;
}

.topics-shell .topics-col-coverage {
  width: 168px;
}

.topics-shell .topics-col-open {
  width: 110px;
}

.topics-shell .topics-col-open a,
.topics-shell .topics-col-open a:visited {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 700;
}

.topics-shell .topics-col-open a:hover {
  text-decoration: none;
}

.topics-shell .topics-detail-header {
  margin-bottom: 14px;
}

.topics-shell .topics-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topics-shell .topics-stat-card {
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.topics-shell .topics-stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topics-shell .topics-stat-value {
  margin-top: 4px;
  color: #1c335f;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.topics-shell .topics-congress-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topics-shell .topics-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c7d5ec;
  border-radius: 999px;
  padding: 6px 11px;
  background: #eff4ff;
  color: #1c335f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.topics-shell .topics-chip:visited {
  color: #1c335f;
}

.topics-shell .topics-chip:hover {
  background: #e4edfc;
  border-color: #b7c8e6;
  text-decoration: none;
}

.topics-shell .topics-chip.active {
  background: #1c335f;
  border-color: #1c335f;
  color: #ffffff;
}

.topics-shell .topics-pill-link,
.topics-shell .topics-pill-link:visited {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid #c8d3e8;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #1f2937;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.topics-shell .topics-pill-link:hover {
  background: #eef2ff;
  border-color: #b7c6e5;
  text-decoration: none;
}

.topics-shell .topics-bills-table {
  table-layout: fixed;
}

.topics-shell .topics-col-bill {
  width: 110px;
}

.topics-shell .topics-col-congress {
  width: 110px;
}

.topics-shell .topics-col-status {
  width: 150px;
}

.topics-shell .topics-col-date {
  width: 128px;
}

.topics-shell .topics-subline {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.topics-shell .clickable-row {
  cursor: pointer;
}

.topics-shell .clickable-row:hover {
  background: #eef2ff;
}

.topics-shell .clickable-row:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.topics-shell .st-empty {
  border: 1px dashed #cfd8e8;
  border-radius: 10px;
  background: #f8fbff;
  padding: 11px 12px;
  color: #4b5563;
  font-size: 14px;
}

@media (max-width: 960px) {
  .topics-shell .topics-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topics-shell .topics-col-coverage,
  .topics-shell .topics-col-open,
  .topics-shell .topics-col-status,
  .topics-shell .topics-col-date,
  .topics-shell .topics-col-congress {
    width: auto;
  }
}
