/* JuntaPlay — organização da Central de Ajuda (etapas 1 e 2).
   Carregada somente pela Central, em todos os seus modos. A faixa de cookies mantém
   o escopo anterior (índice e pagar-pix) por .jp-help-cookie-safe. Os ajustes novos usam .jp-help-page.
   Preserva textos, ícones, cores, URLs, formulários e comportamentos; ajusta tipografia e espaços.
   Reversão: apagar este arquivo e a linha que o carrega no index.php. */

/* 1 — "Configurar cookies" não cobre mais a busca nem outros controles.
   Abaixo de 1440 px, o conteúdo alcança o canto do botão; ali o botão continua fixo, com o mesmo texto e ação,
   mas dentro de uma faixa própria no rodapé da tela, com o fundo e a borda da página. A página ganha o mesmo
   espaço no fim, e a rolagem por teclado mantém o elemento em foco acima da faixa. */
@media (max-width:1439px){
  html:has(body.jp-help-cookie-safe){scroll-padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  body.jp-help-cookie-safe{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
  body.jp-help-cookie-safe::after{content:"";position:fixed;left:0;right:0;bottom:0;z-index:64;height:calc(70px + env(safe-area-inset-bottom,0px));background:var(--paper,#fff);border-top:1px solid var(--line,#deebee);box-shadow:0 -1px 0 #0429400a}
  html body.jp-help-cookie-safe #jp-cookie-manager{bottom:calc(13px + env(safe-area-inset-bottom,0px))} /* cookies.css carrega depois */
  /* Com a faixa de consentimento aberta, ela ocupa o rodapé da tela; a faixa reservada não aparece. */
  body.jp-help-cookie-safe.jp-cookie-banner-open::after{content:none}
}
/* 1b — Celular, índice da Central: a busca vem logo depois do título e da explicação, e o cartão
   "Encontre a orientação de que precisa" (só texto, sem links) logo depois da busca. Assim a busca inteira fica na
   primeira tela, acima da faixa, em celulares de 390 px ou mais. A ordem no código e a do teclado não mudam.
   Em navegadores sem :has(), nada disso se aplica e a abertura fica como hoje. */
@media (max-width:640px){
  .jph:has(> .jph-hero){display:flex;flex-direction:column}
  .jph:has(> .jph-hero) > .jph-hero{display:contents}
  .jph:has(> .jph-hero) .jph-hero__copy{order:0;margin-top:8px}
  .jph:has(> .jph-hero) > .jph-search{order:0;margin:24px 0}
  .jph:has(> .jph-hero) .jph-hero__aside{order:1;margin-bottom:43px}
  .jph:has(> .jph-hero) > :not(.jph-hero):not(.jph-search){order:2}
}
@media print{
  body.jp-help-cookie-safe::after{content:none}
  body.jp-help-cookie-safe{padding-bottom:0}
}

/* 2 — Intervalos entre atalhos, categorias e guias: de 103 e 115 px para cerca de 60 px, como os demais (54 a 65 px).
   As linhas que separam a seção de categorias continuam. */
.jph .jph-journeys{padding-bottom:30px}
.jph .jph-categories{padding-top:30px;padding-bottom:30px}
.jph .jph-guides{padding-top:30px}

/* 3 — Seis categorias em 3 colunas no computador (3 + 3, sem espaços vazios). Tablet (2) e celular (1) já estavam equilibrados. */
@media (min-width:901px){
  .jph .jph-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* 4 — Guias no celular: sem a altura mínima de 232 px; cada cartão tem a altura do próprio conteúdo, sem cortes.
   No computador e no tablet, "Abrir guia" continua alinhado por linha. */
@media (max-width:640px){
  .jph .jph-guide-card{min-height:0}
}

/* 5a — Sumário "Nesta página": duas colunas no computador, lidas de cima para baixo (1 e 2 à esquerda, 3 e 4 à direita).
   No celular já era um item por linha. */
@media (min-width:641px){
  .jph .jph-toc ol{display:block;columns:2;column-gap:44px}
  .jph .jph-toc li{break-inside:avoid;margin:0 0 8px}
}
/* 5b — "Próximos passos": cada "Requer conta" logo abaixo do seu botão, sem mudar o HTML nem a ordem de leitura. */
@media (min-width:641px){
  .jph .jph-next .jph-actions{display:grid;grid-template-rows:auto auto;grid-auto-flow:column;grid-auto-columns:max-content;justify-content:start;align-items:start;column-gap:12px;row-gap:6px}
}
@media (max-width:640px){
  .jph .jph-next .jph-actions{display:grid;grid-template-columns:minmax(0,1fr);row-gap:4px}
  .jph .jph-next .jph-action-note{margin-bottom:10px}
  .jph .jph-next .jph-action-note:last-child{margin-bottom:0}
}

/* Etapa 2: navegação e densidade. Conteúdo, busca GET e details nativos preservados. */
body.jp-help-page .jph{padding-top:30px;padding-bottom:42px;font-family:"JuntaPlay Figtree",Figtree,Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.55}
body.jp-help-page .jph :is(h1,h2,h3,.jph-hero__aside strong,.jph-journey strong,.jph-category strong,.jph-support strong,.jph-toc strong){font-family:"JuntaPlay Figtree",Figtree,Inter,"Segoe UI",Arial,sans-serif;font-weight:650;letter-spacing:-.02em}
body.jp-help-page .jph h1{font-size:28px;line-height:1.18}
body.jp-help-page .jph h2{font-size:20px;line-height:1.25}
body.jp-help-page .jph h3{font-size:16px;line-height:1.35}
body.jp-help-page .jph :is(.jph-hero__aside,.jph-journey,.jph-category,.jph-support,.jph-toc) strong{font-size:16px;line-height:1.35}
body.jp-help-page .jph :is(.jph-copy-section,.jph-steps,.jph-next) h2{font-size:20px;line-height:1.25}
body.jp-help-page .jph .jph-hero{gap:24px;padding-bottom:18px}
body.jp-help-page .jph .jph-hero h1{margin-top:8px}
body.jp-help-page .jph .jph-hero__copy p{margin-top:10px;font-size:15px;line-height:1.55}
body.jp-help-page .jph .jph-hero__aside{padding:14px 16px;gap:6px}
body.jp-help-page .jph .jph-search{margin-bottom:12px}
body.jp-help-page .jph .jph-quick-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 24px}
body.jp-help-page .jph .jph-quick-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--jph-line);border-radius:10px;background:var(--jph-paper);color:var(--jph-teal);font-size:14px;font-weight:650}
body.jp-help-page .jph .jph-quick-nav a:hover{background:var(--jph-soft)}
body.jp-help-page .jph :is(#guias,#perguntas-frequentes,#suporte){scroll-margin-top:90px}
body.jp-help-page .jph .jph-section-heading{margin-bottom:14px}
body.jp-help-page .jph .jph-section-heading h2{margin-top:5px}
body.jp-help-page .jph .jph-section-heading p{margin-top:7px}
body.jp-help-page .jph .jph-journeys{padding-bottom:24px}
body.jp-help-page .jph .jph-journey{min-height:0;padding:16px;column-gap:12px}
body.jp-help-page .jph .jph-journey>span:not(.jph-journey__icon):not(.jph-label){margin-top:10px}
body.jp-help-page .jph .jph-categories{padding-top:24px;padding-bottom:24px}
body.jp-help-page .jph .jph-category{min-height:0;padding:16px}
body.jp-help-page .jph .jph-category__icon{margin-bottom:10px}
body.jp-help-page .jph .jph-category .jph-text-link{padding-top:10px;min-height:34px}
body.jp-help-page .jph .jph-guides{padding-top:24px}
body.jp-help-page .jph .jph-guide-grid{gap:12px;align-items:stretch}
body.jp-help-page .jph .jph-guide-card{min-height:0;padding:16px}
body.jp-help-page .jph .jph-guide-card__meta{margin-bottom:10px;gap:8px}
body.jp-help-page .jph .jph-guide-card h3{font-size:16px;line-height:1.35}
body.jp-help-page .jph .jph-guide-card p{margin-top:7px;font-size:14px;line-height:1.5}
body.jp-help-page .jph .jph-guide-card .jph-text-link{padding-top:12px;min-height:36px}
body.jp-help-page .jph .jph-faq{padding-top:30px}
body.jp-help-page .jph .jph-faq-item summary{min-height:48px;padding:10px 2px;gap:14px;font-size:15px;line-height:1.45;font-weight:600}
body.jp-help-page .jph .jph-faq-answer{padding:0 36px 14px 2px}
body.jp-help-page .jph .jph-faq-answer p{font-size:15px;line-height:1.6}
body.jp-help-page .jph .jph-legacy{margin-top:26px;padding:16px;gap:13px}
body.jp-help-page .jph .jph-legacy h2{font-size:18px}
body.jp-help-page .jph .jph-support{margin-top:26px;padding:16px;gap:14px}
body.jp-help-page .jph .jph-page-heading{margin-bottom:24px}
body.jp-help-page .jph .jph-filter-line{margin-bottom:16px}
body.jp-help-page .jph .jph-article__header{padding-bottom:20px}
body.jp-help-page .jph .jph-toc{margin:20px 0;padding:16px 18px}
body.jp-help-page .jph .jph-copy-section{padding-top:20px}
@media(max-width:640px){
body.jp-help-page .jph{padding-top:22px;padding-bottom:30px}
body.jp-help-page .jph h1{font-size:26px}
body.jp-help-page .jph h2{font-size:20px}
body.jp-help-page .jph .jph-hero__copy{margin-top:0}
body.jp-help-page .jph .jph-search{margin:16px 0 12px}
body.jp-help-page .jph .jph-hero__aside{margin-bottom:18px}
body.jp-help-page .jph .jph-quick-nav{margin-bottom:22px;gap:6px}
body.jp-help-page .jph .jph-quick-nav a{padding:8px 10px;font-size:13px}
body.jp-help-page .jph .jph-search select{height:44px}
body.jp-help-page .jph .jph-journey,body.jp-help-page .jph .jph-category,body.jp-help-page .jph .jph-guide-card{padding:14px}
body.jp-help-page .jph .jph-guide-card .jph-text-link,body.jp-help-page .jph .jph-category .jph-text-link{min-height:44px}
body.jp-help-page .jph .jph-faq-item summary{min-height:48px}
body.jp-help-page .jph .jph-faq-answer{padding-right:2px}
body.jp-help-page .jph .jph-legacy h2{font-size:18px}
body.jp-help-page .jph .jph-support{padding:14px}
}

body.jp-support-page #conteudo{padding-top:18px;padding-bottom:36px;font-family:"JuntaPlay Figtree",Figtree,Inter,"Segoe UI",Arial,sans-serif}
body.jp-support-page #conteudo :is(h1,h2,h3,p,label,input,select,textarea,button){font-family:"JuntaPlay Figtree",Figtree,Inter,"Segoe UI",Arial,sans-serif}
body.jp-support-page #conteudo .page-heading{margin:0 0 12px;text-align:left}
body.jp-support-page #conteudo .page-heading h1{margin:0;font-size:28px!important;line-height:1.2;font-weight:650;letter-spacing:-.02em}
body.jp-support-page #conteudo .page-heading p{margin:6px 0 0;font-size:15px!important;line-height:1.5}
body.jp-support-page #conteudo h2{font-size:18px!important;line-height:1.3;font-weight:650;letter-spacing:0}
body.jp-support-page #conteudo .jp-support-nav{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid var(--line,#deebee)}
body.jp-support-page #conteudo .jp-support-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line,#deebee);border-radius:10px;background:var(--paper,#fff);color:var(--ink,#042940);font-size:14px;font-weight:650;text-decoration:none}
body.jp-support-page #conteudo .jp-support-nav a:hover{background:var(--soft,#eef8f6)}
body.jp-support-page #conteudo :is(#enviar-solicitacao,#minhas-solicitacoes,#central-de-ajuda){scroll-margin-top:90px}
body.jp-support-page #conteudo .admin-panel{margin-bottom:14px}
body.jp-support-page #conteudo .admin-panel-head{padding:14px 16px;gap:12px}
body.jp-support-page #conteudo .admin-panel-head p{margin:4px 0 0;font-size:14px!important;line-height:1.45}
body.jp-support-page #conteudo .admin-panel-head .tile-icon{width:40px;height:40px;flex:0 0 40px}
body.jp-support-page #conteudo .admin-panel-body{padding:16px}
body.jp-support-page #conteudo .jp-support-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
body.jp-support-page #conteudo .jp-support-form>label,body.jp-support-page #conteudo .jp-support-form>.field-hint,body.jp-support-page #conteudo .jp-support-form>.btn{grid-column:1/-1;margin:0}
body.jp-support-page #conteudo .jp-support-form>label.jp-support-short,body.jp-support-page #conteudo .jp-support-form>.jp-support-category{grid-column:auto;min-width:0}
body.jp-support-page #conteudo .jp-support-form label{display:grid;gap:5px;margin:0;font-size:14px!important;font-weight:600;line-height:1.4;min-width:0}
body.jp-support-page #conteudo .jp-support-form :is(input:not([type=hidden]),select,textarea){width:100%;min-width:0;margin:0;font-size:15px!important;font-weight:400}
body.jp-support-page #conteudo .jp-support-form :is(input:not([type=hidden]),select){min-height:44px;padding:9px 12px}
body.jp-support-page #conteudo .jp-support-form textarea{height:160px;min-height:160px;padding:11px 12px;resize:vertical;line-height:1.5}
body.jp-support-page #conteudo .jp-support-form .field-hint{font-size:13px!important;line-height:1.5;color:var(--muted,#607480)}
body.jp-support-page #conteudo .jp-support-form .support-sla-note{margin:6px 0 0}
body.jp-support-page #conteudo .jp-support-form>.btn{justify-self:start;min-height:44px}
body.jp-support-page #conteudo #minhas-solicitacoes .task-row{padding:8px 0;gap:12px;min-height:44px}
body.jp-support-page #conteudo #minhas-solicitacoes .task-row>div{min-width:0;flex:1}
body.jp-support-page #conteudo #minhas-solicitacoes .task-row b{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
body.jp-support-page #conteudo #minhas-solicitacoes .task-row p{margin:3px 0 0;font-size:13px!important;line-height:1.45}
body.jp-support-page #conteudo .space-top{margin-top:14px}
body.jp-support-page #conteudo .notice{padding:14px 16px}
body.jp-support-page #conteudo .notice p{margin:4px 0 0;font-size:14px!important;line-height:1.5}
body.jp-support-page #conteudo .jp-support-help{display:grid;grid-template-columns:38px minmax(0,1fr);gap:5px 12px;padding:16px}
body.jp-support-page #conteudo .jp-support-help>.tile-icon{grid-column:1;grid-row:1/span 3;width:38px;height:38px}
body.jp-support-page #conteudo .jp-support-help>:not(.tile-icon){grid-column:2;margin:0}
body.jp-support-page #conteudo .jp-support-help p{font-size:14px!important;line-height:1.5}
body.jp-support-page #conteudo .jp-support-help .btn{justify-self:start;margin-top:4px}
@media(max-width:640px){
body.jp-support-page #conteudo{padding-top:14px;padding-bottom:28px}
body.jp-support-page #conteudo .page-heading h1{font-size:24px!important}
body.jp-support-page #conteudo .jp-support-nav{gap:6px;margin-bottom:12px}
body.jp-support-page #conteudo .jp-support-nav a{padding:8px 10px;font-size:13px}
body.jp-support-page #conteudo .jp-support-form{grid-template-columns:minmax(0,1fr);gap:12px}
body.jp-support-page #conteudo .jp-support-form>label.jp-support-short,body.jp-support-page #conteudo .jp-support-form>.jp-support-category{grid-column:1/-1}
body.jp-support-page #conteudo .jp-support-form :is(input:not([type=hidden]),select,textarea){font-size:16px!important}
body.jp-support-page #conteudo .jp-support-form>.btn{justify-self:stretch}
body.jp-support-page #conteudo .admin-panel-head,body.jp-support-page #conteudo .admin-panel-body{padding:14px}
body.jp-support-page #conteudo .jp-support-help{padding:14px;gap:5px 10px}
body.jp-support-page #conteudo .jp-support-help .btn{min-height:44px}
}
