/* Awards — spotlight index + featured panel */

.awards-page {
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 96px);
  scroll-margin-top: 78px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(196, 163, 90, 0.12), transparent),
    var(--sand);
}

.awards-toolbar {
  max-width: 1180px;
  margin: 0 auto clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.awards-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.awards-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.awards-filter:hover {
  border-color: var(--green-mid);
  color: var(--green);
}
.awards-filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.awards-toolbar[hidden] {
  display: none;
}

.awards-empty {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-radius: 14px;
  border: 1px dashed var(--border);
}
.awards-empty[hidden] { display: none; }

/* Stage: index + feature */
.awards-stage {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}
.awards-stage[hidden] { display: none; }

.awards-index {
  position: sticky;
  top: 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(12, 74, 110, 0.06);
  scrollbar-width: thin;
  box-sizing: border-box;
}
.awards-index__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.awards-index__item:hover {
  background: var(--sage);
}
.awards-index__item.is-active {
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.08), rgba(196, 163, 90, 0.12));
  box-shadow: inset 3px 0 0 var(--gold);
}
.awards-index__num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}
.awards-index__item.is-active .awards-index__num {
  color: var(--green);
}
.awards-index__meta {
  min-width: 0;
}
.awards-index__year {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 2px;
}
.awards-index__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured panel */
.awards-feature {
  min-width: 0;
}
.awards-feature__card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(12, 74, 110, 0.1);
}
.awards-feature__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c2a45;
  overflow: hidden;
  cursor: zoom-in;
}
.awards-feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(12px, 2vw, 24px);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.awards-feature__visual img.is-swapping {
  opacity: 0.35;
}
@media (hover: hover) {
  .awards-feature__visual:hover img:not(.is-swapping) {
    transform: scale(1.03);
  }
}
.awards-feature__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 21, 37, 0.75) 0%, transparent 45%);
  pointer-events: none;
}
.awards-feature__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
}
.awards-feature__expand {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.awards-feature__expand:hover {
  background: var(--gold);
  color: #fff;
}
.awards-feature__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(16px, 3vw, 28px);
  color: #fff;
  pointer-events: none;
}
.awards-feature__overlay p {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 38ch;
}
.awards-feature__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.awards-feature__org {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: var(--green);
}
.awards-feature__org i {
  color: var(--gold);
}
.awards-feature__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.awards-feature__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--green);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.awards-feature__nav button:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}
.awards-feature__nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.awards-feature__counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  min-width: 52px;
  text-align: center;
}

/* Thumbnail strip */
.awards-strip-wrap {
  max-width: 1180px;
  margin: clamp(24px, 4vw, 36px) auto 0;
}
.awards-strip-wrap[hidden] { display: none; }
.awards-strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.awards-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.awards-strip__thumb {
  flex: 0 0 auto;
  width: 88px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.awards-strip__thumb:hover {
  transform: translateY(-3px);
}
.awards-strip__thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(154, 123, 46, 0.25);
}
.awards-strip__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.awards-strip__thumb span {
  display: block;
  padding: 4px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: var(--white);
}

/* Quick browse — hover preview popup */
.awards-strip__preview {
  position: fixed;
  width: 220px;
  z-index: 980;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}
.awards-strip__preview.is-visible {
  opacity: 1;
  visibility: visible;
}
.awards-strip__preview-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(12, 74, 110, 0.2);
}
.awards-strip__preview-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 1;
}
.awards-strip__preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f0e8;
}
.awards-strip__preview-meta {
  padding: 10px 4px 2px;
  text-align: center;
}
.awards-strip__preview-meta strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 6px;
}
.awards-strip__preview-presenter {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 8px;
}
.awards-strip__preview-meta span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (hover: none) {
  .awards-strip__preview {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .awards-strip__preview {
    width: min(190px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .awards-strip__preview {
    transition: none;
  }
}

/* Lightbox */
.award-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.award-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.award-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(8px);
}
.award-lightbox__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(94vh, 900px);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.award-lightbox.open .award-lightbox__dialog {
  transform: translateY(0) scale(1);
}
.award-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.award-lightbox__close:hover {
  background: var(--green);
  color: #fff;
}
.award-lightbox__img-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 48px 16px 16px;
  background: #f0ebe3;
  text-align: center;
}
.award-lightbox__img-wrap img {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.award-lightbox__caption {
  flex-shrink: 0;
  padding: 18px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.award-lightbox__caption strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.award-lightbox__caption p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.award-lightbox__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sand);
  border-top: 1px solid var(--border);
}
.award-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--green);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.award-lightbox__nav:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}
.award-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.award-lightbox__counter {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .awards-stage {
    grid-template-columns: 1fr;
  }
  .awards-index {
    position: static;
    height: auto !important;
    max-height: none !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 10px;
  }
  .awards-index__item {
    flex: 0 0 min(240px, 78vw);
    scroll-snap-align: start;
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .awards-feature__overlay h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .awards-toolbar {
    margin-bottom: 18px;
  }
  .awards-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .awards-filters::-webkit-scrollbar {
    display: none;
  }
  .awards-filter {
    flex: 0 0 auto;
  }
  .award-lightbox {
    padding: 0;
    align-items: flex-end;
  }
  .award-lightbox__dialog {
    width: 100%;
    max-height: 96dvh;
    border-radius: 18px 18px 0 0;
  }
  .award-lightbox__img-wrap {
    max-height: 58dvh;
    padding-top: 44px;
  }
  .award-lightbox__nav span {
    display: none;
  }
  .award-lightbox__footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .awards-feature__nav button span {
    display: none;
  }
}

@media (max-width: 480px) {
  .awards-page {
    padding-inline: 12px;
    scroll-margin-top: 68px;
  }

  .awards-feature__overlay h2 {
    font-size: 1rem;
  }

  .awards-feature__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .awards-feature__nav {
    width: 100%;
    justify-content: space-between;
  }
}
