/* Editorial layout for newsroom, categories and long-form technical articles. */
.news-page { --news-ink: #183345; --news-muted: #526574; --news-accent: #075985; }
.news-eyebrow { color: var(--news-accent); font-size: .7rem; font-weight: 600; line-height: 1.8; letter-spacing: .1em; }
.news-header { background: #edf1f5; border-bottom: 1px solid #d5dee6; padding-top: 44px; }
.news-header h1 { color: var(--news-ink); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; margin-top: 14px; }
.news-header-intro { max-width: 760px; margin-top: 18px; color: var(--news-muted); font-size: 1rem; line-height: 1.9; }
.news-category-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }
.news-category-nav a { display: flex; align-items: center; gap: 10px; min-height: 54px; border-bottom: 2px solid transparent; font-size: .9rem; color: #526574; padding-block: 12px; }
.news-category-nav a:hover { color: #075985; }
.news-category-nav [aria-current] { color: #075985; border-bottom-color: #087f83; font-weight: 600; }
.news-category-nav span { font-size: .7rem; font-weight: 400; color: #64748b; font-variant-numeric: tabular-nums; }
.news-index-content, .news-category-content { padding-block: 56px 80px; }
.news-index-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); column-gap: 72px; align-items: start; }
.news-index-content > .news-featured { grid-column: 1; grid-row: 1; }
.news-index-content > .news-resource-links { grid-column: 2; grid-row: 1; }
.news-index-content > .news-list-section, .news-index-content > .news-pagination, .news-index-content > .news-empty { grid-column: 1 / -1; }
.news-featured { border-top: 2px solid #075985; padding-top: 24px; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: #64748b; font-size: .78rem; line-height: 1.8; }
.news-meta a { color: #075985; }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-featured .news-meta { margin-top: 16px; }
.news-featured h2 { color: var(--news-ink); font-size: clamp(1.5rem, 2.1vw, 1.95rem); font-weight: 600; line-height: 1.55; letter-spacing: -.02em; margin-top: 20px; }
.news-featured h2 a:hover { color: #075985; }
.news-featured-summary { color: var(--news-muted); font-size: .96rem; line-height: 1.95; margin-top: 22px; }
.news-featured-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-top: 28px; }
.news-featured-image { display: block; margin-top: 22px; }
.news-featured-image img { display: block; width: 100%; height: auto; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.news-tags a { display: inline-flex; align-items: center; min-height: 30px; color: #526574; border-bottom: 1px solid #d5dee6; font-size: .72rem; line-height: 1.7; }
.news-tags a:hover { color: #075985; border-color: #075985; }
.news-resource-links { background: #f0f4f6; border-top: 2px solid #d3dfe6; padding: 26px; }
.news-resource-links h2 { font-size: 1.16rem; font-weight: 600; line-height: 1.65; color: var(--news-ink); margin-top: 14px; }
.news-resource-links > p:not(.news-eyebrow) { color: var(--news-muted); font-size: .83rem; line-height: 1.85; margin-top: 14px; margin-bottom: 22px; }
.news-resource-links > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #d5dee6; min-height: 72px; padding-block: 16px; font-size: .86rem; font-weight: 500; color: #183345; }
.news-resource-links > a:hover { color: #075985; }
.news-resource-links small { display: block; font-size: .72rem; font-weight: 400; color: #64748b; margin-top: 5px; }
.news-list-section { margin-top: 72px; }
.news-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 2px solid #d5dee6; padding-bottom: 20px; margin-bottom: 4px; }
.news-section-heading h2 { font-size: 1.4rem; font-weight: 600; line-height: 1.6; color: var(--news-ink); }
.news-section-heading > p { color: #64748b; font-size: .8rem; line-height: 1.8; }
.news-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 28px; padding-block: 32px; border-bottom: 1px solid #e2e8f0; }
.news-row-with-image { grid-template-columns: 108px minmax(0, 1fr) 200px; }
.news-row-date { color: #64748b; font-size: .76rem; line-height: 1.8; padding-top: 4px; }
.news-row-date time { font-variant-numeric: tabular-nums; }
.news-row-date > a { display: block; margin-top: 10px; color: #075985; }
.news-row h3 { color: #183345; font-size: 1.16rem; font-weight: 600; line-height: 1.65; }
.news-row h3 a:hover { color: #075985; }
.news-row-copy > p { color: var(--news-muted); font-size: .88rem; line-height: 1.9; margin-top: 12px; max-width: 920px; }
.news-read-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; color: #075985; font-size: .8rem; font-weight: 500; }
.news-read-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-row .news-read-link { margin-top: 8px; }
.news-row-image { align-self: start; margin-top: 4px; }
.news-row-image img { width: 100%; height: auto; }
.news-reset { color: #075985; margin-left: 20px; text-decoration: underline; text-underline-offset: 4px; }
.news-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.news-pagination p { font-size: .8rem; color: #64748b; }
.news-pagination > div { display: flex; gap: 12px; }
.news-empty { padding-block: 48px 64px; }
.news-empty h2 { font-size: 1.4rem; font-weight: 600; line-height: 1.6; color: #183345; }
.news-empty > p { color: #526574; font-size: .92rem; line-height: 1.9; margin-block: 18px 26px; }
.news-empty > div { display: flex; gap: 12px; flex-wrap: wrap; }
.news-article-header { padding-top: 42px; padding-bottom: 30px; border-bottom: 1px solid #d5dee6; }
.news-article-header > .news-eyebrow { display: inline-block; min-height: 30px; }
.news-article-header h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.5; font-weight: 600; color: #183345; letter-spacing: -.025em; margin-top: 12px; overflow-wrap: anywhere; }
.news-article-header .news-meta { margin-top: 22px; }
.news-article-header .news-tags { margin-top: 18px; }
.news-article-cover { margin-top: 32px; }
.news-article-cover img { width: 100%; height: auto; }
.news-article-body { padding-top: 36px; }
.news-article-body .max-w-7xl { max-width: 100%; padding-inline: 0; }
.news-article-body .prose { max-width: 100% !important; font-size: 1rem; line-height: 1.95; color: #334155; overflow-wrap: anywhere; overflow-x: auto; }
.news-article-body .prose h2 { font-size: 1.4rem; line-height: 1.6; font-weight: 600; margin-top: 2.3em; margin-bottom: 1em; }
.news-article-body .prose h3 { font-size: 1.15rem; line-height: 1.7; font-weight: 600; }
.news-article-body .prose h4 { font-size: 1rem; line-height: 1.7; font-weight: 600; }
.news-article-body .prose strong { font-weight: 600; }
.news-article-body .prose li { margin-block: .5em; }
.news-article-body img { max-width: 100%; height: auto; }
.news-article-body pre { max-width: 100%; overflow: auto; }
.news-article-block { min-width: 0; scroll-margin-top: calc(var(--site-header-height) + 28px); }
.news-article-block + .news-article-block { margin-top: 32px; }
.news-article-block.block-raw_html { overflow-x: auto; max-width: 100%; }
.news-article-body [data-aos] { opacity: 1 !important; transform: none !important; }
.news-article-footer { margin-top: 48px; padding-block: 24px; border-top: 1px solid #d5dee6; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.news-related { padding-block: 48px 72px; }
@media (max-width: 1023px) {
    .news-index-content { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 32px; }
    .news-row-with-image { grid-template-columns: 86px minmax(0, 1fr) 160px; }
    .news-resource-links { padding: 20px; }
}
@media (max-width: 767px) {
    .news-header { padding-top: 30px; }
    .news-header-intro { font-size: .92rem; margin-top: 14px; }
    .news-category-nav { flex-wrap: nowrap; overflow-x: auto; gap: 24px; margin-top: 24px; }
    .news-category-nav a { flex-shrink: 0; font-size: .82rem; min-height: 48px; gap: 7px; }
    .news-index-content, .news-category-content { padding-block: 32px 48px; }
    .news-index-content { display: flex; flex-direction: column; }
    .news-index-content > .news-resource-links { margin-top: 40px; }
    .news-index-content > .news-list-section, .news-index-content > .news-pagination, .news-index-content > .news-empty { width: 100%; }
    .news-featured { padding-top: 20px; width: 100%; }
    .news-featured h2 { font-size: 1.4rem; line-height: 1.65; margin-top: 16px; }
    .news-featured-summary { font-size: .9rem; margin-top: 18px; }
    .news-featured-bottom { gap: 16px; margin-top: 22px; }
    .news-resource-links { width: 100%; }
    .news-resource-links > a { min-height: 64px; }
    .news-list-section { margin-top: 44px; }
    .news-section-heading { align-items: flex-start; gap: 14px; padding-bottom: 16px; }
    .news-section-heading h2 { font-size: 1.2rem; }
    .news-section-heading > p { font-size: .72rem; }
    .news-row, .news-row-with-image { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 26px; }
    .news-row-date { display: flex; align-items: center; gap: 16px; padding-top: 0; }
    .news-row-date > a { margin-top: 0; }
    .news-row h3 { font-size: 1.05rem; line-height: 1.7; }
    .news-row-copy > p { font-size: .85rem; margin-top: 10px; }
    .news-row-image { max-width: 240px; margin-top: 0; }
    .news-reset { display: block; margin-left: 0; }
    .news-pagination { align-items: flex-start; flex-direction: column; }
    .news-article-header { padding-top: 26px; padding-bottom: 24px; }
    .news-article-header h1 { font-size: 1.6rem; line-height: 1.55; }
    .news-article-body { padding-top: 26px; }
    .news-article-body .prose { font-size: .94rem; line-height: 1.95; }
    .news-article-body .prose h2 { font-size: 1.25rem; }
    .news-article-body .prose h3 { font-size: 1.08rem; }
    .news-article-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .news-related { padding-block: 32px 48px; }
}
/* Figures follow the same site container as the article text. */
.news-figure-hint { color: #64748b; font-size: .74rem; line-height: 1.8; margin-top: 8px; }
@media (min-width: 1024px) {
    .news-figure-hint { display: none; }
}

/* === View Counts (Index, Category, Article) === */
.news-view-count,
.news-row-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.news-row-views {
    margin-top: 10px;
    font-size: .74rem;
}
.news-eye-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: .78;
}
@media (max-width: 767px) {
    .news-row-views { margin-top: 0; }
}

/* === Fixed Social Share Dock (Desktop: Right Vertical Center) === */
.news-share-dock {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #d5dee6;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.news-share-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px 2px;
    color: #475569;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.news-share-stat .news-share-icon {
    width: 15px;
    height: 15px;
    color: #075985;
}
.news-share-count-unit {
    display: none;
}
.news-share-divider {
    width: 22px;
    height: 1px;
    background: #e2e8f0;
    margin-block: 2px;
}
.news-share-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.news-share-item {
    position: relative;
}
.news-share-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.news-share-btn:hover {
    background: #f1f5f9;
    color: #075985;
    transform: translateY(-1px);
}
.news-share-btn-wechat:hover,
.news-share-btn-wechat.is-active {
    background: #ecfdf5;
    color: #07c160;
    border-color: #bbf7d0;
}
.news-share-btn-weibo:hover {
    background: #fef2f2;
    color: #e6162d;
}
.news-share-btn-linkedin:hover {
    background: #eff6ff;
    color: #0a66c2;
}
.news-share-btn-mail:hover {
    background: #f0f9ff;
    color: #075985;
}
.news-share-btn-copy.is-copied {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.news-share-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Hover tooltip on desktop */
@media (min-width: 1024px) {
    .news-share-btn[data-tooltip]::before {
        content: attr(data-tooltip);
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(4px);
        white-space: nowrap;
        padding: 5px 10px;
        border-radius: 6px;
        background: #0f172a;
        color: #ffffff;
        font-size: .72rem;
        font-weight: 500;
        line-height: 1.4;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    }
    .news-share-btn[data-tooltip]:hover::before,
    .news-share-btn[data-tooltip]:focus-visible::before {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    /* Hide tooltip while WeChat popover is open */
    .news-share-btn-wechat.is-active::before {
        opacity: 0 !important;
    }
}

/* WeChat QR Popover */
.news-wechat-popover {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
    width: 196px;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d5dee6;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    text-align: center;
    z-index: 50;
}
.news-wechat-qr {
    width: 152px;
    height: 152px;
    margin: 0 auto;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.news-wechat-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}
.news-wechat-title {
    margin-top: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: #0f172a;
}
.news-wechat-hint {
    margin-top: 3px;
    font-size: .7rem;
    color: #64748b;
}

/* === Mobile / Tablet (< 1024px): Fixed Bottom Bar === */
@media (max-width: 1023px) {
    body.news-article-page {
        padding-bottom: 64px;
    }
    .news-share-dock {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-between;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    }
    .news-share-stat {
        flex-direction: row;
        gap: 6px;
        padding: 0;
        font-size: .78rem;
        font-weight: 500;
        color: #526574;
    }
    .news-share-count-unit {
        display: inline;
    }
    .news-share-divider {
        display: none;
    }
    .news-share-actions {
        flex-direction: row;
        gap: 4px;
    }
    .news-share-btn {
        width: 36px;
        height: 36px;
    }
    .news-wechat-popover {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(100% + 14px);
        transform: translateX(-50%);
    }
}
