/* ARHN CSS */
/* DRS, TJF, MFL */
/* 2011-02-09 */

/* @import url(FGEA.css); */

body.home {background-image: url("../images/body-ARHN-home-trans.png");}

/* START title page styles */
p.titlePart {
  font-size:150%;
  line-height:300%;
  text-indent:0 !important;
}

p.titlePart.sub {
  margin:2em auto 8em auto;
  line-height:150%;
  letter-spacing:0.2em;
}

span.docAuthor {
  display:block;
  text-align:center;
  line-height:200%;
  font-size:150%;
  letter-spacing:0.2em;
}

div.docImprint p.pubPlace {
  margin-top:1em;
  font-size:120%;
  text-align:center;
  text-indent:0 !important;
  line-height:150%; 
  letter-spacing:0.2em;
}

p.publisher {
  text-align:center;
  font-size:120%;
  text-indent:0 !important;
  line-height:150%;
  letter-spacing:0.2em;
}

div.copyright {
  font-size:100%;
}
/* END title page styles */

/* default paragraph text indent for ARHN */
p {
  text-indent: 1.5em;
}

/* in the event of multi-line datelines, we want
   salutations to sit at the bottom */
table.salutationBlock td.salutationLeft {
  vertical-align:bottom;
}

/* source notes unindented by default */
div.note-source p {
  text-indent: 0;
}

/* ARHN signatures don't have padding */
p.signed {
  padding-right: 0;
}

/* ARHN may have recipient info in closers; early vols also in openers */
div.closer span.recip {
  display:block;
  margin-top:1em;
}

div.opener span.recip {
  display:block;
  margin-bottom:1em;
}

/* linegroups in ARHN are block-centered */
div.linegroup {
  width:60%;
  margin:1em auto;
}

/* underline <space/> gaps */
span.space {
  border-bottom: 1px dotted;
}

/* introductory notes etc. inside docgroups */
div.docgroup div.editorial {
  font-size:90%;
}

/* line-height and cell padding inside tables should not be special for ARHN */
table.bodytext td, table.internal td {
line-height: inherit;
vertical-align: top;
white-space: normal;
padding-top: 0;
padding-right: 2em;
padding-bottom: 0px;
padding-left: 0pt;
}

/* need spacing in between footnote mark and footnote text */
a.note-ref {
  padding-right:0.3em;
}

/* semi-diplomatic transcription styles START */
div.diplo {
  line-height:6em;
}

/* subst and ibb wrapper boxes (needed for vertical positioning of substitions, insertions, etc.) */
span.subst, span.ibb {
  display:inline-block;
  text-indent:0;
  padding-left:0;
  position:relative;
  line-height:100%;
}

span.subst del {
  display:inline-block;
  position:relative;
  width:inherit;
  white-space:nowrap;
}

span.subst ins {
  display:block;
  position:absolute;
  top:-120%;
  white-space:nowrap;
}

del {
  color:red;
}

del.simple {
  /* used in ARHN-02-01, which does not have interlinear*/
  color:inherit;
}

/* just a background image for now: no browser under Windows gets unicode combining solidus overlay right */
del.solidus {
  text-decoration:none;
  background-image:url('ARHN-res/solidus.png');
  background-repeat:no-repeat;
  background-position:center center;
}

ins {
  color:green;
  font-size:100%;
  line-height:100%;
  vertical-align:120%;
}

/* this, together with changes to add-ARHN() in lib-render.xqy, could be swapped out with a caret image
   (different platforms and browsers fall back on different characters for carets. Same is true of circumflex
   chars and other substitute candidates) */
span.caret {
  position:relative;
  bottom:-0.6em;
  font-size:100%;
  margin-right:0;
  text-indent:0;
  color:green;
}

/* another ugly workaround: line-through on caret leads to unpredictable results (vertical positioning and size
   of glyphs used by different user agents and platforms vary widely). This is as close as I managed, but it might
   be more consistent to use a graphic of a struckout caret */
span.caret-struckout {
  color:red;
  vertical-align:baseline;
  position:relative;
  bottom:-0.6em;
  font-size:100%;
  background-image:url('ARHN-res/caret-line-through.png');
  background-repeat:no-repeat;
}

/* have to suppress wrapping (otherwise, vertical positioning gets very unpredictable) */
ins.add-caret-baseline {
  color:green;
  white-space:nowrap;
}

/* by default, position insertions absolutely, so the box is taken out of the flow
   and doesn't cause horizontal gaps on the baseline */
span.ibb ins.add-caret-baseline {
  display:block;
  position:absolute;
  top:-120%;
}

/* class space-out gets applied by javascript iff two elements overlap at load time
   hackish fallback mechanism: switch to relative positioning, so the box stays on the 
   baseline ('push-out' effect).
   It would be more elegant to compute widths and adjust left and right positioning to avoid
   overlap */
span.ibb ins.space-out {
  color:green;
  position:relative;
  left:-0.6em;
  white-space:nowrap;
}

/* small adjustment: since we're positioning relatively, now the baseline carets
   nudges the supralinear content to the right. -0.25em is an apporoximation that seems to work
   for most carets on most systems. (Again: a fixed-width image may improve horizontal positioning
   somewhat here.) */
span.ibb ins.space-out span.caret {
  position:relative;
  left:-0.25em;
}

/* handling of margin notes inside diplo docs */
div.diplo span.note-inline-p {
  line-height:6em;
}

/* underline strikeout */
span.hi-underline-struckout {
  text-decoration:none; background: url("ARHN-res/underline-struckout.png") repeat-x bottom left;
}


/* different block-level strikeout styles */
.block-strikeout-rising {
  background-image:url('ARHN-res/strikeout-rising.png');
  color:red;
}

.block-strikeout-falling {
  background-image:url('ARHN-res/strikeout-falling.png');
  color:red;
}

.block-strikeout-vert {
  background-image:url('ARHN-res/strikeout-vert.png');
  color:red;
}

/* semi-diplomatic transcription styles END */

/* START cypher styles */
p.cypher {
  line-height:2em;
}
p.cypher span.cypher-group {
  display: inline-block;
  position: relative;
}
p.cypher span.encoded {
  display:block;
  position: relative;
  bottom:0;
  text-align:center;
  color: green;
}
p.cypher span.decoded {
  display:block;
  position: relative;
  top:0.8em;
  text-align: center;
  color: gray;
}
/* END cypher styles */


/* Misc. tweaks */
td.num.frac, td.curr.frac {
  padding-right: 1.2em;
}

td.num.punc {
  padding-right: 1.75em;
}

span.supplied:before{
  content: "[" ;
}

span.supplied:after {
  content: "]" ;
}

span.unclear {color:inherit;}

td.dotleader {
  white-space:pre;
  overflow-x:hidden !important;
  /*padding-right:1em !important;*/
}


/* This is never going to work well until paged-media support is there */
td.dotleader:after {
  max-width:20em;
  white-space:pre;
  /*display:block;
  float:right;*/
  overflow-x:hidden !important;
  content: "  . . . .";
  content: leader('.');
}

div.postscript + div.closer {
  /* in ARHN-02*/
  margin-top:1em;
}