/* ============================================================
   MENTE ACIMA — HEADER
   Desktop: logo + navegação + pesquisa/tema/assine
   Mobile: logo + tema + hamburger
   ============================================================ */

.site-header{
  position:relative;
  z-index:200;
  background:var(--bg);
  color:var(--text);
  border-bottom:1px solid var(--border);
  transition:background var(--t),color var(--t),border-color var(--t);
}

.ma-header-top{
  max-width:var(--max);
  min-height:76px;
  margin:0 auto;
  padding:0 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
}

/* ============================================================
   LOGO
   ============================================================ */
.ma-header-brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  min-width:0;
}

.ma-brand-link{
  display:flex;
  align-items:center;
  text-decoration:none;
  line-height:0;
}

.ma-brand-logo{
  display:block !important;
  width:auto !important;
  height:58px !important;
  max-width:180px;
  object-fit:contain;
  mix-blend-mode:normal !important;
  filter:none !important;
}

[data-theme="light"] .ma-brand-logo{
  filter:none !important;
}

.ma-brand-fallback{
  font-family:var(--fh);
  font-weight:900;
  font-size:1.05rem;
  letter-spacing:-.04em;
  color:var(--text);
  white-space:nowrap;
}

.ma-brand-tagline{
  max-width:250px;
  font-family:var(--fb);
  font-size:.68rem;
  line-height:1.25;
  color:var(--text3);
  white-space:nowrap;
}

/* ============================================================
   AÇÕES
   ============================================================ */
.ma-header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex:0 0 auto;
}

.ma-header-icon{
  width:34px;
  height:34px;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:var(--text2);
  border-radius:50%;
  transition:color var(--t),opacity var(--t);
}

.ma-header-icon:hover{
  color:var(--text);
}

.ma-search-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ma-header-divider{
  width:1px;
  height:50px;
  flex:0 0 1px;
  background:var(--border2);
  opacity:.75;
}

.ma-theme-icon{
  width:30px;
  height:30px;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ma-theme-half{
  fill:currentColor;
  stroke:none;
}

.ma-theme-rays{
  fill:none;
}

.ma-subscribe-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  height:34px;
  padding:0 14px;
  margin-left:8px;
  background:var(--accent);
  color:#0a0a0b;
  font-family:var(--fm);
  font-size:.62rem;
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-radius:2px;
  transition:background var(--t),color var(--t);
}

.ma-subscribe-btn:hover{
  background:var(--accent2);
  color:#0a0a0b;
}

/* ============================================================
   NAVEGAÇÃO DESKTOP — DM MONO 400
   ============================================================ */
.ma-editorial-nav{
  min-height:48px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:0 1rem;
  overflow:visible;
}

.ma-editorial-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:48px;
  padding:0 .82rem;
  border:0;
  background:transparent;
  color:var(--text2);
  font-family:var(--fm);
  font-size:.64rem;
  font-weight:400;
  letter-spacing:.025em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  text-decoration:none;
  transition:color var(--t),background var(--t);
}

.ma-editorial-link:hover,
.ma-editorial-link.active,
.ma-editorial-more[aria-expanded="true"]{
  color:var(--text);
}

.ma-editorial-more svg{
  width:11px;
  height:11px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.3;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform var(--t);
}

.ma-editorial-more[aria-expanded="true"] svg{
  transform:rotate(180deg);
}

/* ============================================================
   PAINEL MAIS
   ============================================================ */
.ma-more-panel{
  position:absolute;
  top:124px;
  left:0;
  right:0;
  z-index:199;
  display:none;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  box-shadow:0 12px 34px rgba(0,0,0,.12);
}

.ma-more-panel.is-open{
  display:block;
}

.ma-more-panel__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:2rem;
}

.ma-more-panel__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.25rem;
  padding-bottom:.8rem;
  border-bottom:1px solid var(--border);
}

.ma-more-panel__eyebrow,
.ma-more-panel__label{
  font-family:var(--fm);
  font-size:.6rem;
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ma-more-panel__eyebrow{color:var(--text);}
.ma-more-panel__label{color:var(--text3);}

.ma-more-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem 3rem;
}

.ma-more-group__title{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:.65rem;
  color:var(--text);
  font-family:var(--fm);
  font-size:.66rem;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.ma-more-group__dash{color:var(--accent);}

.ma-more-group__list{
  list-style:none;
  margin:0;
  padding:0 0 0 18px;
  display:flex;
  flex-direction:column;
  gap:.35rem;
}

.ma-more-group__list a{
  color:var(--text3);
  font-family:var(--fb);
  font-size:.78rem;
  font-weight:400;
  transition:color var(--t),padding-left var(--t);
}

.ma-more-group__list a:hover{
  color:var(--accent);
  padding-left:3px;
}

/* ============================================================
   HAMBURGER — somente mobile
   ============================================================ */
.ma-header-menu{
  display:none;
  width:36px;
  height:36px;
  padding:6px;
  border:0;
  background:transparent;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  flex:0 0 auto;
}

.ma-header-menu span{
  display:block;
  width:21px;
  height:1.7px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s ease,opacity .25s ease;
}

.ma-header-menu[aria-expanded="true"] span:nth-child(1){transform:translateY(6.7px) rotate(45deg)}
.ma-header-menu[aria-expanded="true"] span:nth-child(2){opacity:0}
.ma-header-menu[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.7px) rotate(-45deg)}

