/* ------------------------------------------------------------------------
   Researcher entry gate (2026-11-06).

   The category norm: Zeptix, Amino Club and American Peptides all gate on
   21+ and research-use confirmation. It is also a visible compliance control,
   which is a standard underwriting checklist item for this category.

   Deliberately an OVERLAY, not a content replacement. The page renders behind
   it, so a crawler still sees the page and a reader who has already accepted
   never waits for one. Nothing is hidden from search that was not already
   noindexed.
   ------------------------------------------------------------------------ */
.nf-gate{
 position:fixed;inset:0;z-index:2147483000;
 display:grid;place-items:center;padding:20px;
 background:#163f55f2;
 -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
/* Shown only once the script confirms no prior acceptance, so a returning
   reader never sees a flash of it. */
.nf-gate[hidden]{display:none}
html.nf-gate-open,body.nf-gate-open{overflow:hidden}

.nf-gate__panel{
 width:min(100%,460px);max-height:calc(100dvh - 40px);overflow:auto;
 background:var(--nf-surface,#fff);color:var(--nf-ink,#173f52);
 border:1px solid var(--nf-line,#d8dcd6);border-radius:16px;
 padding:clamp(24px,4vw,38px);
 box-shadow:0 30px 80px #000a;
 text-align:center;
}
.nf-gate__mark{width:116px;height:auto;margin:0 auto 20px;display:block}
.nf-gate__eyebrow{
 font:600 10px/1.6 Inter,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;
 color:var(--nf-accent,#1f5c4a);margin:0 0 10px;
}
.nf-gate__panel h2{
 margin:0 0 12px;font:650 clamp(21px,2.4vw,26px)/1.25 Manrope,Inter,sans-serif;letter-spacing:-.03em;
}
.nf-gate__panel p{
 margin:0 0 14px;font:400 13.5px/1.7 Inter,Arial,sans-serif;color:var(--nf-muted,#537889);
}
.nf-gate__terms{
 text-align:left;margin:18px 0;padding:14px 16px;
 border:1px solid var(--nf-line,#d8dcd6);border-radius:11px;background:var(--nf-n-50,#fafbf9);
 display:grid;gap:9px;
}
.nf-gate__terms li{
 list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;
 font:400 12.5px/1.6 Inter,Arial,sans-serif;color:var(--nf-muted,#537889);
}
/* The native checkbox stays visible; its associated target is at least44px. */
.nf-gate__terms li{grid-template-columns:44px minmax(0,1fr);gap:8px}
.nf-gate__check-target{display:grid;place-items:center;width:44px;min-height:44px;cursor:pointer}
.nf-gate__check-target input{appearance:auto;-webkit-appearance:checkbox;width:20px;height:20px;min-width:20px;margin:0;padding:0;accent-color:var(--nf-accent,#1f5c4a);cursor:pointer}
.nf-gate__check-target input:focus-visible{outline:2px solid var(--nf-accent,#1f5c4a);outline-offset:4px}
.nf-gate__statement{min-width:0;min-height:44px;padding:10px 0}
.nf-gate__statement label{cursor:pointer}
.nf-gate__clause>label:only-child{display:block}
.nf-gate__clause+.nf-gate__clause{margin-top:6px}
.nf-gate__statement a{color:inherit;text-decoration:underline;position:relative}
.nf-gate__actions [data-gate-accept]:disabled{opacity:.5;cursor:not-allowed}
.nf-gate__actions{display:grid;gap:10px;margin-top:4px}
.nf-gate__actions .button{width:100%;justify-content:center}
.nf-gate__decline{
 background:none;border:0;cursor:pointer;padding:9px;
 font:600 12px/1.5 Inter,Arial,sans-serif;color:var(--nf-muted,#537889);text-decoration:underline;
}
.nf-gate__decline:hover{color:var(--nf-ink,#173f52)}
.nf-gate__fine{
 margin:16px 0 0;font:400 11px/1.6 Inter,Arial,sans-serif;color:var(--nf-faint,#858c92);
}
.nf-gate__fine a{color:inherit;text-decoration:underline}

/* Declined state: say so plainly rather than silently doing nothing. */
.nf-gate__panel[data-state="declined"] .nf-gate__terms,
.nf-gate__panel[data-state="declined"] .nf-gate__actions{display:none}

@media(prefers-reduced-motion:no-preference){
 .nf-gate__panel{animation:nf-gate-in .28s cubic-bezier(.2,.7,.3,1) both}
 @keyframes nf-gate-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
}
@media(max-width:420px){.nf-gate{padding:12px}.nf-gate__panel{border-radius:13px}}

/* Initial offer entrance only: the measured dialog/form/vial never translate.
   No retained fill; the existing success/exit transition remains authoritative. */
@media(prefers-reduced-motion:no-preference){
 .welcome-dialog.vial-offer[open]{animation:nf-gate-welcome-panel-in .42s cubic-bezier(.16,1,.3,1)}
 .welcome-dialog.vial-offer[open]::backdrop{animation:nf-gate-welcome-backdrop-in .42s ease-out}
 .welcome-dialog.vial-offer[open]>.nf-offer-vial-heading{animation:nf-gate-welcome-heading-in .42s cubic-bezier(.16,1,.3,1)}
 @keyframes nf-gate-welcome-panel-in{from{opacity:0}to{opacity:1}}
 @keyframes nf-gate-welcome-backdrop-in{from{opacity:0}to{opacity:1}}
 @keyframes nf-gate-welcome-heading-in{from{translate:0 12px}to{translate:0 0}}
}
@media(prefers-reduced-motion:reduce){
 .welcome-dialog.vial-offer[open],.welcome-dialog.vial-offer[open]::backdrop,.welcome-dialog.vial-offer[open]>.nf-offer-vial-heading{animation:none!important}
}

/* Optional analytics never changes required research acceptance. */
.nf-gate__analytics{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;text-align:left;min-height:44px;margin:0;padding:0;border:0;font-size:13px;line-height:1.5}.nf-gate__analytics>div{min-width:0}.nf-gate__analytics label{cursor:pointer}.nf-gate__analytics>div>label{display:inline;min-height:0;padding:0;box-sizing:border-box}.nf-gate__analytics>div>a{display:inline;width:auto;margin:0;padding:0}.nf-gate__analytics a{text-decoration:underline;text-underline-offset:3px}.nf-gate__analytics input:disabled{opacity:.5;cursor:not-allowed}

.nf-gate__terms+.nf-gate__actions{border-top:1px solid #537889;padding-top:12px}
