/* =====================================================================================
   PreveNet no celular: um SITE que rola, não um "app".
   Sem barra de abas embaixo, sem cartões flutuando por cima do mapa e sem folhas que sobem.
   Cabeçalho fixo com menu, conteúdo em blocos um embaixo do outro, mapa como uma seção da página
   (mexe com dois dedos; um dedo rola a página) e rodapé com os links.
   Liga sozinho em telas com menos de 760 px: o app.js põe a classe "m-site" no <html>.
   ===================================================================================== */

html.m-site, html.m-site body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
html.m-site body { overscroll-behavior-y: auto; }
html.m-site .shell { position: static; inset: auto; display: block; }
html.m-site .pn { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; display: flex; flex-direction: column; }

/* ordem dos blocos na página */
html.m-site .pn > #r-nav { order: 0; }
html.m-site .pn > #r-offline { order: 1; }
html.m-site .pn > #r-sheet { order: 2; }
html.m-site .pn > #r-hero { order: 3; }
html.m-site .pn.at-hero > #r-survey { order: 4; }
html.m-site .pn > #r-pill, html.m-site .pn > #r-backhome { order: 5; }
html.m-site .pn > .stage { order: 6; }
html.m-site .pn > #r-attrib { order: 7; }
html.m-site .pn > #r-levels, html.m-site .pn > #r-glnote { order: 8; }
html.m-site .pn > #r-survey { order: 9; }
html.m-site .pn > #r-panel { order: 10; }
html.m-site .pn > #r-sitefoot { order: 20; }
html.m-site .pn > #r-tabbar, html.m-site .pn > #r-layers, html.m-site .pn > #r-tip, html.m-site .pn > #r-clock { display: none !important; }

/* uma página aberta (Teste, Ranking, Conta...) ocupa a tela sozinha, como num site */
html.m-site .pn.has-sheet > .stage, html.m-site .pn.has-sheet > #r-hero, html.m-site .pn.has-sheet > #r-panel,
html.m-site .pn.has-sheet > #r-pill, html.m-site .pn.has-sheet > #r-backhome, html.m-site .pn.has-sheet > #r-levels,
html.m-site .pn.has-sheet > #r-attrib, html.m-site .pn.has-sheet > #r-survey, html.m-site .pn.has-sheet > #r-sitefoot,
html.m-site .pn.has-sheet > #r-glnote { display: none !important; }

/* ---- cabeçalho ---- */
html.m-site .pn .nav { position: sticky; top: 0; left: auto; right: auto; height: 60px; margin: 0; padding: 0 10px 0 6px; gap: 8px;
  background: var(--solid); border-bottom: 1px solid var(--line); pointer-events: auto; z-index: 45; }
html.m-site .pn .nav .glass { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.m-site .pn .nav .brand { height: 44px; padding: 0 8px; font-size: 18px; }
html.m-site .pn .nav-r { margin-left: auto; gap: 4px; }
html.m-site .pn .nav-r .icon-btn { width: 42px; height: 42px; border-color: transparent; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.m-site .pn .nav-r [data-a="theme"] { display: none; }
.pn .menu-btn { display: none; }
html.m-site .pn .menu-btn { display: inline-flex; }
html.m-site .pn .menu-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }

/* menu que abre do cabeçalho */
.pn .m-menu { display: none; }
html.m-site .pn .m-menu { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 60px); overflow-y: auto;
  background: var(--solid); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45); padding: 4px 16px 18px; pointer-events: auto; animation: pn-rise .22s var(--e-out) both; }
