/* ==========================================================================
   OCTOS — CELULAR (01/10/2026)
   Ultima folha de todas as paginas do design system novo. O que cada pagina
   ja resolve no celular continua nas folhas dela; aqui fica o acabamento que
   vale para todas: toque, menu, rodape, migalhas e rolagens laterais.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label, select, [role="tab"] { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="tab"] { touch-action: manipulation; }

/* ---------- toque: o que e clicavel afunda um pouco sob o dedo ------------ */
@media (hover: none) {
  .mn .mn-btn:active, .o-btn:active, .hm-aba:active { transform: scale(.97); }
  .ct-card, .o-card--interactive, .sl-lado--leia, .sl-card--link, .sl-ia--link, .mn-more a {
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  }
  .ct-card:active, .o-card--interactive:active, .sl-lado--leia:active,
  .sl-card--link:active, .sl-ia--link:active, .mn-more a:active { transform: scale(.985); }
  /* no toque nao existe hover: o cartao nao fica preso levantado */
  .ct-card:hover { transform: none; }
}

/* ---------- migalhas: alvo de toque maior, mesmo desenho ------------------ */
.os-migalhas a, .ar-kicker a {
  display: inline-block; padding: .9375rem .5625rem; margin: -.9375rem -.5625rem;
}

/* o link sublinhado nao pode crescer sem afastar o fio: a area de toque
   cresce por um pseudo-elemento invisivel */
.mn .hm-link { position: relative; }
.mn .hm-link::after { content: ""; position: absolute; inset: -12px -4px; }

@media (max-width: 55.99rem) {
  /* a folga embaixo era da barra fixa de CTA, que estas paginas nao usam:
     sobrava uma faixa vazia depois do rodape */
  body:not(:has(.lp-cta-bar)) { padding-bottom: 0; }
  .mn .mn-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }

  /* ---------- menu aberto: a pagina recua ---------------------------------- */
  /* veu escuro com desfoque por tras do painel; a pagina nao rola por baixo.
     Tocar no veu fecha o menu (o clique cai fora da .o-nav). */
  html:has(.mn-menu[aria-expanded="true"]) { overflow: hidden; }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 59; pointer-events: none;
    background: rgba(18, 18, 18, .32);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }
  body:has(.mn-menu[aria-expanded="true"])::after {
    opacity: 1; visibility: visible;
    transition: opacity .3s cubic-bezier(.2, .8, .2, 1);
  }
  .o-nav { z-index: 60; }

  /* os itens entram um a um, logo depois do painel */
  .mn-menu-painel:not([hidden]) > a { animation: mn-item .42s cubic-bezier(.2, .8, .2, 1) both; }
  .mn-menu-painel > a:nth-child(2) { animation-delay: .04s; }
  .mn-menu-painel > a:nth-child(3) { animation-delay: .08s; }
  .mn-menu-painel > a:nth-child(4) { animation-delay: .12s; }
  .mn-menu-painel > a:nth-child(5) { animation-delay: .16s; }
  .mn-menu-painel > a:nth-child(6) { animation-delay: .2s; }
  .mn-menu-painel a { min-height: 3.25rem; text-decoration: none; }

  /* a acao principal fecha o painel, no preto da casa */
  .mn-menu-painel a.mn-menu-cta {
    justify-content: space-between; gap: 1rem;
    margin-top: .375rem; padding-inline: 1rem;
    border-top: 0; border-radius: 8px;
    background: var(--os-preto, #1C1C1C); color: #FFFFFF;
  }
  .mn-menu-painel a.mn-menu-cta:hover, .mn-menu-painel a.mn-menu-cta:active { text-decoration: none; }
  .mn-menu-cta svg { width: 16px; height: 16px; flex: none; }
  .mn-nav-escuro .mn-menu-painel a.mn-menu-cta { background: #FFFFFF; color: var(--os-preto, #1C1C1C); }
}
@keyframes mn-item { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- rodape: cada link com altura de toque ------------------------ */
@media (max-width: 47.99rem) {
  .mn-indice ul { gap: 0; }
  .mn-indice a { display: block; padding-block: .8125rem; }
  .mn-indice__tit { margin-bottom: .5rem; }
}

/* ---------- abas da home: encaixe ao rolar, altura de toque -------------- */
@media (max-width: 59.99rem) {
  .hm-abas { scroll-snap-type: x proximity; scroll-padding-inline: var(--octos-gutter); overscroll-behavior-x: contain; }
  .hm-aba { scroll-snap-align: start; min-height: 2.75rem; }
}
/* raio do design system: 8px */
.hm-ia { border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .mn-menu-painel:not([hidden]) > a { animation: none; }
  body::after { transition: none; }
}
