/*
Theme Name: Discourse Apr 2017
Theme URI: http://wordpress.org/
Description: Discourse's theme!
Author: Team Discourse! 
Author URI: http://discourse.org
Version: 5.1

License:
License URI:

General comments (optional).
*/

@import url(//fonts.googleapis.com/css?family=Open+Sans:400,600,700);

* {
    margin: 0;
    padding: 0;
    border: 0;
}

h1, h2, h3, h4, h {
    font-family: 'Open Sans', sans-serif;
    color: #222;
}

body, html {
    font-family: "Open Sans", sans-serif;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

a {
    color: #006e97;
    text-decoration: none;
}

input, textarea {
    border: 1px solid #B9B9B9;
    border-radius: 4px;
    outline: none;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 16px;
}

nav#bar {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px; }
  nav#bar ul {
    display: inline-flex;
    list-style-type: none;
    align-items: center; }
  nav#bar ul li { margin-left: 20px; }
  @media (max-width: 650px) {
    nav#bar {
      flex-wrap: wrap;
      justify-content: center; }
    nav#bar #logo {
        display: flex;
        justify-content: center;
        flex-basis: 100%; }
    nav#bar #logo svg { width: 120px; }
    nav#bar ul li { margin-left: 8px; }
    nav#bar ul li a { font-size: 14px; }
    }
  nav#bar .submenu {
    position: absolute;
    margin-left: -20px;
    margin-top: 10px;
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 1009; }
    nav#bar .submenu li {
      margin-left: 0;
      margin-top: 10px; }
    @media (max-width: 650px) {
      nav#bar .submenu {
        border-radius: 0;
        padding-top: 0; } }
  nav#bar .submenu--active {
    display: block; }
  nav#bar li a {
    text-decoration: none;
    color: #333; }
    nav#bar li a:hover {
      border-bottom: 5px solid; }
  nav#bar li:nth-of-type(1) a:hover {
    border-color: #D13239; }
  nav#bar li:nth-of-type(2) a:hover {
    border-color: #f15c22; }
  nav#bar li:nth-of-type(3) a:hover {
    border-color: #F2E88F; }
  nav#bar li:nth-of-type(4) a:hover {
    border-color: #00953A; }
  nav#bar li:nth-of-type(5) a:hover {
    border-color: #13a0f5; }
  nav#bar li:nth-of-type(5) a {
	font-weight: bold;
  }
  nav#bar ul.submenu li:nth-of-type(5) a {
	font-weight:normal
  }
  nav#bar ul.submenu li:nth-of-type(6){
	font-weight:bold
  }

  .chevron {
    width: 15px !important; height: 15px !important; margin-bottom: -2px;
  } 

 @media screen and (max-width: 400px) {
	 .chevron {display: none;}
    }


  nav#bar svg {
    width: 150px;
    height: auto; }



.header-wrap header {
    width: 100%;
    float: left;
    margin-top: 24px;
    margin-bottom: 36px;
}

.header-wrap {
  background: url(https://www.discourse.org/a/img/grad-north.png), linear-gradient(-90deg, #F2E88F, #00AEEF);
  background-size: 100% 100%;
  background-repeat: repeat-x;
}

/* does it work */

    .header-wrap:after {
        content: "";
        display: table;
        clear: both;
    }

header section {
    width: 760px;
    margin: 20px auto;
}

    header section h1 {
        font-size: 50px;
        float: left;
        margin: 6px 0 30px 0;
        color: #333;
        font-weight: 600;
    }

header img {
    height: 65px;
}

header form {
    float: right;
    margin-top: -7px;
}

    header form > a {
        float: right;
        clear: right;
    }

header input, #info input {
    float: right;
    clear: right;
    width: 232px;
    height: 30px;
    background: #FFF url(images/search.png) no-repeat scroll 7px 7px;
    padding-left: 30px;
}

    header input:focus, #info input:focus {
        border-color: #7fc3dc;
    }

header h3 {
    color: #333;
}

#content {
    width: 100%;
    float: left;
}

#posts {
    position: relative;
    width: 760px;
    margin: 20px auto 0 auto;
}

