/* ============================================================
   Nós pela Educação — páginas do Entre Nós (textos)
   Depende de base.css.
   ============================================================ */

.article {
  padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 5rem);
}
.article .wrap {
  max-width: var(--maxw-texto);
}

.article h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0.7rem 0 0.9rem;
}
.lead-sub {
  font-size: clamp(1.08rem, 2.8vw, 1.2rem);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 380;
  margin: 0 0 1.4rem;
}
.byline {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.article .cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 2.2rem;
  box-shadow: 0 18px 42px rgb(31 54 60 / 0.14);
  background: color-mix(in srgb, var(--petrol) 90%, var(--slate));
}

.article .intro {
  font-size: clamp(1.08rem, 2.8vw, 1.18rem);
  color: var(--petrol);
  font-weight: 500;
  margin: 0 0 1.6rem;
}
.article p {
  margin: 0 0 1.3rem;
}
.article blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--sage);
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 3.6vw, 1.5rem);
  line-height: 1.3;
  font-weight: 380;
  color: var(--petrol);
}
.article a:not(.btn):not(.gate-btn) {
  color: var(--sage-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Versos — usado no texto da Débora */
.article .intro.verse,
.poem p {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.14rem, 3.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--petrol);
  margin: 0 0 1.5rem;
}
.article .intro.verse {
  font-weight: 460;
}

.signoff {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.signoff b {
  color: var(--petrol);
}

.more {
  margin-top: 2rem;
}
.more a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  /* O flex descarta o espaço entre a seta e o texto — o gap devolve */
  gap: 0.4em;
  min-height: var(--touch);
}

/* ---------- Trecho bloqueado + captura de contato ---------- */
.gated.is-locked {
  max-height: 250px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 100%);
}

.gate {
  margin: 0.4rem 0 2rem;
}
.gate-teaser,
.gate-form {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 1.7rem) clamp(1.1rem, 4vw, 1.6rem);
  box-shadow: 0 12px 30px rgb(31 54 60 / 0.08);
}
.gate-note {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.14rem);
  line-height: 1.35;
  color: var(--petrol);
}
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: var(--touch);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  background: var(--petrol);
  color: var(--paper);
  padding: 0.7em 1.35em;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-btn:hover {
  background: var(--petrol-deep);
}
.gate-btn.ghost {
  background: transparent;
  color: var(--sage-ink);
  border-color: var(--sage);
}
.gate-btn.ghost:hover {
  background: color-mix(in srgb, var(--sage) 16%, transparent);
}
.gate-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.gate-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.gate-fields label {
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gate-fields input {
  font-family: var(--font-body);
  /* 16px evita o zoom automático do Safari no iOS ao focar o campo */
  font-size: 1rem;
  padding: 0.72em 0.8em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--petrol);
  min-width: 0;
}
.gate-fields input:focus {
  outline: none;
  border-color: var(--sage-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 30%, transparent);
}
.gate-privacy {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.gate-erro {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #a8503a;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
}

@media print {
  .gate,
  .post-actions,
  .more,
  .back {
    display: none !important;
  }
  /* Ao imprimir/salvar em PDF, o texto completo aparece */
  .gated.is-locked {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .article .cover {
    box-shadow: none;
    max-height: 8cm;
  }
  .article blockquote {
    break-inside: avoid;
  }
}
