/* Cenvia Blog · componentes usados dentro do texto dos guias. Classe com prefixo cv-, sem dependência de bloco do WordPress. */

/* Texto corrido */
.cv-prose > * + * { margin-top: 1.1em; }
.cv-prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 2.2em 0 .6em; }
.cv-prose h3 { font-size: 21px; margin: 1.8em 0 .4em; }
.cv-prose p, .cv-prose li { color: var(--fg); }
.cv-prose strong { color: var(--ink); }
.cv-prose ul, .cv-prose ol { padding-left: 1.3em; }
.cv-prose li + li { margin-top: .4em; }
.cv-prose figure { margin: 2em 0; }
.cv-prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.cv-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.cv-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--primary); font: 600 20px/1.5 var(--font-display); color: var(--ink); }
.cv-prose a[rel~="external"]::after, .cv-prose a[target="_blank"]::after { content: "↗"; font-size: .8em; margin-left: 2px; }
.cv-prose code { background: #EFEFEA; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.cv-prose pre { background: var(--ink); color: #F5F5F0; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.cv-prose pre code { background: none; padding: 0; }

/* Resposta rápida (o trecho que o Google e as IAs citam) */
.cv-answer { margin: 8px 0 0; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cv-answer p { margin: 0; font-size: 18px; color: var(--ink-2); }
.cv-answer .cv-answer__label { margin-bottom: 6px; font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Passo a passo numerado */
.cv-steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 16px; }
.cv-steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 68px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 !important; }
.cv-steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--ink); font: 800 16px/34px var(--font-display); text-align: center; }
.cv-steps > li > strong:first-child { display: block; font: 700 17px/1.4 var(--font-display); margin-bottom: 4px; }
.cv-steps .cv-path { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: #F1F1EC; font-size: 14px; color: var(--ink-2); }

/* Tabelas (rolam dentro do próprio bloco no celular) */
.cv-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 1.6em 0; }
.cv-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cv-table th, .cv-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cv-table thead th { background: #FAFAF7; font: 700 14px/1.3 var(--font); color: var(--ink); position: sticky; top: 0; }
.cv-table tr:last-child td { border-bottom: 0; }
.cv-table .is-cenvia { background: var(--primary-soft); }
.cv-table caption { caption-side: bottom; padding: 10px 14px; font-size: 13px; color: var(--muted); text-align: left; }
.cv-yes { color: var(--success); font-weight: 700; }
.cv-no { color: var(--danger); font-weight: 700; }
.cv-mid { color: #A86B00; font-weight: 700; }

/* Avisos */
.cv-callout { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; }
.cv-callout::before { font-size: 20px; line-height: 1.4; }
.cv-callout p { margin: 0; }
.cv-callout p + p { margin-top: .5em; }
.cv-callout--tip { background: var(--success-soft); border-color: #BFE3CC; }
.cv-callout--tip::before { content: "✓"; color: var(--success); font-weight: 800; }
.cv-callout--warn { background: var(--warning-soft); border-color: #F6D9A0; }
.cv-callout--warn::before { content: "!"; color: #A86B00; font-weight: 800; text-align: center; }
.cv-callout--danger { background: var(--danger-soft); border-color: #F3C3B8; }
.cv-callout--danger::before { content: "×"; color: var(--danger); font-weight: 800; text-align: center; }
.cv-callout--info { background: #EEF2F7; border-color: #D5DEEA; }
.cv-callout--info::before { content: "i"; color: #2B4C7E; font: 800 18px/1.5 Georgia, serif; text-align: center; }

/* Chamada suave no meio do texto */
.cv-soft { display: flex; gap: 20px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--ink); color: #E8E8E2; margin: 2em 0; }
.cv-soft p { margin: 0; color: #E8E8E2; }
.cv-soft strong { color: #fff; }
.cv-soft .cv-btn { flex-shrink: 0; }

/* Objeções e perguntas (abre e fecha) */
.cv-faq { display: grid; gap: 10px; }
.cv-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.cv-faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative; font: 700 17px/1.4 var(--font-display); color: var(--ink); }
.cv-faq summary::-webkit-details-marker { display: none; }
.cv-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--muted); }
.cv-faq details[open] summary::after { content: "–"; }
.cv-faq details > :not(summary) { margin: 0 0 16px; }

/* Conversa ilustrada (cena de WhatsApp em HTML, legível e indexável) */
.cv-chat { max-width: 420px; margin: 2em auto; background: #ECE5DD; border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.45; }
.cv-chat__bar { display: flex; align-items: center; gap: 10px; background: #075E54; color: #fff; margin: -14px -14px 12px; padding: 12px 14px; border-radius: 22px 22px 0 0; font-weight: 600; }
.cv-chat__bar small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.cv-chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.cv-msg { max-width: 82%; padding: 8px 10px 18px; border-radius: 10px; margin: 6px 0; position: relative; background: #fff; color: #111; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.cv-msg--out { margin-left: auto; background: #DCF8C6; }
.cv-msg--bot { margin-left: auto; background: #FFF6CC; }
.cv-msg time { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #6B6B6B; }
.cv-msg__tag { display: block; font-size: 11px; font-weight: 700; color: #8A6D00; margin-bottom: 2px; }
.cv-chat__note { text-align: center; font-size: 12px; color: #54656F; background: #E1F2FB; border-radius: 8px; padding: 4px 8px; margin: 10px auto; width: fit-content; }

/* Linha do tempo: "o mesmo dia, dos dois jeitos" */
.cv-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.cv-timeline__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cv-timeline__col--bad { border-top: 5px solid var(--danger); }
.cv-timeline__col--good { border-top: 5px solid var(--success); }
.cv-timeline h3 { margin: 0 0 12px !important; font-size: 17px; }
.cv-timeline ol { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.cv-timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; margin: 0 !important; font-size: 15px; }
.cv-timeline li b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* Números de destaque */
.cv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 2em 0; }
.cv-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cv-stat b { display: block; font: 800 30px/1.1 var(--font-display); color: var(--ink); }
.cv-stat span { font-size: 14px; color: var(--muted); }

/* Prós e contras / lado a lado */
.cv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.cv-duo > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cv-duo h3 { margin-top: 0 !important; font-size: 17px; }
.cv-checks { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px; }
.cv-checks li { position: relative; padding-left: 28px; margin: 0 !important; }
.cv-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font: 800 12px/20px var(--font); text-align: center; }
.cv-crosses li::before { content: "×"; background: var(--danger-soft); color: var(--danger); font-size: 14px; }

/* Simulador de perda */
.cv-calc { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; margin: 2em 0; }
.cv-calc h3 { margin-top: 0 !important; }
.cv-calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cv-calc label { display: grid; gap: 6px; font: 600 14px/1.3 var(--font); color: var(--ink-2); }
.cv-calc input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: 600 16px var(--font); color: var(--ink); }
.cv-calc__out { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--primary-soft); font-size: 17px; color: var(--ink); }
.cv-calc__out b { font: 800 26px/1.2 var(--font-display); }

/* Barra lateral */
.cv-sidecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); }
.cv-sidecard__eyebrow { margin: 0 0 6px; font: 700 12px/1.3 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cv-sidecard__title { margin: 0 0 14px; font: 800 20px/1.25 var(--font-display); color: var(--ink); }
.cv-sidecard .cv-checks { font-size: 15px; margin-bottom: 14px; }
.cv-sidecard__price { margin: 0 0 12px; font-size: 15px; }
.cv-sidecard__price strong { font: 800 22px var(--font-display); color: var(--ink); }
.cv-sidecard__fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.cv-link-wa { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }

/* Vídeo */
.cv-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.cv-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Chamada final, autor e cartões */
.cv-final { margin: 64px calc(var(--gutter) * -1) 0; padding: 56px var(--gutter); background: var(--primary); }
.cv-final__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cv-final h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 38px); }
.cv-final p { color: var(--ink-2); font-size: 18px; margin: 0; }
.cv-final__facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.cv-final__facts li { background: rgb(255 255 255 / .55); padding: 6px 12px; border-radius: 99px; font: 600 14px var(--font); color: var(--ink); }
.cv-final__actions { display: grid; gap: 10px; justify-items: start; }
.cv-final .cv-btn { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.cv-final .cv-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.cv-final__fine { font-size: 13px !important; }
.cv-author { display: flex; gap: 18px; align-items: flex-start; max-width: var(--measure); margin: 48px auto 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cv-author img { border-radius: 50%; }
.cv-author p { margin: 0; font-size: 15px; }
.cv-author__name { font: 700 17px var(--font-display) !important; margin-bottom: 4px !important; }
.cv-related { margin-top: 56px; }
.cv-related h2, .cv-home-section h2 { font-size: 26px; margin: 0 0 18px; }
.cv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cv-cards--children { margin-top: 2em; }
.cv-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.cv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cv-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cv-card__body { display: grid; gap: 6px; padding: 16px; }
.cv-card__kicker { font: 700 12px/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cv-card__title { font: 700 18px/1.3 var(--font-display); color: var(--ink); }
.cv-card__text { font-size: 15px; line-height: 1.5; color: var(--fg); }

/* Início do blog */
.cv-home-hero { padding: 56px 0 24px; max-width: 880px; }
.cv-home-hero--small { padding-bottom: 8px; }
.cv-search { display: flex; gap: 8px; margin-top: 20px; max-width: 620px; }
.cv-search input { flex: 1; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font: 16px var(--font); background: var(--card); }
.cv-home-section { margin-top: 48px; }
.cv-home-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

@media (max-width: 900px) {
	.cv-timeline, .cv-duo, .cv-final__in { grid-template-columns: 1fr; }
	.cv-soft { flex-direction: column; align-items: flex-start; }
	.cv-steps > li { padding-left: 60px; }
	.cv-search { flex-direction: column; }
}
