/* Desktop news archive and article chrome. */
.desktop-news, .news-purchase-panel { display: none; }

.news-archive {
    margin: 0;
    background: #000;
    color: #e4e0d9;
    font: 16px/1.65 Georgia, "Songti SC", SimSun, serif;
}
.news-archive *, .news-archive *::before { box-sizing: border-box; }
.news-archive main a, .news-trail a, .news-neighbors a { color: inherit; text-decoration: none; }
.news-archive main a:hover, .news-trail a:hover, .news-neighbors a:hover { color: #fff; }
.news-archive [hidden] { display: none !important; }
.news-archive .desktop-news { display: block; }
.news-archive .news-top { display: flex; }
.desktop-news.site-footer {
    font-family: var(--font-family-primary);
    line-height: normal;
    color: #000;
}

.news-detail .news-top { display: none; }
.news-top.desktop-news {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 1;
    padding: 36px 3vw;
    color: #ded8cd;
    font-size: 14px;
}
.news-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    align-items: center;
    padding-top: 14px;
}
.news-trail > span::before { content: '/'; margin-right: 12px; color: #807d76; }
.news-banner {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(320px, 35vw, 670px);
    background: linear-gradient(180deg, #0004 0%, #0003 55%, #000 100%),
        url('../assets/images/news-bg.jpg') center top / cover no-repeat;
}
.news-banner img { width: min(34vw, 650px); opacity: .25; }
.news-banner > * { transform: translateY(clamp(15px, 3vw, 60px)); }
.news-banner h1 {
    position: absolute;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.6vw, 68px);
    font-weight: 400;
}
.news-archive-content {
    width: min(1200px, max(62.5vw, min(760px, 88vw)));
    margin: 0 auto;
    padding-bottom: 76px;
}
.news-filters {
    display: flex;
    justify-content: center;
    margin: 0 auto clamp(36px, 5.6vw, 108px);
    border-bottom: 1px solid #282723;
}
.news-filters button, .news-pages button {
    color: #b3aea5;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.news-filters button {
    position: relative;
    min-width: 24%;
    padding: 12px clamp(8px, 2vw, 36px) 20px;
}
.news-filters button:hover, .news-filters button[aria-pressed="true"],
.news-pages button:hover, .news-pages button[aria-current="page"] { color: #fff; }
.news-filters button[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    inset: auto 15% -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d6cbb7, transparent);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.news-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.news-card a { display: block; }
.news-card a:hover img { filter: brightness(1.15); }
.news-card h2, .news-card p, .news-card time { margin-inline: 15px; }
.news-card h2 { margin-block: 12px 4px; font-size: 19px; font-weight: 400; line-height: 1.45; }
.news-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-block: 0 10px;
    color: #a29d94;
    font-size: 14px;
}
.news-card time, .news-pages { color: #aaa49a; font-size: 13px; }
.news-pages { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.news-pages button { min-width: 36px; min-height: 36px; }
.news-pages button:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .news-archive { --news-list-heading-font: var(--font-family-primary); }

    :is(html[lang="zh-CN"], html[lang="zh-TW"]) .news-archive {
        --news-list-heading-font: var(--font-basic-zh-CN);
    }

    html[lang="en-US"] .news-archive {
        --news-list-heading-font: var(--font-alverata-en);
    }

    .news-banner h1,
    .news-filters button,
    .news-card {
        font-family: var(--news-list-heading-font);
    }
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-archive .news-top { padding-top: 16px; }
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
    .news-trail { font-family: var(--font-family-news-body); }
    .news-purchase-panel { display: block; }
    .news-purchase-panel a { color: inherit; text-decoration: none; }
    .news-purchase-panel .wishlist-expanded { visibility: hidden; }
    .news-purchase-panel .wishlist-btn:hover ~ .wishlist-expanded,
    .news-purchase-panel .wishlist-expanded:hover,
    .news-purchase-panel .wishlist-container:focus-within .wishlist-expanded {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .news-purchase-panel.awaiting-fresh-hover .wishlist-container .wishlist-expanded {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .news-purchase-panel.awaiting-fresh-hover .wishlist-container .wishlist-btn { visibility: visible; }

    .news-purchase-panel .wishlist-btn:focus-visible,
    .news-purchase-panel .wishlist-header:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    body.news-detail {
        background: #000 url('../assets/images/news-preview-bg.png') center 260px / min(100%, 1920px) auto no-repeat;
        color: #cbc5bb;
        font-family: var(--font-family-news-body);
    }
    .news-detail .desktop-news { display: block; }
    .news-detail .news-top { display: flex; }
    .news-detail .wrap { max-width: min(1240px, max(65vw, 800px)); padding-top: clamp(148px, 11vw, 212px); padding-bottom: 85px; }
    .news-detail .back, .news-detail .subtitle, .news-detail .news-short-title { display: none; }
    .news-detail h1, .news-detail .news-category, .news-detail .meta { text-align: center; }
    .news-detail h1 {
        font-family: var(--font-family-news-title);
        font-size: clamp(28px, 2vw, 40px);
        font-weight: 500;
    }
    .news-detail .news-category { margin-bottom: 16px; font-size: 24px; }
    .news-detail .meta { margin: 16px 0 54px; border: 0; padding: 0; }
    .news-detail .meta .yr { color: #a29d94; }
    .news-detail article { display: flex; flex-direction: column; }
    .news-detail .lead { order: -1; }
    .news-detail .news-category, .news-detail h1, .news-detail .meta { order: -2; }
    .news-detail .lead { margin: 0 0 36px; font-size: 17px; }
    .news-detail figure { width: min(100%, clamp(550px, 41.67vw, 800px)); margin: 0 auto 36px; }
    .news-detail figure .hero, .news-detail .yt-facade { border-radius: 0; }
    .news-detail-nav { margin-top: 55px; text-align: center; }
    .news-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 55px; }
    .news-neighbors > :first-child { text-align: left; }
    .news-neighbors > :last-child { text-align: right; }
    .news-neighbors > :first-child a::before { content: '‹ '; }
    .news-neighbors > :last-child a::after { content: ' ›'; }
    a.news-all-link {
        display: inline-block;
        width: min(400px, 100%, 28vw);
        background: url('../assets/preorder/preorder-edition-bg-standard.png') center / 100% 100% no-repeat;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
        color: #161411;
        font-size: clamp(20px, 1.35vw, 26px);
        line-height: 1.5;
        padding: 12px;
        text-decoration: none;
    }
    a.news-all-link:hover { color: #161411; filter: brightness(1.1); }
}

/* Mobile archive and article layout share the canonical news URLs. */
.news-mobile-header { display: none; }

@media not all and (min-width: 901px) and (hover: hover) and (pointer: fine) {
    .news-archive .news-top { display: none; }
    .news-mobile-header { display: block; color: #ded8cd; }
    .news-archive .news-mobile-header {
        position: absolute;
        inset: 0 0 auto;
        z-index: 2;
    }
    .news-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 36px 14px 0;
    }
    .news-mobile-bar img { display: block; object-fit: contain; }
    .news-mobile-bar > a, .news-mobile-menu summary {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        cursor: pointer;
    }
    .news-mobile-menu { position: relative; z-index: 1; }
    .news-mobile-menu summary { list-style: none; }
    .news-mobile-menu summary::-webkit-details-marker { display: none; }
    .news-mobile-menu nav {
        position: absolute;
        min-width: 140px;
        padding: 6px 14px;
        background: #151515;
        border: 1px solid #393632;
    }
    .news-mobile-header a { color: inherit; text-decoration: none; }
    .news-mobile-menu nav a { display: block; padding: 8px 0; }
    .news-mobile-trail {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
        max-width: 720px;
        margin: 22px auto 0;
        padding-inline: 32px;
        font-size: 13px;
    }
    .news-mobile-trail span { color: #837f77; }

    .news-archive, body.news-detail {
        background: #000;
        font-family: var(--font-family-primary);
    }
    .news-banner {
        justify-items: start;
        height: 285px;
        padding-inline: 27px;
        background: linear-gradient(180deg, #0008, #0007 56%, #000),
            url('../assets/images/news-bg.jpg') 80% top / cover no-repeat;
    }
    .news-banner img { display: none; }
    .news-banner h1 {
        position: static;
        transform: none;
        margin-top: 24px;
        font-family: inherit;
        font-size: clamp(32px, 13vw, 54px);
        overflow-wrap: anywhere;
    }
    .news-archive-content { width: 100%; padding-bottom: 44px; }
    .news-filters { margin-bottom: 36px; }
    .news-filters button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 7px 6px;
        font: inherit;
        font-size: clamp(13px, 4vw, 17px);
        overflow-wrap: anywhere;
    }
    .news-grid {
        width: min(100% - 60px, 560px);
        margin-inline: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .news-card h2, .news-card p, .news-card time { margin-inline: 4px; }
    .news-card h2 { margin-top: 16px; }
    .news-card p:empty { display: none; }
    .news-card time { font-size: 12px; }
    .news-pages { flex-wrap: wrap; }
    .news-pages button { min-width: 44px; min-height: 44px; }
    .news-archive .site-footer, .news-detail .site-footer { display: block; }
    .news-archive .footer-links, .news-detail .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-detail .wrap { max-width: 720px; padding: 36px 32px 64px; }
    .news-detail .back, .news-detail .subtitle, .news-detail .news-short-title { display: none; }
    .news-detail .news-category, .news-detail h1 > span, .news-detail .news-detail-nav {
        display: block;
    }
    .news-detail .news-category, .news-detail h1, .news-detail .meta { text-align: center; }
    .news-detail .news-category { margin-bottom: 12px; color: #a29d94; font-size: 14px; }
    .news-detail h1 { font: 400 clamp(20px, 5.25vw, 28px)/1.45 var(--font-family-primary); }
    .news-detail .meta {
        margin: 16px 0 24px;
        padding-bottom: 44px;
        border-color: #292622;
    }
    .news-detail .meta .yr { color: #a29d94; }
    .news-detail article { display: flex; flex-direction: column; overflow-wrap: anywhere; }
    .news-detail .news-category, .news-detail h1, .news-detail .meta { order: -2; }
    .news-detail .lead { order: -1; margin: 0 0 24px; font-size: inherit; }
    .news-detail .lead:empty { display: none; }
    .news-detail figure { margin-bottom: 24px; }
    .news-detail .hero, .news-detail .yt-facade { border-radius: 0; }
    .news-detail-nav { margin-top: 36px; text-align: center; }
    .news-neighbors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 36px;
        font-size: 14px;
        overflow-wrap: anywhere;
    }
    .news-neighbors > :first-child { text-align: left; }
    .news-neighbors > :last-child { text-align: right; }
    .news-neighbors > :first-child a::before { content: '‹ '; }
    .news-neighbors > :last-child a::after { content: ' ›'; }
    .news-all-link {
        display: block;
        padding: 10px 14px;
        background: url('../assets/preorder/preorder-edition-bg-standard.png') center / 100% 100% no-repeat;
        color: #161411;
        text-decoration: none;
    }
}
