/* Страница экспоната — то, что открывается по QR с инфо-таблички.

   Живёт в том же визуальном языке, что «Путь открытий» (stand.css отдаёт
   токены и шапку с подвалом), но устроена иначе: гость стоит у витрины,
   значит первое на экране — плеер аудиогида, а описание уже раскрыто.
   Ничего разворачивать и никуда переходить не нужно. */

body.exhibit {
  min-height: 100vh;
  overflow-x: hidden;
}

.ex-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.ex-back {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink-2);
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.ex-back:hover, .ex-back:active { color: var(--cyan); }

/* Полоска цвета партнёра сверху — тот же приём, что на карточке в панели
   плана: гость должен с первого взгляда понять, чей это экспонат. */
body.exhibit::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--partner);
  box-shadow: 0 0 24px var(--partner);
  z-index: 5;
}

.ex-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.ex-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ——— плеер аудиогида ———————————————————————————————————————————————
   Главный элемент страницы: гость снял QR именно ради него. Стоит выше
   описания и заметно крупнее всего остального.

   Автозапуска нет сознательно: мобильные браузеры глушат звук без касания,
   и молчащий плеер читается как поломка, а кнопка — как намерение. */

.ex-audio {
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--partner) 12%, transparent), transparent 70%),
    var(--panel);
}

.ex-audio-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ex-audio-head i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--partner);
}

.ex-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--partner);
  border-radius: 999px;
  background: color-mix(in srgb, var(--partner) 14%, transparent);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ex-play:hover, .ex-play:active {
  background: color-mix(in srgb, var(--partner) 26%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--partner) 35%, transparent);
}
.ex-play .ico { font-size: 0.85rem; line-height: 1; }

.ex-progress {
  margin-top: 0.8rem;
  height: 3px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.ex-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--partner);
  transition: width 0.2s linear;
}
.ex-time {
  margin-top: 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* Аудиогида ещё нет — говорим об этом прямо, а не показываем мёртвую кнопку. */
.ex-audio--pending .ex-play { display: none; }
.ex-audio-pending {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ——— тексты ——————————————————————————————————————————————————————— */

.exhibit .short {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.ex-full { color: var(--ink-2); }
.ex-full p { margin: 0 0 0.7rem; }
.ex-full p:last-child { margin-bottom: 0; }

.exhibit .images { display: grid; gap: 0.75rem; margin: 1.5rem 0 0; }
.exhibit .images img { border: 1px solid var(--line); border-radius: var(--radius); }

.exhibit .more { margin: 1.5rem 0 0; }

/* ——— вкладки тем и легенда партнёров ————————————————————————————————
   Те же элементы, что на карте, и ведут они на карту: тема открывает свою
   группу, партнёр — свою. Гость всё время остаётся в одном интерфейсе. */

/* Вкладки и легенда здесь — ссылки, а не кнопки. Блочный режим ломал их
   внутреннюю раскладку: кружок партнёра наезжал на название. Флекс остаётся
   тот же, что на карте, меняется только тег. */
.exhibit .grp[href] { text-decoration: none; display: block; }
.exhibit .stand-legend .legend-btn[href] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.exhibit .grp.is-on { border-bottom-color: var(--acc); background: rgba(255, 255, 255, 0.04); }
.exhibit .stand-legend .legend-btn { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Счётчик в легенде липнет к названию — на карте между ними стоит флекс-зазор,
   а здесь пункты переносятся, и зазор пропадал. */
.exhibit .stand-legend .legend-btn b { margin-left: 0.4rem; }
.exhibit .stand-legend { gap: 0.25rem 0.9rem; }

/* Активная вкладка темы на узком экране оказывалась за краем: ряд
   прокручивается, но сам по себе никуда не едет. Доводим её в кадр
   отрицательным отступом ряда — прокрутку ставит exhibit.js. */
.exhibit .grp-row { scroll-behavior: smooth; }