html.m-site .pn .m-menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-size: 16.5px; font-weight: 500; text-align: left; cursor: pointer; }
html.m-site .pn .m-menu button svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
html.m-site .pn .m-menu button.on { color: var(--accent); }
html.m-site .pn .m-menu button.on svg { color: var(--accent); }
html.m-site .pn .m-menu button .chev { margin-left: auto; color: var(--ink-3); }
html.m-site .pn .m-menu .m-sec { margin: 16px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
html.m-site .pn .m-menu .m-theme { display: flex; gap: 8px; margin-top: 12px; }
html.m-site .pn .m-menu .m-theme button { flex: 1; justify-content: center; min-height: 42px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; }
html.m-site .pn .m-menu .m-theme button.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---- início: o texto e a busca abrem a página; o mapa vem logo abaixo, como uma seção ---- */
html.m-site .pn .hero { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: auto; transform: none; max-height: none; overflow: visible;
  margin: 0; padding: 26px 18px 18px; border: 0; border-radius: 0; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
html.m-site .pn .hero [data-a="explore"] { display: none; }
html.m-site .pn .hero .h1 { font-size: 32px; line-height: 1.08; }
html.m-site .pn .hero .lead { font-size: 15.5px; }

html.m-site .pn > .stage { position: relative; inset: auto; height: 46vh; height: 46svh; min-height: 300px; max-height: 520px;
  margin: 6px 12px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
html.m-site .pn.at-hero > .stage { height: 38vh; height: 38svh; min-height: 260px; }
html.m-site .pn .attrib { position: relative; right: auto; bottom: auto; margin: 6px 16px 0; text-align: right; white-space: normal; font-size: 11px; line-height: 1.4; text-shadow: none; }

/* ---- resultado: endereço, mapa, níveis e o conteúdo em sequência ---- */
html.m-site .pn .addr { position: relative; top: auto; left: auto; right: auto; max-width: none; margin: 12px 12px 6px; box-shadow: none; animation: none; }
html.m-site .pn .backhome { position: relative; top: auto; left: auto; transform: none; margin: 12px auto 6px; animation: none; }
html.m-site .pn .levels { position: relative; top: auto; left: auto; right: auto; bottom: auto; display: flex; flex-direction: row; gap: 2px; max-width: none;
  margin: 10px 12px 0; padding: 4px; border-radius: 14px; overflow-x: auto; background: var(--solid); border: 1px solid var(--line); box-shadow: none; }
html.m-site .pn .levels .lv { flex: 1 0 auto; justify-content: center; }
html.m-site .pn .panel { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: auto; height: auto !important; max-height: none;
  margin: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--solid); overflow: visible; animation: none; }
html.m-site .pn .panel::before, html.m-site .pn .panel .grab { display: none !important; }
html.m-site .pn .panel-scroll { overflow: visible; height: auto; max-height: none; padding: 22px 18px 28px; }

/* pergunta rápida: um cartão dentro da página, não um aviso flutuando */
html.m-site .pn #r-survey .toast { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: 14px 12px 0; box-shadow: none; animation: none; }

/* ---- páginas (Teste, Ranking, Avaliações, Caiu?, Melhorar, Conta, Termos...) ---- */
html.m-site .pn .sheet { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: auto; transform: none; overflow: visible;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
html.m-site .pn .scrim { display: none; }
html.m-site .pn .sheet-h { padding: 14px 18px 4px; border-bottom: 0; }
html.m-site .pn .sheet-h > .icon-btn { display: none; }
html.m-site .pn .sheet-h .h2 { font-size: 27px; line-height: 1.12; }
html.m-site .pn .sheet-b { overflow: visible; height: auto; padding: 14px 16px 8px; }
.pn .m-back { display: none; }
html.m-site .pn .m-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }

/* rodapé do site nas telas de início e resultado */
.pn #r-sitefoot:empty { display: none; }
html.m-site .pn .sitefoot { padding: 6px 18px 28px; background: var(--solid); }
html.m-site .pn .sitefoot .foot { margin-top: 0; }

/* ---- o que continua por cima de tudo ---- */
html.m-site .pn .toasts { position: fixed; bottom: 16px; }
html.m-site .pn .dlg, html.m-site .pn .dlg-scrim, html.m-site .pn .drawer, html.m-site .pn .dw-scrim { position: fixed; }
html.m-site .pn .offline { position: sticky; top: 66px; left: auto; right: auto; transform: none; margin: 8px 12px 0; z-index: 40; }
html.m-site .pn .sug, html.m-site .pn #sugbox { z-index: 44; }

/* caixas com respiro de página e botões grandes o bastante para o dedo */
html.m-site .pn .box { border-radius: 16px; }
html.m-site .pn .btn { min-height: 46px; }
html.m-site .pn .btn-sm { min-height: 40px; }
/* dica do "i" não pode passar da borda da tela */
html.m-site .pn .hasTip .bubble { left: auto; right: -6px; width: min(240px, calc(100vw - 40px)); transform: translate(0, 4px); }
