/* Footer countdown (U3). Colours and text size come from the footer rules in site.css. */
.gm-event {
    margin-bottom: 0.5rem;
}

.gm-event p {
    margin: 0;
}

.gm-event p:last-child {
    margin-bottom: 0;
}

.gm-event-message:empty {
    display: none;
}

/* Shortened footer text on narrow screens. The "-short" spans are hidden until a breakpoint swaps them in.
   The footer links line in _Layout shares the NZ spans, so this file is loaded on every page. */
.gm-nz-short,
.gm-dates-short {
    display: none;
}

@media (max-width: 660px) {
    .gm-nz-long,
    .gm-tz {
        display: none;
    }

    .gm-nz-short {
        display: inline;
    }
}

/* Drop the wordier footer text (event name on line 1, "Statement" and the organisation name on line 2) when there is no room. */
@media (max-width: 475px) {
    .gm-narrow-hide {
        display: none;
    }
}

@media (max-width: 552px) {
    .gm-dates-long {
        display: none;
    }

    .gm-dates-short {
        display: inline;
    }
}
