:root {
    color-scheme: light;
    --surface-base: #ebebeb;
    --text-primary: #43555f;
    --progress-track: #dcdcdc;
    --progress-indicator: #3773bf;
    --surface-raised: #f5f5f5;
    --surface-sunken: #dedede;
    --surface-overlay: #f5f5f5;
    --surface-backdrop: rgba(48, 48, 48, 0.45);
    --text-secondary: #4a5c66;
    --text-muted: #5f5f5f;
    --text-inverted: #ffffff;
    --border-subtle: #dcdcdc;
    --border-strong: #c0c0c0;
    --border-focus: #3773bf;
    --brand-solid: #3773bf;
    --brand-solid-hover: #4a86d2;
    --brand-on-solid: #ffffff;
    --brand-soft: #dbe6f5;
    --brand-soft-hover: #c7d9ef;
    --brand-on-soft: #2b5c99;
    --brand-gradient-from: #3773bf;
    --brand-gradient-to: #e07047;
    --state-success-solid: #55bf3b;
    --state-success-soft: #e7f5e2;
    --state-success-text: #33701f;
    --state-warning-solid: #d98c1f;
    --state-warning-soft: #fbf0dd;
    --state-warning-text: #8f5a0a;
    --state-danger-solid: #df5353;
    --state-danger-soft: #fbe4e4;
    --state-danger-text: #a82f2f;
    --state-info-solid: #3773bf;
    --state-info-soft: #dbe6f5;
    --state-info-text: #2b5c99;
    --sidebar-surface: #e6e6e6;
    --sidebar-border: #d5d5d5;
    --sidebar-item-text: #4a5c66;
    --sidebar-item-hover-bg: #dcdcdc;
    --sidebar-item-hover-text: #43555f;
    --sidebar-item-active-bg: #dbe6f5;
    --sidebar-item-active-text: #2b5c99;
    --sidebar-item-active-border: #3773bf;
    --sidebar-section-label: #55636a;
    --accent-metrics: #3f8a2b;
    --accent-access: #3773bf;
    --accent-sources: #c05f2c;
    --accent-schedule: #a83b7a;
    --progress-indicator-glow: #6ea3e0;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        color-scheme: dark;
        --surface-base: #2b2b2b;
        --text-primary: #dbe1e8;
        --progress-track: #4e5254;
        --progress-indicator: #6897bb;
        --surface-raised: #3c3f41;
        --surface-sunken: #242627;
        --surface-overlay: #3c3f41;
        --surface-backdrop: rgba(0, 0, 0, 0.6);
        --text-secondary: #a9b7c6;
        --text-muted: #a4acb5;
        --text-inverted: #2b2b2b;
        --border-subtle: #4e5254;
        --border-strong: #616669;
        --border-focus: #6897bb;
        --brand-solid: #4b6eaf;
        --brand-solid-hover: #5a80c4;
        --brand-on-solid: #ffffff;
        --brand-soft: #2f3a4a;
        --brand-soft-hover: #38455a;
        --brand-on-soft: #9dbde0;
        --brand-gradient-from: #6897bb;
        --brand-gradient-to: #9876aa;
        --state-success-solid: #6a8759;
        --state-success-soft: #26301f;
        --state-success-text: #8fb37c;
        --state-warning-solid: #ffc66d;
        --state-warning-soft: #3a3220;
        --state-warning-text: #ffd18a;
        --state-danger-solid: #cf5b56;
        --state-danger-soft: #3a2523;
        --state-danger-text: #e07b76;
        --state-info-solid: #6897bb;
        --state-info-soft: #263442;
        --state-info-text: #8db3d4;
        --sidebar-surface: #3c3f41;
        --sidebar-border: #4e5254;
        --sidebar-item-text: #a9b7c6;
        --sidebar-item-hover-bg: #4a4d4f;
        --sidebar-item-hover-text: #dbe1e8;
        --sidebar-item-active-bg: #2f4570;
        --sidebar-item-active-text: #b7cff0;
        --sidebar-item-active-border: #6897bb;
        --sidebar-section-label: #a6acb2;
        --accent-metrics: #6a8759;
        --accent-access: #9876aa;
        --accent-sources: #cc7832;
        --accent-schedule: #ffc66d;
        --progress-indicator-glow: #9dbde0;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --surface-base: #2b2b2b;
    --text-primary: #dbe1e8;
    --progress-track: #4e5254;
    --progress-indicator: #6897bb;
    --surface-raised: #3c3f41;
    --surface-sunken: #242627;
    --surface-overlay: #3c3f41;
    --surface-backdrop: rgba(0, 0, 0, 0.6);
    --text-secondary: #a9b7c6;
    --text-muted: #a4acb5;
    --text-inverted: #2b2b2b;
    --border-subtle: #4e5254;
    --border-strong: #616669;
    --border-focus: #6897bb;
    --brand-solid: #4b6eaf;
    --brand-solid-hover: #5a80c4;
    --brand-on-solid: #ffffff;
    --brand-soft: #2f3a4a;
    --brand-soft-hover: #38455a;
    --brand-on-soft: #9dbde0;
    --brand-gradient-from: #6897bb;
    --brand-gradient-to: #9876aa;
    --state-success-solid: #6a8759;
    --state-success-soft: #26301f;
    --state-success-text: #8fb37c;
    --state-warning-solid: #ffc66d;
    --state-warning-soft: #3a3220;
    --state-warning-text: #ffd18a;
    --state-danger-solid: #cf5b56;
    --state-danger-soft: #3a2523;
    --state-danger-text: #e07b76;
    --state-info-solid: #6897bb;
    --state-info-soft: #263442;
    --state-info-text: #8db3d4;
    --sidebar-surface: #3c3f41;
    --sidebar-border: #4e5254;
    --sidebar-item-text: #a9b7c6;
    --sidebar-item-hover-bg: #4a4d4f;
    --sidebar-item-hover-text: #dbe1e8;
    --sidebar-item-active-bg: #2f4570;
    --sidebar-item-active-text: #b7cff0;
    --sidebar-item-active-border: #6897bb;
    --sidebar-section-label: #a6acb2;
    --accent-metrics: #6a8759;
    --accent-access: #9876aa;
    --accent-sources: #cc7832;
    --accent-schedule: #ffc66d;
    --progress-indicator-glow: #9dbde0;
}

