/* ===================================================
   PORTFOLIO - style.css
   Dark portfolio page replicating the reference design
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark:      #1b1b30;
  --bg-light:     #242440;
  --bg-card:      #2a2a48;
  --bg-card-alt:  #32324e;
  --bg-nav:       rgba(27, 27, 48, .94);
  --text-white:   #ffffff;
  --text-light:   #c2c2d2;
  --text-muted:   #8e8ea0;
  /* PALETA - código de cores de resistor (IEC 60062), o componente que a
     marca desenha. Documentada em .ai/project/design/brand/README.md.
     Base: ouro (anel ±5%), azul (banda 6), branco (banda 9).
     Complemento: violeta (7), verde (5), cinza (8).
     Todas acima de 4.5 de contraste sobre o azul e distinguíveis entre si
     sob deuteranopia. Não acrescentar cor fora destas seis. */
  --dg-color-gold:       #d4a84b;   /* ouro    - marca                      */
  --accent-hover: #e0b85c;
  --dg-color-purple:    #a98ae0;   /* banda 7 - destaque secundário        */
  --dg-color-green:      #6fc98a;   /* banda 5 - confirmação, nível         */
  --dg-color-gray:      #a8a8b8;   /* banda 8 - metadados                  */
  --dg-color-blue:       #6f9fd4;   /* banda 6 - badges/nav                 */
  --border-card:  rgba(255, 255, 255, .07);

  /* Duas famílias com papéis distintos. Comfortaa é display: 23% mais larga
     que uma sans de texto, o que atrapalha em parágrafo mas dá presença em
     título. Inter segue no corpo. */
  --ff-display: 'Comfortaa', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ff-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Escala fechada. Em rem para respeitar o tamanho de fonte do usuário;
     o comentário traz o equivalente em px na base 16.
     A hierarquia vem de cor e espaço, não de tamanho nem de peso. */
  --dg-fs-xs:   .5rem;   /*  8px  micro-rótulo, crédito        */
  --dg-fs-sm: .6rem;    /* 10px  legenda, meta, tag           */
  --dg-fs-md:   .7rem;     /* 11.2px  texto de apoio              */
  --dg-fs-lg:   .8rem;    /* 13px  corpo, leitura               */
  --dg-fs-xl:  1rem;     /* 16px  título de seção              */
  --dg-fs-xxl:    1rem;       /* 16px  nome no hero                 */
  --container: 1100px;

  /* Hexágono de ponta em cima, usado no favo de proficiência e no favo de
     hobbies (ver seções correspondentes mais abaixo). */
  --hex-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

  /* Escala de espaçamento para gap. */
  --dg-gap-none: 0;
  --dg-gap-xs:   2px;
  --dg-gap-sm:   6px;
  --dg-gap-md:   10px;
  --dg-gap-lg:   16px;
  --dg-gap-xl:   24px;
  --dg-gap-xxl:  32px;
}

/* base de 16px: as variáveis em rem derivam daqui */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  /* Sem isto o corpo herda 16px do html e escapa da escala; era o tamanho
     de 156 elementos que não declaram font-size. */
  font-size: var(--dg-fs-lg);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Controles não herdam tipografia por padrão: o navegador impõe 13.33px */
button, input, select, textarea {
  font: inherit;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* Foco visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--dg-color-gold);
  outline-offset: 3px;
}

/* Skip-link: fora da tela até receber foco */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--dg-color-gold);
  color: var(--bg-dark);
  font-weight: 400;
  padding: 10px 16px;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section[id],
footer[id] {
  scroll-margin-top: 78px;
}

/* ===================================================
   DG-SECTION - classe base para todas as seções de conteúdo.
   Composição: <section class="dg-section [dg-section--alt] [xxx-section]">
   =================================================== */
.dg-section {
  padding: 56px 0;
  background: var(--bg-dark);
}
.dg-section--alt {
  background: var(--bg-light);
}

/* Em sub-páginas, seções empilhadas ganham separação visual extra no topo */
.profile-page-main section[id] + section[id] .section-title {
  padding-top: 8px;
}

/* ---------- Shared section headings ---------- */
/* Sem peso e sem tamanho grande para se destacar: o título usa branco
   puro contra o cinza do resto, e respiro generoso em volta. */
.section-title {
  font-size: var(--dg-fs-xl);
  font-weight: 400;
  color: var(--text-white);
  text-align: left;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.section-subtitle {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 36px;
}

/* ===================================================
   DG-BG-VIDEO - overlay de vídeo de fundo.
   Composição: <video class="dg-bg-video [hero-bg-video]">
   =================================================== */
.dg-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: var(--bg-nav);
  padding: 18px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--dg-gap-sm);
  font-size: var(--dg-fs-lg);
  font-weight: 400;
  color: var(--text-white);
}
.nav-logo .emoji { font-size: var(--dg-fs-lg); }

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  white-space: nowrap;
}
.nav-links a {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  transition: color .25s;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--text-white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--text-white);
}

/* Contatos: só aparecem no menu recolhido (mobile), um por linha.
   No desktop o LinkedIn já está em .nav-icons; duplicar aqui poluiria a
   barra horizontal. */
.nav-contact-item { display: none; }

.nav-icons { display: flex; align-items: center; gap: var(--dg-gap-lg); }
.nav-icons a,
.nav-icons button {
  color: var(--text-muted);
  font-size: var(--dg-fs-lg);
  background: none; border: none;
  cursor: pointer;
  transition: color .25s;
}
.nav-icons a:hover,
.nav-icons button:hover { color: var(--text-white); }

.hamburger { display: flex; flex-direction: column; gap: var(--dg-gap-xs); }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-muted);
  transition: background .25s;
}
.hamburger:hover span { background: var(--text-white); }

/* Fundo com blur atrás do menu mobile aberto; clicar nele fecha o menu. */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(27, 27, 48, .4);
}
.nav-backdrop.open { display: block; }

/* Painel do menu (mobile e desktop): estilo compartilhado do estado aberto;
   cada breakpoint abaixo só ajusta posição/moldura. */
.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: var(--dg-gap-none);
  background: var(--bg-card);
  padding: 8px 24px 16px;
}
.nav-links.open li { border-bottom: 1px solid var(--border-card); }
.nav-links.open li:last-child { border-bottom: none; }
.nav-links.open a { display: block; padding: 14px 0; }
.nav-links.open a.active::after { display: none; }

