/* Shared download controls: preserve the document's language direction. */
.pc528-download-page { text-align: start; }
.pc528-download-page .pc528-site-declaration { text-align: start; }
.pc528-download-item > a { border-radius: 0; border-start-start-radius: 10px; border-end-start-radius: 10px; }
.pc528-download-page .pc528-download-item > .pc528-pwd { border: 0; border-inline-start: 1px solid #c5d8fc; border-radius: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; }
.pc528-download-item > a:only-child { border-radius: 10px; }
.pc528-download-page .license-mini-package { display: flex; flex-direction: column; }
.pc528-download-page .license-mini-package-meta { flex: 1; }
.pc528-download-page .license-mini-package .btn { margin-top: auto; }
.pc528-pwd bdi { direction: ltr; unicode-bidi: isolate; }
.pc528-download-item img, .btn img.pc-baidu-icon { margin: 0; margin-inline-end: 6px; flex-shrink: 0; object-fit: contain; vertical-align: middle; }
html[dir="rtl"] .pc528-download-page { font-family: inherit; line-height: 1.9; }
html[dir="rtl"] .pc528-file-row { gap: 7px; }
html[dir="rtl"] .pc528-file-row span { margin: 0; }
html[dir="rtl"] .pc528-file-row strong { font-family: inherit; unicode-bidi: plaintext; }
html[dir="rtl"] .pc528-download-page .license-mini-package-meta { font-size: 14px; line-height: 1.9; }
html[dir="rtl"] .pc528-download-page .license-mini-package-head { flex-wrap: wrap; }
html[dir="rtl"] .pc528-download-page .license-mini-package-head strong { font-size: 16px; }
html[dir="rtl"] .license-mini-package-head small { margin: 0; margin-inline-start: 3px; }
html[dir="rtl"] .pc528-download-page .btn { font-family: inherit; }
/* Grid lets longer Uyghur labels grow without covering the download button. */
html[dir="rtl"] .single .resource-download-frame {
    display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    gap: 10px 20px; padding: 22px 26px; min-height: 150px;
}
html[dir="rtl"] .single .resource-download-frame .resource-download-cta {
    min-height: 0; padding: 0; margin: 0; gap: 12px; align-self: center;
}
html[dir="rtl"] .single .resource-download-frame .resource-download-cta::after { display: none; }
html[dir="rtl"] .single .resource-download-frame .resource-download-cta-icon { display: grid; place-items: center; flex-shrink: 0; }
html[dir="rtl"] .single .resource-download-frame .resource-download-cta-body { display: flex; flex-wrap: wrap; gap: 10px; }
html[dir="rtl"] .single .resource-download-frame .resource-download-cta h3 { font-size: 20px; margin: 0; }
html[dir="rtl"] .single .resource-download-frame .resource-download-cta h3 { letter-spacing: normal; }
html[dir="rtl"] .single .resource-download-frame .resource-download-cta .btn { font-size: 15px; padding: 9px 14px; }
html[dir="rtl"] .single .resource-download-frame .resource-category-list {
    position: static; width: 100%; margin: 0; transform: none; align-self: center;
    grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
html[dir="rtl"] .single .resource-download-frame .resource-category-list a { font-size: 14px; line-height: 1.6; padding: 7px 9px; }
html[dir="rtl"] .single .resource-download-frame .resource-category-intro {
    position: static; width: auto; margin: 0; grid-column: 1; grid-row: 2;
    text-align: start; font-size: 14px; line-height: 1.8;
}
html[dir="rtl"] .single .resource-download-frame-top { min-height: 88px; padding: 16px 22px; }
html[dir="rtl"] .single .resource-download-frame-top .resource-category-list { grid-row: 1; }
html[dir="rtl"] .single .article-declaration-frame { margin-top: 16px; }
html[dir="rtl"] body.single-post .article-declaration-frame .entry-copyright { margin-top: 0; margin-bottom: 12px; }
@media (max-width: 767.98px) {
    html[dir="rtl"] .single .resource-download-frame { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 18px; min-height: 0; }
    html[dir="rtl"] .single .resource-download-frame .resource-category-list { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
    html[dir="rtl"] .single .resource-download-frame .resource-category-intro { grid-row: auto; }
    html[dir="rtl"] .pc528-download-page .license-mini-packages { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
    html[dir="rtl"] .pc528-download-page .license-mini-packages { grid-template-columns: minmax(0,1fr); }
    .pc528-download-item { max-width: 100%; }
    .pc528-download-item > a { overflow-wrap: anywhere; }
}
