/**
 * 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(phpwiki-common.css);

/**
 * General
 */
img {
    border: 0;
}

form {
    margin: 0;
}

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

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

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

/**
 * Wiki
 */
body {
    background: #fffff0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 85%; /* The default is too large. But enlarge monospace below */
    margin: 1.5ex 1em;
}

div.wikitext hr {
    height: 1px;
}

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

/**
 * PageTypes
 */
/* Main wiki text box */
div.wikitext {
    margin-top: 1ex;
    margin-bottom: 0.5ex;
    background-color: white;
    border-top: 1px #e8e6df solid;
    border-left: 1px #e8e6df solid;
    border-bottom: 1px #d2d2d2 solid;
    border-right: 1px #b2b2b2 solid;
    padding-left: 0.8em;
    padding-right: 0.8em;
    padding-top: 0.5ex;
    padding-bottom: 0.5ex;
    clear: both;
}

/* for the login template */
div#browse {
    margin-top: 1px;
    margin-bottom: 1px;
}

input#inp-openid {
    background: url('images/openid.png') bottom left no-repeat;
    padding-left: 18px !important;
}

/*
** RecentChanges
*/
.pageinfo-majoredit {
    font-weight: bold;
}

.wiki-summary {
    font-size: 94%;
    font-style: italic;
}

/* 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;
}

/**
 * Wiki Forms
 *
 * The div inside the wikiadmin upload form does not
 * have a class yet, so it must be referenced indirectly
 */
div.wikiaction {
    background-color: #eee;
}

form.wikiadmin div {
    background-color: #fee;
}

form.wikiformrich {
    background-color: #eee;
}

/**
 * Link styles
 */
.wiki, .named-wiki {
    text-decoration: none;
    font-weight: bold;
}

/* Action buttons */
a.wikiaction, a.wikiadmin, a.wiki-rc-action, a.wikiunsafe,
input.wikiaction, input.button, input.wikiadmin {
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

a.wikiaction, a.wikiaction:visited, input.wikiaction, input.button {
    background-color: #ddd;
}

.wikiunsafe {
    background-color: #fcc;
}

a.wikiadmin, a.wikiadmin:visited, input.wikiadmin {
    background-color: #fdd;
}

/* Unknown links */
.wikiunknown, .named-wikiunknown {
    font-weight: normal;
    font-size: 100%;
}

/* QuestionMark #600 */
.wikiunknown a, .named-wikiunknown a {
    color: #447;
    background-color: #eee;
    text-decoration: none;
    font-weight: normal;
    font-size: smaller;
}

/* Backlinks */
.backlinks {
    text-decoration: underline;
    color: #006;
}

h1 .backlinks {
    text-decoration: underline;
}

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

.interwiki {
    text-decoration: none;
}

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

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

/* image buttons */
a.wikibutton, a.wikibutton:visited, input.wikibutton {
    background-color: white;
}

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

h1 {
    margin: 0;
    font-size: 140%
}

/**
 * Tables
 */
table, td {
    font-family: Arial, Helvetica, sans-serif;
}

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

.pagelist {
    font-size: smaller;
}

.pagelist thead td {
    background: #e8e8e8;
    text-decoration: none;
    font-weight: bold;
}

.pagelist thead td u {
    text-decoration: none;
}

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

.pagelist tr.oddrow {
    background: white;
}

th.gridbutton {
    background-color: ThreeDLightShadow;
    color: black;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: small;
    font-weight: normal;
    white-space: nowrap;
    margin: 5px 0;
    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, #signin {
    font-family: Arial, Helvetica, sans-serif;
}

.toolbar, .edit-toolbar {
    padding: 0;
    margin: 0;
}

img.toolbar:hover {
    cursor: pointer;
}

.edit-toolbar img, .edit-toolbar input {
    background-color: #fff;
    border: 1px solid ButtonFace;
}

#navbuttons {
    padding-right: 4em; /* wrap around logo */
    padding-bottom: 1ex; /* space for h1 */
}

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

#logo img {
    float: right;
    /* "paper" borders */
    border-top: 1px #e8e6df solid;
    border-left: 1px #e8e6df solid;
    border-bottom: 1px #d2d2d2 solid;
    border-right: 1px #b2b2b2 solid;
}