/* Em telas menores, o menu horizontal vira um painel acionado pelo hamburger.
   O breakpoint inclui tablets: antes, apenas o mobile possuía o painel, então
   o clique ativava o backdrop mas não havia nada para exibir. */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    border-top: 1px solid var(--border-card);
  }
  .nav-links.open a { font-size: var(--dg-fs-lg); }
  .navbar { position: sticky; }
  .navbar .container { position: relative; }
  .nav-contact-item { display: block; }
  .nav-contact-item a {
    display: flex;
    align-items: center;
    gap: var(--dg-gap-sm);
  }
  .nav-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .hamburger { display: flex; }
  .hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hamburger span { transition: transform .25s, opacity .25s, background .25s; }
}

/* No desktop, o menu horizontal continua visível e o hamburger abre uma
   cópia em painel para preservar a navegação superior e oferecer o mesmo
   comportamento em todas as telas. */
@media (min-width: 1025px) {
  .navbar .container { position: relative; }
  .nav-links.open {
    position: absolute;
    top: 100%;
    right: 24px;
    min-width: 260px;
    border: 1px solid var(--border-card);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

/* hero-bg-video: herda de .dg-bg-video, mantido como seletor semântico */

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: var(--dg-gap-xl);
  min-height: 460px;
}

.hero-left { z-index: 2; padding: 40px 0 60px; }
.hero-greeting {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4px;
}
.hero-name {
  font-size: var(--dg-fs-xxl);
  font-weight: 700;              /* junto com a marca, o único 700 do site */
  color: var(--text-white);
  line-height: 1.15; margin-bottom: 12px;
  letter-spacing: -.02em;
}
.hero-desc {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  line-height: 1.4; max-width: 420px;
  margin-bottom: 26px;
}

.hero-center {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  align-items: flex-end;
  align-self: end;
  padding: 40px 0 60px;
}
.hero-photo-frame,
.hobby-photo-carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 168, 75, 0.2);
  border: 1px solid rgba(212, 168, 75, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.hero-photo-frame {
  margin: 0;
}

.hero-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.04);
}

.hobby-photo-carousel {
  max-width: 360px;
}

.hero-photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s ease;
  pointer-events: none;
}

.hero-photo-slide.active {
  opacity: 1;
  z-index: 2;
}

/* hero-social: modificador de .dg-social-links. Override: circular, 34px */
.hero-social { margin-top: 8px; }
.hero-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
}

/* ===================================================
   BLOCO 4 - FOOTER
   =================================================== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 60px 0 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
}

/* footer-bg-video: herda de .dg-bg-video, mantido como seletor semântico */

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--dg-gap-xl);
  padding-bottom: 48px;
}

.footer-logo {
  display: flex; align-items: center;
  gap: var(--dg-gap-sm); font-size: var(--dg-fs-lg);
  font-weight: 400; color: var(--text-white);
  margin-bottom: 14px;
}
.footer-desc {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  line-height: 1.65; margin-bottom: 20px;
  max-width: 280px;
}
/* footer-social: modificador de .dg-social-links. Override: quadrado, 36px */
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 0;
}

.footer-heading {
  font-size: var(--dg-fs-sm);
  color: var(--text-white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  display: flex; align-items: center; gap: var(--dg-gap-sm);
  transition: color .25s;
}
.footer-links a:hover { color: var(--dg-color-gold); }
.footer-links i { font-size: var(--dg-fs-md); }

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
}
.footer-bottom .heart { color: #e74c3c; }

/* ===================================================
   CARD BASE - compartilhado pelos blocos 5-11
   =================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0;
  padding: 28px 24px;
  transition: border-color .3s, transform .3s;
}
.card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-3px);
}
.card h3 {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--text-white);
  margin-bottom: 8px;
}
.card p {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  line-height: 1.65;
}
.card > .fa-2x,
.card > i {
  color: var(--dg-color-gold);
  margin-bottom: 16px;
}

/* `.glass` só tem efeito onde há algo atrás para embaçar */
.glass {
  background: rgba(42, 42, 72, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ===================================================
   DG-ELEVATED-CARD - card com topo colorido, glow no hover.
   Unifica .service-card e .award-card. A variável --card-color
   controla a cor de destaque; cada modificador a redefine.
   Composição: <article class="dg-elevated-card service-card">
   =================================================== */
.dg-elevated-card {
  --card-color: var(--dg-color-purple);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: default;
}
/* Linha de topo colorida */
.dg-elevated-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color);
  opacity: .8;
  transition: opacity .3s ease;
}
/* Glow no hover */
.dg-elevated-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, var(--card-color), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.dg-elevated-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px var(--card-color);
}
.dg-elevated-card:hover::after { opacity: .06; }
.dg-elevated-card:hover::before { opacity: 1; }

/* ===================================================
   DG-CARD-HEADER / DG-CARD-ICON / DG-CARD-TITLE-BLOCK
   Header de card com ícone + bloco de título. Reutilizado
   por serviços e prêmios.
   =================================================== */
.dg-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--dg-gap-md);
  margin-bottom: 12px;
}
.dg-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--card-color);
  color: var(--text-white);
  transition: transform .3s ease, filter .3s ease;
}
.dg-card-icon svg { display: block; }
.dg-elevated-card:hover .dg-card-icon {
  transform: scale(1.08) rotate(-3deg);
  filter: brightness(1.12);
}
.dg-card-title-block {
  display: flex;
  flex-direction: column;
  gap: var(--dg-gap-xs);
}

/* ===================================================
   DG-SOCIAL-LINKS - links sociais com ícones em círculo/quadrado.
   Composição: <div class="dg-social-links hero-social">
   =================================================== */
.dg-social-links {
  display: flex;
  gap: var(--dg-gap-md);
}
.dg-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: var(--dg-fs-lg);
  transition: color .25s, border-color .25s;
}
.dg-social-links a:hover {
  color: var(--dg-color-gold);
  border-color: var(--dg-color-gold);
}

/* ===================================================
   DG-ARTICLE-CARD - card de artigo no grid da home/blog.
   Elimina os inline styles que se repetiam ~30 vezes no HTML.
   Composição: <a class="card glass dg-article-card" href="...">
   =================================================== */
.dg-article-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dg-article-card-img {
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 14px;
  height: 180px;
}
.dg-article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dg-article-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dg-article-card-meta .article-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--dg-color-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.dg-article-card-date {
  color: var(--dg-color-gray);
  font-size: 0.78rem;
}
.dg-article-card h3 {
  font-family: var(--ff-display);
  color: var(--text-white);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.dg-article-card > p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}
