/* Shell móvel — referência portal_ac_mobile (DEC-296).
   Visível até 1000 px; o conteúdo é único em .portal-main. */
.mobile-header { display: none; }

@media (max-width: 1000px) {
  .topbar, .sidebar { display: none !important; }
  .inicio-desktop { display: none !important; }
  .inicio-mobile { display: block; }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--green-dark);
    border-bottom: 1px solid var(--green-dark);
    color: #fff;
    padding: 13px 20px;
    padding-top: max(13px, env(safe-area-inset-top));
  }
  .mobile-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; }
  .mobile-brand strong { display: block; font-size: 1.08rem; line-height: 1.25; font-weight: 750; }
  .mobile-brand small { display: block; margin-top: 2px; color: #d7e4dd; font-size: 0.82rem; line-height: 1.3; }
  .mobile-brand__mark, .mobile-header__actions { display: none; }
  .mobile-menu-button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
  .mobile-menu-button .icon { width: 25px; height: 25px; }
  .mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; background: rgba(20, 33, 42, .55); }
  .mobile-menu__painel { display: flex; flex-direction: column; width: min(86vw, 340px); height: 100%; overflow-y: auto; background: var(--surface); color: var(--text); padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .mobile-menu__cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .mobile-menu__cabecalho h2 { margin: 0; font-size: 1.2rem; }
  .mobile-menu__fechar { min-height: 44px; margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--green); font: inherit; font-weight: 650; cursor: pointer; }
  .mobile-menu__nav { display: grid; gap: 3px; }
  .mobile-menu__rotulo { margin: 14px 0 4px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-menu__nav a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: .9375rem; }
  .mobile-menu__nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); font-weight: 700; }
  .mobile-menu__nav .icon { width: 20px; height: 20px; color: var(--green); }
  .mobile-menu__destaque { margin-top: 14px; background: var(--green) !important; color: #fff !important; font-weight: 700 !important; }
  .mobile-menu__destaque .icon { color: #fff; }
  .menu-aberto { overflow: hidden; }

  .portal-main { width: 100%; max-width: 1000px; margin-inline: auto; padding: 20px 16px calc(73px + 24px + env(safe-area-inset-bottom)); }

  .bottom-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); }
  .bottom-nav > div { display: flex; justify-content: center; gap: 4px; max-width: 560px; margin: auto; }
  .bottom-nav a { display: grid; align-content: center; justify-items: center; gap: 5px; flex: 1 1 0; min-height: 73px; padding: 9px 4px; color: var(--muted); text-align: center; text-decoration: none; font-size: 0.8rem; font-weight: 600; }
  .bottom-nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); font-weight: 750; }
  .bottom-nav a:focus-visible { outline-offset: -4px; }
  .bottom-nav .icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}

@media (min-width: 1001px) {
  .mobile-header, .bottom-nav, .mobile-menu { display: none !important; }
  .portal-main { max-width: none; }
}

@media (max-width: 1000px) {
  .mobile-brand__mark .icon { width: 24px; height: 24px; }
}
