/*
 * body
 */
body {
    background: white;
    font-family: 'Microsoft Sans Serif', sans-serif;
    font-size: 1.0rem;
    line-height: 1.2;
    margin: 0;
}

/*
 * address
 */
address {
    background: #004;
    color: #eef;
    font-weight: bold;
    margin: 0;
    padding: 1em 0em 1em 2em;
}

/*
 * #main
 */
#main {
    margin: 0 0.5em 0 0.5em;
}

/*
 * div.info
 */
div.info {
    text-align: right;
    font-family: monospace;
    font-style: italic;
    font-size: 80%;
    color: darkgray;
    margin: 0;
    padding: 0.5em 2em 1em 0em;
}

/*
 * h1, ..., h5
 */
h1 {
    background: #004;
    color: #eef;
    font-weight: bold;
    margin: 0;
    padding: 1em 0em 1em 2em;
}

h1.subtitle {
    font-size: 120%;
}

h1 a {
    color: #eef;
    text-decoration: none;
}

h2, h3, h4, h5 {
    background: #eef;
    color: #004;
    font-weight: bold;
    margin: 0.5em 0 0.5em 0.5em;
    padding: 0.5em 0 0.5em 1em;
}

h2 {
    border-left: 6px solid #004;
    border-bottom: 3px solid #004;
    font-size: 120%;
}

h3 {
    border-left: 4px solid #004;
    font-size: 110%;
}

h4, h5 {
    margin-left: 1em;
}

/*
 * form
 */
form.search {
    text-align: center;
}

input.search, textarea.search {
    width: 70%;
}

input, textarea {
    font-family: 'Microsoft Sans Serif', monospace;
    font-size: 100%;
}

form.edit {
    padding-right: 1em;
}

input.edit, textarea.edit {
    width: 100%
}

form.comment_form input[type="text"] {
    width: 80%;
}

/*
 * table
 */
table {
    width: 100%;
}

table.edit {
}

table.result_list {
    border-collapse: collapse;
}

table.result_list >tbody >tr {
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}

table.record a {
    color: navy;
    text-decoration: none;
}

table.record a.link {
    color: blue;
}

table.record a:hover {
    background-color: #eef;
    text-decoration: underline;
}

th, td {
    font-size: 1.0rem;
}

td.record_menu {
    width: 10%;
}

td.record {
    width: 90%;
    padding: 0.5em 0;
}

td.record_number {
    font-family: nonospace;
    text-align: center;
}

td.record_command {
    font-family: monospace;
    text-align: center;
}

td.record_field {
    white-space: nowrap;
    text-align: right;
    vertical-align: baseline;
    padding-right: 1ex;
    width: 12em;
}

td.record_value {
    vertical-align: baseline;
    max-width: 30em;
}

td.record_diff {
    width: 90%;
}

td.record_input {
    width: 90%;
}

td.record_input2 {
    width: 40%;
}

table.history {
    padding-left: 1em;
}

tr.history {
}

/*
 * Misc.
 */
div.status {
    text-align: center;
    margin: 0.5em 0;
}

div.warning {
    text-align: center;
    color: darkred;
    margin: 0.5em 0;
}

div.home {
    text-align: center;
    margin: 0.5em 0;
}

span.id {
    font-family: monospace;
}

span.name {
  /* font-family: sans-serif; */
}

span.kana {
    font-weight: bold;
}

span.latin {
    font-family: 'DejaVu Serif Condensed', serif;
    font-weight: bold;
    /* font-family: 'Microsoft Sans Serif', sans-serif; */
}

span.cjk {
}

span.greek {
    font-family: 'MS Reference Serif', serif;
    font-weight: bold;
}

span.cyril {
    font-family: 'MS Reference Serif', serif;
    font-weight: bold;
}

span.year {
}

span.country {
}

span.profession {
}

span.description {
}

span.bib {
    font-size: 90%;
}

span.place {
    font-size: 90%;
}

span.rank {
    font-size: 90%;
}

span.area {
    font-size: 90%;
}

span.keyword {
    font-size: 90%;
}

span.remarks {
    font-size: 90%;
}

span.portrait {
    font-family: monospace;
}

span.update {
    font-family: monospace;
    font-style: italic;
    font-size: 80%;
}

span.confirm {
    font-family: monospace;
    font-style: italic;
    font-size: 80%;
}

span.todo {
    color: darkred;
}

span.todo_date {
    color: black;
    font-family: monospace;
    font-style: italic;
}

span.validation {
    color: darkred;
}

span.advice {
    font-size: 90%;
}

span.unconfirmed {
    color: red;
}

span.separator {
    font-size: 120%;
    color: green;
}

span.delimiter2 {
    color: green;
    font-weight: bold;
}

span.delimiter3 {
    color: green;
    font-weight: bold;
}

span.delimiter {
    font-size: 75%;
    color: green;
}

span.del {
    text-decoration: line-through;
    color: red;
    background: lightcyan;
}

span.ins {
    font-weight: bold;
    background: yellow;
}

ul, ol, dl {
    margin-left: 1em;
}

#bib dt {
    float: left;
    font-weight: bold;
}

#bib dd {
    margin-left: 4em;
}

@media print, screen and (max-width: 1080px) {
    body {
    }
    td, th {
    }
    table.record_menu td {
        font-size: 80%;
    }
    td.record_field {
        font-size: 80%;
    }
}

@media print, screen and (max-width: 500px) {
    body {
        font-size: 15px;
    }
    td, th {
        font-size: 15px;
    }
    table.record_menu td {
        font-size: 10px;
    }
    td.record_field {
        font-size: 10px;
        white-space: normal;
        width: 4em;
    }
}
