body { 
    margin: 0;
    padding: 0;
    border: 0;
    background: #c6c6c6;
}

img {
    border: 0;
}

.keep-together {
    white-space: nowrap;
}

.center {
    text-align: center;
}

.error {
    background: #fcc;
}

.warn {
    background: #ff8;
}

.columns {
    border: 0;
    border-collapse: collapse;
}

.column {
    text-align: left;
    vertical-align: top;
    padding-right: 3em;
}

.column h3 {
    margin: 0;
    font-family: sans-serif;
}

.column ul {
    margin-top: 0.25em;
    margin-bottom: 1em;
}

.text {
    font-family: Verdana, Arial, Sans-Serif;
}

#site-name, #meatball {
/*    background: #31607C; */
    background: #173455; 
    padding: 0.3em 0.3em 0em 0.8em;
    margin: 0;

    float: left;

    font-family: Papyrus, verdana, sans-serif;
    font-weight: bold;
    font-size: 0.8em;
}

a.site-name {
    color: white;
    text-decoration: none;
}

#meatball {
    text-transform: lowercase;
    letter-spacing: -0.05em;
}

#wiki-home a, #meatball a {
    text-decoration: none;
    color: white;
}

#meat {
    color: rgb(222, 94, 62);
}

#ball {
    color: rgb(255, 128, 78);
}

#meatballwiki {
    display: none;
}

#global-header {
    background: #173455;
    font-family: Tahoma, Helvetica, Verdana, Arial, Sans-Serif;
    padding: 0;
    margin: 0;
    border: solid red 0px;
    min-height: 1.5em;
}

#global-controls {
    display: table;
    margin-left: auto;
    padding: 0.125em; 
    font-size: 0.9em;
    color: white;
}

#global-controls a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: solid #173455 2px; 
    padding: 0 0.4em;
    white-space: nowrap;
    vertical-align: middle;
}

#global-controls a:hover {
    border: solid white 2px;
    background: #eee;
/*    color: #396D8C; */
    color: #173455;
}

#global-menu {
    padding: 2px 0 0 0;
    margin: 0;
    display: table-cell;
    vertical-align: middle; 
    text-transform: lowercase;
}

a#wiki-home {
}

a#wiki-recent-changes {
    color: rgb( 255, 128, 78 );
    font-weight: bold;
}

#search p {
    display: inline;
}

#search label {
    font-weight: bold;
    vertical-align: middle;
}

#search input {
    vertical-align: middle;
}

#search {
    padding: 0 0 0 0.5em;
    margin: 0;
    /* display: table-cell; */
}

#search form {
    margin: 0;
    display: inline;
}

#page-header {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    /* #ffecc3 is roughly the same colour as stripes.gif */
    background: #ffecc3 url(stripes.gif);
    background-position: bottom left;
    color: black;
}

#page-title {
    padding: 0;
    font-size: 2em;
    margin: 0 0.125em 0.125em 0.3em;
    display: inline;
}

p.timestamp {
    display: inline;
    margin: 0 0 0 0.25em;
    font-weight: bold;
    font-size: 0.8em;
}

p.aka {
    display: inline;
    margin: 0 0 0 0.25em;
}
span.aka {
    font-weight: bold;
}
p.tags {
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    padding: 0.25em 0 0 1em;
}
span.tags {
    font-weight: bold;
}

#page-menu {
    display: block;

    padding: 0;
    margin: 0;
    text-align: right;
    width: 100%;

    /* Force down into the drop shadow of #middle.
       The drop shadow is 7px high. The anchors have
       a padding-bottom: 2px so that glyphs below the
       baseline aren't clipped. The extra 1px is to
       account for rounding bugs at some font sizes
       that will cause the tabs to be 1 pixel too
       low. We account for that later by drawing a 
       white border in #middle-inside overtop the 
       overhung tabs.
    */
    position: relative;
    top: 8px; 
}

#page-menu a {
    /* On top of the relative position for the dropshadow,
       we need space for the hanging glyphs */
    position: relative;
    top: -0.15em;
    padding: 1px 0.25em 0.15em 0.25em;

    margin: 0 0.125em 0 0;

    border: solid #909C93 1px;
    border-bottom: none;

    font-family: Tahoma, Helvetica, Verdana, Arial, Sans-Serif;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
/*    color: #3C6577; */
    color: #2b4c75; 
}

#page-menu a.page-menu-selected {
    background: white;
}

#page-menu a#wiki-edit {
    border-bottom: none;
    color: #ff8050;
}

#page-menu a.page-menu-unselected {
    background: rgb(250,250,250) url(whitefade.gif);
    background-position: bottom left;
    background-repeat: repeat-x;
}

#page-menu a:hover {
    border: solid #909C93 1px;
    border-bottom: none;
    background: white;
}

/* Make selected tabs pop up a little */
p.tags { padding-bottom: 0.4em; }
#page-menu a.page-menu-selected, #page-menu a:hover {
    position: relative;
    top: -0.3em;
    padding-bottom: 0.3em;
}


