/* Observatório do Comércio — layout das páginas de Pesquisas econômicas (TRF-134517).
   As páginas são do Elementor; este arquivo só dá o desenho do Figma às classes obs-*.
   Carregado no <head> das páginas /pesquisas-economicas/ e filhas. */

/* O topo passa por baixo do cabeçalho global (98px, transparente), como no Figma. */
.obs-pagina [data-elementor-type="header"] { position: relative; z-index: 10; }
@media (min-width: 1025px) { .obs-pagina #menu-header { border-bottom-color: rgba(0, 74, 141, .24) !important; } }
.obs-pagina .site-content, .obs-pagina #content { overflow-x: clip; }

/* Zera o espaçamento padrão do Elementor dentro das seções obs-* */
.obs-sec .elementor-widget:not(:last-child) { margin-bottom: 0; }
.obs-sec .elementor-widget-wrap { align-content: flex-start; }
.obs-sec p:last-child { margin-bottom: 0; }
.obs-sec .elementor-heading-title, .obs-sec .elementor-widget-text-editor p { margin: 0; }
.obs-trimw .elementor-heading-title, .obs-trimw.elementor-widget-text-editor p, .obs-trimw .elementor-button-text { text-box: trim-both cap alphabetic; }

/* ---------- Topo ---------- */
.obs-hero { margin-top: -98px; overflow: hidden; }
.obs-hero::before { content: ""; position: absolute; left: -435px; top: -36px; width: 783px; height: 329px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 783 329'><path fill='%231d5eff' fill-opacity='.57' d='M0 148.817V0c255.846 78.623 716.891 231.309 763.317 258.669 25.381 14.957 53.059 100.317-103.705 59.278C579.78 297.048 188.719 221.223 0 148.817Z'/></svg>") no-repeat 0 0 / 100% 100%; filter: blur(88.4px); pointer-events: none; z-index: 0; }
.obs-hero > .elementor-container { position: relative; z-index: 1; }
.obs-hero-esq > .elementor-widget-wrap { display: flex !important; flex-direction: column; flex-wrap: nowrap !important; min-height: 800px; padding: 154px 0 0 max(112px, calc(50vw - 608px)) !important; }
.obs-hero-esq .obs-hero-sub, .obs-hero-esq .obs-hero-fim { margin-top: 48px !important; }
.obs-hero-esq .obs-hero-tit { margin-top: auto !important; }
.obs-hero-esq .obs-hero-fim { margin-bottom: auto !important; }
.obs-hero-esq .elementor-widget { width: 520px; max-width: 100%; }
.obs-hero-img > .elementor-element-populated, .obs-hero-img > .elementor-widget-wrap { position: relative; }
.obs-hero-img { min-height: 800px; }
.obs-hero-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(to bottom, #0a0f14 0, rgba(10, 15, 20, 0) 413px),
		linear-gradient(to bottom, rgba(10, 15, 20, 0) 719px, rgba(10, 15, 20, .358) 800px); }
/* Ellipse 8 do Figma: 720x720 em (-473, 557) da imagem, #1d5eff, desfoque 800, cortado pela coluna */
.obs-hero-img { overflow: hidden; }
.obs-hero-img::after { content: ""; position: absolute; left: -473px; top: 557px; width: 720px; height: 720px; border-radius: 50%; background: #1d5eff; filter: blur(400px); pointer-events: none; z-index: 1; }

/* Página índice: sem imagem; brilho também no canto direito */
.obs-hero--indice::after { content: ""; position: absolute; left: calc(50% + 528px); top: -300px; width: 330px; height: 330px; border-radius: 50%; background: #1d5eff; filter: blur(134.15px); pointer-events: none; z-index: 0; }
.obs-hero--indice { padding: 154px 0 121px; }
.obs-hero--indice .obs-hero-tit { margin-top: 96px !important; width: 560px; max-width: 100%; }
.obs-hero--indice .obs-hero-fim { margin-top: 56px !important; width: 696px; max-width: 100%; }

/* ---------- Conteúdo: lista + coluna lateral ---------- */
.obs-conteudo { border-top: 1px solid #1a222b; padding: 56px 0 270px; }
.obs-conteudo > .elementor-container { align-items: flex-start; }
.obs-lateral { position: sticky; top: 122px; align-self: flex-start; } /* 98px do cabeçalho fixo + 24px */
.admin-bar .obs-lateral { top: 154px; }
.obs-lateral > .elementor-widget-wrap { padding-left: 32px !important; }
.obs-voltar { margin-top: 48px !important; }

/* Links com ícone feitos com o widget Botão do Elementor */
.obs-linkbtn .elementor-button-wrapper { display: flex; }
.obs-linkbtn .elementor-button { display: inline-flex; padding: 0 !important; border-radius: 0; background: none !important; color: #779eff !important; font: 600 14px/24px "Plus Jakarta Sans", sans-serif !important; }
.obs-linkbtn .elementor-button:hover, .obs-linkbtn .elementor-button:focus-visible { color: #4a7eff !important; } /* TRF-134517: hover #4A7EFF */
.obs-linkbtn .elementor-button-content-wrapper { display: flex; align-items: center; gap: 4px; }
.obs-linkbtn .elementor-button-text { display: block; }
.obs-linkbtn .elementor-button-content-wrapper::before, .obs-linkbtn .elementor-button-content-wrapper::after { content: ""; display: none; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--obs-ico) center / 24px 24px no-repeat; mask: var(--obs-ico) center / 24px 24px no-repeat; }
.obs-ico-dir .elementor-button-content-wrapper::after { display: block; --obs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.obs-ico-esq .elementor-button-content-wrapper::before { display: block; --obs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }

/* ---------- Cards da página índice ---------- */
.obs-cards { padding: 0 0 270px; }
.obs-cards .elementor-container { flex-wrap: wrap; gap: 16px; }
.obs-ccard { width: calc((100% - 32px) / 3) !important; }
.obs-ccard--largo { width: 100% !important; }
.obs-ccard > .elementor-widget-wrap { display: flex !important; flex-direction: column; flex-wrap: nowrap !important; min-height: 299px; padding: 32px 24px !important; border: 1px solid rgba(29, 94, 255, .16); border-radius: 8px; background: rgba(0, 74, 141, .12); }
.obs-ccard--largo > .elementor-widget-wrap { position: relative; min-height: 0; }
.obs-ccard .obs-ccard-nome { margin-top: 32px !important; }
.obs-ccard .obs-ccard-txt { margin-top: 24px !important; }
.obs-ccard .obs-ccard-txt p { margin-bottom: -.43px; } /* o Figma arredonda a maiúscula de 14px para 10 */
.obs-ccard .obs-ccard-link { margin-top: auto !important; padding-top: 16px; border-top: 1px solid #1a222b; }
.obs-ccard:not(.obs-ccard--largo) .obs-ccard-txt { margin-bottom: 48px !important; }
.obs-ccard--largo .obs-ccard-link { position: absolute; top: 32px; right: 24px; width: auto !important; margin: 0 !important; padding: 0; border: 0; }
.obs-ccard--largo .obs-ccard-nome { margin-top: 38px !important; }
.obs-hero--indice .obs-hero-tit .elementor-heading-title { width: fit-content; }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1024px) {
	.obs-hero { margin-top: -72px; padding-top: 72px; }
	.obs-hero::before { left: 277px; top: -197px; width: 227px; height: 227px; border-radius: 50%; background: #1d5eff; filter: blur(134.15px); }
	.obs-hero-img::after { left: -178px; top: 129px; width: 278px; height: 278px; filter: blur(100px); }
	.obs-hero > .elementor-container { flex-direction: column-reverse; }
	.obs-hero-img, .obs-hero-esq { width: 100% !important; }
	.obs-hero-img { min-height: 210px; margin: 16px 16px 0; width: auto !important; border-radius: 8px; overflow: hidden; }
	.obs-hero-img::before { display: none; }
	.obs-hero-esq > .elementor-widget-wrap { min-height: 0; padding: 40px 16px 0 !important; }
	.obs-hero .obs-w-trilha { display: none; }
	.obs-hero-esq .elementor-widget { width: 100%; }
	.obs-hero-esq .obs-hero-tit { margin-top: 0 !important; }
	.obs-hero-esq .obs-hero-sub, .obs-hero-esq .obs-hero-fim { margin-top: 32px !important; }
	.obs-hero--indice { padding: 128px 16px 0; }
	.obs-hero--indice::after { display: none; }
	.obs-hero--indice .obs-hero-tit { margin-top: 0 !important; width: 100%; }
	.obs-hero--indice .obs-hero-fim { margin-top: 32px !important; width: 100%; }
	.obs-conteudo { margin: 56px 16px 0; padding: 48px 0 136px; }
	.obs-conteudo > .elementor-container { flex-direction: column; }
	.obs-principal, .obs-lateral { width: 100% !important; }
	.obs-lateral { position: static; margin-top: 32px; }
	.obs-lateral > .elementor-widget-wrap { padding-left: 0 !important; }
	.obs-voltar { display: none; }
	.obs-cards { padding: 56px 16px 136px; }
	.obs-cards .elementor-container { gap: 8px; }
	.obs-ccard, .obs-ccard--largo { width: 100% !important; }
	.obs-ccard > .elementor-widget-wrap { min-height: 0; padding: 24px !important; }
	.obs-ccard .obs-ccard-nome, .obs-ccard .obs-ccard-txt { margin-top: 24px !important; }
.obs-ccard .obs-ccard-txt p { margin-bottom: -.43px; } /* o Figma arredonda a maiúscula de 14px para 10 */
	.obs-ccard:not(.obs-ccard--largo) .obs-ccard-txt { margin-bottom: 0 !important; }
	.obs-ccard--icec > .elementor-widget-wrap { padding-bottom: 11px !important; }
	.obs-ccard .obs-ccard-link, .obs-ccard--largo .obs-ccard-link { position: static; margin-top: 24px !important; padding-top: 0; border-top: 0; }
}

@supports not (text-box-trim: trim-both) {
	.obs-trimw .elementor-heading-title, .obs-trimw.elementor-widget-text-editor p, .obs-trimw .elementor-button-text { display: flow-root; }
	.obs-trimw .elementor-heading-title::before, .obs-trimw.elementor-widget-text-editor p::before, .obs-trimw .elementor-button-text::before { content: "" !important; display: table !important; height: auto !important; background: none !important; margin: 0 0 calc(.337em - .5lh) !important; }
	.obs-trimw .elementor-heading-title::after, .obs-trimw.elementor-widget-text-editor p::after, .obs-trimw .elementor-button-text::after { content: "" !important; display: table !important; height: auto !important; background: none !important; margin: calc(.408em - .5lh) 0 0 !important; }
}
