/* Palette is scoped to the banking guides, not the main site or the whole blog. */
.bank-guides,
.fidelity-public .article-guide-pilot[data-bank-guides-theme="violet"] {
    --bank-ink: #231637;
    --bank-muted: #554766;
    --bank-link: #5632a0;
    --bank-line: #e4daef;
    --bank-soft: #f5effc;
    --bank-tint: #ede2fc;
    --bank-white: #fffdff;
    --bank-focus: #7549c2;
}
.bank-guides {
    color: var(--bank-ink);
    padding-bottom: clamp(2rem, 6vw, 4.5rem);
}
.bank-guides a {
    color: var(--bank-link);
    text-underline-offset: .22em;
}
.bank-guides a:focus-visible {
    outline: 3px solid var(--bank-focus);
    outline-offset: 3px;
}
.bank-guides__crumbs {
    margin-block: 1.35rem 1rem;
}
.bank-guides .bank-guides__hero {
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-block-size: clamp(22rem, 32vw, 28rem);
    border-radius: clamp(1.05rem, 2.5vw, 1.75rem);
    background: #201333;
}
.bank-guides__cover {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: 50% 53%;
}
.bank-guides__hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(91deg, rgba(26,13,47,.93) 0%, rgba(26,13,47,.81) 34%, rgba(26,13,47,.63) 52%, rgba(26,13,47,.11) 75%, transparent 100%);
    pointer-events: none;
}
.bank-guides__intro {
    position: relative;
    z-index: 2;
    padding: clamp(1.4rem, 4.25vw, 4.1rem);
    width: 61%;
    min-width: 0;
}
.bank-guides .bank-guides__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .46rem;
    margin: 0 0 .9rem;
    padding: .36rem .64rem;
    border: 1px solid #c2a7f465;
    border-radius: .4rem;
    background: #3d265e;
    color: #f5eafa;
    font-weight: 650;
    font-size: .73rem;
    letter-spacing: .075em;
    line-height: 1.4;
    text-transform: uppercase;
}
.bank-guides__eyebrow::before {
    content: "";
    flex: 0 0 .42rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #d3afff;
}
.fidelity-public .bank-guides .bank-guides__hero h1 {
    margin: 0;
    max-width: 19ch;
    color: #fff;
    font-size: clamp(2rem, 4.3vw, 3.8rem);
    line-height: 1.055;
    letter-spacing: -.05em;
    overflow-wrap: break-word;
}
.bank-guides .bank-guides__lead {
    max-width: 43ch;
    margin: 1.12rem 0 0;
    color: #f0e7fa;
    font-size: clamp(1rem, 1.45vw, 1.14rem);
    line-height: 1.62;
}
.bank-guides__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem .78rem;
    margin-top: 1.5rem;
}
.bank-guides__actions :is(.bank-guides__primary, .bank-guides__secondary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem .94rem;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: .63rem;
    font-size: .91rem;
    font-weight: 720;
    line-height: 1.4;
    text-decoration: none;
}
.bank-guides__actions .bank-guides__primary {
    background: #e4caff;
    color: #321951;
}
.bank-guides__actions .bank-guides__primary:hover {
    background: #f1ddff;
}
.bank-guides__actions .bank-guides__secondary {
    color: #f8edff;
    background: #302047;
    border-color: #8269aa;
}
.bank-guides__actions .bank-guides__secondary:hover {
    background: #442d64;
}
.bank-guides__actions a:focus-visible {
    outline-color: #f4daff;
}
.bank-guides__listing {
    margin-top: clamp(2.15rem, 5vw, 3.7rem);
}
.bank-guides__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .6rem 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.bank-guides__heading h2,
.bank-guides__note h2 {
    margin: 0;
    color: var(--bank-ink);
    line-height: 1.17;
    font-size: clamp(1.45rem, 2.55vw, 2.25rem);
    letter-spacing: -.025em;
}
.bank-guides__heading h2 {
    scroll-margin-top: 6rem;
}
.bank-guides__heading p,
.bank-guides__note p {
    margin: .48rem 0 0;
    color: var(--bank-muted);
    line-height: 1.55;
}
.bank-guides__count,
.bank-guides__pill {
    display: inline-flex;
    color: #503181;
    background: var(--bank-tint);
    border-radius: 2rem;
    line-height: 1.45;
    font-weight: 700;
}
.bank-guides__count {
    padding: .37rem .79rem;
    font-size: .84rem;
    white-space: nowrap;
}
.bank-guides__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.9rem, 1.8vw, 1.4rem);
}
.bank-guides__card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--bank-line);
    border-radius: 1.04rem;
    background: #fcf9ff;
    box-shadow: 0 .58rem 1.7rem rgba(54,29,88,.055);
}
.bank-guides__card:focus-within,
.bank-guides__card:hover {
    border-color: #cbb4e9;
}
.bank-guides__media {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(8.8rem, 15.2vw, 13.7rem);
    background: var(--bank-soft);
}
.bank-guides__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.bank-guides__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(111,69,164,.25);
    mix-blend-mode: color;
    pointer-events: none;
}
.bank-guides__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: start;
    gap: .68rem;
    padding: clamp(1rem, 2.15vw, 1.6rem);
    min-width: 0;
}
.bank-guides__pill {
    padding: .26rem .67rem;
    font-size: .8rem;
}
.bank-guides__card h3 {
    margin: 0;
    font-size: clamp(1.14rem, 2vw, 1.61rem);
    line-height: 1.23;
    letter-spacing: -.019em;
    overflow-wrap: anywhere;
}
.bank-guides__card h3 a {
    color: var(--bank-ink);
    text-decoration: none;
}
.bank-guides__card h3 a:hover {
    text-decoration: underline;
}
.bank-guides__card p {
    margin: 0;
    color: var(--bank-muted);
    font-size: clamp(.94rem, 1.3vw, 1.04rem);
    line-height: 1.55;
}
.bank-guides__arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    font-size: .91rem;
    font-weight: 720;
}
.bank-guides__note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    margin-top: clamp(1.8rem, 4vw, 2.9rem);
    padding: clamp(1.05rem, 2.55vw, 1.95rem);
    border: 1px solid #dac8ef;
    border-radius: 1.05rem;
    background: #f1e8fb;
}
.bank-guides__note h2 {
    font-size: clamp(1.16rem, 2.2vw, 1.63rem);
}
.bank-guides__note a {
    font-size: .94rem;
    font-weight: 720;
}

