/* ==========================================================================
   SITE - portal do participante (computador) e app (celular), mesmas páginas.
   Portado de prototipo/v1/assets/canais.css: classes .pt-* (portal) e .app-* (app).
   No protótipo o portal respondia a @container (moldura); aqui é @media na janela.
   Corte em 700 px: abaixo disso a página vira o app (topo compacto + rodapé de 5
   itens). O app Android (WebView, fase 2) abre estas páginas, então o celular É o app.
   ========================================================================== */

body.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- Topo ---------------- */
.pt-topo { background: #fff; border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 20; }
.pt-topo .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 12px 28px; }
.pt-topo .logo-pt { height: 42px; width: auto; }
.pt-menu { display: flex; gap: 4px; flex: 1; }
.pt-menu a { padding: 8px 14px; border-radius: 10px; color: var(--tx-2); font-weight: 500; text-decoration: none; font-size: 14px; white-space: nowrap; }
.pt-menu a:hover { background: var(--fundo); }
.pt-menu a.ativo { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }
.pt-user { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-left: auto; position: relative; }
.pt-user .avatar { cursor: pointer; border: 0; font-family: var(--fonte); }
.pt-user .sino-pt { position: relative; color: var(--tx-2); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; }
.pt-user .sino-pt:hover { background: var(--fundo); }
.pt-user .sino-pt .b { position: absolute; top: 2px; right: 2px; background: var(--acento-600); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 16px; }
.menu-user { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--borda); border-radius: 12px; box-shadow: var(--sombra); min-width: 210px; padding: 6px; z-index: 30; }
.menu-user a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--tx); text-decoration: none; font-size: 13.5px; }
.menu-user a:hover { background: var(--fundo); }
.menu-user .quem { padding: 8px 10px 10px; border-bottom: 1px solid var(--borda); margin-bottom: 4px; font-size: 12.5px; color: var(--tx-3); }
.menu-user .quem b { display: block; color: var(--tx); font-size: 13.5px; }

/* ---------------- Miolo ---------------- */
.pt-main { flex: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px; }
.pt-main.estreito { max-width: 760px; }
.pt-hero { border-radius: 22px; padding: 34px 36px; margin-bottom: 26px; position: relative; }
.pt-hero > * { position: relative; }
.pt-hero h1 { font-size: 30px; font-weight: 700; max-width: 640px; }
.pt-hero p { margin-top: 8px; font-size: 15px; opacity: .92; max-width: 560px; }
.pt-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pt-2col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pt-h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.pt-sub { color: var(--tx-3); margin-bottom: 18px; }
.cab-pagina { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cab-pagina .voltar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; color: var(--tx); box-shadow: var(--sombra); flex: none; text-decoration: none; }
.cab-pagina h1 { font-size: 22px; font-weight: 700; flex: 1; min-width: 0; }