#middle {
    width: 100%;
    padding-top: 7px;
    margin-top: 0;

    /* #ffecc3 is roughly the same colour as the stripes.gif */
    background: #ffecc3 url(stripesfade.gif);
    background-position: top left;
    background-repeat: repeat-x;
}

#middle-inside {
    display: table;
    background: white;
    width: 100%;
    margin: 0; 
    padding: 0;

    /* Firefox and IE have rounding bugs, so we overhang
       the tabs by 1px into the #middle on some font sizes.
       To clean this up, we draw a white border over top of
       them.
    */
    border-top: solid white 4px;
    position: relative;
    z-index: 2;
}

#middle-inside table {
   width: 100%;
   border: 0;
   padding: 0;
   margin: 0;
}

#wiki, #search_results {
    line-height: 1.25em;
    margin: 0;
    font-size: 1.1em;
    width: 100%;
    padding: 0.5em 1.8em;
}

#wiki {
    padding-left: 10%;
    padding-right: 10%;
}

#preview h1 {
    text-align: center;
    background: yellow;
}

#preview #wiki {
    display: block;
    padding: 0;
}

#wiki h1, #wiki h2, #wiki h3, #wiki h4, #wiki h5, #wiki h6 {
    margin-left: -5%;
    font-family: sans-serif;
}

#wiki hr {
   width: 110%;
   margin-left: -5%;
}

#comparison {
    color: black;
    padding: 0 0.5em 0 20px;
    margin: 0;
    font-family: Tahoma, Helvetica, Verdana, Arial, Sans-Serif;
    background: url(vertical-edge.gif);
    background-repeat: no-repeat;
}

#logo {
    text-align: center; 
    padding: 1em 0;
    border: 0;
}

#wiki {
    vertical-align: top;    
}

#comparison {
    vertical-align: top;
}

#comparison h3 {
    font-size: 1.1em;
    margin: 0 0 0.3em 0;
    padding: 0;
    white-space: nowrap;
}

#comparison p {
    padding: 0;
    margin: 0.3em 0 1em;
}

#comparison-widget {
    margin-bottom: 1em;
}

#footer {
    width: 100%;
    background: #c6c6c6 url(greyfade.gif);
    background-position: top left;
    background-repeat: repeat-x;
}

#copyright {
    float: right;
    margin: 1em;
    font-family: sans-serif;
    text-align: center;
    width: 30%;
}

#footer hr {
    clear: right;
}

#contributors, #tagged, #contributions {
    padding: 0.5em;
    color: black;
}

#contributors {
    font-family: sans-serif;
    font-weight: bold;
}

span.contributors { 
    font-weight: normal; 
}

#contributors .anonymous {
    font-style: italic;
}

#tagged h2, #contributions h2 {
    text-align: left;
    font-size: 1.2em;    
    font-family: sans-serif;
}

#editbox {
    vertical-align: top;
    padding: 0.5em 5%;
    width: 100%;
}

#formatting-rules {
    vertical-align: top;
    font-family: Tahoma, Helvetica, Verdana, Arial, Sans-Serif;
    background: url(vertical-edge.gif);
    background-repeat: no-repeat;
    padding: 0 0.5em 0 20px;
}

.inserted {
    background-color : #8F8;
}

.deleted {
    background-color : #F88;
}

.changed {
    background-color : #FF8;
}

#diff table {
    border-collapse: collapse;
    font-family: sans-serif;
    white-space: normal;
}

#diff table td {
    padding: 0.5em;
}

#page-list, #history, #recent-changes {
    padding: 0.5em 5%;
}

#history form {
}

#change-table {
    border-collapse: collapse;
}

#change-table th {
    font-family: Tahoma, Helvetica, Verdana, Arial, Sans-Serif;
    font-size: 1.1em;
    background: #ffefd5;
    color: black;
    border-top: solid orange 1px;
    border-bottom: solid orange 1px;
}

tr.change-odd td {
    background: #cef;
}

tr.change-even td {
    background: lightyellow;
}

tr.change-odd td, tr.change-even td {
    border-bottom: solid orange 1px;
    border-top: solid orange 1px;
}

#change-table td, #change-table th {
    border-left: dashed orange 1px;
    text-align: center;
    padding: 0.125em 0.25em;
}

#change-table td.change-radio, #change-table th.change-radio {
    border-left: solid orange 1px;
    border-right: solid orange 1px;
}

#change-table td.change-radio-clear {
    border-top: solid orange 1px;
}

#change-table td.change-page, #change-table td.change-summary {
    padding-left: 1.5em;
    padding-right: 1.5em;
    text-align: left;
}

#change-table td.change-time, #change-table th.change-time {
    border-left: solid orange 1px;
    white-space: nowrap;
}

#change-table td.change-summary, #change-table th.change-summary {
    border-right: solid orange 1px;
}

#change-table td.change-summary {
    text-align: left;
}

#change-table tr.change-date {
    border-bottom: solid orange 1px;
}