/**
 * Edit Page & View Source
 */

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

#search-replace {
    margin-top: 1ex;
    text-align: left;
    font-size: smaller;
}

#toolbar {
    padding: 0;
}

/**
 * Search
 */
#searchholder {
    display: inline;
}

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

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

/* 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 {
    border: 1px solid gray;
    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 {
    background: white;
    border: medium solid #fff8dc; /* darker ivory */
    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 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;
    background: white;
    margin: 0.5ex 0.5em;
    padding: 1px;
    /* For Mozilla */
    empty-cells: hide;
}

/* cells */
table.cal td {
    background: white;
    text-align: right;
}

/* Month-name header */
table.cal-header {
    font-size: larger;
}

table.cal-header tr, table.cal-header td {
    text-align: center;
}

.cal-arrow {
    font-weight: bold;
    text-decoration: none;
}

/* Day-names header */
.cal-dayname td {
    text-align: center;
    font-size: smaller;
    text-decoration: underline;
}

/* Individual days */
a.cal-hide {
    text-decoration: none;
}

/* Today */
/* cell */
table.cal td.cal-today {
    margin: 1px;
    border: 1px solid gray;
}

/**
 * Diff Output
 */
/* main box */
.diff {
    margin-top: 1ex;
    margin-bottom: 0.5ex;
    background: white;
    color: black;
    border-top: 1px solid #494f5d;
    border-left: 1px solid #494f5d;
    border-bottom: 1px solid #c6d2de;
    border-right: 1px solid #c6d2de;
    padding: 0;
    clear: both;
}

.diff .block {
    background: #ddd;
    padding-left: 1em;
}

/* individual blocks */
.diff .context {
    background: white;
    border: none;
}

/* entire difftextblock */
.difftext {
    margin-top: 0;
    margin-bottom: 0;
    background: white;
    /* "paper" borders */
    border-top: 1px #e8e6df solid;
    border-left: 1px #e8e6df solid;
    border-bottom: 1px #d2d2d2 solid;
    border-right: 1px #b2b2b2 solid;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    clear: both;
}

/* + - line prefix */
.diff .block tt {
    font-weight: normal;
    font-family: monospace;
    color: black;
    margin-left: 0;
    border: none;
}

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

/* blocks containing deleted or added words */
.diff .original, .diff .deleted,
.diff .final, .diff .added {
    background: white;
}

/* blocks containing deleted words */
.diff .original, .diff .deleted {
    background: #fcc;
    border: none;
}

/* blocks containing added words */
.diff .final, .diff .added {
    background: #cfc;
    border: none;
}

/* deleted words */
.diff del {
    background: #f99;
}

/* added words */
.diff ins {
    background: #9f9;
}

/**
 * PageHistory, Info
 */
td.pageinfo {
    font-weight: bold;
}

.pageinfo-minoredit, .pageinfo-authorid {
    font-size: smaller;
    font-style: oblique;
}

/**
 * Other
 */
.printer, .no-css {
    display: none;
}

/* Debug */
.debug {
    color: black;
    background: white;
    font-family: monospace;
    font-size: smaller;
    margin: 1ex 0;
    padding: 0.5ex 0.5em;
    border: medium solid #fff8dc; /* darker ivory */
}

/* Hints */
.hint {
    color: black;
    background: #eeeeee;
    font-style: italic;
    margin-left: 3em;
    padding: 0.5ex 0.5em;
    border: thin solid #aaaaaa;
}

span.hint {
    padding: 0;
}

/* Disabled plugins =================================================== */

.disabled-plugin {
    clear: both;
    margin: 1ex 0;
    padding: 0;
}

.disabled-plugin .title {
    color: #400;
    background-color: inherit;
    font-size: x-small;
    text-align: right;
    padding: 0 0.5em;
}

.disabled-plugin pre {
    color: black;
    background: #ddd;
    margin: 0;
    padding: 0.3ex 0.5em;
}

/*
 * "DL tables"
 */
.wiki-dl-table {
    border-collapse: collapse;
    border: 2px #444 solid;
}

