/** Common pollwiki styles for all users, all skins.  This style sheet is pulled into the
  * wiki via page MediaWiki:Common.css.  Skin-specific rules may be included by using the
  * separate style sheets (e.g. pollwikiVector.css), or a class selector of the form
  * "body.skin-SKIN".
  */
@import '../../code/votorola/_/style/list-tree.css';
@import '../../code/votorola/a/web/context/count/WC_DivisionSmallMap.css';


/** - allpages -------------------------
  */
table .allpagesredirect a /* table needed to make it specific enough to override a
  sporadic failure in Firefox (16), where Firebug claims colour is set as below, but
  actually it's not */
{
    color: #888;
}



/** - bibliography ---------------------
  */
div.bibliography
{
    margin: 0.4em 0 0.5em 1.5em; /* TRBL */
}


div.bibliography p
{
    margin: 0;
    text-indent: -1.5em;
}


div.bibliography p span:first-child
{
    margin-right: 0.8em;
}



/** - blueprint ------------------------
  *
  * Used in Metagov overplan drafts.  http://metagovernment.org/wiki/Overplan
  */
div.blueprint
{
    margin: 1em 0 1em 0; /* TRBL */
}


div.blueprint.floatLeftTOC /* floating adjacent to the table of contents */
{
    float: left;
    margin-top: 0;
}


div.blueprint pre
{
    background-color: #303030;
    border: none;
    color: #c9c9c9;
    margin: 0;
}


div.blueprint pre code /* for common steps, e.g. those copied from abstract overplans */
{
    background-color: inherit;
    color: #B77;
}



/** - context-float --------------------
  */
div.context-float
{
    float: right;
    margin: -0.5em 0 0.5em 0.5em; /* TRBL.  T negative to occupy some of the gap padding,
      per pollwiki.css, div.poll-summary */
    text-align: right;

/* in case it sticks out the bottom of div.poll-summary:
   - - - - - - - - - - - - - - - - - - - - - - - - - - - */
    background-color: #EEE; /* same as div.poll-summary */

    padding-left: 1.2em; /* pad where div.poll-summary, ul.actions, list-style-images
      stick out to the left [though these are all gone now].  Pad instead of margin else
      it looks funny when the float sticks out the bottom of div.poll-summary */

 /* margin-right: -1em;
    padding-right: 1em; *//* fill out to right content edge.  But this enlarges content
      and forces a horizontal scroll bar */

    padding-bottom: 0.2em; /* add a little padding at expense of margin */
    margin-bottom: 0.3em;
}



/** - dLinks ---------------------------
  *
  * Discussion links.
  */
.dLinks.plainlinks span a.external /* error-like by default, indicates need to specify dud|nodud */
{
    color: #b00;
}


.dLinks.plainlinks span.dud a.external /* no actual discussion there */
{
    color: #888;
}


.dLinks.plainlinks span.nodud a.external /* actual discussion there */
{
    color: #00b;
}



/** - divisional-context-map -----------
  */
.divisional-context-map
{
    margin-top: 0;
}



/** - figure ---------------------------
  */
table.figure
{
    border-collapse: collapse;
    margin: 1.5em auto 1.5em auto;
}


table.figure caption
{
    caption-side: bottom;
    text-align: left;
    margin-top: 0.5em;
}


    table.figure tr.caption th /* top caption, e.g. when two are needed; then must set table width */
    {
        padding-bottom: 0.5em;
        font-weight: normal;
        text-align: left;
    }


    table.figure th.caption /* in lieu of caption-side right or left, which only Firefox obeys */
    {
        vertical-align: top;
        white-space: nowrap;
    }


    table.figure th.caption.right /* when a little padding is needed */
    {
        padding-left: 0.5em;
        text-align: right;
    }
    table.figure th.caption.left
    {
        padding-right: 0.5em;
        text-align: left;
    }


    table.figure caption, table.figure th.caption
    {
        font-weight: normal;
    }


table.figure caption strong, table.figure tr.caption th strong,
table.figure caption b,      table.figure tr.caption th b
{
    margin-left: 0.3em;
}


table.figure td, table.figure th
{
    padding: 0;
}



/** - figure - (bordered) --------------
  */
table.figure.bordered
{
    border: thick solid #ddd;
}


table.figure.bordered td
{
    padding: 0.2em;
}



/** - figure - (right) -----------------
  */
table.figure.right
{
    float: right;
    margin-left: 1.5em;
    margin-right: 0;
}


table.figure.right caption
{
    text-align: center;
}



/** - indent ---------------------------
  */
.indent
{
    margin-left: 10mm;
}


.indent.mirror
{
    margin-right: 10mm;
}



/** - issueTint ------------------------
  */
.issueTint
{
    background-color: #DDD;
}


.issueTint a
{
    color: #000;
}



/** - issueTint (office) ---------------
  */
.issueTint.Assembly_seat
{
    background-color: #F2E4CD;
}


.issueTint.Executive_office
{
    background-color: #FAD0D0;
}



/** - issueTint (norm) -----------------
  */
