/* Vien.noir consent UI. Independent of the page's reveal/scroll animations. */
.vn-consent-banner,
.vn-consent-dialog {
  --vn-border: rgba(212, 172, 98, .3);
  --vn-copy: #ded2d7;
  --vn-surface: #171019;
  color: #f3e9dc;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
.vn-consent-banner[hidden],
.vn-consent-dialog [hidden] { display: none !important; }
.vn-consent-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 24px 24px;
  margin: 0 auto;
  width: min(1120px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--vn-border);
  border-radius: 14px;
  background: linear-gradient(125deg, #211521, #141018 75%);
  box-shadow: 0 18px 65px rgba(0, 0, 0, .55);
  animation: vn-consent-appear 220ms ease-out both;
  /* No blur filters, viewport-height animation or body scroll repositioning. */
}
.vn-consent-eyebrow {
  margin: 0 0 7px !important;
  color: #d4ac62;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.vn-consent-banner h2,
.vn-consent-dialog h2 {
  margin: 0 0 9px;
  color: #f3e9dc;
  font-family: var(--display, Georgia, serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-transform: none;
}
.vn-consent-intro { margin: 0 0 9px; color: var(--vn-copy); font-size: 13px; line-height: 1.65; }
.vn-consent-note { margin: 0; color: #bfb0bb; font-size: 11px; line-height: 1.65; }
.vn-consent-banner a,
.vn-consent-dialog a { color: #e2c68f; text-underline-offset: 3px; }
.vn-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vn-consent-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  margin: 0;
  border: 1px solid rgba(212, 172, 98, .5);
  border-radius: 6px;
  background: #2b202a;
  color: #f3e9dc;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease;
}
/* Accept and reject deliberately have identical visual weight. */
.vn-consent-button--settings { grid-column: 1 / -1; background: #171019; border-color: rgba(243, 233, 220, .2); }
.vn-consent-button:hover { background: #3b2a38; border-color: #d4ac62; }
.vn-consent-button:focus-visible,
.vn-consent-close:focus-visible,
.vn-consent-banner a:focus-visible,
.vn-consent-dialog a:focus-visible { outline: 2px solid #f0d79e; outline-offset: 3px; }
.vn-consent-banner button::before, .vn-consent-banner button::after,
.vn-consent-dialog button::before, .vn-consent-dialog button::after,
.vn-consent-banner a::before, .vn-consent-banner a::after,
.vn-consent-dialog a::before, .vn-consent-dialog a::after,
[data-vn-privacy-settings]::after { content: none !important; }

.vn-consent-dialog {
  position: fixed;
  inset: 0;
  width: min(660px, calc(100% - 32px));
  max-width: 660px;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--vn-border);
  border-radius: 14px;
  background: var(--vn-surface);
  box-shadow: 0 24px 100px rgba(0, 0, 0, .65);
  overflow: hidden;
}
.vn-consent-dialog:not([open]) { display: none; }
.vn-consent-dialog[open] { display: flex; flex-direction: column; }
.vn-consent-dialog::backdrop { background: rgba(5, 3, 7, .76); }
.vn-consent-dialog--fallback { z-index: 1200; box-shadow: 0 0 0 100vmax rgba(5, 3, 7, .76); }
.vn-consent-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 26px 19px;
  border-bottom: 1px solid rgba(243, 233, 220, .12);
  flex: 0 0 auto;
  background: linear-gradient(120deg, #251823, #171019);
}
.vn-consent-dialog__head h2 { margin: 0; font-size: 30px; }
.vn-consent-close {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(243, 233, 220, .2);
  border-radius: 50%;
  background: transparent;
  color: #f3e9dc;
  cursor: pointer;
}
.vn-consent-close:hover { background: #33222f; }
.vn-consent-dialog__body {
  padding: 20px 26px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  color: var(--vn-copy);
}
.vn-consent-dialog__body > p { margin: 0 0 18px; font-size: 13px; }
.vn-consent-option { margin: 0 0 12px; padding: 16px; border: 1px solid rgba(243, 233, 220, .12); border-radius: 8px; background: #1e1620; }
.vn-consent-option__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.vn-consent-option h3 { margin: 0; color: #f3e9dc; font-family: var(--sans, Arial, sans-serif); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.vn-consent-option p { margin: 0; font-size: 12px; line-height: 1.7; }
.vn-consent-badge { flex-shrink: 0; color: #d4ac62; font-size: 10px; }
.vn-consent-option .vn-consent-dependency { margin-top: 7px; color: #bca9b9; font-size: 11px; }
.vn-consent-switch { position: relative; display: block; flex: 0 0 46px; width: 46px; height: 30px; cursor: pointer; }
.vn-consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.vn-consent-switch span { position: absolute; inset: 2px 0; border: 1px solid #746573; border-radius: 20px; background: #372d38; transition: background-color 150ms ease; }
.vn-consent-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e2d7dd; transition: transform 150ms ease; }
.vn-consent-switch input:checked + span { background: #d4ac62; border-color: #d4ac62; }
.vn-consent-switch input:checked + span::after { transform: translateX(20px); background: #20141d; }
.vn-consent-switch input:focus-visible + span { outline: 2px solid #f0d79e; outline-offset: 4px; }
.vn-consent-switch input:disabled { cursor: not-allowed; }
.vn-consent-switch input:disabled + span { opacity: .4; }
.vn-consent-dialog__body .vn-consent-detail-note { margin-top: 16px; color: #bfaeba; font-size: 11px; line-height: 1.65; }
.vn-consent-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 26px; border-top: 1px solid rgba(243, 233, 220, .12); flex: 0 0 auto; }
.vn-consent-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.footer-bottom__links { flex-wrap: wrap; }
.prose .vn-privacy-action { margin-block: 18px; }

@keyframes vn-consent-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .vn-consent-banner { grid-template-columns: 1fr; gap: 17px; inset: auto 16px 16px; width: calc(100% - 32px); padding: 22px; }
  .vn-consent-actions { grid-template-columns: 1fr 1fr 1fr; }
  .vn-consent-button--settings { grid-column: auto; }
}
@media (max-width: 520px) {
  .vn-consent-banner { inset: auto 10px max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100svh - 20px); padding: 20px 18px 17px; gap: 16px; border-radius: 12px; }
  .vn-consent-banner h2 { font-size: 27px; }
  .vn-consent-intro { font-size: 12px; }
  .vn-consent-note { font-size: 10px; }
  .vn-consent-actions { grid-template-columns: 1fr 1fr; gap: 9px; }
  .vn-consent-button--settings { grid-column: 1 / -1; }
  .vn-consent-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100svh - 20px); border-radius: 12px; }
  .vn-consent-dialog__head { padding: 20px 18px 16px; }
  .vn-consent-dialog__head h2 { font-size: 28px; }
  .vn-consent-dialog__body { padding: 18px 18px 6px; }
  .vn-consent-option { padding: 13px; }
  .vn-consent-dialog__actions { padding: 15px 18px; gap: 9px; }
  .vn-consent-button { font-size: 11px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vn-consent-banner { animation: none; }
  .vn-consent-button, .vn-consent-switch span, .vn-consent-switch span::after { transition: none; }
}
@media (forced-colors: active) {
  .vn-consent-switch span { border: 2px solid ButtonText; }
  .vn-consent-switch input:checked + span { background: Highlight; }
}
@media print { .vn-consent-banner, .vn-consent-dialog, [data-vn-privacy-settings] { display: none !important; } }
