/* RSE Sankey – assets estratti dall'SVG e adattati per WordPress.
   Nota: le regole "globali" sono state scoperte per non impattare il tema. */

.rse-sankey { position: relative; }
.rse-sankey__inline { display: block; }

/* Modal visibility */
#SvgSupplementHtmlContainer { display:none; }

#SvgSupplementTextWrapper {
  margin: 0;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

#SvgSupplementTextWrapper .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 32px;
  border: 1px solid #888;
  width: 80%;
}

#SvgSupplementTextWrapper .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#SvgSupplementTextWrapper .close:hover,
#SvgSupplementTextWrapper .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Stile “testo” applicato SOLO al contenuto della modal */
#SvgSupplementTextContainer {
  font-family: Verdana;
  font-size: 11px;
  color: #555555;
  letter-spacing: .25px;
}

#SvgSupplementTextContainer h1 {
  font-size: 16px;
  font-weight: normal;
  color: #4477bb;
  margin: 12px 0 8px;
  padding-top: 8px;
  letter-spacing: 1.4px;
  border-bottom: solid 1px #4477BB;
}

#SvgSupplementTextContainer h2 {
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.6px;
  text-decoration: none;
  color: #4477bb;
  border-bottom: solid 1px #dddddd;
  margin: 8px 0 8px;
  padding-top: 8px;
}

#SvgSupplementTextContainer h3 {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.6px;
  text-decoration: none;
  color: #4477bb;
  margin: 8px 0 8px;
  padding-top: 8px;
}

#SvgSupplementTextContainer div,
#SvgSupplementTextContainer p,
#SvgSupplementTextContainer blockquote {
  margin: 0 0 8px;
  line-height: 1.2;
}

#SvgSupplementTextContainer ol,
#SvgSupplementTextContainer ul {
  margin-top: 0px;
  margin-bottom: 12px;
}

#SvgSupplementTextContainer a {
  color: #4477BB;
  font-style: normal;
}

#SvgSupplementTextContainer blockquote,
#SvgSupplementTextContainer pre,
#SvgSupplementTextContainer code {
  color: #444444;
  background-color: #eeeeee;
}

#SvgSupplementTextContainer blockquote {
  font-style: italic;
  border-left: 8px solid #4477bb;
  margin-left: 16px;
  margin-right: 32px;
  padding: 8px 8px 2px 8px;
  letter-spacing: 1px;
  line-height: 1.5;
}

#SvgSupplementTextContainer pre {
  font-family: Menlo, Monaco, Consolas, monospace;
  padding: 2px;
  line-height: 1.25;
  overflow-x: auto;
}

/* ---- CSS SVG (tooltip/highlighting) ---- */
.rse-sankey svg tspan { white-space: pre; }

#SvgToolTip { transition: opacity 1s; }

.highlighted { filter: url(#highlightFilter); }
.addOpacity { filter: url(#opacityFilter); }

.hasLink:hover { cursor: pointer; }

#SvgToolTipText { font-family: Helvetica, Arial, sans-serif; }
#SvgToolTipText .title { font-size: 150%; font-weight: bold; }
#SvgToolTipText .caption { font-size: 120%; font-weight: bold; }
#SvgToolTipText .section { font-weight: bold; }
#SvgToolTipText .stock { fill: #606060; }

#SvgToolTipBackground {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0.8;
}