* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #666;
  font-size: 1rem;
}

.explainer {
  background: #f0f4f8;
  border-left: 3px solid #3b5998;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #444;
}

.explainer a {
  color: #3b5998;
}

.summary {
  text-align: center;
  margin-bottom: 2rem;
}

.summary p {
  font-size: 1.1rem;
}

#count {
  font-weight: 700;
  font-size: 1.5rem;
}

.last-updated {
  font-size: 0.85rem !important;
  color: #888;
  margin-top: 0.25rem;
}

.amendments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.amendment {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.25rem;
}

.amendment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.amendment-number {
  font-weight: 600;
  color: #3b5998;
  font-size: 0.9rem;
}

.amendment-date {
  font-size: 0.85rem;
  color: #888;
}

.amendment-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.amendment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.sponsor {
  color: #333;
}

.cosponsors {
  color: #666;
}

.amendment-status {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.status-label {
  font-weight: 500;
}

.amendment-link {
  font-size: 0.85rem;
  color: #3b5998;
  text-decoration: none;
}

.amendment-link:hover {
  text-decoration: underline;
}

.loading, .no-results, .error {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.error {
  color: #c00;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .amendment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .amendment-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}
