/* Article reading, adjacent stories and the shared market updates panel. */
.fxm-news-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 40px; }
.fxm-news-detail-main, .fxm-news-detail-sidebar, .fxm-news-detail-article { min-width: 0; }
.fxm-news-detail-crumbs { flex-wrap: wrap; row-gap: 7px; }
.fxm-news-detail-crumbs > span:last-child { min-width: 0; }
.fxm-news-detail-article h1 { text-wrap: pretty; overflow-wrap: anywhere; }
.fxm-news-detail-article .news-content { overflow-wrap: anywhere; }
.fxm-news-detail-article .news-content img { max-width: 100%; height: auto; }
.fxm-news-detail-article .news-content table { display: block; max-width: 100%; overflow-x: auto; }
.fxm-news-detail-article .news-content pre { max-width: 100%; overflow-x: auto; }
.fxm-news-detail-sidebar > * + * { margin-top: 24px; }
.fxm-news-detail-sidebar .fxm-news-flash-sidebar { scroll-margin-top: 88px; }
.fxm-news-related-brokers { padding: 20px; border: 1px solid #e4e7f0; border-radius: 20px; background: #fff; }
.fxm-news-related-brokers h2 { margin: 0 0 12px; color: #252d46; font-family: var(--font-family-heading); font-size: 18px; font-weight: 700; line-height: 1.5; }
.fxm-news-related-brokers__list { display: flex; flex-direction: column; }
.fxm-news-related-brokers__item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 0; color: #2d3550; text-decoration: none; }
.fxm-news-related-brokers__item + .fxm-news-related-brokers__item { border-top: 1px solid #eff0f5; }
.fxm-news-related-brokers__item:last-child { padding-bottom: 0; }
.fxm-news-related-brokers__item:hover { color: #6239f5; }
.fxm-news-related-brokers__item:focus-visible { outline: 2px solid #6239f5; outline-offset: 4px; border-radius: 6px; }
.fxm-news-related-brokers__logo { display: block; flex: 0 0 64px; width: 64px; height: 48px; border-radius: 6px; }
.fxm-news-related-brokers__name { min-width: 0; font-family: var(--font-family-body); font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.fxm-news-adjacent { margin-top: 32px; }
.fxm-news-adjacent__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fxm-news-adjacent__header h2 { margin: 0; color: #252d46; font-family: var(--font-family-heading); font-size: 17px; font-weight: 700; }
.fxm-news-adjacent__header p { margin: 0; color: #8991a8; font-size: 11px; }
.fxm-news-adjacent__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fxm-news-adjacent__card { display: flex; flex-direction: column; min-width: 0; min-height: 166px; padding: 20px; border: 1px solid #e4e7f0; border-radius: 20px; background: #fff; transition: border-color .18s ease, background-color .18s ease; }
.fxm-news-adjacent__card:hover { border-color: #cfc2f7; background: #fcfbff; }
.fxm-news-adjacent__card:focus-visible { outline: 2px solid #6239f5; outline-offset: 4px; }
.fxm-news-adjacent__direction { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #7b829a; font-size: 11px; }
.fxm-news-adjacent__direction svg { flex: 0 0 auto; color: #6239f5; }
.fxm-news-adjacent__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: #283149; font-family: var(--font-family-heading); font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.fxm-news-adjacent__card:hover .fxm-news-adjacent__title { color: #6239f5; }
.fxm-news-adjacent__summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 8px 0 0; color: #7b849c; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.fxm-news-adjacent__meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: auto; padding-top: 14px; color: #9aa1b5; font-size: 10px; line-height: 1.6; }
.fxm-news-adjacent__card--next .fxm-news-adjacent__direction { justify-content: flex-end; }
.fxm-news-adjacent__card--next { text-align: right; }
.fxm-news-adjacent__card--next .fxm-news-adjacent__meta { justify-content: flex-end; }
@media (max-width: 1100px) and (min-width: 1024px) {
	.fxm-news-detail-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 28px; }
}
@media (max-width: 1023px) {
	.fxm-news-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 639px) {
	.fxm-news-adjacent__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.fxm-news-adjacent__card { min-height: 0; padding: 18px; border-radius: 16px; }
	.fxm-news-detail-article { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.fxm-news-adjacent__card { transition: none; }
}
[data-action="news-bookmark"][aria-pressed="true"] { color: #4F34D9; border-color: #c5bbed; background: #f0edff; font-weight: 500; }
[data-action="news-bookmark"][aria-pressed="true"] svg { fill: currentColor; }
[data-action="news-bookmark"][aria-busy="true"] { opacity: .6; cursor: progress; }
[data-action="news-bookmark"].is-favorite-error { border-color: #F43F5E; color: #F43F5E; }
[data-action="news-bookmark"].is-favorite-pop { animation: fxm-favorite-pop .32s ease; }
@media (prefers-reduced-motion: reduce) { [data-action="news-bookmark"].is-favorite-pop { animation: none; } }

/* ---------- H5 (≤767px): reading-first article page ---------- */
@media (max-width: 767.98px) {
	.fxm-news-detail-page { padding-top: var(--fxm-m-header, 60px); }
	.fxm-news-detail-page > div:first-of-type > div { padding-block: 10px; }
	.fxm-news-detail-crumbs { flex-wrap: nowrap; gap: 4px; overflow: hidden; font-size: 12px; white-space: nowrap; }
	.fxm-news-detail-crumbs svg { flex: 0 0 auto; width: 12px; height: 12px; }
	.fxm-news-detail-crumbs > span:last-child { flex: 1 1 auto; max-width: none; overflow: hidden; text-overflow: ellipsis; }
	.fxm-news-detail-page > div:nth-of-type(2) { padding: 12px 12px 28px; }
	.fxm-news-detail-layout { gap: 20px; }
	.fxm-news-detail-article { border-radius: 20px; box-shadow: 0 14px 30px -28px rgba(79, 52, 217, .35); }
	.fxm-news-detail-article > .p-6 { padding: 18px 16px 20px; }
	.fxm-news-detail-article h1 { font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
	.fxm-news-detail-article h1 + div { gap: 6px 12px; margin-top: 10px; font-size: 12px; }
	/* Back / share / bookmark: one row of equal pills. */
	.fxm-news-detail-article div:has(> [data-action="news-bookmark"]) { flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
	.fxm-news-detail-article div:has(> [data-action="news-bookmark"]) > * { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 38px; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
	.fxm-news-detail-article .my-6 { margin-block: 16px; }
	.fxm-news-detail-article .news-content { font-size: 16px; line-height: 1.85; }
	.fxm-news-detail-article .news-content :is(h2, h3, h4) { font-size: 16.5px; line-height: 1.5; }
}
@media (max-width: 767.98px) {
	.fxm-news-detail-article .rounded-2xl.bg-\[\#F8F7FC\] { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
	.fxm-news-detail-article .rounded-2xl.bg-\[\#F8F7FC\] p { font-size: 13px; }
}
