/* ========= THEME BASE ========= */
/* Dark profundo + roxo Zap2B nos destaques */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0b0f14;
    --md-default-fg-color: #e6e9ef;
    --md-default-fg-color--light: #c7cbd3;
    --md-code-bg-color: #0f172a;
    --md-primary-fg-color: #6C4FF6;   /* roxo Zap2B */
    --md-accent-fg-color:  #6C4FF6;
  }
  
  /* Cabeçalho preto e busca à direita */
  .md-header { background: #000 !important; }
  .md-search { margin-left: auto; max-width: 420px; }
  
  /* Esconde o texto do título (mantém no <title>) */
  .md-header__title {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* Esconde o nome do site no topo da sidebar */
  .md-nav__title { display: none !important; }
  
  /* Logo responsiva - corrigida para mobile */
  .md-header__button.md-logo {
    display: flex !important;
    align-items: center;
  }
  
  .md-header__button.md-logo img { 
    height: 26px;
    width: auto;
    max-width: none;
  }
  
  @media (min-width: 960px) {
    .md-header__button.md-logo img { height: 30px; }
  }
  
  /* Garante que a logo apareça no mobile */
  @media (max-width: 959px) {
    .md-header__button.md-logo {
      display: flex !important;
      margin-right: 0.5rem;
    }
  }
  
  /* Botão Login no header */
  .z2b-btn-login {
    margin-left: .75rem;
    padding: .45rem .9rem;
    border-radius: 8px;
    background: #6C4FF6;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(255,255,255,.08);
  }
  .z2b-btn-login:hover { filter: brightness(1.06); }
  
  /* ========= CONTENT ========= */
  .md-typeset .admonition,
  .md-typeset details { border-radius: 12px; }
  
  /* ========= SIDEBAR / NAV ========= */
  .md-sidebar { background: #0b0f14 !important; }
  .md-nav { font-size: 14.5px; }
  .md-nav__list { gap: 2px; }
  
  .md-nav__link {
    border-radius: 8px;
    padding: .45rem .6rem;
  }
  .md-nav__link:hover {
    background: rgba(255,255,255,.05);
  }
  
  /* Título de seção (grupo) mais forte, mas sem visual de "selecionado" */
  .md-nav__item--section > .md-nav__link {
    letter-spacing: .2px;
    font-weight: 700;
    color: #c7cbd3;
    opacity: .95;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* ===== ACTIVE STATE (corrigido) ===== */
  /* Destaque APENAS no link ativo (folha) */
  .md-nav__link--active {
    position: relative;
    background: rgba(108,79,246,.18) !important;
    box-shadow: inset 2px 0 0 #6C4FF6 !important;
  }
  
  /* Garante que os pais NÃO pareçam selecionados */
  .md-nav__item--active > .md-nav__link:not(.md-nav__link--active) {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Barrinha vertical só no item ativo (não nos pais) */
  .md-nav__link--active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #6C4FF6;
    border-radius: 2px;
  }
  
  /* Espaçamento entre grupos */
  .md-nav__item--section { margin-top: .35rem; }
  
  /* ========= PERMALINK ICON ========= */
  /* Personaliza o ícone de permalink para ser mais elegante */
  .md-typeset .headerlink {
    color: rgba(108, 79, 246, 0.4) !important;
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
  }
  
  .md-typeset .headerlink:hover {
    color: #6C4FF6 !important;
    text-decoration: none;
  }
  
  /* Opcional: esconder completamente o ícone */
  /* .md-typeset .headerlink { display: none !important; } */
  
  /* ========= TEXT WRAPPING ========= */
  /* Evita quebra inadequada de palavras */
  .md-typeset blockquote {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Força quebra em pontos específicos para evitar palavras quebradas */
  .md-typeset blockquote strong {
    white-space: nowrap;
  }
  
  /* Melhora a quebra de linha em geral */
  .md-typeset p, .md-typeset blockquote {
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
  }
  
  /* ========= NAVIGATION STYLING ========= */
  /* Estilização profissional da navegação */
  .md-nav__link {
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  /* Hover effect suave */
  .md-nav__link:hover {
    color: #e6e9ef;
    transform: translateX(2px);
  }
  
  /* Links ativos com destaque roxo */
  .md-nav__link--active {
    color: #6C4FF6 !important;
    font-weight: 600;
  }
  
  /* Seções principais */
  .md-nav__item--section > .md-nav__link {
    font-weight: 700;
    color: #c7cbd3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
  }
  
  /* ========= PROFESSIONAL CARDS ========= */
  /* Cards grid com design moderno e profissional */
  .md-typeset .grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .md-typeset .grid.cards > * {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border: 1px solid rgba(108, 79, 246, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Hover effect elegante */
  .md-typeset .grid.cards > *:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 79, 246, 0.4);
    box-shadow: 0 12px 40px rgba(108, 79, 246, 0.15);
  }
  
  /* Efeito de brilho sutil */
  .md-typeset .grid.cards > *::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 79, 246, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .md-typeset .grid.cards > *:hover::before {
    opacity: 1;
  }
  
  /* Ícones dos cards */
  .md-typeset .grid.cards .twemoji {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(108, 79, 246, 0.3));
  }
  
  /* Títulos dos cards */
  .md-typeset .grid.cards h3,
  .md-typeset .grid.cards h4 {
    color: #e6e9ef;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
  }
  
  /* Texto descritivo */
  .md-typeset .grid.cards p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
  }
  
  /* Botões dos cards */
  .md-typeset .grid.cards a[href] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(108, 79, 246, 0.1);
    border: 1px solid rgba(108, 79, 246, 0.3);
    border-radius: 8px;
    color: #6C4FF6 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
  }
  
  .md-typeset .grid.cards a[href]:hover {
    background: rgba(108, 79, 246, 0.15);
    border-color: rgba(108, 79, 246, 0.5);
    transform: translateX(2px);
  }
  
  /* Ícone do botão */
  .md-typeset .grid.cards a[href] .twemoji {
    width: 1rem;
    height: 1rem;
    margin: 0;
    filter: none;
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    .md-typeset .grid.cards {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .md-typeset .grid.cards > * {
      padding: 1.5rem;
    }
  }
  
  /* ========= MOBILE NAVIGATION IMPROVEMENTS ========= */
  /* Breadcrumbs melhorados para mobile */
  @media (max-width: 959px) {
    .md-path {
      font-size: 0.8rem;
      margin-bottom: 1rem;
      padding: 0.5rem;
      background: rgba(108, 79, 246, 0.05);
      border-radius: 6px;
      border-left: 3px solid #6C4FF6;
    }
    
    .md-path__link {
      color: #6C4FF6;
      text-decoration: none;
    }
    
    .md-path__link:hover {
      text-decoration: underline;
    }
  }
  
  /* Footer navigation melhorado para mobile */
  @media (max-width: 959px) {
    .md-footer-nav {
      padding: 1rem;
      margin-top: 2rem;
      border-top: 1px solid rgba(108, 79, 246, 0.1);
    }
    
    .md-footer-nav__inner {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    
    .md-footer-nav__link {
      flex: 1;
      padding: 0.75rem;
      background: rgba(108, 79, 246, 0.08);
      border-radius: 8px;
      text-align: center;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    
    .md-footer-nav__link:hover {
      background: rgba(108, 79, 246, 0.15);
      transform: translateY(-1px);
    }
  }
  
  /* Botão "voltar ao topo" mais visível no mobile */
  @media (max-width: 959px) {
    .md-top {
      position: fixed !important;
      bottom: 1rem !important;
      right: 1rem !important;
      background: #6C4FF6 !important;
      border-radius: 50% !important;
      box-shadow: 0 4px 12px rgba(108, 79, 246, 0.3);
      width: 48px !important;
      height: 48px !important;
      z-index: 100 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
    }
    
    /* Remove o texto no mobile, mantém apenas o ícone */
    .md-top .md-top__inner {
      display: none !important;
    }
    
    /* Garante que o ícone SVG fique centralizado */
    .md-top svg {
      width: 24px !important;
      height: 24px !important;
      margin: 0 !important;
    }
    
    .md-top:hover {
      background: rgba(108, 79, 246, 0.9) !important;
      transform: scale(1.1);
    }
  }
  
  /* Menu mobile mais acessível */
  @media (max-width: 959px) {
    .md-nav--primary .md-nav__title {
      background: #6C4FF6;
      color: white;
      font-weight: 600;
      padding: 1rem;
    }
    
    .md-nav--primary .md-nav__title::before {
      display: none; /* Remove o ícone padrão */
    }
    
    /* Melhora a navegação hierárquica no mobile - abordagem conservadora */
    .md-nav__item--section > .md-nav__link {
      background: rgba(108, 79, 246, 0.1);
      border-left: 3px solid #6C4FF6;
      margin: 0.25rem 0;
      padding: 0.75rem;
      border-radius: 6px;
      font-weight: 600;
    }
    
    /* Links de índice das seções mais visíveis */
    .md-nav__link--index {
      background: rgba(108, 79, 246, 0.15) !important;
      color: #6C4FF6 !important;
      font-weight: 600;
      border-radius: 6px;
      margin-bottom: 0.5rem;
    }
    
    /* Submenus com indentação clara */
    .md-nav__item .md-nav__list {
      border-left: 2px solid rgba(108, 79, 246, 0.2);
      margin-left: 0.5rem;
      padding-left: 1rem;
    }
    
    /* Breadcrumbs mais proeminentes no mobile */
    .md-path {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(11, 15, 20, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(108, 79, 246, 0.2);
    }
  }
  
  /* Rodapé elegante com cards profissionais */
  .md-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
  }
  
  /* Cards de navegação anterior/próximo */
  .md-footer-nav {
    padding: 2rem 0 1.5rem;
  }
  
  .md-footer-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  
  .md-footer-nav__link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.08) 0%, rgba(108, 79, 246, 0.03) 100%);
    border: 1px solid rgba(108, 79, 246, 0.15);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 80px;
  }
  
  .md-footer-nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C4FF6, #9333EA, #EC4899);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .md-footer-nav__link:hover {
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.15) 0%, rgba(108, 79, 246, 0.08) 100%);
    border-color: rgba(108, 79, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 79, 246, 0.15);
  }
  
  .md-footer-nav__link:hover::before {
    opacity: 1;
  }
  
  /* Estilo dos títulos "Anterior/Próximo" */
  .md-footer-nav__title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(108, 79, 246, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Título da página */
  .md-footer-nav__link .md-ellipsis {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    margin: 0;
  }
  
  /* Alinhamento para link anterior (esquerda) */
  .md-footer-nav__link--prev {
    text-align: left;
  }
  
  /* Alinhamento para link próximo (direita) */
  .md-footer-nav__link--next {
    text-align: right;
  }
  
  /* Ícones SVG dos cards */
  .md-footer-nav__link svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  
  .md-footer-nav__link:hover svg {
    opacity: 1;
  }
  
  /* Data de atualização elegante */
  .md-source-file {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
  }
  
  .md-source-file__fact {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(108, 79, 246, 0.08);
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(108, 79, 246, 0.15);
    transition: all 0.3s ease;
  }
  
  .md-source-file__fact:hover {
    background: rgba(108, 79, 246, 0.12);
    border-color: rgba(108, 79, 246, 0.25);
  }
  
  /* Responsivo para mobile */
  @media (max-width: 959px) {
    .md-footer-nav__inner {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .md-footer-nav__link {
      padding: 1.25rem;
      min-height: 70px;
      text-align: left !important;
    }
    
    .md-footer-nav {
      padding: 1.5rem 0 1rem;
    }
    
    .md-footer {
      margin-top: 3rem;
    }
  }
  
  /* Cards específicos do Dashboard */
  .dashboard-overview.md-typeset .grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .dashboard-overview .md-typeset .grid.cards > li {
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(108, 79, 246, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .dashboard-overview .md-typeset .grid.cards > li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C4FF6, #9333EA, #EC4899);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .dashboard-overview .md-typeset .grid.cards > li:hover {
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.12) 0%, rgba(147, 51, 234, 0.08) 100%);
    border-color: rgba(108, 79, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 79, 246, 0.15);
  }
  
  .dashboard-overview .md-typeset .grid.cards > li:hover::before {
    opacity: 1;
  }
  
  /* Ícones dos cards do Dashboard */
  .dashboard-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
    text-align: center !important;
  }
  
  /* Cores dos ícones - Dashboard */
  .kpi-icon {
    color: #6C4FF6 !important;
  }
  
  .origins-icon {
    color: #10B981 !important;
  }
  
  .stats-icon {
    color: #F59E0B !important;
  }
  
  .classification-icon {
    color: #EF4444 !important;
  }
  
  /* Cores dos ícones - Atendimentos */
  .sidebar-icon {
    color: #8B5CF6 !important;
  }
  
  .conversation-icon {
    color: #06B6D4 !important;
  }
  
  .composer-icon {
    color: #10B981 !important;
  }
  
  /* Títulos dos cards - Dashboard e Atendimentos */
  .dashboard-overview .md-typeset .grid.cards > li > p:first-of-type,
  .atendimentos-overview .md-typeset .grid.cards > li > p:first-of-type {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }
  
  /* Conteúdo dos cards - Dashboard e Atendimentos */
  .dashboard-overview .md-typeset .grid.cards > li > p:last-of-type,
  .atendimentos-overview .md-typeset .grid.cards > li > p:last-of-type {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Linha separadora - Dashboard e Atendimentos */
  .dashboard-overview .md-typeset .grid.cards > li > hr,
  .atendimentos-overview .md-typeset .grid.cards > li > hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(108, 79, 246, 0.3), transparent) !important;
    margin: 1.5rem 0 !important;
  }
  
  /* Cards específicos dos Atendimentos */
  .atendimentos-overview.md-typeset .grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .atendimentos-overview .md-typeset .grid.cards > li {
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(108, 79, 246, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .atendimentos-overview .md-typeset .grid.cards > li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4, #10B981);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .atendimentos-overview .md-typeset .grid.cards > li:hover {
    background: linear-gradient(135deg, rgba(108, 79, 246, 0.12) 0%, rgba(147, 51, 234, 0.08) 100%);
    border-color: rgba(108, 79, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 79, 246, 0.15);
  }
  
  .atendimentos-overview .md-typeset .grid.cards > li:hover::before {
    opacity: 1;
  }
  
  /* Responsivo para cards do Dashboard e Atendimentos */
  @media (max-width: 959px) {
    .dashboard-overview.md-typeset .grid.cards,
    .atendimentos-overview.md-typeset .grid.cards {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .dashboard-overview .md-typeset .grid.cards > li,
    .atendimentos-overview .md-typeset .grid.cards > li {
      padding: 1.5rem;
    }
    
    .dashboard-icon {
      font-size: 2rem !important;
    }
  }
  
  /* ========= LANGUAGE SELECTOR ========= */
  /* Move o seletor de idiomas para a extrema direita, ao lado da busca */
  .md-header__option:has(.md-select) {
      order: 99;
      margin-left: 1rem;
  }
  
  /* Ajusta a ordem da busca para ficar antes do seletor */
  .md-search {
      order: 10;
  }
  /* =========================================================
     HOMEPAGE PREMIUM (DEEPMIND STYLE EDITORIAL)
     ========================================================= */
  
  .editorial-header {
      padding: 4rem 0 3rem 0;
      max-width: 1200px;
      margin: 0 auto;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 3rem;
  }
  
  .editorial-title {
      font-size: 2.8rem !important;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin: 0 0 0.5rem 0;
      color: var(--md-default-fg-color);
      border: none !important;
  }
  
  .editorial-subtitle {
      font-size: 1.25rem;
      color: var(--md-default-fg-color--light);
      font-weight: 300;
      max-width: 800px;
      margin: 0;
  }
  
  /* Destaque Principal (Featured) */
  .editorial-featured {
      margin-bottom: 4rem;
  }
  
  .editorial-featured-link {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      text-decoration: none !important;
      color: inherit !important;
      align-items: center;
  }
  
  @media (min-width: 768px) {
      .editorial-featured-link {
          grid-template-columns: 1fr 1fr;
      }
  }
  
  .editorial-featured-image {
      width: 100%;
      aspect-ratio: 16/9;
      background-size: cover;
      background-position: center;
      border-radius: 12px;
      transition: transform 0.4s ease;
  }
  
  .editorial-featured-link:hover .editorial-featured-image {
      transform: scale(1.02);
  }
  
  .editorial-featured-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  
  .editorial-meta {
      font-size: 0.8rem;
      color: var(--md-default-fg-color--light);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.8rem;
      display: block;
      font-weight: 600;
  }
  
  .editorial-featured-content h2 {
      font-size: 2rem !important;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin: 0 0 1rem 0 !important;
      line-height: 1.3;
      border: none !important;
  }
  
  .editorial-featured-content p {
      font-size: 1.05rem;
      color: var(--md-default-fg-color--light);
      line-height: 1.6;
      margin-bottom: 1.5rem;
  }
  
  .editorial-read-more {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--md-primary-fg-color);
  }
  
  /* Grade de Artigos */
  .editorial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 3rem 2rem;
  }
  
  .editorial-card a {
      text-decoration: none !important;
      color: inherit !important;
      display: flex;
      flex-direction: column;
      height: 100%;
  }
  
  .editorial-card-image {
      width: 100%;
      aspect-ratio: 16/9;
      background-size: cover;
      background-position: center;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      transition: transform 0.4s ease;
  }
  
  .editorial-card a:hover .editorial-card-image {
      transform: scale(1.03);
  }
  
  .editorial-card-content {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
  }
  
  .editorial-card-content .editorial-meta {
      margin-bottom: 0.5rem;
  }
  
  .editorial-card-content h3 {
      font-size: 1.25rem !important;
      font-weight: 600;
      letter-spacing: -0.01em;
      line-height: 1.4;
      margin: 0 !important;
  }