/* ---------------- Rodapé ---------------- */
.pt-rodape { background: var(--brand-900); color: #fff; font-size: 12.5px; }
.pt-rodape .in { max-width: 1120px; margin: 0 auto; padding: 18px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pt-rodape a { color: #fff; }

/* Navegação inferior do app (só no celular) */
.app-nav { display: none; }

/* ---------------- Peças do app (valem no portal também) ---------------- */
.app-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; text-decoration: none; }
.app-titulo { font-size: 24px; font-weight: 700; padding: 2px 0 12px; }
.sec-tit { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 10px; gap: 10px; }
.sec-tit h2 { font-size: 16px; font-weight: 700; }
.sec-tit a { white-space: nowrap; font-size: 12.5px; color: var(--brand-500); font-weight: 600; text-decoration: none; }
.app-rodape-acao { position: sticky; bottom: 0; background: linear-gradient(to top, var(--fundo) 75%, transparent); padding: 14px 0 16px; }

.ev-card { display: block; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--borda); text-decoration: none; color: inherit; }
.ev-card:hover { border-color: var(--brand-200); }
.ev-card .capa { height: 112px; }
.ev-card .corpo-card { padding: 12px 14px 14px; }
.ev-card h3 { font-size: 15px; font-weight: 700; margin: 6px 0 4px; }
.ev-card .meta { font-size: 12.5px; color: var(--tx-2); display: flex; align-items: center; gap: 6px; }
.lista-ev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ev-linha { min-width: 0; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 10px; text-decoration: none; color: inherit; }
.ev-linha:hover { border-color: var(--brand-200); }
.ev-linha .data-box { width: 52px; height: 56px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; text-align: center; line-height: 1.05; flex: none; }
.ev-linha .data-box b { font-size: 19px; display: block; }
.ev-linha .data-box span { font-size: 10.5px; text-transform: uppercase; font-weight: 600; }
.ev-linha .txt { flex: 1; min-width: 0; }
.ev-linha .txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-linha .txt span { font-size: 12px; color: var(--tx-3); }

.abas { display: flex; gap: 6px; padding: 4px; background: var(--cinza-50); border-radius: 12px; margin: 0 0 14px; }
.abas a, .abas button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font: 600 13px var(--fonte); color: var(--tx-2); cursor: pointer; text-align: center; text-decoration: none; }
.abas .ativo { background: #fff; color: var(--brand-700); box-shadow: var(--sombra); }

.cal { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 12px; }
.cal-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-cab b { font-size: 15px; text-transform: capitalize; }
.cal-cab a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tx-2); text-decoration: none; }
.cal-cab a:hover { background: var(--fundo); }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-grade .ds { font-size: 11px; color: var(--tx-3); font-weight: 600; padding: 4px 0; }
.cal-grade .d { position: relative; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; cursor: pointer; border: 0; background: transparent; color: var(--tx); font-family: var(--fonte); text-decoration: none; }
.cal-grade .d:hover { background: var(--fundo); }
.cal-grade .d.fora { color: var(--tx-3); cursor: default; font-weight: 300; }
.cal-grade .d.hoje { font-weight: 700; color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-500); }
.cal-grade .d.sel { background: var(--brand-500); color: #fff; font-weight: 700; }
.cal-grade .pts { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; gap: 3px; justify-content: center; }
.cal-grade .pts i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); }
.cal-grade .d.sel .pts i { background: #fff; }
.pt-culto { background: var(--brand-500) !important; }
.pt-estudo { background: var(--brand-200) !important; }
.pt-evento { background: var(--acento-600) !important; }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--tx-2); margin-top: 10px; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.legenda i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.notif { background: #fff; border-radius: 18px; padding: 12px 14px; border: 1px solid var(--borda); display: flex; gap: 10px; align-items: flex-start; }
.notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif .txt { min-width: 0; font-size: 12.5px; }
.notif .txt b { display: block; font-size: 13px; }
.notif .txt small { color: var(--tx-3); }

.info-linha { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.info-linha .ic-i { color: var(--brand-500); margin-top: 2px; flex: none; }
.info-linha .rot { color: var(--tx-3); font-size: 11.5px; }
.info-linha .val { font-size: 13.5px; font-weight: 500; }

/* .so-cel some só no computador. Do jeito antigo (display:block !important no celular) ele
   atropelava o grid/flex do próprio componente; assim o elemento mantém o display dele. */
@media (min-width: 701px) { .so-cel { display: none !important; } }
/* Dia selecionado: o ponto do tipo (pt-* tem !important) sumia no fundo azul. */
.cal-grade .d.sel .pts i { background: #fff !important; }

/* ---------------- Celular = app ---------------- */
@media (max-width: 700px) {
  body.site { padding-bottom: 74px; }
  .pt-topo .in { padding: 10px 16px; gap: 10px; }
  .pt-topo .logo-pt { height: 34px; }
  .pt-menu, .pt-user .nome-user { display: none; }
  .pt-main { padding: 14px 16px 24px; }
  .pt-hero { padding: 22px 20px; border-radius: 18px; margin-bottom: 18px; }
  .pt-hero h1 { font-size: 21px; }
  .pt-grade { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-2col { grid-template-columns: minmax(0, 1fr); }
  .pt-h1 { font-size: 21px; }
  .cab-pagina h1 { font-size: 18px; }
  .pt-rodape .in { flex-direction: column; padding: 14px 16px; gap: 6px; }
  .app-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--borda); background: #fff; height: 74px; padding: 6px 4px 14px; z-index: 25; }
  .app-nav a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; gap: 3px; white-space: nowrap; letter-spacing: -.01em; font-size: 10.5px; color: var(--tx-3); text-decoration: none; font-weight: 500; }
  .app-nav a.ativo { color: var(--brand-500); font-weight: 700; }
  .app-nav a.ativo .pilula { background: var(--brand-50); }
  .app-nav .pilula { width: 52px; height: 28px; border-radius: 99px; display: grid; place-items: center; }
  .so-desk { display: none !important; }
  .tabela-caixa.vira-cartao table, .tabela-caixa.vira-cartao thead { display: none; }
  .linha2, .linha3 { grid-template-columns: minmax(0, 1fr); }
  body.sem-nav { padding-bottom: 0; }
  body.sem-nav .app-nav { display: none; }
}
/* No app Android o rodapé institucional sobra: o app tem a navegação própria. */
body.no-app .pt-rodape { display: none; }