article:not(.comment-body) {
    max-width: 760px;
    border-bottom: 1px solid #B9B9B9;
    margin: 0px auto;
    margin-bottom: 32px;
    padding-bottom: 52px;
    background-color: #FFF;
}

    article:last-of-type {
        border-bottom: none;
    }

    article h2, article h3 {
        margin-top: 20px;
    }

    article h2 {
        font-size: 25px !important;
    }

    article h3 {
        font-size: 22px !important;
    }

    article p,
    article li,
    article tr {
        line-height: 25px;
    }

    article ul {
        margin-top: 6px;
    }

        article ul.post-categories {
            margin-top: 0px;
        }

    article li {
        margin-bottom: 10px;
    }

        article li p {
            padding: 0;
        }

    article pre,
    article code {
        font-family: Consolas, Menlo,Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
        max-height: 400px;
        max-width: 930px;
        overflow: auto;
        background-color: #eaf9ff;
        margin-bottom: 10px;
    }

    article .top {
        padding: 16px 0 5px 0;
    }

        article .top h1 {
            font-size: 32px;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #000;
            padding-bottom: 10px;
            font-weight: bold;
        }

        article .top > ul {
            display: inline-block;
        }

            article .top > ul li {
                display: inline-block;
                line-height: 16px;
            }

                article .top > ul li:after {
                    content: ",";
                }

                article .top > ul li:last-child:after {
                    content: "";
                }

                article .top > ul li a {
                    font-family: Arial;
                    font-size: 14px;
                    position: absolute;
                    margin-top: -7px;
	            color: #808080;
                }

        article .top > span {
            margin-right: 20px;
            font-size: 14px;
            float: left;
            color: #808080;
            font-family: Arial, Helvetica, sans-serif;
        }

        article .top > span a {
            color: #808080;
        }

        article .top > span:last-of-type {
            margin-right: 4px !important;
        }


        article .top i {
            color: #808080;
        }

    article img .feature {
        max-width: 760px;
        height: 240px;
        position: relative;
        z-index: 2;
        left: -1px;
    }


.wp-post-image {
    margin-top: 16px;
}

article .middle {
    padding: 0px 0px 16px 0px;
    overflow: hidden;
    width: 710px;
}

    article .middle img {
        max-width: 712px;
        height: auto;
    }

    article .middle ul,
    article .middle ol {
        margin-left: 50px;
    }

    article .middle blockquote,
    article .middle pre {
        padding: 16px;
        background-color: #eaf9ff;
        display: block;
    }

    article .middle p {
        padding: 10px 0px;
    }


article nav {
    height: 60px;
    line-height: 46px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}


#comments {
    clear: both;
}

article.archive #comments {
    clear: none;
}

    article #comments > ol {
        border-top: 1px solid #E0E0E0;
        padding: 15px 0px;
    }

    article #comments .comment {
        display: block;
        padding: 10px 0px 30px;
        background-color: #FFF;
        transition: background-color 1000ms;
    }

        article #comments .comment p {
            word-wrap: break-word;
        }

    article #comments .respond {
        overflow: auto;
    }

        article #comments .respond > h3 {
            margin-bottom: 5px;
        }

        article #comments .respond input {
            height: 12px;
            width: 200px;
            padding: 9px;
            float: left;
            margin-top: 16px;
        }

        article #comments .respond textarea {
            float: left;
            width: 908px;
            height: 60px;
            padding: 9px;
        }

        article #comments .respond button {
            border: 1px solid #155B75;
            font-size: 14px;
            font-family: 'Open Sans', sans-serif;
            padding: 0px 9px;
            color: white;
            border-radius: 4px;
            height: 30px;
            background-color: #00A4E1;
            text-shadow: 0px 1px #555;
            box-shadow: inset 0px 1px #54C9F4, inset 0 -2px 5px -1px #0093cb;
            cursor: pointer;
        }

            article #comments .respond button:hover {
                background-color: #E45735;
            }


#comments-title {
    padding-bottom: 20px;
}

h2.discourse-comments-title {
    display: none;
}

article.archive section.top h1 {
    font-size: 24px;
}

