/* CHARTA 3.0 | 2021, noviembre, 6*/

/* Paleographic styles */
#mtxt, #mtxt p { font-size: 13pt; line-height: 19pt; }
#mtxt s { text-decoration: none; }
#mtxt note { color: #0000aa; display: none; font-size: 10pt; vertical-align: super; }
#mtxt ex { color: #aaaaaa; }
/* #mtxt ex::before { content: '<'; }
#mtxt ex::after { content: '>'; } */
/* #mtxt add { color: #013ADF; text-decoration: none; } */
#mtxt del { text-decoration: line-through; color: #aaaaaa;  }
#mtxt hi[rend*='underlined'] { text-decoration: underline;  }

#mtxt ex { font-style: italic; }

/* #mtxt figure::before { content: '[' attr(type) ']'; color: #aaaaaa; } */

#mtxt p { color: #000000; }

#mtxt figure { color: #aaaaaa; }
#mtxt figure { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; width: 100%; }
#mtxt figure[type]:empty::before { content: '[' attr(type); }
#mtxt figure[type]:empty::after { content: ']'; }
#mtxt figure[type]::before { content: '['  attr(type) ': '; }
#mtxt figure[type]::after { content: ']'; }
#mtxt[show="nform"] figure { display: none; }


#mtxt[show="pform"] signed { color: #aaaaaa; }
#mtxt[show="pform"] signed::before { content: '[firma: '; }
#mtxt[show="pform"] signed::after { content: ']'; }
#mtxt[show="pform"] signed[hand]::before { content: '[firma mano ' attr(hand) ': '; }
#mtxt[show="pform"] signed[hand]::after {content: ']'; }
#mtxt[show="pform"] signed[xml\:lang='ar']::before { content: '[firma en árabe' ; }
#mtxt[show="pform"] signed[xml\:lang='he']::before { content: '[firma en hebreo' ; }
#mtxt[show="pform"] signed[xml\:lang]::after {content: ']'; }
#mtxt[show="pform"] signed[hand][xml\:lang='ar']::before { content: '[firma en árabe mano ' attr(hand) ;}
#mtxt[show="pform"] signed[hand][xml\:lang='he']::before { content: '[firma en hebreo mano ' attr(hand) ;}
#mtxt[show="pform"] signed[hand][xml\:lang]::after { content: ']' ;}

#mtxt foreign { color: #000000; }
#mtxt foreign[xml\:lang='la']:before { content: '[lat.: ' ; }
#mtxt foreign[xml\:lang='la']:after { content: ']'; }
#mtxt foreign[xml\:lang='gl']:before { content: '[gal.: ' ; }
#mtxt foreign[xml\:lang='gl']:after { content: ']'; }
#mtxt foreign[xml\:lang='ca']:before { content: '[cat.: ' ; }
#mtxt foreign[xml\:lang='ca']:after { content: ']'; }

#mtxt[show="form"] tei_div { color: #aaaaaa; }
#mtxt[show="form"] tei_div:before { content: '[' attr(type) ': ' ; }
#mtxt[show="form"] tei_div:after { content: ']' ; }
#mtxt[show="pform"] tei_div { color: #aaaaaa; }
#mtxt[show="pform"] tei_div:before { content: '[' attr(type) ': ' ; }
#mtxt[show="pform"] tei_div:after { content: ']' ; }
#mtxt[show="fform"] tei_div { color: #aaaaaa; }
#mtxt[show="fform"] tei_div:before { content: '[' attr(type) ': ' ; }
#mtxt[show="fform"] tei_div:after { content: ']' ; }
#mtxt[show="nform"] tei_div { content: ''; }

#mtxt tok:hover { text-shadow: 1pt 1pt #994444;}
#mtxt hr { background-color: #aaaaaa; }
#mtxt unclear { background-color: #cceecc;}


#footnotediv {
    z-index: 50;
    width: 400px;
    position: fixed; 
    top: 10px; right: 10px; 
    border: 1px solid #cccccc;
    padding: 20px;
    background-color: #eeffee;
}


/* #mtxt add[place='below'] { font-size:small; vertical-align: sub;}
#mtxt add[place='above'] { font-size:small; vertical-align: super;} */

#mtxt add { color: #aaaaaa; }
#mtxt add::before { content: '[añadido: '; }
#mtxt add::after { content: ']'; }
#mtxt add[place]::before { content: '[' attr(place) ': '; }
#mtxt add[place]::after {content: ']'; }
#mtxt add[hand]::before { content: '[añadido mano ' attr(hand) ': '; }
#mtxt add[hand]::after {content: ']'; }
#mtxt add[place][hand]::before { content: '[' attr(place) ' mano ' attr(hand) ': '; }
#mtxt add[place][hand]::after {content: ']'; }


#mtxt gap[reason='roto'] { color: #aaaaaa; }
#mtxt gap[reason='roto']::before { content: '['  attr(reason); }
#mtxt gap[reason='roto']::after { content: ']'; }
#mtxt gap[reason='doblez'] { color: #aaaaaa; }
#mtxt gap[reason='doblez']::before { content: '['  attr(reason); }
#mtxt gap[reason='doblez']::after { content: ']'; }
#mtxt gap[reason='mancha'] { color: #aaaaaa; }
#mtxt gap[reason='mancha']::before { content: '['  attr(reason); }
#mtxt gap[reason='mancha']::after { content: ']'; }
#mtxt gap[reason='blanco'] { color: #aaaaaa; }
#mtxt gap[reason='blanco']::before { content: '['  attr(reason); }
#mtxt gap[reason='blanco']::after { content: ']'; }

#mtxt gap[reason='ilegible'] { color: #000000; }
#mtxt gap[reason='ilegible']:before { content: '[***]'; }
#mtxt gap[reason='ilegible'][extent="1 char"]:before { content: '*'; }
#mtxt gap[reason='ilegible'][extent="2 chars"]:before { content: '**'; }
#mtxt gap[reason='ilegible'][extent="3 chars"]:before { content: '***'; }
#mtxt gap[reason='ilegible'][extent="4 chars"]:before { content: '****'; }
#mtxt gap[reason='ilegible'][extent="5 chars"]:before { content: '*****'; }
#mtxt gap[reason='ilegible'][extent="6 or more chars"]:before { content: '******'; }

#mtxt[show="nform"] gap[reason='ilegible']:before {content: '<...>'; }

#mtxt[show="pform"] supplied {display:none;}
#mtxt[show="form"] supplied {display:none;}
#mtxt[show="fform"] supplied {display:none;}
#mtxt[show="nform"] supplied::before {content: '<'; }
#mtxt[show="nform"] supplied::after {content: '>'; }


#mtxt[show="pform"] hi { color: #aaaaaa; }
#mtxt[show="pform"] hi[rend]:empty::before { content: '['  attr(rend); }
#mtxt[show="pform"] hi[rend]:empty::after { content: ']'; }
#mtxt[show="pform"] hi[rend]::before { content: '['  attr(rend) ': '; }
#mtxt[show="pform"] hi[rend]::after { content: ']'; }

/*
#mtxt text { text-align: justify; }
#mtxt div[id="mtxt"] { text-align: justify; }
#mtxt text[xml\:space='preserve'] { text-align: justify; }
*/

/*#mtxt gap { font-style: italic; color: #aaaaaa; }
#mtxt gap[reason]::before { content: '['  attr(reason); }
#mtxt gap[reason]::after { content: ']'; }
#mtxt gap::before { content: '[***]'; }
*/

