/*
 * perfection.css – The look of the Class of Perfection page only (leaderboard and entry panels).
 * Used by: frontend/pages/perfection.html.
 * How to edit: colours, blur and radii come from liquid-crystal.css. Change the sizes here.
 */

/* This is the style for the leading class on the leaderboard: the biggest item on the page */
.leader-top {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  margin: 12px 0 18px;
  border-radius: 18px;
  background: var(--colour-panel-solid);
  border: 1px solid var(--colour-edge);
}

/* This is the rank badge of the leading class */
.leader-rank {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colour-primary);
}

/* This is the name of the leading class, drawn large */
.leader-name {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

/* This is the points of the leading class */
.leader-points {
  margin: 0;
  font-size: 1.1rem;
}

/* This is the list of the other classes, in rank order */
.leader-rest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* This is one row of the other classes: rank and name on the left, points on the right */
.leader-rest li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--colour-panel-solid);
}

/* This is the points number at the end of a row */
.leader-rest .leader-row-points {
  font-weight: 600;
}

/* This is the row of evidence photos under an entry */
.entry-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

/* This is one evidence photo: a small square picture; the full picture opens in a new tab */
.entry-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--colour-edge);
  display: block;
}

/* This is the style for the phone: the panels use the full width with a small gutter */
@media (max-width: 600px) {
  .leader-top {
    padding: 18px;
  }

}
