/* ==========================================================================
   MATERIAS EM FAIXAS (06/10/2026)

   O molde e a 7094 "Como criar um agente de IA", montada a mao no BeBuilder:
   uma faixa por secao, alternando branco e bege de ponta a ponta da tela,
   titulo numerado, texto numa coluna de leitura a esquerda e tabela, caixa e
   grade ocupando a largura da grade (1058px em 1440). Os componentes (sumario,
   resumo, nota, citacao, chamada, FAQ) seguem o design system do Claude
   Design ("Post do Blog", desenho 1a).

   Quem monta as faixas e o novamira-sandbox/duplod-materia.php, so na hora
   de exibir (o post_content nao muda):
     .dd-mat-intro          o que vem antes do primeiro H2
       .dd-mat-intro__main  o texto
       .dd-mat-guia         "Neste guia" (a partir de 3 secoes)
     section.dd-mat-band    um H2 e o que vem ate o proximo
     .dd-mat-num            o numero do H2

   Vale so com body.dd-mat-faixas (materia de texto corrido; as montadas em
   colunas do BeTheme ficam como estao). Carrega depois do duplod-materia.css
   e reaproveita a tipografia dele; aqui vem so o que muda.

   Desliga: update_option('dd_materia_faixas','0'). Compara: ?dd_faixas=0.
   ========================================================================== */

.dd-mat-faixas {
	--fx-band: #F9F6F6;
	--fx-text: 726px;
	--fx-pad: clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem);
	--fx-wine: #BF404A;
	--fx-rule: #E2DFDF;
}


/* --- 1. Cabecalho e capa na borda da grade, como na 7094 ----------------- */

/* O texto fica na margem da coluna do BeTheme, que e 1% do conteiner (11px
   em 1440, 3px no celular). Com 11px fixo, titulo e capa saiam de 2 a 4px
   fora da linha das secoes abaixo de 1280px. */
.dd-mat-faixas .dd-page-hero--post .dd-page-hero-inner {
	padding-left: 1%;
	padding-right: 1%;
	box-sizing: border-box;
}

.dd-mat-faixas .section-post-header .single-photo-wrapper .mcb-column-inner {
	margin-left: 1%;
	margin-right: 1%;
}

