/* The article gate: the second part of the article blurred and faded under
   a card that asks for an email. Written by components/article-cta. */

.acta { position: relative; }
.acta [hidden] { display: none !important; }

/* Locked: a short, blurred, fading slice of what follows. */
.acta.is-locked .acta-gated {
  max-height: 420px;
  overflow: hidden;
  filter: blur(5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  user-select: none;
  pointer-events: none;
}
.acta:not(.is-locked) .acta-gate-card { display: none; }

.acta-gate-card {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 16px));
  padding: 28px 30px 24px;
  border-radius: 16px;
  background: #143A2E url('/assets/silk-card.jpg') center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  text-align: center;
}
.acta .acta-kicker { margin: 0 0 8px; font: 700 11.5px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.acta .acta-gate-card h2 { margin: 0 0 10px; font: 700 clamp(20px, 2.4vw, 25px)/1.25 Poppins, sans-serif; letter-spacing: -0.01em; color: #fff; }
.acta .acta-gate-card h2 strong { color: #fff; }
.acta .acta-text { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.acta .acta-note { margin: 12px 0 0; font: 500 13px/1.45 Inter, sans-serif; color: rgba(255, 255, 255, .72); }
.acta-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.acta-form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  background: #fff;
  font: 400 16px/1.2 Inter, sans-serif;
  color: #0f172a;
}
.acta-form input[type="email"]:focus { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 1px; }
.acta-form button {
  flex: none;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--sns-cta-bg, #1F4A2E);
  font: 600 15px/1 Inter, sans-serif;
  color: #fff;
  cursor: pointer;
}
.acta-form button:hover { filter: brightness(1.08); }
.acta-form button:disabled { opacity: .7; cursor: default; }
.acta .acta-msg--error { margin: 10px 0 0; font: 600 14.5px/1.5 Inter, sans-serif; color: #FFD9E5; }
.acta .acta-ok-card {
  margin: 8px 0 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #E3EEE2;
  font: 600 15px/1.5 Inter, sans-serif;
  color: #2F6A3E;
}
.acta-sr, .acta-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acta-hp { left: -9999px; }

@media (max-width: 640px) {
  .acta.is-locked .acta-gated { max-height: 520px; }
  .acta-gate-card { top: 16px; padding: 22px 18px 18px; }
  .acta-form { flex-direction: column; }
}
