/* ============================================================
   NOBLE AMINOS — 21+ RESEARCH GATE
   Full-screen dark gate, matching the approved mockup.
   ============================================================ */

html.na-gate-locked,
html.na-gate-locked body {
  overflow: hidden;
}

/* Hidden by default; revealed by the head script. */
.na-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: transparent;
}

/* Confirmed visitors: hide it. Anything else, it stays up — so a
   blocked or deferred script can never let someone slip past. */
html.na-gate-passed .na-gate { display: none; }

/* Semi-transparent dark overlay — the site shows through behind it. */
.na-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

/* ---------- Panel ---------- */

.na-gate__panel {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  animation: na-gate-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes na-gate-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Mark ---------- */

.na-gate__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.9rem;
}

.na-gate__mark img,
.na-gate__mark svg {
  max-height: 64px;
  width: auto;
}

/* ---------- Type ---------- */

.na-gate__eyebrow {
  font-family: var(--na-font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8A8A82;
  margin: 0 0 1rem;
}

.na-gate__title {
  font-family: var(--na-font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.4vw, 1.7rem);
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 1.1rem;
}

.na-gate__body {
  font-family: var(--na-font-sans);
  font-size: 0.845rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 0.9rem;
}

.na-gate__attest {
  font-family: var(--na-font-sans);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.9rem;
}

/* Policy links shown with the confirmation. */
.na-gate__agree {
  font-family: var(--na-font-sans);
  margin: 0 0 1.8rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.na-gate__agree a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.na-gate__agree a:hover { color: #fff; }

/* ---------- Actions ---------- */

.na-gate__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.na-gate__btn {
  font-family: var(--na-font-sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.na-gate__btn--confirm {
  background: #F7F6F2;
  border: 1px solid #F7F6F2;
  color: #1C1C1A;
  font-weight: 700;
}
.na-gate__btn--confirm:hover { background: #ffffff; border-color: #ffffff; color: #1C1C1A; }

.na-gate__btn--exit {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.na-gate__btn--exit:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* ---------- Foot ---------- */

.na-gate__foot {
  font-family: var(--na-font-sans);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.9rem;
  margin: 0;
}
.na-gate__foot a { color: rgba(255, 255, 255, 0.6); }

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
  .na-gate { padding: 2rem 1.25rem; }
  .na-gate__mark img,
  .na-gate__mark svg { max-height: 56px; }
}

/* ---------- No JavaScript ---------- */

.na-gate-nojs .na-gate { display: flex; }
.na-gate-nojs .na-gate__actions { display: none; }
