/* The footer of the site: about U00, the links, the copyright, Share and Top; the cookie notice.
   The page is a column: a short page still has the footer at the bottom of the window. */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.sf {
    --sf-accent: #13d4e2;
    --sf-text: #e6eef0;
    --sf-muted: #7f8f95;
    --sf-border: #20272b;
    margin-top: 56px;
    background: linear-gradient(#0c0f11, #090b0c);
    border-top: 1px solid var(--sf-border);
    font-family: 'Roboto', system-ui, sans-serif;
    color: var(--sf-muted);
    flex: none;
}

.sf-in {
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 20px 0;
    box-sizing: border-box;
}

.sf a {
    text-decoration: none;
}

.sf-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 56px;
    padding-bottom: 36px;
}

/* About */

.sf-about {
    max-width: 360px;
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sf-text);
    font-family: 'Roboto Mono', monospace;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sf-brand img {
    display: block;
}

.sf-about p {
    margin: 14px 0 16px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
}

.sf-snippet {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 12.5px;
    color: var(--sf-accent);
    background: rgba(19, 212, 226, 0.06);
    border: 1px solid rgba(19, 212, 226, 0.18);
    border-radius: 6px;
    padding: 5px 10px;
}

/* The links */

.sf-cols {
    display: flex;
    gap: 64px;
}

.sf-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.sf-head {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #5d6b70;
    margin-bottom: 4px;
}

.sf-col a {
    color: var(--sf-muted);
    font-size: 14px;
    transition: color 0.12s;
}

.sf-col a:hover {
    color: var(--sf-text);
}

/* The QR code of the page */

.sf-qr {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sf-qr-code {
    width: 112px;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    background: #e6eef0;
    box-shadow: 0 0 0 1px var(--sf-border), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sf-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sf-qr figcaption {
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: #5d6b70;
}

/* The last line */

.sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0 20px;
    border-top: 1px solid var(--sf-border);
    font-size: 12.5px;
}

.sf-actions {
    display: flex;
    gap: 8px;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid var(--sf-border);
    background: none;
    color: var(--sf-muted);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
}

.sf-btn:hover {
    color: var(--sf-text);
    border-color: #36424a;
}

.sf-btn svg {
    display: block;
}

/* The cookie notice: a small card in the corner */

#cookie_notification {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    width: 380px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 16px;
    background: #12171a;
    border: 1px solid #263036;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', system-ui, sans-serif;
    animation: sf-up 0.2s ease-out;
}

#cookie_notification.show {
    display: flex;
}

.ck-text {
    font-size: 13px;
    line-height: 1.5;
    color: #aab6ba;
    font-weight: 300;
}

.ck-text a {
    color: var(--sf-accent, #13d4e2);
    text-decoration: none;
    white-space: nowrap;
}

.cookie_accept {
    flex: none;
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    border: 0;
    background: #0e5f66;
    color: #e6eef0;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.cookie_accept:hover {
    background: #12737b;
}

@keyframes sf-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 1100px) {
    .sf-top {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 28px;
    }

    /* The code goes to a row of its own, the caption beside it */
    .sf-qr {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 16px;
    }

    .sf-qr figcaption {
        text-align: left;
    }
}

/* A phone has nothing to scan the code with */
@media (max-width: 600px) {
    .sf-qr {
        display: none;
    }
}

@media (max-width: 820px) {
    .sf-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sf-cols {
        gap: 24px;
        justify-content: space-between;
    }

    .sf-col {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .sf-in {
        padding: 32px 16px 0;
    }

    .sf-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
    }

    .sf-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    #cookie_notification {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        padding: 10px 10px 10px 14px;
    }

    .ck-text {
        font-size: 12px;
    }
}
