/* Card 3:4 — 1080 × 1440 px. Valores do Manual do sistema Odisse (seções 03–05). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: block;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.card {
  position: relative;
  width: 1080px;
  height: 1440px;
  overflow: hidden;
  background: #FAFAF7;
  color: #3F4B57;
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: 'ss01' 0, 'cv11' 1;
}
.card * { box-sizing: border-box; }

.card .bloco,
.card .slot,
.card .cab,
.card .selo,
.card .fluxo,
.card .legenda { position: absolute; }

.card .bloco { pointer-events: none; }

/* Imagens */
.card .slot { overflow: hidden; }
.card .slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.card .slot.contain img { object-fit: contain; }

/* Cabeçalho — y 40, 19 px SemiBold, caixa alta, +7% */
.card .cab {
  top: 40px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
}

/* Selo — rodapé central, faixa y 1340–1408 */
.card .selo { left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
.card .mark { display: block; }

/* Blocos de texto em fluxo */
.card .fluxo { display: flex; flex-direction: column; z-index: 2; pointer-events: none; }
.card .fluxo > * { pointer-events: auto; }
.card .fluxo.fim { justify-content: flex-end; }
.card .fluxo.meio { justify-content: center; }

/* Tipografia — uma família, contraste extremo */
.card .t-capa {
  font-size: 150px; font-weight: 700; line-height: .94; letter-spacing: -.04em;
}
.card .t-titulo {
  font-size: 112px; font-weight: 700; line-height: .96; letter-spacing: -.035em;
}
.card .t-titulo-m { font-size: 80px; line-height: .98; }
.card .t-numero {
  font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.card .t-citacao {
  font-size: 70px; font-weight: 480; line-height: 1.1; letter-spacing: -.025em;
}
.card .t-citacao b, .card .t-texto b, .card .t-legenda b { font-weight: 700; }
.card .t-texto {
  font-size: 29px; font-weight: 400; line-height: 1.34; letter-spacing: -.01em;
}
.card .t-legenda {
  font-size: 24px; font-weight: 400; line-height: 1.3;
}
.card .t-rotulo {
  font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
}
.card .t-capa, .card .t-titulo, .card .t-texto, .card .t-legenda, .card .t-citacao, .card .t-rotulo {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.card .cab .cab-txt { display: inline; }
.card .ficha-linha.empilhada { grid-template-columns: 1fr; gap: 8px; padding: 16px 0 22px; }
.card .ficha.distribuir .ficha-linha { padding: 24px 0 46px; }
.card .ficha-r { padding-right: 20px; }

/* Assinatura de capa */
.card .assinatura {
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
}

/* Ficha — rótulo na coluna 1, valor na coluna 5 */
.card .ficha { border-top: 1.5px solid; }
.card .ficha-linha {
  display: grid;
  grid-template-columns: 330.67px 1fr;
  align-items: baseline;
  padding: 18px 0 16px;
  border-bottom: 1.5px solid;
}
.card .ficha-v { font-size: 27px; }

/* Legenda de imagem — pé, à esquerda */
.card .legenda {
  left: 52px; bottom: 34px; width: 380px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}

.card .contatos { display: flex; flex-direction: column; gap: 4px; }
.card .lockup { display: flex; align-items: center; gap: 22px; }

/* ---- Somente no editor ------------------------------------------------ */
.card.editar [contenteditable] { outline: none; cursor: text; border-radius: 2px; }
.card.editar [contenteditable]:empty::before {
  content: attr(data-ph);
  opacity: .42;
}
.card.editar [contenteditable]:hover { box-shadow: 0 0 0 2px rgba(127, 140, 152, .35); }
.card.editar [contenteditable]:focus { box-shadow: 0 0 0 3px rgba(60, 130, 220, .75); }
.card.editar [data-global] { cursor: pointer; }
.card.editar [data-global]:hover { box-shadow: 0 0 0 2px rgba(187, 130, 72, .55); }
.card.editar .slot { cursor: grab; }
.card.editar .slot:active { cursor: grabbing; }
.card .slot[data-vazio] {
  cursor: pointer;
  background-color: #E6E8EB;
  background-image: repeating-linear-gradient(-45deg, rgba(63,75,87,.07) 0 2px, transparent 2px 22px);
  display: flex; align-items: center; justify-content: center;
}
.card .slot-vazio {
  font: 600 26px/1 'Inter', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3F4B57;
  background: rgba(250,250,247,.9);
  padding: 18px 26px;
  border-radius: 999px;
}
.card .slot-vazio b { font-size: 34px; margin-right: 6px; }
.card .slot.alvo { box-shadow: inset 0 0 0 6px rgba(60,130,220,.9); }
