/* ***************************************************************** */

/* EVT 2.0 CUSTOM STYLESHEET */

/* ***************************************************************** */
/* .term {
	background-color: coral;
} 

.figDesc {
	display: block;
	border-left: 5px solid #b30000;
	background-color: #ffe6e6;
	padding: 5px 5px 5px 8px;
	margin-bottom: 3%;
	text-align: justify;
	font-size: 95%;
	font-style: italic;
}

span.analogue span.analogue__text span.quote {
	font-style: italic;
}

span.quote sup.iconbis-evt_quote-left,
span.quote sup.iconbis-evt_quote-right {
	display: none;
}
*/

/* ***************************************************************** */
/* HACKS PROVISÓRIOS VISUALIZAÇÃO BARRAS */
/* ***************************************************************** */
evt-select[data-type="document"] {
    display: none !important;
}
evt-select .selector {
    min-width: 130px;
    padding: 0 8px;
}

evt-select .label_selected {
    flex-grow: 1;
    padding-right: 10px;
    white-space: nowrap;
}

evt-select .open_options {
    min-width: 26px;
    text-align: center;
}

button-switch[title="BUTTONS.MS"][data-label="BUTTONS.MSD"] {
    display: none !important;
}
button-switch[title="TOC.HEADER"]{
    display: none !important;
}
/* 
button-switch[data-icon="info-alt"] {
    display: none !important;
} */


/* ***************************************************************** */
/* HOME STYLING */
/* ***************************************************************** */
span.head[data-rend="homeHeader"]{
font-weight: 400;
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: #0C1A23;
    margin-bottom: 2rem;
    position: relative;
}

span.head[data-rend="homeHeader"]::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    background: #fedb7d;
    margin-top: 1.2rem;
}

span.p[data-rend="homeP"]{
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 1.8rem;
    max-width: 44em;
}
span.p[data-rend="homePNavGuide"] {
    background: #fdf8f0; 
    border-left: 4px solid #FED675;
    padding: 1.5rem 2rem;
      margin: 1.8rem 0; 
    font-size: 1.05rem;
    line-height: 1.7;
   border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
span.p[data-rend="homePNavGuide"].ref.evtRef {
    font-weight: 600;
}

span.p[data-rend="homePLicense"] {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eceff1;
    font-size: 0.95rem;
    color: #546e7a;
}

.ref.evtRef {
    color: #19384D;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 56, 77, 0.35);
    transition: all 0.25s ease;
}
.ref.evtRef:hover {
    color: #0C1A23;
    border-bottom: 1px solid #FED675;
}
.ref.evtRef span {
    text-decoration: none;
}

span.head[data-rend="homeSubtitle"]{
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.4;
    color: #19384D;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    max-width: 36em;
    position: relative;
}
span.head[data-rend="homeSubtitle"]::after {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    background: rgba(25, 56, 77, 0.25);
    margin-top: 1.2rem;
}
span.hi[data-rend="darkerGreen"]::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-color: #2E7D32;
    margin: 0 0.2em;
    vertical-align: middle;
}

span.hi[data-rend="lighterGreen"]::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-color: #81C784;
    margin: 0 0.2em;
    vertical-align: middle;
}


/* ***************************************************************** */
/* CONFIGURAÇÕES GERAIS */
/* ***************************************************************** */
.p,
.sp .p,
.div .p,
.ab,
.sp .ab,
.div .ab{
  line-height: 1.6;
}

.choice,
.choice .abbr,
.choice .expan,
.choice .ex {
    text-decoration: none !important;
    color: inherit !important;
}

.choice {
  position: relative;
}
.choice .expan {
  display: none;
}

.choice:hover .expan {
  display: block;
  position: absolute;
  background: rgba(0,0,0,0.75); 
  color: #f2f2f2;
  font-size: 0.7em;
  letter-spacing: 0.02em;
  padding: 2px 6px;            
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  line-height: 1;
  white-space: nowrap;
  opacity: 0.9;
  z-index: 500;

  top: 100%;
  left: 0;
  margin-top: 4px;
}

/* *************************** */
/* dop-main visualisation */
/* *************************** */

.listPerson .person > :not(.note):first-child::before {
    content: "• ";          
    font-weight: bold;       
}

.listPerson .person > :not(.note):first-child {
    display: block;          
    margin-bottom: 0.2em;    
}

