/* ============================================================
   os-korea — footer (hanjiang footer / .f-grid / .f-bottom)
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: var(--strip);
    padding: 70px 0 30px;
    font-size: 14px;
}
.f-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.hk-body .site-footer h4.footer-heading {
    color: #fff;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.hk-body .site-footer a { color: var(--strip); font-size: 14px; }
.hk-body .site-footer a:hover,
.hk-body .site-footer a:focus { color: var(--gold-2); }

.footer-logo-container { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-container .footer-brand-name { margin: 0; }
.footer-brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; line-height: 1.25; margin: 0 0 14px; max-width: 340px; }
.f-brand-col .footer-description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.f-brand-col .footer-description p { display: inline; margin: 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8a98ad; }
.footer-logo-img {
    display: block;
    max-height: 52px;
    max-width: 240px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}
.footer-description { max-width: 320px; color: var(--strip); font-size: 14px; line-height: 1.7; }
.footer-description p { margin: 0 0 8px; }
.footer-journal-name { font-family: var(--serif); color: var(--gold-2); font-size: 16px; max-width: 340px; margin: 0 0 10px; line-height: 1.4; }

.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact-item i { color: var(--gold); width: 16px; margin-top: 4px; text-align: center; flex: 0 0 16px; }
.footer-contact-item p { margin: 0; }

.footer-contact-list { margin-bottom: 18px !important; }
.footer-social { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-social li { margin: 0; }
.footer-social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: var(--gold);
    transition: border-color .2s ease, background-color .2s ease;
}
.footer-social-link:hover .footer-social-icon { border-color: var(--gold-2); background: rgba(201, 169, 97, .12); }

.f-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: #8a98ad;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}
.f-bottom::before {
    /* keep the rule inside the container padding, like hanjiang */
    content: none;
}
.f-bottom p { margin: 0; }
.hk-body .f-bottom a { font-size: 13px; color: #8a98ad; }
.hk-body .f-bottom a:hover { color: var(--gold-2); }
.f-bottom .separator { margin: 0 8px; color: rgba(255, 255, 255, .25); }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 3px;
    background: var(--navy);
    color: var(--gold);
    box-shadow: 0 8px 20px rgba(15, 37, 64, .25);
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
    z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

@media (max-width: 992px) {
    .f-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .site-footer { padding: 54px 0 26px; }
    .f-grid { grid-template-columns: 1fr; gap: 30px; }
    .f-bottom { flex-direction: column; align-items: flex-start; }
    .back-to-top { right: 16px; bottom: 16px; }
}

/* ============================================================
   v4 — Publish / Company / Policies; ojs-uk contact + social kept
   compact under the brand blurb
   ============================================================ */
.f-brand-col .footer-contact-list { margin: 16px 0 14px !important; }
.f-brand-col .footer-contact-item { font-size: 13px; line-height: 1.55; margin-bottom: 6px; max-width: 320px; }
.hk-body .f-brand-col .footer-contact-item a { font-size: 13px; }
.f-brand-col .footer-contact-item i { margin-top: 3px; }
.f-brand-col .footer-social { gap: 10px; }
.f-brand-col .footer-social-link > span:not(.footer-social-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-brand-col .footer-social-icon { width: 28px; height: 28px; }
.footer-link-static { color: var(--strip); font-size: 14px; }

/* footer logo: always white on the navy footer, no white plate.
   grayscale+invert+brightness turns any dark/colour logo white and a white JPG background black;
   mix-blend-mode:screen then makes that black disappear into the footer colour. Transparent PNGs stay transparent. */
.site-footer .footer-logo-img { background: transparent; padding: 0; border-radius: 0; filter: grayscale(1) invert(1) brightness(2); mix-blend-mode: screen; }
