/* AN Combustíveis v1.0.0 — mobile-first */
.ancb-wrap {
	--ancb-altura: 360px;
	margin: 24px 0; background: #f6f8fc;
	border: 1px solid #e2e7f1; border-radius: 12px; padding: 14px;
}
.ancb-carregando, .ancb-erro { text-align: center; padding: 30px 8px; color: #555; margin: 0; }
.ancb-erro { color: #E31B23; }
.ancb-aviso { background: #fff8e1; border: 1px dashed #f5a623; border-radius: 8px;
	padding: 12px 14px; margin: 24px 0; font-size: .85rem; color: #6b5b00; }

.ancb-cab { margin-bottom: 10px; }
.ancb-cab h3 { margin: 0 0 3px; font-size: 1.05rem; color: #0D2B6B; line-height: 1.25; }
.ancb-cab p { margin: 0; font-size: .8rem; color: #5b6472; }

/* Abas de produto */
.ancb-abas { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.ancb-aba {
	--ancb-cor: #0B5FFF;
	background: #fff; border: 1px solid #d6dbe6; border-radius: 99px;
	padding: 6px 13px; font-size: .74rem; color: #5b6472; cursor: pointer;
	transition: all .15s;
}
.ancb-aba:hover { border-color: var(--ancb-cor); color: var(--ancb-cor); }
.ancb-aba.ancb-on { background: var(--ancb-cor); border-color: var(--ancb-cor); color: #fff; font-weight: 600; }

/* Resumo */
.ancb-resumo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.ancb-kpi {
	background: #fff; border: 1px solid #dde3ee; border-radius: 9px;
	padding: 10px 12px; display: flex; flex-direction: column;
}
.ancb-k-rot { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: #8a93a5; }
.ancb-k-num { font-size: 1.25rem; font-weight: 700; color: #0D2B6B; line-height: 1.15; margin: 2px 0; }
.ancb-k-un { font-size: .68rem; color: #6b7482; }
.ancb-barato .ancb-k-num { color: #128a12; }
.ancb-caro .ancb-k-num { color: #E31B23; }

.ancb-mapa {
	width: 100%; height: var(--ancb-altura);
	border-radius: 10px; background: #fff; border: 1px solid #dde3ee; z-index: 0;
}
.ancb-tt { font-size: .78rem; border-radius: 8px; border: 1px solid #0D2B6B; max-width: 240px; }
.ancb-tt-cab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ancb-tt-cab strong { color: #0D2B6B; }
.ancb-tt-cab span { font-size: .68rem; color: #8a93a5; }
.ancb-tt-preco { font-size: 1.05rem; font-weight: 700; color: #0D2B6B; margin: 3px 0; }
.ancb-tt-preco em { font-size: .64rem; font-weight: 400; font-style: normal; color: #8a93a5; }
.ancb-tt-var { font-size: .7rem; font-weight: 600; margin-bottom: 3px; }
.ancb-tt-faixa, .ancb-tt-n { font-size: .68rem; color: #6b7482; }

.ancb-sobe { color: #E31B23; }
.ancb-desce { color: #128a12; }
.ancb-igual { color: #8a93a5; }

/* Busca e tabela */
.ancb-busca-caixa { margin: 12px 0 8px; }
.ancb-busca {
	width: 100%; padding: 9px 12px; border: 1px solid #dde3ee;
	border-radius: 8px; font-size: .88rem; background: #fff;
}
.ancb-tabela { background: #fff; border: 1px solid #dde3ee; border-radius: 10px; overflow: hidden; }
.ancb-tab { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ancb-tab thead th {
	background: #0D2B6B; color: #fff; font-size: .64rem; text-transform: uppercase;
	letter-spacing: .04em; padding: 8px 9px; text-align: left; font-weight: 600;
}
.ancb-tab td { padding: 7px 9px; border-bottom: 1px solid #f0f2f7; }
.ancb-tab tbody tr:last-child td { border-bottom: 0; }
.ancb-tab tbody tr:hover { background: #f6f8fc; }
.ancb-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ancb-forte { font-weight: 700; color: #0D2B6B; }
.ancb-pos { color: #8a93a5; width: 34px; }
.ancb-mun { font-weight: 600; color: #0D2B6B; }
.ancb-faixa { color: #8a93a5; font-size: .72rem; }
.ancb-mais, .ancb-un-nota, .ancb-vazio { margin: 0; padding: 9px 11px; font-size: .74rem; color: #8a93a5; }
.ancb-nota { margin: 10px 0 0; font-size: .71rem; color: #8a93a5; line-height: 1.55; }

@media (max-width: 620px) {
	.ancb-tab th:nth-child(6), .ancb-tab td:nth-child(6) { display: none; }
	.ancb-tab th:nth-child(1), .ancb-tab td:nth-child(1) { display: none; }
}
@media (min-width: 700px) {
	.ancb-wrap { --ancb-altura: 460px; padding: 18px; }
	.ancb-cab h3 { font-size: 1.2rem; }
	.ancb-resumo { grid-template-columns: repeat(4, 1fr); }
}

/* ===== v1.1.0 — bloco compacto [combustiveis_extremos] ===== */
.ancb-ext {
	margin: 24px 0; background: #f6f8fc;
	border: 1px solid #e2e7f1; border-radius: 12px; padding: 14px;
}
.ancb-ext-cab { margin-bottom: 10px; }
.ancb-ext-cab h3 { margin: 0 0 2px; font-size: 1rem; color: #0D2B6B; line-height: 1.25; }
.ancb-ext-cab span { font-size: .72rem; color: #8a93a5; }

.ancb-ext-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ancb-ext-card {
	--ancb-cor: #0B5FFF;
	background: #fff; border: 1px solid #dde3ee; border-radius: 9px;
	padding: 10px 11px; border-top: 3px solid var(--ancb-cor);
}
.ancb-ext-card h4 { margin: 0 0 5px; font-size: .78rem; color: #0D2B6B; font-weight: 700; }
.ancb-ext-media {
	font-size: 1.3rem; font-weight: 700; color: var(--ancb-cor);
	line-height: 1.1; display: flex; flex-direction: column; margin-bottom: 7px;
}
.ancb-ext-media span { font-size: .62rem; font-weight: 400; color: #8a93a5; letter-spacing: .02em; }
.ancb-ext-linha {
	display: grid; grid-template-columns: auto 1fr; gap: 2px 6px;
	align-items: baseline; font-size: .74rem; padding: 3px 0;
	border-top: 1px solid #f0f2f7;
}
.ancb-ext-rot {
	grid-column: 1 / -1; font-size: .6rem; text-transform: uppercase;
	letter-spacing: .05em; color: #8a93a5;
}
.ancb-ext-linha strong { font-size: .88rem; }
.ancb-ext-linha em { font-style: normal; font-size: .68rem; color: #6b7482; }
.ancb-ext-mn strong { color: #128a12; }
.ancb-ext-mx strong { color: #E31B23; }
.ancb-ext-dif { margin-top: 6px; font-size: .64rem; color: #8a93a5; }
.ancb-ext-link { margin: 10px 0 0; font-size: .82rem; }
.ancb-ext-link a { color: #0B5FFF; font-weight: 600; text-decoration: none; }
.ancb-ext-link a:hover { text-decoration: underline; }

@media (min-width: 700px) {
	.ancb-ext-grade { grid-template-columns: repeat(4, 1fr); }
	.ancb-ext-cab h3 { font-size: 1.1rem; }
}
