* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body#print {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Assistant", Roboto, Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    padding: 20px;
    direction: rtl;
}

#wrap {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

#page-header {
    border-bottom: 4px solid #10b981;
    padding-bottom: 25px;
    margin-bottom: 40px;
    position: relative;
    min-height: 160px;
}

.header-branding {
    text-align: center;
    margin-bottom: 25px;
}

.print-logo img {
    max-width: 280px;
    height: auto;
}

.header-info-area {
    padding-left: 140px;
}

.topic-info h1 {
    font-size: 22pt;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}

.site-desc {
    font-size: 11pt;
    color: #059669;
    font-weight: bold;
    margin-bottom: 5px;
}

.topic-url {
    font-size: 8pt;
    color: #666;
    font-style: italic;
}

.header-qr {
    position: absolute;
    left: 0;
    bottom: 25px;
    text-align: center;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    width: auto;
}

#qrcode {
    width: 110px;
    height: 110px;
    display: block;
}

#qrcode img {
    width: 100%;
    height: auto;
}

.qr-label {
    display: block;
    font-size: 7.5pt;
    color: #444;
    margin-top: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.post {
    margin-bottom: 30px;
}

.post-header-meta {
    display: flex;
    justify-content: space-between;
    background: #f0fdf4;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 10pt;
    border: 1px solid #dcfce7;
}

.meta-label {
    font-weight: bold;
    color: #333;
}

.author-name {
    font-weight: 800;
    font-size: 11pt;
}

.rank-title {
    font-size: 9pt;
    color: #666;
    margin-right: 5px;
    font-weight: normal;
}

.post-content {
    font-size: 11.5pt;
    text-align: justify;
    padding: 0 5px;
    color: #111;
}

.post-separator {
    border-bottom: 1px dashed #10b981;
    margin: 40px 0;
    opacity: 0.5;
}

#page-footer {
    border-top: 2px solid #10b981;
    margin-top: 60px;
    padding-top: 15px;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 9pt;
}

.footer-page-num {
    font-weight: bold;
    padding: 5px 123px;
    background: #10b981;
    color: #fff;
    border-radius: 4px;
}

blockquote,
.postquote {
    border-right: 4px solid #10b981;
    background: #f9fafb;
    margin: 20px 0;
    padding: 15px 25px;
    font-style: italic;
}

ul,
ol {
    margin-right: 40px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

.signature,
.noprint,
.postprofile,
hr {
    display: none !important;
}

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

@media print {
    body#print {
        padding: 0;
    }

    #wrap {
        width: 100%;
    }

    .post-header-meta,
    .footer-page-num,
    .header-qr {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}