body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Lato;
    -webkit-tap-highlight-color: initial;
}
#header + .container {
    margin-top: 44px;
    padding: 20px 8px;
    box-sizing: border-box;
}
#header a.link {
    color: inherit;
    display: block;
}
#links > .public-library {
    height: 41px;
    border-bottom: 3px solid #559;
}
.container h1 {
    margin-top: 1px;
    margin-left: 0;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}
.how-to-publish-lessons {
    position: absolute;
    top: 30px;
    right: 8px;
    text-decoration: underline;
}
form {
    position: relative;
    margin-bottom: 30px;
    font-size: 0;
}
.subject-area, .grade-level, .shared-by {
    margin-bottom: 20px;
    margin-right: 20px;
    display: inline-block;
}
form label, .grade-level label {
    font-size: 14px;
    width: auto;
    text-align: left;
    margin-bottom: 4px;
    display: inline-block;
}
select {
    width: 220px;
    max-height: 32px;
    color: #fff;
    overflow: hidden;
    border-radius: 4px;
}
.grade-level select {
    width: 120px;
}
.shared-by {
    margin-right: 44px;
}
.search {
    position: relative;
    display: inline-block;
    top: 6px;
}
.search-query {
    position: relative;
    width: 240px;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.search-query, .search-submit {
    right: 0;
}

@media (max-width: 530px) {
    .how-to-publish-lessons {
        width: 212px;
        white-space: nowrap;
        overflow: hidden;
    }
    .how-to-publish-lessons:before {
        content: 'How to publish lessons to here';
    }
}
@media (max-width: 440px) {
    .how-to-publish-lessons {
        width: 159px;   
    }
}
@media (max-width: 385px) {
    .how-to-publish-lessons {
        display: none;
    }
}
@media (max-width: 479px) {
    form .search-query {
        left: 0;
    }
    form .search-submit {
        top: 0;
    }
}

.docent-user {
    height: 74px;
    border-bottom: 1px solid #eee;
    line-height: 72px;
    text-align: center;
}
.docent-subject-area {
    margin: 6px 10px;
    text-transform: capitalize;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: 18px;
    line-height: 18px;
    color: #888;
    cursor: pointer;
}
.docent-subjects-container {
    float: left;
    width: 128px;
}
.docent-grade-levels {
    float: left;
    margin: 6px 10px;
    line-height: 18px;
    font-size: 16px;
    width: 150px;
    color: #888;
}
.docent-grade-levels span {
    cursor: pointer;
}
.docent-tags-container {
    float: left;
    width: 450px;
    width: calc(100% - 450px);
    margin: 1px 7px;
}
.docent-custom-tag {
    float: left;
    margin: 3px;
    font-size: 14px;
    line-height: 16px;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: #eee;
    font-weight: 300;
    cursor: pointer;
}
.share-to-twitter {
    float: right;
    font-family: Lato;
    font-size: 12px;
    border: 0;
    border-radius: 3px;
    background-color: #1DA1F2;
    color: white;
    height: 20px;
    margin: 5px 10px;
    line-height: 20px;
    padding: 0;
    padding-right: 6px;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    outline: 0;
}
.share-to-twitter i {
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    text-align: center;
    line-height: 20px;
}
.docent-user a {
    cursor: pointer;
}
.docent-user img {
    height: 32px;
    width: 32px;
    margin-bottom: -10px;
    margin-right: 5px;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.docent-created {
    position: absolute;
    right: 20px;
    top: 0;
    line-height: 74px;
    color: #888;
}
@media (max-width: 812px) and (min-width: 640px) {
    .shared-by {
        margin-right: 20px;
    }
}
@media (max-width: 567px) {
    .docent-wrapper {
        max-height: none;
    }
    .docent-user {
        line-height: 18px;
    }
    .docent-user img {
        display: none;
    }
    .docent-user-name {
        display: flex;
        justify-content: center;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    .docent-tags-container {
        max-width: calc(100% - 150px);
        width: auto;
    }
}
@media (max-width: 479px) {
    .docent-tags-container {
        max-width: 100%;
    }
}
