/* ==========================================================================
   NHX-UI v4 Aurora · Publicaciones de la home (punto 5: insights v2→v4)
   Port del sistema nhx-home-v2/editorial (paleta teal/lima legacy) al lenguaje
   Aurora. Scope EXACTO: section.nhx-editorial-home (solo home; ideas/press/
   archive usan .nhx-editorial-index/.nhx-article y NO se tocan). La sección
   vive dentro del root .nhx4, así que reutiliza los tokens --v4-* (Light/Night
   remapeados por el propio v4). Link en el patrón section-insights-home.php
   (orden de documento: body > head, pisa editorial.css/home-v2.css).
   ========================================================================== */

/* --- Sección: sin línea teal, fondo transparente, ritmo v4 --- */
.nhx-editorial-home{
  border-top:0;
  background:transparent;
  color:var(--v4-ink,#0D1520);
  padding:clamp(84px,9vw,116px) 0;
}
/* shell alineado con .nhx4-shell */
.nhx-editorial-home .nhx-shell{
  width:min(1180px,92%)!important;
  margin-inline:auto!important;
}

/* --- Kicker pastilla (estilo hero v4, V4.12) --- */
.nhx-editorial-home .nhx-home-v2__eyebrow{
  display:inline-flex!important;
  align-items:center;gap:9px;
  padding:7px 15px 7px 13px!important;
  margin:0 0 16px!important;
  border:1px solid var(--v4-line,rgba(13,21,32,.10));
  border-radius:999px;
  background:var(--v4-card,#ffffff);
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.14em!important;
  text-transform:uppercase;
  color:var(--v4-green,#35790F)!important;
  box-shadow:0 1px 2px rgba(13,21,32,.05);
}
.nhx-editorial-home .nhx-home-v2__eyebrow::before{
  content:""!important;
  width:6px;height:6px;flex:0 0 6px;
  border-radius:50%;
  background:var(--v4-green-br,#7AC943);
}

/* --- H2 v4 (Inter 800, balance) --- */
.nhx-editorial-home .nhx-home-v2__title{
  max-width:none!important;
  font-family:"Inter","Manrope",system-ui,sans-serif!important;
  font-size:clamp(30px,4vw,52px)!important;
  font-weight:800!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  color:var(--v4-ink,#0D1520)!important;
  text-wrap:balance;
}

/* --- Encabezado + link "ver todos" --- */
.nhx-editorial-home .nhx-editorial-heading{margin-bottom:36px}
.nhx-editorial-home .nhx-editorial-all{
  font-weight:700;
  color:var(--v4-green,#35790F);
  text-underline-offset:4px;
}
.nhx-editorial-home .nhx-editorial-all:hover{color:var(--v4-green,#35790F)}

/* --- Acordeón de áreas → tarjetas v4 --- */
.nhx-editorial-home .nhx-research-areas{border-top:0}
.nhx-editorial-home .nhx-home-v2-faq details,
.nhx-editorial-home .nhx-research-area{
  border:1px solid var(--v4-line,rgba(13,21,32,.10))!important;
  border-radius:18px;
  background:var(--v4-card,#ffffff);
  margin-bottom:12px;
  overflow:hidden;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.nhx-editorial-home .nhx-research-area[open]{
  border-color:rgba(122,201,67,.45)!important;
}
.nhx-editorial-home .nhx-home-v2-faq summary{
  min-height:0;
  padding:20px 24px;
  font-size:17px;
  font-weight:700;
  color:var(--v4-ink,#0D1520);
}
.nhx-editorial-home .nhx-home-v2-faq summary span{
  width:38px;height:38px;
  border:1px solid var(--v4-line,rgba(13,21,32,.10));
  border-radius:12px;
  color:var(--v4-green,#35790F);
  font-size:1.2rem;
}
.nhx-editorial-home .nhx-home-v2-faq details > div{padding:0 24px 22px}
.nhx-editorial-home .nhx-home-v2-faq details p{
  color:var(--v4-mute,#56616B)!important;
}

/* --- Tarjetas de artículos v4 --- */
.nhx-editorial-home .nhx-editorial-grid{gap:20px}
.nhx-editorial-home .nhx-editorial-card{
  border:1px solid var(--v4-line,rgba(13,21,32,.10));
  border-radius:18px;
  background:var(--v4-card,#ffffff);
  box-shadow:none;
}
.nhx-editorial-home .nhx-editorial-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--v4-shadow,0 24px 48px -24px rgba(13,21,32,.22));
  border-color:rgba(122,201,67,.4);
}
/* glow interior: solo verde marca (fuera los radiales teal/lima) */
.nhx-editorial-home .nhx-editorial-card::before{
  background:radial-gradient(circle at 16% 12%,rgba(122,201,67,.16),transparent 34%)!important;
}
.nhx-editorial-home .nhx-editorial-card h2 a,
.nhx-editorial-home .nhx-editorial-card h3 a{
  color:var(--v4-ink,#0D1520);
}
.nhx-editorial-home .nhx-editorial-card h2 a:hover,
.nhx-editorial-home .nhx-editorial-card h3 a:hover{
  color:var(--v4-green,#35790F);
}
.nhx-editorial-home .nhx-editorial-meta{color:var(--v4-mute,#56616B)}
.nhx-editorial-home .nhx-editorial-card__body>p{color:var(--v4-mute,#56616B)}
.nhx-editorial-home .nhx-editorial-read{
  font-weight:700;
  color:var(--v4-green,#35790F);
}
.nhx-editorial-home .nhx-editorial-card:focus-within{outline-color:#7AC943}
.nhx-editorial-home .nhx-editorial-card__media-fallback,
.nhx-editorial-home .nhx-editorial-card__fallback{
  background:
    radial-gradient(circle at 72% 30%,rgba(122,201,67,.28),transparent 34%),
    var(--v4-tile,rgba(13,21,32,.03));
}

/* --- NIGHT: pisa los !important de editorial.css/home-v2.css con igual o
       mayor especificidad y orden de documento posterior --- */
html[data-nhx-theme="night"] .nhx-editorial-home{background:transparent}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-home-v2__title,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-research-area > summary{
  color:var(--v4-ink,#EAF3E4)!important;
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-research-area > summary span{
  color:var(--v4-green-br,#8FE05A)!important;
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-home-v2-faq details,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-research-area{
  background:var(--v4-card,rgba(255,255,255,.045));
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card{
  background:var(--v4-card,rgba(255,255,255,.045));
  border-color:var(--v4-line,rgba(255,255,255,.10));
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card h2 a,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card h3 a{
  color:var(--v4-ink,#EAF3E4)!important;
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card h2 a:hover,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card h3 a:hover{
  color:var(--v4-green-br,#8FE05A)!important;
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-all,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-read{
  color:var(--v4-green-br,#8FE05A)!important;
}
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-card__body>p,
html[data-nhx-theme="night"] .nhx-editorial-home .nhx-editorial-meta{
  color:var(--v4-mute,#B9C0D8);
}
