/**
 * MDr 是一套基于 MDUI 开发的 Typecho 模板
 */

table {
    width: 100%;
    border-radius: 2px;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid rgba(0, 0, 0, .12)
}

table td,
table th {
    padding: 6px 13px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    border-right: 1px solid rgba(0, 0, 0, .12)
}

table tr th:last-child,
table tr td:last-child {
    border-right: none
}

table tr:last-child td {
    border-bottom: none
}

.mdui-theme-layout-dark table,
.mdui-theme-layout-dark table td,
.mdui-theme-layout-dark table th {
    border-color: rgba(255, 255, 255, .12);
}

form.protected {
    margin: 0
}

form.protected p:last-child {
    position: relative;
    overflow: hidden;
    margin-bottom: 0
}

form.protected .word {
    margin: 0
}

form.protected .text {
    display: block;
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    padding: 8px 0;
    margin-bottom: 16px;
    overflow: hidden;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    color: rgba(0, 0, 0, .87);
    background: 0 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .42);
    transition: border-bottom-width .2s;
    border-radius: 0;
    outline: 0;
}

form.protected .text:hover,
form.protected .text:focus {
    border-bottom-width: 2px
}

.mdui-theme-layout-dark form.protected .text {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .7);
}

form.protected .submit {
    position: relative;
    height: 36px;
    padding: 0 16px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    color: inherit;
    text-align: center;
    background: 0 0;
    border: none;
    border-radius: 2px;
    outline: 0;
    display: block;
    width: 100%
}


/* TODO #19 */

a {
    color: #000;
    border: 0;
    text-decoration: none
}

.mdui-theme-layout-dark a {
    color: #fff;
}

ul {
    padding-left: 30px
}

ul li p {
    margin: 0
}

.mdui-theme-layout-dark img {
    filter: brightness(75%)
}

.avatar {
    border-radius: 50%
}

#post img,
#post video,
.comment-content img,
.comment-content video {
    max-width: 100%
}

.author-icon {
    font-size: 12px;
    line-height: 19px;
    text-align: center
}

@media(max-width: 1023px) {
    .mdui-container {
        padding: 0
    }

    footer {
        padding: 0 8px
    }
}

@media print {

    header,
    .mdui-fab,
    .mdr-breadcrumbs,
    .footer-nav,
    .respond {
        display: none !important
    }

    body {
        padding-top: 0px !important
    }

    .mdui-card {
        box-shadow: none !important
    }

    * {
        border-radius: 0 !important;
    }

    #post p a::after,
    #post li a::after {
        content: " (" attr(href) ") "
    }

    #main .mdui-card:first-child {
        margin-top: 0px !important
    }

    html>body {
        background-color: white !important
    }

    .mdui-theme-layout-dark main p,
    .mdui-theme-layout-dark main li {
        color: rgba(0, 0, 0, .95) !important
    }

    img {
        filter: brightness(100%) !important
    }

    body {
        font: 13pt Georgia, "Nimbus Roman No9 L", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", STSong, "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, serif !important
    }
}

#mdrDrawerL {
    z-index: 4000
}

#search .mdui-textfield {
    padding: 0 16px 16px
}

#mdrTab {
    transition: margin-top 1s;
    margin-top: -48px
}

#mdrTab .mdui-tab-indicator {
    top: 0
}

@media (min-width: 1440px) {
    .mdui-tab a {
        min-width: 112px !important;
    }
}

.cl-offset {
    top: -86px
}

#mdrDrawerLmenu .mdui-list {
    position: relative
}

#mdrDarkMode {
    position: absolute;
    top: 84px;
    right: 10px
}

#mdrDarkMode .mdui-icon {
    font-size: 18px
}

#mdrDrawerLtoc span {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .3);
    color: #fff;
    margin-right: 10px;
    font-weight: 400;
    min-width: 7px;
    text-align: center;
}

#post .mdui-card-header {
    padding-top: 8px;
    padding-bottom: 8px;
    height: 56px
}

div.mdui-card-header-avatar img {
    border-radius: 50%
}

#comments {
    margin-top: 8px
}

.comment-list,
.comment-list ol {
    padding: 0
}

.comment-list {
    margin-top: 8px
}

.respond {
    background-color: #ededed
}

.mdui-theme-layout-dark .respond {
    background-color: #292929
}

.respond .mdui-card-primary {
    padding-bottom: 0
}

.respond .mdui-card-content,
.respond .mdui-textfield:not(:first-child) {
    padding-top: 0
}

.respond #cancel-comment-reply-link {
    padding: 10px 0
}

.footer-nav {
    margin: 32px 0 16px
}

