/* Political Gadgets — Voting Alignment (polcompare)
   Standard site look (matches indsummary / attendance pages): Inter font,
   light grey background, white rounded cards with soft shadow, accent
   colour driven by --pc-accent (set per-page: house green / senate red). */

html { scroll-behavior: smooth; }

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

/* ── Navbar (copied convention from indsummary's .pg-navbar) ── */
.pg-navbar {
  background: #fff;
  border-bottom: 1px solid #e2e6ea;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  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; }
.pg-navbar .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-navbar .pg-nav-btn:hover { background: #f5f5f5; color: #222; }
.pg-navbar .dropdown-toggle::after { display: none; }
.pg-navbar .dropdown-menu { font-size: 0.88rem; min-width: 140px; }
.pg-navbar .dropdown-item i { width: 1.2em; }

/* ── Layout ── */
.pc-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}
.pc-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--pc-accent, #333);
}
.pc-sub {
  font-size: 0.86rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.pc-sub a { color: var(--pc-accent, #333); }

.pg-muted { color: #888; }

/* ── Picker ── */
.pc-picker-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pc-picker-col { flex: 1; min-width: 0; }
.pc-picker-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pc-accent, #888);
  font-size: 1.1rem;
  padding-top: 1.8rem;
}
.pc-picker-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.3rem;
}
.pc-search {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.5em 0.8em;
  border: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}
.pc-search:focus { outline: none; border-color: var(--pc-accent, #888); }
.pc-picker-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  background: #fff;
}
.pc-picker-item {
  padding: 0.45em 0.8em;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.pc-picker-item:last-child { border-bottom: none; }
.pc-picker-item:hover { background: #f5f7fa; }
.pc-picker-item.selected {
  background: var(--pc-accent, #333);
  color: #fff;
  font-weight: 600;
}
.pc-picker-item .pc-former-tag {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ── Results card ── */
.pg-section {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.pg-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pc-accent, #333);
  margin: 0 0 0.2rem;
}

.pc-headline {
  text-align: center;
  padding: 1.2rem 0 0.6rem;
}
.pc-headline-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pc-accent, #333);
  line-height: 1;
}
.pc-headline-label {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.3rem;
}
.pc-headline-label .pg-muted { display: block; font-size: 0.78rem; margin-top: 0.15rem; }
.pc-headline-secondary {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.6rem;
}

.pc-section-sub {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}
.pc-h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin-bottom: 0.7rem;
}
.pc-h3-agree { color: #2f9e5c; }
.pc-h3-disagree { color: #cc4b4b; }

/* Topic breakdown */
.pc-topic-list { display: flex; flex-direction: column; gap: 0.55rem; }
.pc-topic-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
}
.pc-topic-name { color: #333; }
.pc-topic-bar-track {
  background: #eee;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.pc-topic-bar { height: 100%; border-radius: 4px; }
.pc-topic-pct { text-align: right; white-space: nowrap; color: #333; font-weight: 600; }

/* ── Closeness band ──
   Two photos on a cool(white)->hot(red) gradient; fully aligned, they meet
   in the hot centre, fully opposed, they sit apart near the cool edges. */
.pc-band {
  position: relative;
  height: 110px;
  margin: 0.5rem auto 0;
  border-radius: 10px;
  background: linear-gradient(to right, #fff, #f6fa89, #f5a623, #d9342b, #f5a623, #f6fa89, #fff);
}
.pc-band-photo {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.9s cubic-bezier(.3,.6,.3,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.pc-band-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  background: #fff;
}
.pc-band-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--pc-accent, #555);
}
.pc-band-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-band-tagline {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #333;
  margin: 0.8rem 0 0;
}
@media (max-width: 480px) {
  .pc-band { height: 95px; }
  .pc-band-img { width: 50px; height: 50px; }
  .pc-band-label { font-size: 0.65rem; max-width: 90px; }
}

/* Recent agree/disagree lists */
.pc-recent-list { list-style: none; padding: 0; margin: 0; }
.pc-recent-list li {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 7px;
  padding-left: 0.9rem;
  border-left: 3px solid #ddd;
}
.pc-recent-agree li { border-left-color: #2f9e5c; }
.pc-recent-disagree li { border-left-color: #cc4b4b; }

@media (max-width: 640px) {
  .pc-picker-row { flex-direction: column; }
  .pc-picker-vs { padding-top: 0; justify-content: center; transform: rotate(90deg); }
  .pc-topic-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .pc-headline-num { font-size: 2.2rem; }
}
