.woords-government-panel {
  background: #fff;
  border: 1px solid #e8e9ec;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.woords-government-panel[hidden] {
  display: none !important;
}

.wgp-heading {
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wgp-eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.4px;
  color: #777b85;
  margin-bottom: 8px;
}

.wgp-heading h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.5px;
  color: #20232b;
  margin: 0 0 7px;
}

.wgp-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: #747984;
  margin: 0;
}

.wgp-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  padding: 7px 11px;
  border-radius: 20px;
  color: #626975;
  background: #f2f3f5;
}

.wgp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #eef0f2;
}

.wgp-stat {
  padding: 18px 24px;
  border-bottom: 1px solid #eef0f2;
  min-width: 0;
}

.wgp-stat:nth-child(odd) {
  border-right: 1px solid #eef0f2;
}

.wgp-stat span {
  display: block;
  font-size: 11px;
  color: #81858e;
  margin-bottom: 9px;
}

.wgp-stat strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #252832;
}

.wgp-footer {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: #90949d;
}

@media (max-width: 600px) {
  .wgp-heading {
    padding: 18px;
    flex-direction: column;
  }

  .wgp-stat {
    padding: 16px;
  }

  .wgp-footer {
    padding: 12px 18px;
  }
}

/* WOORDS Elections — Commons composition, Step 190N.19E.3 */

.wgp-stat small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #81858e;
}

.wgp-composition {
  padding: 22px 24px;
  border-top: 1px solid #eef0f2;
}

.wgp-composition-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.wgp-composition-heading h3 {
  font-size: 15px;
  font-weight: 750;
  color: #252832;
  margin: 0 0 5px;
}

.wgp-composition-heading p {
  font-size: 11px;
  color: #81858e;
  margin: 0;
}

.wgp-composition-heading > span {
  font-size: 10px;
  color: #90949d;
  white-space: nowrap;
}

.wgp-seat-bar {
  height: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 7px;
  background: #eef0f2;
  margin-bottom: 20px;
}

.wgp-seat-segment {
  height: 100%;
  flex-shrink: 0;
  min-width: 0;
}

.wgp-party-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.wgp-party-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f2f4;
  min-width: 0;
  font-size: 11px;
}

.wgp-party-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wgp-party-name {
  flex: 1;
  min-width: 0;
  color: #525762;
  overflow-wrap: anywhere;
}

.wgp-party-row strong {
  color: #252832;
  font-size: 12px;
  font-weight: 750;
}

.wgp-composition-note {
  font-size: 10px;
  color: #90949d;
  line-height: 1.6;
  margin: 16px 0 0;
}

@media (max-width: 600px) {
  .wgp-composition {
    padding: 18px;
  }

  .wgp-party-list {
    grid-template-columns: 1fr;
  }
}


/* WOORDS Elections — official profile link */
.woords-government-panel .wgp-official-link {
    color: #525762;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.woords-government-panel .wgp-official-link:hover {
    color: #151820;
    text-decoration: underline;
}

.woords-government-panel .wgp-official-link:focus-visible {
    outline: 2px solid #3978bd;
    outline-offset: 3px;
    border-radius: 2px;
}