/* =========================================================
   ZAP2B RESEARCH - DEEPMIND STYLE HOME
   ========================================================= */

.z2b-home__container {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding-top: 48px;
  font-family: "Inter", "SF Pro Text", "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #F5F7FA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  .z2b-home__container {
    padding-top: 24px;
  }
}

.z2b-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.z2b-featured-post__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.15;
  font-weight: 450;
  letter-spacing: -0.025em;
  color: #F5F7FA;
  text-wrap: pretty;
}

.z2b-featured-post__title a {
  color: inherit;
  text-decoration: none;
}

.z2b-featured-post__title a:hover {
  color: #F5F7FA;
}

.z2b-featured-post__summary {
  max-width: 680px;
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #9CA8BB;
  font-weight: 400;
}

.z2b-post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #6C4FF6;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.z2b-post-link:hover {
  color: #8B7BF7;
}

.z2b-post-link::after {
  content: "→";
  font-size: 1em;
  line-height: 1;
}

.z2b-featured-post__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #111722;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}

.z2b-featured-post:hover .z2b-featured-post__image {
  box-shadow: 0 8px 32px rgba(108, 79, 246, 0.12);
}

.z2b-featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.z2b-featured-post:hover .z2b-featured-post__image img {
  transform: scale(1.02);
}

