/*
 * Shared modern footer (components/site_footer.php).
 * Self-contained so it works on both the modern journal pages and the older layouts
 * (Proceedings, MOHE). Colours per journal come from the --sf-* tokens below.
 */
.site-footer {
    --sf-bg: #25282c;
    --sf-bg-deep: #111315;
    --sf-accent: #d2b48a;
    --sf-text: rgba(255, 255, 255, .78);
    --sf-heading: #ffffff;
    --sf-line: rgba(255, 255, 255, .14);
}

/* footer.site-footer outranks the journal sheets' ".journal-modern footer" rule. */
footer.site-footer {
    clear: both;
    display: block;
    width: 100%;
    margin: 56px 0 0;
    padding: 0;
    background: linear-gradient(180deg, var(--sf-bg) 0, var(--sf-bg-deep) 100%);
    border-top: 4px solid var(--sf-accent);
    color: var(--sf-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.site-footer--pjtas { --sf-bg: #184e2c; --sf-bg-deep: #0f1d13; --sf-accent: #fdb717; }
.site-footer--pjst { --sf-bg: #20346b; --sf-bg-deep: #081823; --sf-accent: #f5b21b; }
.site-footer--pjssh { --sf-bg: #483321; --sf-bg-deep: #200f01; --sf-accent: #d9a24a; }
.site-footer--proceeding { --sf-bg: #553875; --sf-bg-deep: #241534; --sf-accent: #c9a6ef; }

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

.site-footer .site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-footer .site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 48px 0 40px;
}

.site-footer p,
.site-footer ul,
.site-footer address {
    max-width: none;
    margin: 0;
    padding: 0;
}

.site-footer .site-footer__name {
    color: var(--sf-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.site-footer .site-footer__blurb {
    margin-top: 8px;
    font-size: 13px;
}

.site-footer .site-footer__contact {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    font-style: normal;
}

.site-footer .site-footer__contact strong { color: var(--sf-heading); }

.site-footer .site-footer__contact span,
.site-footer .site-footer__contact a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    align-items: baseline;
}

.site-footer .site-footer__contact a { overflow-wrap: anywhere; }

.site-footer .site-footer__contact .fa { color: var(--sf-accent); text-align: center; }

.site-footer .site-footer__title {
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--sf-line);
    color: var(--sf-heading);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-footer .site-footer__links { list-style: none; }

.site-footer .site-footer__links li {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.site-footer a,
.site-footer a:visited {
    color: var(--sf-text);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--sf-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer .site-footer__bottom {
    border-top: 1px solid var(--sf-line);
    background: rgba(0, 0, 0, .18);
}

.site-footer .site-footer__legal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: center;
    padding: 18px 0;
    font-size: 12px;
}

.site-footer .site-footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

.site-footer .site-footer__cc { line-height: 0; }

.site-footer .site-footer__cc img {
    display: block;
    width: 88px;
    height: 31px;
    margin: 0;
    border: 0;
}

.site-footer .site-footer__copyright { white-space: nowrap; }

@media (max-width: 900px) {
    .site-footer .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .site-footer .site-footer__about { grid-column: 1 / -1; }

    .site-footer .site-footer__legal { grid-template-columns: auto minmax(0, 1fr); }

    .site-footer .site-footer__copyright { grid-column: 1 / -1; white-space: normal; }
}

@media (max-width: 560px) {
    .site-footer .site-footer__inner { width: calc(100% - 32px); }

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

    .site-footer .site-footer__legal { grid-template-columns: 1fr; }
}

@media print {
    footer.site-footer {
        background: none;
        border-top: 1px solid #999;
        color: #000;
    }

    .site-footer nav { display: none; }

    .site-footer * { color: #000 !important; }
}