article.archive {
    overflow: hidden;
    height: 445px;
}

    article.archive .commentlist {
        display: block;
        padding-left: 0;
        padding-right: 0;
        width: 215px;
        float: left;
        overflow: hidden;
        height: 430px;
        margin-left: 20px;
        margin-top: 20px;
    }

    article.archive #comments.wp {
        height: 400px;
    }

    article.archive .comment img {
        display: none;
    }

    article.archive .comment {
        padding: 0;
        max-height: 200px;
        overflow: hidden;
        margin-bottom: 15px;
        font-size: 13px;
        border-bottom: 0;
    }

        article.archive .comment p {
            margin: 0;
            padding-left: 0;
            line-height: 19px;
        }

    article.archive .comment-author.vcard {
        height: 20px;
        overflow: hidden;
        color: white;
        margin: 0;
    }

        article.archive .comment-author.vcard br {
            display: none;
        }

        article.archive .comment-author.vcard a {
            padding-right: 5px;
            font-size: 90%;
            font-weight: bold;
        }

    article.archive .comment-content blockquote {
        display: none;
    }

    article.archive .comment-content aside {
        display: none;
    }

    article.archive .description {
        width: 400px;
        margin-left: 20px;
        margin-right: 20px;
        float: left;
    }

    article.archive div.respond {
        display: none;
    }

    article.archive #comments .respond {
        display: none;
    }

        article.archive #comments .respond > p {
            height: 34px;
            overflow: hidden;
        }

    article.archive .description .middle {
        width: auto;
        line-height: 27px;
        max-height: 280px;
    }

    article.archive .more {
        text-align: center;
        text-decoration: none;
        border-radius: 6px;
        padding: 8px 15px;
        display: block;
        font-size: 15px;
        color: #fff;
        font-weight: bold;
        background-color: #00aeef;
        transition: background-color .25s;
        font-family: 'Open Sans', sans-serif;
        margin-top: 10px;
        max-width: 200px;
    }

        article.archive .more:hover {
            background-color: #0076A3;
        }


    article.archive #comments > ol {
        border: 0;
        padding: 0;
        margin: 0;
        height: 400px;
        overflow: hidden;
    }

    article.archive .top h1 {
        width: auto;
    }

    article.archive .avatar {
        width: 32px;
        height: 32px;
        float: left;
        margin-right: 10px;
        border: 1px solid #DDD;
    }

    article.archive #comments .comment {
        display: block;
        padding: 0;
    }

    article.archive .url {
        font-size: 14px;
        float: left;
    }

    article.archive li {
        display: block;
    }

    article.archive time {
        float: left;
        font-size: 14px;
        color: #808080;
        clear: left;
    }

    article.archive #comments form {
        display: none;
    }





/* TODO: elevate scope whenever */
section.date {
    width: 80px;
    float: left;
}

h1.month {
    width: 64px;
    height: 24px;
    color: #FFF;
    background-color: rgb(188, 33, 31);
    line-height: 25px;
    text-align: center;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    box-shadow: 1px -1px 2px 1px #ddd;
    margin: 22px auto 0px auto;
}

h1.day {
    width: 64px;
    height: 40px;
    color: #444;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    font-size: 35px;
    box-shadow: 1px 1px 2px 1px #ddd;
    margin: 0px auto 15px auto;
}

h2.ago {
    display: block;
    text-align: center;
    font-family: Arial;
    color: #AAA;
    font-size: 14px !important;
    margin-top: -5px;
}

.comment-content {
    clear: left;
    padding-top: 1px;
}

    .comment-content ol, .comment-content ul {
        overflow: auto;
    }

    .comment-content p {
        margin-bottom: 10px;
    }

    .comment-content > blockquote {
        margin-left: 30px;
        border-left: 5px solid #eaf9ff;
        padding-left: 10px;
    }

    .comment-content .quote, .comment-content .onebox {
        margin-left: 30px;
        margin-top: 15px;
        margin-bottom: 10px;
        border-left: 5px solid #eaf9ff;
        padding-left: 10px;
    }

.comment-meta {
    color: #808080;
}

.avatar-64 {
    margin-bottom: 10px;
}

span.says {
    display: none;
}

/* begin legacy WP comments */

li.comment {
    list-style: none;
    padding: 0px 0px 25px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

section.comments {
    margin-bottom: 10px;
    margin-top: 25px;
}

section.comments {
    margin-bottom: 10px;
}

    section.comments ol h2 {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

.archive .comments.wp h2 {
    display: none;
}

.archive .comments.wp {
    border: 0;
    width: 200px;
    float: left;
    padding-left: 20px;
}

/* end legacy WP comments */

.quote .avatar {
    width: 48px !important;
    height: 48px !important;
}

footer:not(.comment-meta)  {
    width: 100%;
    height: 160px;
    float: left;
    color: #bababa;
}

    footer #pagination {
        height: 44px;
        width: 760px;
        border: 1px solid #f5f5f5;
        border-radius: 4px;
        background-color: white;
        border: 1px solid #ddd;
        top: -24px;
        position: relative;
        margin: 0px auto;
        line-height: 45px;
        font-weight: bold;
    }

        footer #pagination ul {
            float: left;
            height: 100%;
            padding: 0px 10px;
        }

        footer #pagination .left,
        footer #pagination .right {
            padding: 0px 16px;
        }

            footer #pagination .left a,
            footer #pagination .right a {
                height: 30px;
                display: inline-block;
                text-overflow: ellipsis;
            }