.z2b-recent-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.z2b-recent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: start;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.z2b-recent-card + .z2b-recent-card {
  padding-top: 28px;
}

.z2b-recent-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #F5F7FA;
  text-wrap: pretty;
}

.z2b-recent-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.z2b-recent-card__title a:hover {
  color: #C8D0DD;
}

.z2b-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  color: #6B7A93;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.z2b-recent-card__media {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #111722;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.z2b-recent-card:hover .z2b-recent-card__media {
  box-shadow: 0 4px 20px rgba(108, 79, 246, 0.1);
}

.z2b-recent-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.z2b-recent-card:hover .z2b-recent-card__media img {
  transform: scale(1.05);
}

.z2b-recent-card__placeholder {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 25% 20%, rgba(56,189,248,.15), transparent 28%),
    linear-gradient(135deg, #111827, #0B1018);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .z2b-home__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .z2b-home__container {
    width: min(100% - 32px, 1200px);
  }

  .z2b-featured-post__title {
    font-size: 1.75rem;
  }

  .z2b-featured-post__summary {
    font-size: 1rem;
    line-height: 1.5;
  }

  .z2b-recent-card {
    grid-template-columns: 1fr 90px;
    gap: 16px;
    padding: 0 0 24px;
  }

  .z2b-recent-card + .z2b-recent-card {
    padding-top: 24px;
  }

  .z2b-recent-card__media,
  .z2b-recent-card__placeholder {
    width: 90px;
    height: 90px;
    border-radius: 8px;
  }
}