html[data-theme="light"] {
    color-scheme: light;
    --surface-base: #ebebeb;
    --text-primary: #43555f;
    --progress-track: #dcdcdc;
    --progress-indicator: #3773bf;
    --surface-raised: #f5f5f5;
    --surface-sunken: #dedede;
    --surface-overlay: #f5f5f5;
    --surface-backdrop: rgba(48, 48, 48, 0.45);
    --text-secondary: #4a5c66;
    --text-muted: #5f5f5f;
    --text-inverted: #ffffff;
    --border-subtle: #dcdcdc;
    --border-strong: #c0c0c0;
    --border-focus: #3773bf;
    --brand-solid: #3773bf;
    --brand-solid-hover: #4a86d2;
    --brand-on-solid: #ffffff;
    --brand-soft: #dbe6f5;
    --brand-soft-hover: #c7d9ef;
    --brand-on-soft: #2b5c99;
    --brand-gradient-from: #3773bf;
    --brand-gradient-to: #e07047;
    --sidebar-surface: #e6e6e6;
    --sidebar-border: #d5d5d5;
    --sidebar-item-text: #4a5c66;
    --sidebar-item-hover-bg: #dcdcdc;
    --sidebar-item-hover-text: #43555f;
    --sidebar-item-active-bg: #dbe6f5;
    --sidebar-item-active-text: #2b5c99;
    --sidebar-item-active-border: #3773bf;
    --sidebar-section-label: #55636a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: var(--surface-base);
    color: var(--text-primary);
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-solid);
    text-decoration: none;
}
a:hover {
    color: var(--brand-solid-hover);
}

.main-menu {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-up {
    display: flex;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline-end: 12px;
}

.menu-up ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 8px 16px;
    flex: 1;
    flex-wrap: wrap;
}

.menu-up a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 6px;
}

.menu-up a.current,
.menu-up a:hover {
    background: var(--brand-soft);
    color: var(--brand-on-soft);
}

.menu-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
}