.dg-article-card-cta {
  color: var(--dg-color-gold);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* DG-ARTICLE-GRID - wrapper de grid dos article-cards */
.dg-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- Links para páginas do perfil ---------- */
/* profile-pages-section: usa dg-section dg-section--alt no HTML */

/* ---------- Páginas extraídas do perfil ---------- */
.profile-page-main {
  padding: 32px 0 80px;
  background: var(--bg-dark);
}
.profile-page-back-container {
  margin-bottom: 8px;
}
.profile-page-back {
  margin-bottom: 0;
}
.profile-page-main > section[id] {
  margin-bottom: 0;
}
.profile-pages-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--dg-gap-lg);
}
.profile-page-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  color: var(--text-white);
  text-decoration: none;
}
.profile-page-card-icon {
  display: inline-flex;
  color: var(--dg-color-gold);
}
.profile-page-card-icon svg {
  width: 28px;
  height: 28px;
}
.profile-page-card-title {
  font-family: var(--ff-display);
  font-size: var(--dg-fs-lg);
}
.profile-page-card:focus-visible {
  outline: 2px solid var(--dg-color-gold);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .profile-pages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .profile-pages-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   BLOCO 5 - SERVIÇOS
   =================================================== */
/* services-section: usa dg-section dg-section--alt no HTML */

/* ===================================================
   BLOCO 8 - ARTIGOS
   =================================================== */
/* articles-section: usa dg-section no HTML */
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--dg-gap-md);
  /* Cada card tem a altura do próprio conteúdo. Se esticassem para a
     altura da linha, a sobra abriria um vão - antes das menções ou
     antes da data. Bases desalinhadas é o preço de não ter vão. */
  align-items: start;
}
.articles-list .card {
  border-left: 3px solid var(--dg-color-purple);
  display: flex;
  flex-direction: column;
  /* Escopado ao bloco de artigos: `.card` também é usado por serviços,
     projetos e cases, que mantêm o padding padrão de 28px. */
  padding: 20px 24px;
}

.articles-status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--dg-fs-lg);
  color: var(--text-muted);
  padding: 24px 0;
}

.article-card-title-link {
  color: inherit;
  text-decoration: none;
}

.article-synopsis {
  margin-bottom: 10px;
}

/* Menções como texto corrido, não como chips */
.article-mentions {
  font-size: var(--dg-fs-md);
  line-height: 1.4;
  color: var(--text-muted);
  word-break: break-word;
}
.article-mentions a {
  color: inherit;
  transition: color .2s;
}
.article-mentions a:hover,
.article-mentions a:focus-visible {
  color: var(--dg-color-purple);
  text-decoration: underline;
}

/* Fecha o card, logo após as menções */
.article-updated {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  letter-spacing: .3px;
}

/* ===================================================
   BLOCO 10 - TIMELINE
   =================================================== */
/* timeline-section: usa dg-section no HTML */
.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-left: 32px;
}
/* Trilho vertical */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border-card);
}
.timeline-item {
  position: relative;
  padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
/* Marcador */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 7px;
  width: 16px; height: 16px;
  background: var(--bg-dark);
  border: 2px solid var(--dg-color-gold);
  border-radius: 50%;
}
.timeline-year {
  display: block;
  font-size: var(--dg-fs-lg);
  font-weight: 400;
  color: var(--dg-color-gold);
  margin-bottom: 4px;
}
.timeline-item p {
  font-size: var(--dg-fs-lg);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================
   BLOCO 11 - TABS
   =================================================== */
/* tabs-section: usa dg-section dg-section--alt no HTML */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dg-gap-xs);
  justify-content: flex-start;
  width: 100%;
  margin: 0 auto -1px auto;
  position: relative;
  z-index: 2;
}
.tab-button {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--dg-fs-lg);
  font-weight: 400;
  padding: 10px 20px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.tab-button:hover {
  color: var(--text-white);
  border-color: rgba(255,255,255,.2);
}
.tab-button.active {
  color: var(--bg-dark);
  background: var(--dg-color-gold);
  border-color: var(--dg-color-gold);
  border-bottom-color: var(--dg-color-gold);
  position: relative;
  z-index: 3;
}

.tab-panels {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0 6px 6px 6px;
  padding: 28px;
  position: relative;
  z-index: 1;
}
/* Regra que faltava: sem ela os 4 painéis apareciam empilhados */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.courses-list li {
  font-size: var(--dg-fs-lg);
  color: var(--text-light);
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--border-card);
}
.courses-list li.course-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--dg-gap-md);
}
.courses-list li:last-child { border-bottom: none; }
.courses-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--dg-color-gold);
}
.course-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-credential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dg-color-gold);
  margin-left: auto;
  opacity: 0.95;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.course-credential-icon svg {
  stroke: var(--dg-color-gold);
}
.course-credential-icon:hover {
  opacity: 1;
  transform: scale(1.25);
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc((100% - 3 * 24px) / 4);  /* 4 visible */
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Serviços: 2 cards por linha no tablet. Grid de 2 colunas diretas em vez
     de 4 colunas com spans + nth-child: spans sobrepostos em tracks 1fr
     compartilhadas produzem colunas de 0px (bug real encontrado em produção,
     ver histórico de commits). Seletor com 2 classes (mesmo truque usado no
     breakpoint mobile) para vencer a regra base .services-grid que vem
     depois no arquivo com a mesma especificidade. */
  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
}

@media (max-width: 1024px) and (min-width: 601px) {
  /* Tablet exatamente igual ao Desktop */
  .hero .container {
    display: grid !important;
    grid-template-columns: 1.15fr .85fr !important;
    align-items: center;
    text-align: left;
    gap: var(--dg-gap-xl);
  }
  .hero-left {
    order: 0 !important;
    padding: 40px 0 60px !important;
  }
  .hero-center {
    order: 0 !important;
    padding: 40px 0 60px !important;
  }
  .hero-social { justify-content: flex-start !important; }
}