/* Custom Article Layout */

.z2b-article {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 88px;
  box-sizing: border-box;
}

.z2b-article-header,
figure.z2b-article-cover,
.z2b-article-content {
  width: min(100% - 48px, 760px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.z2b-article-header {
  margin-bottom: 32px;
}

.z2b-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8B95A7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.6;
}

.z2b-lang-switch:hover {
  color: #E6EAF0;
  background: rgba(108, 79, 246, 0.1);
  border-color: rgba(108, 79, 246, 0.25);
}

.z2b-article-title {
  margin: 0;
  color: #E6EAF0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.z2b-article-subtitle {
  margin: 20px 0 0;
  color: #AAB4C3;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
  max-width: 100%;
  text-align: left;
  overflow-wrap: break-word;
}

.z2b-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #8B95A7;
}

.z2b-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7F8CA3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.5;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.z2b-lang-switch:hover {
  color: #E6EAF0;
  background: rgba(108, 79, 246, 0.1);
  border-color: rgba(108, 79, 246, 0.25);
}

.z2b-article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.z2b-article-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.z2b-article-author-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.z2b-article-author-name {
  color: #F1F5F9;
  font-weight: 600;
}

.z2b-article-author-role {
  color: #8B95A7;
  font-weight: 400;
}

.z2b-article-info-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #7F8CA3;
  font-size: 0.78rem;
  line-height: 1.35;
}