header {
    cursor: pointer;
    background: linear-gradient(90deg, #3d3f41, #625a66);
    padding: 18px 16px;
}

.css_top_s_title {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.cssetup {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "side main";
    gap: 0;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
}

/* DOM order: main then aside; visual order: aside left */
.cssetup > main.content {
    grid-area: main;
}
.cssetup > aside {
    grid-area: side;
}

.cssetup aside {
    position: sticky;
    top: 56px; /* under sticky .main-menu */
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow: auto;
    background: var(--sidebar-surface);
    border-inline-end: 1px solid var(--sidebar-border);
    padding: 12px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.cssetup aside ul {
    list-style: none;
    margin: 0;
    padding: 0 8px 24px;
}

.cssetup aside a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-item-text);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.cssetup aside a:hover {
    background: var(--sidebar-item-hover-bg);
    color: var(--sidebar-item-hover-text);
}

.cssetup aside img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
}

.title_content {
    color: var(--sidebar-section-label);
    font-weight: 700;
    padding: 10px 16px;
}

ul.lang {
    list-style: none;
    margin: 0;
    padding: 0 8px 16px;
}

ul.lang a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-item-text);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
}

ul.lang a:hover,
ul.lang li.current a {
    background: var(--sidebar-item-hover-bg);
    color: var(--sidebar-item-hover-text);
}

ul.lang svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
    border-radius: 50%;
    overflow: hidden;
}

.lang-hub {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 0;
}

.hub-lead {
    grid-column: 1 / -1;
    color: var(--text-secondary);
}