h3.reply-title {
    line-height: 40px;
}

.reply-counts {
    position: absolute;
}

.more-replies {
    margin-top: 30px;
	display: none;
}

div.comment-reply-title {
	display: none;
}

.left-button a,
.right-button a,
.reply-title a,
.reply-counts {
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    display: block;
    font-size: 15px;
    color: #fff;
    font-weight: bold;
    background-color: #00aeef;
    transition: background-color .25s;
    font-family: 'Open Sans', sans-serif;
    margin-top: 10px;
    padding: 0 15px;
    line-height: 40px;
}

.reply-title a {
    margin-top: 1px;
    margin-right: 10px;
    float: left !important;
}

    .left-button a:hover,
    .right-button a:hover,
    .reply-title a:hover,
    .reply-counts:hover {
        background-color: #0076A3;
    }

    .reply-title a:hover {
        margin-top:  -3px;
    }

    .left-button a:hover,
    .right-button a:hover {
        padding: 0 15px;
    }


.left-button {
    float: left;
}

.right-button {
    float: right;
}

.left-button a {
    color: #fff;
}

.right-button a {
    color: #fff;
}

footer #pagination.home .left a,
footer #pagination.home .right a {
    width: auto;
}

footer #pagination .left {
    float: left;
}

footer #pagination .right {
    float: right;
    text-align: right;
}

footer #pagination li {
    display: inline-block;
    height: 100%;
    text-align: center;
}

footer #pagination nav a {
    color: #534d4b;
}

footer #pagination li a,
footer #pagination li span {
    width: 33px;
    height: 33px;
    display: block;
}

footer #pagination .current {
    background-color: #E45735;
    color: white !important;
    border-radius: 4px;
    line-height: 33px;
}


#info {
    width: 768px;
    margin: 30px auto;
}

    #info > h1 {
        margin: 25px auto 0 auto;
        font-size: 40px;
    }

    #info input {
        float: none;
    }

    #info li {
        margin-left: 25px;
        line-height: 50px;
    }

.onebox-result {
    overflow: hidden;
    margin-top: 15px;
    padding: 5px 25px 12px 12px;
    border-left: 5px solid #bebebe;
    background: #eee;
}

    .onebox-result > .source {
        margin-bottom: 10px;
        margin-right: 10px;
        padding: 10px 0;
        display: block;
        color: #000;
        position: relative;
        border-bottom: 1px solid #e4e4e4;
    }

        .onebox-result > .source .info {
            background-color: #eee;
            padding: 0 10px 0 0;
            position: absolute;
            margin-top: -8px;
        }

    .onebox-result .onebox-result-body img {
        max-width: 30%;
        max-height: 80%;
        float: left;
        margin-right: 10px;
    }


    .onebox-result .favicon {
        position: relative;
        margin-top: 6px;
    }


/* <aside class="quote"> oneboxed topics */

aside.quote .topic-info {
    display: none;
}

aside.quote .badge.badge-category {
    padding: 5px;
}

aside.quote .title {
    padding-bottom: 8px;
}

    aside.quote .title a {
        font-weight: bold;
    }

img.thumbnail {
    float: left;
    margin-right: 10px;
}

/* end */

/* <aside class="onebox"> oneboxed URLs */

aside.onebox img {
    max-width: 100px;
}

aside.onebox h4 {
    font-weight: bold;
}

aside.onebox article {
    padding: 0;
    margin: 0;
    width: auto;
}


/* end */

.comment-content li {
    margin-left: 40px;
}