figure.z2b-article-cover {
  margin-top: 36px;
  margin-bottom: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #111722;
}

.z2b-article-cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.z2b-article-content.md-typeset,
.z2b-article-content {
  color: #D2D8E3;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

.z2b-article-content.md-typeset p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1.35em;
  text-align: left;
}

.z2b-article-content h2 {
  margin-top: 2.3em;
  margin-bottom: 0.65em;
  color: #F1F5F9;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.z2b-article-content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: #F1F5F9;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.z2b-article-content strong {
  color: #F5F7FA;
  font-weight: 500;
}

.z2b-article-content em {
  color: #D6DCE7;
  font-feature-settings: "ss02" on, "cv05" on;
}

@media (max-width: 768px) {
  .z2b-article {
    padding-top: 36px;
    padding-bottom: 72px;
  }

  .z2b-article-header,
  figure.z2b-article-cover,
  .z2b-article-content {
    width: min(100% - 32px, 760px);
    max-width: 760px;
  }

  .z2b-article-title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.14;
  }

  .z2b-article-subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .z2b-article-meta {
    align-items: flex-start;
  }

  .z2b-article-info-line {
    gap: 6px 10px;
  }

  figure.z2b-article-cover {
    margin-top: 32px;
    margin-bottom: 40px;
    border-radius: 12px;
  }

  .z2b-article-content.md-typeset,
  .z2b-article-content {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* =========================================================
   ARTICLE CONTENT PROFESSIONAL TYPOGRAPHY
   ========================================================= */

/* Images must never overflow the content width */
.z2b-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1.5em auto;
}

