/* Shared Netest site footer. Kept separate from page styles so every route renders the same footer. */
footer.netest-site-footer {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-inline: 0 !important;
    color: var(--text-secondary) !important;
    margin: 4rem 0 0 !important;
    padding: 2.7rem clamp(1.25rem, 3vw, 3.75rem) 1.55rem !important;
    position: relative;
    text-align: left !important;
}

/* Article pages have legacy footer rules with higher specificity. */
body.blog-consistent-ui footer.netest-site-footer,
body.blog-standardized footer.netest-site-footer {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-inline: 0 !important;
    margin: 4rem 0 0 !important;
    padding: 2.7rem clamp(1.25rem, 3vw, 3.75rem) 1.55rem !important;
}

footer.netest-site-footer * { box-sizing: border-box; }

.netest-footer-inner {
    margin: 0 auto;
    max-width: 1680px;
}

.netest-footer-directory {
    display: grid;
    gap: 2.2rem clamp(1.5rem, 3.6vw, 4rem);
    grid-template-columns: repeat(6, minmax(8rem, 1fr));
}

.netest-footer-group h2,
.netest-footer-brand-name {
    color: var(--text-primary) !important;
    font-size: clamp(1.05rem, 1.15vw, 1.35rem) !important;
    font-weight: 750 !important;
    letter-spacing: .01em;
    line-height: 1.2;
    margin: 0 0 .75rem !important;
    text-transform: uppercase;
}

.netest-footer-group ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.netest-footer-group li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.netest-footer-group li + li { margin-top: .58rem !important; }

footer.netest-site-footer .netest-footer-group a {
    color: var(--text-secondary) !important;
    align-items: start;
    column-gap: .72rem;
    display: grid;
    font-size: .92rem;
    font-weight: 400 !important;
    grid-template-columns: .64rem minmax(0, 1fr);
    line-height: 1.35;
    text-decoration: none !important;
    width: 100%;
}

footer.netest-site-footer .netest-footer-group a::before {
    background: var(--primary-color);
    border-radius: 50%;
    content: '';
    height: .64rem;
    margin-top: .31rem;
    width: .64rem;
}

footer.netest-site-footer a:hover,
footer.netest-site-footer a:focus-visible {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
    text-underline-offset: .2em;
}

footer.netest-site-footer a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.netest-footer-brand {
    align-self: start;
    border-left: 1px solid var(--border-color);
    min-height: 100%;
    padding-left: clamp(1.5rem, 2.5vw, 3rem);
}

.netest-footer-brand-name {
    font-size: clamp(1.55rem, 2.2vw, 2.35rem) !important;
    letter-spacing: .08em;
    margin-bottom: .55rem !important;
}

.netest-footer-brand-name span { color: var(--primary-color); }

.netest-footer-brand p {
    color: var(--text-muted) !important;
    font-size: .93rem !important;
    line-height: 1.55;
    margin: 0 !important;
    max-width: 16rem;
}

.netest-footer-bottom {
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.5rem;
    justify-content: flex-start;
    margin-top: 2.6rem;
    padding-top: 1.35rem;
}

.netest-footer-bottom p {
    color: var(--text-muted) !important;
    font-size: .92rem !important;
    margin: 0 !important;
}

.netest-footer-essentials {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    justify-content: flex-start;
}

.netest-footer-essentials a {
    color: var(--text-secondary) !important;
    font-size: .9rem;
    font-weight: 600 !important;
}

.netest-footer-essentials a::before { display: none; }

.netest-footer-essentials a + a {
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
}

@media (max-width: 1180px) {
    .netest-footer-directory { grid-template-columns: repeat(3, minmax(12rem, 1fr)); }
    .netest-footer-brand { border-left: 0; padding-left: 0; }
}

@media (max-width: 700px) {
    footer.netest-site-footer,
    body.blog-consistent-ui footer.netest-site-footer,
    body.blog-standardized footer.netest-site-footer { margin-top: 2.5rem !important; padding-block: 2.25rem 1.25rem !important; }
    .netest-footer-directory { gap: 1.9rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .netest-footer-brand { grid-column: 1 / -1; }
    .netest-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 2rem; }
}

@media (max-width: 420px) {
    .netest-footer-directory { grid-template-columns: 1fr; }
    .netest-footer-brand { grid-column: auto; }
}