@media (max-width: 600px) {
  .hero {
    padding: 20px 0 0 !important;
  }
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
  }
  .hero-left {
    order: 1 !important;
    padding: 10px 0 24px !important;
  }
  .hero-center {
    order: 2 !important;
    padding: 10px 0 40px !important;
    margin: 0 auto;
    width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-social {
    justify-content: center;
  }

  .what-i-do .container { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { grid-column: 1 / -1; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--dg-gap-xxl);
  }

  .tab-panels { padding: 24px; }

  /* Mobile */
  /* Menu recolhido: vira painel sob a navbar, aberto pelo hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: var(--dg-gap-none);
    background: var(--bg-card);
    border-top: 1px solid var(--border-card);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-card); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: var(--dg-fs-lg);
  }
  .nav-links a.active::after { display: none; }
  .navbar { position: sticky; }
  .navbar .container { position: relative; }

  /* Contatos: um por linha, ícone + título, só no menu recolhido */
  .nav-contact-item { display: block; }
  .nav-contact-item a {
    display: flex;
    align-items: center;
    gap: var(--dg-gap-sm);
  }
  .nav-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; }

  /* Hamburger vira X quando aberto */
  .hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hamburger span { transition: transform .25s, opacity .25s, background .25s; }

  .hero-name { font-size: var(--dg-fs-xxl); }
  .companies-card { gap: var(--dg-gap-md); padding: 16px 20px; }
  .company-pill { padding: 10px 20px; font-size: var(--dg-fs-lg); }

  .carousel-item {
    flex: 0 0 calc((100% - 1 * 24px) / 2);  /* 2 visible */
  }

  .skills-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: var(--dg-gap-sm); text-align: center;
  }

  .services-section .services-grid,
  .projects-grid { grid-template-columns: 1fr; }

  .section-title { font-size: var(--dg-fs-xl); }
  .timeline { padding-left: 28px; }
  .timeline-item::before { left: -28px; }
  .tab-panels { padding: 20px 18px; }
  .tabs { gap: var(--dg-gap-sm); }
  .tab-button { padding: 9px 16px; font-size: var(--dg-fs-md); }

  /* --- Otimizações específicas para mobile --- */
  /* 1. Foto fixa do Hero em escala menor no celular */
  .hero-photo-frame { max-width: 280px; }

  /* 2. Mostra apenas as 2 primeiras experiências */
  .experience-list .job-card:nth-child(n+3) { display: none !important; }

  /* 3. Artigos (prévia da home): esconde menções e data */
  #articlesList .article-mentions,
  #articlesList .article-updated { display: none !important; }

  /* 4. Artigos (prévia da home): mostra apenas os 4 primeiros.
     Escopado por ID porque #fullArticlesList (blog.html) compartilha a
     classe .articles-list e precisa listar todos os artigos. */
  #articlesList .article-card:nth-child(n+5) { display: none !important; }

  /* 5. Pontos fortes, Áreas de interesse e Como eu trabalho: mostra apenas 3 itens cada */
  .corporate-col .checklist li:nth-child(n+4) { display: none !important; }

  /* 6. Rodapé: preserva Navegação e Contato; esconde Idiomas no mobile. */
  .footer-grid .footer-col:nth-child(4) { display: none !important; }

  /* 7. Fora do teclado: exibe no máximo 15 itens no favo de mel */
  .hobby-honeycomb .hobby-hex:nth-child(n+16),
  .hobby-honeycomb .hobby-fileira:nth-child(n+8) { display: none !important; }
}

/* ===================================================
   SEÇÕES DIRIGIDAS PELO profile.json
   =================================================== */

/* Alternância de fundo automática: dispensa regra por seção e sobrevive
   ao reordenamento que profile.js faz a partir de `order`. */
section[data-block] { padding: 56px 0; background: var(--bg-dark); }
section[data-block]:nth-of-type(even) { background: var(--bg-light); }
.hero[data-block] { padding: 56px 0 0; background: var(--bg-dark); }

/* ---------- Hero ---------- */
.hero-headline {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--dg-color-gold);
  margin-bottom: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--dg-gap-md); margin-bottom: 24px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: var(--dg-fs-lg); font-weight: 400;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--dg-color-gold); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-card); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--dg-color-gold); color: var(--dg-color-gold); }

/* ---------- Listas com marcador ---------- */
.checklist li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: var(--dg-fs-lg);
  color: var(--text-muted);
  line-height: 1.4;
}
.checklist li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--dg-color-gold);
}

/* ---------- Perfil corporativo ---------- */
.corporate-body { }
.corporate-lead {
  font-size: var(--dg-fs-lg); color: var(--text-light);
  line-height: 1.4; margin-bottom: 18px;
}
.corporate-text {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  line-height: 1.4; margin-bottom: 28px;
}
.corporate-quote {
  border-left: 3px solid var(--dg-color-gold);
  padding: 4px 0 4px 20px;
  margin-bottom: 32px;
}
.corporate-quote p {
  font-size: var(--dg-fs-lg);
  color: var(--text-white); line-height: 1.4;
  margin-bottom: 8px;
}
.corporate-quote cite {
  font-size: var(--dg-fs-md); font-style: normal;
  color: var(--text-muted);
}
.corporate-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--dg-gap-xxl);
}
.corporate-col h3 {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--text-white);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dg-gap-xl);
  align-items: start;
}

/* service-card: modificador de .dg-elevated-card.
   Mapeia --svc-color para --card-color (base). */
.service-card {
  --card-color: var(--svc-color, var(--dg-color-purple));
}

/* svc-header / svc-icon / svc-title-block: herdam de dg-card-header,
   dg-card-icon, dg-card-title-block. Mantidos como seletores semânticos
   para CSS específico de serviços. */
.svc-title-block {
  justify-content: center;
}

/* Título */
.svc-title {
  font-size: var(--dg-fs-lg);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0;
  letter-spacing: .01em;
}

/* Tagline */
.svc-tagline {
  font-size: var(--dg-fs-md);
  color: var(--svc-color);
  font-weight: 500;
  margin-bottom: 0;
}

