/* Braintech Resources Lab V84 — focused editorial hover tuning.
   Intentionally limited to Risorse, Risorse interattive, Libreria.
   X-Ray, motion DNA, text and other site areas remain untouched. */
:root {
  --v84-warm:#eba06e;
  --v84-hot:#ff6a1f;
  --v84-white:#fff;
}
/* Risorse: pale-orange at rest, clean white when pointing at a destination. */
body.resources-landing .destination h2 {
  color:var(--v84-warm) !important;
  transition:color .22s ease;
}
body.resources-landing .destination:is(:hover,:focus-visible) h2 {
  color:var(--v84-white) !important;
}
/* Right-hand edge lights up even on the last destination (which has no shared divider). */
body.resources-landing .destination::after {
  content:"";
  position:absolute;
  inset:0 0 0 auto;
  width:2px;
  pointer-events:none;
  z-index:3;
  background:linear-gradient(180deg,rgba(255,106,31,.12),#ff6a1f 21%,#ff8d43 63%,rgba(255,106,31,.26));
  box-shadow:-3px 0 13px 1px rgba(255,106,31,.65), 0 0 25px 2px rgba(255,106,31,.25);
  opacity:0;
  transition:opacity .3s ease;
}
body.resources-landing .destination:is(:hover,:focus-visible)::after {opacity:1}

/* Interactive tools: orange-light title, ivory overline, white hover title. */
body.resource-subpage:not(.xray-page) .tool-row .tool-title {
  color:var(--v84-warm) !important;
  transition:color .2s ease;
}
body.resource-subpage:not(.xray-page) .tool-row .tool-meta {
  color:var(--resources-ivory,#f2efe7) !important;
}
body.resource-subpage:not(.xray-page) .tool-row:is(:hover,:focus-within) .tool-title {
  color:var(--v84-white) !important;
}

/* All resource rows: ONLY the lower edge glows, not the upper edge or the side edges. */
body.resource-subpage:not(.xray-page) :is(.tool-row,.edition,.future-topic) {
  border-color:rgba(242,239,231,.16) !important;
  box-shadow:none !important;
}
body.resource-subpage:not(.xray-page) :is(.tool-row,.edition,.future-topic)::after {
  content:"";
  pointer-events:none;
  position:absolute;
  left:0;
  bottom:0;
  height:2px;
  width:100%;
  z-index:3;
  background:linear-gradient(90deg,rgba(255,106,31,.35),#ff6a1f 36%,#ff8d43 72%,rgba(255,106,31,.30));
  box-shadow:0 0 12px 2px rgba(255,106,31,.56), 0 4px 20px rgba(255,106,31,.30);
  opacity:0;
  transition:opacity .3s ease;
}
body.resource-subpage:not(.xray-page) :is(.tool-row,.edition,.future-topic):is(:hover,:focus-within)::after {
  opacity:1;
}
/* Library editions and upcoming topics: pale-orange titles, pure-white hover. */
body.resource-subpage:not(.xray-page) :is(.edition,.future-topic) h3 {
  color:var(--v84-warm) !important;
  transition:color .2s ease;
}
body.resource-subpage:not(.xray-page) :is(.edition,.future-topic):is(:hover,:focus-within) h3 {
  color:var(--v84-white) !important;
}
/* Preserve understated links/kickers, rather than making them brighter on hover. */
body.resource-subpage:not(.xray-page) .tool-row:is(:hover,:focus-within) .tool-action {
  color:var(--v84-warm) !important;
}
@media(prefers-reduced-motion:reduce){
 body.resources-landing .destination::after,
 body.resource-subpage:not(.xray-page) :is(.tool-row,.edition,.future-topic)::after,
 body.resources-landing .destination h2,
 body.resource-subpage:not(.xray-page) :is(.tool-row .tool-title,.edition h3,.future-topic h3){transition:none}
}
/* Keep overlines ivory even when the row is hovered or keyboard-focused. */
body.resource-subpage:not(.xray-page) .tool-row:is(:hover,:focus-within) .tool-meta {
  color:var(--resources-ivory,#f2efe7) !important;
}

/* V91: white titles in the three primary Risorse destinations ONLY on mobile. */
@media(max-width:790px){
  body.resources-landing .destination h2,
  body.resources-landing .destination:is(:hover,:focus-visible,:active) h2 {
    color:#fff !important;
  }
}
