/* Scoped to SPM feed sections; inherits existing accessibility and theme styles. */
.spm-pp-cnbc { --rss-bg: #fff; --rss-text: #20202a; --rss-muted: #5c5c69; --rss-border: #b99af5; color: var(--rss-text); }
[data-bs-theme="dark"] .spm-pp-cnbc { --rss-bg: #0b011d; --rss-text: #f5f2fb; --rss-muted: #bab2ca; --rss-border: #8054bd; }
.spm-pp-cnbc *, .spm-pp-cnbc *::before, .spm-pp-cnbc *::after { box-sizing: border-box; }
.spm-pp-cnbc [hidden] { display: none !important; }
.spm-pp-cnbc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.spm-pp-cnbc-card { min-width: 0; padding: .85rem; border: 1px solid var(--rss-border); border-radius: 1rem; background: var(--rss-bg); overflow-wrap: anywhere; }
.spm-pp-cnbc-title { font-size: 1.05em; line-height: 1.4; margin: 0 0 .65rem; font-weight: 650; }
.spm-pp-cnbc-title a, .spm-pp-cnbc-meta a { color: inherit; text-decoration: none; }
.spm-pp-cnbc-title a:hover, .spm-pp-cnbc-meta a:hover { text-decoration: underline; }
.spm-pp-cnbc-media { position: relative; aspect-ratio: 16 / 9; background: #161020; border-radius: .3rem; overflow: hidden; }
.spm-pp-cnbc-image-link, .spm-pp-cnbc-play { display: block; width: 100%; height: 100%; }
.spm-pp-cnbc-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.spm-pp-cnbc-play { position: relative; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.spm-pp-cnbc-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #17062ddd; border: 2px solid #fff; font-size: 1.35rem; padding-left: .15rem; }
.spm-pp-cnbc-player { display: block; width: 100%; height: 100%; border: 0; }
.spm-pp-cnbc-video-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; }
.spm-pp-cnbc-close { border: 1px solid var(--rss-border); border-radius: .4rem; background: var(--rss-bg); color: var(--rss-text); padding: .45rem .7rem; min-height: 44px; font: inherit; cursor: pointer; }
.spm-pp-cnbc-source-link { color: var(--rss-text); padding: .5rem 0; text-decoration: underline; }
.spm-pp-cnbc-summary { font-size: .93em; line-height: 1.65; margin: .7rem 0; }
.spm-pp-cnbc-meta { font-size: .8em; color: var(--rss-muted); margin-top: .7rem; }
.spm-pp-cnbc-meta a { display: inline-block; padding: .4rem 0; }
.spm-pp-cnbc-status { color: var(--rss-muted); font-size: .9em; margin: 0 0 .8rem; }
.spm-pp-cnbc-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.spm-pp-cnbc-controls .btn { min-height: 44px; }
.spm-pp-cnbc :is(a, button, iframe):focus-visible { outline: 3px solid #6610f2; outline-offset: 3px; }
[data-bs-theme="dark"] .spm-pp-cnbc :is(a, button, iframe):focus-visible { outline-color: #ffd568; }
@media (max-width: 991.98px) { .spm-pp-cnbc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .spm-pp-cnbc-grid { grid-template-columns: minmax(0, 1fr); } }

/* SPM News Wall 2: media, linked title, description, network/date. */
.spm-pp-cnbc[data-layout="wall-2"] .spm-pp-cnbc-title { margin-top: .75rem; }

/* Preserve the Business desk's 8/4 split and give the feed the full left column. */
#business-pane > .pp-workspace__grid > .pp-feed-slot { display: block; padding: 0; border: 0; background: transparent; min-width: 0; text-align: left; }
#business-pane > .pp-workspace__grid > .pp-feed-slot > div { width: 100%; min-width: 0; }
.spm-pp-cnbc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { #business-pane > .pp-workspace__grid--rail { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (max-width: 575.98px) { .spm-pp-cnbc-grid { grid-template-columns: minmax(0, 1fr); } }