.theme-toggle {
    border: 1px solid var(--border-subtle);
    background: var(--surface-sunken);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Beat Font Awesome .fa-solid { display: inline-block } (loads after this file) */
.theme-toggle .theme-icon-dark {
    display: inline-block !important;
}
.theme-toggle .theme-icon-light {
    display: none !important;
}
html[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: none !important;
}
html[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: inline-block !important;
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle .theme-icon-dark {
        display: none !important;
    }
    html:not([data-theme="light"]) .theme-toggle .theme-icon-light {
        display: inline-block !important;
    }
}

.block_d:has(.card-body) {
    grid-column: 1 / -1;
}

.card-excerpt,
.card-body {
    padding: 0 14px 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.card-body {
    color: var(--text-primary);
}

.card-body h2 {
    font-size: 1.25em;
    margin: 1.2em 0 0.5em;
}

.content {
    padding: 12px 16px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.menu_but,
.close_menu {
    display: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-sunken);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
}

.menu-up .menu_but {
    margin-inline-end: 8px;
    flex-shrink: 0;
}

.block_d {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.block_d:hover {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--brand-soft);
}

.title_d_cs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-weight: 700;
}

.title_d_cs h1,
.title_d_cs h2,
.title_d_cs h3,
.title_d_cs span {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.csicon_title {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.title_d_cs span,
.title_d_cs h1[onclick],
.title_d_cs h2[onclick] {
    cursor: pointer;
}

.cont_d_cs {
    cursor: pointer;
    background: var(--surface-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cont_d_cs img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.cont_info_cs {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Screenshot strip under cover (inside .block_d, not a grid item) */
.shot-strip {
    padding: 12px;
}

.shot-strip-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    justify-content: space-evenly;
    -webkit-overflow-scrolling: touch;
}

.shot-strip-track::-webkit-scrollbar {
    height: 6px;
}

.shot-strip-track::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

.shot-thumb {
    flex: 0 0 auto;
    width: 120px;
    height: 68px;
    padding: 0;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-sunken);
}

.shot-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-thumb:hover,
.shot-thumb.is-active {
    border-color: var(--brand-solid);
}

.shot-modal[hidden] {
    display: none !important;
}

.shot-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

/* Dialog shrink-wraps the image so controls sit on its real edges */
.shot-modal-dialog {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 96vw;
    max-height: 92vh;
    line-height: 0;
}

.shot-modal-img {
    display: block;
    max-width: 96vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    background: #111;
}

.shot-modal-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shot-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shot-modal-prev {
    inset-inline-start: 8px;
}
.shot-modal-next {
    inset-inline-end: 8px;
}

.shot-modal-close:hover,
.shot-modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

body.shot-modal-open {
    overflow: hidden;
}

.entry-content,
.excerpt,
.entry-meta,
.post-cover,
.gallery,
.download-wrap,
.empty-note,
.load-more-wrap,
.pagination,
article.post,
.error-page {
    grid-column: 1 / -1;
}

.error-page {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
}

.error-code {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    color: var(--brand-solid);
    line-height: 1;
}

.error-page h2 {
    margin: 12px 0 8px;
}

.error-page p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 12px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.error-actions .download-btn {
    flex: 0 1 auto;
    min-width: 160px;
}

.error-home {
    font-weight: 700;
}

article.post {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px;
}

.entry-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.post-cover img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 12px 14px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 180px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    border: 0;
    color: #fff !important;
    background: #2563eb;
}

.download-btn i {
    font-size: 1.05em;
}

.download-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.download-btn-exe {
    background: #2563eb;
}

.download-btn-exe:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.download-btn-torrent {
    background: #16a34a;
}

.download-btn-torrent:hover {
    background: #15803d;
    color: #fff !important;
}

.share-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px 16px;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    color: #fff !important;
    background: #4b5563;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}

.share-btn:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.share-btn-facebook { background: #1877f2; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-telegram { background: #229ed9; }
.share-btn-ok { background: #ee8208; }
.share-btn-x { background: #111; }
.share-btn-native { background: #6366f1; }
.share-btn-copy { background: #64748b; }
.share-btn-copy.is-copied { background: #16a34a; }

.item-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 18px;
    text-align: center;
}

.item-rating-stars {
    display: inline-flex;
    gap: 4px;
    font-size: 22px;
    line-height: 1;
    color: #edb867;
}

.item-rating-stars .fa-regular {
    color: #c4c4c4;
}

.item-rating-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.item-rating-sep {
    margin: 0 4px;
    opacity: .7;
}

.load-more,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface-raised);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.load-more:hover,
.page-numbers:hover,
.page-numbers.current {
    background: var(--brand-solid);
    color: var(--brand-on-solid);
    border-color: var(--brand-solid);
}

.load-more-wrap,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.to-top {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-solid);
    color: var(--brand-on-solid);
    cursor: pointer;
    box-shadow: 0 8px 24px var(--surface-backdrop);
    z-index: 50;
}

.to-top[hidden] {
    display: none;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
    background: var(--surface-sunken);
    color: var(--text-secondary);
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    border-top: 1px solid var(--border-subtle);
}

.fot_b {
    max-width: 800px;
    margin: 0 auto;
    /* Keep disclaimer/copyright LTR even on RTL catalogs */
    direction: ltr;
    unicode-bidi: isolate;
}

footer a {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .cssetup {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
    }
    .cssetup > aside {
        grid-area: unset;
        position: fixed;
        top: 0;
        align-self: stretch;
        max-height: none;
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        z-index: 60;
        transform: translateX(-110%);
        transition: transform 0.2s ease;
        box-shadow: 8px 0 30px var(--surface-backdrop);
    }
    .cssetup aside.active {
        transform: none;
    }
    html[dir="rtl"] .cssetup > aside {
        inset: 0 0 0 auto;
        transform: translateX(110%);
        box-shadow: -8px 0 30px var(--surface-backdrop);
    }
    html[dir="rtl"] .cssetup aside.active {
        transform: none;
    }
    .menu_but,
    .close_menu {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .content {
        grid-template-columns: 1fr;
    }
}

/* RTL catalogs (e.g. Arabic): dir=rtl mirrors the grid; keep text/start alignment logical */
html[dir="rtl"] .entry-content,
html[dir="rtl"] .card-excerpt,
html[dir="rtl"] .card-body,
html[dir="rtl"] .title_d_cs,
html[dir="rtl"] .cont_info_cs,
html[dir="rtl"] .title_content,
html[dir="rtl"] .archive-h1,
html[dir="rtl"] .empty-note {
    text-align: start;
}

html[dir="rtl"] .entry-content ul,
html[dir="rtl"] .entry-content ol,
html[dir="rtl"] .card-body ul,
html[dir="rtl"] .card-body ol {
    padding-inline-start: 1.35em;
}

@media (max-width: 640px) {
    .css_top_s_title {
        font-size: 16px;
    }
    .menu-up a span,
    .menu-up a {
        font-size: 12px;
    }
}
