/* The following styles are for all (visual) media */

div.photo img {
  border: 1px solid;
}

table {
  border-collapse: collapse;
  font-size: 90%;
}

th, td {
  padding: 2px .5ex;
}

th {
  background-color: #eee;
  font-weight: normal;
}

tr.total td {
  border-top: 1px solid;
}

tr.total.years td {
  border-top: 2px solid black;
  font-weight: bold;
}

tr.separator td {
  height: 1em;
}

td.total, th.total {
  border-left: 1px solid;
}

tr.total td.total {
  font-weight: bold;
}

@media screen {
  body {
    background-color: white;
    font-family: sans-serif;
    margin-left: 0;
    margin-right: 0;
    padding-right: 58px;
  }

  #content {
    margin-left: 300px;
    padding-left: 8px;
  }

  * {
    color: #060700;
    color: black;
  }

  a:link {
    color: #578;
    color: #585;
  }

  a img {
    border: none;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: serif;
  }

  h1 {
    margin-top: 1em;
    background: url('/img/h1-border-bottom.png') bottom left repeat-x;
    color: #880;
  }

  h2, h3, h4, h5, h6 {
    margin-top: 1em;
    margin-bottom: -.3em;
    background: url('/img/hx-border-bottom.png') bottom left repeat-x;
    color: #6e6e6e;
    color: #060700;
    color: #888;
  }

  strong {
    color: #6e6e6e;
    color: #060700;
    color: #a62;
  }

  /* A centered block */
  .centered {
    /* Center the block */
    margin-left: auto;
    margin-right: auto;

    /* Make the block somewhat smaller than most browser windows. Otherwise, there'd be nothing to center.*/
    max-width: 602px;
  }

  #left {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
  }

  #menu {
    margin-top: 2em;
    margin-left: 2em;
    padding: 0;
    list-style-type: none;
  }

  #menu li {
    border: 1px solid white;
    margin: 0;
    color: #880;
  }

  #menu li a {
    display: block;
    background-image: url('/img/o-21x16.png');
    background-position: top left;
    background-repeat: no-repeat;
    padding-left: 30px;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    color: #585;
    color: #660;
  }

  #menu li a:hover,
  #menu li.active a {
    background-image: url('/img/oSafe-21x16.png');
  }

  #menu a:hover {
    color: #787800;
  }

  .field {
    margin-top: 1em;
    clear: both;
  }

  .field label {
    /*
    text-align: right;
    float: left;
    width: 20ex;
    padding-right: 2ex;
    */
  }

  .field input {
  }

  div.alt_lang {
    float: right;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    background-color: #fafaff;
  }

  div.alt_lang a {
    background-color: #eee;
    text-decoration: none;
    font-weight: bold;
    color: #29d;
  }
}

@media print {
  body {
    background-color: white;
    font-family: serif;
    color: black;
  }

  a.logo, #menu, .alt_lang {
    display: none;
  }

  h1, h2 {
    height: .92em;
  }

  h1 {
    border-bottom: 2px solid #CCA;
    color: #880;
  }

  h2, h3, h4, h5, h6 {
    margin-top: 1em;
    margin-bottom: -.2em;
    border-bottom: 1px solid #bebebe;
    page-break-after: avoid;
    color: #7f7f7f; /* For some reason, #888 becomes black in FF */
  }

  hr {
    margin: 1em 0;
    border-style: solid;
    border-color: black;
    border-width: 1pt 0 0 0;
    height: 0;
  }

  q {
    quotes: "\201C" "\201D" "\2018" "\2019";
  }

  a {
    background-color: inherit;
    text-decoration: none;
    color: inherit;
  }

  input[type=text], select {
    border: none;
    border-bottom: 1px dashed #666;
  }
}