/* Clean reading font stack */
.z2b-article-content {
  font-family: "Inter", "SF Pro Text", "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss02" on, "cv05" on;
}

/* Fix global justify conflict — article must remain left-aligned */
.z2b-article-content p,
.z2b-article-content blockquote {
  text-align: left !important;
}

/* Blockquote styling */
.z2b-article-content blockquote {
  border-left: 3px solid #6C4FF6;
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: rgba(108, 79, 246, 0.06);
  border-radius: 0 8px 8px 0;
  color: #BCC3D1;
  font-style: italic;
}

.z2b-article-content blockquote strong {
  color: #E6EAF0;
}

/* Lists */
.z2b-article-content ul,
.z2b-article-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
  color: #D2D8E3;
}

.z2b-article-content li {
  margin: 0.4em 0;
  line-height: 1.65;
}

/* Code */
.z2b-article-content code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", "Consolas", monospace;
  font-size: 0.88em;
  background: rgba(108, 79, 246, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #E6EAF0;
}

.z2b-article-content pre {
  background: #0f172a;
  border: 1px solid rgba(108, 79, 246, 0.15);
  border-radius: 10px;
  padding: 1.25em 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.z2b-article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85em;
  color: #E2E8F0;
}

/* Horizontal rule */
.z2b-article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 79, 246, 0.25), transparent);
  margin: 2.5em 0;
}

/* Tables inside article */
.z2b-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}

.z2b-article-content th,
.z2b-article-content td {
  padding: 0.65em 1em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.z2b-article-content th {
  background: rgba(108, 79, 246, 0.1);
  color: #F1F5F9;
  font-weight: 600;
}

/* Links within article */
.z2b-article-content a {
  color: #8B7BF7;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(108, 79, 246, 0.3);
  transition: all 0.2s ease;
}

.z2b-article-content a:hover {
  color: #A99BFF;
  text-decoration-color: rgba(108, 79, 246, 0.7);
}

/* ========= NEWSLETTER POPUP ========= */
.z2b-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: z2bFadeIn 0.3s ease;
}

