/* ==========================================================================
   WP Notícias – página "Previsão do tempo" (INMET)
   Mesma família da página Brasileirã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 só nesta página (WPN_Tempo::assets). Tudo dentro de .wpn-tempo / .wpn-tempo-hero.
   ========================================================================== */

/* Topo --------------------------------------------------------------------- */
.wpn-tempo-hero .wpn-hero__title .wpn-tempo-hero__uf { color: var(--wpn-accent, #f9c608); }
.wpn-tempo-hero .wpn-hero__sub { max-width: 640px; }
.wpn-tempo-hero .wpn-hero__badges .wpn-tempo-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-tempo-hero .wpn-hero__badges .wpn-tempo-ico { flex: none; }
.wpn-tempo-hero.wpn-hero--contact .wpn-hero__in--single { padding-bottom: 84px; }

/* Estrutura ---------------------------------------------------------------- */
.wpn-tempo {
	--wt-ink: #0f172a;
	--wt-text: #334155;
	--wt-muted: #64748b;
	--wt-line: #eef0f4;
	--wt-soft: #f8fafc;
	--wt-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(--wt-text);
}
.wpn-tempo__main, .wpn-tempo__aside { min-width: 0; }
.wpn-tempo__panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wpn-tempo-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-tempo-ico { display: inline-block; flex: none; vertical-align: middle; }
.wpn-tempo svg.wpn-wi { display: block; }

/* Município e período ------------------------------------------------------ */
.wpn-tempo__bar {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 18px;
	padding: 16px 18px; background: #fff; border: 1px solid var(--wt-line); border-radius: 18px;
	box-shadow: 0 10px 30px rgba(11, 27, 63, .10);
}
.wpn-tempo__city { flex: 1 1 260px; min-width: 0; max-width: 380px; }
.wpn-tempo__label {
	display: block; margin: 0 0 6px 2px; font-size: 11px; font-weight: 800; letter-spacing: .8px;
	text-transform: uppercase; color: var(--wt-muted);
}
.wpn-tempo__select { position: relative; }
.wpn-tempo__select .wpn-tempo-ico { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.wpn-tempo__select .wpn-tempo-ico:first-child { left: 14px; color: var(--wpn-primary, #065303); }
.wpn-tempo__select .wpn-tempo-ico:last-child { right: 14px; color: var(--wt-muted); }
.wpn-tempo__select select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	display: block; width: 100%; min-height: 48px; margin: 0; padding: 0 42px;
	border: 1.5px solid #e2e8f0; border-radius: 12px; background: var(--wt-soft);
	font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--wt-ink);
	cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.wpn-tempo__select select:hover { border-color: #cbd5e1; background: #fff; }
.wpn-tempo__select select:focus { outline: none; border-color: var(--wpn-link, #2563eb); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.wpn-tempo__period { flex: 0 0 auto; min-width: 0; }
.wpn-tempo__seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #f1f5f9; }
.wpn-tempo__seg button {
	min-width: 76px; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
	font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; color: #475569;
	transition: background .15s, color .15s;
}
/* Como o menu do portal: mouse em cima = amarelo com letra preta; escolhido = verde com letra branca. */
.wpn-tempo__seg button:hover { background: var(--wpn-accent, #f9c608); color: #111827; }
.wpn-tempo__seg button[aria-pressed="true"] { background: var(--wpn-primary, #065303); color: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
.wpn-tempo__seg button:focus-visible { outline: 3px solid var(--wpn-link, #2563eb); outline-offset: 1px; }

/* Previsão ----------------------------------------------------------------- */
.wpn-tempo__fc { display: flex; flex-direction: column; gap: 16px; min-width: 0; transition: opacity .2s; }
.wpn-tempo__fc[aria-busy="true"] { opacity: .45; }
.wpn-tempo__note {
	display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px;
	background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14px; line-height: 1.45;
}
.wpn-tempo__empty {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 22px 20px; background: #fff;
	border: 1px solid var(--wt-line); border-radius: 18px; box-shadow: var(--wt-shadow); color: var(--wt-muted); font-weight: 600;
}

/* Avisos do INMET: cor pela gravidade (amarelo, laranja, vermelho) */
.wpn-tempo__alerts { display: flex; flex-direction: column; gap: 10px; }
.wpn-tempo-alert {
	--al: #eab308; --al-line: #fde68a; --al-bg: #fefce8; --al-ink: #713f12; --al-on: #422006;
	overflow: hidden; border: 1px solid var(--al-line); border-left: 6px solid var(--al); border-radius: 16px;
	background: var(--al-bg); color: var(--al-ink);
}
.wpn-tempo-alert--perigo { --al: #f97316; --al-line: #fed7aa; --al-bg: #fff7ed; --al-ink: #7c2d12; --al-on: #fff; }
.wpn-tempo-alert--grande { --al: #dc2626; --al-line: #fecaca; --al-bg: #fef2f2; --al-ink: #7f1d1d; --al-on: #fff; }
.wpn-tempo-alert__head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.wpn-tempo-alert__ico {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
	border-radius: 12px; background: var(--al); color: var(--al-on);
}
.wpn-tempo-alert__txt { min-width: 0; }
.wpn-tempo-alert__sev { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; }
.wpn-tempo-alert__badge {
	display: inline-block; margin-right: 4px; padding: 3px 9px; border-radius: 999px; background: var(--al); color: var(--al-on);
	font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
}
.wpn-tempo-alert__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; color: inherit; }
.wpn-tempo-alert__when { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.wpn-tempo-alert__more { border-top: 1px solid var(--al-line); }
.wpn-tempo-alert__more summary {
	display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; list-style: none;
	font-size: 14px; font-weight: 800;
}
.wpn-tempo-alert__more summary::-webkit-details-marker { display: none; }
.wpn-tempo-alert__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-tempo-alert__more[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.wpn-tempo-alert__more summary:focus-visible { outline: 3px solid var(--wpn-link, #2563eb); outline-offset: -3px; }
.wpn-tempo-alert__body { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; color: #1f2937; }
.wpn-tempo-alert__body h4 { margin: 10px 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--al-ink); }
.wpn-tempo-alert__body ul { margin: 0; padding-left: 18px; }
.wpn-tempo-alert__body li + li { margin-top: 4px; }
.wpn-tempo__calm {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 14px;
	background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-size: 14.5px; font-weight: 600; line-height: 1.4;
}
.wpn-tempo__calm .wpn-tempo-ico { color: #16a34a; }

/* Máxima e mínima */
.wpn-tempo-max, .wpn-tempo-min { display: inline-flex; flex-direction: column; line-height: 1; font-variant-numeric: tabular-nums; }
.wpn-tempo-max small, .wpn-tempo-min small {
	margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--wt-muted);
}

/* Cartão "Hoje" */
.wpn-tempo-hoje { padding: 20px 22px 22px; background: #fff; border: 1px solid var(--wt-line); border-radius: 18px; box-shadow: var(--wt-shadow); }
.wpn-tempo-hoje__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.wpn-tempo-hoje__tag {
	display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 0 12px; border-radius: 999px;
	background: var(--wpn-hero, #0b1b3f); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .3px;
}
.wpn-tempo-hoje__date { font-size: 14px; font-weight: 600; color: var(--wt-muted); }
.wpn-tempo-hoje__main { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px 22px; margin-top: 14px; }
.wpn-tempo-hoje__icon svg { width: 92px; height: 92px; }
.wpn-tempo-hoje__temps { display: flex; align-items: flex-end; gap: 14px; margin: 0; }
.wpn-tempo-hoje__temps .wpn-tempo-max { font-size: 52px; font-weight: 800; letter-spacing: -2px; color: var(--wt-ink); }
.wpn-tempo-hoje__temps .wpn-tempo-min { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: #94a3b8; }
.wpn-tempo-hoje__temps small { letter-spacing: .6px; }
.wpn-tempo-hoje__resumo { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--wt-ink); }
.wpn-tempo-hoje__facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
	margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--wt-line);
}
.wpn-tempo-fact { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--wt-soft); }
.wpn-tempo-fact dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--wt-muted); }
.wpn-tempo-fact dt .wpn-tempo-ico { color: var(--wpn-link, #2563eb); }
.wpn-tempo-fact--sunrise dt .wpn-tempo-ico, .wpn-tempo-fact--sunset dt .wpn-tempo-ico { color: #f59e0b; }
.wpn-tempo-fact dd { margin: 4px 0 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--wt-ink); overflow-wrap: anywhere; }
.wpn-tempo-hoje__per { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.wpn-tempo-per {
	display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 12px 8px;
	border: 1px solid var(--wt-line); border-radius: 14px; text-align: center;
}
.wpn-tempo-per__name { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--wt-muted); }
.wpn-tempo-per__icon svg { width: 40px; height: 40px; }
.wpn-tempo-per__txt { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--wt-ink); overflow-wrap: anywhere; }
.wpn-tempo-per__temps { font-size: 12.5px; font-weight: 700; color: var(--wt-muted); }

/* Próximos dias */
.wpn-tempo__dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.wpn-tempo__dias[hidden], .wpn-tempo-dia[hidden] { display: none !important; }
.wpn-tempo-dia {
	display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 16px 12px 14px;
	background: #fff; border: 1px solid var(--wt-line); border-radius: 16px; box-shadow: var(--wt-shadow); text-align: center;
}
.wpn-tempo-dia__name { margin: 0; font-size: 16px; font-weight: 800; color: var(--wt-ink); }
.wpn-tempo-dia__name small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--wt-muted); }
.wpn-tempo-dia__icon svg { width: 52px; height: 52px; }
.wpn-tempo-dia__temps { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0; }
.wpn-tempo-dia__temps small {
	position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wpn-tempo-dia__temps .wpn-tempo-max { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--wt-ink); }
.wpn-tempo-dia__temps .wpn-tempo-min { font-size: 18px; font-weight: 700; color: #94a3b8; }
.wpn-tempo-dia__resumo { margin: 0; font-size: 13px; line-height: 1.35; color: var(--wt-text); overflow-wrap: anywhere; }
.wpn-tempo-dia__umid { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--wt-muted); }
.wpn-tempo-dia__umid .wpn-tempo-ico { color: #3b82f6; }
.wpn-tempo-dia__per {
	display: flex; justify-content: center; gap: 8px; width: 100%; margin: 4px 0 0; padding: 8px 0 0;
	border-top: 1px solid var(--wt-line); list-style: none;
}
.wpn-tempo-dia__per li { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 0; font-size: 10.5px; color: var(--wt-muted); }
.wpn-tempo-dia__per svg { width: 22px; height: 22px; }

/* Depois da previsão: texto da página, últimas notícias e crédito */
.wpn-tempo__extra { margin-top: 26px; }
.wpn-tempo__news { margin-top: 38px; }
.wpn-tempo__news .wpn-mag__head { margin-bottom: 18px; }
.wpn-tempo__news .wpn-mag__title { font-size: clamp(22px, 2.2vw, 28px); }
.wpn-tempo__credit { margin: 28px 0 0; font-size: 11.5px; line-height: 1.4; color: #94a3b8; }

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

/* Tablet e celular --------------------------------------------------------- */
@media (max-width: 1100px) {
	.wpn-tempo { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
	.wpn-tempo-hoje__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	/* Uma coluna: previsão, anúncio, notícias, Mais lidas e o crédito no fim. */
	.wpn-tempo { display: flex; flex-direction: column; gap: 22px; margin-top: -48px; padding-bottom: 44px; }
	.wpn-tempo__main, .wpn-tempo__aside { display: contents; }
	.wpn-tempo__panel { order: 1; }
	.wpn-tempo__extra { order: 2; margin-top: 0; }
	.wpn-tempo__aside .wpn-ad { order: 3; }
	.wpn-tempo__news { order: 4; margin-top: 8px; }
	.wpn-tempo__aside .wpn-mostread { order: 5; }
	.wpn-tempo__credit { order: 6; margin-top: 0; }
	.wpn-tempo-hero.wpn-hero--contact .wpn-hero__in--single { padding-bottom: 72px; }
	.wpn-tempo-hoje__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.wpn-tempo-hoje__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.wpn-tempo__bar { gap: 12px; padding: 14px; border-radius: 16px; }
	.wpn-tempo__city, .wpn-tempo__period { flex: 1 1 100%; max-width: none; }
	.wpn-tempo__seg { display: flex; width: 100%; }
	.wpn-tempo__seg button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
	.wpn-tempo-alert__head { padding: 12px 14px; gap: 10px; }
	.wpn-tempo-alert__ico { width: 34px; height: 34px; border-radius: 10px; }
	.wpn-tempo-alert__title { font-size: 16.5px; }
	.wpn-tempo-hoje { padding: 16px; border-radius: 16px; }
	.wpn-tempo-hoje__main { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
	.wpn-tempo-hoje__icon svg { width: 72px; height: 72px; }
	.wpn-tempo-hoje__resumo { grid-column: 1 / -1; font-size: 16px; }
	.wpn-tempo-hoje__temps .wpn-tempo-max { font-size: 44px; }
	.wpn-tempo-hoje__temps .wpn-tempo-min { font-size: 26px; }
	.wpn-tempo-hoje__facts { gap: 8px; }
	.wpn-tempo-fact { padding: 9px 10px; }
	.wpn-tempo-fact dd { font-size: 14px; }
	.wpn-tempo-hoje__per { gap: 8px; }
	.wpn-tempo-per { padding: 10px 4px; }
	.wpn-tempo-per__txt { font-size: 12.5px; }
	/* Próximos dias em lista: ícone, dia e resumo, temperaturas à direita. */
	.wpn-tempo__dias { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.wpn-tempo-dia {
		display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
		grid-template-areas: "icon name temps" "icon resumo temps" "icon umid temps" "per per per";
		align-items: center; justify-items: start; column-gap: 12px; row-gap: 2px; padding: 12px 14px; text-align: left;
	}
	.wpn-tempo-dia__icon { grid-area: icon; }
	.wpn-tempo-dia__icon svg { width: 44px; height: 44px; }
	.wpn-tempo-dia__name { grid-area: name; font-size: 15px; }
	.wpn-tempo-dia__name small { display: inline; margin: 0 0 0 4px; }
	.wpn-tempo-dia__temps { grid-area: temps; justify-self: end; flex-direction: column; align-items: flex-end; gap: 4px; }
	.wpn-tempo-dia__temps .wpn-tempo-max { font-size: 22px; }
	.wpn-tempo-dia__temps .wpn-tempo-min { font-size: 16px; }
	.wpn-tempo-dia__resumo { grid-area: resumo; }
	.wpn-tempo-dia__umid { grid-area: umid; }
	.wpn-tempo-dia__per { grid-area: per; justify-content: flex-start; gap: 16px; }
	.wpn-tempo-dia__per li { flex-direction: row; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.wpn-tempo__fc, .wpn-tempo__seg button, .wpn-tempo__select select, .wpn-tempo-alert__more summary::after { transition: none; }
}