.footer-nav-left {
    text-align: left
}

.footer-nav-right {
    text-align: right
}

.footer-nav-inner {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased
}

.footer-nav-text {
    overflow: hidden;
    margin-left: 34px;
    height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.footer-nav-title {
    margin-bottom: 1px;
    font-size: 15px;
    line-height: 18px;
    opacity: .75
}

.footer-nav-icon {
    padding-top: 24px;
    width: 24px
}

.footer-nav-left .footer-nav-icon {
    float: left;
    margin-right: 10px
}

.footer-nav-right .footer-nav-icon {
    float: right;
    margin-left: 10px
}

.mdui-fab {
    z-index: 9999;
}

.comment-body {
    margin-bottom: 8px;
}

.comment-content {
    padding: 0px 16px;
}

.pingback {
    background-color: unset !important;
}

.ajaxload {
    height: 36px;
}

.ajaxload .next {
    text-align: center;
    width: 160px;
    border-radius: 18px;
    background: #e8e8e8;
}

.mdui-theme-layout-dark .ajaxload .next {
    background: #424242;
}

.error-page {
    margin: 256px 0 !important;
    text-align: center
}

.mdui-container {
    max-width: 896px;
}

#main>* {
    margin: 24px 0;
}

@media (max-width: 599px) {

    #main {
        margin-top: -8px;
    }

    #main>* {
        margin: 12px 0;
    }
}

.hidden {
    visibility: hidden;
}

/***** Material Design 2 ******/

.mdr-appbar-title {
    font-size: 1.25rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mdui-theme-layout-dark,
.mdui-theme-layout-dark header,
.mdui-theme-layout-dark aside {
    background: #121212 !important;
}

.mdui-theme-layout-dark .mdui-card {
    background-color: #212121 !important;
}

.mdui-appbar {
    transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
}

footer {
    font-size: .75rem !important;
    line-height: 1.25rem !important;
    opacity: 0.75 !important;
}

@media (min-width: 1024px) {
    .mdui-list-item {
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .mdui-list-dense .mdui-list-item {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

.mdui-card,
.mdui-menu {
    border-radius: 7px !important;
}

/***** Post ******/

@media (max-width: 600px) {
    .mdui-card-media {
        height: 175px;
    }
    .mdui-card-media img {
        height: 100%;
        object-fit: cover;
    }
}

/** Status Post **/

.post.status {
    background-color: #e8e8e8
}

.mdui-theme-layout-dark .post.status {
    background-color: #424242
}

.mdui-theme-layout-dark .post.status .inner {
    color: hsla(0, 0%, 100%, .8) !important
}

.post.status .tag,
.post.status .time {
    position: absolute;
    top: 0;
    font-size: 15px
}

.mdui-theme-layout-dark .post.status .tag {
    background-color: #424242;
}

.mdui-theme-layout-dark .post.status .time {
    color: #5a5a5a;
}

.post.status .tag {
    left: 15px;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    background-color: #dadada;
    color: grey
}

.post.status .time {
    right: 0;
    padding: 14px 12px;
    color: #bcbcbc;
}

.post.status .inner {
    font-size: 16px;
    padding: 70px 16px 24px
}

.mdr-icon-info {
    font-size: 14px;
    padding-bottom: 2px;
}

/* Page Navigator */

.page-navigator {
    list-style: none;
    margin: 20px 0;
    padding: 0px
}

.page-navigator li {
    display: inline-block;
    margin-right: 8px;
    height: 36px;
    border-radius: 3px;
    line-height: 36px;
    color: #000;
    font-size: 14px;
    background: #e8e8e8;
    text-align: center;
    -webkit-transition: -webkit-box-shadow .25s cubic-bezier(.4, 0, .2, 1);
    transition: -webkit-box-shadow .25s cubic-bezier(.4, 0, .2, 1);
    transition: box-shadow .25s cubic-bezier(.4, 0, .2, 1);
    transition: box-shadow .25s cubic-bezier(.4, 0, .2, 1), -webkit-box-shadow .25s cubic-bezier(.4, 0, .2, 1);
    will-change: box-shadow;
}

.mdui-theme-layout-dark .page-navigator li {
    background: #444;
    color: #fff
}

.page-navigator li:hover,
.page-navigator li:focus {
    -webkit-box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%);
    box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%);
}

.page-navigator a,
.page-navigator span {
    padding: 11px 16px
}

.page-navigator.ajaxload .next {
    width: 100%
}

/** Links Page **/

.link-card {
    padding-top: 100%;
}

.link-card>* {
    position: absolute;
    bottom: 0;
}