.issueTint.Law
{
    background-color: #D4D0F8;
}


.issueTint.Plan
{
    background-color: #CDE4F2;
}


.issueTint.Policy
{
    background-color: #D0F0E0;
}



/** - javaProperties -------------------
  */
div.javaProperties
{
    margin-top: 1.5em;
}


div.javaProperties.co
{
    font-family: monospace;
    line-height: 1.1em;
    white-space: pre;
}


div.javaProperties.co h2, div.javaProperties.co h3, div.javaProperties.co h4
{
    display: none;
}


div.javaProperties.vu div.g
{
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}


div.javaProperties.vu div.key
{
    margin-left: 1em;
}


div.javaProperties.vu div.key span.talk
{
    font-size: 0.8em;
    margin-left: 0.6em;
}


div.javaProperties.vu ul
{
    margin: 0;
    margin-left: 4em;
}


div.javaProperties.vu ul li
{
    margin: 0;
}


div.javaProperties.vu ul li.default
{
    color: #AAA;
}



/** - LanguageLinks --------------------
  *
  * Modified from http://www.mediawiki.org/w/index.php?title=MediaWiki:Common.css&oldid=269610
  */
.LanguageLinks
{
    margin-top: 0.5em;
    margin-bottom: 1em;
}


.LanguageLinks table
{
    clear: both;
    border-collapse: collapse;
    font-size: 0.9em;
    width: 100%;
}


.LanguageLinks table td
{
    background-color: #F6F9ED;
    border: 3px solid #DDD;
    padding: 0 0.2em 0.05em 0.4em; /* TRBL */
    vertical-align: baseline;
}


.LanguageLinks table td.title
{
    background-color: #EEF3E2;
    padding-left: 0.2em;
    padding-right: 0.4em;
    white-space: nowrap;
    width: 10px; /* squeeze to minimum */
}


.LanguageLinks span
{
    white-space: nowrap;
}



/** - legend ---------------------------
  */
table.legend
{
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}


    table.legend table.legend
    {
        margin-left: 1em;
        margin-top: 0;
        margin-bottom: 0;
    }


table.legend td, table.legend th
{
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    vertical-align: baseline;
}


    table.legend table.legend td, table.legend table.legend th
    {
        line-height: normal; /* defeat any skin setting, such as Vector's 1.5em */
        padding-top: 0;
        padding-bottom: 0;
    }


table.legend td
{
    padding-left: 0.5em;
    padding-right: 0;
}


table.legend th
{
    font-weight: normal;
    line-height: normal;
    padding-left: 0;
    padding-right: 0.5em;
    white-space: nowrap;
}


table.legend th span
{
    color: #999;
}



/** - legend - (bordered) --------------
  *
  * Set the 'bordered' class either on the table element, or the individual tr element.
  */
table.legend.bordered
{
 /* border: hidden; *//* causes side borders (IE 8), so instead use tr:first-child rule, below */
}


table.legend.bordered td
{
    border-top: thin solid #b0b0b0;
}
table.legend.bordered tr:first-child td
{
    border-top: none;
}


    table.legend.bordered table.legend td
    {
        border: none;
    }


table.legend tr.bordered td, table.legend tr.bordered th
{
    border-top: thin dotted #909090;
}


    table.legend tr.bordered table.legend td, table.legend tr.bordered table.legend th
    {
        border: none;
    }



/** - map-icon-flow --------------------
  */
.map-icon-flow
{
    float: left;
    margin: 1em; margin-right: 0.5em;
}


    .map-icon-flow a img
    {
        border: none;
    }


    .map-icon-flow caption
    {
        font-weight: bold;
        padding-right: 1em;
    }


    .map-icon-flow caption a
    {
        color: #000;
    }



/** - note -----------------------------
  */
caption span.note
{
    font-size: 0.85em;
    margin-left: 0.6em;
}



/** - overplan -------------------------
  *
  * Used for Metagov overplan tables.  http://metagovernment.org/wiki/Overplan
  */
table.overplan.plan, table.overplan.soc
{
    border-collapse: collapse;
}


table.overplan.plan th
{
    border-bottom: thin solid #000;
}


/* but this is discouraging to new overplans, as most of them are abstract
table.overplan.plan tr.a, table.overplan.plan tr.a a
{
    color: #808080;
}
*/


table.overplan.soc td, table.overplan.soc th
{
    padding: 0 0.5em 0 0.5em; /* TRBL */
}


table.overplan.soc th
{
    border-bottom: thin solid #000;
    text-align: left;
}


table.overplan.soc sup.reference
{
    vertical-align: baseline;
}


table.overplan.soc sup.reference a
{
    color: #808080;
}


table.overplan.soc.des a.external
{
    color: #000;
}


table.overplan.soc.person i
{
    color: #808080;
    font-style: normal;
}



/** - p --------------------------------
  */
p.in
{
    text-indent: 1.5em;
}



/** - personal URLs (p-personal) -------
  */
div#p-personal li#pt-mytalk
{
    display: none; /* not needed */
}


div#p-personal li#pt-mycontris
{
    display: none; /* not needed */
}