/* Para quem */
.svc-audience {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Inclui */
.svc-includes {
  font-size: var(--dg-fs-md);
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Diferencial */
.svc-diff {
  font-size: var(--dg-fs-md);
  color: var(--text-light);
  margin-bottom: 14px;
}
.svc-diff strong {
  color: var(--svc-color);
  font-weight: 500;
}

/* Badges genéricos - estrutura (dg-badges-base) + cor (dg-badges-<cor>).
   Composição: <ul class="dg-badges-base dg-badges-<cor>"> ... </ul>, ou um
   pill avulso com <span class="dg-badges-pill dg-badges-<cor>">.
   Usado na stack de tecnologias dos serviços, nas ferramentas de IA e no
   selo de colocação dos prêmios. */
.dg-badges-base {
  display: flex; flex-wrap: wrap; gap: var(--dg-gap-sm);
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border-card);
  --dg-badge-color: var(--svc-color, var(--award-color, var(--dg-color-gold)));
}
.dg-badges-base li,
.dg-badges-pill {
  font-size: var(--dg-fs-sm);
  color: var(--dg-badge-color, var(--award-color, var(--dg-color-gold)));
  border: 1px solid var(--dg-badge-color, var(--award-color, var(--dg-color-gold)));
  border-radius: 100px;
  padding: 3px 10px;
  opacity: .85;
  transition: opacity .2s;
}
.dg-badges-pill { display: inline-block; }
.service-card:hover .dg-badges-base li { opacity: 1; }
.award-card:hover .dg-badges-pill { opacity: 1; }

.dg-badges-gold   { --dg-badge-color: var(--dg-color-gold); }
.dg-badges-blue   { --dg-badge-color: var(--dg-color-blue); }
.dg-badges-muted  { --dg-badge-color: var(--text-muted); }
.dg-badges-green  { --dg-badge-color: var(--dg-color-green); }
.dg-badges-purple { --dg-badge-color: var(--dg-color-purple); }
.dg-badges-white  { --dg-badge-color: var(--text-white); }
.dg-badges-nav    { --dg-badge-color: var(--text-light); }

/* ---------- Experiência ---------- */
.experience-list { display: flex; flex-direction: column; gap: var(--dg-gap-lg); }
.job-card { border-left: 3px solid var(--dg-color-gold); }
.job-role {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--dg-color-gold); margin-bottom: 6px;
}
.job-meta {
  display: flex; flex-wrap: wrap; gap: var(--dg-gap-md);
  font-size: var(--dg-fs-md); color: var(--text-muted);
  margin-bottom: 14px;
}
.job-context {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  line-height: 1.75; margin-bottom: 12px;
}
.job-highlight {
  margin-top: 16px; padding: 16px 18px;
  background: rgba(169, 138, 224, .07);
  border: 1px solid rgba(169, 138, 224, .25);
}
.job-highlight h4 {
  font-size: var(--dg-fs-lg);
  color: var(--dg-color-purple); margin-bottom: 6px;
}
.job-highlight .checklist li::before { color: var(--dg-color-purple); }

/* ---------- IA / Prompt Engineering ---------- */
.skills-ai-body { text-align: center; }
.skills-ai-text {
  font-size: var(--dg-fs-lg); color: var(--text-muted);
  line-height: 1.4; margin-bottom: 24px;
}
/* Lista de ferramentas de IA: usa o componente dg-badges (ver acima),
   centralizado em vez de alinhado à esquerda. */
.skills-ai-body .dg-badges-base {
  justify-content: center;
  border-top: none;
  padding-top: 0;
}

/* ---------- FAVO DE MEL - RESERVADO PARA AS TAGS ----------
   Não está em uso (confirmado: nenhuma ocorrência de .favo-hex/.favo-fileira/
   .favo-conteudo em profile.js ou nos HTMLs). Ficou grande demais para os
   cartões de proficiência (textos de até 82 caracteres esticam o hexágono),
   mas serve para rótulos curtos. Aplicar quando as tags entrarem.

   Hexágono de ponta em cima. É a única orientação que tessela em FILEIRAS:
   vizinhos na mesma fileira encostam pelas arestas verticais (avanço = 1
   largura, gap 0) e a fileira seguinte desce 3/4 da altura, encaixando na
   reentrância. Com topo reto o encaixe seria por colunas, e sobravam
   vazios triangulares entre as fileiras.

   H = L * 2/√3 ≈ 1.1547 * L - a proporção que fecha a tesselagem. */
:root {
  --hex-l: 268px;
  --hex-a: calc(var(--hex-l) * 1.1547);
  --hex-borda: 2px;
}

.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--dg-gap-lg);
  align-items: start;
}
.proficiency-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border-color: rgba(169, 138, 224, .18);
  background:
    linear-gradient(135deg, rgba(169, 138, 224, .12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.proficiency-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(212, 168, 75, .16), transparent 26%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  opacity: .72;
}
.proficiency-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 201, 138, .45);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .26), 0 0 34px rgba(111, 201, 138, .08);
}
.proficiency-card > * { position: relative; z-index: 1; }
.proficiency-head {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: var(--dg-gap-md); margin-bottom: 10px;
}
.proficiency-head h3 { margin-bottom: 0; }

.favo-fileira {
  display: flex;
  justify-content: center;
  gap: var(--dg-gap-none);                                     /* gap quebraria o encaixe */
  margin-top: calc(var(--hex-a) * -0.25);     /* avanço vertical de 3/4 */
}
.favo-fileira:first-child { margin-top: 0; }

/* A fileira curta é centralizada, o que já a desloca meia largura - é
   exatamente o deslocamento que o favo pede. */

.favo-hex {
  position: relative;
  flex: 0 0 var(--hex-l);
  height: var(--hex-a);
  clip-path: var(--hex-clip-path);
  background: var(--border-card);             /* vira a "borda" do favo */
}
/* Miolo recuado: cria a linha de separação sem gap no layout */
.favo-hex::before {
  content: '';
  position: absolute;
  inset: var(--hex-borda);
  clip-path: var(--hex-clip-path);
  background: var(--bg-card);
  transition: background .3s;
}
.favo-hex:hover { background: rgba(169, 138, 224, .45); }
.favo-hex:hover::before { background: var(--bg-card-alt); }

/* Texto só na faixa central: perto das pontas a largura útil colapsa */
.favo-conteudo {
  position: absolute;
  inset: 26% 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--dg-gap-sm);
}
.favo-conteudo h3 {
  font-size: var(--dg-fs-lg);
  margin-bottom: 0;
  line-height: 1.25;
}
.favo-conteudo p {
  font-size: var(--dg-fs-md);
  line-height: 1.45;
}