.listPerson .person .note {
    font-size: 0.85em;       
    line-height: 1.6;       
    display: block;          
    margin-top: 0.2em;  
}



div.div[data-rend~="twoColumns"]{
  display: flex;              
  flex-direction: row-reverse; 
  gap: 3em;                   
  align-items: flex-start;     
  margin: 1.5em 0;
}

div[data-type~="textColumnA"] {
  flex: 1;                    
  padding-right: 1em;
}

div[data-type~="textColumnB"] {
  flex: 1;                   
  padding-left: 1em;
}

div[data-rend~="twoColumns"] > div > :first-child {
  margin-top: 0;
}   

/* para tres colunas */
div[data-type~="smallTextColumnA"],
div[data-type~="smallTextColumnB"] {
  flex: 1;
  padding: 0 0.3em;        
  font-size: 0.45em;       
  line-height: 1.4;        
}

div[data-rend~="twoSmallColumns"] > div > :first-child {
  margin-top: 0;
}

/* ================================
   situa come fl. 5d30v
   ================================ */
div.div[data-rend~="twoAsymmetricColumns1"] {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;   
  gap: 0.4em;                
}
div.div[data-rend~="twoAsymmetricColumns1"] > div.div {
  margin: 0 !important;
}
div.div[data-rend~="twoAsymmetricColumns1"]
  > div.div[data-rend~="mainColumn1"] {

  flex: 0 0 75%;          
  padding-right: 0.5em;
  min-width: 0;           
}
div.div[data-rend~="twoAsymmetricColumns1"]
  > div.div[data-rend~="addColumn1"] {

  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* começa no topo */
  min-width: 0;
}
div.div[data-rend~="twoAsymmetricColumns1"]
  div.div[data-rend~="twoSmallColumns"] {

  display: flex;
  flex-direction: row;
  gap: 0.3em;
  align-items: flex-start;
  margin: 0;
}
div.div[data-rend~="twoAsymmetricColumns1"]
  div.div[data-rend~="smallTextColumnA"] {

  flex: 1;
  min-width: 0;
}
div.div[data-rend~="twoAsymmetricColumns1"]
  div.div[data-rend~="smallTextColumnB"] {

  flex: 1;
  min-width: 0;
}
div.div[data-rend~="twoAsymmetricColumns1"]
  div.div[data-rend~="twoSmallColumns"] {

  flex-direction: row-reverse;
}


