/* Cabeçalho compacto também nos tablets que não comportam o menu inteiro. */
:root {
  --pp-acao: #075f47;
  --pp-acao-escura: #104734;
  --pp-texto: #213c31;
  --pp-secundario: #42584d;
  --pp-linha: #c8d9cf;
  --pp-suave: #eff6f1;
  --pp-margem: clamp(16px, 4.6vw, 28px);
}
.masthead .principal { display: none; }
.masthead {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top);
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid #dbe5de;
}
.masthead .bar {
  min-height: 62px;
  height: auto;
  padding-block: 7px;
  gap: 9px;
}
.masthead .brand { min-height: 46px; min-width: 0; }
.masthead .bar>.brand img { width: clamp(101px, 28.5vw, 138px); height: auto; }
.masthead .bar>.nav-action {
  display: none;
}
.masthead .bar>#menu-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: var(--pp-texto);
  background: var(--pp-suave);
  border: 1px solid var(--pp-linha);
}
#menu-toggle span { display: grid; place-items: center; }
#menu-toggle .menu-fechar, #menu-toggle[aria-expanded=true] .menu-abrir { display: none; }
#menu-toggle[aria-expanded=true] .menu-fechar { display: grid; }
.masthead .bar>.wa-float {
  position: static;
  flex: 0 1 auto;
  margin-left: auto;
  width: auto;
  height: auto;
  min-height: 47px;
  padding: 8px clamp(8px,2.4vw,13px);
  gap: 6px;
  color: #fff;
  background: var(--pp-acao);
  border: 0;
  box-shadow: none;
  line-height: 1.15;
  text-align: center;
}
.masthead .bar>.wa-float svg { width: 21px; height: 21px; }
.masthead .bar>.wa-float span {
  display: block;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  font-size: .9rem;
  text-wrap: balance;
}
.mobile-nav {
  overflow-y: auto;
  max-height: calc(100dvh - 65px - env(safe-area-inset-top));
  overscroll-behavior: contain;
  border-radius: 0 0 18px 18px;
  padding: 4px max(var(--pp-margem),env(safe-area-inset-left)) 12px;
  box-shadow: 0 14px 30px #103c2824;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 9px 4px;
  border-bottom: 1px solid #e5ece6;
  color: var(--pp-texto);
  font-size: 1rem;
}
.mobile-nav a[aria-current] { color: var(--pp-acao); text-decoration: underline; text-underline-offset: 4px; }
.mobile-nav .menu-email { border: 0; color: var(--pp-acao); font-size: .94rem; overflow-wrap: anywhere; }
.masthead :is(a,button):focus-visible, main :is(a,button,summary):focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #116a51;
  outline-offset: 3px;
}