.z2b-popup-overlay.active {
  display: flex;
}

.z2b-popup {
  background: #151a22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 90vw;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: z2bSlideUp 0.35s ease;
}

.z2b-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #5a6373;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.2s;
}

.z2b-popup-close:hover {
  color: #e6e9ef;
}

.z2b-popup-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e6e9ef;
  margin: 0 0 6px;
  line-height: 1.3;
}

.z2b-popup-subtitle {
  font-size: 0.85rem;
  color: #8B95A7;
  margin: 0 0 24px;
  line-height: 1.5;
}

.z2b-popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.z2b-popup-field {
  position: relative;
}

.z2b-popup-field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e6e9ef;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.z2b-popup-field input::placeholder {
  color: #5a6373;
}

.z2b-popup-field input:focus {
  border-color: #6C4FF6;
  box-shadow: 0 0 0 3px rgba(108, 79, 246, 0.15);
}

.z2b-popup-field input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.z2b-popup-field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.z2b-popup-field-error.visible {
  display: block;
}

.z2b-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #6C4FF6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.z2b-popup-btn:hover {
  background: #7B5FF7;
}

.z2b-popup-btn:active {
  transform: scale(0.98);
}

.z2b-popup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.z2b-popup-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: z2bSpin 0.8s linear infinite;
  display: none;
}

.z2b-popup-btn.loading .spinner {
  display: inline-block;
}

.z2b-popup-btn.loading .btn-text {
  display: none;
}

.z2b-popup-security {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.72rem;
  color: #5a6373;
}

.z2b-popup-security svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.z2b-popup-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.z2b-popup-success.visible {
  display: block;
}

.z2b-popup-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #22c55e;
  animation: z2bScaleIn 0.4s ease;
}

.z2b-popup-success h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e6e9ef;
  margin: 0 0 6px;
}

.z2b-popup-success p {
  font-size: 0.85rem;
  color: #8B95A7;
  margin: 0;
}

@keyframes z2bFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes z2bSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes z2bSpin {
  to { transform: rotate(360deg); }
}

@keyframes z2bScaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ========= AUTHOR FOOTER ========= */
.z2b-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.z2b-article-footer-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.z2b-article-footer-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.z2b-article-footer-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6e9ef;
}

.z2b-article-footer-role {
  font-size: 0.8rem;
  color: #8B95A7;
}

.z2b-article-footer-email {
  font-size: 0.8rem;
  color: #8B7BF7;
  text-decoration: none;
  transition: color 0.2s;
}

.z2b-article-footer-email:hover {
  color: #A99BFF;
  text-decoration: underline;
}

.z2b-article-footer-whatsapp {
  font-size: 0.8rem;
  color: #25D366;
  text-decoration: none;
  transition: color 0.2s;
}

.z2b-article-footer-whatsapp:hover {
  color: #4EE589;
  text-decoration: underline;
}

/* =========================================================
   MOBILE RESPONSIVE FIXES
   ========================================================= */
/* Remove Material's inner padding on mobile so our containers
   control ALL spacing — more usable reading width. */

