/* Research Use Only — sitewide entry gate */

.cp-ruo-gate {
  display: none;
}

.cp-ruo-gate[hidden] {
  display: none !important;
}

.cp-ruo-gate.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 12, 20, 0.9);
}

.cp-ruo-gate__card {
  width: 100%;
  max-width: 430px;
  padding: 2.125rem 1.875rem 1.75rem;
  text-align: center;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.cp-ruo-gate__logo {
  display: block;
  width: auto;
  max-width: 168px;
  height: 40px;
  margin: 0 auto 1.125rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cp-ruo-gate__title {
  margin: 0 0 0.625rem;
  font-size: 1.3125rem;
  font-weight: 700;
  color: #fff;
}

.cp-ruo-gate__text {
  margin: 0 0 1.25rem;
  font-size: 0.84375rem;
  line-height: 1.6;
  color: #9fb1c1;
}

.cp-ruo-gate__text strong {
  color: #cdd9e3;
}

.cp-ruo-gate__check {
  display: flex;
  gap: 0.6875rem;
  align-items: flex-start;
  margin: 0 0 1.125rem;
  padding: 0.875rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

.cp-ruo-gate__check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2f9e6d;
  cursor: pointer;
}

.cp-ruo-gate__check span {
  font-size: 0.78125rem;
  line-height: 1.5;
  color: #c7d4e0;
}

.cp-ruo-gate__enter {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 10px;
  background: #416889;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}

.cp-ruo-gate__enter:hover:not(:disabled) {
  background: #4a749a;
}

.cp-ruo-gate__enter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cp-ruo-gate__auth {
  margin-top: 1.125rem;
  transition: opacity 0.15s ease;
}

.cp-ruo-gate__auth--locked {
  opacity: 0.4;
  pointer-events: none;
}

.cp-ruo-gate__divider {
  margin: 0 0 0.75rem;
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b6b7a;
}

.cp-ruo-gate__gbtn {
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.cp-ruo-gate__gbtn > div {
  width: 100% !important;
}

.cp-ruo-gate__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.cp-ruo-gate__google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cp-ruo-gate__google:focus-visible {
  outline: 2px solid #5a8fb8;
  outline-offset: 2px;
}

.cp-ruo-gate__google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 4px;
}

.cp-ruo-gate__google-icon svg {
  display: block;
}

.cp-ruo-gate__google-label {
  flex: 1;
  text-align: center;
  padding-right: 28px;
}

.cp-ruo-gate__err {
  min-height: 0.875rem;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #ee8888;
}

.cp-ruo-gate__err:empty {
  display: none;
}

.cp-ruo-gate__links {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #7e8f9e;
}

.cp-ruo-gate__links a {
  color: #7cb4d8;
  font-weight: 600;
  text-decoration: none;
}

.cp-ruo-gate__links a:hover {
  text-decoration: underline;
}

.cp-ruo-gate__links-sep {
  margin: 0 0.35rem;
  color: #5b6b7a;
}

html.cp-ruo-pending body {
  overflow: hidden;
}
