.committee-summary-card {
  align-items: flex-start;
}

.committee-summary-table,
.committee-prices-table {
  width: auto;
}

.committee-summary-table th,
.committee-summary-table td {
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.committee-prices-table thead th {
  white-space: normal;
}

/* Access has prose/account labels and centred, evenly aligned role columns. */
.access-table { width: 100%; table-layout: auto; }
.access-table :is(th,td) { vertical-align: middle; }
.committee-summary-table.access-table tr > :first-child { min-width: 24ch; max-width: 36ch; white-space: normal; overflow-wrap: anywhere; }
.committee-summary-table.access-table tr > :not(:first-child) { min-width: 7rem; white-space: normal; }
.access-table .form-choice { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.access-table input { margin: 0; }

.committee-prices-table tbody th {
  font-weight: var(--font-weight-medium);
}

.committee-summary-table tr > :first-child {
  padding-right: var(--space-2);
}

.committee-person-name {
  color: var(--action-colour);
  font: inherit;
  text-decoration: none;
  text-underline-offset: var(--link-underline-offset);
}

.committee-person-name:hover,
.committee-person-name:focus-visible {
  text-decoration: underline;
}

.committee-invite-action,
.committee-duplicate-action {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .committee-prices-table th,
  .committee-prices-table td {
    padding-inline: var(--space-1);
  }

  .committee-prices-table tr > :first-child {
    padding-right: var(--space-2);
  }
}

/* Private committee rows; the public gallery retains its full-size carousel. */
.committee-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-standard);
}
.committee-gallery-entry {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.committee-gallery-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.committee-gallery-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.committee-gallery-details p { margin: 0; }