.proficiency-level {
  font-size: var(--dg-fs-sm);
  color: var(--dg-color-green);
  border: 1px solid rgba(111, 201, 138, .35);
  padding: 3px 8px;
  background: rgba(111, 201, 138, .07);
  box-shadow: 0 0 18px rgba(111, 201, 138, .08);
}
.proficiency-progress {
  position: relative;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(27, 27, 48, .74);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, .25);
}
.proficiency-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .05) 0 1px,
    transparent 1px 25%);
  background-size: 25% 100%;
}
.proficiency-progress-bar {
  display: block;
  width: var(--proficiency-value);
  height: 100%;
  background: linear-gradient(90deg, var(--dg-color-green), var(--dg-color-purple) 58%, var(--dg-color-gold));
  box-shadow: 0 0 18px rgba(111, 201, 138, .28), 0 0 22px rgba(169, 138, 224, .16);
  transform-origin: left center;
  animation: proficiency-fill .9s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes proficiency-fill {
  from { transform: scaleX(0); opacity: .35; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .proficiency-card,
  .proficiency-progress-bar {
    animation: none;
    transition: none;
  }
}

/* Abaixo de 3 por fileira o favo perde sentido: vira lista */
@media (max-width: 900px) {
  .favo-fileira { display: block; margin-top: 0; }
  .favo-hex {
    width: 100%; height: auto;
    clip-path: none;
    background: none;
    border-left: 3px solid var(--dg-color-purple);
    margin-bottom: 12px;
  }
  .favo-hex::before { position: static; inset: auto; clip-path: none; display: block; }
  .favo-conteudo {
    position: static; inset: auto;
    align-items: flex-start; text-align: left;
    padding: 16px 20px;
  }
}

/* ---------- Timeline ---------- */
.timeline-title {
  font-size: var(--dg-fs-lg); font-weight: 400;
  color: var(--text-white); margin-bottom: 4px;
}

/* ---------- Prêmios ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dg-gap-xl);
  align-items: start;
}
/* award-card: modificador de .dg-elevated-card.
   Mapeia --award-color para --card-color (base).
   Diferenças vs base: padding menor, hover translateY menor. */
.award-card {
  --card-color: var(--award-color, var(--dg-color-gold));
  padding: 28px 24px 24px;
}
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.35), 0 0 0 1px var(--card-color);
}

/* award-header: herda de dg-card-header. Overrides: align center, margin 14px */
.award-header {
  align-items: center;
  margin-bottom: 14px;
}
/* award-icon: herda de dg-card-icon. Override: 46px */
.award-icon {
  width: 46px; height: 46px;
  min-width: 46px;
}
/* .award-badge virou .dg-badges-pill (componente compartilhado, ver acima) */
.dg-badges-pill.award-placement {
  font-weight: 500;
  margin-bottom: 4px;
  align-self: flex-start;
}
.award-project {
  font-size: var(--dg-fs-lg);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0;
}
.award-tagline {
  font-size: var(--dg-fs-md);
  color: var(--award-color);
  font-weight: 500;
  margin-bottom: 0;
}
.award-event {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  margin-bottom: 10px;
}
.award-text, .award-desc {
  font-size: var(--dg-fs-md);
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 8px;
}
.award-context {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.award-context strong { color: var(--award-color); font-weight: 500; }
.award-conditions, .award-doc {
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  margin-bottom: 8px;
}
.award-credits {
  font-size: var(--dg-fs-md); color: var(--text-muted);
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border-card);
}

/* ---------- Formação ---------- */
.education-list { display: flex; flex-direction: column; gap: var(--dg-gap-none); }
.education-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center; gap: var(--dg-gap-sm);
  padding: 18px;
}
.education-period {
  font-size: var(--dg-fs-md); font-weight: 400;
  color: var(--dg-color-gold);
}
.education-info h3 { margin-bottom: 2px; font-size: var(--dg-fs-lg); }
.education-info p { font-size: var(--dg-fs-md); }
.education-status {
  font-size: var(--dg-fs-md); color: var(--text-muted);
  border: 1px solid var(--border-card);
  padding: 3px 10px; white-space: nowrap;
}

/* ---------- Fora do teclado (hobbies) ---------- */

.hobbies-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: var(--dg-gap-xl);
  margin-top: 22px;
}

.hobbies-copy {
  min-width: 0;
}

.hobbies-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hobbies-intro { max-width: 100%; }
.hobbies-intro p {
  font-size: var(--dg-fs-lg); color: var(--text-light);
  line-height: 1.4; margin-bottom: 18px;
}

.hobby-tags {
  display: flex; flex-wrap: wrap; gap: var(--dg-gap-sm);
  margin-bottom: 32px;
}
.hobby-tag {
  font-size: var(--dg-fs-sm); color: var(--dg-color-purple);
  border: 1px solid rgba(169, 138, 224, .35);
  padding: 4px 12px;
}

/* Mesma tesselagem do favo reservado às tags (ver acima), com hexágono bem
   menor - aqui o conteúdo é uma foto, não texto, então não há mínimo de
   largura legível a respeitar. O tamanho por breakpoint muda só --hobby-l;
   a JS mede o container e decide quantos cabem por fileira. */
:root {
  --hobby-l: 92px;
  --hobby-a: calc(var(--hobby-l) * 1.1547);
  --hobby-borda: 2px;
  --hobby-gap: var(--dg-gap-md);
}
@media (max-width: 900px) { :root { --hobby-l: 67px; } }
@media (max-width: 480px) { :root { --hobby-l: 55px; } }

.hobby-honeycomb {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}
.hobby-fileira {
  display: flex;
  justify-content: center;
  gap: var(--hobby-gap);
  margin-top: calc((var(--hobby-a) * -0.25) + var(--hobby-gap));
}
.hobby-fileira:first-child { margin-top: 0; }

.hobby-hex {
  position: relative;
  flex: 0 0 var(--hobby-l);
  height: var(--hobby-a);
  clip-path: var(--hex-clip-path);
  background: var(--border-card);
  transform-origin: center;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .45s, box-shadow .45s;
}
.hobby-hex__img {
  position: absolute;
  inset: var(--hobby-borda);
  clip-path: var(--hex-clip-path);
  background-size: cover;
  background-position: center;
  transition: transform .45s;
  transform-origin: center;
}
/* Realce sobe de z-index para "sair" do favo por cima dos vizinhos -
   o clip-path de cada hexágono impede que a imagem vire um quadrado. */
.hobby-hex:hover {
  z-index: 4;
  transform: scale(2);
  box-shadow: 0 0 42px rgba(212, 168, 75, .38), 0 0 64px rgba(169, 138, 224, .22);
}
.hobby-hex:hover .hobby-hex__img {
  transform: scale(1.02);
}

.hobby-hex--tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dg-color-gold);
  box-shadow: inset 0 14px 24px rgba(0, 0, 0, .8), inset 0 -10px 18px rgba(255, 255, 255, .035);
  transform: none;
  transition: none;
}
.hobby-hex--tag:hover {
  z-index: auto;
  transform: none;
  box-shadow: inset 0 14px 24px rgba(0, 0, 0, .8), inset 0 -10px 18px rgba(255, 255, 255, .035);
}
.hobby-hex__tag {
  max-width: 80%;
  color: var(--bg-dark);
  font-size: var(--dg-fs-sm);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .hobby-hex,
  .hobby-hex__img {
    transition: none;
  }
}

