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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #1c1c1c;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.bill-meta div {
  margin: 6px 0;
  font-size: 15px;
}

.section {
  margin-top: 25px;
}

.loading {
  font-style: italic;
  color: gray;
}

.bill-links {
  list-style: none;
  padding-left: 0;
}

.bill-links li {
  margin: 6px 0;
}

.bill-links a {
  color: #0056b3;
  text-decoration: none;
}

.bill-links a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
}

.card {
  max-width: 850px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  position: relative; 
}


.card-meta {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-title-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-top: 15px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.6;
}

.sponsor-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #4b66ff;
  font-style: italic;
  text-decoration: none;
}

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

.constitutional-text {
  font-size: 14px;
  font-family: monospace;
  background: #f8f8f8;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.multi-line {
  white-space: pre-wrap;
  line-height: 1.6;
}

.tag-wrap .tag {
  display: inline-block;
  background: #e2e6ea;
  color: #333;
  padding: 4px 10px;
  margin: 3px 6px 3px 0;
  border-radius: 12px;
  font-size: 13px;
}

.compact-list {
  list-style: none;
  padding-left: 0;
  font-size: 15px;
  color: #333;
}

.compact-list li {
  margin: 5px 0;
}

.timeline-list {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  margin: 6px 0;
}

.link-list a {
  color: #0056b3;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.scroll-box {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.amend-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.amend-btn:hover,
.amend-btn:focus {
  background: #e2e8f0;
}
.amend-btn i {
  color: #334155;
}
.amend-btn .amend-exit-icon {
  margin-left: 10px;
}
#bill-amendments li + li {
  margin-top: 6px;
}
.related-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
  text-decoration: none;
  color: #1e293b;
  border-radius: 4px;
  transition: background 0.2s;
}
.related-btn:hover,
.related-btn:focus {
  background: #e2e8f0;
}
.related-btn i {
  color: #334155;
}
.related-btn .related-arrow-icon {
  margin-left: 10px;
}
#bill-related li + li {
  margin-top: 6px;
}
#bill-related li,
#bill-amendments li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.amend-btn,
.related-btn {
  box-sizing: border-box;
}
#bill-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

#bill-actions .action-entry {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

#bill-actions .action-date {
  min-width: 100px;
  font-weight: bold;
  color: #475569;
  font-size: 13px;
}

#bill-actions .action-desc {
  flex: 1;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.4;
}
.pin-bill-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1.2rem;
  z-index: 10;
}

.pin-bill-btn.pinned {
  color: #e74c3c;
  transform: rotate(-20deg);
}


.vote-toggle-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #334155;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: 10px;
  width: 100%;
  max-width: 180px;
  text-align: left;
}

.vote-toggle-btn i {
  font-size: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.vote-toggle-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.vote-toggle-btn:active {
  transform: scale(0.97);
}

.vote-toggle-btn:focus {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}



/* Optional: make button container behave better on large screens */
.vote-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.cosponsor-pill {
  display: inline-block;
  background: #f4f4f4;
  color: #333;
  padding: 6px 12px;
  margin: 4px 6px 4px 0;
  font-size: 0.95em;
  border-radius: 20px;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.cosponsor-pill:hover {
  background-color: #e0e0e0;
}

.cosponsor-pill .meta {
  margin-left: 6px;
  color: #777;
  font-size: 0.9em;
}

#view-text-btn {
  text-decoration: none;
}




/* Mobile Responsive */
@media (max-width: 600px) {
  .container,
  .card {
    padding: 15px;
    margin: 15px 10px;
  }

  h1 {
    font-size: 20px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-meta,
  .bill-meta div,
  .constitutional-text {
    font-size: 14px;
  }

  .back-link {
    font-size: 13px;
  }
}
