/* ============================================================
   B9+ — PAYWALL (tema Ghost, v8)
   O Ghost serve só o Public Preview para posts pagos; este bloco
   (.art-paywall) é renderizado via {{#unless access}} no post.hbs e
   fecha o trecho público. Variação anon × free decidida no template
   por {{#if @member}}. Linguagem alinhada à landing B9+.
   ============================================================ */

/* ── PREVIEW: fade do trecho público quando bloqueado ─────── */
.art-preview { position: relative; }
.art-preview::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg) 92%);
  pointer-events: none;
}

/* ── PAYWALL NATIVO DO GHOST: desativado ──────────────────────
   O Ghost injeta automaticamente seu próprio CTA de assinatura
   (.gh-post-upgrade-cta) ao fim do Public Preview. Como usamos o
   card customizado .art-paywall, ocultamos o nativo para nunca
   haver dois paywalls sobrepostos no mesmo ponto da página. */
.gh-post-upgrade-cta,
.gh-post-upgrade-cta-content,
.gh-post-upgrade-cta-wrapper { display: none !important; }

/* ── BLOCO DE PAYWALL (escuro, editorial) ─────────────────── */
.art-paywall {
  position: relative; z-index: 1;
  background: var(--ink); color: #fff;
  border-radius: 18px;
  padding: clamp(30px, 4vw, 56px);
  margin: clamp(10px, 1.5vw, 20px) 0 clamp(34px, 4vw, 52px);
  box-shadow: 0 26px 64px rgba(22,20,15,.22);
  overflow: hidden;
}
.art-paywall::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 42px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  opacity: .9;
}

.pw-badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  background: var(--red); color: #fff; padding: 6px 12px; margin: 0 0 20px;
}
.pw-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.026em;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.02; color: #fff; margin: 0; text-wrap: balance;
}
[data-type="franklin"] .pw-title, [data-type="atf"] .pw-title { font-weight: 800; }
.pw-text {
  font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
  color: rgba(255,255,255,.74); margin: 14px 0 0; max-width: 56ch; text-wrap: pretty;
}

/* benefícios (2 colunas, marcador raio) */
.pw-perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 28px; }
.pw-perks li {
  position: relative; padding-left: 26px;
  font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.3; color: #fff;
}
.pw-perks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 13px; height: 10px;
  background: var(--yellow); clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

/* ações */
.pw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 3vw, 36px); }
.pw-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--yellow); color: var(--black); border: 1px solid var(--yellow); padding: 16px 26px;
  cursor: pointer; transition: background .16s, transform .16s, box-shadow .16s;
}
.pw-btn:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.34); }
.pw-btn span { transition: transform .16s; }
.pw-btn:hover span { transform: translateX(3px); }
.pw-link {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.32); padding-bottom: 3px;
  transition: color .16s, border-color .16s;
}
.pw-link:hover { color: #fff; border-color: var(--red); }
.pw-micro { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: rgba(255,255,255,.5); margin: 18px 0 0; }

/* selo B9+ no cabeçalho da matéria */
.art-head__plus {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--yellow); color: var(--black); padding: 5px 10px; margin-left: 10px;
}

@media (max-width: 560px) {
  .pw-perks { grid-template-columns: 1fr; }
}
