/* Страница номинанта — nominees/<трек>/<адрес>.html (24.10.2026).
   Окно «Разворот» (styles/nominee-modal.css) напечатано на странице поверх
   кадра трека, как поверх страницы трека на сайте. Здесь только отличия от
   окна-диалога: высота по содержимому, стрелки-ссылки на соседей, крошки и
   список номинации. Цвета — токены сайта (track-page-base.css). */

.np-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(18px, 3vw, 32px) 0 0;
  padding: 0;
  color: rgba(244, 241, 234, 0.34);
  font: 400 12px / 1.4 var(--font-body);
  list-style: none;
}

.np-crumbs li + li::before {
  margin-right: 8px;
  content: '·';
}

.np-crumbs a {
  border-bottom: 1px solid transparent;
  color: rgba(244, 241, 234, 0.56);
  text-decoration: none;
}

.np-crumbs a:hover {
  border-bottom-color: var(--line-hover);
  color: var(--ink);
}

/* ── Сцена: кадр трека, притушенный, как подложка окна на сайте ── */

.np-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 52px auto 52px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: clamp(14px, 2vw, 22px);
  padding: clamp(28px, 5vw, 64px) clamp(12px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.np-stage__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.np-stage__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Тон подложки диалога (.nm-dialog::backdrop) */
.np-stage__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 6, 0.84);
}

/* Ширины — как у окна: «Разворот» 1000px, уже — карточка 480px */
.np-stage .nm-host {
  width: min(1000px, calc(100vw - 164px));
}

@media (max-width: 1063px) {
  .np-stage .nm-host {
    width: min(480px, calc(100vw - 164px));
  }
}

/* Стрелки — ссылки на соседей по номинации, оформление — кнопки окна */
.np-stage a.nm-dialog__nav {
  text-decoration: none;
}

.np-stage .nm-dialog__nav[aria-disabled='true'] {
  opacity: 0.22;
  cursor: default;
}

/* Карточка на странице растёт по содержимому: прокрутки внутри нет,
   текст читается целиком */
.np-stage .nm {
  height: auto;
  grid-template-rows: none;
}

.np-stage .nm .nm__main {
  grid-template-rows: auto auto;
  min-height: auto;
}

.np-stage .nm .nm__scroll {
  min-height: auto;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Лицо «Разворота» — отступом сверху, а не по центру колонки, как в окне:
   на странице карточка растёт по тексту (у студентов — в полтора экрана),
   и бейдж с именем уехали бы вниз, а при раскрытии «Встроить» прыгали бы.
   64px — примерно столько, сколько даёт центровка в карточке высотой 540 */
@container (min-width: 900px) {
  .np-stage .nm {
    min-height: var(--nm-h);
  }

  .np-stage .nm--b .nm__badge {
    margin-top: 64px;
  }

  .np-stage .nm--b .nm__status {
    margin-bottom: 0;
  }
}

/* Название — h1 страницы. Базовый h1 страницы трека (узкая колонка 9ch,
   тёмная кромка) ему не нужен */
.np-stage .nm__name {
  max-width: none;
  text-shadow: none;
}

/* Телефон: карточка во всю ширину, стрелки — на её краях на высоте бейджа
   (--nm-nav-y считает scripts/nominee-page.js) */
@media (max-width: 640px) {
  .np-stage {
    display: block;
    padding: 0;
    border: 0;
  }

  .np-stage__frame {
    display: none;
  }

  .np-stage .nm-host {
    width: 100%;
  }
}

/* ── Номинация: все номинанты списком, строки — как реестр треков в подвале ── */

.np-list {
  margin-top: clamp(40px, 6vw, 72px);
}

.np-list__head {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.np-list__kick {
  color: var(--muted);
  font: 500 11px / 1.2 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.np-list__head h2 {
  color: var(--ink);
  font: 700 clamp(26px, 3.4vw, 42px) / 1 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.np-list__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(24px, 4vw, 56px);
}

.np-list__row {
  break-inside: avoid;
}

.np-list__row a {
  position: relative;
  display: grid;
  grid-template-columns: 3.1em minmax(0, 1fr);
  align-items: baseline;
  gap: 4px clamp(10px, 1.6vw, 16px);
  padding: 13px 0 13px 14px;
  color: inherit;
  text-decoration: none;
}

.np-list__row a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft) 0%, var(--line-soft) 60%, rgba(255, 255, 255, 0) 100%);
}

/* Штрих слева — состояние: под курсором, с клавиатуры и у текущего номинанта */
.np-list__row a::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 200ms ease;
}

.np-list__row a:hover,
.np-list__row a:focus-visible,
.np-list__row a[aria-current='page'] {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0));
}

.np-list__row a:hover::before,
.np-list__row a:focus-visible::before,
.np-list__row a[aria-current='page']::before {
  transform: scaleY(1);
}

.np-list__row a:focus-visible {
  outline: none;
}

.np-list__no {
  color: rgba(243, 240, 234, 0.32);
  font: 500 11px / 1.6 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.16em;
  transition: color 200ms ease;
}

.np-list__row a:hover .np-list__no,
.np-list__row a:focus-visible .np-list__no,
.np-list__row a[aria-current='page'] .np-list__no {
  color: var(--color-gold-text);
}

.np-list__name {
  color: rgba(243, 240, 234, 0.84);
  font: 600 clamp(15px, 1.4vw, 18px) / 1.25 var(--font-display);
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}

.np-list__row a:hover .np-list__name,
.np-list__row a:focus-visible .np-list__name,
.np-list__row a[aria-current='page'] .np-list__name {
  color: var(--ink);
}

.np-list__by {
  grid-column: 2;
  color: var(--muted);
  font: 400 12.5px / 1.4 var(--font-body);
}

.np-list__more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: clamp(26px, 4vw, 40px) 0 clamp(40px, 6vw, 80px);
}

/* Ссылки — как «Все эксперты премии» у профиля эксперта */
.np-more {
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 241, 234, 0.62);
  font: 500 13px / 1 var(--font-body);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.np-more:hover,
.np-more:focus-visible {
  border-bottom-color: var(--gold-border);
  color: var(--gold);
}

@media (max-width: 760px) {
  .np-list__rows {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-list__row a::before {
    transition: none;
  }
}
