/* =====================================================================
   ydxtrans — footer link layout (v1, 2026-10-15)
   Purpose: shorten the very long "Rail FCL" footer column (~38 links)
   WITHOUT removing a single link. Pure layout: the links are re-flowed
   into two themed sub-columns and the type scale is tightened, so every
   <a> stays in the HTML source and stays crawlable.
   Loaded from footer.php / footer_i18n.php / footer_en.php, after
   theme-ow.css, so these rules win the cascade at equal specificity.
   ===================================================================== */

body.theme-ow footer.ydx-foot {
    padding: 34px 0 20px;
}

body.theme-ow footer.ydx-foot .ydx-foot-cols {
    grid-template-columns: 0.9fr 2.6fr 1fr 1fr;
    gap: 26px;
    align-items: start;
}

body.theme-ow footer.ydx-foot h4 {
    font-size: 14px;
    margin: 0 0 8px;
}

body.theme-ow footer.ydx-foot .ydx-foot-cols a {
    font-size: 13px;
    line-height: 1.5;
    padding: 1px 0;
}

body.theme-ow footer.ydx-foot .ydx-foot-cols p {
    font-size: 13px;
    line-height: 1.6;
}

body.theme-ow footer.ydx-foot .ydx-foot-sub {
    display: block;
    color: #8f8f8f;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin: 2px 0 6px;
}

body.theme-ow footer.ydx-foot .ydx-foot-fcl2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 26px;
}

body.theme-ow footer.ydx-foot .ydx-foot-fcl2 > div {
    min-width: 0;
}

body.theme-ow footer.ydx-foot .ydx-foot-legal {
    margin-top: 22px;
    padding-top: 14px;
}

@media (max-width: 1000px) {
    body.theme-ow footer.ydx-foot .ydx-foot-cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body.theme-ow footer.ydx-foot .ydx-foot-cols {
        grid-template-columns: 1fr;
    }
    body.theme-ow footer.ydx-foot .ydx-foot-fcl2 {
        grid-template-columns: 1fr;
    }
    body.theme-ow footer.ydx-foot .ydx-foot-fcl2 > div + div {
        margin-top: 10px;
    }
}
