/* People page: a grid of small cards under each rank.
   Linked with ?v= in people.html: /assets/ is cached for a day, so bump it when this file changes. */
.roster > :first-child { margin-top: 0; }
.roster .after { margin: 2.5rem 0 0; }
.roster .note { max-width: var(--isej-measure); margin: 0 0 1.75rem; }
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  align-items: start;
}
.person { scroll-margin-top: 5.2rem; min-width: 0; }
.person .frame { aspect-ratio: 1; background: var(--isej-navy-10); margin-bottom: 0.6rem; }
/* no photo supplied: a tile of the field (the kit's placeholder) instead of a grey square */
.person .frame:empty { background: url("/assets/team/placeholder.svg") center / cover; }
.portrait { display: block; width: 100%; height: auto; }
.person h3 { font-family: var(--isej-font-display); font-size: 1rem; font-weight: 400; font-style: normal; line-height: 1.3; margin: 0 0 0.2rem; }
.person .meta { font-size: var(--isej-step--1); line-height: 1.4; margin: 0; color: var(--isej-navy); }
.person details { margin-top: 0.4rem; font-size: var(--isej-step--1); line-height: 1.5; }
.person summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--isej-ochre);
  text-underline-offset: 0.22em;
}
.person summary::-webkit-details-marker { display: none; }
.person summary:focus-visible { outline: 2px solid var(--isej-navy); outline-offset: 3px; }
.person details p { margin: 0.5rem 0 0; max-width: var(--isej-measure); }

/* An open bio takes the whole row, with the portrait staying at the same size on the left. */
.person:has(details[open]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.25rem;
}
.person:has(details[open]) .frame { grid-row: 1 / span 4; margin-bottom: 0; }
.person:has(details[open]) > :not(.frame) { grid-column: 2; }

@media (min-width: 52rem) {
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .person:has(details[open]) { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
}
@media print { .person details > * { display: block; } }