/*  ===================================================================================== */
div.div[data-rend~="twoAsymmetricColumns"] {
  display: flex;
  flex-direction: row-reverse;
  gap: 1em;
}
div[data-rend~="addColumn"] {
  flex: 0 0 2.75em;
  padding-left: 0.1em;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
div[data-rend~="addColumn"][data-rend~="bottomText"] {
  justify-content: flex-end; 
}
div[data-rend~="addColumn"][data-rend~="centredText"] {
   top: 19.5em; 
}
div[data-rend~="mainColumn"]{
  flex: 1;
  padding-right: 1em;
}

div.div[data-rend~="twoAsymmetricColumnsRight"] {
  display: flex;
  flex-direction: row;
  gap: 1em;
}
div[data-rend~="addRightColumn"] {
  flex: 0 0 2.75em;
  padding-right: 0.1em; 
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
div[data-rend~="addRightColumn"][data-rend~="bottomText"] {
  justify-content: flex-end; 
}
div[data-rend~="addRightColumn"][data-rend~="centeredText"] {
  top: 19.5em; 
}
div[data-rend~="mainLeftColumn"] {
  flex: 1;
  padding-left: 1em; 
}

/*  
div.div[data-rend~="threeColumns"] {
  display: flex;
  flex-direction: row;
  gap: 2.5em;
  align-items: flex-start;
  margin: 1.5em 0;
}
div[data-rend~="columnA"] {
  flex: 0 0 3em;
  padding-right: 0.5em;
  min-width: 0;
}
div[data-rend~="columnB"] {
  flex: 1 1 auto;
  min-width: 0;
}
div[data-rend~="columnC"] {
  flex: 0 0 3em;
  padding-left: 0.5em;
  min-width: 0;
}
*/

evt-popover .popover_trigger .evt_note {
    position: relative;
    padding-right: 26px;
}
evt-popover .popover_trigger .evt_note::after {
    content: "ⓘ";
    position: absolute;
    /* right: -20px; */
    background: rgba(0,0,0,0.75);
    color: #f2f2f2;
    font-size: 0.75em;
    text-align: center;
    letter-spacing: 0.01em;
    padding: 2px 6px;    
    border-radius: 6px;
    border-radius: 999px;
    box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    line-height: 1;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 500;
}
.popover_tooltip {
    background: rgba(0,0,0,0.75);
    color: #f2f2f2;
    padding: 8px 12px;
    margin: 8px 10px;
    font-size: 0.85em;
    line-height: 1.45;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    z-index: 99;
    cursor: text !important;
    font-variant-ligatures: common-ligatures;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 220ms ease-out,
        transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.popover__tooltip__before {
    display: none;
}
.popover_tooltip.expanded {
    opacity: 1;
    transform: translateY(0);
}
   

/* ***************************************************************** */
/* STAGE DIRECTIONS */
/* ***************************************************************** */
span.stage{
    display: inline;
    font-style: italic;    
    font-weight: 300;
    font-size: 0.9em;
    opacity: 0.85;
}
span.stage[data-rend~="centred"] {
    display: block;
    text-align: center;
}

/* QUESTÕES DAS FALAS */
/* Eliminar : automático após <speaker> */
.speaker::after {
    content: "" !important;
}

/* Renderizar conteúdo <speaker> conforme xml */
span.speaker {
   font-variant: none;
}

/* Quebra de linha e indentação conforme xml */
span.lb[data-break="no"] + span.speaker ~ span.p {
    display: inline !important;
    margin: 0;
}

/* NAMED ENTITIES */
/* .evt-named-entity-ref[data-entity-type="persName"]{
    font-weight: 600;              
    background: #coral;                
}

span.placeName {
    font-weight: 600;
    background: #6f90ad;                
}  
*/

/* ***************************************************************** */
/* WRITING PROCESS */
/* ***************************************************************** */
span.del{
    text-decoration: line-through;
    background-color: transparent !important;
}

/*  
span.del[data-hand~="hnd:FP-redTypewriting"]{
    text-decoration: line-through;
    text-decoration-color: red; 
    background-color: transparent;
}*/

.add,
.addSpan{
    background-color: transparent !important;
    border-radius: 2px;
    font-size: 0.9em;
    color: #2e7d32;     
  font-weight: 500; 
}
span.add[data-place~="above"]{
    vertical-align: super;
      line-height: 1.6;
      position: relative;
}
span.add[data-place~="above"][data-rend~="additionLevel2"]{
  position: relative;
  top: -0.6em;        
  left: 0;
  font-size: 0.85em;
  z-index: 3;
}
span.add[data-place~="above"][data-rend~="additionLevel3"]{
    position: relative;
    top: -1em;
    font-size: 0.75em;
    z-index: 4;
}
span.add[data-place~="below"] {
    position: relative;        
    line-height: 1.6;          
    vertical-align: sub;   
}
span.add[data-place~="below"][data-rend~="additionLevel2"] {
    top: 0.6em;                
    font-size: 0.85em;         
    z-index: 3;
}
span.add[data-place~="below"][data-rend~="additionLevel3"] {
    top: 1em;                  
    font-size: 0.85em;         
    z-index: 4;
}

.diplomaticEdition .subst {
  text-decoration: none !important;
}

span.seg[data-type="alt"] {
    color: #81c784;
}
span.sic:hover::after {
  content: "sic";
  position: absolute;
  background: rgba(0,0,0,0.75); 
    color: #f2f2f2;
    font-size: 0.7em;
    letter-spacing: 0.02em;
    padding: 2px 6px;            
    border-radius: 6px;
    box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    line-height: 1;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 500;
}

span.unclear[data-cert="medium"]::before {
  content: "*";
  font-size: 0.9em;
  margin-right: 0.05em;
}
span.unclear[data-cert="low"]::before {
  content: "**";
  font-size: 0.9em;
  margin-right: 0.05em;
}
/*  span.unclear[data-cert="medium"]:hover::after {
  content: "Conjectured reading";
  position: absolute;
  left: 0;
  top: -1.6em;
  background: #111;
  color: #f2f2f2;
  font-size: 0.7em;
  font-style: italic;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  white-space: nowrap;
  border-radius: 2px;
  opacity: 0.95;
  z-index: 500;
}
span.unclear[data-cert="low"]:hover::after {
  content: "Highly uncertain conjectured reading";
 position: absolute;
  left: 0;
  top: -1.6em;
  background: #111;
  color: #f2f2f2;
  font-size: 0.7em;
  font-style: italic;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  white-space: nowrap;
  border-radius: 2px;
  opacity: 0.95;
  z-index: 500;
}
*/

/*[data-rend~="red"]{
    color:red;
} */

/* Características de layout do texto */
*[data-rend~="superimposed"] {
    vertical-align: super;
}

*[data-rend~="superscript"] {
    vertical-align: super;
    font-size: 0.6em;
}
*[data-rend~="indented"] {
    padding-left: 4cm;
    text-indent: 0;
    display: inline;
}
*[data-rend~="right-aligned"] {
   display: block;
   text-align: right; 
   margin-right: 1.5em;
}  
*[data-rend~="centred"] {
    display: block;
    text-align: center;   
}

*[data-rend~="underlined"] {
    text-decoration: underline;
}

*[data-rend~="overlined"] {
    text-decoration: overline;
}

*[data-rend~="doubleUnderlined"] {
    text-decoration: underline double;
}

*[data-rend~="underlined"][data-rend~="overlined"] {
    text-decoration: underline overline;
}

span.p:has(> span.metamark[data-rend~="verticalMarginMetamark"]),
span.p:has(> span.metamark[data-rend~="marginMetamark"]) {
    position: relative;
} 

span[data-function~="doubt"],
span[data-function~="rejection"],
span[data-function~="approval"],
span[data-function~="reminder"],
span[data-subtype~="doubt"],
span[data-subtype~="rejection"],
span[data-subtype~="approval"],
span[data-subtype~="reminder"]
{
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.7;
}
/* 
span.metamark[data-function~="openingBracket"],
span.metamark[data-function~="closingBracket"]{
    font-size: 0.8em;
    opacity: 0.7;
} */

[data-rend~="bracketed"]::before {
    content: "[";
    margin-right: 0.1em;
}

[data-rend~="bracketed"]::after {
    content: "]";
    margin-left: 0.1em;
}
*[data-rend~="openingBracket"]::before{
    content: "[";
    margin-right: 0.1em;
}
*[data-rend~="closingBracket"]::after{
    content: "]";
    margin-right: 0.1em;
}
[data-rend~="parenthetical"]::before {
    content: "(";
    margin-right: 0.1em;
}

[data-rend~="parenthetical"]::after {
    content: ")";
    margin-left: 0.1em;
}
span.metamark[data-rend~="verticalMarginMetamark"] {
    position: absolute;
    display: block;        
    left: -4em;          
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: sideways;
    transform: rotate(180deg);
    font-size: 0.75em;
    font-style: italic;
    font-weight: 300;
    opacity: 0.7;
    white-space: nowrap;
    z-index: 2;  
    }

span.p > span.metamark[data-rend~="marginMetamark"] {
    position: absolute;
    left: -5em;
    top: 30%;
    transform: translateY(-50%);
    font-size: 0.65em;
    font-style: italic;
    font-weight: 300;
    opacity: 0.7;
    white-space: nowrap;
    z-index: 2;
} 

*[data-rend~="hesitationMark"] {
    border-bottom: 1px dashed #000;
    padding-bottom: 0.1em;
}

*[data-rend~="leftVerticalHesitationMark"] {
    position: relative;
}
*[data-rend~="leftVerticalHesitationMark"]::before {
    content: "";
    position: absolute;
    left: -0.8em;         
    top: 0.15em;
    bottom: 0.15em;
    border-left: 1px dashed #000;
}
*[data-rend~="leftVerticalIndentedHesitationMark"] {
    position: relative;
}
*[data-rend~="leftVerticalIndentedHesitationMark"]::before {
    content: "";
    position: absolute;
    left: -0.4em;         
    top: 0.15em;
    bottom: 0.15em;
    border-left: 1px dashed #000;
} 

*[data-rend~="rightVerticalHesitationMark"] {
    position: relative;
    display: inline-block;
    padding-right: 0.6em;     
    margin-right: 0.2em;
}
*[data-rend~="rightVerticalHesitationMark"]::after {
    content: "";
    position: absolute;
    right: 0;                
    top: 0.1em;
    bottom: 0.1em;
    border-right: 1px dashed #000;
}
*[data-rend~="circled"] {
    border: 1px solid #000;
    border-radius: 50%;        
    padding: 0.2em 0.4em;     
    display: inline-block;
    text-align: center;
}
*[data-rend~="indented"][data-rend~="circled"] {
    display: inline-block;      
    margin-left: 4cm;           
    padding-left: 0;
}
*[data-rend~="boxed"] {
    border: 1px solid #000;   
    padding: 0.1em 0.2em;     
    border-radius: 0;          
    display: inline-block;     
}
*[data-rend~="boxed"]:has(span.add[data-rend~="additionLevel2"]) {
    padding-top: 0.5em;   
}
*[data-rend~="boxed"]:has(span.add[data-rend~="additionLevel3"]) {
    padding-top: 0.8em;
}
*[data-rend~="boxed"]:has(span.add[data-place~="below"][data-rend~="additionLevel2"]) {
    padding-bottom: 0.5em;
}
*[data-rend~="boxed"]:has(span.add[data-place~="below"][data-rend~="additionLevel3"]) {
    padding-bottom: 0.8em;
}
*[data-rend~="halfCircled"] {
  position: relative;
  padding-bottom: 0.35em;
}

*[data-rend~="halfCircled"]::after {
  content: "";
  position: absolute;
  left: -0.25em;
  bottom: -0.2em;
  width: calc(100% + 0.5em);
  height: 0.8em;
  border: 1px solid #000;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0 0 1.2em 1.2em;
}
*[data-rend~="halfCircledAbove"] {
  position: relative;
  padding-top: 0.35em;
}

*[data-rend~="halfCircledAbove"]::before {
  content: "";
  position: absolute;
  left: -0.25em;
  top: -0.25em;
  width: calc(100% + 0.5em);
  height: 0.8em;
  border: 1px solid #000;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-radius: 1.2em 1.2em 0 0;
}
*[data-rend~="halfCircledRight"] {
  position: relative;
  padding-right: 0.4em;
  padding-bottom: 0.2em;
}

*[data-rend~="halfCircledRight"]::after {
  content: "";
  position: absolute;
  right: -0.15em;
  bottom: -0.15em;
  width: 1.2em;
  height: 1.2em;
  border: 1px solid #000;
  border-left: none;
  border-top: none;
  border-radius: 0 0 1.2em 0;
}
*[data-rend~="leftCorneredBelow"] {
    display: inline-block;
    padding: 0.2em 0.4em;
    border-top: none;
    border-right: none;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
    border-bottom-left-radius: 1em;
}
*[data-rend~="leftCorneredAbove"] {
    display: inline-block;
    padding: 0.2em 0.4em;
    border-bottom: none;
    border-right: none;
    border-left: 1px solid #000;
    border-top: 1px solid #000;
    border-top-left-radius: 1em;
}
div[data-rend~="leftCorneredBelow"][data-rend~="right-aligned"] {
    display: flex;                
    flex-direction: column;        
    justify-content: flex-start;  
    align-items: flex-end;    
    padding-left: 0.4em;           
    padding-bottom: 0.2em;         
    border-left: 1px solid #000;   
    border-bottom: 1px solid #000; 
    border-bottom-left-radius: 1em;
    margin-right: 1.5em;           
}

*[data-rend~="rightCorneredAbove"] {
    display: inline-block;
    padding: 0.2em 0.4em;
    border-bottom: none;
    border-left: none;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    border-top-left-radius: 1em;
}

span.metamark[data-rend~="rule"] {
    display: block;
    border-bottom: 1px solid black;
    height: 0;
    margin: 0.5em 0;
    color: transparent;  
    line-height: 0;
}
span.metamark[data-rend~="verticalRule"] {
  position: absolute;
  top: 0;
  bottom: 0;             
  right: -0.05em;        
  width: 0;
  border-right: 1px solid black;
  color: transparent;
  line-height: 0;
}
span.metamark[data-rend~="halfRule"] {
    display: block;      
    width: 8em;                 
    border-bottom: 1px solid black;
    height: 0;
    margin: 0.5em 0;
    color: transparent;          
    line-height: 0;
    vertical-align: middle;      
}
span.metamark[data-rend~="halfRule"][data-rend~="centred"] {
    margin-left: auto;
    margin-right: auto;
}
span.metamark[data-rend~="doubleHalfRule"] {
    display: block;
    width: 4em;                  
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    height: 0.4em;               
     margin: 0.6em auto;
    color: transparent;          
    line-height: 0;
    vertical-align: middle;
    border-top: 1px solid #000;
border-bottom: 1px solid #555;
}

/* Trechos simples, verticais e rodeados 90º para a direita/esq. */
*[data-rend~="writingMode(verticalRL)"] {
  writing-mode: vertical-rl;
  text-orientation: sideways;
}
*[data-rend~="writingMode(verticalLR)"] {
  writing-mode: vertical-lr;
  text-orientation: sideways;
  transform: rotate(180deg);
  transform-origin: center;
}
/* Trechos longos, verticais e rodeados 90º para a direita/esq. */
*[data-rend~="complexVerticalRL"],
*[data-rend~="complexVerticalLR"],
*[data-rend~="complexUpsideDown"]
{
  position: relative;
  padding: 0.15em 1em 0.15em 2em;
}
*[data-rend~="complexVerticalRL"]:hover,
*[data-rend~="complexVerticalLR"]:hover,
*[data-rend~="complexUpsideDown"]:hover{
border: 1px solid rgba(0, 0, 0, 0.25);
border-radius: 6px;
background-color: rgba(255, 255, 255, 0.6);
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.15),
0 3px 6px rgba(0, 0, 0, 0.1);
transition:
box-shadow 0.15s ease,
border-color 0.15s ease,
background-color 0.15s ease;
}
*[data-rend~="complexVerticalRL"]:hover::after,
*[data-rend~="complexVerticalLR"]:hover::after,
*[data-rend~="complexUpsideDown"]:hover::after
{
  position: absolute;
  left: 0;
  top: -1.6em;
  transform: translate(0.6em, 2.4em);
  background: rgba(0,0,0,0.75);
  color: #f2f2f2;
  font-size: 0.7em;
  letter-spacing: 0.01em;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    line-height: 1;
  white-space: nowrap;
  opacity: 0.9;
  z-index: 500;
}
*[data-rend~="complexVerticalRL"]:hover::after {
  content: "Content written vertically (rotated 90° to the right)";
}
*[data-rend~="complexVerticalLR"]:hover::after {
  content: "Content written vertically (rotated 90° to the left)";
}
*[data-rend~="complexUpsideDown"]:hover::after {
  content: "Content written upside down (rotated 180º)";
}

/* HACK para div com acrescentos longos, verticais e rodeados 90º para a esq. na margem esq. */
div[data-rend~="leftVerticalVisualisationNote"] {
    position: relative;
    padding-left: 2em; 
}
div[data-rend~="leftVerticalVisualisationNote"]::before {
    content: "ⓘ";
    position: absolute;
    left: -0.6em;
    top: 0.15em;
    background: rgba(0,0,0,0.75); 
    color: #f2f2f2;
    font-size: 0.7em;
    letter-spacing: 0.01em;
    padding: 2px 6px;            
    border-radius: 999px;        
    box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    line-height: 1;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 500;
}

div[data-rend~="leftVerticalVisualisationNote"]:hover::before {
    content: "ⓘ Long addition on the left margin, see below";
}


div[data-rend~="rightVerticalVisualisationNote"] {
    position: relative;
    padding-right: 1.5em;
}
div[data-rend~="rightVerticalVisualisationNote"]::after {
    content: "ⓘ";
    position: absolute;
    top: 0.2em;     
    right: 0.2em;
    background: rgba(0,0,0,0.75); 
    color: #f2f2f2;
    font-size: 0.7em;
    letter-spacing: 0.02em;
    padding: 2px 6px;            
    border-radius: 999px;  
    box-shadow:
        0 6px 16px rgba(0,0,0,0.35);
    line-height: 1;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 500;
}
div[data-rend~="rightVerticalVisualisationNote"]:hover::after {
    content: "ⓘ Long addition on the right margin, see below";  
}

span.space {
    display: inline-block;
    height: 1em;
    vertical-align: baseline;
    color: transparent;
    line-height: 0;
}

span.space[data-quantity="5"]  { width: 5ch; }
span.space[data-quantity="10"] { width: 10ch; }
span.space[data-quantity="15"] { width: 15ch; }
span.space[data-quantity="20"] { width: 20ch; }
span.space[data-quantity="25"] { width: 25ch; }
span.space[data-quantity="30"] { width: 30ch; }
span.space[data-quantity="35"] { width: 35ch; }