.fidelity-public .article-guide-pilot[data-bank-guides-theme="violet"] {
    --guide-blue: var(--bank-link);
    --guide-ink: var(--bank-ink);
    --guide-muted: var(--bank-muted);
    --guide-line: var(--bank-line);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-hero:not(.guide-hero--bank-reply) {
    background: #eee4fb;
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-hero:not(.guide-hero--bank-reply) .guide-eyebrow,
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-step-number {
    background: #e8d9f9;
    color: var(--bank-link);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-steps__arrow {
    color: #785aad;
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-summary {
    border-color: var(--bank-line);
    background: var(--bank-soft);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-summary__items > a + a,
.article-guide-pilot[data-bank-guides-theme="violet"] [data-editor-next-steps] a {
    border-color: #dfd0f0;
}
.article-guide-pilot[data-bank-guides-theme="violet"] [data-editor-next-steps] a {
    background: var(--bank-white);
}
.article-guide-pilot[data-bank-guides-theme="violet"] :is(.guide-toc,.guide-sources) {
    background: var(--bank-white);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-toc a {
    color: var(--bank-muted);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .guide-toc :is(a:hover, a.is-current) {
    color: var(--bank-link);
    background: var(--bank-soft);
}
.article-guide-pilot[data-bank-guides-theme="violet"] :is(a:focus-visible, summary:focus-visible) {
    outline-color: var(--bank-focus);
}
.fidelity-public .article-guide-pilot[data-bank-guides-theme="violet"] .article-body {
    color: #453750;
}
.article-guide-pilot[data-bank-guides-theme="violet"] .article-body blockquote {
    margin-inline: 0;
    padding: .9rem 1.05rem;
    border-inline-start: 3px solid #a587d0;
    border-radius: 0 .6rem .6rem 0;
    background: var(--bank-soft);
    color: var(--bank-ink);
}
.article-guide-pilot[data-bank-guides-theme="violet"] .article-body blockquote > p:last-child {
    margin-block-end: 0;
}

@media (max-width: 850px) {
    .bank-guides__note {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 710px) {
    .bank-guides__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .bank-guides .bank-guides__hero {
        align-items: start;
        min-block-size: 0;
    }
    .bank-guides__intro {
        width: 100%;
        padding-bottom: clamp(6.8rem, 32vw, 12rem);
    }
    .bank-guides .bank-guides__eyebrow {
        text-transform: none;
        letter-spacing: .025em;
    }
    .fidelity-public .bank-guides .bank-guides__hero h1 {
        font-size: clamp(1.9rem, 7.1vw, 2.7rem);
    }
    .bank-guides__cover {
        object-position: 86% 53%;
    }
    .bank-guides__hero::before {
        background: linear-gradient(180deg, rgba(26,13,47,.97), rgba(26,13,47,.94) 49%, rgba(26,13,47,.62) 70%, rgba(26,13,47,.18) 90%, transparent);
    }
    .bank-guides__media {
        height: auto;
        aspect-ratio: 2.12;
    }
}
