/* =====================================================================
   CIVIC THEME  —  Step 9: floating footer
   ---------------------------------------------------------------------
   The footer links (About, Contact us, Sponsor, Terms, Privacy, Log in/out)
   live behind a small round button in the bottom-right corner of the main
   page (templates/index.html, .fab-footer). The menu reuses .civic-card
   (step 4) for its surface and .pact (step 4's profile actions) for its
   items; this layer only stacks them vertically and positions things.
   Remove the <link> to revert the look (the markup stays usable).
   ===================================================================== */

.fab-footer {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1005;              /* above the feed, below the header (1010) and modals */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fab-footer-btn {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #566277;
    border: 1px solid #e6e8ec;
    box-shadow: 0 6px 18px -10px rgba(30, 40, 60, .22);
    cursor: pointer;
    opacity: .85;
    transition: opacity .15s ease, background .15s ease;
}
.fab-footer-btn:hover,
.fab-footer-btn[aria-expanded="true"] { opacity: 1; background: #f5f6f8; }
.fab-footer-btn:focus-visible { outline: 2px solid #566277; outline-offset: 2px; }

.fab-footer-menu.civic-card {
    width: 200px;
    max-width: calc(100vw - 32px);
    margin: 0;
    display: flex;
    flex-direction: column;
}
.fab-footer-menu[hidden] { display: none; }
.fab-footer-menu form { margin: 0; display: flex; }

/* .pact items, stacked: row dividers instead of column dividers. */
.fab-footer-menu .pact {
    flex: none;
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    text-align: left;
    font-family: var(--font-sans);
    border-right: 0;
    border-bottom: 1px solid #eceef2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.fab-footer-menu > :last-child,
.fab-footer-menu > :last-child .pact { border-bottom: 0; }
.fab-footer-menu .pact:hover { background: #f5f6f8; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
