/* =========================================================
   Mãe Atípica UP — UX final override
   Tokens globais → Blog → Post → Header/Rodapé → Breakpoints
   ========================================================= */

:root{
  --gutter:clamp(20px,5vw,40px);
  --read:720px;
  --wide:1040px;
  --h1:clamp(2.125rem,1.5rem + 2.4vw,3.25rem);
  --h2-section:clamp(1.75rem,1.3rem + 1.8vw,2.625rem);
  --h2-article:clamp(1.625rem,1.2rem + 1.4vw,2.25rem);
  --h3-card:clamp(1.25rem,1rem + .8vw,1.625rem);
  --h3-post:clamp(1.125rem,1rem + .4vw,1.3rem);
  --kicker:12.5px;
  --focus:#356E73;
}

html,body{overflow-x:hidden;}
.maeup-wrap{
  width:min(var(--wide),calc(100% - (var(--gutter) * 2)))!important;
  max-width:none!important;
  margin-inline:auto!important;
}
.maeup-site a:focus-visible,
.maeup-header a:focus-visible,
.maeup-footer a:focus-visible,
.maeup-site button:focus-visible,
.maeup-site input:focus-visible,
.maeup-site summary:focus-visible{
  outline:3px solid var(--focus)!important;
  outline-offset:3px!important;
  border-radius:8px;
}

/* ========================= BLOG ========================= */
.maeup-blog-page .maeup-kicker,
.maeup-blog-page .maeup-topic-label,
.maeup-blog-page .maeup-trail-number{
  font-size:var(--kicker)!important;
  color:var(--mu-terracotta-dark)!important;
}
.maeup-blog-page .maeup-section-title{
  font-size:var(--h2-section)!important;
  line-height:1.08!important;
}
.maeup-blog-hero{
  width:min(var(--wide),calc(100% - (var(--gutter) * 2)))!important;
  padding:34px 0 28px!important;
}
.maeup-blog-hero h1{
  font-size:var(--h1)!important;
  line-height:1.04!important;
  max-width:20ch!important;
}
.maeup-start-grid>*,
.maeup-trail-grid>*,
.wp-block-post-template>*{margin-block-start:0!important;}
.maeup-start-grid,.maeup-trail-grid{align-items:stretch!important;}
.maeup-start-card,.maeup-trail-card{
  display:flex!important;
  flex-direction:column!important;
}
.maeup-start-card>:last-child,
.maeup-trail-card>:last-child{margin-top:auto!important;}
.maeup-start-card h3,
.maeup-trail-card h3{font-size:var(--h3-card)!important;}
.maeup-blog-post-grid .wp-block-post-title{font-size:var(--h3-post)!important;}
.maeup-blog-post-grid .wp-block-post-excerpt{font-size:15px!important;}
.maeup-filter-chip{min-height:44px!important;}
.maeup-blog-post-grid .page-numbers,
.maeup-blog-post-grid .wp-block-query-pagination-previous,
.maeup-blog-post-grid .wp-block-query-pagination-next{
  min-width:44px!important;
  min-height:44px!important;
}

/* ========================= POST ========================= */
.maeup-single-post{overflow:clip!important;}

/* P1 — um único eixo de leitura */
.maeup-article-head-inner,
.maeup-content-shell,
.maeup-toc,
.maeup-article-tags{
  width:min(var(--read),100%)!important;
  max-width:var(--read)!important;
  margin-inline:auto!important;
}
.entry-content.has-global-padding,
.wp-block-post-content.has-global-padding{
  padding-inline:0!important;
}
.entry-content>*,
.wp-block-post-content>*{max-width:100%!important;}