/** - poll-summary ---------------------
  */
div.poll-summary
{
    background-color: #EEE;

 /* margin-left: -1em;
    padding-left: 1em; *//* leave as is, looks nice with <li> icons */

 /* margin-right: -1em;
    padding-right: 1em; *//* fill out to right content edge.  But this enlarges content
      and forces a horizontal scroll bar */

    margin-top: -0.8em; /* occupy most of the top gap */
    padding-top: 0.8em;

    margin-bottom: 1em;
    padding-bottom: 0.5em;
}



/** - poll-summary - table.indent ------
  */
div.poll-summary table.indent
{
    background-color: transparent;
    border-collapse: collapse;
    border-top: thin solid #A0A0A0;
    border-bottom: thin solid #A0A0A0;
    font-size: 0.9em;
    margin-top: 1em;
    margin-bottom: 1em;
}


div.poll-summary table.indent td, div.poll-summary table.indent th
{
    padding: 0.1em 0 0.1em 0; /* TRBL */
    vertical-align: baseline;
}


    div.poll-summary table.indent td a, div.poll-summary table.indent th a
    {
        color: #000;
    }


    div.poll-summary table.indent td a:hover, div.poll-summary table.indent th a:hover
    {
        color: #000;
        text-decoration: inherit; /* defeat the default underline */
    }


div.poll-summary table.indent td
{
    background-color: #E9E9E9;
    border-left: thin solid #A0A0A0;
    border-right: thin solid #A0A0A0;
    border-top: thin dotted #C0C0C0;
    border-bottom: thin dotted #C0C0C0;
    padding-left: 0.3em;
    padding-right: 0.3em;
}


div.poll-summary table.indent th
{
    border-top: hidden; border-bottom: hidden;
 /* font-weight: normal; */
    padding-right: 0.6em;
    text-align: right;
    white-space: nowrap;
 /* width: 0; *//* shrink to minimum */
}


div.poll-summary table.indent tr.issue td span.issueTint
{
    padding-left: 0.2em;
    padding-right: 0.2em;
}


div.poll-summary ul.summary li.poll
{
    list-style-image: url('poll.png');
}
div.poll-summary ul.summary li.position
{
    list-style-image: url('draft.png');
}



/** - reference ------------------------
  */
sup.reference
{
    white-space: nowrap;
}


sup.reference a
{
    padding-left: 0.1em;
    padding-right: 0.2em;
    /* Cannot use sup+sup:before to insert comma. Sibling rule is not specific to cases of
       abutting elements, but also includes cases where there is intervening text, as in
       two *separate* sup within same paragraph. */
}



/** - registration ---------------------
  */
table.registration.summary th
{
    font-weight: normal;
}



/** - subdued --------------------------
  */
.subdued
{
    color: #808080;
}


a.subdued
{
    color: #7070C0;
}


.subdued a
{
    color: #7070C0 !important; /* important to override internal link styles */
}



/** - summary --------------------------
  */
table.summary
{
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}


table.summary td, table.summary th
{
    border: thin #A0A0A0;
    padding: 0; /* overriding the default */
    vertical-align: baseline;
}


table.summary td
{
    border-top-style: solid;
    border-bottom-style: solid;
}


    table.summary td, table.summary.poll tr.p-name td table td
    {
        padding: 0 0.05em 0.1em 0.1em; /* TRBL */
    }


table.summary td.clear
{
    background-color: inherit;
    border: none;
}


table.summary th
{
    padding-right: 0.6em;
    text-align: right;
}



/** - sub | sup ------------------------
  */
sub, sup
{
    font-size: 0.7em;
    line-height: 0.5em; /* avoid messing up line spacing,
      http://stackoverflow.com/a/2019080/2402790 */
}



/** - table -------------------------------------------
  *
  * There's a Firefox bug that causes table borders to disappear when using full zoom
  * (with "zoom text only" unchecked).  The symptoms are similar to resolved
  * https://bugzilla.mozilla.org/show_bug.cgi?id=244135, but "rowspan" is not involved.
  * It's a problem with the "border-collapse" style.
  *
  * To prevent this, we're using fatter and lighter table borders,
  * (generally 3px) in the specific table classes.
  */



/** - table.table ----------------------
  */
table.table
{
    border-collapse: collapse;
    margin: 2em auto 2em auto;
}


table.table caption
{
    caption-side: top;
    font-size: 1.1em;
    font-weight: normal;
    text-align: left;
    margin-bottom: 0.5em;
}


table.table caption strong
{
    margin-left: 0.3em;
}



/** - unserved -------------------------
  */
.unserved
{
    background-color: #FFF7E7;
}



/** - unsigned -------------------------
  *
  * For Template:Unsigned.
  */
span.unsigned
{
    font-size: 0.9em;
}


span.unsigned span.unspec
{
    color: red;
    font-style: italic;
}



/** - user-position-list ---------------
  *
  * http://reluk.ca/w/Template:User_position_list_item
  */
ul.user-position-list a
{
    margin-right: 0.5em;
}