/* ---------- Responsivo das seções novas ---------- */
@media (max-width: 900px) {
  .hobbies-layout {
    grid-template-columns: 1fr;
  }
  .hobbies-feature {
    justify-content: center;
  }
  .education-row {
    grid-template-columns: 1fr;
    gap: var(--dg-gap-sm);
  }
  .education-status { justify-self: start; }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left { padding-bottom: 24px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-center { order: -1; }
  .hero-actions, .hero-social { justify-content: center; }
  .hobby-photo-carousel { max-width: 320px; }
}

/* ---------- Marca WM ----------
   O lockup já traz o espaçamento entre marca e nome resolvido por medição.
   Não recompor com CSS: usar o SVG inteiro. */
.logo-lockup {
  height: 26px; width: auto;
  display: block;
}
.footer-logo .logo-lockup { height: 30px; }

/* ===================================================
   TIPOGRAFIA DE MARCA - Comfortaa
   Só em marca, display e títulos de seção. O corpo de texto continua em
   Inter: Comfortaa é 23% mais larga e reduz o número de palavras por linha.
   =================================================== */
.nav-logo,
.footer-logo,
.hero-greeting,
.hero-name,
.hero-headline,
.section-title,
.footer-heading,
.stat-number,
.timeline-year,
.award-placement,
.education-period {
  font-family: var(--ff-display);
}

/* Comfortaa não tem 800; o topo da família é 700 */
.hero-name,
.section-title { font-weight: 400; }

/* A largura maior pede um pouco menos de espacejamento em display */
.hero-name { letter-spacing: -.02em; }
.section-title { letter-spacing: -.01em; }

/* Ícones inline (SVG), no lugar do Font Awesome */
.hero-social svg,
.footer-social svg { width: 16px; height: 16px; }
.nav-icons svg { width: 17px; height: 17px; }
.footer-links svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ===================================================
   TEMPO DE CARREIRA AO VIVO (helper.js)
   =================================================== */
.anos-vivo {
  position: relative;
  white-space: nowrap;      /* "27 anos" + ícone não quebram no meio */
}
.anos-rotulo { text-decoration: underline; }

.anos-info {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin-right: 4px;         /* colado no número */
  cursor: help;
  color: var(--dg-color-purple);
  line-height: 0;
  opacity: .8;
  transition: opacity .2s;
}
.anos-info:hover,
.anos-info:focus-visible { opacity: 1; }
.anos-info svg {
  width: .72em;
  height: .72em;
  vertical-align: .38em;     /* sobrescrito, acima da linha de base */
  position: relative;
  z-index: 1;
}

/* Ping: anel que expande e some, atrás do ícone */
.anos-info::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: .72em; height: .72em;
  margin: -.36em 0 0 -.36em;
  transform: translateY(-.38em);   /* acompanha o deslocamento do ícone */
  border-radius: 50%;
  background: currentColor;
  animation: anos-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
  pointer-events: none;
}
@keyframes anos-ping {
  0%        { transform: translateY(-.38em) scale(1);   opacity: .5; }
  70%, 100% { transform: translateY(-.38em) scale(2.3); opacity: 0; }
}
/* Para de pulsar quando já chamou a atenção */
.anos-info:hover::before,
.anos-info:focus-visible::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .anos-info::before { animation: none; }
}

.anos-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;

  width: max-content;
  max-width: min(300px, 78vw);
  white-space: normal;      /* o container é nowrap; o balão não */

  background: var(--bg-card-alt);
  border: 1px solid var(--dg-color-purple);
  color: var(--text-light);
  padding: 10px 13px;
  font-size: var(--dg-fs-md);
  font-weight: 400;
  font-family: var(--ff-sans);
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
/* seta */
.anos-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  /* --seta compensa o deslocamento que o JS aplica perto das bordas */
  margin-left: calc(-6px + var(--seta, 0px));
  border: 6px solid transparent;
  border-top-color: var(--dg-color-purple);
}

/* ===================================================
   BLOG - CARD DA LISTA COMPLETA (blog.html)
   =================================================== */

.article-card-blog {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card-blog-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-card-blog-bottom .article-updated {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-card-blog-readmore {
  padding: 6px 14px;
  font-size: var(--dg-fs-md);
}

/* ===================================================
   ARTIGO - IMAGENS NOS CARDS E TÓPICOS COMPLETOS
   =================================================== */

.article-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--bg-card-alt, #151528);
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.article-card:hover .article-card-image img {
  transform: scale(1.04);
}

.article-topics {
  display: flex;
  flex-direction: column;
  gap: var(--dg-gap-xxl);
  margin-top: 24px;
}
.article-topic {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-topic:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.article-topic-title {
  font-size: var(--dg-fs-xl);
  color: var(--text-white);
  margin-bottom: 16px;
  font-family: var(--ff-display);
  border-left: 4px solid var(--dg-color-gold);
  padding-left: 12px;
  line-height: 1.3;
}
.article-topic-content em {
  font-style: normal;
  color: var(--text-white);
  font-weight: 500;
}
.article-topic-content {
  font-size: var(--dg-fs-lg);
  line-height: 1.75;
  color: var(--text-light);
  overflow-wrap: anywhere;
}
.article-topic-content h3 {
  font-size: var(--dg-fs-xl);
  color: var(--text-white);
  margin: 24px 0 12px;
}
.article-topic-content h4 {
  font-size: var(--dg-fs-lg);
  color: var(--text-light);
  margin: 18px 0 8px;
}
.article-topic-content p {
  margin-bottom: 16px;
}
.article-cover-image {
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
}
.article-cover-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-linkedin-title {
  color: var(--text-white);
  margin-bottom: 12px;
}

.article-about-author {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
}

.article-topic-content img,
.article-topic-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.article-topic-content blockquote {
  background: rgba(212, 168, 75, 0.08);
  border-left: 4px solid var(--dg-color-gold);
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  color: var(--text-light);
  font-weight: 500;
}
.article-topic-content blockquote.alert-important {
  background: rgba(255, 107, 107, 0.1);
  border-left-color: #ff6b6b;
}
.article-topic-content blockquote.alert-note {
  background: rgba(77, 171, 247, 0.1);
  border-left-color: #4dabf7;
}
.article-topic-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: var(--dg-fs-md);
}
.article-topic-content th,
.article-topic-content td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.article-topic-content th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
}
.article-topic-content ul,
.article-topic-content ol {
  margin: 12px 0 16px 24px;
}
.article-topic-content ul.dg-ul-list-disc {
  list-style: disc;
  padding-left: 20px;
}
.article-topic-content li {
  margin-bottom: 6px;
}
.article-topic-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: var(--dg-fs-sm);
}
.article-topic-content pre {
  background: #111122;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.article-topic-content pre code {
  background: transparent;
  padding: 0;
}

