/*
 * Messinet Secure Services Unified CSS
 */

/* Global reset */
html {
  font-family:              Arial, sans-serif;
  font-size:                100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust:     100%;
}

body, h1, h2, h3, h4, h5, h6, img {
  border:  0;
  margin:  0;
  padding: 0;
}

/* Include Android browser support for :checked pseudo-class and general sibling selector
 * via -webkit-animation & @-webkit-keyframes
 * http://css-tricks.com/webkit-sibling-bug/
 */
body {
  background-color:  #fff;
  color:             #3c4b4d;
  font-size:         16px;
  -webkit-animation: bugfix infinite 1s;
}

@-webkit-keyframes bugfix { from { padding: 0; } to { padding: 0; } }

/* Links */
a:link, a:visited {
  color:           #ff6600;
  text-decoration: none;
}

a:hover, a:focus {
  color:           #ff9900;
  text-decoration: none;
}

/* Header */
header.mss {
  background-image: -webkit-linear-gradient(#ff6600,#fff);
  background-image: -o-linear-gradient(#ff6600,#fff);
  background-image: linear-gradient(#ff6600,#fff);
  height:           70px;
  position:         fixed;
  text-align:       center;
  width:            100%;
  z-index:          50;
}

header.mss h1 {
  color:          #000;
  display:        inline;
  font-family:    serif;
  font-size:      2vw;
  font-variant:   small-caps;
  vertical-align: middle;
}

header.mss h1 a:link, header.mss h1 a:hover, header.mss h1 a:visited {
  color:           #000;
  text-decoration: none;
}

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

#mss-logo {
  height: 100%;
}

/* Horde login position */
#mss-horde-login {
  cursor:     pointer;
  display:    inline;
  margin-top: 25px;
  position:   absolute;
  right:      25px;
}

/* Horde login display */
#mss-horde-login:after {
  border-bottom:             0.25em solid #000;
  border-bottom-left-radius: 0.125em;
  border-right:              0.25em solid #000;
  border-top:                0.25em solid #000;
  border-top-left-radius:    0.125em;
  color:                     #000;
  content:                   "\21E8";
  font-weight:               bold;
  height:                    20px;
  width:                     10px;
}

#mss-horde-login:hover:after {
  border-color: #fff;
  color:        #fff;
}

#mss-horde-login:hover:before {
  color:       #fff;
  content:     "Login ";
  font-weight: bold;
}


/* Footer */
footer.mss {
  clear:      both;
  font-size:  0.9em;
  text-align: center;
}

/* Interactive navigation menu */
nav.mss {
  background-color: #fff;
  font-size:        1.125em;
  position:         fixed;
  top:              70px;
  width:            100%;
}

nav.mss a {
  color:   #3c4b4d;
  display: block;
  width:   100%;
}

nav.mss label {
  cursor: pointer;
}

nav.mss label:hover {
  color: #ff6600;
}

nav.mss ul, nav.mss li {
  background-color: #fff;
  border:           0;
  list-style:       none;
  margin:           0;
  padding:          0;
}

nav.mss > ul > li {
  display: inline-block;
  padding: 0.2em 0.4em;
}

nav.mss > ul > li > ul {
  border-left:  1px solid #ff6600;
  border-right: 1px solid #becbcd;
  border-top:   2px solid #ff6600;
  display:      none; /* Hide sub menu by default */
  position:     absolute;
  text-align:   left;
}

nav.mss > ul > li > ul > li {
  border-bottom: 1px solid #becbcd;
  padding:       0.2em 0.4em;
}

