/**
 * This incarnation of this stylesheet is a complete rewrite from the
 * ground up.
 *
 * Mozilla's "DOM Inspector" Sidebar was an invaluable troubleshooting
 * tool for mapping the more complex CSS node selectors, such as those
 * used to reference the various CalendarPlugin elements.
 */

@import url(../default/phpwiki-common.css);

/**
 * General
 */
img {
    border: 0;
    vertical-align: baseline;
}

form {
    margin: 0;
}

input {
    margin: 0.1em;
}

input.numeric {
    text-align: right;
}

table {
    border-spacing: 1px;
    /* For Mozilla */
    empty-cells: show;
}

caption {
    caption-side: top;
    text-align: left;
    margin-bottom: .5ex;
}

/* --------------------------------------------------------------- */

/**
 * Wiki
 */

/* Main wiki text box */
body {
    color: black;
    background-color: white;
    background-image: url("images/uhhbackground.jpg");
    background-repeat: repeat;
    font-family: Arial, Helvetica, sans-serif;
    margin: 1ex 0.5em;
}

body p {
    margin-left: 1em;
}

#logo img {
    border: 1px outset gray;
    margin-left: 1em;
    margin-bottom: 1ex;
}

img#signature {
    background-color: white;
    border: 1px outset gray;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    padding-bottom: 14px;
}

div.wikitext {
    margin-top: 1ex;
    margin-bottom: 0.5ex;
    padding-left: 0.8em;
    padding-right: 0.8em;
    padding-top: 0.5ex;
    padding-bottom: 0.5ex;
    clear: both;
}

div.wikitext hr {
    height: 1px;
}

div.wikitext pre {
    font-family: monospace;
}

/* Mozilla RecentChanges Sidebar */
body.sidebar {
    font-size: smaller;
    margin: 0.5em;
}

body.sidebar div.wikitext {
    padding: 0.5em;
}

body.sidebar div.wikitext ul {
    padding-left: 1em;
}

body.sidebar h2 {
    margin-top: 0;
}

/**
 * Link styles
 */
.wiki, .named-wiki {
    font-weight: bold;
    color: #87785c;
}

.wiki {
    text-decoration: none;
}

.named-wiki {
    text-decoration: underline;
}

/**
 * wikiaction, wikiadmin, wikiunsafe:
 */
.wikiaction, .wikiadmin, .wiki-rc-action, .backlinks {
    text-decoration: none;
}

.wikiaction, .wikiadmin {
    font-weight: bold;
}

.wikiaction, .wikiaction table, span.wikiaction {
    color: #4d5a6b;
}

.wikiadmin, .wikiadmin table {
    color: #ff7e00;
}

.wikiunsafe {
}

.backlinks {
    color: #1d4fc0;
}

h1 .backlinks {
    text-decoration: underline;
}

/* Unknown links */
.wikiunknown a, .named-wikiunknown a, .wikiunknown u {
    color: #a6977a;
}

/* Interwiki links */
.wikipage {
    font-weight: bold;
}

.interwiki {
    text-decoration: none;
}

.interwiki, i.interwiki .wikipage, em .interwiki .wikipage {
    font-style: oblique;
}

.interwiki .wikipage, i .interwiki, em .interwiki {
    font-style: normal;
}

/**
 * headings
 */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    margin: 0;
}

/**
 * tables
 */
caption {
    font-family: Arial, Helvetica, sans-serif;
}

.pagelist tr.evenrow {
    background-color: #eee;
}

.pagelist tr.oddrow {
    background-color: white;
}

th.gridbutton {
    background-color: ThreeDLightShadow;
    color: black;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: small;
    font-weight: normal;
    margin: 5px 0;
    white-space: nowrap;
    max-height: 24px;
    padding: 5px 0 5px 0;
    border-width: 1px;
    border-style: solid;
    border-color: ThreeDHighlight ThreeDDarkShadow ThreeDDarkShadow ThreeDHighlight;
}

input.gridbutton, a.gridbutton, a:hover.gridbutton, a:visited.gridbutton {
    text-decoration: none;
    font-size: small;
    font-weight: normal;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    background-color: ThreeDLightShadow;
    color: black;
}

/**
 * Toolbar
 */
.toolbar, input.button {
    font-family: Arial, Helvetica, sans-serif;
}

.toolbar {
    padding: 0;
    margin: 0;
}

img.toolbar:hover {
    cursor: pointer;
}

/* Prevent buttons from overlapping when wrapped */
#navbar, #actionbar {
    line-height: 140%;
}

.editdate {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 0.25ex;
}

/**
 * Edit Page & View Source
 */

/* Make the textarea the full page width */
.wikiedit {
    width: 100%;
    margin-bottom: 0.5ex;
    margin-top: 0.5ex;
    padding: 2px;
}

