/* The authenticity dialog: generous artwork, readable copy, and a close button that stays put. */
.auth-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: calc(100% - 24px);
  max-height: min(88vh, 790px);
  overflow: hidden;
  border-radius: 18px;
}
.auth-dialog-scroll {
  max-height: min(calc(88vh - 58px), 732px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #6cabc0 #0a2032;
  scrollbar-width: thin;
}
@supports (height: 1dvh) {
  .auth-dialog { max-height: min(88dvh, 790px); }
  .auth-dialog-scroll { max-height: min(calc(88dvh - 58px), 732px); }
}
.auth-dialog-bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 9px 5px 20px;
  background: linear-gradient(105deg, #112f43, #0a2032);
  border-bottom: 1px solid rgba(160, 222, 244, .2);
}
.auth-dialog-label { color: #f6ce8b; font-size: .7rem; line-height: 1.3; font-weight: 800; letter-spacing: .11em; }
.auth-dialog-label span { font-size: 1rem; margin-right: 7px; }
.auth-dialog-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.auth-dialog-copy { min-width: 0; max-width: 100%; }
.auth-dialog-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.auth-dialog-copy blockquote { overflow-wrap: break-word; }
.auth-dialog-copy .auth-note { font-size: .95rem !important; line-height: 1.5; }
.auth-close {
  position: static;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: rgba(5, 24, 38, .9);
  border-color: rgba(182, 230, 247, .7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .32);
}
.auth-close:focus-visible, .auth-return:focus-visible, .auth-dialog-journey:focus-visible {
  outline: 3px solid #ffce86;
  outline-offset: 3px;
}
.auth-dialog-journey {
  min-width: 0;
  min-height: 54px;
  gap: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.auth-dialog-journey span { flex: 0 0 auto; }
.auth-return { min-height: 48px; gap: 10px; line-height: 1.4; }
@media (max-width: 800px) {
  .auth-dialog-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-art { min-height: 0; height: clamp(132px, 24vh, 200px); max-height: none; }
  .auth-art::after { background: linear-gradient(0deg, #0a2032, transparent 55%); }
  .auth-art img { object-position: center 43%; }
  .auth-dialog-copy { padding: 20px clamp(20px, 6vw, 32px) 32px; }
  .auth-dialog-copy h2 { font-size: clamp(1.625rem, 7.3vw, 2.65rem); margin-bottom: 16px; }
  .auth-dialog-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.65; }
  .auth-dialog-copy blockquote { font-size: 1.05rem; line-height: 1.5; margin: 20px 0 16px; }
  .auth-dialog-journey { margin-top: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-dialog[open] .auth-dialog-inner { animation: auth-dialog-arrive .28s ease-out both; }
  @keyframes auth-dialog-arrive { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}
