/**
 * @file
 * Llistats de brigadistes i fonts documentals (js/llistats.js).
 * Mateix llenguatge que el llistat «Brigadistes» dels Mapes temàtics.
 */
.sb-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-people--cols {
  columns: 3 260px;
  column-gap: 28px;
}

.sb-people--fonts {
  columns: 2 380px;
  column-gap: 32px;
}

.sb-people__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  break-inside: avoid;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  transition: background-color .15s;
}

.sb-people__item + .sb-people__item::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  border-top: 1px solid #F3EFF5;
}

.sb-people--cols .sb-people__item::before,
.sb-people--fonts .sb-people__item::before {
  display: none;
}

.sb-people__item:hover,
.sb-people__item:focus-within {
  background: var(--sb-brand-50);
}

/* Foto rodona (o inicial si no n'hi ha). */
.sb-people__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sb-brand-100);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sb-line);
  color: var(--sb-brand-700);
  font-size: 17px;
  font-weight: 800;
}

.sb-people__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fonts: miniatura de la coberta, rectangular. */
.sb-people__item--font .sb-people__avatar {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  background: var(--sb-bg);
}

.sb-people__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Tota la fila és clicable. */
.sb-people__link {
  color: var(--sb-ink) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
}

.sb-people__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.sb-people__item:hover .sb-people__link {
  color: var(--sb-brand-700) !important;
}

.sb-people__link:focus-visible {
  box-shadow: none;
}

.sb-people__link:focus-visible::after {
  box-shadow: var(--sb-focus);
}

.sb-people__item--font .sb-people__link {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
}

.sb-people__meta {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--sb-soft);
}

/* Variant compacta (panell lateral i pàgina del terme). */
.sb-people--compact .sb-people__avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.sb-people--compact .sb-people__item--font .sb-people__avatar {
  width: 34px;
  height: 44px;
}

.sb-people--compact .sb-people__link {
  font-size: 15px;
}

.sb-people--compact .sb-people__meta {
  font-size: 13px;
}

.view-content.sb-people-host {
  display: block !important;
  margin: 0 !important;
}

/* El resum «Es mostren 1 - 12 de 308» de la vista: ara el dona el paginador. */
.view-brigadistes-per-font .view-header {
  display: none;
}

/* Files renderitzades pel servidor (mode «llistat»): la imatge ve dins el
 * contenidor del camp. */
.sb-people__avatar .field,
.sb-people__avatar .field__item {
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.sb-people__avatar--font {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  background: var(--sb-bg);
}

.sb-people--compact .sb-people__avatar--font {
  width: 34px;
  height: 44px;
}

.sb-people__item:has(.sb-people__avatar--font) .sb-people__link {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
}

.sb-people-wrapper,
.sb-people-wrapper > .item-list {
  margin: 0;
  padding: 0;
}

/* Paginador «Carrega'n més» (com als Mapes temàtics). */
.sb-people__more-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
}

.sb-people__status {
  margin: 0;
  font-size: 14px;
  color: var(--sb-soft);
}

.sb-people__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--sb-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--sb-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.sb-people__more:hover {
  border-color: var(--sb-brand);
  color: var(--sb-brand-700);
}

.sb-people__more[hidden] {
  display: none;
}

.sb-people__more:disabled {
  opacity: .6;
  cursor: progress;
}

/* ---------------------------------------------------------------------------
 * Foto de l'avatar: els ítems són article.node--type-brigadista (mode
 * «llistat») i hi arriben les regles de la foto gran de la fitxa de
 * style.css / responsive_style.css / print.css (.node--type-brigadista
 * .field--name-field-brigadista-imatge: absolute, top -270px, 400×400,
 * clip-path…). Dins l'avatar s'anul·len.
 * ------------------------------------------------------------------------ */
.sb-people__avatar .field--type-image,
.sb-people__avatar .field--type-image .field__item,
.sb-people__avatar .field--type-image img {
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

.sb-people__avatar .field--type-image img {
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Llista «Brigadistes» dels mapes temàtics (en columnes): la línia va a
 * sota de cada element, no a sobre. */
.sm-people.sb-people .sb-people__item::before {
  display: none;
}

.sm-people.sb-people .sb-people__item::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  border-bottom: 1px solid #F3EFF5;
}