/* ============================================================
   MENU MOBILE
   ============================================================ */
.ma-mobile-menu{
  display:none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1100px){
  .ma-editorial-link{padding-inline:.55rem;font-size:.59rem}
  .ma-header-top{padding-inline:1.5rem}
}

@media(max-width:768px){
  .site-header{
    position:relative;
  }

  .ma-header-top{
    min-height:60px;
    height:60px;
    padding:0 1rem;
    gap:0;
  }

  .ma-brand-logo{
    height:34px !important;
    max-width:130px;
  }

  .ma-brand-tagline{
    display:none;
  }

  .ma-header-right{
    margin-left:auto;
    gap:8px;
  }

  .ma-search-icon,
  .ma-header-divider,
  .ma-subscribe-btn{
    display:none;
  }

  .ma-header-right .ma-theme-toggle{
    display:flex;
  }

  .ma-header-divider{
    height:34px;
  }

  .ma-header-menu{
    display:flex;
    margin-left:4px;
  }

  .ma-editorial-nav,
  .ma-more-panel{
    display:none !important;
  }

  .ma-mobile-menu{
    position:fixed;
    inset:60px 0 0;
    z-index:999;
    display:block;
    overflow-y:auto;
    overflow-x:hidden;
    background:var(--bg);
    transform:translateX(100%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .28s ease,visibility 0s linear .28s;
  }

  .ma-mobile-menu.is-open{
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
    transition:transform .28s ease;
  }

  .ma-mobile-menu__top{
    min-height:56px;
    padding:0 1rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--border);
  }

  .ma-mobile-menu__brand{
    font-family:var(--fb);
    font-size:.76rem;
    font-weight:400;
    letter-spacing:.08em;
    color:var(--text2);
  }

  .ma-mobile-menu__close{
    width:34px;height:34px;
    border:0;background:none;
    position:relative;
  }

  .ma-mobile-menu__close span{
    position:absolute;
    left:8px;right:8px;top:16px;
    height:1.5px;background:var(--text);
  }
  .ma-mobile-menu__close span:first-child{transform:rotate(45deg)}
  .ma-mobile-menu__close span:last-child{transform:rotate(-45deg)}

  .ma-mobile-menu__body{
    padding:0 1rem 2rem;
  }

  .ma-mobile-menu__body a,
  .ma-mobile-menu__home,
  .ma-mobile-menu__primary,
  .ma-mobile-group__title,
  .ma-mobile-group__list a{
    font-family:var(--fb);
    font-weight:400;
  }

  .ma-mobile-menu__home,
  .ma-mobile-menu__primary{
    display:block;
    padding:15px 0;
    border-bottom:1px solid var(--border);
    color:var(--text);
    font-size:.92rem;
  }

  .ma-mobile-group{
    border-bottom:1px solid var(--border);
    padding:13px 0;
  }

  .ma-mobile-group__title{
    display:block;
    color:var(--text);
    font-size:.9rem;
    line-height:1.35;
  }

  .ma-mobile-group__list{
    list-style:none;
    margin:.5rem 0 0;
    padding:0 0 0 .8rem;
    display:flex;
    flex-direction:column;
    gap:.25rem;
  }

  .ma-mobile-group__list a{
    display:block;
    padding:4px 0;
    color:var(--text3);
    font-size:.82rem;
  }

  .ma-mobile-menu__subscribe{
    display:block;
    margin-top:1.25rem;
    padding:13px 14px;
    background:var(--accent);
    color:#0a0a0b !important;
    text-align:center;
    font-size:.76rem;
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  body.ma-mobile-menu-open{overflow:hidden}
}

@media(max-width:480px){
  .ma-header-top{padding-inline:.8rem}
  .ma-brand-logo{height:31px !important;max-width:120px}
  .ma-header-menu{width:34px;height:34px}
  .ma-theme-icon{width:27px;height:27px}
}

/* ============================================================
   HOMEPAGE HERO — novo fluxo editorial
   ============================================================ */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 370px;
  gap:1.5rem;
  align-items:stretch;
}

.hero-main{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--r6);
  background:var(--surface);
}

