/* The footer's links (DBIM 5.6, Figure 33): columns under a title. The same file in the four apps.
   It is linked from Home/footer.jsp, so after a change only the version number there has to go up.
   Colours and sizes are the dbim.css tokens. High contrast needs no rules here: the high-contrast stylesheet already
   turns links and Bootstrap's text-white (the titles) yellow, and gives .footer-bottom its yellow line. */
.dbim-footer-top {
    padding: 1.5rem 0 0.25rem;
}
.dbim-footer-title {
    margin: 0 0 0.5rem;
    font-size: var(--dbim-fs-p1);
    font-weight: 700;
}
.dbim-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
@media (min-width: 992px) {
    .dbim-footer-follow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* minmax(0, 1fr): a long translated label wraps inside its column instead of widening the page */
@media (max-width: 575.98px) {
    .dbim-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* An inline block with its own padding: the whole padded box belongs to the link, so a tap cannot land on a neighbour */
.dbim-footer-links a {
    display: inline-block;
    padding: 0.375rem 0;
    color: var(--dbim-white);
    text-decoration: none;
    overflow-wrap: anywhere;
}
/* The second line gives the mark an empty spoken text; browsers that do not know that form keep the first line */
.dbim-footer-links a::before {
    content: "\203A";
    content: "\203A" / "";
    margin-right: 0.5rem;
}
/* Both a lighter colour and an underline: the feedback app's own stylesheet takes the underline off every link */
.dbim-footer-links a:hover {
    color: var(--dbim-c5);
    text-decoration: underline;
}
.dbim-footer-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-decoration: underline;
}
.dbim-footer-top + .footer-bottom {
    border-top: 1px solid var(--dbim-c3);
}
/* The notice shown before an external link opens (it is in footer.jsp). Bootstrap gives every pop-up the same level
   (1055), and of two open ones the later in the page wins. On the homepage the "know more" pop-ups have external links
   of their own and come later in the page than the footer, so the notice is raised to come up over them. */
#externalLinkModal {
    z-index: 1060;
}
