/* ferramenta.css — pagina de cada IA (/ferramentas/[ia]/), tema claro escopado
   em .nh. Carregado DEPOIS de styles.css (o header do site). Arquivo externo
   para o navegador cachear entre as paginas de IA. */

/* ---- tema claro, escopado na pagina (o site e escuro) ---- */
.nh {
  --nh-fundo: #f7f9fc;
  --nh-card: #ffffff;
  --nh-borda: #e4e9f2;
  --nh-borda-forte: #cfd8e6;
  --nh-tinta: #14293f;
  --nh-tinta-2: #5a6b81;
  --nh-tinta-3: #93a1b3;
  --nh-azul: #1f5fd0;
  --nh-azul-fraco: #e8f0fd;
  --nh-escuro: #1b3557;
  --nh-raio: 10px;
  background: var(--nh-fundo);
  color: var(--nh-tinta);
}

/* .news-shell pinta um gradiente escuro sobre a pagina inteira; aqui ele
   some para o tema claro aparecer, e o header ganha o escuro de volta
   no proprio elemento, ficando identico ao do resto do site. */
.nh .news-shell { background: none; }

.nh .news-header {
  position: relative;
  z-index: 3;
  background: #070714;
}

.nh-main {
  position: relative;
  overflow: hidden;
  padding-bottom: 72px;
}

.nh-wrap {
  position: relative;
  z-index: 1;
  width: min(1582px, calc(100% - 96px));
  margin: 0 auto;
}

/* ---- hero ---- */
.nh-hero {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  padding: 26px 0 0;
}

.nh-hero-id { display: flex; align-items: flex-start; gap: 24px; }

.nh-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 90px;
  height: 84px;
  border-radius: 18px;
  background: linear-gradient(150deg, #1aa37f, #0d8c74);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nh-hero-line { display: flex; align-items: center; gap: 14px; }

.nh-hero-txt h1 {
  margin: 0;
  color: var(--nh-tinta);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.16rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
}

.nh-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--nh-azul-fraco);
  color: var(--nh-azul);
  font-size: 12.5px;
  font-weight: 700;
}

.nh-tag svg { width: 13px; height: 13px; fill: currentColor; }

.nh-maker {
  margin: 3px 0 0;
  color: var(--nh-tinta-2);
  font-size: 14.5px;
}

.nh-maker strong { color: var(--nh-tinta); font-weight: 600; }

/* "Acessar o {IA}": link azul sublinhado, colado na linha de cima */
.nh-acessar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--nh-azul);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.nh-acessar:hover { color: #0d4fc0; }

.nh-acessar svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.nh-acessar:hover svg { transform: translate(1px, -1px); }


/* No desktop o quadro das Notas AIX fica solto (absoluto, 340px à direita):
   o texto do topo (nome, empresa, link) para antes dele em vez de passar por baixo.
   478px = logo (90) + espaço (24) + quadro (340) + folga (24). */
@media (min-width: 981px) {
  .nh-hero-txt { max-width: calc(100% - 478px); }
}

/* ---- quadro das Notas AIX ----
   absolute: nao ocupa espaco na grade, entao a altura dele nunca
   empurra a coluna da esquerda nem as abas. Fica como cartao a direita,
   14px abaixo do header. */
.nh-vitrine {
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 1;
  width: 340px;
}

.nh-notas {
  box-sizing: border-box;
  padding: 10px 12px 12px;
  border: 1px solid rgba(205, 223, 251, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px -18px rgba(20, 41, 63, 0.35);
  backdrop-filter: blur(6px);
}

.nh-notas-topo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--nh-tinta);
  font-size: 11.5px;
  font-weight: 750;
}

/* mesmo "X" da marca que esta no header */
.nh-notas-logo {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6cff, #38bdf8);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

/* o "input" onde a pergunta e digitada */
.nh-notas-campo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 5px 7px 5px 10px;
  border: 1px solid #d6e2f4;
  border-radius: 9px;
  background: #ffffff;
}

.nh-notas-pergunta {
  flex: 1;
  min-width: 0;
  color: var(--nh-tinta);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.nh-notas-cursor {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  opacity: 0;
}

.nh-notas.is-digitando .nh-notas-cursor { opacity: 1; animation: nhPisca 0.8s steps(1) infinite; }

.nh-notas-enviar {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 6px;
  background: #eef2f8;
  fill: none;
  stroke: var(--nh-tinta-3);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background 0.2s, stroke 0.2s;
}

.nh-notas.is-enviado .nh-notas-enviar { background: var(--nh-azul); stroke: #ffffff; }

/* a resposta da AIX, em balao de conversa */
.nh-notas-resposta {
  position: relative;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 3px 10px 10px 10px;
  background: var(--nh-azul-fraco);
}

.nh-notas-resposta dl { display: grid; gap: 4px; margin: 0; }

.nh-notas-resposta dl > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  font-size: 12.5px;
  line-height: 18px;
  transition: opacity 0.35s, transform 0.35s;
}

.nh-notas-resposta dl > div.is-oculto { opacity: 0; transform: translateY(4px); }

.nh-notas-resposta dt { color: #1b4f9c; font-weight: 700; white-space: nowrap; }
.nh-notas-resposta dd { margin: 0; color: var(--nh-tinta); }

/* Estrelas: uma so caixa com 5 estrelas desenhadas como MASCARA. O fundo
   cinza pinta as vazias; o <i> por cima pinta as cheias e tem a largura
   em % da nota, entao 4,3 ou 4,5 funcionam sem meia-estrela desenhada. */
.nh-avaliacao { display: inline-flex; align-items: center; gap: 6px; }

.nh-estrelas {
  --nh-estrela: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2.6l2.6 5.3 5.9.9-4.3 4.2 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 8.8l5.9-.9z'/%3E%3C/svg%3E");
  position: relative;
  display: block;
  width: 76px;
  height: 13px;
  background: #c2d4ee;
  -webkit-mask-image: var(--nh-estrela);
  mask-image: var(--nh-estrela);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 20% 100%;
  mask-size: 20% 100%;
}

.nh-estrelas > i {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(var(--nh-nota) / 5 * 100%);
  background: linear-gradient(90deg, #f0a01e, #f7b733);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* enquanto a linha esta escondida a barra fica zerada: quando a AIX
   revela o topico, a estrela "enche" junto */
.is-oculto .nh-estrelas > i { width: 0; }

.nh-avaliacao b { color: #1b4f9c; font-size: 12px; font-weight: 700; }

/* "digitando..." da AIX antes de responder */
.nh-notas-pontos {
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
  gap: 4px;
}

.nh-notas.is-pensando .nh-notas-pontos { display: inline-flex; }

.nh-notas-pontos i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1b4f9c;
  opacity: 0.35;
  animation: nhPonto 0.9s ease-in-out infinite;
}

.nh-notas-pontos i:nth-child(2) { animation-delay: 0.15s; }
.nh-notas-pontos i:nth-child(3) { animation-delay: 0.3s; }

@keyframes nhPisca { 50% { opacity: 0; } }
@keyframes nhPonto { 40% { opacity: 1; transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .nh-notas-pontos i { animation: none; }
  .nh-estrelas > i { transition: none; }
}

/* ---- abas ---- */
.nh-abas {
  display: flex;
  align-items: center;
  gap: 38px;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding-right: 8px; /* a linha termina logo depois da ultima aba */
  border-bottom: 1px solid var(--nh-borda);
}

.nh-abas a {
  position: relative;
  padding: 12px 1px 14px;
  color: #44576d;
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}

.nh-abas a:hover { color: var(--nh-tinta); }

.nh-abas a.is-active { color: var(--nh-azul); font-weight: 700; }

.nh-abas a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--nh-azul);
}

/* ---- cabecalho de secao ---- */
.nh-sec { margin-top: 30px; }

.nh-sec-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.nh-sec-topo h2 {
  margin: 0;
  color: var(--nh-tinta);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.nh-sec-topo p {
  margin: 4px 0 0;
  color: var(--nh-tinta-2);
  font-size: 13.5px;
}

.nh-ver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nh-azul);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nh-ver svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- reels ---- */
.nh-reels {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 13px;
}

.nh-reel {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}

/* placeholder no lugar da foto — trocar por <img> quando houver arte */
.nh-reel-foto {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, hsl(var(--nh-tom) / 0.95), transparent 58%),
    linear-gradient(170deg, hsl(var(--nh-tom) / 0.92), hsl(var(--nh-tom) / 0.55) 46%, #10161f);
}

.nh-reel-veu {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.1) 0%, rgba(8, 14, 22, 0) 32%, rgba(8, 14, 22, 0.58) 62%, rgba(8, 14, 22, 0.88) 100%);
}

.nh-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(12, 20, 30, 0.42);
  transform: translate(-50%, -50%);
}

