/* Our Class page (/classmates/): one card per classmate, with a yearbook photo
   only where "Photo On Site" is Yes. Builds on styles.css tokens. */

.page-classmates main {
  padding: 2rem 0 3rem;
}

.page-classmates h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  color: var(--heritage-green);
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.3rem;
  margin: 0 0 1.5rem;
}

.demo-note {
  background: var(--paper);
  border: 2px solid var(--field-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.search { position: relative; }
.search input {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 1.15rem;
  padding: 14px 16px 14px 46px;
  border: 2px solid var(--field-border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.search input:focus { border-color: var(--brand-green); }
.search input:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 2px; }
.search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted);
}

.count {
  margin: 1rem 0 1.25rem;
  font-weight: 600;
}

/* The card grid is wider than the reading column */
.cards-wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
  align-items: start; /* a name card beside a photo card stays its own size */
}

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-top: 6px solid var(--heritage-green);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
}

.card-name {
  padding: 0.9rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card .name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card .aka {
  font-size: 1.125rem; /* 18px */
  line-height: 1.35;
  color: var(--muted);
}

.find-note {
  margin: 2rem 0 0;
}

@media (max-width: 26rem) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .card .name { font-size: 1.2rem; }
}

.photo-remove {
  margin: 0.75rem 0 0;
}