#change-table tr.change-date td {
    text-align: left;
    border-left: none;
}

h2.change-date {
    font-family: sans-serif;
    font-size: 1.1em;
    padding: 0;
    margin: 1em 0 0 0;

    position: relative;
    left: -3%;
}

#bibliography dd {
    margin-bottom: 1em;
}

.no-such-page {
    text-decoration: none;
    border-bottom: dashed red 2px;
    color: red;
}

.sister-page {
    color: green;
}

a.edit-bibtex-link {
    font-style: italic;
    font-size: 0.8em;
}

#change-urls {
    background: #fcc;
    font-weight: bold;
    padding: 1em;
    border: solid red 0.25em;
    margin-top: 1em;
    margin-bottom: 1em;
    font-family: sans-serif;
}

#change-urls em {
    background: #ffc;
    padding: 0.125em;
    font-style: normal;
}

.edit-field {
    font-weight: bold;
}

p.edit-field {
    margin-bottom: 0;
    padding-bottom: 0;
}

.edit-field-description {
    font-size: 0.8em;
    font-style: italic;    
    font-weight: normal;
}

p.edit-field-description {
    padding-top: 0.5em;
    margin-top: 0;
    margin-left: 2em;
}

#edit-signature.warn {
    padding: 0.20em
}

#edit-signature.warn input {
    background: #fffacd;
}

div.editbibtex {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 1em;
}

div.editbibtex p.updated {
    font-size: 2em;
    font-family: sans-serif;
    font-weight: bold;
    margin: 0.5em;
    text-align: center;
}

table.editbibtex {
    border-collapse: collapse;
}

table.editbibtex tr td.label {
    width: 10%;
    font-family: sans-serif;
    font-weight: bold;
    padding: 0.5em 1em 0.5em 0.5em;
    vertical-align: top;
    text-align: right;
}

table.editbibtex tr td.field {
    padding: 0.5em 0 0.5em 1em;
    vertical-align: top;
    text-align: left;
}

table.editbibtex tr td.label span.required {
    font-family: sans-serif;
    font-weight: normal;
    font-style: italic;
    font-size: 0.75em;
    color: red;
}

div.field_description {
    padding-top: 0.5em;
    margin-left: 2em;
    font-size: 0.8em;
    font-style: italic;    
}

table.editbibtex tr td.field div.field_description blockquote {
    font-style: normal;
    margin-top: 0.5em;
}

table.editbibtex tr td.field input.text,
table.editbibtex tr td.field textarea { 
    width: 80%;
}

table.editbibtex tr td.field textarea#bulk_bibtex {
    height: 20em;
}

table.editbibtex tr td.field textarea { 
    height: 6em;
}

table.editbibtex tr td.field input[type="submit"] {
    vertical-align: top;
}

table.editbibtex tr {
    background: #cef;
}

table.editbibtex tr.full_reference {
    background: #FFFACD;
}

table.editbibtex tr.bibtex {
    background: #FFEFD5;
    border-top: solid #ccc 2px;
    border-bottom: solid #ccc 2px;
}

table.editbibtex tr.author,
table.editbibtex tr.year,
table.editbibtex tr.bibtitle {
    background: #fdd;
}

table.editbibtex tr.bibtype {
    background: #fdf;
    border-top: solid #ccc 2px;
    border-bottom: solid #ccc 2px;
    font-family: sans-serif;
}

table.editbibtex tr.buttons {
    background: #dfd;
    border-top: solid #ccc 2px;
}

table.editbibtex tr.buttons input {
    font-size: 2em;
    font-weight: bold;
}

div#bibtex {
    margin-left: 5%;
    margin-right: 5%;
}

div#references h2 {
    display: inline;
}

.as-bibtex {
    display: inline;
    font-size: 0.75em;
    vertical-align: top;
    white-space: nowrap;
    padding-left: 1em;
}

dt.reference {
    margin-top: 0.5em;
}

dd.reference {
    margin-bottom: 0.5em;
}

#homepage_search {
    background: #FFFACD;
    padding: 1em 2em;
    text-align: left;
    margin: 0;
}

#homepage_search ul {
    margin-bottom: 0;
}

#homepage_search input {
    font-size: 1.25em;
    vertical-align: middle;
}

#homepage_search table {
    width: 100%;
}

#homepage_search table td {
    width: 100%;
    vertical-align: middle;
}

#homepage_search table td input#query {
    width: 95%;
}

dd + dt.search_result {
    padding-top: 1em;
}

.search_result_part {
    font-weight: bold;
    font-family: sans-serif;
    color: #833;
    font-size: 80%;
}

.search_result_context_pre, .search_result_context_match, .search_result_context_post {
    font-style: italic;
}

.search_result_context_match {
    font-weight: bold;
}

#jump_to_page, #create_page {
    font-weight: bold;
    font-size: 1.25em;
    background: #cef;
    padding: 0.5em 1.6em;
    margin: 0;
    font-family: sans-serif;
}