nav.mss > ul > li > ul > li:hover {
  background-image: -webkit-linear-gradient(#ff9900,#ff6600);
  background-image: -o-linear-gradient(#ff9900,#ff6600);
  background-image: linear-gradient(#ff9900,#ff6600);
}

nav.mss > ul > li > ul > li:hover > a {
  color: #fff;
}

.mss-key:before {
  color:         #ffd700;
  content:       "\26B7";
  padding-right: 0.4em;
}

/* Interactive navigation */

/* Hide selected checkboxes, radio buttons, and labels */
#mss-check-nav,
#mss-radio-nav-close,
.mss-label-nav-close,
.mss-radio-nav {
  display: none;
}

/* Hide the adjacent "open" label if the "open" input is checked */
.mss-radio-nav:checked + label {
  display: none;
}

/* Show the sibling "close" label if the "open" input is checked */
.mss-radio-nav:checked ~ label.mss-label-nav-close {
  color:   #ff6600;
  display: inline-block;
}

/* Show the sibling menu if the "open" input is checked */
.mss-radio-nav:checked ~ ul {
  display: list-item;
}

/* :hover pseudo-class rules below will override :checked pseudo-class rules above */
/* Show sub menu on parent hover */
/*nav.mss > ul > li:hover > ul {
  display: list-item;
}*/

/* Hide other sub menus */
/*nav.mss > ul > li:not(:hover) > ul {
  display: none;
}*/

/* Responsive display adjustments */
@media only screen and (max-width: 640px) {
  header.mss {
    text-align: left;
  }

  header.mss h1 {
    font-size: 4vw;
  }

  footer.mss {
    padding: 0 2%;
  }

  nav.mss {
    border-right:       1px solid #becbcd;
    overflow-x:         hidden;
    overflow-y:         visible;
    width:              0;
    -webkit-transition: width 0.3s ease;
    transition:         width 0.3s ease;
  }

  nav.mss label {
    color:  #ff6600;
    cursor: default;
  }

  nav.mss > ul > li {
    display: list-item;
  }

  nav.mss > ul > li > ul {
    border-left:  0;
    border-right: 0;
    display:      list-item; /* Show sub menu by default */
    padding-left: 0.5em;
    position:     relative;
  }

  /* A show-on-click alternative to showing the sub menu by default */
  /*.mss-radio-nav:checked ~ ul {
    position: relative;
  }*/

  /* Trigram position */
  .mss-label-nav-toggle {
    cursor:       pointer;
    display:      inline;
    padding-left: 2em;
    position:     relative;
  }

  /* Trigram display */
  .mss-label-nav-toggle:before {
    border-bottom:              0.25em solid #000;
    border-bottom-right-radius: 0.125em;
    border-top:                 0.75em double #000;
    border-top-right-radius:    0.125em;
    content:                    "";
    height:                     0.25em;
    left:                       0;
    position:                   absolute;
    top:                        0.1em;
    width:                      1.5em;
    -webkit-transition:         width 0.3s ease;
    transition:                 width 0.3s ease;
  }

  .mss-label-nav-toggle:hover:before {
    border-color: #fff;
  }

  /* Show vertical menu with click on trigram */
  #mss-check-nav:checked ~ nav {
    bottom: 0;
    width:  95%;
  }

  /* Slightly retract the trigram when the vertical menu is shown */
  #mss-check-nav:checked + label.mss-label-nav-toggle:before {
    width: 1.25em;
  }
}


/*
 * Messinet Secure Services Unified CSS
 * Jekyll overrides
 */

body {
  color: #3c4b4d;
}

article, .category-index, .tag-index {
  list-style:    none;
  margin-bottom: 2em;
}

article h2 :link, article h2 :visited, h3 :link, h3 :visited {
  color:           #3c4b4d;
  text-decoration: none;
}

article h2 :hover, h3 :hover {
  color: #ff6600;
}

#mission {
  background-color: #edf1f1;
  border-top:       1px solid #ff6600;
  border-bottom:    1px solid #ff6600;
  margin-bottom:    0.6em;
  padding:          0.3em;
}

#trunk {
  padding:   100px 20% 0 20%;
}

#trunk > aside {
  clear:      right;
  float:      right;
  max-width:  250px;
  text-align: center;
  width:      20%;
}

#trunk > main {
  float: left;
  width: 80%
}

/* Posts */

.post-meta {
  font-size:  0.9em;
  font-style: italic;
  margin:     0.1em 0;
}

.post-content {
  font-size: 1em;
}

.permalink:link, .permalink:visited {
  color:           #ff6600;
  text-decoration: none;
}

