/* ==========================================================================
   WP Notícias – Preço dos combustíveis em Boa Vista (ANP)
   Mesma família das páginas Previsão do tempo e Apuração: topo azul-marinho com caminho e selos, cartões brancos
   sobre o topo, Plus Jakarta Sans e as cores do portal (--wpn-primary, --wpn-accent, --wpn-hero, --wpn-link).
   Carregado na página (WPN_Combustivel::assets) e na home, onde só o mini cartão da lateral usa este arquivo.
   ========================================================================== */

/* Peças comuns (página e home) ---------------------------------------------- */
.wpn-comb-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wpn-comb-ico { display: inline-block; flex: none; vertical-align: middle; }

/* Mini cartão da home (lateral, depois de "Mais lidas") -------------------- */
.wpn-comb-mini {
	margin-bottom: 22px; padding: 8px 14px 14px; background: #fff; border: 1px solid #eef0f4;
	border-bottom: 4px solid var(--wpn-accent, #f9c608); border-radius: 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	font-family: var(--wpn-font-news, "Plus Jakarta Sans", system-ui, sans-serif);
}
.wpn-comb-mini__title {
	display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 4px 10px;
	font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; color: var(--wpn-ink, #0f172a);
}
.wpn-comb-mini__title .wpn-comb-ico { color: var(--wpn-link, #2563eb); }
.wpn-comb-mini__list { list-style: none; margin: 0; padding: 0; }
.wpn-comb-mini__list li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 4px;
	border-top: 1px solid #f0f2f5;
}
.wpn-comb-mini__name { font-size: 14.5px; font-weight: 700; color: #1f2937; }
.wpn-comb-mini__price {
	display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; letter-spacing: -.2px;
	color: var(--wpn-ink, #0f172a); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wpn-comb-mini__var { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; }
.wpn-comb-mini__var.is-up { background: #fef2f2; color: #dc2626; }
.wpn-comb-mini__var.is-down { background: #f0fdf4; color: #16a34a; }
.wpn-comb-mini__meta { margin: 8px 4px 0; font-size: 12px; line-height: 1.4; color: #64748b; }
.wpn-comb-mini__more {
	display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 10px; padding: 0 14px;
	border-radius: 12px; background: var(--wpn-link, #2563eb); color: #fff !important; font-size: 14px; font-weight: 800;
	text-decoration: none !important; transition: background .15s;
}
.wpn-comb-mini__more:hover { background: #1d4ed8; }
.wpn-comb-mini__more:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }

/* Topo --------------------------------------------------------------------- */
.wpn-comb-hero .wpn-hero__text { max-width: 900px; }
.wpn-comb-hero .wpn-hero__title .wpn-comb-hero__uf { color: var(--wpn-accent, #f9c608); white-space: nowrap; }
.wpn-comb-hero .wpn-hero__sub { max-width: 640px; }
.wpn-comb-hero .wpn-hero__badges .wpn-comb-hero__val {
	display: inline; gap: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	font-size: inherit; color: inherit;
}
.wpn-comb-hero .wpn-hero__badges .wpn-comb-ico { flex: none; }
.wpn-comb-hero.wpn-hero--contact .wpn-hero__in--single { padding-bottom: 84px; }

/* Estrutura ---------------------------------------------------------------- */
.wpn-comb {
	--wc-ink: #0f172a;
	--wc-text: #334155;
	--wc-muted: #64748b;
	--wc-line: #eef0f4;
	--wc-soft: #f8fafc;
	--wc-blue: var(--wpn-link, #2563eb);
	--wc-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; align-items: start;
	margin-top: -56px; padding-bottom: 60px;
	font-family: var(--wpn-font-news, "Plus Jakarta Sans", system-ui, sans-serif); color: var(--wc-text);
}
.wpn-comb__main, .wpn-comb__aside { min-width: 0; }
.wpn-comb__panel { display: flex; flex-direction: column; min-width: 0; }
.wpn-comb__root { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Cartões dos combustíveis ---------------------------------------------------- */
.wpn-comb__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wpn-comb-card {
	-webkit-appearance: none; appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
	min-width: 0; min-height: 44px; margin: 0; padding: 14px 14px 12px; text-align: left; cursor: pointer;
	font-family: inherit; color: var(--wc-ink); background: #fff; border: 2px solid var(--wc-line); border-radius: 16px;
	box-shadow: 0 10px 30px rgba(11, 27, 63, .10); transition: border-color .15s, box-shadow .15s, background .15s;
}
.wpn-comb-card:hover { border-color: #cbd5e1; }
.wpn-comb-card:focus-visible { outline: 3px solid var(--wc-blue); outline-offset: 2px; }
.wpn-comb-card.is-active, .wpn-comb-card[aria-pressed="true"] {
	border-color: var(--wc-blue); background: #f5f9ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 10px 30px rgba(11, 27, 63, .10);
}
.wpn-comb-card__name { font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.1px; color: var(--wc-ink); }
.wpn-comb-card__price {
	display: flex; align-items: baseline; gap: 4px; margin-top: 4px; font-size: 32px; font-weight: 800; line-height: 1;
	letter-spacing: -1.2px; color: var(--wc-ink); font-variant-numeric: tabular-nums;
}
.wpn-comb-card__price small { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--wc-muted); }
.wpn-comb-card__unit { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--wc-muted); }
.wpn-comb-card__range {
	display: flex; flex-direction: column; gap: 1px; width: 100%; margin-top: 8px; padding-top: 8px;
	border-top: 1px solid var(--wc-line); font-size: 12.5px; line-height: 1.4; color: var(--wc-muted);
}
.wpn-comb-card__range b { font-weight: 800; color: var(--wc-text); font-variant-numeric: tabular-nums; }
.wpn-comb-card__old { margin-top: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: #b45309; }
.wpn-comb-card.is-active .wpn-comb-card__range { border-top-color: #dbeafe; }

/* Variação (seta de alta ou baixa) */
.wpn-comb-var {
	display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
	font-size: 12px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.wpn-comb-var .wpn-comb-ico { flex: none; }
.wpn-comb-var--up { background: #fef2f2; color: #b91c1c; }
.wpn-comb-var--down { background: #f0fdf4; color: #15803d; }
.wpn-comb-var--flat { background: #f1f5f9; color: #475569; }
.wpn-comb-var--none { padding-left: 9px; background: #f1f5f9; color: var(--wc-muted); font-weight: 700; }
.wpn-comb__legend { margin: -4px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--wc-muted); }

/* Combustível aberto -------------------------------------------------------- */
.wpn-comb__details { min-width: 0; }
.wpn-comb-detail {
	min-width: 0; padding: 20px 22px 22px; background: #fff; border: 1px solid var(--wc-line); border-radius: 18px;
	box-shadow: var(--wc-shadow); scroll-margin-top: 76px;
}
.wpn-comb-detail[hidden] { display: none !important; }
.wpn-comb-detail + .wpn-comb-detail { margin-top: 16px; } /* só aparece sem JavaScript (todos abertos) */
.wpn-comb-detail__head h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; color: var(--wc-ink); }
.wpn-comb-detail__head p { margin: 5px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--wc-muted); }
.wpn-comb-detail__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; align-items: stretch; }
.wpn-comb-detail__top > :only-child { grid-column: 1 / -1; }

/* "Mais barato" em destaque */
.wpn-comb-best { min-width: 0; padding: 16px 16px 14px; border: 1px solid #bbf7d0; border-radius: 16px; background: linear-gradient(135deg, #f0fdf4 0%, #fff 82%); }
.wpn-comb-best__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.wpn-comb-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px; background: #16a34a; color: #fff;
	font-size: 11.5px; font-weight: 800; letter-spacing: .4px; line-height: 1.2; text-transform: uppercase;
}
.wpn-comb-best__tie { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #166534; }
.wpn-comb-best__price {
	margin: 10px 0 0; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -1.4px; color: #14532d;
	font-variant-numeric: tabular-nums;
}
.wpn-comb-best__price small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #166534; }
.wpn-comb-best__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.wpn-comb-best__list li { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 9px 0; border-top: 1px solid #dcfce7; }
.wpn-comb-best__list b { font-size: 14.5px; font-weight: 800; line-height: 1.3; color: var(--wc-ink); overflow-wrap: anywhere; }
.wpn-comb-best__list span { font-size: 13px; line-height: 1.4; color: #475569; overflow-wrap: anywhere; }
.wpn-comb-best__list .wpn-comb-best__bairro { margin-top: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #166534; }
.wpn-comb-best__more { margin-top: 10px; border-top: 1px solid #dcfce7; }
.wpn-comb-best__more summary {
	display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
	font-size: 14px; font-weight: 800; color: #166534;
}
.wpn-comb-best__more summary::-webkit-details-marker { display: none; }
.wpn-comb-best__more summary::after {
	content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.wpn-comb-best__more[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.wpn-comb-best__more summary:focus-visible { outline: 3px solid var(--wc-blue); outline-offset: 2px; border-radius: 8px; }
.wpn-comb-best__more .wpn-comb-best__list { margin-top: 0; }
.wpn-comb-best--same { border-color: var(--wc-line); background: var(--wc-soft); }
.wpn-comb-best__same { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--wc-text); }
.wpn-comb-best__same .wpn-comb-ico { margin-top: 2px; color: var(--wc-blue); }
.wpn-comb-best__same b { font-weight: 800; color: var(--wc-ink); }

/* Gráfico das semanas */
.wpn-comb-chart { min-width: 0; margin: 0; padding: 14px 14px 8px; border: 1px solid var(--wc-line); border-radius: 16px; background: var(--wc-soft); }
.wpn-comb-chart figcaption { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--wc-muted); }
.wpn-comb-chart__svg { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; overflow: visible; }
.wpn-comb-chart__grid { stroke: #e2e8f0; stroke-width: 1.5; }
.wpn-comb-chart__area { stroke: none; }
.wpn-comb-chart__s0 { stop-color: var(--wc-blue); stop-opacity: .24; }
.wpn-comb-chart__s1 { stop-color: var(--wc-blue); stop-opacity: 0; }
.wpn-comb-chart__line { fill: none; stroke: var(--wc-blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wpn-comb-chart__dot { fill: #fff; stroke: var(--wc-blue); stroke-width: 2.5; }
.wpn-comb-chart__dot.is-last { fill: var(--wc-blue); }
.wpn-comb-chart__halo { fill: rgba(37, 99, 235, .16); stroke: none; }
.wpn-comb-chart__val { font-family: inherit; font-size: 12px; font-weight: 700; fill: #475569; }
.wpn-comb-chart__val.is-last { font-size: 13px; font-weight: 800; fill: var(--wc-ink); }
.wpn-comb-chart__lab { font-family: inherit; font-size: 11px; font-weight: 600; fill: var(--wc-muted); }

/* Busca e lista de postos */
.wpn-comb-search { margin-top: 22px; }
.wpn-comb-search__label { display: block; margin: 0 0 6px 2px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--wc-muted); }
.wpn-comb-search__box { position: relative; }
.wpn-comb-search__box .wpn-comb-ico { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--wc-muted); pointer-events: none; }
.wpn-comb-search__input {
	-webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 0 14px 0 44px;
	border: 1.5px solid #e2e8f0; border-radius: 12px; background: var(--wc-soft); box-shadow: none;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--wc-ink);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.wpn-comb-search__input::placeholder { color: #94a3b8; font-weight: 500; }
.wpn-comb-search__input:hover { border-color: #cbd5e1; background: #fff; }
.wpn-comb-search__input:focus { outline: none; border-color: var(--wc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.wpn-comb-count { min-height: 1.3em; margin: 10px 2px 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--wc-muted); }
.wpn-comb-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wpn-comb-st {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; margin: 0; padding: 14px 14px 13px;
	border: 1px solid var(--wc-line); border-radius: 14px; background: #fff;
}
.wpn-comb-st[hidden] { display: none; }
.wpn-comb-st.is-best { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4 0%, #fff 78%); }
.wpn-comb-st__main { min-width: 0; }
.wpn-comb-st__name { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--wc-ink); overflow-wrap: anywhere; }
.wpn-comb-st__bairro { margin: 4px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; line-height: 1.3; text-transform: uppercase; color: #475569; overflow-wrap: anywhere; }
.wpn-comb-st.is-best .wpn-comb-st__bairro { color: #166534; }
.wpn-comb-st__addr { margin: 1px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--wc-text); overflow-wrap: anywhere; }
.wpn-comb-st__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--wc-muted); }
.wpn-comb-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; }
.wpn-comb-st__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; margin: 0; text-align: right; }
.wpn-comb-st__price strong { font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; color: var(--wc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wpn-comb-st.is-best .wpn-comb-st__price strong { color: #15803d; }
.wpn-comb-st__best { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .3px; line-height: 1.2; text-transform: uppercase; color: #15803d; white-space: nowrap; }
.wpn-comb-none { margin: 4px 2px 0; padding: 14px 16px; border-radius: 12px; background: var(--wc-soft); font-size: 14px; font-weight: 600; color: var(--wc-muted); }
.wpn-comb-none:empty { display: none; }

/* Avisos e fonte --------------------------------------------------------------- */
.wpn-comb__note {
	display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px;
	background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14px; line-height: 1.5;
}
.wpn-comb__note .wpn-comb-ico { margin-top: 2px; }
.wpn-comb__note--warn { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.wpn-comb__empty {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 22px 20px; background: #fff;
	border: 1px solid var(--wc-line); border-radius: 18px; box-shadow: var(--wc-shadow); color: var(--wc-muted); font-weight: 600;
}
.wpn-comb__credit { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--wc-muted); }

/* Depois dos preços: texto da página e últimas notícias */
.wpn-comb__extra { margin-top: 26px; }
.wpn-comb__news { margin-top: 38px; }
.wpn-comb__news .wpn-mag__head { margin-bottom: 18px; }
.wpn-comb__news .wpn-mag__title { font-size: clamp(22px, 2.2vw, 28px); }

/* Lateral: anúncio (em moldura branca sobre o topo) e Mais lidas */
.wpn-comb__aside { display: flex; flex-direction: column; gap: 22px; }
.wpn-comb__aside > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.wpn-comb__aside .wpn-ad {
	align-self: center; width: 100%; max-width: 360px; padding: 12px; background: #fff;
	border: 1px solid var(--wc-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(11, 27, 63, .10);
}
.wpn-comb__aside .wpn-ad .wpn-ad__label { top: 18px; right: 20px; }

/* Tablet e celular --------------------------------------------------------- */
@media (max-width: 1100px) {
	.wpn-comb { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
	.wpn-comb-card__price { font-size: 28px; }
	.wpn-comb-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	/* Uma coluna: preços, anúncio, notícias, Mais lidas. */
	.wpn-comb { display: flex; flex-direction: column; gap: 22px; margin-top: -48px; padding-bottom: 44px; }
	.wpn-comb__main, .wpn-comb__aside { display: contents; }
	.wpn-comb__panel { order: 1; }
	.wpn-comb__extra { order: 2; margin-top: 0; }
	.wpn-comb__aside .wpn-ad { order: 3; }
	.wpn-comb__news { order: 4; margin-top: 8px; }
	.wpn-comb__aside .wpn-mostread { order: 5; }
	.wpn-comb-hero.wpn-hero--contact .wpn-hero__in--single { padding-bottom: 72px; }
	.wpn-comb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.wpn-comb-list { grid-template-columns: minmax(0, 1fr); }
	.wpn-comb-detail__top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.wpn-comb__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
	.wpn-comb__root { gap: 14px; }
	.wpn-comb-card { padding: 12px 12px 11px; border-radius: 14px; }
	.wpn-comb-card__name { font-size: 13.5px; }
	.wpn-comb-card__price { font-size: 28px; letter-spacing: -1px; }
	.wpn-comb-card__price small { font-size: 14px; }
	.wpn-comb-var { font-size: 11.5px; }
	.wpn-comb-card__range { font-size: 12px; }
	.wpn-comb-detail { padding: 16px 14px 16px; border-radius: 16px; }
	.wpn-comb-detail__head h3 { font-size: 19px; }
	.wpn-comb-detail__top { margin-top: 14px; }
	.wpn-comb-best { padding: 14px 14px 12px; }
	.wpn-comb-best__price { font-size: 32px; }
	.wpn-comb-st { padding: 12px 12px 11px; gap: 10px; }
	.wpn-comb-st__name { font-size: 14.5px; }
	.wpn-comb-st__price strong { font-size: 19px; }
	.wpn-comb-mini__title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.wpn-comb-card, .wpn-comb-search__input, .wpn-comb-best__more summary::after, .wpn-comb-mini__more { transition: none; }
}
