.profiles-library {
  min-height: calc(100svh - 6rem);
  padding-top: clamp(5rem, 9vw, 8rem);
}

.profiles-heading {
  max-width: 51rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.profiles-heading h1 {
  margin: 1rem 0 0;
  color: var(--profile-ink);
  font-size: clamp(3.3rem, 7.6vw, 6.5rem);
  line-height: 0.98;
}

.profiles-introduction {
  max-width: 43rem;
  margin-top: 2.25rem;
  color: var(--profile-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

.profiles-introduction p {
  margin-bottom: 0.65rem;
}

.profiles-list {
  border-top: 1px solid var(--profile-gold);
}

.profiles-guidance {
  display: none;
}

.profile-entry {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--profile-rule);
}

.profile-entry-number {
  margin: 0.5rem 0 0;
  color: var(--profile-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.profile-entry-content {
  max-width: 38rem;
}

.profile-entry-content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.08;
}

.profile-entry-content > p {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--profile-muted);
}

.profile-entry-best,
.profile-entry-label {
  display: none;
}

.profile-entry-featured {
  padding-block: clamp(3.25rem, 6vw, 5.25rem);
}

.profile-entry-featured .profile-entry-content {
  max-width: 42rem;
}

.profile-entry-featured .profile-entry-content > p {
  max-width: 40rem;
}

.profile-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  min-width: 18rem;
}

.profile-entry-actions .button {
  padding-inline: 1rem;
  text-align: center;
}

.profile-entry-actions .button:hover {
  color: var(--profile-ink);
}

@media (max-width: 900px) {
  .profile-entry {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .profile-entry-actions {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .profiles-library {
    min-height: auto;
  }

  .profile-entry {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .profiles-guidance {
    margin: 0 0 1.25rem;
    display: block;
    color: var(--profile-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
  }

  .profile-entry-number,
  .profile-entry-actions {
    grid-column: 1;
  }

  .profile-entry-actions {
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .profile-entry-best,
  .profile-entry-label {
    display: block;
  }

  .profile-entry-content .profile-entry-label {
    margin: 0 0 0.75rem;
    color: var(--profile-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
  }

  .profile-entry-content .profile-entry-best {
    margin-top: 0.85rem;
    color: var(--profile-muted);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }

  .profiles-page .button-download {
    color: var(--profile-ink);
  }
}

@media (max-width: 480px) {
  .profile-entry-actions {
    grid-template-columns: 1fr;
  }
}

@media print {
  .profile-entry-actions {
    display: none;
  }
}