.hero-main__img{
  width:100%;
  height:360px;
  object-fit:cover;
  background:var(--surface2);
  flex:0 0 auto;
}

.hero-main__overlay{display:none !important}

.hero-main__content{
  position:static;
  padding:1.35rem 1.5rem 1.25rem;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}

.hero-cat{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:.7rem;
  font-family:var(--fm);
  font-size:.62rem;
  font-weight:400;
  letter-spacing:.14em;
  line-height:1.3;
  text-transform:uppercase;
  color:var(--accent);
}

.hero-cat::before{
  content:'';
  width:18px;
  height:1px;
  flex:0 0 18px;
  background:var(--accent);
}

.hero-h1{
  margin:0;
  font-family:var(--fh);
  font-size:clamp(1.45rem,2.4vw,2.15rem);
  font-weight:900;
  letter-spacing:-.025em;
  line-height:1.12;
  color:var(--text);
}

.hero-h1 a:hover{color:var(--accent2) !important}

.hero-meta{
  margin-top:auto;
  padding-top:1rem;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-family:var(--fb);
  font-size:.68rem;
  font-weight:400;
  color:var(--text3);
}

.hero-reading-time{color:var(--text3)}

/* Side cards permanecem alinhados no topo e o conjunto ocupa a altura do bloco principal. */
.hero-side{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  min-width:0;
}

.hero-side-card{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  padding:.85rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r6);
  transition:border-color var(--t),background var(--t),transform var(--t);
}

.hero-side-card:hover{
  border-color:var(--border2);
  transform:translateY(-1px);
}

.hero-side-img{
  width:92px;
  height:68px;
  object-fit:cover;
  border-radius:var(--r4);
  background:var(--surface2);
  flex:0 0 92px;
}

.hero-side-cat{
  margin-bottom:.25rem;
  font-family:var(--fm);
  font-size:.55rem;
  font-weight:400;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--accent);
}

.hero-side-title{
  font-family:var(--fh);
  font-size:.84rem;
  font-weight:700;
  line-height:1.28;
  color:var(--text);
}

.hero-side-date{
  margin-top:.25rem;
  font-family:var(--fb);
  font-size:.62rem;
  font-weight:400;
  color:var(--text3);
}

.hero-pro-card{
  flex:0 0 auto;
  padding:1rem;
  background:rgba(200,169,110,.04);
  border:1px solid rgba(200,169,110,.2);
  border-radius:var(--r6);
  text-align:center;
}

/* Tags da homepage foram removidas do markup; blindagem para versões antigas do cache. */
.hero-tags{display:none !important}

/* ============================================================
   MOBILE — carrossel dos dois destaques secundários
   ============================================================ */
.hero-mobile-carousel{display:none}

@media(max-width:1100px){
  .hero-grid{grid-template-columns:minmax(0,1fr) 320px}
  .hero-main__img{height:330px}
}

@media(max-width:768px){
  .hero-section{padding-block:1.25rem 1.5rem}
  .hero-grid{grid-template-columns:1fr;gap:0}
  .hero-side{display:none !important}

  .hero-main{
    border-radius:var(--r6);
  }

  .hero-main__img{
    height:260px;
  }

  .hero-main__content{
    padding:1.05rem 1rem 1rem;
  }

  .hero-cat{
    margin-bottom:.55rem;
    font-size:.58rem;
  }

  .hero-h1{
    font-size:1.45rem;
    line-height:1.15;
  }

  .hero-meta{
    padding-top:.8rem;
    font-size:.66rem;
  }

  .hero-mobile-carousel{
    display:block;
    margin-top:1rem;
    overflow:hidden;
  }

  .hero-mobile-carousel__track{
    display:flex;
    gap:.75rem;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }

  .hero-mobile-carousel__track::-webkit-scrollbar{display:none}

  .hero-mobile-slide{
    flex:0 0 88%;
    scroll-snap-align:start;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:var(--r6);
    background:var(--surface);
  }

  .hero-mobile-slide img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
  }

  .hero-mobile-slide__body{
    padding:.8rem .9rem .85rem;
  }

  .hero-mobile-slide__cat{
    display:block;
    margin-bottom:.3rem;
    font-family:var(--fm);
    font-size:.55rem;
    font-weight:400;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--accent);
  }

  .hero-mobile-slide__title{
    display:block;
    font-family:var(--fb);
    font-size:.92rem;
    font-weight:600;
    line-height:1.35;
    color:var(--text);
  }

  .hero-mobile-slide__meta{
    display:block;
    margin-top:.35rem;
    font-family:var(--fb);
    font-size:.64rem;
    font-weight:400;
    color:var(--text3);
  }

  .hero-mobile-carousel__dots{
    width:28px;
    height:2px;
    margin:.7rem auto 0;
    background:var(--border2);
  }
}
