/* votes_chain.css -- Political Gadgets standard look for the "Who Votes
 * Like Who" chain pages (votes2 = Reps, votes3 = Senate). Same visual
 * language as indsummary/generate_static_pages.py and polcompare
 * (Inter font, white rounded-14px card shadows, pg-* naming), replacing
 * the old Bootstrap 4 / CodyHouse vertical-timeline theme. Duplicated
 * identically into both votes2/ and votes3/ (same content, intentional --
 * same precedent as HowPolsVote/indVotes{2,4}'s latn.css).
 */

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #eef1f5;
  color: #1a1a2e;
  font-size: 0.93rem;
  margin: 0;
}

.pg-navbar {
  background: #fff;
  border-bottom: 1px solid #e2e6ea;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  flex-wrap: wrap;
}
.pg-navbar .pg-nav-title {
  font-size: 0.88rem;
  color: #555;
  flex: 1;
  min-width: 160px;
}
.pg-nav-btn {
  font-size: 0.8rem;
  padding: 0.3em 0.9em;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  cursor: pointer;
  line-height: 1.5;
}
.pg-nav-btn:hover { background: #f5f5f5; color: #222; }
.dropdown-toggle::after { display: none; }

.pg-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.pg-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0.5rem;
}
.pg-sub {
  font-size: 0.86rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.pg-muted { color: #888; }

.pg-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pg-action-btn {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6em 1.1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.pg-action-btn:hover { background: #f5f5f5; }
.pg-action-primary {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}
.pg-action-primary:hover { background: #1f2d3a; }

.pg-chain {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pg-chain-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 3px solid #2c3e50;
}
.pg-chain-card.pg-chain-start { border-top-color: #c8102e; }

.pg-chain-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f5;
}

.pg-chain-info { flex: 1; min-width: 0; }
.pg-chain-name { font-size: 1.02rem; font-weight: 700; }
.pg-chain-meta { font-size: 0.8rem; color: #777; margin-top: 0.15rem; }

.pg-chain-stat { text-align: right; flex-shrink: 0; min-width: 90px; }
.pg-chain-value { font-size: 1.6rem; font-weight: 700; color: #2c3e50; line-height: 1; }
.pg-chain-card.pg-chain-start .pg-chain-value,
.pg-chain-card.pg-chain-start .pg-chain-label { color: #c8102e; }
.pg-chain-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* Pick/Add picker (same interaction language as polcompare's compare.js) */
.pc-search {
  margin-bottom: 0.6rem;
}
.pc-picker-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}
.pc-picker-item {
  padding: 0.5em 0.9em;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f3f3;
}
.pc-picker-item:last-child { border-bottom: none; }
.pc-picker-item:hover { background: #f5f7fa; }
.pc-picker-item.selected { background: #eef1f5; font-weight: 600; }
.pc-picker-item.pc-already-added { color: #bbb; cursor: default; }
.pc-picker-item.pc-already-added:hover { background: none; }

@media (max-width: 520px) {
  .pg-chain-card { flex-wrap: wrap; }
  .pg-chain-stat { width: 100%; text-align: left; margin-top: 0.4rem; }
}
