/* dialog — the shared pop-up (assets/js/dialog.js). Same family as the venue
   picker: cream panel, ink rule, hairline inset. Sits above the picker (200)
   and the navbar; the age gate raises itself further still. */
.tnbw-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(12, 10, 6, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tnbw-dialog[hidden] { display: none; }
.tnbw-dialog.is-open { opacity: 1; }
.tnbw-dialog.is-leaving { opacity: 0; pointer-events: none; }

.tnbw-dialog__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2 * var(--gutter));
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  background: var(--bg);
  color: var(--text-primary);
  border: 3px solid var(--bg-ink);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 52px);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.tnbw-dialog.is-open .tnbw-dialog__panel { transform: none; }
.tnbw-dialog__panel:focus { outline: none; }
.tnbw-dialog__panel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-medium);
  pointer-events: none;
}
.tnbw-dialog--wide .tnbw-dialog__panel { width: min(980px, 100%); }
.tnbw-dialog--narrow .tnbw-dialog__panel { width: min(560px, 100%); }

.tnbw-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-ink);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tnbw-dialog__close:hover,
.tnbw-dialog__close:focus-visible { background: var(--accent); color: var(--cream); }

.tnbw-dialog__kicker { margin-bottom: 12px; }
.tnbw-dialog__title {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 0.95;
  margin: 0 0 12px;
  padding-right: 52px; /* clear of the close button */
}
.tnbw-dialog__lede {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 0 26px;
}

/* previous / next strip (quick view, team bios) */
.tnbw-dialog__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid var(--bg-ink);
}
.tnbw-dialog__count {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}
.tnbw-dialog__step {
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  white-space: nowrap;
  border: 2px solid var(--bg-ink);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tnbw-dialog__step:hover,
.tnbw-dialog__step:focus-visible { background: var(--bg-ink); color: var(--cream); }

@media (max-width: 560px) {
  .tnbw-dialog { padding: 12px; place-items: end center; }
  .tnbw-dialog__panel { max-height: calc(100dvh - 24px); padding: 26px 20px 22px; }
  .tnbw-dialog__close { top: 10px; right: 10px; }
  /* previous / next stay in reach at the bottom of the pop-up while its content scrolls (1.2.6) */
  .tnbw-dialog__steps {
    position: sticky;
    bottom: -22px;
    z-index: 1;
    margin: 22px -20px -22px;
    padding: 12px 20px 16px;
    background: var(--bg);
  }
  .tnbw-dialog__count { min-width: 0; font-size: 11px; letter-spacing: 0.12em; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .tnbw-dialog, .tnbw-dialog__panel { transition: none; }
}