.wiki-dl-table tr {
    border-top: 2px #444 solid;
    border-bottom: 2px #444 solid;
    border-left: none;
    border-right: none;
}

.wiki-dl-table th,
.wiki-dl-table td {
    padding: 0.25em 0.5em;
}

.wiki-dl-table th {
    vertical-align: top;
    text-align: right;
    border-right: 1px #444 solid;
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.wiki-dl-table td {
    border: none;
}

/*
 * "E-mail" style blockquote
 */
blockquote.mail-style-quote {
    border-left: medium #284 solid;
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
}

.mail-style-quote blockquote.mail-style-quote {
    margin-left: -0.6em;
}

/*
 * wikiblog
 */
div.wikiblog {
    margin: 1ex 2em;
    padding: 0 0;
}

div.wikiblog > div {
    margin: 0 0;
    padding: 0.5ex 0.5em;
}

div.wikiblog > div.wikiblog-footer {
    /* background-color: #eee; */
    padding: 0.2ex 0.5em;
}

h3.wikiblog-summary {
    font-size: medium;
    font-weight: bold;
    margin: 0 0 1ex 0;
}

table.wikiblog-form {
    width: auto;
    border-collapse: collapse;
    margin: 0.25em 0;
}

.wikiblog-form caption {
    caption-side: top;
    font-weight: bold;
    text-align: left;
    padding: 0.5ex 0.5em;
}

.wikiblog-form th {
    vertical-align: top;
    text-align: right;
    padding: 0 0 0.3em 0.5em;
}

.wikiblog-form td {
    padding: 0.25em 0.5em;
}

.wikiblog-form td.submit-button {
    padding: 0;
}

.wikiblog-form input[type=text],
.wikiblog-form textarea {
    margin: 0 0;
    width: 100%;
}

div.wikicomment div.wikicomment-footer {
    padding: 0.2ex 0.5em;
}

div.wikicomment div.wikicomment-footer .named-wiki {
    font-size: small;
}

table.interwiki-map {
    margin: 1em 2em;
}

.interwiki-map th {
    text-decoration: underline;
    text-align: left;
    padding-left: 1em;
}

.interwiki-map td.interwiki-url {
    padding-left: 2em;
}

.interwiki-map th.interwiki-url {
    padding-left: 3em;
}

/* postnuke css:*/
.gensmall {
    font-size: 10px
}

td.cat {
    font-weight: bold;
    letter-spacing: 1px;
    color: #000000;
    background: url(./images/cellpic1.png);
    height: 27px
}

/* Main table cell colours and backgrounds */
td.row1 {
    background: #eaedf4;
    color: #000000
}

td.row2 {
    background: #d9e2ec;
    color: #000000
}

td.row3 {
    background: #cad9ea;
    color: #000000
}

td.spacerow {
    background: #cad9ea;
    color: #000000
}

/* This is the outline round the main forum tables */
.forumline {
    background: #ffffff;
    color: #000000;
    border: 1px solid #006699
}

/* Sidebar */
.box {
    background: #ffffff;
    border: 1px solid silver
}

.box-title {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-weight: normal;
    background-color: #ccc;
    color: black;
    text-align: center;
    border: none;
    padding: 2px 0 2px 0;
}

.box-data {
    width: 160px;
    font-size: 9pt;
    font-weight: normal;
    border: none;
}

.box-data .wiki {
    font-weight: normal;
}

td.sidebar {
    border-spacing: 0;
    margin: 0;
}

/* BoxRight plugin ==================================================== */

div.boxright {
    background-color: #e9fbff;
    width: 200px;
    right: 10px;
    padding: 0.5em;
    float: right;
    border: thin solid #888888;
}

/* RssFeed */
div.rss {
    margin: 1em;
    padding: 1em;
    font-size: 0.9em;
    background-color: #eeeeee;
    border: thin dashed #aaa;
}

div.feed {
    color: #333;
    margin: -0.5em;
    margin-bottom: 0;
    padding: 0.3em;
    font-weight: bold;
    background-color: #f2f2f2;
    font-size: 1.2em;
}

div.itemdesc {
    padding-left: 1em;
}

div.rssitem {
    border-top: thin dashed #aaa;
}

a.rssicon {
    font-weight: normal;
    font-size: small;
    vertical-align: middle;
}

/* SqlResult */
table.sqlresult {
    border: 1px outset gray;
    background: white;
    margin: 0.5ex 0.5em;
    padding: 1px;
}

.sqlresult tr.evenrow {
    background: #eee;
}

.sqlresult tr.oddrow {
    background: white;
}

table.sqlresult td {
    margin: 1px;
    border: 1px solid gray;
}

/* TeX2png plugin ===================================================== */

img.tex {
    vertical-align: middle;
}

/* PhotoAlbum plugin ================================================== */

.boldsmall {
    font-weight: bold;
    font-size: 11px;
}

.wikiwyg_toolbar {
    background: #D3D3D3;
    border: 1px outset;
    letter-spacing: 0;
    padding: 2px;
}

span.wikiwyg_control_link a {
    padding-right: 8px;
}

.wikiwyg_button {
    background: #D3D3D3;
    border: 1px solid #D3D3D3;
    cursor: pointer;
    width: 20px;
    height: 20px;
    vertical-align: bottom;
}

.wikiwyg_button:hover {
    border: 1px outset;
}

.wikiwyg_button:active {
    border: 1px inset;
}

.wikiwyg_separator {
    background: #D3D3D3;
    border: 1px solid #D3D3D3;
    width: 9px;
    height: 20px;
    vertical-align: bottom;
}

.wikiwyg_selector {
    width: 70px;
}

.wikiwyg_wysiwyg table {
    border-collapse: collapse;
    margin-bottom: .2em;
}

.wikiwyg_wysiwyg table td {
    border: 1px;
    border-style: solid;
    padding: .2em;
    vertical-align: top;
}

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

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

input {
    margin: 0.1em;
}

input.numeric {
    text-align: right;
}

/**
 * Wiki Forms
 *
 * The div inside the wikiadmin upload form does not
 * have a class yet, so it must be referenced indirectly
 */
div.wikiaction, form.wikiadmin div {
    border-bottom: 1px solid #d8d8e7;
    border-right: 1px solid #d8d8e7;
    border-top: 1px solid #96a2ae;
    border-left: 1px solid #96a2ae;

    margin-top: 0.5ex;
    margin-bottom: 0.5ex;
    padding: 0.5ex 0.5em;
    display: table;
}

/* Add space between the input field and following buttons, but not after the last button. */
div.wikiaction input[type=text], div.wikiadmin input[type=text], form.wikiadmin input[type=file] {
    margin-right: 0.5em;
}

/**
 * Links
 */

/* Make wikiaction links look like buttons */
a.wikiaction, a.wikiadmin, a.wikiunsafe,
input.wikiaction, input.wikiadmin, input.wikiunsafe, input.button {
    color: black;
    border: 1px outset;
    padding: 0.05ex 0.25em 0.1ex 0.25em;
    height: auto;
    width: auto;
    /* Prevent buttons from overlapping when the toolbar is wrapped. */
    line-height: 2.6ex;
}

div#navbuttons, div#signin, div#actionbuttons {
    line-height: 3.0ex;
}

/* QuestionMark */
.wikiunknown a, .named-wikiunknown a {
    border-top: 1px solid #c6d2de;
    border-left: 1px solid #c6d2de;
    border-bottom: 1px solid #a2a2a2;
    border-right: 1px solid #a2a2a2;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 1px;
    margin-right: .15em;
}

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

/**
 * Edit Page & View Source
 */

/* http://universaleditbutton.org */
div#actionbuttons a#btn-edit {
    background: url('images/UEB16.png') bottom left no-repeat;
    padding-left: 20px !important;
    padding-right: 0.5em !important;
}

/* image buttons */
a.wikibutton, a.wikibutton:visited, input.wikibutton {
    background-color: white;
    border: 0;
}

/**
 * Diff Output
 */
.diff .prefix {
    position: relative;
    left: -1em;
}

/* deleted & added words */
.diff del, .diff ins {
    padding-left: 1px;
    padding-right: 1px;
}

#edit-public, h1.firstHeading-public, h1.firstHeading-rating-public {
    background-color: #ffce7b;
    border: 1px solid #ffa500;
}
