/*
 * Footer.
 *
 * The social links and the policy links used to sit on a full-width strip of
 * their own, under a rule, below the four columns -- a band holding two small
 * things, with the rest of the footer already ended. They are in the first
 * column now, under the logo and the description, which is the part of the
 * footer that is about the company.
 *
 * They keep the .lower-footer class, because the pill styling for the icons is
 * scoped to it in style_en.css and style_ar.css. Everything that class carries
 * for a strip rather than for a column is undone here.
 */

.site-footer .footer-aside-links {
    border-top: 0;
    padding-top: 0;
    margin-top: 28px;
}

/*
 * This column is a .widget_text, and that widget styles its lists for the
 * contact block in the last column: 10px above, 24px between items, 25px of
 * leading padding and the icon absolutely positioned into it. That is how
 * "phone / email / address" is laid out, and none of it belongs to a row of
 * social icons or a pair of policy links -- applied to them it put every glyph
 * outside and to the left of its own circle, and left the two policy links on
 * different baselines.
 */
.site-footer .footer-aside-links ul {
    margin-top: 0;
}

.site-footer .footer-aside-links ul li {
    margin-bottom: 0;
}

.site-footer .footer-aside-links .social-icon li i {
    position: static;
}

/*
 * The icons were centred in a right-aligned column. Here they start where the
 * description starts, so the leading margin goes and the gap moves to the end
 * of each one. Logical properties throughout: the footer is mirrored on the
 * Arabic site.
 */
.site-footer .footer-aside-links .social-icon li {
    margin: 0;
    margin-inline-end: 10px;
    padding: 0;
}

.site-footer .footer-aside-links .social-icon li:last-child {
    margin-inline-end: 0;
}

.site-footer .footer-aside-links .footer-menu {
    margin-top: 18px;
}

/*
 * Restated because the widget's 25px would otherwise push these items apart.
 * The 10px is the theme's own spacing, which the "|" separator sits in.
 */
.site-footer .footer-aside-links .footer-menu ul li {
    padding-inline: 10px;
}

/* Nothing precedes the first item, so its leading padding only knocks the row
   out of line with the description above it. */
.site-footer .footer-aside-links .footer-menu ul li:first-child {
    padding-inline-start: 0;
}

/*
 * Under 768px both rows were centred, which was right while they were a strip
 * across the whole width of the footer. They are a column's content now, so
 * they line up with the description above them like everything else in it.
 */
@media screen and (max-width: 767px) {
    .site-footer .footer-aside-links .social-icon ul,
    .site-footer .footer-aside-links .footer-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }
}
