@font-face {
    font-family: 'Shamela Footer';
    src: url('DroidArabicKufiRegular.ttf') format('truetype');
    font-display: swap;
}

/* The public footer's appearance, with the AI page's compact height. */
#footer.site-footer {
    flex: 0 0 auto;
    background: linear-gradient(to bottom, #555 0%, #313131 100%);
    color: rgba(255, 255, 255, .6);
    font-family: 'Shamela Footer', Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

body.night #footer.site-footer {
    background: #0d0d0d;
    border-top: 1px solid #262626;
}

#footer .site-footer-inner {
    box-sizing: border-box;
    width: min(1170px, 100%);
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 24px;
    direction: rtl;
    font: inherit !important;
}

#footer.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer.site-footer a { color: inherit; text-decoration: none; }
#footer.site-footer a:hover { color: rgba(255, 255, 255, .9); }
#footer .site-footer-brand { white-space: nowrap; }

#toTop.site-scroll-top {
    position: fixed;
    left: 6px;
    right: auto;
    bottom: var(--site-footer-height, 46px) !important;
    z-index: 1000;
    width: 40px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    opacity: .9;
    border-radius: 2px;
    text-decoration: none;
}

#toTop.site-scroll-top[hidden] { display: none !important; }
#toTop.site-scroll-top:not([hidden]) { display: flex !important; }
#toTop.site-scroll-top::before { content: none; }
#toTop.site-scroll-top:hover { background: rgba(0, 0, 0, .7); }
#toTop.site-scroll-top svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