/* ==========================================================
   Layout do blog-detail: TOC lateral + conteudo principal
   ========================================================== */

.article-layout {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.toc-title {
  font-family: var(--ff-display);
  font-size: var(--dg-fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dg-color-gold);
  margin: 0 0 12px 0;
}

/* ==========================================================
   Navegacao prev/next
   ========================================================== */

.article-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dg-gap-md);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prev-next-link {
  display: flex;
  flex-direction: column;
  gap: var(--dg-gap-sm);
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.prev-next-link:hover {
  background: rgba(212, 168, 75, 0.08);
  border-color: rgba(212, 168, 75, 0.3);
}

.next-link {
  text-align: right;
}

.prev-next-label {
  font-size: var(--dg-fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dg-color-gold);
}

.prev-next-title {
  font-size: var(--dg-fs-lg);
  color: var(--text-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================
   Botões Flutuantes (FAB): scroll-to-top + toggle TOC
   ========================================================== */

.fab-container {
  position: fixed;
  right: 24px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  align-items: center;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 75, 0.35);
  background: rgba(16, 14, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dg-color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.fab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fab-btn:hover,
.fab-btn:focus-visible {
  background: rgba(212, 168, 75, 0.15);
  border-color: var(--dg-color-gold);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(212, 168, 75, 0.18);
  outline: none;
}

.fab-btn:active {
  transform: scale(0.97);
}

/* Botão scroll-to-top: oculto por padrao, aparece ao scrollar */
.fab-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.fab-top.fab-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Botão TOC ativo quando painel aberto */
.fab-toc[aria-expanded="true"] {
  background: rgba(212, 168, 75, 0.18);
  border-color: var(--dg-color-gold);
}

/* ==========================================================
   Painel Flutuante de TOC
   ========================================================== */

.floating-toc-panel {
  position: fixed;
  right: 84px;
  bottom: 32px;
  width: 300px;
  max-height: 70vh;
  background: rgba(16, 14, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 168, 75, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 899;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Desfoca o conteúdo quando o sumário flutuante está aberto. */
.floating-toc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 898;
  background: rgba(27, 27, 48, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.floating-toc-backdrop-open {
  opacity: 1;
  pointer-events: auto;
}

.floating-toc-panel.toc-panel-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.15);
  flex-shrink: 0;
}

.floating-toc-header .toc-title {
  margin: 0;
  font-size: var(--dg-fs-sm);
}

.floating-toc-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.floating-toc-close:hover,
.floating-toc-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  outline: none;
}

.floating-toc-close svg {
  width: 14px;
  height: 14px;
}

.floating-toc-list {
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 75, 0.3) transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-toc-list a {
  display: block;
  font-size: var(--dg-fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.floating-toc-list a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.floating-toc-list a.toc-active {
  color: var(--dg-color-gold);
  border-left-color: var(--dg-color-gold);
  background: rgba(212, 168, 75, 0.08);
}

@media (max-width: 600px) {
  .fab-container {
    right: 16px;
    bottom: 20px;
  }

  .floating-toc-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 55vh;
    border-radius: 16px 16px 0 0;
    transform-origin: bottom center;
    transform: translateY(100%);
  }

  .floating-toc-panel.toc-panel-open {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .article-prev-next {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   ARTIGO (blog-detail.html) - migrado do <style> inline da página
   =================================================== */
.article-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-header {
  margin-bottom: 40px;
}
.article-header h1 {
  font-family: var(--ff-display);
  font-size: var(--dg-fs-xl);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-align: left;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dg-gap-lg);
  align-items: center;
  font-size: var(--dg-fs-md);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 20px;
}
.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: var(--dg-gap-sm);
}
.article-meta-bar a {
  color: var(--dg-color-gold);
  text-decoration: none;
}
.article-meta-bar a:hover,
.article-meta-bar a:focus-visible {
  text-decoration: underline;
}
.article-intro {
  margin-bottom: 32px;
}
.article-body {
  font-size: var(--dg-fs-xl);
  line-height: 1.8;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 36px;
  margin-bottom: 40px;
}
.article-body .article-topics {
  margin-top: 0;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body blockquote {
  border-left: 3px solid var(--dg-color-gold);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-white);
  font-weight: 500;
}
.article-body blockquote.article-synopsis-box {
  font-size: var(--dg-fs-lg);
  line-height: 1.7;
  color: var(--text-muted);
  font-style: normal;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dg-gap-sm);
  margin-top: 24px;
}
.article-tag {
  font-size: var(--dg-fs-sm);
  color: var(--dg-color-gold);
  background: rgba(212, 168, 75, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}
.article-nav-back {
  display: inline-flex;
  align-items: center;
  gap: var(--dg-gap-sm);
  color: var(--dg-color-gold);
  margin-bottom: 24px;
  font-size: var(--dg-fs-lg);
  transition: gap .2s;
}
.article-nav-back:hover {
  gap: var(--dg-gap-md);
}
.article-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dg-gap-lg);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
}
.article-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-card);
}
@media (max-width: 600px) {
  .article-container { padding: 24px 16px 56px; }
  .article-body { padding: 20px 16px; }
  .article-body blockquote { padding-left: 14px; margin: 20px 0; }
}

/* ---------- Flat Courses Layout ---------- */
.courses-categories-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dg-gap-xl);
  margin-bottom: var(--dg-gap-xl);
}
.courses-category-group {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 24px;
}
.courses-category-title {
  font-family: var(--ff-display);
  font-size: var(--dg-fs-xl);
  color: var(--text-white);
  margin-bottom: var(--dg-gap-md);
  border-bottom: 1px solid var(--dg-color-gold);
  padding-bottom: 6px;
}
@media (max-width: 1024px) {
  .courses-categories-container {
    grid-template-columns: 1fr;
    gap: var(--dg-gap-lg);
  }
}

/* ---------- Impressão / PDF ATS ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; font-size: 10pt !important; line-height: 1.35 !important; }
  .navbar, .footer, .footer-bg-video, .hero-bg-video, .floating-nav, .resume-actions, .skip-link, .profile-page-back-container { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .card.glass { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 20px !important; page-break-inside: avoid; }
  .hero-name { color: #000 !important; font-size: 20pt !important; }
  .section-title { color: #000 !important; border-bottom: 1.5pt solid #333 !important; font-size: 12pt !important; margin-bottom: 10px !important; }
  .section-subtitle, .corporate-text, .checklist { color: #222 !important; font-size: 9.5pt !important; }
  .article-tag { background: #eee !important; color: #111 !important; border: 1px solid #ccc !important; font-size: 8pt !important; }
}



