body {
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container-fluid {
    max-width: 1360px;
}

.section2,
.satena-list-page,
.satena-article-page,
.satena-footer {
    margin-right: auto;
    margin-left: auto;
}

.header,
.header > .container-fluid,
.header .topmenu,
.header .navs,
.footer,
.footer > .container-fluid {
    max-width: none;
    width: 100%;
}

.logo img {
    max-height: 92px;
    object-fit: contain;
}

.ad-slot {
    text-align: center;
}

.ad-slot img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.banner .ad-slot img {
    max-height: 90px;
}

.navbar-default .navbar-nav > li.dropdown {
    position: relative;
}

.navbar-default .navbar-nav > li > a .caret {
    margin-right: 6px;
    margin-left: 0;
}

.navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 190px;
    padding: 0;
    text-align: right;
    border: 0;
    border-radius: 0;
    background: #233c66;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.navbar-default .navbar-nav > li.dropdown:hover > .dropdown-menu,
.navbar-default .navbar-nav > li.dropdown:focus-within > .dropdown-menu {
    display: block;
}

.navbar .dropdown-menu > li > a {
    color: #fff;
    padding: 10px 14px;
    line-height: 1.8;
    white-space: nowrap;
}

.navbar .dropdown-menu > li > a:hover,
.navbar .dropdown-menu > li > a:focus {
    color: #75d5ff;
    background: #1b375a;
}

.section2 .carousel .item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.section2 .tab-content {
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.section2 .tab-content ul,
.section2 .nav-tabs {
    padding-right: 0;
}

.section2 .tab-content li {
    align-items: flex-start;
    display: flex;
    gap: 7px;
    line-height: 1.85;
}

.section2 .tab-content li i,
.satena-side-list i {
    flex: 0 0 auto;
    margin-top: 8px;
}

.post img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.post h3 {
    line-height: 1.8;
}

.post a h3 {
    color: inherit;
}

.post .abstract {
    line-height: 2;
}

.postdetail h1 {
    font-size: 24px;
    line-height: 1.9;
    margin: 16px 0;
}

.postdetail > img {
    margin: 0 auto 18px;
    max-height: 540px;
    object-fit: contain;
}

.postcontent {
    font-size: 15px;
    line-height: 2.2;
}

.postcontent img {
    max-width: 100%;
    height: auto;
}

.postcontent table,
.satena-comment-body table,
.satena-editor-reply table {
    background: #fff;
    border-collapse: collapse;
    display: block;
    margin: 14px 0;
    max-width: 100%;
    overflow-x: auto;
    width: max-content;
}

.postcontent th,
.postcontent td,
.satena-comment-body th,
.satena-comment-body td,
.satena-editor-reply th,
.satena-editor-reply td {
    border: 1px solid #d8d8d8;
    padding: 8px 10px;
    vertical-align: top;
}

.postcontent th,
.satena-comment-body th,
.satena-editor-reply th {
    background: #f0f0f0;
    font-weight: 700;
}

.postcontent blockquote,
.satena-comment-body blockquote,
.satena-editor-reply blockquote {
    background: #f7f7f7;
    border-right: 4px solid #606062;
    color: #444;
    margin: 12px 0;
    padding: 10px 14px;
}

.postcontent pre,
.postcontent code,
.satena-comment-body pre,
.satena-comment-body code,
.satena-editor-reply pre,
.satena-editor-reply code {
    background: #f4f4f4;
    border: 1px solid #e1e1e1;
    direction: ltr;
    font-family: Consolas, Monaco, monospace;
}

.postcontent pre,
.satena-comment-body pre,
.satena-editor-reply pre {
    overflow-x: auto;
    padding: 10px;
}

.postcontent ul,
.postcontent ol,
.satena-comment-body ul,
.satena-comment-body ol,
.satena-editor-reply ul,
.satena-editor-reply ol {
    margin: 10px 22px;
    padding: 0;
}

.satena-side-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.satena-side-list li {
    border-bottom: 1px solid #eee;
    line-height: 2;
    padding: 7px 0;
}

.satena-side-list i {
    color: #d71920;
    margin-left: 7px;
}

.satena-list-title {
    background: #fff;
    border-bottom: 2px solid #d71920;
    margin-bottom: 15px;
    padding: 12px 16px;
}

.satena-list-title h1 {
    font-size: 22px;
    margin: 0;
}

.satena-list-title p {
    color: #777;
    margin: 10px 0 0;
}

.satena-tags,
.satena-source {
    background: #fff;
    margin: 12px 0;
    padding: 12px;
}

.satena-tags a {
    background: #f2f2f2;
    color: #333;
    display: inline-block;
    margin: 4px;
    padding: 5px 10px;
}

.comment-msg {
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.comment-msg-success {
    background: #dff0d8;
    color: #3c763d;
}

.comment-msg-error {
    background: #f2dede;
    color: #a94442;
}

.satena-comments,
.satena-comment-form {
    margin-top: 18px;
}

.satena-comments h3 {
    background: #ed3237;
    border: 0;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    margin-bottom: 0;
    padding: 10px;
}

.satena-comment-form h3 {
    background: #606062;
    border: 0;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    margin-bottom: 0;
    padding: 10px;
}

.satena-empty-comments {
    color: #777;
    margin: 0;
    padding: 12px;
}

.satena-comment {
    background: #efefef;
    border: 1px solid #efefef;
    border-radius: 0;
    margin: 0 15px 10px;
    padding: 12px;
}

.satena-comment-children {
    margin-top: 12px;
    margin-right: 22px;
}

.satena-comment.level-1,
.satena-comment.level-2,
.satena-comment.level-3,
.satena-comment.level-4 {
    background: #f7f7f7;
}

.satena-comment-head {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
}

.satena-comment-head span {
    color: #888;
    flex: 0 0 auto;
    font-size: 12px;
}

.satena-comment-author {
    align-items: center;
    color: #333;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.satena-comment-badge {
    border-radius: 3px;
    height: 18px;
    width: 18px;
}

.satena-comment-body {
    color: #333;
    line-height: 2;
    padding: 10px 0;
    word-break: break-word;
}

.satena-editor-reply {
    background: #bfe7f8;
    border: 1px solid #bfe7f8;
    color: #333;
    line-height: 2;
    margin-top: 8px;
    padding: 9px 12px;
}

.satena-reply-btn {
    border: 1px solid #606062;
    color: #606062;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 11px;
}

.satena-reply-btn:hover {
    background: #606062;
    color: #fff;
}

.satena-reply-info {
    background: #fff8e1;
    border: 1px solid #f0d98c;
    color: #5f4b00;
    display: none;
    line-height: 2;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.satena-reply-info a {
    color: #d71920;
    font-weight: 700;
    margin-right: 12px;
}

.satena-comment-form .border {
    border: 2px solid #606062;
    border-radius: 0 0 5px 5px;
    border-top: none;
    margin-left: 15px;
    margin-right: 15px;
    padding: 18px 24px 10px;
}

.satena-comment-form .form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    min-height: 42px;
}

.satena-comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.satena-comment-form .form-control:focus {
    border-color: #d71920;
    box-shadow: none;
}

.captcha-field {
    align-items: center;
    display: flex;
    gap: 10px;
}

.captcha-field img {
    border: 1px solid #ddd;
    height: 42px;
    object-fit: contain;
}

.satena-comment-form .btn-success {
    background: #606062;
    border-color: #606062;
    border-radius: 0;
    min-width: 130px;
}

.satena-footer-ad {
    margin-top: 24px;
}

.satena-footer-wrap,
.satena-footer-wrap .footer {
    max-width: none;
    width: 100%;
}

.satena-footer-wrap .footer > .container-fluid {
    max-width: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.pagination svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 767px) {
    .container-fluid {
        max-width: 100%;
    }

    .header .topmenu,
    .header .navs,
    .content,
    .post,
    .satena-comments,
    .satena-comment-form,
    .satena-footer {
        width: 100%;
    }

    .topmenu .col-xs-3 {
        width: 100%;
        text-align: center;
    }

    .logo img {
        max-width: 220px !important;
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        background: #1b375a;
    }

    .navbar .dropdown-menu > li > a {
        padding-right: 28px;
    }

    .post img {
        height: auto;
    }

    .section2 .carousel .item img {
        height: 220px;
    }

    .section2 .tab-content {
        max-height: none;
        min-height: 0;
    }

    .post .col-md-4,
    .post .col-md-8,
    .satena-article-page .col-sm-8,
    .satena-list-page .col-sm-8 {
        padding-right: 0;
        padding-left: 0;
    }

    .postdetail h1 {
        font-size: 20px;
    }

    .satena-comment {
        padding: 10px;
    }

    .satena-comment-children {
        margin-right: 10px;
    }

    .satena-comment-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .captcha-field {
        align-items: stretch;
        flex-direction: column;
    }

    .footerlinks {
        border-radius: 12px 12px 0 0;
        max-width: calc(100% - 20px);
        padding: 6px 8px;
    }

    .footer li {
        border-left: 0;
        display: inline-block;
        line-height: 2;
    }

    .satena-comment-form .border {
        margin-left: 0;
        margin-right: 0;
        padding: 14px 10px 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .section2 .carousel .item img {
        height: 300px;
    }

    .satena-comment-children {
        margin-right: 16px;
    }
}

.satena-footer-logo {
    display: block;
    max-height: 58px;
    width: auto;
    margin: 0 auto 10px;
}
