/* Welsh Prose / Rhyddiaith Gymraeg 1350-1425 Stylesheet */

@import url("//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css");

body {
  font-family: Constantia, Georgia, "Times New Roman", Times, serif;
  font-size: 100%;
  line-height: 1.2em;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

h1 {
  font: Bold 1.8em Candara, Verdana, Arial, Helvetica, sans-serif;
  color: #708a03;
}

h2 {
  font: Bold 1.25em Candara, Verdana, Arial, Helvetica, sans-serif;
  color: #708a03;
  margin-top: 2em;
}

p {
  margin: 1em 0;
}
p, li {
  max-width: 48em;
}

tr {
  vertical-align: baseline;
}

td, th {
  padding-right: 0.5em;
}
th {
  font-style: italic;
  font-weight: normal;
  text-align: left;
}
td {
  border-top: 1px solid #dddddd;
}

/*
 * 'quote' used for highlighting in 'coding' section
 */
q {
  color: #89160A;
}

header {
  vertical-align: baseline;
}

#title {
  height: 80px;  /* match height of images */
  border-top: 7px solid #8ca033;
  background-color: #fbfaf4;
  padding-left: 100px;
  padding-right: 10px;
}

#nav {
  font-size: 0.9em;
  background-color: #edebd5;
  border-top: 1px solid #999999;
  padding: 4px 10px 4px 100px;
  clear: both;
}

#lang-switch {
  color: #708a03;
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
  border-top: 2px solid #666666;
}

#content {
  margin-left: 100px;
  padding-right: 40px;
  margin-top: 40px;
  color: #333333;
}
@media print {
  #content { margin: 0; padding: 0; }
  #title   { margin: 0; padding: 0; }
  #nav     { display: none; }
  #options { display: none; }
}

footer {
  border-top: 1px solid #999999;
  margin-top: 4em;
}

footer img {
  padding: 0 8px 0 8px;
}

#footerLogo {
  float: left;
}

#footerText {
  font: 0.8em Candara, Verdana, Arial, Helvetica, sans-serif;
  margin-left: 100px;
}

.current {
  color: #ba8e01;  /* olive */
}

/* TEI Header styles */

div#content.tei-hdr td { padding: 0.2em 0.4em 0.2em 0; }
div#content.tei-hdr blockquote { margin: 0 2em; }
div#content.tei-hdr ul { list-style: circle; margin-left: 2em; }
div#content.tei-hdr h3, h4, h5, h6, h7, h8, div.head { font-family: Candara, Verdana, Arial, Helvetica, sans-serif; display: block; }
div#content.tei-hdr h3, h4, h5, h6 { color: #708a03; }
div#content.tei-hdr h7, h8 { color: #666666; }
div#content.tei-hdr div.head { color: #666666; }
/* h2 - file/encoding/revision; larger than other pages to enable distinction of extra header levels: */
div#content.tei-hdr h2       { font-size: 1.6em; border-top: 1px solid #cccccc; }
/* h3 - titleStmt/sourceDesc/projectDecl/editorialDecl: */
div#content.tei-hdr h3       { font-weight: bold;   font-size: 1.40em; margin-top: 1.5em; }
/* h4 - msDesc/correction/interpretation: */
div#content.tei-hdr h4       { font-weight: bold;   font-size: 1.40em; font-style: italic; margin-top: 1.5em; }
/* h5 - msIdentifier/msContents/physDesc/history: */
div#content.tei-hdr h5       { font-weight: bold;   font-size: 1.25em; margin-top: 1.5em; }
/* h6 - objectDesc/handDesc/scriptDesc/decoDesc/additions/accMat: */
div#content.tei-hdr h6       { font-weight: normal; font-size: 1.25em; font-style: italic; margin-top: 1.5em; margin-bottom: 1.0em; }
/* h7 - supportDesc/layoutDesc: */
div#content.tei-hdr h7       { font-weight: normal; font-size: 1.10em; margin-top: 1.5em; }
/* h8 - foliation/condition: */
div#content.tei-hdr h8       { font-weight: normal; font-size: 1.00em; font-style: italic; margin-top: 1.5em; }
/* catchwords: */
div#content.tei-hdr div.head { font-weight: normal; font-size: 1.00em; margin-top: 1.5em; }


.align-left {
  text-align: left; 
}
.align-center {
  text-align: center; 
}
.align-right {
  text-align: right; 
}
  .junicode { font-family: JunicodeRegular; }
  .biolinum { font-family: LinuxBiolinumRegular; }
  .small { font-size: 0.9em; max-width: 48em; }
  .nowrap { white-space: nowrap; }
  .minw4 { min-width: 4em; }
  .grey { color: #999999; }

a {
  color: #708a03;  /* khaki */
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  border: none;
}

span.rtl { /* obfuscate email */
  unicode-bidi: bidi-override; 
  direction: rtl; 
  white-space: nowrap;
  }

/* even line spacing with sub/superscripts: www.cs.tut.fi/~jkorpela/www/linespacing.html */
sup, sub { position: relative; font-size: 0.85em; vertical-align: 0; }
sup      { bottom: 0.8ex; }
sub      { top: 0.8ex; }  
