@namespace url(http://www.w3.org/1999/xhtml);
/* set default namespace to HTML */

@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.editor [dir="rtl"] {
    direction: rtl;
    unicode-bidi: embed;
}

.editor [dir="ltr"] {
    direction: ltr;
    unicode-bidi: embed;
}

.editor bdo[dir] {
    unicode-bidi: bidi-override;
}

.editor address,
.editor blockquote,
.editor body,
.editor caption,
.editor center,
.editor col,
.editor colgroup,
.editor dd,
.editor dir,
.editor div,
.editor dl,
.editor dt,
.editor fieldset,
.editor form,
.editor h1,
.editor h2,
.editor h3,
.editor h4,
.editor h5,
.editor h6,
.editor hr,
.editor html,
.editor isindex,
.editor li,
.editor listing,
.editor map,
.editor marquee,
.editor menu,
.editor noframes,
.editor ol,
.editor p,
.editor plaintext,
.editor pre,
.editor table,
.editor tbody,
.editor td,
.editor tfoot,
.editor th,
.editor thead,
.editor tr,
.editor ul,
.editor xmp {
    unicode-bidi: embed;
}

.editor html,
.editor div,
.editor map,
.editor dt,
.editor isindex,
.editor form {
    display: block;
}

.editor body {
    display: block;
    margin: 8px;
}

.editor p,
.editor dl,
.editor multicol {
    display: block;
    margin: 1em 0;
}

.editor dd {
    display: block;
    -moz-margin-start: 40px;
}

.editor blockquote {
    display: block;
    margin: 1em 40px;
}

.editor address {
    display: block;
    font-style: italic;
}

.editor center {
    display: block;
    text-align: -moz-center;
}

.editor blockquote[type=cite] {
    display: block;
    margin: 1em 0px;
    -moz-padding-start: 1em;
    -moz-border-start: solid;
    border-color: blue;
    border-width: thin;
}

.editor span[_moz_quote=true] {
    color: blue;
}

.editor pre[_moz_quote=true] {
    color: blue;
}

.editor h1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin: .67em 0;
}

.editor h2 {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin: .83em 0;
}

.editor h3 {
    display: block;
    font-size: 1.17em;
    font-weight: bold;
    margin: 1em 0;
}

.editor h4 {
    display: block;
    font-weight: bold;
    margin: 1.33em 0;
}

.editor h5 {
    display: block;
    font-size: 0.83em;
    font-weight: bold;
    margin: 1.67em 0;
}

.editor h6 {
    display: block;
    font-size: 0.67em;
    font-weight: bold;
    margin: 2.33em 0;
}

.editor listing {
    display: block;
    font-family: -moz-fixed;
    font-size: medium;
    white-space: pre;
    margin: 1em 0;
}

.editor xmp,
.editor pre,
.editor plaintext {
    display: block;
    font-family: -moz-fixed;
    white-space: pre;
    margin: 1em 0;
}

.editor table {
    display: table;
    border-spacing: 2px;
    border-collapse: separate;
    margin-top: 0;
    margin-bottom: 0;
    /* XXXldb do we want this if we're border-collapse:collapse ? */
    
    -moz-box-sizing: border-box;
    text-indent: 0;
}

.editor table[align="left"] {
    float: left;
}

.editor table[align="right"] {
    float: right;
    text-align: start;
}

.editor table[rules]:not([rules="none"]) {
    border-collapse: collapse;
}

.editor caption {
    display: table-caption;
    text-align: center;
    -moz-box-sizing: border-box;
}

.editor table[align="center"] > caption {
    margin-left: auto;
    margin-right: auto;
}

.editor table[align="center"] > caption[align="left"] {
    margin-right: 0;
}

.editor table[align="center"] > caption[align="right"] {
    margin-left: 0;
}

.editor tr {
    display: table-row;
    vertical-align: inherit;
}

.editor col {
    display: table-column;
}

.editor colgroup {
    display: table-column-group;
}

.editor tbody {
    display: table-row-group;
    vertical-align: middle;
}

.editor thead {
    display: table-header-group;
    vertical-align: middle;
}

.editor tfoot {
    display: table-footer-group;
    vertical-align: middle;
}

.editor table > tr {
    vertical-align: middle;
}

.editor td {
    display: table-cell;
    vertical-align: inherit;
    text-align: inherit;
}

.editor th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
}