/* P2 — cabeçalho */
.maeup-article-head{
  padding:34px var(--gutter) 28px!important;
  border-bottom:0!important;
  background:linear-gradient(180deg,var(--mu-cream) 0%,#FFFDF9 100%);
}
.maeup-article-head .wp-block-post-title{
  width:100%!important;
  max-width:var(--read)!important;
  font-size:var(--h1)!important;
  line-height:1.04!important;
  letter-spacing:-.03em!important;
  margin:0!important;
  text-wrap:balance;
}
.maeup-article-deck{
  width:100%!important;
  max-width:var(--read)!important;
  margin:14px 0 0!important;
  font-size:18px!important;
  line-height:1.62!important;
}
.maeup-article-meta{
  width:100%!important;
  max-width:var(--read)!important;
  margin-top:16px!important;
  font-size:14px!important;
  color:#665249!important;
}
.maeup-trail-label{
  min-height:42px!important;
  margin-bottom:16px!important;
}

/* P3 — capa alinhada à coluna */
.maeup-article-visual{
  width:min(var(--read),calc(100% - (var(--gutter) * 2)))!important;
  max-width:var(--read)!important;
  margin:22px auto 0!important;
}
.maeup-article-cover{
  width:100%!important;
  max-width:var(--read)!important;
  margin-inline:auto!important;
}
.maeup-article-cover img{
  width:100%!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
  border-radius:20px!important;
}

/* coluna de texto */
.maeup-content-shell{
  padding:28px 0 18px!important;
}
.maeup-content-shell .wp-block-post-content{
  font-size:18.5px!important;
  line-height:1.75!important;
}
.maeup-content-shell .wp-block-post-content p{margin:0 0 1.35em!important;}
.maeup-content-shell .wp-block-post-content h2{
  font-size:var(--h2-article)!important;
  line-height:1.14!important;
  margin:2.5em 0 .6em!important;
  scroll-margin-top:80px!important;
}
.maeup-content-shell .wp-block-post-content h3{
  font-size:clamp(1.35rem,1.15rem + .7vw,1.75rem)!important;
  line-height:1.18!important;
  margin:1.8em 0 .55em!important;
  scroll-margin-top:80px!important;
}
.maeup-content-shell .wp-block-post-content ul,
.maeup-content-shell .wp-block-post-content ol{
  padding-left:1.15em!important;
}
.maeup-content-shell .wp-block-post-content a{
  color:var(--mu-terracotta-dark)!important;
  text-decoration:underline!important;
  text-underline-offset:.16em;
}
.maeup-content-shell .wp-block-post-content a:hover{color:var(--mu-brown)!important;}

/* P4 — sumário */
.maeup-toc{
  margin:0 auto 28px!important;
  border-radius:18px!important;
}
.maeup-toc summary{
  min-height:54px;
  padding:15px 18px!important;
}
.maeup-toc summary span{font-size:20px!important;}
.maeup-toc summary small{
  font-size:12px!important;
  color:var(--mu-terracotta-dark)!important;
}
.maeup-toc ol{
  list-style:none!important;
  counter-reset:toc;
  margin:0!important;
  padding:0 18px 16px!important;
}
.maeup-toc li{
  counter-increment:toc;
  display:grid!important;
  grid-template-columns:1.75em minmax(0,1fr);
  align-items:start;
  min-height:40px;
  margin:0!important;
  padding:7px 0!important;
  color:var(--mu-brown-soft)!important;
  font-size:15px!important;
}
.maeup-toc li:before{
  content:counter(toc) ".";
  color:var(--mu-terracotta-dark);
  font-weight:700;
}
.maeup-toc li.level-3{margin-left:18px!important;}
.maeup-toc li a{
  display:inline!important;
  line-height:1.45!important;
}

/* P6/P7 */
.maeup-article-tags{
  margin-top:42px!important;
  padding-top:22px!important;
}
.maeup-topic-label{font-size:var(--kicker)!important;}
.maeup-article-tags .wp-block-post-terms a{
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
}

/* P8/P9 — continuidade */
.maeup-after-article{
  width:min(var(--wide),calc(100% - (var(--gutter) * 2)))!important;
  max-width:var(--wide)!important;
  margin-inline:auto!important;
  padding:22px 0 76px!important;
  display:flex;
  flex-direction:column;
}
.maeup-trail-nav{order:1;}
.maeup-related-products{order:2;}
.maeup-related-reading{order:3;}

.maeup-trail-nav{
  margin-top:24px!important;
  padding:28px!important;
  border-radius:24px!important;
}
.maeup-trail-nav-top{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:end;
  margin-bottom:18px;
}
.maeup-trail-nav-top h2{
  font-family:'Playfair Display',serif!important;
  font-size:var(--h2-section)!important;
  font-weight:500!important;
  line-height:1.08!important;
  margin:0!important;
  color:var(--mu-cream)!important;
}
.maeup-trail-progress{
  margin:8px 0 0!important;
  color:#D8C7BD!important;
  font-size:13px!important;
}
.maeup-trail-nav-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.maeup-trail-nav-grid:has(.maeup-trail-nav-card:only-child){
  grid-template-columns:1fr!important;
}
.maeup-trail-nav-card{
  min-height:108px!important;
  padding:18px!important;
  border-radius:17px!important;
}
.maeup-trail-nav-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}
.maeup-trail-nav-footer .maeup-link{min-height:44px;align-items:center;}

.maeup-related-reading{padding:54px 0 4px!important;}
.maeup-related-reading-head h2{font-size:var(--h2-section)!important;}
.maeup-related-reading-card h3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height:3.75em;
  font-size:var(--h3-post)!important;
}
.maeup-related-reading-card p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.maeup-related-products{margin-top:48px!important;padding-top:28px!important;}
.maeup-related-products h2{font-size:var(--h2-section)!important;}

