/**
 * Awards page (/awards/).
 *
 * Two pieces: a photo strip for the trophies, and the year timeline that
 * carries the full record. The timeline is a two-column grid — a sticky year
 * label beside the awards for that year — so position on the page always tells
 * you which era you are reading.
 */

/* -------------------------------------------------------------- gallery -- */

.aw-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-24);
  align-items: start;
}

.aw-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.aw-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-large);
  border: var(--border-thin) solid var(--color-border-light);
  background: var(--color-surface-neutral-light);
}

.aw-shot figcaption {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  /* Captions run from four words to twenty. Clamping caps the tall ones at
     four lines (widened from three 19 September 2026 to absorb the
     typography contract's 10px->13px Image caption migration: at the
     unchanged pixel-width figure, the larger size wraps some captions one
     line earlier, so the clamp needed the same one-line allowance the
     min-height below already gets); reserving that height stops the short
     ones leaving their figure shorter than its neighbours in the row.
     font-size/line-height now come from src/styles/typography.css's
     Image caption role (13px/1.45) rather than being set here. */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(6 * 1.45em);
}

/* -------------------------------------------------------------- filters -- */

.aw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-32);
}

.aw-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border: var(--border-thin) solid var(--color-border-light);
  border-radius: 999px;
  background: var(--color-surface-card);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}

.aw-filter:hover {
  border-color: var(--color-border-medium);
  color: var(--color-text-primary);
}

.aw-filter:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

.aw-filter.is-active {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-text-inverse);
}

/* Awarding-body chips are secondary to the decades, so they sit quieter. */
.aw-filter--body {
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: var(--weight-medium);
}

.aw-filter__n {
  font-weight: var(--weight-regular);
  opacity: 0.65;
  font-size: 10px;
}

/* ------------------------------------------------------------- timeline -- */

.aw-timeline {
  display: flex;
  flex-direction: column;
}

.aw-year {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-32);
  padding-block: var(--space-32);
  border-top: var(--border-thin) solid var(--color-border-light);
}

.aw-year:first-child {
  border-top: none;
  padding-top: 0;
}

.aw-year[hidden] {
  display: none;
}

.aw-year__label {
  margin: 0;
  position: sticky;
  top: 96px;
  align-self: start;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--color-brand-primary);
  font-variant-numeric: tabular-nums;
}

.aw-year__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}

.aw-item {
  padding-left: var(--space-20);
  border-left: 2px solid var(--color-border-medium);
}

.aw-item[hidden] {
  display: none;
}

.aw-item__body {
  margin: 0 0 var(--space-8);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.aw-item__citations {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.aw-item__citations li {
  position: relative;
  padding-left: var(--space-16);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: var(--weight-light);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.aw-item__citations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-brand-accent);
}

.aw-empty {
  margin: var(--space-32) 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .aw-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  /* Below this the year rail costs more width than it earns; the label moves
     above its awards and stops being sticky. */
  .aw-year {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }

  .aw-year__label {
    position: static;
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  .aw-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }

  .aw-filter {
    padding: var(--space-6) var(--space-12);
    font-size: 10px;
  }
}
