/* odd5 消息列（首頁的最新消息區塊、列表頁、搜尋結果共用）— 髮絲線分隔，不加底、不加框
   一列三樣：日期（淡色小字）、標題（粗）、摘要（淡色、最多兩行；板設定 NewsDescription 開著才有）
   手機上下疊，平板起日期自成左欄
   RWD：mobile first */
@media only screen and (min-width: 0) {
    div.textList_odd {
        float: left;
        width: 100%;
    }

    div.textList_odd ul {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* 共用 common_textList 有斑馬紋（單數列淡藍底）、calc 寬度與浮動排法，權重比一般選擇器高，這裡多帶一層容器 */
    div.textList_odd div.textListContent_odd ul li,
    div.textList_odd div.textListContent_odd ul li:nth-child(2n-1) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .25em 1.6em;
        width: 100%;
        margin: 0;
        padding: 1.25em 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #E3EEF4;
        font-size: 1em;
    }

    div.textList_odd ul li::before {
        content: none;
    }

    div.textList_odd div.textListContent_odd ul li > span {
        float: none;
        width: auto;
        margin: 0;
    }

    /* 日期 */
    div.textList_odd div.textListContent_odd ul li > span:nth-child(1) {
        font-size: .82em;
        line-height: 1.9;
        letter-spacing: .03em;
        color: #5B6B76;
    }

    /* 標題 */
    div.textList_odd div.textListContent_odd ul li > span:nth-child(2) {
        font-size: 1.08em;
        line-height: 1.55;
    }

    div.textList_odd div.textListContent_odd ul li > span:nth-child(2) > a {
        font-weight: 700;
        color: #0F2D3E;
    }

    div.textList_odd div.textListContent_odd ul li > span:nth-child(2) > a[href]:hover,
    div.textList_odd div.textListContent_odd ul li > span:nth-child(2) > a[href]:focus {
        color: #0E6E98;
    }

    /* 摘要：最多兩行 */
    div.textList_odd div.textListContent_odd ul li > span.textListContentDescription_odd {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: .92em;
        line-height: 1.75;
        color: #5B6B76;
    }

    /* 沒有資料的那一列（日期那格是空的、連結沒有 href）：訊息置中，比照 lib 的 produceNoDataRow */
    div.textList_odd div.textListContent_odd ul li > span:empty + span {
        grid-column: 1 / -1;
        text-align: center;
    }

    div.textList_odd div.textListContent_odd ul li > span > a:not([href]) {
        display: block;
        padding: .6em 0;
        font-weight: 400;
        text-align: center;
        color: #5B6B76;
    }

    /* 載入中的那一列：轉圈圖置中、縮小（模板 inline 寫了 40% 寬） */
    div.textList_odd div.textListContent_odd ul li.fake {
        justify-items: center;
    }

    div.textList_odd div.textListContent_odd ul li.fake img {
        width: 2.4em !important;
    }
}

@media only screen and (min-width: 701px) {
    div.textList_odd div.textListContent_odd ul li,
    div.textList_odd div.textListContent_odd ul li:nth-child(2n-1) {
        grid-template-columns: 7em minmax(0, 1fr);
        padding: 1.4em 0;
    }

    div.textList_odd div.textListContent_odd ul li > span:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        padding-top: .15em;
    }

    div.textList_odd div.textListContent_odd ul li > span:nth-child(2),
    div.textList_odd div.textListContent_odd ul li > span.textListContentDescription_odd {
        grid-column: 2;
    }

    div.textList_odd div.textListContent_odd ul li.fake > img {
        grid-column: 1 / -1;
    }
}
