/* Footer. Colors are variables so the review toolbar can flip between looks: 1 slate and teal (default, no class needed), 2 slate and brass (body.fv2), 3 tint (body.fv3). */
#footer {
    --fbg: #262B31;
    --ftext: #C9CED3;
    --fhead: #6FBDB6;
    --fline: rgba(255, 255, 255, .12);
    --fmuted: #8E959C;
    --fhover: #FFFFFF;
    --ftop: transparent;
    background: var(--fbg);
    color: var(--ftext);
    border-top: 1px solid var(--ftop);
    padding: 72px 0 28px;
    font-size: 16px;
}
body.fv2 #footer {
    --fhead: #C2A26B;
}
body.fv3 #footer {
    --fbg: var(--bg2);
    --ftext: #2F4644;
    --fhead: #1F6F6A;
    --fline: var(--line);
    --fmuted: #6C7A78;
    --fhover: #16302E;
}
#footer .grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 44px;
}
#footer h4 {
    color: var(--fhead);
}
#footer a {
    display: block;
    margin: 0 0 8px;
    text-decoration: none;
}
#footer a:hover {
    color: var(--fhover);
}
#footer p a {
    display: inline;
    margin: 0;
}
#footer .footer-logo {
    display: block;
    width: min(400px, 100%);
    height: auto;
    margin-bottom: 48px;
}
#footer .footer-logo.dark,
body.fv3 #footer .footer-logo.light {
    display: none;
}
body.fv3 #footer .footer-logo.dark {
    display: block;
}
#footer .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--fline);
    font-size: 14px;
    color: var(--fmuted);
}
#footer .bottom a {
    display: inline;
    margin: 0 14px 0 0;
}

/* Crafted by: the DRAFT mark, the words appear on hover */
#footer .bottom .draft {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    opacity: .85;
}
#footer .draft:hover {
    opacity: 1;
}
#footer .draft span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .2s ease-out;
}
#footer .draft:hover span {
    opacity: 1;
}
#footer .draft img {
    height: 16px;
    width: auto;
}
#footer .draft img.dark,
body.fv3 #footer .draft img.light {
    display: none;
}
body.fv3 #footer .draft img.dark {
    display: block;
}

@media (max-width: 980px) {
    #footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    #footer .grid {
        grid-template-columns: 1fr;
    }
    #footer .draft span {
        opacity: 1;
    }
}
