.smx-news {
    --news-ink: #142047;
    --news-muted: #536485;
    --news-accent: #2457d5;
    --news-surface: #fff;
    --news-line: #dce5f5;
    --news-soft: #edf3ff;
    color: var(--news-ink);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

html[data-bs-theme="dark"] .smx-news {
    --news-ink: #e9efff;
    --news-muted: #b5c4e3;
    --news-accent: #9eb8ff;
    --news-surface: #1c2944;
    --news-line: #384b70;
    --news-soft: #243654;
}

.smx-news-list, .smx-news-detail { max-width: 1200px; margin-inline: auto; padding: 8px 0 32px; }
.smx-news a { color: var(--news-accent); text-decoration: none; }
.smx-news a:hover { text-decoration: underline; text-underline-offset: 3px; }
.smx-news :focus-visible { outline: 2px solid var(--news-accent); outline-offset: 3px; }
.smx-news h1, .smx-news h2, .smx-news h3 { color: var(--news-ink); letter-spacing: 0; }
.smx-news-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--news-line); }
.smx-news-heading h1, .smx-news-heading h2 { font-size: 30px; line-height: 1.2; font-weight: 750; margin: 0 0 6px; }
.smx-news-heading p { color: var(--news-muted); margin: 0; font-size: 14px; }
.smx-news-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 12px; align-items: end; margin-bottom: 26px; }
.smx-news-filters label { display: grid; min-width: 0; gap: 5px; font-size: 13px; font-weight: 600; margin: 0; }
.smx-news-filters input, .smx-news-filters select, .smx-news-filters button {
    width: 100%; min-width: 0; height: 44px; border-radius: 8px; border: 1px solid var(--news-line);
    padding: 0 10px; color: var(--news-ink); background: var(--news-surface); font: inherit;
}
.smx-news-filters button { display: grid; place-items: center; color: #fff; background: #2457d5; border-color: #2457d5; font-size: 19px; cursor: pointer; }
.smx-news-filters button:hover { background: #1946bb; }
.smx-news-results { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.smx-news-results h2, .smx-news-related h2 { font-size: 17px; font-weight: 700; margin: 0; }
.smx-news-results span { color: var(--news-muted); font-size: 13px; }
.smx-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.smx-news-card { display: flex; flex-direction: column; min-width: 0; background: var(--news-surface); border: 1px solid var(--news-line); border-radius: 8px; overflow: hidden; }
.smx-news-card:hover { border-color: var(--news-accent); }
.smx-news-card-content { padding: 16px; min-width: 0; }
.smx-news-card-text .smx-news-card-content { padding-top: 19px; border-top: 3px solid #7296ed; }
.smx-news .smx-news-card h3 { font-size: 18px; line-height: 1.4; }
.smx-news-card h3 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 9px 0 0; }
.smx-news-card h3 a { color: inherit; }
.smx-news-card p { color: var(--news-muted); font-size: 14px; margin: 9px 0 0; }
.smx-news-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--news-soft); }
.smx-news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.smx-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--news-muted); font-size: 13px; }
.smx-news-meta a { font-weight: 600; }
.smx-news-empty { margin: 12px 0 0; padding: 24px 0; border-block: 1px solid var(--news-line); color: var(--news-muted); }
.smx-news-empty h2 { font-size: 17px; margin: 0 0 6px; }
.smx-news-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.smx-news-pages a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--news-line); border-radius: 6px; background: var(--news-surface); }
.smx-news-pages a[aria-current="page"] { background: #2457d5; border-color: #2457d5; color: #fff; font-weight: 700; }
.smx-news-breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; }
.smx-news-article-layout { display: grid; grid-template-columns: minmax(0, 800px); }
.smx-news-article-layout.has-related { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; }
.smx-news-article { min-width: 0; }
.smx-news-article header { border-bottom: 1px solid var(--news-line); padding-bottom: 16px; margin-bottom: 18px; }
.smx-news-article h1 { font-weight: 750; font-size: 34px; line-height: 1.25; margin: 0 0 12px; }
.smx-news-article-cover { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--news-soft); border-radius: 8px; margin-bottom: 20px; }
.smx-news-prose { font-size: 16px; line-height: 1.75; min-width: 0; }
.smx-news-prose img, .smx-news-prose video { max-width: 100%; height: auto; }
.smx-news-prose iframe { max-width: 100%; }
.smx-news-prose table, .smx-news-prose pre { display: block; max-width: 100%; overflow-x: auto; }
.smx-news-prose a { text-decoration: underline; }
.smx-news-prose h2 { font-size: 22px; line-height: 1.4; }
.smx-news-prose h3 { font-size: 18px; line-height: 1.4; }
.smx-news-related { border-inline-start: 1px solid var(--news-line); padding-inline-start: 20px; }
.smx-news-related ul { padding: 0; margin: 8px 0 0; list-style: none; }
.smx-news-related li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--news-line); }
.smx-news-related li a { color: var(--news-ink); font-size: 14px; font-weight: 650; }
.smx-news-related li span { color: var(--news-muted); font-size: 12px; }
.smx-news-landing { scroll-margin-top: 100px; padding: 48px 16px; background: #f3f6ff; }
.smx-news-landing-inner { max-width: 1200px; margin-inline: auto; }
.smx-news-landing .smx-news-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.smx-news-all { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 650; }

@media (min-width: 768px) {
    .smx-news-grid:has(> .smx-news-card:only-child) { grid-template-columns: minmax(0, 740px); }
    .smx-news-card:only-child:has(.smx-news-cover) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
}
@media (max-width: 1100px) {
    .smx-news-list .smx-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smx-news-article-layout.has-related { grid-template-columns: minmax(0, 1fr); }
    .smx-news-related { border-inline-start: 0; border-top: 1px solid var(--news-line); padding: 16px 0 0; }
}
@media (max-width: 767.98px) {
    .smx-news-list, .smx-news-detail { padding-top: 0; }
    .smx-news .smx-news-heading h1, .smx-news .smx-news-heading h2 { font-size: 25px; }
    .smx-news-article h1 { font-size: 26px; }
    .smx-news-filters { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 8px; }
    .smx-news-filters label:first-of-type { grid-column: 1 / -1; }
    .smx-news-filters input, .smx-news-filters select { font-size: 16px; }
    .smx-news-grid, .smx-news-list .smx-news-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .smx-news-landing { padding: 32px 14px; }
}