kbd {
    white-space: nowrap;
    color: black;
    background: #EEE;
    border-style: solid;
    border-color: #CCC #AAA #888 #BBB;
    padding: 4px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2),0 0 0 1px #ffffff inset;
    background-color: #FAFAFA;
    border-color: #CCC #CCC white;
    border-style: solid solid none;
    border-width: 1px 1px medium;
    color: #444;
    font-family: 'Helvetica Neue',Helvetica,Arial,Sans-serif;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.avatar {
    width: 64px;
    height: 64px;
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.avatar-25 {
    width: 32px;
    height: 32px;
    margin-right: 5px;
    border-radius: 50%;    
}

.emoji {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

iframe {
    width: 100%;
}

small {
    line-height: 8px;
}

div.highlight {
    background-color: #fffef3;
    font-style: italic;
    color: #666648;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    font-size: 90%;
}

div.highlight a {
  color: #7b7c58;
  text-decoration: underline;
}

blockquote h3,
blockquote h2,
table h2,
table h3 {
    margin-top: 0;
}

/* new footer */
#shared-footer {
    margin: 20px auto;
}
#shared-footer a {
    color: #333;
    text-decoration: none;
}
#shared-footer article {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}
@media (max-width: 769px) {
    #shared-footer article {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
#shared-footer article section {
    flex-basis: 50%;
}

@media (max-width: 769px) {
    #shared-footer article section {
        flex-basis: 50%;
    }
}
@media (max-width: 590px) {
    #shared-footer article section p {
        display: none;
    }
}
@media (max-width: 500px) {
    #shared-footer article section {
        flex-basis: 50%;
        display: flex;
        text-align: center;
        justify-content: center;
        align-content: space-around;
    }
    #shared-footer article section span {
        display: none;
    }
}
#shared-footer article section i.fa {
    float: left;
    font-size: 3rem;
    padding: 0 10px;
}
@media (max-width: 840px) {
    #shared-footer article section i.fa {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}
@media (max-width: 590px) {
    #shared-footer article section i.fa {
        font-size: 1.25rem;
        margin-bottom: 40px;
        margin-top: 3px;
    }
}
@media (max-width: 500px) {
    #shared-footer article section i.fa {
        margin-bottom: 0;
        font-size: 2rem;
        justify-content: center;
        text-align: center;
        float: none;
    }
}
#shared-footer #colophon {
    text-align: center;
    padding: 0 20px;
    font-size: 14px;
}
#shared-footer #colophon p,
#shared-footer #colophon a {
    color: #999;
}

/* fix lightboxed images in comments */
.lightbox-wrapper div.meta {
    display: none;
}

.lightbox-wrapper img {
    width: 100%;
    height: auto;    
}

/* mobile tweaks */
@media only screen and (max-width: 767px) {

    #info {
        margin:0;
    }

    #info > h1 {
        font-size: 20px;
    }

   article { width: 100%; }
   article p img { width: 100%; } 
   article .top h1 {
      width: 100%;
      overflow: auto;
      white-space: normal;
      text-overflow: inherit;
      font-size: 28px;
   }
   article .middle {
      width: 100%;
      padding-bottom: 66px;
   }

   nav#bar a.nav-link {
      min-width: 50px;
   }
  
   header section h1 {
      font-size: 25px;
      margin-left: 10px;       
   }
   header section h3 {
      margin-right: 10px;
   }
   header section {
      width: auto;
   }
   header input {
      width: auto;
      margin-right: 8px;
   } 

   #content {
      width: 90%;
      margin: 0;
      margin-left: 5%;
   }

   #posts {
      margin: 0;
      width: 100%;
    }

   footer #pagination {
      display: none;
   }

   /* get rid of category tags on mobile */
   .post-categories a {
     display: none;
   }
   article .top > span:last-of-type {
      display: none;
   }

   /* add space between name and date */
   article .top > span {
      margin-top: 10px;
   }
   article .top {
       padding: 5px 0;
   }
   article .top h1 {
      padding-bottom: 0 !important;
   }

   .left-button, .right-button {
        width: 100%;
   }
   .right-button a {
       margin-bottom: 20px;
   }
   .right-button a, .left-button a {
       line-height: 22px;
       text-align: left;
       padding: 8px 15px;
   }

   h3.reply-title {
     line-height: inherit;
     margin-top: 50px;
   }

   /* archives */

   article:not(.comment-body) {
       margin-bottom: 0;
       padding-bottom: 0;
   }

   article.archive {    
      height: auto;
      padding-bottom: 20px;   
   }

   article.archive .description {
       width: auto;
       margin-left: auto;
       margin-right: auto;
   }

   article.archive .description .middle {
       max-height: 150px;
   }
   
}