/* ============================================================
   EDITORIAL — COMPONENTES ATÔMICOS
   Classes .ed-* — peças reusáveis da família editorial Fraunces
   ============================================================ */

/* ---- 1. CARD EDITORIAL BASE ---- */
.ed-card {
  background: var(--c-cream);
  color: var(--c-black);
  border-radius: 44px;
  padding: 96px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.5),
    0 0 0 1px rgba(28,28,28,0.05),
    inset 0 1px 0 rgba(255,255,255,0.6);
  /* Dimensões canônicas do slide Instagram carrossel */
  width: 920px;
  height: 1300px;
  font-family: var(--f-editorial);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Frame externo (para preview dentro do guia) — fundo preto simulando o fundo do slide */
.ed-frame {
  background: var(--bg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Texto preenche vertical e centraliza o bloco de parágrafos */
.ed-card .ed-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- 2. TEXTO CAPA ---- */
.ed-capa {
  font-family: var(--f-editorial);
  font-weight: 400;
  color: var(--c-black);
  font-size: 88px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.ed-capa p + p { margin-top: 36px; }

/* ---- 3. TEXTO BODY ---- */
.ed-body {
  font-family: var(--f-editorial);
  font-weight: 400;
  color: var(--c-black);
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 80;
}
.ed-body p + p { margin-top: 28px; }
.ed-body strong { font-weight: 700; }
.ed-body--sm { font-size: 40px; }
.ed-body--md { font-size: 42px; }

/* ---- 4. HIGHLIGHT PILL ---- */
.ed-highlight {
  display: inline-block;
  background: var(--c-yellowEm);
  padding: 2px 18px 8px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--c-black);
}

/* ---- 5. BIG LINE (ênfase entre parágrafos) ---- */
.ed-bigline {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0;
  color: var(--c-black);
}

/* ---- 6. PAYOFF ---- */
.ed-payoff {
  font-family: var(--f-editorial);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--c-black);
  font-variation-settings: "opsz" 120;
}
.ed-payoff p + p { margin-top: 36px; }
.ed-payoff strong { font-weight: 700; }

/* ---- 7. SIGNATURE IBE.IA ---- */
.ed-signature {
  padding-top: 36px;
  border-top: 1px solid rgba(28,28,28,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ed-signature__mark {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ed-signature__symbol {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.ed-signature__symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ed-signature__wordmark {
  font-family: var(--f-editorial);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--c-black);
  font-variation-settings: "opsz" 144;
}
.ed-signature__wordmark .ia {
  color: var(--c-purple);
}
.ed-signature__institute {
  font-family: var(--f-editorial);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-black);
  line-height: 1.3;
  text-align: right;
  max-width: 360px;
}

/* ============================================================
   Scaled preview: shrink 920x1300 card to fit inside guide
   .ed-frame wraps the card. For guide use, we scale inside frame.
   ============================================================ */
.ed-preview-scale {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ed-preview-scale .ed-card {
  transform: scale(0.42);
  transform-origin: center center;
  margin: -377px 0;  /* 1300 * (1 - 0.42) / 2 = 377; absorve altura vazia pós-scale */
}
