/* Trading.HK newsroom: source-led hierarchy, linked taxonomy and ordinary GET navigation. */
.news { color: var(--ink); padding-bottom: 48px; }
.news a { text-decoration: none; }
.news a:not(.research-button):hover { color: var(--mint); }
.news a:focus-visible, .news summary:focus-visible, .news input:focus-visible, .news select:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.news .research-button { min-height: 44px; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-top: 36px; padding-bottom: 24px; }
.news-heading h1 { margin: 8px 0 12px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.025em; }
.news-heading p { max-width: 58em; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.news-breadcrumb { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.news-breadcrumb a, .news-back { display: inline-flex; align-items: center; min-height: 32px; }
.news-feed-meta { display: grid; flex: 0 0 auto; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.news-filter-form { padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.news-search > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.news-search > div { display: flex; gap: 12px; }
.news input, .news select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.news-search input { flex: 1; }
.news-search button { flex: 0 0 auto; }
.news-filters { margin-top: 12px; }
.news-filters > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.news-filters > summary::-webkit-details-marker { display: none; }
.news-filters > summary svg { width: 18px; height: 18px; }
.news-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 12px 0; }
.news-filter-grid label { display: grid; align-content: start; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.news-filter-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.news-filter-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.news-clear { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; }
.news-topic-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-topic-bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.news-topic-bar a[aria-current] { color: var(--mint); text-decoration: underline; text-underline-offset: 8px; font-weight: 600; }
.news-lead-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin: 24px 0 36px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.news-lead-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.news-story { min-width: 0; padding: 24px 0; }
.news-story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.news-story-meta a { display: inline-flex; align-items: center; min-height: 28px; color: var(--mint); }
.news-story-meta time { white-space: nowrap; }
.news-story-title { margin: 10px 0; font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.news-story-title a { display: block; min-height: 44px; color: var(--ink); }
.news-story-title a:hover { color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.news-excerpt { max-width: 72ch; margin: 12px 0 16px; color: var(--muted); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.news-story--lead { padding: 30px; }
.news-story--lead .news-story-title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; }
.news-story--lead .news-excerpt { font-size: 17px; }
.news-briefs { padding: 8px 24px; border-left: 1px solid var(--line); }
.news-story--brief { padding: 16px 0; }
.news-story--brief + .news-story--brief { border-top: 1px solid var(--line); }
.news-story--brief .news-story-title { font-size: 18px; }
.news-story--brief .news-excerpt, .news-story--brief .news-tags { display: none; }
.news-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; margin-top: 28px; align-items: start; }
.news-stream { min-width: 0; }
.news-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.news-section-heading h2, .news-topic-directory h2 { margin: 0; font-size: 21px; }
.news-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.news-story--row { border-bottom: 1px solid var(--line); }
.news-topic-directory { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.news-topic-directory ul { margin: 16px 0 0; padding: 0; list-style: none; }
.news-topic-directory a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 8px 0; font-size: 14px; }
.news-topic-directory a > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.news-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--surface); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.news-tags a:hover { border-color: var(--mint); background: var(--raised); }
.news-tags .news-more-tags { color: var(--mint); border-color: transparent; background: transparent; }
.news-pagination { margin: 24px 0; }
.news .mp-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.news .mp-page { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; }
.news .mp-page svg { width: 16px; height: 16px; }
.news .mp-page.is-current { background: var(--ink); color: var(--surface); }
.news .mp-page.is-disabled { color: var(--muted); background: transparent; }
.news .mp-page.is-gap { border: 0; background: transparent; }
.news-empty { margin: 24px 0; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.news-empty h1, .news-empty h2 { margin: 0 0 12px; font-size: 26px; }
.news-empty p { max-width: 66ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.news-taxonomy-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-taxonomy-note h3 { margin: 0; font-size: 18px; }
.news-attribution { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.news-detail { padding-top: 28px; }
.news-back { color: var(--mint); font-size: 14px; }
.news-story-header { max-width: 1050px; padding: 24px 0 32px; }
.news-provider { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.news-story-header h1 { margin: 0 0 24px; font-size: clamp(29px, 3.5vw, 44px); line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.news-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.news-source-copy, .news-source-details { min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.news-source-copy h2, .news-source-details h2 { margin: 0 0 18px; font-size: 23px; }
.news-full-excerpt { max-width: 66ch; margin: 0 0 24px; font-size: 19px; line-height: 1.85; overflow-wrap: anywhere; }
.news-source-note, .news-machine-note, .news-tag-explanation { color: var(--muted); font-size: 13px; line-height: 1.8; }
.news-machine-note { margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--mint); }
.news-source-copy > .research-button { flex-wrap: wrap; }
.news-tag-section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.news-tag-groups { display: grid; gap: 24px; }
.news-tag-groups h3 { margin: 0; font-size: 15px; }
.news-source-details dl { margin: 0; }
.news-source-details dt { margin-top: 18px; color: var(--muted); font-size: 12px; }
.news-source-details dd { margin: 5px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.news-source-details > p { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.news-related { margin-top: 40px; }
.news-related > h2 { margin-bottom: 8px; font-size: 24px; }
.news-related > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.news-story--related { border-bottom: 1px solid var(--line); }
.news-story--related .news-excerpt { display: none; }
.home-news { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.home-news > header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: baseline; }
.home-news h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
.home-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.home-news-list article { min-width: 0; }
.home-news-list h3 { margin: 10px 0; font-size: 18px; line-height: 1.5; }
.home-news-list p { margin: 0; color: var(--muted); font-size: 12px; }
.home-news-empty { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 1100px) {
    .news-heading { display: block; }
    .news-feed-meta { margin-top: 20px; }
    .news-body-grid, .news-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .news-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-topic-directory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 760px) {
    .news-heading { padding-top: 24px; }
    .news-search > div { flex-wrap: wrap; }
    .news-search button { width: 100%; }
    .news-filter-form { padding: 16px; }
    .news-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .news-lead-grid { grid-template-columns: minmax(0, 1fr); }
    .news-story--lead { padding: 22px; }
    .news-briefs { padding: 0 22px; border-left: 0; border-top: 1px solid var(--line); }
    .news-tags a, .news-story-meta a, .news-back { min-height: 44px; }
    .news-topic-directory ul, .news-related > div, .home-news-list { grid-template-columns: minmax(0, 1fr); }
    .news-empty, .news-source-copy, .news-source-details { padding: 22px; }
    .news-full-excerpt { font-size: 17px; }
    .home-news { padding: 22px; }
}
@media print {
    .news-filter-form, .news-topic-bar, .news-pagination, .news-topic-directory { display: none; }
    .news-body-grid, .news-lead-grid, .news-detail-grid { display: block; }
    .news-briefs { border-left: 0; }
}