.nh-play svg { width: 20px; height: 20px; fill: #ffffff; }

.nh-reel:hover .nh-play { background: rgba(12, 20, 30, 0.66); }

.nh-reel-pe {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  display: grid;
  gap: 9px;
}

.nh-reel-pe strong {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.28;
}

.nh-autor {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
}

.nh-avatar {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(140deg, #d8e2ef, #9fb3c8);
}

/* ---- secoes ricas da referencia: artigos, e-books e links ---- */
.nh-sec-topo-rico {
  align-items: flex-start;
}

.nh-sec-titulo {
  display: flex;
  align-items: flex-start;
}

.nh-sec-icone {
  flex: 0 0 auto;
  fill: none;
  stroke: #0870ee;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-sec-topo-rico p {
  color: #5d7193;
}

.nh-sec-topo-rico .nh-ver {
  color: #0866d9;
}

/* ---- artigos ---- */

.nh-artigos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nh-artigo {
  position: relative;
  display: flex;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: column;
  border: 1px solid #dfe7f2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px -22px rgba(7, 26, 67, 0.8);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.nh-artigo:hover {
  border-color: #c7d7eb;
  box-shadow: 0 15px 32px -24px rgba(7, 26, 67, 0.65);
  transform: translateY(-1px);
}

.nh-artigo-topo { display: block; line-height: 0; }

.nh-etiqueta {
  display: inline-block;
  border-radius: 999px;
  background: #eaf2ff;
  color: #426aa8;
  line-height: 1;
  letter-spacing: 0.015em;
}

.nh-etiqueta-ambar {
  background: #fff2e4;
  color: #a96813;
}

.nh-ic {
  position: absolute;
  display: grid;
  place-items: center;
  background: #edf4ff;
}

.nh-ic svg {
  fill: none;
  stroke: #0870ee;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-ic-ambar { background: #fff4e8; }
.nh-ic-ambar svg { stroke: #f0a20d; }

.nh-artigo-t {
  letter-spacing: -0.02em;
}

.nh-artigo-r {
  margin: 7px 0 0;
  color: #52627e;
}

.nh-artigo-pe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #62789d;
}

.nh-tempo { display: inline-flex; align-items: center; white-space: nowrap; }

.nh-tempo svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-card-seta {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eef5ff;
  color: #0870ee;
}

.nh-card-seta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.nh-artigo:hover .nh-card-seta svg { transform: translateX(2px); }

/* ---- base: e-books + links ---- */
.nh-base {
  display: grid;
  align-items: start;
}

.nh-ebooks-layout {
  display: grid;
}

.nh-ebook-destaque {
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #cfe0f7;
  background:
    radial-gradient(circle at 80% 75%, rgba(207, 225, 249, 0.72) 0 24%, transparent 24.2%),
    linear-gradient(135deg, #f9fcff, #edf5ff);
  color: #071a43;
  text-decoration: none;
}

.nh-ebook-destaque-conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
}

.nh-ebook-selo {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dbeaff;
  color: #0969de;
}

.nh-ebook-selo svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-ebook-destaque-r {
  color: #536b91;
}

.nh-ebook-dados {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #63789b;
}

.nh-ebook-dados > span { display: inline-flex; align-items: center; white-space: nowrap; }

.nh-ebook-dados svg {
  fill: none;
  stroke: #0870ee;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-baixar {
  display: inline-flex;
  align-items: center;
  color: #0868de;
}

.nh-baixar svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.nh-ebook-destaque:hover .nh-baixar svg,
.nh-ebook-mini:hover .nh-baixar svg { transform: translateX(2px); }

.nh-baixar-principal {
  justify-content: center;
  box-sizing: border-box;
  margin-top: auto;
  background: linear-gradient(135deg, #096be7, #1263d8);
  color: #ffffff;
}

.nh-capa-cena {
  position: absolute;
  inset: 0 0 0 55%;
  z-index: 1;
}

.nh-capa-cena::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(214, 229, 250, 0.68);
}

.nh-capa-anotacao {
  position: absolute;
  z-index: 3;
  color: #77a7ee;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-8deg);
}

.nh-capa-anotacao svg {
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-capa-grande {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px 9px 9px 4px;
  background:
    linear-gradient(90deg, rgba(5, 17, 42, 0.32), transparent 11%),
    linear-gradient(155deg, #092b61 0%, #1b477c 58%, #48709f 100%);
  box-shadow: 0 18px 34px -14px rgba(7, 26, 67, 0.65);
  color: #ffffff;
  transform: perspective(700px) rotateY(-7deg) rotateZ(5deg);
  transform-origin: bottom center;
  transition: transform 0.2s;
}

.nh-ebook-destaque:hover .nh-capa-grande { transform: perspective(700px) rotateY(-5deg) rotateZ(3.5deg) translateY(-2px); }

.nh-capa-grande::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 58%;
  background: linear-gradient(160deg, transparent, rgba(255, 255, 255, 0.12));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.nh-capa-grande-t { display: block; line-height: 1.14; }
.nh-capa-grande-r { display: block; font-weight: 650; line-height: 1.25; }

.nh-openai-marca {
  position: absolute;
  z-index: 2;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
}

.nh-capa-grande-pe {
  position: absolute;
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nh-ebooks-menores { display: grid; }

.nh-ebook-mini {
  display: grid;
  box-sizing: border-box;
  align-items: center;
  border: 1px solid hsl(var(--nh-tom) / 0.16);
  background: hsl(var(--nh-tom) / 0.075);
  color: #071a43;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.nh-ebook-mini:hover { border-color: hsl(var(--nh-tom) / 0.3); transform: translateY(-1px); }

.nh-mini-capa {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px 7px 7px 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 11%),
    linear-gradient(150deg, hsl(var(--nh-tom)), hsl(var(--nh-tom) / 0.72));
  box-shadow: 0 11px 20px -13px rgba(7, 26, 67, 0.75);
}

.nh-mini-capa > span {
  position: absolute;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nh-mini-capa > b {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: hsl(var(--nh-tom));
  line-height: 1;
}

.nh-ebook-mini-conteudo { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.nh-ebook-mini-conteudo > strong { line-height: 1.25; }

.nh-ebook-mini-meta {
  display: inline-flex;
  align-items: center;
  color: #60779b;
}

.nh-ebook-mini-meta svg {
  fill: none;
  stroke: #5376a8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-ebook-mini-meta i { font-style: normal; color: #93a3bb; }

/* ---- vitrine editorial de livros e e-books ----
   O produto não é tratado como um banner: capa, recomendação, dados e CTA
   formam uma ficha editorial. Isso também deixa explícito o clique externo. */
.nh-livro-principal { min-width: 0; }

.nh-livro-destaque {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(230px, 32%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px -36px rgba(16, 42, 78, 0.56);
}

.nh-livro-visual {
  position: relative;
  display: grid;
  min-height: 100%;
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96) 0 25%, transparent 58%),
    linear-gradient(145deg, #f1f6ff 0%, #e5eefc 58%, #dce8f8 100%);
  text-decoration: none;
}

.nh-livro-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68, 111, 171, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 111, 171, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.7), transparent 72%);
}

.nh-livro-visual::after {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(82, 124, 182, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(82, 124, 182, 0.06), 0 0 0 58px rgba(82, 124, 182, 0.035);
}

.nh-livro-capa {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(220px, 94%);
  place-items: center;
}

.nh-livro-capa > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(16, 36, 70, 0.2));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.nh-livro-visual:hover .nh-livro-capa > img {
  filter: drop-shadow(0 24px 22px rgba(16, 36, 70, 0.25));
  transform: translateY(-4px) scale(1.018);
}

.nh-livro-capa > span {
  display: flex;
  min-height: 250px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: 5px 12px 12px 5px;
  background: linear-gradient(150deg, hsl(var(--nh-tom)), hsl(var(--nh-tom) / .76));
  box-shadow: 0 20px 28px -18px rgba(9, 28, 59, .65);
  color: #fff;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.1;
}

.nh-livro-capa > small {
  margin-top: 18px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nh-livro-conteudo {
  display: flex;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: column;
  gap: 17px;
  padding: 28px 30px 27px;
}

.nh-livro-etiquetas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nh-livro-selo,
.nh-livro-formato {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.nh-livro-selo {
  gap: 6px;
  padding: 7px 10px;
  background: #e7f0ff;
  color: #175ebd;
}

.nh-livro-selo svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.nh-livro-formato {
  padding: 7px 10px;
  border: 1px solid #dce4ef;
  background: #f8fafc;
  color: #5b6c81;
}

.nh-livro-conteudo h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.nh-livro-conteudo h3 a {
  color: #102d52;
  text-decoration: none;
}

.nh-livro-conteudo h3 a:hover { color: #0f60ca; }

.nh-livro-subtitulo {
  max-width: 680px;
  margin: 7px 0 0;
  color: #355473;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.36;
}

.nh-livro-resumo {
  max-width: 690px;
  margin: 9px 0 0;
  color: #5a6c81;
  font-size: 14px;
  line-height: 1.52;
}

.nh-livro-beneficios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  color: #2d4a68;
  font-size: 12.5px;
  font-weight: 650;
  list-style: none;
}

.nh-livro-beneficios li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.nh-livro-beneficios svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: #eaf4ee;
  fill: none;
  stroke: #16834c;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-livro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid #e8edf4;
  border-bottom: 1px solid #e8edf4;
}

.nh-livro-meta > div {
  min-width: 120px;
  padding: 0 18px;
  border-right: 1px solid #e1e7ef;
}

.nh-livro-meta > div:first-child { padding-left: 0; }
.nh-livro-meta > div:last-child { border-right: 0; }

.nh-livro-meta dt {
  margin-bottom: 3px;
  color: #8a98a9;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nh-livro-meta dd {
  margin: 0;
  color: #314a65;
  font-size: 11.5px;
  font-weight: 650;
}

.nh-livro-pontos {
  display: grid;
  grid-template-columns: minmax(160px, .72fr) minmax(230px, 1.28fr);
  align-items: center;
  gap: 24px 56px;
  padding: 13px 0;
  border-top: 1px solid #e8edf4;
  border-bottom: 1px solid #e8edf4;
}

.nh-livro-pontos .nh-livro-meta {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.nh-livro-pontos .nh-livro-meta > div {
  min-width: 0;
  padding: 0;
  border: 0;
}

.nh-livro-pontos .nh-livro-beneficios {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.nh-livro-pontos .nh-livro-acoes {
  align-self: center;
  margin: 0;
}

.nh-livro-pontos .nh-livro-cta {
  width: 100%;
  min-width: 180px;
}

.nh-livro-acoes {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.nh-livro-cta {
  display: inline-flex;
  min-height: 45px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1269df, #0d57c0);
  box-shadow: 0 12px 24px -17px rgba(8, 74, 166, .85);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.nh-livro-cta:hover {
  background: linear-gradient(135deg, #0f60d1, #094da9);
  box-shadow: 0 15px 28px -17px rgba(8, 74, 166, .95);
  transform: translateY(-1px);
}

.nh-livro-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-livro-acoes > span {
  color: #65768a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.nh-livro-acoes small {
  display: block;
  color: #98a4b3;
  font-size: 10px;
  font-weight: 500;
}

.nh-afiliado-aviso {
  display: flex;
  max-width: 850px;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 4px 0;
  color: #7c8999;
  font-size: 10.5px;
  line-height: 1.45;
}

.nh-afiliado-aviso svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  fill: none;
  stroke: #8192a7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-livro-visual:focus-visible,
.nh-livro-conteudo h3 a:focus-visible,
.nh-livro-cta:focus-visible {
  outline: 3px solid rgba(31, 95, 208, .32);
  outline-offset: 3px;
}

.nh-base-uma > .nh-sec-ebooks { max-width: 1100px; }

/* links externos em coluna: um cartao, uma linha por link */
.nh-sec-links { position: relative; }

.nh-sec-links::before {
  content: "";
  position: absolute;
  top: -5px;
  bottom: 0;
  width: 1px;
  background: #e2eaf4;
}

.nh-links {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  background: rgba(255,255,255,.92);
  list-style: none;
}

.nh-links li + li { border-top: 1px solid #e1e8f2; }

.nh-link {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  text-decoration: none;
  transition: background 0.15s;
}

.nh-link:hover { background: #f8fbff; }

.nh-link-ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #f6f8fb;
}

.nh-link-ic svg {
  fill: none;
  stroke: #0870ee;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-link-ic-codigo { background: #edf4ff; }
.nh-link-ic-balao { background: transparent; }

.nh-link-ic .nh-openai-icone { stroke: #0d1117; stroke-width: 3; }

.nh-link-ic .nh-reddit-icone { stroke: #ffffff; stroke-width: 2; }
.nh-reddit-icone > circle:first-child { fill: #f04405; stroke: #f04405; }
.nh-reddit-icone path,
.nh-reddit-icone circle:not(:first-child) { fill: none; stroke: #ffffff; }
.nh-reddit-icone circle:not(:first-child) { fill: #ffffff; }

.nh-link-txt { display: grid; flex: 1; gap: 2px; min-width: 0; line-height: 1.3; }

/* titulo e descricao podem quebrar linha: e melhor a linha crescer do
   que cortar a frase com reticencias */
.nh-link-txt strong,
.nh-link-txt span { min-width: 0; }

.nh-link-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e5f6ec;
  color: #168055;
}

.nh-link-seta {
  flex: 0 0 auto;
  fill: none;
  stroke: #0870ee;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.nh-link:hover .nh-link-seta,
.nh-link-sugestao:hover .nh-link-seta { transform: translateX(2px); }

.nh-link-sugestao {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  background: linear-gradient(100deg, #e5f1ff, #eef5ff);
  color: #071a43;
  text-decoration: none;
}

.nh-sugestao-ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.nh-sugestao-ic svg {
  fill: none;
  stroke: #f2aa12;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-link-sugestao > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.nh-link-sugestao small { color: #61779a; }

/* Medidas finais da referencia em 1250 x 701. Estas regras substituem
   a primeira versao, que havia sido desenhada grande demais. */
.nh-sec-topo-rico { margin-bottom: 15px; }
.nh-sec-titulo { gap: 12px; }
.nh-sec-icone { width: 27px; height: 27px; }

.nh-sec-topo-rico h2 {
  color: var(--nh-tinta);
  font-size: 1.32rem;
  font-weight: 750;
  line-height: normal;
  letter-spacing: -0.01em;
}

.nh-sec-topo-rico p {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.3;
}

.nh-sec-topo-reels p { font-size: 14px; }

.nh-sec-topo-rico .nh-ver {
  gap: 7px;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.nh-sec-topo-rico .nh-ver svg { width: 14px; height: 14px; }

.nh-sec-icone-link {
  box-sizing: border-box;
  padding: 1px;
  overflow: visible;
  stroke-width: 1.85;
}

.nh-sec-topo-reels .nh-sec-icone,
.nh-sec-topo-rico .nh-sec-icone { margin-top: 2px; }

.nh-sec-artigos .nh-sec-icone,
.nh-sec-links .nh-sec-icone { margin-top: 4px; }

.nh-sec-artigos {
  margin-top: 28px;
  padding-bottom: 21px;
  border-bottom: 0;
}

.nh-artigos { gap: 13px; }

.nh-artigo {
  min-height: 167px;
  padding: 12px 14px 9px;
  border-radius: 11px;
}

.nh-etiqueta {
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 700;
}

.nh-ic {
  top: 8px;
  right: 13px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nh-ic svg { width: 18px; height: 18px; }

.nh-artigo-t {
  margin-top: 10px;
  padding-right: 24px;
  color: #142b4d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.nh-artigo-r {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
}

.nh-artigo-pe {
  padding-top: 6px;
  font-size: 11px;
}

.nh-tempo { gap: 6px; }
.nh-tempo svg { width: 15px; height: 15px; }

.nh-card-seta {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.nh-card-seta svg { width: 16px; height: 16px; }

.nh-base {
  grid-template-columns: minmax(0, 2.46fr) minmax(310px, 1fr);
  gap: 40px;
}

.nh-sec-base { margin-top: 25px; }
.nh-sec-base .nh-sec-topo-rico { margin-bottom: 14px; }
.nh-sec-base .nh-sec-titulo { gap: 13px; }
.nh-sec-base .nh-sec-icone { width: 31px; height: 31px; }
.nh-sec-ebooks .nh-sec-topo-rico .nh-ver { margin-top: 10px; }

.nh-sec-artigos .nh-sec-topo-rico .nh-ver,
.nh-sec-ebooks .nh-sec-topo-rico .nh-ver,
.nh-sec-topo-reels .nh-ver { margin-top: 27px; }

.nh-ebooks-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 12px;
}

.nh-ebook-destaque { min-height: 292px; border-radius: 11px; }

.nh-ebook-destaque-conteudo {
  width: 58%;
  min-height: 292px;
  padding: 14px 0 21px 18px;
}

.nh-ebook-selo {
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
}

.nh-ebook-selo svg { width: 14px; height: 14px; }

.nh-ebook-destaque-conteudo > strong {
  margin-top: 13px;
  color: #142b4d;
  /* mesmo peso dos titulos dos artigos relacionados, em corpo maior
     porque o cartao de destaque e bem maior que um card de artigo */
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.nh-ebook-destaque-r {
  max-width: 285px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.42;
}

.nh-ebook-dados {
  gap: 13px;
  margin-top: 17px;
  font-size: 11px;
}

.nh-ebook-dados > span { gap: 5px; }
.nh-ebook-dados svg { width: 14px; height: 14px; }

.nh-baixar {
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.nh-baixar svg { width: 15px; height: 15px; }

.nh-baixar-principal {
  min-width: 168px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.nh-capa-cena::before {
  right: 10px;
  bottom: 5px;
  width: 218px;
  height: 218px;
}

.nh-capa-anotacao {
  top: 14px;
  right: 18px;
  font-size: 11px;
}

.nh-capa-anotacao svg {
  top: 23px;
  left: 13px;
  width: 39px;
  height: 39px;
}

.nh-capa-grande {
  right: 42px;
  bottom: 18px;
  width: 138px;
  height: 212px;
  padding: 30px 18px 14px 22px;
}

.nh-capa-grande-t { font-size: 18px; font-weight: 700; }
.nh-capa-grande-r { margin-top: 14px; font-size: 8px; }

.nh-openai-marca {
  right: 29px;
  bottom: 32px;
  width: 40px;
  height: 40px;
}

.nh-capa-grande-pe { bottom: 12px; left: 22px; font-size: 5px; }
.nh-ebooks-menores { gap: 12px; }

.nh-ebook-mini {
  min-height: 140px;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 14px;
  border-radius: 11px;
}

.nh-mini-capa { width: 60px; height: 84px; }
.nh-mini-capa > span { top: 11px; left: 13px; font-size: 6px; }

.nh-mini-capa > b {
  right: 6px;
  bottom: 7px;
  width: 13px;
  height: 13px;
  font-size: 10px;
}

/* mesmo peso dos titulos dos artigos relacionados, corpo um pouco menor
   porque o cartao mini e mais estreito */
.nh-ebook-mini-conteudo > strong {
  color: #142b4d;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* mesma cor dos resumos dos artigos relacionados */
.nh-ebook-mini-r {
  margin-top: 3px;
  color: #52627e;
  font-size: 12.5px;
  line-height: 1.35;
}

.nh-ebook-mini-meta {
  gap: 5px;
  margin-top: 6px;
  font-size: 10.5px;
}

.nh-ebook-mini-meta svg { width: 13px; height: 13px; }
.nh-ebook-mini .nh-baixar { margin-top: 8px; }

.nh-sec-links::before { left: -21px; }
.nh-sec-links .nh-sec-topo-rico { margin-bottom: 14px; }
.nh-sec-links .nh-sec-titulo { gap: 10px; }
.nh-sec-links .nh-sec-topo-rico p { font-size: 14px; }

.nh-links { border-radius: 11px; }

.nh-link {
  min-height: 70px;
  gap: 11px;
  padding: 10px 12px 10px 11px;
}

.nh-link-ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nh-link-ic svg { width: 23px; height: 23px; }
.nh-link-ic-codigo svg { width: 24px; height: 24px; }
.nh-link-ic .nh-openai-icone { width: 30px; height: 30px; }
.nh-link-ic .nh-reddit-icone { width: 33px; height: 33px; }

/* mesma escala dos cartoes de e-book menores */
.nh-link-txt strong {
  color: #142b4d;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nh-link-txt span { color: #52627e; font-size: 12.5px; }

.nh-link-tag {
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 650;
}

.nh-link-seta { width: 15px; height: 15px; }

.nh-link-sugestao {
  min-height: 61px;
  gap: 11px;
  margin-top: 12px;
  padding: 10px 12px 10px 13px;
  border-radius: 11px;
}

.nh-sugestao-ic { width: 30px; height: 30px; }
.nh-sugestao-ic svg { width: 22px; height: 22px; }
.nh-link-sugestao strong {
  color: #142b4d;
  font-size: 13px;
  font-weight: 700;
}
.nh-link-sugestao small { font-size: 12px; }

/* ---- telas menores ---- */
@media (max-width: 1280px) {
  .nh-reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A arte de referencia tem 1675 px de largura. Entre 981 e 1280 px,
   preservamos a composicao inteira e reduzimos tudo proporcionalmente,
   em vez de aumentar os cards ou empilhar as duas colunas. */
@media (min-width: 821px) and (max-width: 980px) {
  .nh-sec-artigos,
  .nh-base { zoom: 0.69; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .nh-sec-artigos,
  .nh-base { zoom: 0.58; }
}

@media (max-width: 980px) {
  .nh-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nh-vitrine { position: static; width: auto; max-width: 360px; }
  .nh-abas { gap: 24px; overflow-x: auto; }
}

@media (max-width: 640px) {
  .nh-wrap { width: calc(100% - 32px); }
  .nh-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-artigos { grid-template-columns: minmax(0, 1fr); }
  .nh-base { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nh-sec-links::before { display: none; }
  .nh-ebooks-layout { grid-template-columns: minmax(0, 1fr); }
  .nh-hero-id { gap: 16px; }
  .nh-sec-topo-rico { display: grid; }
  .nh-sec-topo-rico h2 { font-size: 25px; }
  .nh-sec-topo-rico p { font-size: 15px; }
  .nh-sec-topo-rico .nh-ver { margin: 0 0 0 53px; }
  .nh-ebook-destaque { min-height: 620px; }
  .nh-ebook-destaque-conteudo { width: 100%; min-height: 620px; padding-right: 24px; }
  .nh-capa-cena { inset: auto 0 0 0; height: 315px; }
  .nh-capa-grande { right: 50%; bottom: 20px; transform: translateX(50%) perspective(700px) rotateY(-7deg) rotateZ(5deg); }
  .nh-ebook-destaque:hover .nh-capa-grande { transform: translateX(50%) perspective(700px) rotateY(-5deg) rotateZ(3.5deg) translateY(-2px); }
  .nh-capa-anotacao { right: 14px; }
  .nh-baixar-principal { margin-top: 24px; }
  .nh-ebook-mini { grid-template-columns: 82px minmax(0,1fr); padding: 16px; }
  .nh-livro-destaque { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .nh-livro-visual { min-height: 292px; padding: 24px 20px 18px; }
  .nh-livro-capa { width: min(190px, 70%); }
  .nh-livro-capa > img { max-height: 270px; }
  .nh-livro-conteudo { gap: 16px; padding: 23px 20px 22px; }
  .nh-livro-conteudo h3 { font-size: 25px; }
  .nh-livro-beneficios { grid-template-columns: minmax(0, 1fr); }
  .nh-livro-pontos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nh-livro-pontos .nh-livro-meta { padding-bottom: 11px; border-bottom: 1px solid #eef2f7; }
  .nh-livro-pontos .nh-livro-meta > div:first-child { padding-bottom: 0; border-bottom: 0; }
  .nh-livro-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-livro-meta > div { min-width: 0; padding: 0 12px 0 0; border-right: 0; }
  .nh-livro-meta > div:first-child { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid #eef2f7; }
  .nh-livro-acoes { align-items: stretch; flex-direction: column; }
  .nh-livro-cta { width: 100%; }
  .nh-afiliado-aviso { margin: 10px 2px 0; }
  .nh-link { gap: 10px; padding-right: 12px; }
  .nh-link-tag { display: none; }
}

/* ==========================================================================
   Página com dados reais (/ferramentas/[ia]/). Regras que o protótipo não
   precisava, porque lá tudo era fixo e sempre presente.
   ========================================================================== */

/* As abas filtram mostrando/escondendo blocos com [hidden]. Precisa vencer o
   display dos próprios blocos (.nh-sec e afins declaram display). */
.nh [hidden] { display: none !important; }

/* Abas: cada rótulo numa linha só; no celular a barra rola de lado em vez
   de quebrar "Visão geral" e "E-books" em duas linhas. */
.nh-abas a { white-space: nowrap; }

/* Short com thumbnail oficial: a imagem cobre a capa; a cor de fundo só
   aparece enquanto ela carrega. */
.nh-reel-img { width: 100%; height: 100%; object-fit: cover; }

/* E-books e links lado a lado só quando os dois estão visíveis. */
.nh-base.nh-base-uma,
.nh-base:has(> .nh-sec[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* Links sozinhos (sem e-books ao lado): sem a linha que separava as duas
   colunas e com largura de lista, não de página. */
.nh-base-uma .nh-sec-links::before { display: none; }
.nh-base-uma > .nh-sec-links { max-width: 640px; }

/* Só o e-book em destaque, sem os menores ao lado. */
.nh-ebooks-layout.nh-ebooks-sozinho { grid-template-columns: minmax(0, 1fr); }

/* Capa real do e-book: ocupa o livro desenhado (herda tamanho e posição dele
   em todas as larguras de tela). */
.nh-capa-grande > img,
.nh-mini-capa > img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aviso de aba sem conteúdo (Tutoriais, Comparativos, ou IA sem vídeos...). */
.nh-vazio {
  margin-top: 28px;
  padding: 30px 24px;
  border: 1px dashed var(--nh-borda-forte);
  border-radius: 14px;
  background: var(--nh-card);
  color: var(--nh-tinta-2);
  font-size: 14.5px;
  text-align: center;
}
.nh-vazio strong { display: block; margin-bottom: 4px; color: var(--nh-tinta); font-size: 16px; font-weight: 600; }
.nh-vazio a { color: var(--nh-azul); font-weight: 600; }


/* Player dos Reels/Shorts (abre no clique): player OFICIAL à esquerda e
   painel de informações à direita; no celular, empilha. O [open] importa: sem
   ele, o display:grid deixaria a janela sempre visível. */
.nh-player {
  width: fit-content;
  max-width: min(94vw, 820px);
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--nh-tinta);
  box-shadow: 0 30px 80px -20px rgba(5, 12, 28, 0.6);
}
.nh-player[open] { display: grid; grid-template-columns: max-content minmax(270px, 320px); }
.nh-player::backdrop { background: rgba(7, 10, 20, 0.74); }

.nh-player-video { display: grid; place-items: center; background: #000000; }
.nh-player-quadro { position: relative; height: min(640px, 94vh); aspect-ratio: 9 / 16; }
.nh-player-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Instagram: o embed é o cartão do post (cabeçalho de 54px, vídeo numa caixa
   4:5 da largura do cartão, curtidas e comentário embaixo). O quadro 9:16 fica
   igual ao dos outros e recorta o cartão: largura = 0,8 x altura do quadro
   (assim a caixa 4:5 tem a altura do quadro e o vídeo 9:16 ocupa a largura
   dele), sobe 54px (esconde o cabeçalho) e o resto fica para baixo, cortado.
   Se o Instagram mudar esse layout, é aqui que se ajusta — e na constante REGRA
   da tela do admin que confere isso (Configurações > Embed do Instagram,
   admin/src/pages/configuracoes/instagram.astro). */
.nh-player-quadro { --nh-alt: min(640px, 94vh); }
.nh-player[data-plataforma="instagram"] .nh-player-quadro { height: var(--nh-alt); overflow: hidden; }
.nh-player[data-plataforma="instagram"] .nh-player-quadro iframe {
  inset: auto;
  top: -54px;
  left: 50%;
  width: calc(var(--nh-alt) * 0.8);
  height: calc(var(--nh-alt) + 400px);
  transform: translateX(-50%);
}

/* crédito do criador por cima do vídeo (o cabeçalho do cartão fica cortado) */
.nh-player-autor {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nh-player-autor:hover { background: rgba(0, 0, 0, 0.7); }
.nh-player-autor svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }

.nh-player-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #f1f4f9;
  color: var(--nh-tinta);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nh-player-fechar:hover { background: #e4e9f2; }

/* Painel "Notas AIX" do modal. Mesma identidade das Notas AIX do topo da
   página: ícone com o gradiente da marca, brilho azul no canto e os pontos num
   balão de resposta. Os botões ficam presos no rodapé (sempre no mesmo lugar)
   e a navegação anterior/próximo fecha o painel. */
.nh-player-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px 22px 16px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16), transparent 46%),
    radial-gradient(circle at 0% 100%, rgba(124, 108, 255, 0.07), transparent 42%),
    #ffffff;
}
.nh-player-marca {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1b4f9c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nh-player-marca-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c6cff, #38bdf8);
  box-shadow: 0 6px 14px -8px rgba(76, 110, 245, 0.75);
}
.nh-player-marca-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* negrito, mas não pesado: o mesmo 600 dos títulos do site */
.nh-player-titulo {
  margin: 0;
  padding-right: 34px;
  color: #142b4d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* balão de resposta, como a AIX responde no topo da página */
.nh-player-pontos {
  padding: 14px 16px 15px;
  border-radius: 4px 14px 14px 14px;
  background: var(--nh-azul-fraco);
}
.nh-player-pontos h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #1b4f9c;
  font-size: 13px;
  font-weight: 600;
}
.nh-player-brilho { width: 17px; height: 17px; flex: 0 0 auto; }
.nh-player-pontos ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nh-player-pontos li {
  position: relative;
  padding-left: 25px;
  color: #334766;
  font-size: 13.5px;
  line-height: 1.45;
}
/* o mesmo selo de verificado dos diferenciais da home (#vseal em
   src/pages/index.html), no mesmo tamanho: 17px */
.nh-player-pontos li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2338bdf8' d='M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' d='M8.2 12.2l2.6 2.6 5-5.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* fim do painel, preso embaixo: "Quer saber mais?" com o link da matéria
   (texto, não botão), o acesso à ferramenta num botão pequeno e o compartilhar */
.nh-player-fim {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--nh-borda);
}

/* Computador: o painel tem SEMPRE a altura do vídeo (height 0 + min-height
   100% = não empurra a linha da grade; quem define a altura é o vídeo). Se o
   título e os pontos não couberem, só o painel rola, e o fim (matéria,
   Acessar, Compartilhar) fica preso embaixo, sempre visível. No celular o
   modal inteiro já rola: fica como está. */
@media (min-width: 641px) {
  .nh-player-info { height: 0; min-height: 100%; padding-bottom: 0; scrollbar-width: thin; }
  .nh-player-cta, .nh-player-compartilhar { white-space: nowrap; }
  .nh-player-fim {
    position: sticky;
    bottom: 0;
    padding-bottom: 16px;
    background: #ffffff;
  }
}
.nh-player-mais-pergunta { margin: 0 0 3px; color: #142b4d; font-size: 13px; font-weight: 600; }
.nh-player-mais-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0870ee;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.nh-player-mais-link:hover { text-decoration: underline; }
.nh-player-mais-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.nh-player-mais-link:hover svg { transform: translateX(2px); }

.nh-player-rodape { display: flex; align-items: center; gap: 8px; }
/* acesso à ferramenta: botão pequeno e suave, sem competir com a matéria */
.nh-player-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4fd;
  color: #1b4f9c;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.nh-player-cta:hover { background: #e1ecfd; }
.nh-player-compartilhar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52627e;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nh-player-compartilhar:hover { background: #f1f4f9; color: #142b4d; }
.nh-player-cta svg,
.nh-player-compartilhar svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .nh-player { max-width: calc(100vw - 16px); overflow-y: auto; }
  .nh-player[open] { grid-template-columns: minmax(0, 1fr); }
  .nh-player-quadro { --nh-alt: min(62vh, 520px); height: var(--nh-alt); }
  /* o botão de fechar fica por cima do vídeo: fundo escuro para contrastar */
  .nh-player-fechar { background: rgba(0, 0, 0, 0.55); color: #ffffff; }
}

/* Reels/Shorts: dentro do card fica só o título, no tamanho da antiga linha
   do nome (11,5px), sem avatar. O crédito do criador vai para o modal. */
.nh-reel-pe .nh-reel-titulo { font-size: 11.5px; }

/* Cenário com exatamente duas leituras: preserva o destaque em largura total
   e apresenta a segunda recomendação como uma alternativa compacta abaixo. */
.nh-ebooks-layout.nh-ebooks-duas {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.nh-ebooks-duas .nh-ebooks-menores {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.nh-ebooks-duas .nh-ebook-mini {
  min-height: 136px;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 16px;
  border-color: #dce5f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px -32px rgba(16, 42, 78, .7);
}

.nh-ebooks-duas .nh-ebook-mini:hover {
  border-color: #bfd2e9;
  box-shadow: 0 17px 38px -31px rgba(16, 42, 78, .75);
}

.nh-ebooks-duas .nh-mini-capa {
  display: grid;
  width: 92px;
  height: 112px;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(rgba(68, 111, 171, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 111, 171, .055) 1px, transparent 1px),
    #edf4fd;
  background-size: 18px 18px;
  box-shadow: none;
}

.nh-ebooks-duas .nh-mini-capa > img {
  box-sizing: border-box;
  padding: 7px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(16, 36, 70, .18));
}

.nh-ebooks-duas .nh-ebook-mini-conteudo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: repeat(4, auto);
  align-items: center;
  column-gap: 24px;
}

.nh-ebooks-duas .nh-ebook-mini-selo,
.nh-ebooks-duas .nh-ebook-mini-conteudo > strong,
.nh-ebooks-duas .nh-ebook-mini-r,
.nh-ebooks-duas .nh-ebook-mini-meta {
  grid-column: 1;
}

.nh-ebook-mini-selo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4fd;
  color: #35639a;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1;
}

.nh-ebooks-duas .nh-ebook-mini-conteudo > strong {
  color: #112f53;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
}

.nh-ebooks-duas .nh-ebook-mini-r {
  max-width: 620px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.nh-ebooks-duas .nh-ebook-mini-meta {
  margin-top: 7px;
  font-size: 10.5px;
}

.nh-ebooks-duas .nh-ebook-mini .nh-baixar {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-content: center;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #cbdcf1;
  border-radius: 10px;
  background: #f7faff;
  white-space: nowrap;
}

.nh-ebooks-duas .nh-afiliado-aviso {
  grid-column: 1 / -1;
  margin-top: -3px;
}

@media (max-width: 640px) {
  .nh-ebooks-layout.nh-ebooks-duas { gap: 12px; }

  .nh-ebooks-duas .nh-ebook-mini {
    min-height: 0;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .nh-ebooks-duas .nh-mini-capa { width: 76px; height: 104px; }

  .nh-ebooks-duas .nh-ebook-mini-conteudo {
    display: flex;
    align-items: flex-start;
  }

  .nh-ebooks-duas .nh-ebook-mini-conteudo > strong { font-size: 15px; }
  .nh-ebooks-duas .nh-ebook-mini-r { font-size: 11.5px; }

  .nh-ebooks-duas .nh-ebook-mini .nh-baixar {
    align-self: flex-start;
    margin-top: 9px;
    padding: 9px 11px;
  }
}

/* ==========================================================================
   Vitrine de e-books — grade editorial aprovada em outubro/2026.
   Mantém a coluna de links ao lado e usa a mesma capa provisória nos cards.
   ========================================================================== */
.nh-vitrine-titulo {
  margin-bottom: 24px;
}

.nh-vitrine-titulo .nh-sec-titulo {
  align-items: flex-start;
  gap: 18px;
}

.nh-vitrine-titulo .nh-sec-icone {
  width: 48px;
  height: 48px;
  margin-top: 1px;
  stroke: #0d6fe8;
  stroke-width: 2.15;
}

.nh-leituras-grade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.nh-leitura-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d8e2ef;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px -34px rgba(15, 49, 94, .65);
}

.nh-leitura-card:first-child { border-radius: 16px 0 0 16px; }
.nh-leitura-card:last-child { border-radius: 0 16px 16px 0; }
.nh-leitura-card + .nh-leitura-card { border-left: 0; }

.nh-leitura-arte {
  position: relative;
  display: grid;
  min-height: 275px;
  place-items: center;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 47%, rgba(255,255,255,.88) 0 18%, transparent 54%),
    linear-gradient(145deg, #eaf3ff, #dfeafb);
  text-decoration: none;
}

.nh-leitura-card-azul .nh-leitura-arte::before,
.nh-leitura-card-azul .nh-leitura-arte::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nh-leitura-card-azul .nh-leitura-arte::before {
  background-image:
    linear-gradient(rgba(64, 115, 183, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 115, 183, .075) 1px, transparent 1px);
  background-size: 36px 36px;
}

.nh-leitura-card-azul .nh-leitura-arte::after {
  top: auto;
  right: -80px;
  bottom: -130px;
  left: auto;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(199, 218, 244, .54);
  box-shadow: 0 0 0 34px rgba(199, 218, 244, .18), 0 0 0 68px rgba(199, 218, 244, .1);
}

.nh-leitura-card-lilas .nh-leitura-arte {
  background:
    radial-gradient(circle at 23% 18%, rgba(255,255,255,.76), transparent 32%),
    radial-gradient(circle at 92% 78%, rgba(219, 205, 255, .7), transparent 46%),
    linear-gradient(145deg, #f6f0ff, #e9ddff);
}

.nh-leitura-card-vermelho .nh-leitura-arte {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.82), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(255, 221, 211, .72), transparent 47%),
    linear-gradient(145deg, #fff3f1, #f5ddd9);
}

.nh-leitura-card-lilas .nh-leitura-arte::after,
.nh-leitura-card-verde .nh-leitura-arte::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -25%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 48% 52% 61% 39% / 57% 42% 58% 43%;
  box-shadow: 0 0 0 27px rgba(255,255,255,.25), 0 0 0 55px rgba(255,255,255,.15);
  transform: rotate(-14deg);
}

.nh-leitura-card-verde .nh-leitura-arte {
  background:
    radial-gradient(circle at 78% 16%, rgba(255,255,255,.78), transparent 34%),
    radial-gradient(circle at 22% 78%, rgba(198, 244, 230, .76), transparent 46%),
    linear-gradient(145deg, #edfdf8, #daf5ed);
}

.nh-leitura-card-verde .nh-leitura-arte::after {
  right: auto;
  bottom: -31%;
  left: -30%;
  border-color: rgba(255,255,255,.88);
  transform: rotate(18deg);
}

.nh-leitura-capa {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(195px, 68%);
  height: calc(100% - 36px);
  place-items: center;
  margin-top: 0;
  transition: transform .22s ease;
}

/* A capa vermelha é um pouco mais larga; estes 5 px compensam a
   proporção original e deixam os dois livros com a mesma altura visual. */
.nh-leitura-card-vermelho .nh-leitura-capa {
  width: min(200px, 70%);
}

.nh-leitura-capa > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 16px rgba(20, 41, 78, .2));
}

/* Compensa a margem transparente do mockup sem distorcer o livro. */
.nh-leitura-capa > strong {
  display: flex;
  min-height: 250px;
  box-sizing: border-box;
  align-items: center;
  padding: 28px;
  border-radius: 5px 11px 11px 5px;
  background: linear-gradient(150deg, hsl(var(--nh-tom)), hsl(var(--nh-tom) / .7));
  box-shadow: 0 20px 28px -18px rgba(9, 28, 59, .65);
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.nh-leitura-capa > small {
  position: absolute;
  bottom: 45px;
  color: rgba(255,255,255,.8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nh-leitura-arte:hover .nh-leitura-capa { transform: translateY(-4px) scale(1.018); }

.nh-leitura-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px 17px 16px;
}

.nh-leitura-categoria {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ebf3ff;
  color: #145fc2;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
}

.nh-leitura-card-lilas .nh-leitura-categoria { background: #f0edff; color: #5b5fd3; }
.nh-leitura-card-vermelho .nh-leitura-categoria { background: #fae9e8; color: #a33a3f; }
.nh-leitura-card-verde .nh-leitura-categoria { background: #e9f8f4; color: #13907d; }

.nh-leitura-categoria svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-leitura-corpo h3 {
  margin: 12px 0 0;
  color: #071d44;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.nh-leitura-corpo > p {
  margin: 8px 0 14px;
  color: #52678a;
  font-size: 13px;
  line-height: 1.48;
}

.nh-leitura-corpo > .nh-leitura-subtitulo {
  margin: 5px 0 0;
  color: #34557d;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}

.nh-leitura-cta {
  display: inline-flex;
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 9px 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1477e8, #075ed2);
  box-shadow: 0 13px 24px -18px rgba(7, 81, 179, .9);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.nh-leitura-cta:hover {
  background: linear-gradient(135deg, #0e6edc, #064fae);
  box-shadow: 0 16px 27px -18px rgba(7, 81, 179, 1);
  transform: translateY(-1px);
}

.nh-leitura-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nh-leituras-aviso {
  max-width: none;
  margin: 12px 4px 0;
}

.nh-leitura-arte:focus-visible,
.nh-leitura-cta:focus-visible {
  outline: 3px solid rgba(31, 95, 208, .34);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .nh-leituras-grade { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nh-leitura-card,
  .nh-leitura-card:first-child,
  .nh-leitura-card:last-child {
    border: 1px solid #d8e2ef;
    border-radius: 16px;
  }
  .nh-leitura-arte { min-height: 270px; }
}

@media (max-width: 640px) {
  .nh-vitrine-titulo .nh-sec-titulo { gap: 12px; }
  .nh-vitrine-titulo .nh-sec-icone { width: 37px; height: 37px; }
  .nh-leitura-corpo { padding: 13px 16px 16px; }
  .nh-leitura-corpo h3 { font-size: 19px; }
  .nh-leitura-arte { margin: 12px 12px 0; }
}

/* ---- header da página da IA ----
   O conteúdo do header usa a mesma largura da página (.nh-wrap), então o X
   da AIX fica na mesma linha vertical do quadrado da IA. No desktop o caminho
   (Início › Ferramentas › IA) fica colado no logo, à esquerda, e o menu fica
   só com Radar, Artigos e Newsletter (em branco), à direita. No celular o
   caminho some e o menu mantém os 5 itens. */
.nh .news-nav { width: min(1582px, calc(100% - 96px)); }

.nh-topo-esq { display: flex; align-items: center; min-width: 0; }

.nh-trilha { display: none; }

@media (min-width: 981px) {
  /* logo + caminho à esquerda; o menu começa 24px antes da borda esquerda
     do quadro das Notas AIX (coluna de 364px = quadro de 340px, colado na
     borda direita da página, + 24px). */
  .nh .news-nav { grid-template-columns: minmax(max-content, 1fr) 364px; gap: 24px; }
  .nh .news-actions,
  .nh .news-links .nh-so-celular { display: none; }
  .nh .news-links { justify-self: start; color: #ffffff; }

  .nh-trilha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 22px;
    padding-left: 22px;
    border-left: 1px solid rgba(238, 233, 255, 0.24);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nh-trilha a { color: rgba(238, 233, 255, 0.9); text-decoration: none; }
  .nh-trilha a:hover { color: #ffffff; }
  /* página atual: mesmo sublinhado azul do item ativo do menu do site */
  .nh-trilha span {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #38bdf8;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .nh-trilha svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: rgba(238, 233, 255, 0.72);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 640px) {
  .nh .news-nav { width: calc(100% - 32px); }
}
