/* Homepage Investing Spotlight only. The shared stylesheet owns colours for
   controls, carousel state, focus, and inactive slides. The artwork's colour
   comes from the campaign. There is no dismiss button in this placement. */
.rb-spotlight-section.rb-invest-spot {
    --inv-paper: #f7faf6;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: transparent;
}
.rb-invest-spot *, .rb-invest-spot *::before, .rb-invest-spot *::after { box-sizing: border-box; }
/* Match the top Spotlight edges inside RateBuddy's padded homepage. Use the
   page width rather than 100vw so a visible scrollbar never adds overflow. */
.home-landing-page > .rb-spotlight-section.rb-invest-spot {
    width: calc(100% + 40px);
    margin-inline: -20px;
}
@media (max-width: 992px) {
    .home-landing-page > .rb-spotlight-section.rb-invest-spot {
        width: calc(100% + 30px);
        margin-inline: -15px;
    }
}
.rb-invest-spot .rb-spotlight-section__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.rb-invest-spot .rb-spotlight__slides {
    border: 0;
    background: var(--inv-paper);
}
.rb-invest-spot .rb-spotlight--split {
    position: relative;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    grid-template-rows: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--inv-paper);
}
.rb-invest-spot .rb-spotlight__artwork {
    min-height: 0;
}
.rb-invest-spot .rb-spotlight__artwork img { object-fit: contain; }
.rb-invest-spot .rb-invest-spot__body {
    min-width: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 10px;
    padding: 22px clamp(18px, 2.7vw, 52px);
}
.rb-invest-spot .rb-invest-spot__messages { min-width: 0; }
.rb-invest-spot .rb-invest-spot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
}
.rb-invest-spot .rb-invest-spot__eyebrow {
    display: inline-block;
    padding: 4px 9px;
    background: #cceecd;
    color: #15452e;
    font: 750 .74rem/1.2 system-ui,sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.rb-invest-spot .rb-spotlight__badge {
    position: static;
    padding: 2px 7px;
    border-radius: 4px;
}
.rb-invest-spot .rb-spotlight__title {
    margin: 0;
    color: #163c36;
    font-size: clamp(1.55rem, 2.35vw, 2.25rem);
    letter-spacing: -.03em;
    line-height: 1.12;
}
.rb-invest-spot .rb-spotlight__bullets {
    grid-template-columns: minmax(0, 1fr);
    margin: 9px 0 0;
    padding: 0;
    gap: 5px;
    font-size: clamp(.94rem, 1.06vw, 1.04rem);
    line-height: 1.4;
}
.rb-invest-spot .rb-spotlight__bullets li { gap: 10px; }
.rb-invest-spot .rb-invest-spot__diamond {
    flex: 0 0 .42em;
    height: .42em;
    margin: .48em .08em 0 .13em;
    background: #187158;
    transform: rotate(45deg);
}
.rb-invest-spot .rb-invest-spot__footer { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.rb-invest-spot .rb-spotlight__actions { align-items: center; gap: 6px 12px; }
.rb-invest-spot .rb-spotlight__links { margin: 0; }
.rb-invest-spot .rb-spotlight__links a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding-inline: 0;
    font-size: .86rem;
}
.rb-invest-spot .rb-spotlight__button {
    flex: 0 1 auto;
    min-height: 42px;
    max-width: 100%;
    padding: 8px 16px;
    font-size: .9rem;
    white-space: normal;
}
.rb-invest-spot .rb-spotlight__dots {
    position: static;
    grid-area: 2 / 1;
    justify-self: end;
    margin-inline-end: 12px;
    min-height: 28px;
}
@media (min-width: 48em) {
    /* Give short offers a prominent poster. Longer copy determines the
       slide height in normal flow; the message list never scrolls separately. */
    .rb-invest-spot .rb-spotlight--split { min-height: clamp(320px, 26vw, 416px); }
    .rb-invest-spot.rb-spotlight-section--carousel .rb-invest-spot__body { padding-bottom: 40px; }
    .rb-invest-spot .rb-spotlight__dots {
        position: absolute;
        inset: auto clamp(18px, 2.7vw, 52px) 1px 43%;
        justify-content: flex-end;
        margin: 0;
    }
}
@media (max-width: 47.999em) {
    .rb-invest-spot .rb-spotlight--split { display: block; }
    /* Give the poster its own space instead of shrinking it to a thumbnail. */
    .rb-invest-spot .rb-spotlight__artwork {
        height: clamp(180px, 56vw, 280px);
    }
    .rb-invest-spot .rb-invest-spot__body { padding: 16px clamp(16px, 4vw, 26px) 10px; }
    .rb-invest-spot .rb-spotlight__button, .rb-invest-spot .rb-spotlight__links a { min-height: 44px; }
    .rb-invest-spot .rb-spotlight__dots { justify-self: center; margin: 0 0 2px; }
}