/* <= 480px: phones */
@media (max-width: 480px) {
  .md-content__inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .z2b-home__container {
    width: 100%;
    max-width: none;
    padding: 20px 20px 0;
    box-sizing: border-box;
  }

  .z2b-article {
    width: 100%;
    padding: 28px 0 60px;
  }

  .z2b-article-header,
  figure.z2b-article-cover,
  .z2b-article-content {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .z2b-article-title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }

  .z2b-article-subtitle {
    font-size: 0.95rem;
    margin-top: 14px;
  }

  .z2b-featured-post__title {
    font-size: 1.4rem;
  }

  .z2b-featured-post__summary {
    font-size: 0.95rem;
    margin-top: 14px;
  }

  .z2b-recent-card {
    grid-template-columns: 1fr 80px;
    gap: 14px;
    padding: 0 0 20px;
  }

  .z2b-recent-card + .z2b-recent-card {
    padding-top: 20px;
  }

  .z2b-recent-card__media,
  .z2b-recent-card__placeholder {
    width: 80px;
    height: 80px;
    border-radius: 6px;
  }

  .z2b-recent-card__title {
    font-size: 0.95rem;
  }

  .z2b-post-meta {
    font-size: 0.65rem;
    gap: 6px;
  }

  .z2b-article-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .z2b-lang-switch {
    margin-left: 0;
    align-self: flex-start;
  }

  .z2b-article-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .z2b-article-footer-avatar img {
    width: 40px;
    height: 40px;
  }

  .z2b-popup {
    padding: 28px 20px 24px;
    width: 90vw;
    border-radius: 12px;
  }

  .z2b-article-content pre {
    padding: 0.8em 1em;
    border-radius: 6px;
  }

  .z2b-article-content blockquote {
    padding: 0.5em 0.8em;
  }

  .z2b-article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }

  .z2b-article-content th,
  .z2b-article-content td {
    padding: 0.4em 0.5em;
    white-space: nowrap;
  }

  .z2b-home__grid {
    gap: 32px;
  }

  .z2b-featured-post__image {
    border-radius: 6px;
    margin-bottom: 16px;
  }

  figure.z2b-article-cover {
    margin-top: 24px;
    margin-bottom: 32px;
    border-radius: 0;
  }

  .md-search {
    max-width: 140px;
  }

  .md-header__option:has(.md-select) {
    margin-left: 0.25rem;
  }

  .md-select__inner {
    right: 0 !important;
    left: auto !important;
    min-width: 140px;
  }

  .md-select__link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* <= 768px: tablets */
@media (max-width: 768px) {
  .z2b-featured-post__image {
    margin-bottom: 18px;
  }
}

/* Touch targets para navegação mobile < 960px */
@media (max-width: 959px) {
  .md-nav__link {
    padding: 0.6rem 0.75rem;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .md-footer-nav__link {
    min-height: 54px;
  }
}

  .z2b-article-header,
  figure.z2b-article-cover,
  .z2b-article-content {
    width: min(100% - 16px, 760px);
  }

  .z2b-article-title {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
  }

  .z2b-article-subtitle {
    font-size: 0.92rem;
    margin-top: 12px;
  }

  .z2b-featured-post__title {
    font-size: 1.35rem;
  }

  .z2b-featured-post__summary {
    font-size: 0.92rem;
    margin-top: 14px;
  }

  .z2b-recent-card {
    grid-template-columns: 1fr 72px;
    gap: 10px;
    padding: 0 0 16px;
  }

  .z2b-recent-card + .z2b-recent-card {
    padding-top: 16px;
  }

  .z2b-recent-card__media,
  .z2b-recent-card__placeholder {
    width: 72px;
    height: 72px;
    border-radius: 6px;
  }

  .z2b-recent-card__title {
    font-size: 0.85rem;
  }

  .z2b-post-meta {
    font-size: 0.62rem;
    gap: 6px;
  }

  .z2b-popup {
    padding: 28px 16px 20px;
    width: 94vw;
    border-radius: 12px;
  }

  .z2b-article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .z2b-article-content pre {
    padding: 0.7em 0.9em;
    border-radius: 6px;
  }

  .z2b-article-content blockquote {
    padding: 0.4em 0.7em;
  }

  .z2b-article-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .z2b-article-footer-avatar img {
    width: 38px;
    height: 38px;
  }
}

/* Pequeno (400px - 520px) — ajustes de wrapping e tabelas */
@media (max-width: 520px) {
  .z2b-home__grid {
    gap: 32px;
  }

  .z2b-featured-post__image {
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .z2b-article-meta {
    align-items: flex-start;
    gap: 10px;
  }

  .z2b-lang-switch {
    margin-left: 0;
    align-self: flex-start;
  }

  .z2b-article-footer {
    flex-wrap: wrap;
  }

  .z2b-article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }

  .z2b-article-content th,
  .z2b-article-content td {
    padding: 0.4em 0.55em;
    white-space: nowrap;
  }

  .md-search {
    max-width: 140px;
  }

  .md-header__option:has(.md-select) {
    margin-left: 0.25rem;
  }

  .md-select__inner {
    right: 0 !important;
    left: auto !important;
    min-width: 140px;
  }

  .md-select__link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Tablet pequeno (520px - 768px) — featured image, info line */
@media (max-width: 768px) {
  .z2b-featured-post__image {
    margin-bottom: 18px;
  }
}

/* Touch targets para navegação mobile */
@media (max-width: 959px) {
  .md-nav__link {
    padding: 0.6rem 0.75rem;
    font-size: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .md-footer-nav__link {
    min-height: 54px;
  }
}
