/* ===================== CONCEITOS: neurônio ===================== */
/* Substitui o mapa circular. O canvas desenha o neurônio; os conceitos são links HTML
   posicionados pelo script nas terminações dos axônios. Sem JS, viram uma lista simples. */
#mapa-conceitos { padding: 1.5rem 0 6rem; }
.neuro { position: relative; isolation: isolate; }
.neuro-campo { position: relative; height: clamp(640px, 88vh, 920px); }
.neuro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.neuro-vinheta {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 70% 72% at 60% 53%, transparent 55%, hsl(var(--background)) 100%),
    linear-gradient(to bottom, hsl(var(--background)), transparent 9%, transparent 88%, hsl(var(--background)));
}
.neuro-rotulos { position: absolute; inset: 0; z-index: 3; pointer-events: none; list-style: none; margin: 0; padding: 0; }
.neuro-no {
  --lit: 0;
  position: absolute; left: 0; top: 0; display: block; pointer-events: auto;
  max-width: 10em; padding: 5px 4px; text-decoration: none;
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.55rem; line-height: 1.1;
  color: hsl(var(--foreground));
  color: color-mix(in oklab, hsl(var(--flare)) calc(var(--lit) * 100%), hsl(var(--foreground)));
  text-wrap: balance;
  opacity: calc(0.88 + var(--lit) * 0.12);
  text-shadow: 0 0 2px hsl(var(--background)), 0 0 8px hsl(var(--background)), 0 0 calc(3px + var(--lit) * 16px) hsl(19 66% 50% / calc(0.15 + var(--lit) * 0.75));
}
.neuro-no.r { text-align: right; }
.neuro-no.c { text-align: center; }
.neuro-no:hover, .neuro-no.sel { opacity: 1; color: hsl(var(--flare)); }
.neuro-no:focus-visible { outline: 1px dashed hsl(var(--accent)); outline-offset: 3px; }

.neuro-painel { position: relative; z-index: 4; max-width: 30rem; padding: 0 0 1rem; }
.neuro-painel-eyebrow { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--accent)); margin-bottom: 0.6rem; }
.neuro-painel-titulo { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: hsl(var(--foreground)); margin-bottom: 0.7rem; }
.neuro-painel.aberto .neuro-painel-titulo { color: hsl(var(--flare)); }
.neuro-painel-desc { font-size: 0.95rem; line-height: 1.6; color: hsl(var(--muted-foreground)); margin: 0; }
.neuro-painel.aberto .neuro-painel-desc { color: hsl(var(--foreground) / 0.9); }
.neuro-painel-acoes { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; }
.neuro-painel-acoes a { color: hsl(var(--foreground)); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid hsl(var(--accent)); padding-bottom: 2px; }
.neuro-painel-acoes a:hover { color: hsl(var(--accent)); }
.neuro-painel-acoes button { background: none; border: 0; color: hsl(var(--muted-foreground)); font: inherit; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; padding: 4px 0; }
.neuro-painel-acoes button:hover { color: hsl(var(--foreground)); }
.neuro-painel-acoes a:focus-visible, .neuro-painel-acoes button:focus-visible { outline: 1px dashed hsl(var(--accent)); outline-offset: 3px; }
.neuro-painel.troca > * { animation: centro-troca 0.35s ease; }

@media (min-width: 900px) {
  .neuro-painel { position: absolute; left: 0; top: clamp(16px, 4vh, 40px); width: min(22rem, 30%); padding: 0; }
}
@media (max-width: 899px) {
  .neuro-vinheta {
    background:
      radial-gradient(ellipse 85% 70% at 50% 50%, transparent 55%, hsl(var(--background)) 100%),
      linear-gradient(to bottom, hsl(var(--background)), transparent 8%, transparent 90%, hsl(var(--background)));
  }
  .neuro-campo { height: clamp(660px, 175vw, 880px); margin-inline: -1.5rem; }
  .neuro-no { font-size: 1.35rem; max-width: 8em; }
  .neuro-painel-titulo { font-size: 2.1rem; }
  .neuro-painel-desc { font-size: 1rem; }
  .neuro-painel.aberto {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: none;
    padding: 1.25rem 1.5rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
    background: hsl(var(--card) / 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid hsl(var(--border));
  }
}

/* Sem JavaScript: lista simples de links */
.neuro:not(.neuro-js) .neuro-campo { height: auto; }
.neuro:not(.neuro-js) .neuro-canvas, .neuro:not(.neuro-js) .neuro-vinheta, .neuro:not(.neuro-js) .neuro-painel-acoes { display: none; }
.neuro:not(.neuro-js) .neuro-painel { position: static; width: auto; margin-bottom: 1.5rem; }
.neuro:not(.neuro-js) .neuro-rotulos { position: static; display: flex; flex-direction: column; gap: 0.5rem; }
.neuro:not(.neuro-js) .neuro-no { position: static; opacity: 1; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .neuro-painel.troca > * { animation: none; }
}
.neuro-painel-acoes[hidden] { display: none; }

/* Conceitos: título, painel e diagrama na mesma composição */
#mapa-conceitos { padding: 6.5rem 0 3rem; }
.neuro-col { position: relative; z-index: 4; }
.neuro-intro .eyebrow { margin-bottom: 0.9rem; font-size: 0.75rem; letter-spacing: 0.2em; color: hsl(var(--accent)); }
.neuro-intro h1 { font-size: 3.25rem; line-height: 1; margin: 0 0 1rem; }
.neuro-intro-lead { font-size: 1.05rem; line-height: 1.6; color: hsl(var(--foreground) / 0.88); margin: 0; }
.neuro-col .neuro-painel { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border) / 0.7); }
@media (min-width: 900px) {
  .neuro-col { position: absolute; left: 0; top: clamp(24px, 6vh, 64px); width: min(22rem, 30%); }
  .neuro-col .neuro-painel { position: static; width: auto; }
}
@media (max-width: 899px) {
  #mapa-conceitos { padding-top: 7rem; }
  .neuro-intro h1 { font-size: 2.5rem; }
  .neuro-col .neuro-painel.aberto { margin-top: 0; }
}
.neuro:not(.neuro-js) .neuro-col { position: static; width: auto; }
.conceitos-origem { padding: 3.5rem 0 6rem; border-top: 1px solid hsl(var(--border) / 0.5); }
.conceitos-origem .eyebrow { margin-bottom: 1rem; font-size: 0.75rem; letter-spacing: 0.2em; color: hsl(var(--accent)); }
.conceitos-origem-texto { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.6rem; line-height: 1.45; color: hsl(var(--foreground) / 0.92); max-width: 44rem; margin: 0 0 1.75rem; }
.conceitos-origem-link { display: inline-flex; align-items: center; gap: 0.5rem; color: hsl(var(--foreground)); text-decoration: none; font-weight: 500; border-bottom: 1px solid hsl(var(--accent)); padding-bottom: 2px; }
.conceitos-origem-link svg { width: 16px; height: 16px; transition: transform .2s; }
.conceitos-origem-link:hover { color: hsl(var(--accent)); }
.conceitos-origem-link:hover svg { transform: translateX(3px); }
@media (max-width: 767px) { .conceitos-origem-texto { font-size: 1.35rem; } .conceitos-origem { padding: 2.5rem 0 4rem; } }
@media (max-width: 899px) { .neuro-js .neuro-col .neuro-painel:not(.aberto) { display: none; } }
