/* Password gate — modal chrome only.
   Inner content reuses the site's existing classes (.h1, .utility-page-paragraph,
   .field-label-2, .text-field-2, .primary-button, .w-form-fail). */

.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #0e316366;
}

/* Full-page variant: the page behind is hidden, so use the site background
   instead of a scrim over invisible content. */
.pw-gate.pw-gate--page {
  background-color: var(--bg-light-blue, #f7fcff);
}

.pw-gate-card {
  position: relative;
  width: 100%;
  max-width: 570px;
  box-sizing: border-box;
  padding: 48px 40px 40px;
  text-align: center;
  background-color: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 1px 3px 9px #94b0d83b, 4px 5px 20px 7px #1739691a;
}

.pw-gate-title {
  font-size: 32px;
}

.pw-gate-form {
  margin: 0;
}

/* .field-label-2 is left-aligned in the page layout; keep that inside the card. */
.pw-gate-form .field-label-2 {
  display: block;
}

.pw-gate-form .primary-button {
  width: 100%;
}

.pw-gate-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: Karla, sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--dark-grey, #626262);
  cursor: pointer;
  background: none;
  border: 0;
}

.pw-gate-close:hover {
  color: var(--black, #222);
}

/* Locked page: hide everything except the gate, with no flash of content
   (the html.pw-locked class is set by an inline script in <head>). */
html.pw-locked body {
  visibility: hidden;
}

html.pw-locked body .pw-gate {
  visibility: visible;
}

@media screen and (max-width: 479px) {
  .pw-gate-card {
    padding: 40px 24px 32px;
  }

  .pw-gate-title {
    font-size: 24px;
  }
}
