/* Ridgestone Research Use Gate */
html.ridgestone-gate-active,
html.ridgestone-gate-active body {
  overflow: hidden !important;
}

#ridgestone-research-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
  font-family: inherit;
}

.ridgestone-gate-card {
  width: min(100%, 560px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 34px 32px 30px;
  background: #fff;
  color: #111;
  border-radius: 4px;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.ridgestone-gate-mark {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .65;
}

.ridgestone-gate-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.08;
}

.ridgestone-gate-intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
}

.ridgestone-gate-checks {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.ridgestone-gate-checks label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.ridgestone-gate-checks label:has(input:checked) {
  border-color: #222;
  background: #f7f7f7;
}

.ridgestone-gate-checks input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #111;
}

#ridgestone-gate-enter {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 3px;
  padding: 13px 18px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#ridgestone-gate-enter:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ridgestone-gate-warning {
  min-height: 20px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  #ridgestone-research-gate {
    padding: 12px;
    align-items: flex-end;
  }

  .ridgestone-gate-card {
    width: 100%;
    max-height: 92vh;
    padding: 26px 20px 22px;
    border-radius: 4px 4px 0 0;
  }

  .ridgestone-gate-checks label {
    padding: 12px;
  }
}





/* Explicit text colors are required because the site theme styles labels globally. */
#ridgestone-research-gate .ridgestone-gate-card {
  background: #fff;
  color: #11130f;
}
#ridgestone-research-gate .ridgestone-gate-mark,
#ridgestone-research-gate .ridgestone-gate-card h2,
#ridgestone-research-gate .ridgestone-gate-intro,
#ridgestone-research-gate .ridgestone-gate-checks label,
#ridgestone-research-gate .ridgestone-gate-checks label span,
#ridgestone-research-gate .ridgestone-gate-checks label strong,
#ridgestone-research-gate .ridgestone-gate-warning {
  color: #11130f !important;
}
#ridgestone-research-gate .ridgestone-gate-checks label {
  background: #fff;
  border-color: #8b9188;
}
#ridgestone-research-gate .ridgestone-gate-checks label:has(input:checked) {
  background: #f1f3ed;
  border-color: #43552d;
}
#ridgestone-research-gate .ridgestone-gate-checks input {
  accent-color: #43552d;
}
#ridgestone-research-gate #ridgestone-gate-enter {
  background: #43552d;
  color: #fff !important;
}
#ridgestone-research-gate #ridgestone-gate-enter:disabled {
  background: #d8ddd2;
  color: #30372b !important;
  opacity: 1;
  border: 1px solid #a5ad9a;
}
#ridgestone-research-gate #ridgestone-gate-enter:focus-visible,
#ridgestone-research-gate .ridgestone-gate-checks input:focus-visible {
  outline: 3px solid #43552d !important;
  outline-offset: 3px;
}