@media (min-width:761px) {
  html { scroll-padding-top: calc(80px + env(safe-area-inset-top)); }
  .capa-acoes>a:not(.btn), .selecao-tipos a, .local-links>* {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .footer-upper .social a, .parceiros-controles button { width: 44px; height: 44px; }
}

@media (max-width:760px) {
  :root { --shell: calc(100% - max(var(--pp-margem),env(safe-area-inset-left)) - max(var(--pp-margem),env(safe-area-inset-right))); }
  html { scroll-padding-top: calc(78px + env(safe-area-inset-top)); }
  .canais-topo { display: none; }
  .capa { background: linear-gradient(145deg,#fbfcf9,#f0f6f0); }
  .capa-grade { padding-block: 22px 20px; }
  .capa-contexto { font-size: .84rem; letter-spacing: .018em; color: #385b47; }
  .capa h1 { margin: .2em 0 .27em; font-size: clamp(2.4rem,11.7vw,3.65rem); line-height: 1.03; letter-spacing: -.058em; color: #183f30; }
  .capa-resumo { color: var(--pp-secundario); line-height: 1.52; font-size: 1rem; }
  .capa-acoes { display: flex; align-items: stretch; gap: 8px; margin-top: 16px; }
  .capa-acoes .btn {
    flex: 1 1 12rem;
    min-height: 49px;
    padding: 10px 12px;
    color: white;
    background: var(--pp-acao);
    font-size: .94rem;
    line-height: 1.22;
    text-align: center;
    white-space: normal;
  }
  .capa-acoes .btn span { text-wrap: balance; }
  .capa-acoes>a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 49px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #a9c1b2;
    color: var(--pp-acao-escura);
    background: #fff;
    font-size: .92rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
  .capa-composicao { --alto-foto: clamp(165px,51vw,270px); margin-top: 18px; border-radius: 16px; }
  .capa-foto a span { color: var(--pp-texto); font-size: .9rem; padding: 10px 6px 0; }
  .capa-foto:first-child picture { border-top-left-radius: 16px; }
  .capa-foto:nth-child(2) picture { border-top-right-radius: 16px; }
  .temas-cuidado h2 { margin-bottom: 12px; font-size: clamp(1.19rem,5vw,1.55rem); }
  .tema-opcoes { gap: 6px; background: transparent; border-radius: 0; overflow: visible; }
  .tema-opcoes a:nth-child(n) {
    min-height: 53px;
    padding: 8px 4px;
    gap: 5px;
    border: 1px solid #bfd4c7;
    border-radius: 12px;
    color: #234b38;
    background: #f8fbf6;
    font-size: .88rem;
  }
  .tema-opcoes a[aria-selected=true]:nth-child(n) { background: var(--pp-acao-escura); border-color: var(--pp-acao-escura); color: #fff; }
  .tema-opcoes a[aria-selected=true]::after { display: none; }
  .tema-opcoes a:focus-visible { outline-color: #116a51; outline-offset: 2px; }
  .tema-respostas article { padding-top: 14px; }
  .tema-respostas p, .selecao-artigo p, .home-experiencias .atlas-heading p, .home-experiencias .vg-cabecalho p { font-size: .97rem; line-height: 1.53; }
  .tema-respostas .texto-acao, .selecao-todos, .location-options .local-links>*,
  .home-orientacoes .text-link, .home-orientacoes .related-links a, .locations .section-intro>.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    line-height: 1.35;
    padding-block: 8px;
  }
  .home-experiencias, .home-orientacoes { gap: 32px; padding-block: 24px; }
  .selecao-top { gap: 13px; }
  .selecao-tipos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; padding: 4px; border-radius: 12px; }
  .selecao-tipos a { min-height: 46px; padding: 6px 3px; font-size: .91rem; text-align: center; border-radius: 8px; }
  .selecao-grade { gap: 16px; }
  .selecao-artigo + .selecao-artigo { border-top: 1px solid #dfe7e0; padding-top: 16px; }
  .selecao-artigo a { gap: 14px; }
  .selecao-artigo picture { border-radius: 10px; }
  .selecao-artigo .texto-acao { font-size: .92rem; }
  .rotina-escolha select { min-height: 48px; font-size: 1rem; }
  .home-orientacoes .faq-layout summary { min-height: 48px; font-size: 1rem; padding-block: 12px; }
  .parceiros-controles button { width: 45px; height: 45px; }
  .locations .location-options>[role=group] { gap: 6px; }
  .locations .location-option { min-height: 71px; padding: 8px 4px; border-color: var(--pp-linha); }
  .locations .location-option b { font-size: .89rem; line-height: 1.16; }
  .locations .location-option small { font-size: .76rem; line-height: 1.2; }
  .locations .location-option[aria-pressed=true] { border-color: var(--pp-acao); background: #e8f4eb; box-shadow: inset 0 0 0 1px var(--pp-acao); }
  #local-dados a { display: inline-flex; align-items: center; min-height: 44px; }
  .location-map .map-route { min-height: 44px; }
  .site-footer { padding-top: 28px; padding-bottom: max(18px,env(safe-area-inset-bottom)); }
  .footer-upper { grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr); gap: 20px 16px; }
  .footer-upper>div:first-child { grid-column: 1 / -1; }
  .footer-upper>div>a { display: flex; min-height: 44px; align-items: center; line-height: 1.36; color: var(--pp-secundario); overflow-wrap: anywhere; }
  .footer-upper .social a { width: 46px; height: 46px; min-height: 46px; padding: 0; }
  .footer-bottom { margin-top: 18px; padding-block: 17px 8px; }
}
@media (max-width:359px) {
  .masthead .bar { gap: 6px; }
  .masthead .bar>.brand img { width: 97px; }
  .masthead .bar>.wa-float { padding-inline: 8px; gap: 4px; }
  .masthead .bar>.wa-float span { font-size: .85rem; }
  .capa-acoes { display: grid; grid-template-columns: minmax(0,1fr) 86px; }
  .capa-acoes .btn { padding-inline: 6px; }
  .capa-acoes>a:not(.btn) { padding-inline: 5px; }
  .tema-opcoes a:nth-child(n) { flex-direction: column; gap: 3px; font-size: .84rem; }
  .tema-opcoes a svg { width: 18px; height: 18px; }
  .locations .location-options>[role=group] { grid-template-columns: 1fr; }
  .locations .location-option { display: flex; min-height: 52px; padding-inline: 12px; text-align: left; }
  .locations .location-option .unit-pin { display: inline-flex; }
}
