/* Magazine theme footer */
html #footer.news-footer {
    --footer-surface: #f3f5f8;
    --footer-ink: #142034;
    --footer-muted: #475569;
    --footer-rule: #cbd5e1;
    --footer-accent: #aa2038;
    background: var(--footer-surface) !important;
    color: var(--footer-muted) !important;
    border-top: 4px solid var(--footer-accent) !important;
    padding: 0;
}

html[data-bs-theme="dark"] #footer.news-footer {
    --footer-surface: #101b2c;
    --footer-ink: #f8fafc;
    --footer-muted: #cbd5e1;
    --footer-rule: #435167;
    --footer-accent: #ff9aa8;
}

#footer.news-footer::before {
    display: none;
}

.news-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    align-items: start;
    gap: clamp(24px, 3vw, 44px);
    padding-block: clamp(30px, 5vw, 58px);
}

.news-footer-grid > * {
    min-width: 0;
}

.news-footer-brand p {
    margin: 12px 0 16px;
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-footer-logo {
    display: inline-block;
    max-width: 100%;
}

.news-footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.news-footer-logo .news-footer-logo-dark,
[data-bs-theme="dark"] .news-footer-logo .news-footer-logo-light {
    display: none;
}

[data-bs-theme="dark"] .news-footer-logo .news-footer-logo-dark {
    display: block;
}

.news-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.news-footer-social:empty {
    display: none;
}

#footer.news-footer .news-footer-social a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--footer-rule);
    border-radius: 4px;
}

.news-footer-social svg {
    width: 16px;
    height: 16px;
}

#footer.news-footer .news-footer-heading {
    color: var(--footer-ink);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--footer-rule);
}

.news-footer-links {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

#footer.news-footer a {
    color: var(--footer-ink);
}

.news-footer-category-links {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
}

#footer.news-footer a:hover {
    color: var(--footer-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#footer.news-footer :is(a, button, input):focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

.news-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    padding-block: 16px;
    padding-right: 56px;
    border-top: 1px solid var(--footer-rule);
    font-size: 0.8125rem;
    line-height: 1.65;
}
