/* My Body Cell — 21+ / research-use gate.
   Loads on every page, so every value here is literal: it must not depend on
   variables declared by the theme or by the homepage stylesheet. */

.ruo-gate{
  position:fixed;inset:0;z-index:2147483000;background:rgba(10,27,45,.94);
  display:flex;align-items:center;justify-content:center;padding:20px;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  font-family:"Figtree","Segoe UI",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  font-size:16px;line-height:1.55;color:#0F2438;
}
.ruo-gate[hidden]{display:none}
.ruo-gate *,.ruo-gate *::before,.ruo-gate *::after{box-sizing:border-box}

.ruo-gate-card{
  background:#fff;border-radius:16px;max-width:460px;width:100%;padding:30px 26px 26px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);max-height:calc(100vh - 40px);overflow-y:auto;
}
.ruo-gate-mark{height:30px;width:auto;display:block;margin:0 0 18px}
.ruo-gate h2{
  font-family:"Source Serif 4",Georgia,"Times New Roman",serif;
  font-size:24px;line-height:1.2;margin:0 0 8px;color:#102A43;font-weight:600;
}
.ruo-gate p{margin:0 0 18px;color:#5C6874;font-size:14.5px}

.ruo-check{
  display:flex;gap:11px;align-items:flex-start;padding:12px 0;
  border-top:1px solid #E3E8ED;cursor:pointer;margin:0;
}
.ruo-check input{margin:2px 0 0;width:18px;height:18px;accent-color:#19A7A0;flex:none}
.ruo-check span{font-size:14.5px;line-height:1.45}

.ruo-gate-actions{border-top:1px solid #E3E8ED;padding-top:18px;margin-top:6px}
.ruo-gate-btn{
  display:inline-flex;align-items:center;justify-content:center;width:100%;
  padding:13px 24px;border-radius:999px;font-size:15px;font-weight:600;
  background:#102A43;color:#fff;border:1px solid transparent;cursor:pointer;
  font-family:inherit;transition:background .15s ease;
}
.ruo-gate-btn:hover{background:#0A1B2D}
.ruo-gate-btn[disabled]{opacity:.4;cursor:not-allowed}
.ruo-gate-btn:focus-visible{outline:2px solid #19A7A0;outline-offset:3px}
.ruo-gate-fine{font-size:12px;color:#8A97A4;margin:14px 0 0;text-align:center}

/* the gate holds the page still while it is open */
html.ruo-gate-open,html.ruo-gate-open body{overflow:hidden}

@media (prefers-reduced-motion:reduce){
  .ruo-gate,.ruo-gate *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