.editor tr > form:-moz-is-html,
.editor tbody > form:-moz-is-html,
.editor thead > form:-moz-is-html,
.editor tfoot > form:-moz-is-html,
.editor table > form:-moz-is-html {
    /* Important: don't show these forms in HTML */
    
    display: none !important;
}

.editor q:before {
    content: open-quote;
}

.editor q:after {
    content: close-quote;
}

.editor b,
.editor strong {
    font-weight: bolder;
}

.editor i,
.editor cite,
.editor em,
.editor var,
.editor dfn {
    font-style: italic;
}

.editor tt,
.editor code,
.editor kbd,
.editor samp {
    font-family: -moz-fixed;
}

.editor u,
.editor ins {
    text-decoration: underline;
}

.editor s,
.editor strike,
.editor del {
    text-decoration: line-through;
}

.editor blink {
    text-decoration: blink;
}

.editor big {
    font-size: larger;
}

.editor small {
    font-size: smaller;
}

.editor sub {
    vertical-align: sub;
    font-size: smaller;
    line-height: normal;
}

.editor sup {
    vertical-align: super;
    font-size: smaller;
    line-height: normal;
}

.editor nobr {
    white-space: nowrap;
}

.editor abbr[title],
.editor acronym[title] {
    border-bottom: dotted 1px;
}

.editor ul,
.editor menu,
.editor dir {
    display: block;
    list-style-type: disc;
    margin: 1em 0;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
    -moz-padding-start: 40px;
}

.editor ol {
    display: block;
    list-style-type: decimal;
    margin: 1em 0;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
    -moz-padding-start: 40px;
}

.editor li {
    display: list-item;
}

.editor ul ul,
.editor ul ol,
.editor ul dir,
.editor ul menu,
.editor ul dl,
.editor ol ul,
.editor ol ol,
.editor ol dir,
.editor ol menu,
.editor ol dl,
.editor dir ul,
.editor dir ol,
.editor dir dir,
.editor dir menu,
.editor dir dl,
.editor menu ul,
.editor menu ol,
.editor menu dir,
.editor menu menu,
.editor menu dl,
.editor dl ul,
.editor dl ol,
.editor dl dir,
.editor dl menu,
.editor dl dl {
    margin-top: 0;
    margin-bottom: 0;
}

.editor ol ul,
.editor ul ul,
.editor menu ul,
.editor dir ul,
.editor ol menu,
.editor ul menu,
.editor menu menu,
.editor dir menu,
.editor ol dir,
.editor ul dir,
.editor menu dir,
.editor dir dir {
    list-style-type: circle;
}

.editor ol ol ul,
.editor ol ul ul,
.editor ol menu ul,
.editor ol dir ul,
.editor ol ol menu,
.editor ol ul menu,
.editor ol menu menu,
.editor ol dir menu,
.editor ol ol dir,
.editor ol ul dir,
.editor ol menu dir,
.editor ol dir dir,
.editor ul ol ul,
.editor ul ul ul,
.editor ul menu ul,
.editor ul dir ul,
.editor ul ol menu,
.editor ul ul menu,
.editor ul menu menu,
.editor ul dir menu,
.editor ul ol dir,
.editor ul ul dir,
.editor ul menu dir,
.editor ul dir dir,
.editor menu ol ul,
.editor menu ul ul,
.editor menu menu ul,
.editor menu dir ul,
.editor menu ol menu,
.editor menu ul menu,
.editor menu menu menu,
.editor menu dir menu,
.editor menu ol dir,
.editor menu ul dir,
.editor menu menu dir,
.editor menu dir dir,
.editor dir ol ul,
.editor dir ul ul,
.editor dir menu ul,
.editor dir dir ul,
.editor dir ol menu,
.editor dir ul menu,
.editor dir menu menu,
.editor dir dir menu,
.editor dir ol dir,
.editor dir ul dir,
.editor dir menu dir,
.editor dir dir dir {
    list-style-type: square;
}

.editor hr {
    display: block;
    border: 1px inset;
    margin: 0.5em auto 0.5em auto;
    color: gray;
    -moz-float-edge: margin-box;
    -moz-box-sizing: border-box;
}

.editor hr[size="1"] {
    border-style: solid none none none;
}

.editor *|*:-moz-any-link img,
.editor img[usemap],
.editor object[usemap] {
    border: 2px solid;
}