input.button {
    font-family: Arial, Helvetica, sans-serif;
}

/* IncludePage plugin ================================================= */

.transclusion-title {
    text-align: right;
    font-style: oblique;
    font-size: smaller;
    text-decoration: underline;
    margin-bottom: 0.25ex;
    margin-right: 0.25em;
}

.transclusion, .wiki-edithelp {
    font-size: smaller;
}

.transclusion {
    background: inherit;
    border: 1px dotted #a6977a;
    padding-left: 0.8em;
    padding-right: 0.8em;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: 0.25em;
    margin-right: 0.25em;
    margin-bottom: 0.1ex;
}

.wiki-edithelp {
    border: medium solid #d8caae;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.75ex;
    padding-bottom: 0.75ex;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.wiki-edithelp .wiki {
    color: #87785c;
}

.wiki-edithelp p {
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.5ex;
    padding-bottom: 0.5ex;
    margin: 0;
}

/* Calendar plugin ==================================================== */

table.cal {
    border: 1px outset gray;
    margin: 0.5ex 0.5em;
    padding: 1px;
    /* For Mozilla */
    empty-cells: hide;
}

table.cal table.cal-header td {
    padding-top: 110px;
}

table.cal thead tr:first-child {
    background-image: url("images/pictures/SteamVolcanoDusk.jpg");
    background-repeat: no-repeat;
    background-position: center;
    font-size: larger;
}

/* Month-name & arrows cells */
table.cal table.cal-header td {
    text-align: center;
    color: white;
    background-color: transparent;
    border: 0;
}

/* arrow text */
.cal-arrow {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* Day-names header */
table.cal tr .cal-dayname {
    background: inherit;
}

.cal-dayname td {
    text-align: center;
    font-size: smaller;
    text-decoration: none;
    color: black;
    padding-bottom: 0.5ex;
}

/* Individual days */
/* cells */
table.cal tbody td {
    border: 0.5pt solid #ddd;
    background-color: white;
    text-align: right;
}

/* text */
a.cal-hide {
    text-decoration: none;
    color: black;
    font-weight: normal;
}

/* Today */
/* cell */
table.cal td.cal-today {
    margin: 1px;
    background-color: white;
    border: 0.5pt solid black;
}

/* text */
table.cal td.cal-today a {
    color: blue;
}

/* Day with a data page */
/* cell */
table.cal td.cal-day {
    margin: 1px;
    background-color: white;
    border: 0.5pt solid black;
}

/* text */
table.cal td.cal-day a {
    color: red;
    text-decoration: none;
}

/**
 * Diff Output
 */

/* main box */
.diff .block {
    background-color: #ccc;
    padding: 0.5ex 0.5em;
    margin: 0.5ex 0;
}

/* individual lines */
.diff .context {
    background-color: white;
}

/* + - line prefix */
.diff .block tt {
    font-weight: bold;
    font-family: monospace;
    margin-left: -.6em;
    color: black;
}

.diff del, .diff ins {
    font-weight: bold;
    text-decoration: none;
}

.diff .original, .diff .deleted {
    background-color: #fcc;
}

.diff .final, .diff .added {
    background-color: #cfc;
}

.diff del {
    background-color: #f99;
}

.diff ins {
    background-color: #9f9;
}

/**
 * Other
 */
.printer {
    display: none;
}

div.error {
    color: black;
    border: medium solid #d8caae;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 0.8em;
    padding-right: 0.8em;
    padding-top: 0.8ex;
    padding-bottom: 0;
    font-size: smaller;
    clear: both;
}

/* Debug */
.debug {
    color: black;
    font-family: monospace;
    margin: 1ex 0;
    padding: 0.5ex 0.5em;
    border: medium solid #d8caae;
    background-image: url("images/tchecker-sand.png");
    background-repeat: repeat;
}

/**
 * Search Results
 */
.search-context {
    background-color: white;
    font-style: oblique;
}

.search-term {
    background-color: yellow;
    font-weight: normal;
}

/* Link icons */
img.linkicon {
    vertical-align: middle;
}

img.inlineimage {
    display: inline;
    vertical-align: middle;
}

div.wikitext {
    width: auto;
    background-image: url("images/tchecker-white.png");
    background-repeat: repeat;
}

.wiki-edithelp {
    background-image: url("images/tchecker-sand.png");
    background-repeat: repeat;
}

.wiki-edithelp p {
    background-image: url("images/tchecker-white.png");
    background-repeat: repeat;
}

/**
 * Diff Output
 */
.diff .block div {
    position: relative;
    padding-left: 1.5em;
}

.diff .prefix {
    position: absolute;
    left: 0.5em;
    top: 0;
}
