/* V_university 0.7.19: align WebPlus-generated list title and date in one row.
   The published DOM places .names and .dates as direct children of li;
   do not target li > a > .names/.dates. */
body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

/* WebPlus may emit an empty link before the title wrapper; it has no visible content. */
body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > a:empty {
    display: none !important;
}

body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > .names {
    display: block !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Keep the generated article link clickable while preventing long titles from
   pushing the date onto another line. */
body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > .names > a:empty {
    display: none !important;
}
body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > .names > a:not(:empty) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > .dates {
    display: block !important;
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-align: right !important;
    color: #9a9a9a;
}

@media screen and (max-width: 600px) {
    body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li {
        gap: 8px !important;
    }
    body.xgzx-list-page #inside-frame .grain-frame .mt ul.list-grain-text > li > .dates {
        flex-basis: 96px !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
    }
}