/* P5 — o player do AtlasVoice deve permanecer no fluxo até ser acionado.
   As opções de docking do plugin serão ajustadas na etapa técnica do áudio. */
.maeup-audio-player{max-width:var(--read)!important;margin-inline:auto!important;}

/* ========================= HEADER / RODAPÉ ========================= */
.maeup-header{
  position:sticky!important;
  top:0!important;
  z-index:999!important;
}
.maeup-header-row{height:60px!important;}
.maeup-logo img{width:170px!important;height:auto!important;}
.maeup-nav-native .wp-block-navigation-item__content{min-height:44px!important;}

.maeup-footer .maeup-wrap{
  width:min(var(--wide),calc(100% - (var(--gutter) * 2)))!important;
}
.maeup-footer-social-labels{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.maeup-footer-social-native .wp-social-link a{
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
}
.maeup-footer-nav-native .wp-block-navigation-item__content{
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
}
.maeup-footer-bottom{
  font-size:13.5px!important;
  line-height:1.55!important;
  color:#D8CEC8!important;
}

/* ========================= BREAKPOINTS ========================= */
@media (max-width:1024px){
  .maeup-trail-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .maeup-related-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media (max-width:767px){
  .maeup-header-row{height:56px!important;}
  .maeup-logo img{width:150px!important;}

  .maeup-blog-hero{padding:22px 0!important;}
  .maeup-blog-hero:before{display:none!important;}
  .maeup-blog-hero .maeup-lead{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
  }
  .maeup-start-grid{grid-template-columns:1fr!important;}
  .maeup-start-card{padding:18px!important;}
  .maeup-trail-grid{
    display:flex!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .maeup-trail-grid::-webkit-scrollbar{display:none;}
  .maeup-trail-card{flex:0 0 80%;scroll-snap-align:start;}
  .maeup-blog-post-grid .wp-block-post-template{grid-template-columns:1fr!important;}

  .maeup-article-head{
    padding:22px var(--gutter) 22px!important;
  }
  .maeup-article-head .wp-block-post-title{
    font-size:clamp(1.875rem,8.2vw,2rem)!important;
    max-width:100%!important;
  }
  .maeup-article-deck{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    font-size:16.5px!important;
    line-height:1.55!important;
  }
  .maeup-article-meta{font-size:13px!important;}

  .maeup-article-visual{
    width:calc(100% - (var(--gutter) * 2))!important;
    margin-top:18px!important;
  }
  .maeup-article-cover img{
    aspect-ratio:16/9!important;
    border-radius:16px!important;
  }

  .maeup-content-shell{
    width:calc(100% - (var(--gutter) * 2))!important;
    max-width:none!important;
    padding-top:22px!important;
  }
  .maeup-content-shell .wp-block-post-content{
    font-size:17px!important;
    line-height:1.75!important;
  }
  .maeup-content-shell .wp-block-post-content h2{font-size:var(--h2-article)!important;}

  .maeup-toc{width:100%!important;}
  .maeup-toc summary{padding:14px 16px!important;}
  .maeup-toc li{font-size:15px!important;min-height:40px;}

  .maeup-after-article{
    width:calc(100% - (var(--gutter) * 2))!important;
    max-width:none!important;
    padding-bottom:56px!important;
  }
  .maeup-trail-nav{padding:20px 18px!important;}
  .maeup-trail-nav-top{
    display:block!important;
    margin-bottom:14px!important;
  }
  .maeup-trail-nav-grid{
    display:flex!important;
    flex-direction:column!important;
  }
  .maeup-trail-nav-card.next{order:1;}
  .maeup-trail-nav-card.prev{order:2;}
  .maeup-trail-nav-footer{
    justify-content:flex-start!important;
    margin-top:8px!important;
  }
  .maeup-related-reading-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  .maeup-related-reading-card{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    column-gap:12px!important;
    padding:12px 0!important;
    border-bottom:1px solid var(--mu-line);
  }
  .maeup-related-reading-image{
    grid-column:1!important;
    grid-row:1 / span 4!important;
    width:86px!important;
    height:86px!important;
    aspect-ratio:1/1!important;
    margin:0!important;
  }
  .maeup-related-reading-trail{display:none!important;}
  .maeup-related-reading-card h3,
  .maeup-related-reading-card p,
  .maeup-related-reading-card .maeup-link{grid-column:2!important;}
  .maeup-related-reading-card h3{
    min-height:0!important;
    margin:0 0 5px!important;
    font-size:16.5px!important;
  }
  .maeup-related-reading-card p{display:none!important;}

  .maeup-footer-nav-native .wp-block-navigation__container{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:400px){
  .maeup-article-head .wp-block-post-title{font-size:1.875rem!important;}
  .maeup-content-shell .wp-block-post-content{font-size:17px!important;}
}

/* =========================================================
   Revisão UX de leitura — 13/10/2026
   Escopo: artigos; sem alterar texto ou outros templates.
   ========================================================= */
.maeup-single-post{overflow:visible!important;}
/* AtlasVoice possui opção nativa sticky-top; estes estilos atuam apenas
   quando essa posição estiver habilitada no painel do plugin. */
.maeup-single-post .tts__custom-position_top_sticky,
.maeup-single-post .tts__custom-position_sticky_top{
  width:min(720px,calc(100% - 32px))!important;
  max-width:720px!important;
  margin-inline:auto!important;
  top:60px!important;
  z-index:990!important;
  background:#FCF8F2!important;
  box-shadow:0 4px 18px rgba(59,42,34,.10)!important;
  border-radius:12px!important;
}
.maeup-single-post .tts__custom-position_top_sticky button,
.maeup-single-post .tts__custom-position_sticky_top button{
  min-height:44px!important;
}
.admin-bar .maeup-header{top:32px!important;}
@media (max-width:782px){
  .admin-bar .maeup-header{top:46px!important;}
}
@media (max-width:768px){
  .maeup-single-post .tts__custom-position_top_sticky,
  .maeup-single-post .tts__custom-position_sticky_top{
    top:56px!important;
    width:calc(100% - 24px)!important;
  }
}
.maeup-single-post .maeup-article-head-inner{
  max-width:760px!important;
}
.maeup-single-post .maeup-article-head .wp-block-post-title{
  max-width:760px!important;
  text-wrap:balance!important;
}
.maeup-single-post .maeup-article-deck{
  margin-top:12px!important;
}
.maeup-single-post .maeup-header-row,
.maeup-header .maeup-header-row,
.maeup-header .wp-block-navigation__container{
  align-items:center!important;
}
.maeup-header .wp-block-navigation-item,
.maeup-header .wp-block-navigation-item__content{
  align-self:center!important;
}
.maeup-header .wp-block-navigation-item.shop .wp-block-navigation-item__content{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
}
.maeup-single-post .maeup-content-shell{
  padding-top:24px!important;
}
.maeup-single-post .maeup-toc{
  margin-bottom:24px!important;
}
.maeup-single-post .maeup-content-shell .entry-content,
.maeup-single-post .maeup-content-shell .wp-block-post-content{
  font-size:18px!important;
  line-height:1.6!important;
}
.maeup-single-post .maeup-content-shell .entry-content p,
.maeup-single-post .maeup-content-shell .wp-block-post-content p{
  font-size:inherit!important;
  line-height:1.6!important;
  margin-block:0 1em!important;
}
.maeup-single-post .maeup-content-shell .entry-content h2{
  margin:52px 0 .5em!important;
  scroll-margin-top:116px!important;
}
.maeup-single-post .maeup-content-shell .entry-content h3{
  margin:32px 0 .4em!important;
  scroll-margin-top:116px!important;
}
.maeup-single-post .maeup-content-shell .entry-content li{
  font-size:inherit!important;
  line-height:1.55!important;
  margin:.3em 0!important;
}
.maeup-single-post .maeup-toc + .entry-content{
  margin-block-start:24px!important;
}
/* Preserva a apresentação compacta das referências aprovada. */
.maeup-single-post .entry-content .maeup-references,
.maeup-single-post .entry-content .maeup-references li{
  font-size:11px!important;
  line-height:1.35!important;
  color:#777!important;
}
.maeup-single-post .entry-content .maeup-references h2{
  font-size:12px!important;
  font-weight:400!important;
  margin:0 0 6px!important;
  color:#777!important;
}
.maeup-single-post .entry-content .maeup-references a{
  color:#777!important;
  text-decoration:none!important;
}
@media (max-width:768px){
  .maeup-single-post .maeup-content-shell .entry-content,
  .maeup-single-post .maeup-content-shell .wp-block-post-content{
    font-size:17px!important;
    line-height:1.55!important;
  }
  .maeup-single-post .maeup-content-shell .entry-content p{
    line-height:1.55!important;
  }
  .maeup-single-post .maeup-content-shell .entry-content h2{
    margin-top:40px!important;
    scroll-margin-top:110px!important;
  }
  .maeup-single-post .maeup-content-shell .entry-content h3{
    margin-top:28px!important;
    scroll-margin-top:110px!important;
  }
  .maeup-single-post .maeup-content-shell .entry-content li{
    line-height:1.55!important;
    margin:.3em 0!important;
  }
}