@media (min-width: 768px) {
	.dd-mat-faixas .dd-page-hero--post .dd-page-hero-inner {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.dd-mat-faixas .dd-page-hero--post .dd-hero-title {
		max-width: 900px;
	}

	.dd-mat-faixas .dd-page-hero--post .dd-hero-lead {
		max-width: var(--fx-text);
	}

	.dd-mat-faixas .section-post-header .single-photo-wrapper .mcb-column-inner {
		max-width: calc(66.666% - 14px);
		margin-left: 1%;
		margin-right: 0;
	}

	.dd-mat-faixas .section-post-header .single-photo-wrapper .image_frame {
		margin: 0;
	}

	.dd-mat-faixas .section-post-about .author-box .mcb-column-inner {
		max-width: var(--fx-text);
		margin-left: 1%;
		margin-right: 0;
	}
}


/* --- 2. Introducao e faixas ---------------------------------------------- */

/* A coluna unica de 720px do duplod-materia.css vale para filho direto do
   .the_content_wrapper; aqui os filhos diretos sao a introducao e as faixas,
   que ocupam a grade inteira. */
html .dd-mat-faixas .the_content_wrapper > :is(.dd-mat-intro, .dd-mat-band) {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

html .dd-mat-faixas .the_content_wrapper > .dd-mat-intro {
	padding-bottom: var(--fx-pad);
}

html .dd-mat-faixas .the_content_wrapper > .dd-mat-band {
	position: relative;
	display: flow-root;
	margin-top: 0;
	margin-bottom: 0;
	padding: var(--fx-pad) 0;
}

/* Fundo de ponta a ponta sem sair da grade: a sombra pinta a tela inteira
   e o clip-path corta em cima e embaixo. O html ja tem overflow-x:hidden. */
html .dd-mat-faixas .the_content_wrapper > .dd-mat-band:nth-of-type(even) {
	background: var(--fx-band);
	box-shadow: 0 0 0 100vmax var(--fx-band);
	clip-path: inset(0 -100vmax);
}

/* Texto na coluna de leitura, encostado a esquerda. Tabela, figura, grade,
   chamada, FAQ e caixa em HTML ficam com a largura da grade. */
html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > :is(p, ul, ol, dl, h3, h4, h5, h6, blockquote, .alert, .idea_box, hr, iframe, .dd-mat-hlonga) {
	max-width: var(--fx-text);
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > p {
	margin-top: 0;
	margin-bottom: 1.25em;
}

html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > :is(ul, ol) {
	padding-left: 1.4em;
}

html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > :last-child {
	margin-bottom: 0;
}

html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > :is(.alert, .idea_box, .call_to_action, .accordion, .faq) {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* Caixas em HTML das materias de 2026: margin:28px 0 no style="". */
html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > div[style*="margin"] {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Texto colado do Word nas materias antigas: o duplod-materia.css so pega
   filho direto do .the_content_wrapper. */
html .dd-mat-legado.dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > p[style] {
	font-size: 1.125rem !important;
	line-height: 1.75 !important;
	text-align: left !important;
}

@media (min-width: 1024px) {
	html .dd-mat-faixas .the_content_wrapper > .dd-mat-intro.has-guia {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		column-gap: clamp(24px, 3vw, 40px);
		align-items: start;
	}

	html .dd-mat-faixas .the_content_wrapper > .dd-mat-intro.is-so-guia {
		display: block;
	}

	html .dd-mat-faixas .dd-mat-intro.is-so-guia .dd-mat-guia {
		max-width: 420px;
	}
}


/* --- 3. Titulo da secao -------------------------------------------------- */

/* A secao pode ser H2, H3 ou H4 (materia antiga): o titulo que abre a
   faixa tem sempre o mesmo corpo. */
html .dd-mat-faixas .the_content_wrapper .dd-mat-band > :is(h2, h3, h4):first-child {
	max-width: 900px;
	margin: 0 0 .6em;
	font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.375rem);
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: -.015em;
	color: var(--dd-ink);
	scroll-margin-top: 110px;
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-num {
	color: var(--dd-teal-600);
	font-variant-numeric: tabular-nums;
	margin-right: .1em;
}


/* --- 4. Neste guia ------------------------------------------------------- */

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia {
	margin-top: 0;
	padding: 24px;
	border-radius: var(--dd-radius-media);
	background: var(--fx-band);
	box-shadow: inset 0 0 0 1px var(--dd-line);
	font-family: "Poppins", system-ui, sans-serif;
}

@media (max-width: 1023px) {
	html .dd-mat-faixas .the_content_wrapper .dd-mat-intro__main + .dd-mat-guia {
		margin-top: 2rem;
	}
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia__h {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dd-ink-2);
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia li {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia li a:not(.button):not([class*="mfn-"]) {
	display: flex;
	gap: 10px;
	padding: 7px 0 7px 12px;
	box-shadow: inset 2px 0 0 var(--dd-line);
	color: var(--dd-ink-2);
	text-decoration: none;
	overflow-wrap: normal;
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia li a:not(.button):not([class*="mfn-"]):hover {
	box-shadow: inset 2px 0 0 var(--dd-teal-600);
	color: var(--dd-ink);
}

html .dd-mat-faixas .the_content_wrapper .dd-mat-guia__n {
	flex: none;
	min-width: 1.4em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--dd-teal-700);
}


/* --- 5. Componentes ------------------------------------------------------ */

/* Tabela no molde da 7094: cabecalho bege com fio vinho, linhas so
   horizontais, fundo branco para nao sumir na faixa bege. */
/* O tema deixa a tabela em display:block: as colunas encolhiam e sobrava
   uma faixa branca vazia a direita. A rolagem no celular e do .dd-mat-table. */
html .dd-mat-faixas .the_content_wrapper table {
	display: table;
	width: 100%;
	background: #FFFFFF;
	border-radius: 5px;
	font-size: .9375rem;
}

html .dd-mat-faixas .the_content_wrapper table :is(th, td) {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--fx-rule);
	font-size: .9375rem;
	line-height: 1.5;
}

html .dd-mat-faixas .the_content_wrapper table th,
html .dd-mat-faixas .the_content_wrapper table thead td {
	background: var(--fx-band);
	border-bottom: 2px solid var(--fx-wine);
	font-size: .875rem;
	font-weight: 600;
	color: var(--dd-ink);
}

/* Resumo (alert do BeTheme): cartao claro com anel, sem o icone. A primeira
   linha em negrito vira rotulo. */
html .dd-mat-faixas .the_content_wrapper .alert {
	display: block;
	padding: 24px;
	border: 0;
	border-radius: var(--dd-radius-media);
	background: var(--fx-band);
	box-shadow: inset 0 0 0 1px var(--dd-teal-400);
	color: var(--dd-ink);
}

html .dd-mat-faixas .dd-mat-band:nth-of-type(even) .alert {
	background: #FFFFFF;
}

html .dd-mat-faixas .the_content_wrapper .alert .alert_icon {
	display: none;
}

html .dd-mat-faixas .the_content_wrapper .alert .alert_wrapper {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--dd-ink);
}

html .dd-mat-faixas .the_content_wrapper .alert .alert_wrapper > strong:first-child {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dd-teal-700);
}

html .dd-mat-faixas .the_content_wrapper .alert .alert_wrapper > strong:first-child + br {
	display: none;
}

/* Nota (idea_box): fio teal a esquerda, sem icone nem caixa. */
html .dd-mat-faixas .the_content_wrapper .idea_box {
	display: block;
	padding: 4px 0 4px 16px;
	border: 0;
	border-left: 2px solid var(--dd-teal-600);
	border-radius: 0;
	background: none;
}

html .dd-mat-faixas .the_content_wrapper .idea_box .icon {
	display: none;
}

html .dd-mat-faixas .the_content_wrapper .idea_box .desc {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.65;
	font-style: normal;
	color: var(--dd-ink-2);
}

/* Citacao: fio vinho e corpo leve, como o Blockquote do design system. */
html .dd-mat-faixas .the_content_wrapper blockquote {
	padding: 8px 0 8px 24px;
	border-left: 4px solid var(--fx-wine);
}

html .dd-mat-faixas .the_content_wrapper blockquote p {
	font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem);
	line-height: 1.42;
	font-weight: 300;
}

/* Capitular: letra teal, sem caixa. */
html .dd-mat-faixas .the_content_wrapper .dropcap {
	float: left;
	width: auto;
	height: auto;
	margin: .06em .12em 0 0;
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: 3.4em;
	line-height: .86;
	font-weight: 700;
	color: var(--dd-teal-600);
}

/* Chamada: cartao escuro, titulo e texto a esquerda, botao a direita. O
   botao (dd-btn com href de WhatsApp) pega a cor do duplod-whatsapp.css. */
html .dd-mat-faixas .the_content_wrapper .call_to_action {
	padding: 28px 32px;
	border: 0;
	border-radius: var(--dd-radius-media);
	background: var(--dd-ink);
	box-shadow: none;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .call_to_action_wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	row-gap: 8px;
	align-items: center;
	padding: 0;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .call_to_action_wrapper::after {
	content: none;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action :is(.call_left, .call_right) {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .call_left {
	grid-column: 1;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .call_center {
	display: none;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .call_right {
	display: contents;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 600;
	color: #FFFFFF;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .desc {
	grid-column: 1;
	margin: 0;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--dd-on-dark-2);
}

html .dd-mat-faixas .the_content_wrapper .call_to_action .desc a:not(.dd-btn) {
	color: #FFFFFF;
}

html .dd-mat-faixas .the_content_wrapper .call_to_action a.dd-mat-cta-btn {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}

/* FAQ: itens separados por fio, pergunta em negrito, sinal a direita. */
/* FAQ: resposta em linha de 1058px ficava longa demais para ler. */
html .dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > .accordion {
	max-width: 860px;
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc > br {
	display: none;
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question {
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--fx-rule);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question:first-of-type {
	border-top: 1px solid var(--fx-rule);
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question > .title {
	position: relative;
	padding: 18px 44px 18px 0;
	border: 0;
	background: none;
	font-size: 1.0625rem;
	line-height: 1.45;
	font-weight: 600;
	color: var(--dd-ink);
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question.active > .title {
	color: var(--dd-teal-700);
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question > .title > i {
	left: auto;
	right: 4px;
	top: 50%;
	width: auto;
	margin: 0;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: var(--dd-teal-600);
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question > .title::after {
	content: none;
}

html .dd-mat-faixas .the_content_wrapper .mfn-acc .question .answer {
	padding: 0 44px 20px 0;
	border: 0;
	background: none;
	color: var(--dd-ink-2);
}


/* --- 6. Celular ---------------------------------------------------------- */

@media (max-width: 767px) {
	.dd-mat-faixas {
		--fx-pad: 2.5rem;
	}

	html .dd-mat-legado.dd-mat-faixas :is(.dd-mat-band, .dd-mat-intro__main) > p[style] {
		font-size: 1.0625rem !important;
		line-height: 1.7 !important;
	}

	html .dd-mat-faixas .the_content_wrapper .call_to_action {
		padding: 24px 20px;
	}

	html .dd-mat-faixas .the_content_wrapper .call_to_action .call_to_action_wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	html .dd-mat-faixas .the_content_wrapper .call_to_action a.dd-mat-cta-btn {
		grid-column: 1;
		grid-row: auto;
		justify-content: center;
		margin-top: 8px;
	}

	html .dd-mat-faixas .the_content_wrapper .alert {
		padding: 20px;
	}
}