.permalink:hover {
  color:           #ff9900;
  text-decoration: none;
}

.post-nav {
  width:  98%;
}

.prev, .next {
  display:     inline-block;
  white-space: nowrap;
  width:       50%;
}

.prev {
  float:      left;
  text-align: left;
}

.next {
  float:      right;
  text-align: right;
}

.prev:before {
  content: "\21E6";
}

.next:after {
  content: "\21E8";
}

.ellipsis {
  display:        inline-block;
  overflow:       hidden;
  text-overflow:  ellipsis;
  vertical-align: middle;
  width:          80%;
}

.announce:before {
  background-image: -webkit-linear-gradient(#ff9900,#ff6600);
  background-image: -o-linear-gradient(#ff9900,#ff6600);
  background-image: linear-gradient(#ff9900,#ff6600);
  border-radius:    0.3em 0;
  color:            #fff;
  font:             italic 400 small-caps 0.875em serif;
  content:          "Announcement!";
  margin:           0 0.3em 0 -0.6em;
  padding:          0 0.3em;
}

/* Categories & Tags */
.tag-cloud {
  text-align: center;
}

.tag-cloud .tags li {
  margin: 0.125em;
}

.categories, .tags {
  display:    inline;
  font-style: italic;
  list-style: none;
  margin:     0;
  padding:    0;
}

.categories li, .tags li {
  display: inline-block;
}

.category, .category:link, .category:visited {
  background-image: -webkit-linear-gradient(#ff9900,#ff6600);
  background-image: -o-linear-gradient(#ff9900,#ff6600);
  background-image: linear-gradient(#ff9900,#ff6600);
  border-radius:    0.3em 0;
  color:            #fff;
  margin:           0 0.2em;
  padding:          0 0.2em;
}

.category:hover {
  background-image: -webkit-linear-gradient(#ff6600,#ff9900);
  background-image: -o-linear-gradient(#ff6600,#ff9900);
  background-image: linear-gradient(#ff6600,#ff9900);
  color:            #000;
}

.tags li:last-child {
  margin-right: 0;
}

.tag, .tag:link, .tag:visited {
  background-image: -webkit-linear-gradient(#edf1f1,#fff);
  background-image: -o-linear-gradient(#edf1f1,#fff);
  background-image: linear-gradient(#edf1f1,#fff);
  border-radius:    0.3em 0;
  color:            #000;
  margin:           0 0.2em;
  padding:          0 0.2em;
}

.tag:hover {
  background-image: -webkit-linear-gradient(#ff9900,#ff6600);
  background-image: -o-linear-gradient(#ff9900,#ff6600);
  background-image: linear-gradient(#ff9900,#ff6600);
  color:            #fff;
}

.post-meta ul.tags {
  display: none; /* Hide tags by default */
}

.post-meta .categories:hover ul.tags {
  display: list-item; /* Show tags on .categories:hover */
}

/* Stolen from Trac for now */
/* pre.wiki, pre.literal-block { */
div.highlight {
 background:    #f7f7f7;
 border:        1px solid #d7d7d7;
 box-shadow:    0 0 1em #eee;
 border-radius: .3em;
 margin:        1em 1.75em;
 padding:       .25em;
 overflow:      auto;
}

/* Google+ & Twitter widgets */
.g-plusone, .twitter-timeline {
  display:    block;
}

/* Horde Ansel gallery widget */
#ansel_widget {
  text-align: center;
}

.anselGalleryWidget img {
  border: 0 !important;
}

/* Responsive display adjustments */
@media only screen and (max-width: 1280px) {
  #trunk {
    padding: 100px 10% 0 10%;
  }
}

@media only screen and (max-width: 1024px) {
  #trunk {
    padding: 100px 5% 0 5%;
  }
}

@media only screen and (max-width: 640px) {
  #mission {
    display: none;
  }

  #trunk {
    padding: 80px 2% 0 2%;
  }

  #trunk > aside, #trunk > main {
    float:     none;
    max-width: 100%;
    width:     100%;
  }
}


.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

