/*
 * Komponent: zespół (blok nlad/authors, układ grid): kafle 2 / 3 / 4 kolumny, pole „Szukaj autora”.
 * Bez JS pole jest ukryte (atrybut hidden), wszystkie kafle widoczne. Wybór redakcji: c10_l siatka, c10_f szukaj, c10_s nazw.
 */
@layer components {
  .nl-authors__search { display: grid; gap: var(--nl-space-1); max-inline-size: var(--nl-measure); margin-block: 0 var(--nl-space-5); }
  .nl-archive-head + .nl-entry__content > .nl-authors:first-child { padding-block-start: var(--nl-space-5); } /* >= 24 px od tytułu strony do pierwszego rzędu */
  .nl-entry__content > .nl-authors ~ .nl-cta--full { max-inline-size: none; } /* pas „Wesprzyj” pod siatką: pełna szerokość siatki */
  .nl-authors__status { margin: 0; min-block-size: 1.5em; font-size: var(--nl-text-s); } /* miejsce na komunikat zarezerwowane (CLS 0) */
  .nl-authors__search-label { font-family: var(--nl-font-heading); font-size: var(--nl-text-m); font-weight: var(--nl-heading-weight); }
  .nl-authors__search .nl-hsearch { inline-size: 100%; } /* pole jak wyszukiwarka w nagłówku (header.css): ikona, pigułka, min. 44 px */
  .nl-authors__filter { min-block-size: var(--nl-touch); font: inherit; }
  .nl-author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nl-space-5) var(--nl-space-4); margin: 0; padding: 0; list-style: none; }
  .nl-author-grid__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--nl-space-2); text-align: center; }
  .nl-author-grid__item[hidden] { display: none; }
  .nl-author-grid { --nl-avatar-size: var(--nl-avatar); }
  .nl-author-grid__name { color: var(--nl-color-ink); font-family: var(--nl-font-heading); font-weight: var(--nl-heading-weight); line-height: 1.2; text-decoration: none; }
  .nl-author-grid__name::after { content: ""; position: absolute; inset: 0; } /* cały kafel klika się jako link nazwiska (jeden przystanek Tab) */
  .nl-author-grid__name:hover { text-decoration: underline; }
  .nl-author-grid__role,
  .nl-author-grid__count { font-size: var(--nl-text-s); }
  @media (min-width: 48em) {
    .nl-author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 64em) {
    .nl-author-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  /* Stronicowanie (blok bez limitu): linki Poprzednie/Następne. */
  .nl-authors__pager { display: flex; flex-wrap: wrap; gap: var(--nl-space-2); margin-block-start: var(--nl-space-4); }
}