.editor img:-moz-broken::before,
.editor input:-moz-broken::before,
.editor img:-moz-user-disabled::before,
.editor input:-moz-user-disabled::before,
.editor img:-moz-loading::before,
.editor input:-moz-loading::before,
.editor applet:-moz-empty-except-children-with-localname(param):-moz-broken::before,
.editor applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before {
    content: -moz-alt-content !important;
    unicode-bidi: embed;
}

.editor object:-moz-broken > *|*,
.editor applet:-moz-broken > *|* object:-moz-user-disabled > *|*,
.editor applet:-moz-user-disabled > *|* {
    /*
      Inherit in the object's alignment so that if we aren't aligned explicitly
      we'll end up in the right place vertically.  See bug 36997.  Note that this
      is not !important because we _might_ be aligned explicitly.
    */
    
    vertical-align: inherit;
}

.editor img:-moz-suppressed,
.editor input:-moz-suppressed,
.editor object:-moz-suppressed,
.editor embed:-moz-suppressed,
.editor applet:-moz-suppressed {
    /*
      Set visibility too in case the page changes display.  Note that we _may_
      want to just set visibility and not display, in general, if we find that
      display:none breaks too many layouts.  And if we decide we really do want
      people to be able to right-click blocked images, etc, we need to set
      neither one, and hack the painting code.... :(
     */
    
    display: none !important;
    visibility: hidden !important;
}

.editor img[usemap],
.editor object[usemap] {
    color: blue;
}

.editor frameset {
    display: block !important;
    overflow: -moz-hidden-unscrollable;
    position: static !important;
    float: none !important;
    border: none !important;
}

.editor frame {
    border: none !important;
}

.editor iframe {
    border: 2px inset;
}

.editor noframes {
    display: none;
}

.editor spacer {
    position: static !important;
    float: none !important;
}

.editor canvas {
    -moz-user-select: none;
}

.editor abbr:focus,
.editor acronym:focus,
.editor address:focus,
.editor b:focus,
.editor base:focus,
.editor big:focus,
.editor blockquote:focus,
.editor br:focus,
.editor canvas:focus,
.editor caption:focus,
.editor center:focus,
.editor cite:focus,
.editor code:focus,
.editor col:focus,
.editor colgroup:focus,
.editor dd:focus,
.editor del:focus,
.editor dfn:focus,
.editor dir:focus,
.editor div:focus,
.editor dl:focus,
.editor dt:focus,
.editor em:focus,
.editor fieldset:focus,
.editor font:focus,
.editor form:focus,
.editor h1:focus,
.editor h2:focus,
.editor h3:focus,
.editor h4:focus,
.editor h5:focus,
.editor h6:focus,
.editor hr:focus,
.editor i:focus,
.editor img:focus,
.editor ins:focus,
.editor kbd:focus,
.editor label:focus,
.editor legend:focus,
.editor li:focus,
.editor link:focus,
.editor menu:focus,
.editor ol:focus,
.editor p:focus,
.editor pre:focus,
.editor q:focus,
.editor s:focus,
.editor samp:focus,
.editor small:focus,
.editor span:focus,
.editor strike:focus,
.editor strong:focus,
.editor sub:focus,
.editor sup:focus,
.editor table:focus,
.editor tbody:focus,
.editor td:focus,
.editor tfoot:focus,
.editor th:focus,
.editor thead:focus,
.editor tr:focus,
.editor tt:focus,
.editor u:focus,
.editor ul:focus,
.editor var:focus {
    /* Don't specify the outline-color, we should always use initial value. */
    
    outline: 1px dotted;
}

.editor area,
.editor base,
.editor basefont,
.editor head,
.editor meta,
.editor script,
.editor style,
.editor title,
.editor noembed,
.editor param {
    display: none;
}

.editor video > xul|videocontrols,
.editor audio > xul|videocontrols {
    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#videoControls");
}

.editor video:not([controls]) > xul|videocontrols,
.editor audio:not([controls]) > xul|videocontrols {
    visibility: hidden;
}

.editor audio:not([controls]) {
    display: none;
}

.editor marquee {
    width: -moz-available;
    display: inline-block;
    vertical-align: text-bottom;
    text-align: start;
    -moz-binding: url("chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal");
}

.editor marquee[direction="up"],
.editor marquee[direction="down"] {
    -moz-binding: url("chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical");
    height: 200px;
}

@media print {
    .editor marquee {
        -moz-binding: none;
    }
}