.ruling-party-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.15) 100%),
    var(--panel-interior);
  /* Frame comes from the universal --frame-* system in
     superevent-layout.css — no explicit border needed here. */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 12px rgba(0,0,0,0.5);
  min-height: 84px;
}

.rpc-icon-frame {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #24272b 0%, var(--panel-interior-lo) 80%);
  border: 1px solid var(--panel-border-strong);
  border-radius: 2px;
  box-shadow:
    inset 0 0 8px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.rpc-icon {
  max-width: 58px; max-height: 58px;
  object-fit: contain;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.rpc-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-family: var(--font-title);
}
.rpc-party {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.rpc-ideology {
  font-size: 13.5px;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.rpc-election {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 2px;
}

/* ── Form driving the card ───────────────────────────────────────────── */
.party-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.party-form label {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-dim);
  font-weight: 600;
}
.party-form input {
  font-size: 13px;
  padding: 6px 10px;
  background: #0c0d10;
  border: 1px solid #2f3236;
  color: var(--text);
  border-radius: 2px;
  font-family: inherit;
}
.party-form input:hover { border-color: #3c3f43; }
.party-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,210,202,0.2);
}
