/* Weazel Polish */
.wzp-progress {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 3px;
	background: var(--grad, linear-gradient(90deg, #ffc65c, #ff3d8b, #d63bd6));
	transform-origin: 0 50%;
	transform: scaleX(0);
	z-index: 99999;
	pointer-events: none;
}

body.admin-bar .wzp-progress { top: 32px; }

.hdr { transition: box-shadow .25s ease; }
.hdr.wzp-scrolled { box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }

.art-hero { overflow: hidden; }

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--sun, #ffc65c);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.wzp-progress { display: none; }
	.hdr { transition: none; }
}

@media print {
	.wzp-progress { display: none; }
}

/* letreiro de manchetes */
.wzp-ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(255, 255, 255, .09); background: #120e26; }
.wzp-ticker__track { display: inline-flex; gap: 44px; padding: 14px 20px; will-change: transform; }
.wzp-ticker a { font-family: var(--head, Anton, Impact, sans-serif); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.wzp-ticker a::before { content: '\25C6'; color: var(--pink, #ff3d8b); font-size: 11px; margin-right: 12px; vertical-align: 3px; }
.wzp-ticker a:hover, .wzp-ticker a:focus-visible { color: var(--teal, #19d3c5); }
@media (max-width: 520px) { .wzp-ticker a { font-size: 17px; } }

/* iPhone: campo com letra menor que 16px dá zoom sozinho e deixa a página cortada */
@media (max-width: 1024px) {
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	body input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
	body select,
	body textarea { font-size: 16px !important; }
}

/* menu do topo inteiro na tela, sem corte */
@media (max-width: 640px) {
	.hdr .hdr__nav { width: 100%; max-width: none; margin: 0; padding: 0 6px; gap: 0; justify-content: space-between; }
	.hdr .hdr__nav a { font-size: 12.5px; padding: 8px 6px; }
	.hdr .hdr__nav a.nav-map { font-size: 0; }
	.hdr .hdr__nav a.nav-map::after { content: 'Mapa'; font-size: 12.5px; }
	html[lang^="en"] .hdr .hdr__nav a.nav-map::after { content: 'Map'; }
}
@media (max-width: 374px) {
	.hdr .hdr__nav a,
	.hdr .hdr__nav a.nav-map::after { font-size: 11px !important; }
	.hdr .hdr__nav a { padding: 8px 3px; }
	.hdr .hdr__nav a.nav-map { font-size: 0 !important; }
}

/* telas estreitas (320 a 374px): logo e idiomas sem encavalar */
@media (max-width: 374px) {
	.hdr .logo { font-size: 16px; gap: 5px; }
	.hdr .logo__mark { width: 24px; height: 19px; }
	.hdr .logo__word { gap: 3px; }
	.hdr .lang a { padding: 4px 5px; font-size: 10.5px; }
	body.map-page .wzl-msearch__bar input { padding: 6px 6px; }
	body.map-page .wzl-msearch__bar button,
	body.map-page .wzl-msearch__bar #wzlSugB { padding: 0 8px; font-size: 11px; }
	.mapapp .mapui--demo { font-size: 8.5px; }
}

/* home no celular: o aviso do mapa vai para baixo dele, sem cobrir */
@media (max-width: 640px) {
	.h2o .h2o__label { position: static; display: block; margin-top: 8px; font-size: 12px; text-align: center; }
	.h2o .h2o__chips button { min-height: 34px; }
	.prose table { font-size: 13px; }
	.prose th, .prose td { padding: 7px 6px; }
}

/* mapa no celular: tudo nas bordas, o centro fica livre */
@media (max-width: 640px) {
	/* controles numa faixa própria no topo; o mapa começa abaixo, sem nada por cima */
	.mapapp { background: var(--night, #0b0918); }
	.mapapp .mapapp__svg { position: absolute; left: 0; top: 108px; width: 100%; height: calc(100% - 130px - env(safe-area-inset-bottom, 0px)); background: #0a2236; }

	.mapapp .mapui--filters { top: 6px; left: 6px; right: 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; max-width: none; overflow: visible; }
	.mapapp .mapui--filters .chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 48px; padding: 4px 2px; border-radius: 12px; font-size: 10.5px; line-height: 1.1; text-align: center; white-space: normal; }
	.mapapp .mapui--filters .chip i { flex: none; width: 8px; height: 8px; }
	.mapapp .mapui--filters .chip em { position: absolute; top: 3px; right: 6px; font-size: 9px; line-height: 1; }

	body.map-page .wzl-msearch { top: calc(var(--hdr, 100px) + 58px); width: calc(100% - 12px); }
	body.admin-bar.map-page .wzl-msearch { top: calc(var(--hdr, 100px) + 104px); }
	body.map-page .wzl-msearch__bar { align-items: center; gap: 4px; padding: 3px; }
	body.map-page .wzl-msearch__bar input { padding: 6px 10px; text-overflow: ellipsis; }
	body.map-page .wzl-msearch__bar button,
	body.map-page .wzl-msearch__bar #wzlSugB { flex: none; margin: 0; min-height: 38px; padding: 0 12px; font-size: 12px; white-space: nowrap; }

	.mapapp .mapui--progress { top: auto !important; right: auto !important; bottom: calc(30px + env(safe-area-inset-bottom, 0px)) !important; left: 8px !important; width: 120px !important; margin: 0; padding: 6px 10px; }
	.mapapp .mapui--progress small { display: none; }
	.mapapp .mapui--progress b { font-size: 15px; line-height: 1.2; }
	.mapapp .mapui--progress .bar { height: 4px; margin-top: 3px; }
	.mapapp .mapui--demo { left: 8px !important; right: 8px !important; bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important; max-width: none; padding: 2px 8px; font-size: 9px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; background: rgba(11, 9, 24, .72); border: 0; border-radius: 6px; color: #f6f1ff; }
	.mapapp .mapui--demo:active { white-space: normal; }
	.mapapp .mapui--zoom { right: 8px; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); gap: 5px; }
	.mapapp .mapui--zoom button { width: 40px; height: 40px; }
	.mapapp .wzp-game { position: absolute; left: 8px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 6; margin: 0; }

	/* cartão do pin: sozinho na parte de baixo, mapa visível em cima */
	.mapapp .mpanel { height: 58%; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.mapapp .mpanel__art { position: sticky; top: 0; height: 52px; z-index: 4; overflow: hidden; background: rgb(14, 11, 30); border-bottom: 1px solid var(--line, #2a2350); }
	.mapapp .mpanel__art .art { display: none; }
	.mapapp .mpanel__art::before { content: ''; position: absolute; left: 50%; top: 10px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--grad, #ff3d8b); }
	.mapapp .mpanel__close { top: 6px; right: 8px; width: 40px; height: 40px; }
	.mapapp .mpanel__body { padding: 14px 16px 24px; }
	.mapapp .mpanel__body h2 { font-size: 26px; overflow-wrap: anywhere; }
	.mapapp .mpanel__region { letter-spacing: .08em; }
	.mapapp .mpanel__actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
	body.wzp-pin-open .mapapp .mapui:not(.mapui--filters),
	body.wzp-pin-open .mapapp .wzp-game { visibility: hidden; }
}

/* celular deitado e tablet: filtros à esquerda e busca à direita na mesma faixa, mapa abaixo */
@media (min-width: 641px) and (max-width: 1100px), (max-width: 1000px) and (max-height: 500px) {
	.mapapp { background: var(--night, #0b0918); }
	.mapapp .mapapp__svg { position: absolute; left: 0; top: 52px; width: 100%; height: calc(100% - 70px - env(safe-area-inset-bottom, 0px)); background: #0a2236; }
	.mapapp .mapui--filters { top: 6px; left: 6px; right: auto; width: calc(50% - 9px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; max-width: none; overflow: visible; }
	.mapapp .mapui--filters .chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 40px; padding: 2px; border-radius: 10px; font-size: 9.5px; line-height: 1.05; text-align: center; white-space: normal; }
	.mapapp .mapui--filters .chip i { display: none; }
	.mapapp .mapui--filters .chip em { font-size: 9px; line-height: 1; }
	body.map-page .wzl-msearch { left: auto; right: 6px; transform: none; width: calc(50% - 9px); top: calc(var(--hdr, 100px) + 5px); }
	body.admin-bar.map-page .wzl-msearch { top: calc(var(--hdr, 100px) + 37px); }
	body.map-page .wzl-msearch__bar { align-items: center; gap: 4px; padding: 2px; }
	body.map-page .wzl-msearch__bar input { padding: 6px 10px; }
	body.map-page .wzl-msearch__bar button,
	body.map-page .wzl-msearch__bar #wzlSugB { flex: none; margin: 0; min-height: 36px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
	.mapapp .mapui--demo { left: 8px !important; right: 8px !important; bottom: calc(2px + env(safe-area-inset-bottom, 0px)) !important; max-width: none; padding: 0 8px; font-size: 10px; line-height: 14px; white-space: nowrap; overflow: hidden; text-align: center; background: transparent; border: 0; color: #f6f1ff; }
	.mapapp .mapui--progress { top: auto !important; right: auto !important; left: 8px !important; bottom: 26px !important; width: 110px !important; margin: 0; padding: 4px 10px; }
	.mapapp .mapui--progress small { display: none; }
	.mapapp .mapui--progress b { font-size: 14px; line-height: 1.2; }
	.mapapp .mapui--progress .bar { height: 4px; margin-top: 3px; }
	.mapapp .mapui--zoom { right: 8px; bottom: 26px; grid-auto-flow: column; }
	.mapapp .mapui--zoom button { width: 40px; height: 40px; }
	.mapapp .wzp-game { position: absolute; left: 8px; bottom: 74px; z-index: 6; margin: 0; }
	.mapapp .mpanel { top: 0; bottom: 0; height: auto; width: min(380px, 55%); }
	.mapapp .mpanel__art { position: sticky; top: 0; height: 48px; z-index: 4; overflow: hidden; background: rgb(14, 11, 30); }
	.mapapp .mpanel__art .art { display: none; }
	.mapapp .mpanel__close { top: 4px; right: 8px; width: 40px; height: 40px; }
	.mapapp .mpanel__body { padding: 8px 14px 20px; }
	.mapapp .mpanel__body h2 { font-size: 22px; }
	body.wzp-pin-open .wzl-msearch,
	body.wzp-pin-open .mapapp .mapui:not(.mapui--filters),
	body.wzp-pin-open .mapapp .wzp-game { visibility: hidden; }
}

/* mapa com o celular deitado: só a barra de cima do site, para o mapa ganhar altura */
@media (max-width: 1000px) and (max-height: 500px) {
	body.map-page { --hdr: 60px; }
	body.map-page .hdr__nav { display: none; }
}

/* tablet: letra dos filtros maior */
@media (min-width: 641px) and (max-width: 1100px) and (min-height: 501px) {
	.mapapp .mapui--filters .chip { font-size: 11px; }
}
/* só para quem está logado: a barra do WordPress muda de altura */
@media (min-width: 641px) and (max-width: 782px) {
	body.admin-bar.map-page .wzl-msearch { top: calc(var(--hdr, 100px) + 51px); }
}
@media (min-width: 1101px) {
	body.admin-bar.map-page .wzl-msearch { top: calc(var(--hdr, 100px) + 94px); }
}

/* folga na máscara dos títulos para não cortar acentos e pernas das letras */
.wzp-w-mask { padding: .18em .05em .1em; margin: -.18em -.05em -.1em; vertical-align: top; }
