/* ===== PDF download gate modal ===== */
html.gate-locked, html.gate-locked body { overflow: hidden; }

.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gate-modal.is-open { display: flex; }

.gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 71, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gate-modal__panel {
  position: relative;
  background: var(--cream, #FBF8F0);
  border-radius: 14px;
  width: min(520px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 30px 80px rgba(16, 33, 71, 0.35);
  border-top: 4px solid var(--gold, #B88A2A);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--navy, #102147);
}

.gate-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy, #102147);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}
.gate-modal__close:hover { background: rgba(16, 33, 71, 0.08); }

.gate-modal__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #B88A2A);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.gate-modal__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--navy, #102147);
}
.gate-modal__lede {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3a3d4a;
  margin: 0 0 1.1rem;
}

.gate-modal__form { display: flex; flex-direction: column; gap: 0.85rem; }
.gate-field { display: flex; flex-direction: column; gap: 0.3rem; }
.gate-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2a2f3d;
}
.gate-field__input {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d6d2c4;
  border-radius: 8px;
  background: #fff;
  color: var(--navy, #102147);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gate-field__input:focus {
  outline: none;
  border-color: var(--gold, #B88A2A);
  box-shadow: 0 0 0 3px rgba(184, 138, 42, 0.22);
}

.gate-consent {
  display: flex;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #3a3d4a;
  line-height: 1.4;
  align-items: flex-start;
  margin: 0.2rem 0 0.1rem;
}
.gate-consent input { margin-top: 0.2rem; }

.gate-modal__err {
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: #8a1f3b;
  font-weight: 600;
}

.gate-modal__submit {
  margin-top: 0.2rem;
  width: 100%;
  justify-content: center;
}
.gate-modal__submit[disabled] { opacity: 0.7; cursor: progress; }

.gate-modal__fine {
  font-size: 0.75rem;
  color: #6a6d7a;
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .gate-modal__panel { padding: 1.5rem 1.1rem 1.25rem; border-radius: 12px; }
  .gate-modal__title { font-size: 1.25rem; }
}
