/* Sprint 4 (Developer A): the governance pages, the institutions index, the directory,
   the information pages and the special sections. Every value is a token of site.css
   (design-lab tokens.css, group P). Kept in its own file so parallel work merges cleanly. */

/* the "all of them" link at the end of a section (design-lab p.css .p-room) */
.p .p-room {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-style: italic;
  color: var(--p-ink);
  min-height: 24px;
}

.p-room:hover .p-arrow {
  transform: translateX(calc(0.4em * var(--motion-on)));
}

/* the governance pages and the lists of office holders */
.p-gov-more {
  margin-top: 1.5em;
  text-align: right;
}

.p-gov-now {
  font-weight: 400;
  color: var(--p-ink);
}

/* the social links in the footer: the strip's icons on the dark ground */
.p-social.p-sf-social {
  padding-inline: 0;
  background: transparent;
}

.p .p-sf-social a {
  color: var(--p-on-dark);
  min-width: 24px;
  min-height: 24px;
}

.p-sf-social-note {
  font-size: 0.9em;
  color: var(--p-on-dark-muted);
}

/* the parts page (development builds only) */
.p-parts-name {
  margin: 2em 0 0.8em;
  font-size: 0.9em;
  color: var(--p-muted);
}

.p-parts-dark {
  padding: 1.5em;
  color: var(--p-on-dark);
  background: var(--p-band);
}

.p .p-parts-dark a {
  color: var(--p-on-dark);
}

.p-parts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.p-parts-news {
  display: flex;
  gap: 1em;
}

/* the institutions index (PT-04): the mega menu's groups on a page */
.p-idx .p-mega-groups {
  margin-top: 0.5em;
}

.p-idx .p-mega-heading {
  font-size: 0.95em;
}

.p-idx-note {
  display: block;
  margin-bottom: 0.3em;
  font-size: 0.85em;
  color: var(--p-muted);
}

.p-idx-count {
  margin: 1.5em 0 1em;
  color: var(--p-muted);
}

@container p (max-width: 64em) {
  .p-idx .p-mega-groups {
    column-count: 1;
  }
}

/* the officials directory (PT-17): the result pages */
.p-dir-pages {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
}

.p .p-lp-gtitle a {
  color: inherit;
}

/* the select beside the hero search (directory: the institution) */
.p-ph-select {
  max-width: 14em;
  min-height: 2.6em;
  font: inherit;
  border: 0;
  border-left: 1px solid var(--p-rule);
  background: transparent;
}

@container p (max-width: 40em) {
  .p-ph-search:has(.p-ph-select) {
    flex-wrap: wrap;
  }

  .p-ph-select {
    max-width: none;
    flex: 1 1 100%;
    border-left: 0;
    border-top: 1px solid var(--p-rule);
  }
}

/* information pages (E3.7) */
.p-in-page-summary {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--p-heading);
}

.p-in-about-text > p + p {
  margin-top: 0.8em;
}
