/* ========================================
   NYT-JOB.DK FOOTER
   ======================================== */

.site-footer {
    box-sizing: border-box;
    width: 100%;
    margin: 32px auto 0;
    padding: 32px;
    border: 1px solid rgba(72, 73, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0.97),
            rgba(246, 246, 255, 0.96));
    color: #47475e;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

/* HEADER */

.site-footer .site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(72, 73, 255, 0.15);
}

.site-footer .site-footer__top>a {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

.site-footer .site-footer__top h3 {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    color: #4849ff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.site-footer .site-footer__tagline {
    margin: 0;
    color: #4849ff;
    font-size: 16px;
    text-align: right;
}

/* COLUMNS */

.site-footer .site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 15px 0;
}

.site-footer .site-footer__columns section {
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.site-footer .site-footer__columns h2 {
    margin: 0 0 14px;
    color: #4849ff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.site-footer .site-footer__columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .site-footer__columns li {
    margin: 0;
    padding: 0;
}

.site-footer .site-footer__columns li+li {
    margin-top: 8px;
}

/* LINKS */

.site-footer a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    overflow-wrap: break-word;
}

.site-footer a:hover {
    color: #4849ff;
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid #4849ff;
    outline-offset: 5px;
    border-radius: 3px;
}

.site-footer .site-footer__columns a {
    display: inline;
    width: auto;
    font-size: 16px;
    text-align: left;
}

/* BOTTOM */

.site-footer .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(72, 73, 255, 0.15);
    font-size: 14px;
}

.site-footer .site-footer__bottom p {
    margin: 0;
}

/* LAYOUT VARIANTS */

.site-footer--public {
    width: calc(100% - 30px);
    max-width: 1380px;
    margin: 32px auto 40px;
}

@media (min-width: 1024px) {
    .site-footer--app {
        max-width: 864px;
    }

    .site-footer--public {
        width: calc(100% - 120px);
        padding: 40px;
    }
}

/* TABLET */

@media (min-width: 601px) and (max-width: 900px) {
    .site-footer .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .site-footer .site-footer__columns section:last-child {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .site-footer {
        padding: 24px;
        border-radius: 20px;
    }

    .site-footer .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-footer .site-footer__top h3 {
        font-size: 15px;
    }

    .site-footer .site-footer__tagline {
        text-align: left;
    }

    .site-footer .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 28px 0;
    }

    .site-footer .site-footer__columns section:last-child {
        grid-column: auto;
    }

    .site-footer .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .site-footer__columns li a {
        display: inline-block;
        padding: 3px 0;
    }
        /* ========================================
       FOOTER COMPACT TYPOGRAPHY
       ======================================== */
    
        .site-footer {
            font-size: 14px;
            line-height: 1.5;
        }
    
        .site-footer .site-footer__top {
            padding-bottom: 18px;
            gap: 16px;
        }
    
        .site-footer .site-footer__top h3 {
            font-size: 21px;
            line-height: 1.3;
        }
    
        .site-footer .site-footer__tagline {
            font-size: 14px;
        }
    
        .site-footer .site-footer__columns {
            gap: 24px;
            padding: 22px 0;
        }
    
        .site-footer .site-footer__columns h2 {
            font-size: 16px;
            margin-bottom: 10px;
            font-weight: 600;
        }
    
        .site-footer .site-footer__columns a {
            font-size: 14px;
            line-height: 1.5;
        }
    
        .site-footer .site-footer__columns li+li {
            margin-top: 6px;
        }
    
        .site-footer .site-footer__bottom {
            padding-top: 16px;
            font-size: 13px;
            gap: 10px 24px;
        }
    
        .site-footer .site-footer__company {
            min-width: 0;
            flex: 1 1 300px;
        }
    
        .site-footer .site-footer__company p {
            margin: 0;
        }
    
        .site-footer .site-footer__company p+p {
            margin-top: 3px;
        }
    
        .site-footer .site-footer__bottom a {
            font-size: 13px;
        }
    
        /* Mobile refinements */
    
        @media (max-width: 600px) {
            .site-footer .site-footer__top h3 {
                font-size: 19px;
            }
    
            .site-footer .site-footer__columns {
                gap: 20px;
                padding: 22px 0;
            }
    
            .site-footer .site-footer__bottom {
                gap: 8px;
            }
    
            .site-footer .site-footer__company {
                flex-basis: auto;
            }
        }
}
