/* Homepage discovery introduction. Load AFTER intro-editorial.css.
 * Six upper navigation groups form two columns; their buttons stay compact.
 * The existing rbhi8-* category directory below is unchanged.
 */
#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-intro {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr);
    align-items: center;
    gap: clamp(28px, 3vw, 48px);
    padding: 14px 0 10px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-lead,
#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcuts,
#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-group {
    min-width: 0;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-headline {
    margin: 0;
    padding: 0;
    border: 0;
    color: #163f32;
    font-family: inherit;
    font-size: clamp(34px, 3.2vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.045em;
    text-transform: none;
    overflow-wrap: break-word;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-headline > span {
    display: block;
    color: #227253;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-positioning {
    max-width: 42ch;
    margin: 18px 0 0;
    color: #254f3f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-wrap: pretty;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-description {
    max-width: 54ch;
    margin: 14px 0 0;
    color: #57675f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    text-wrap: pretty;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcuts {
    padding: 0 0 0 clamp(24px, 2.3vw, 36px);
    border-left: 1px solid #dce7df;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px 20px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-group {
    margin: 0;
    padding: 0;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-group-title {
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: #163f32;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.15px;
    text-transform: none;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-grid > li {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Light colour treatments retained; 44px minimum targets allow slim buttons. */
#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut {
    --rbhi9-tile-bg: #eef7f1;
    --rbhi9-tile-border: #d4e6d8;
    --rbhi9-tile-hover-bg: #e5f1e9;
    --rbhi9-tile-hover-border: #81aa91;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--rbhi9-tile-border);
    border-radius: 8px;
    background: var(--rbhi9-tile-bg);
    color: #153a2d;
    box-shadow: 0 2px 3px rgb(27 86 59 / 2%);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut--blue {
    --rbhi9-tile-bg: #eff5fc;
    --rbhi9-tile-border: #d6e3f2;
    --rbhi9-tile-hover-bg: #e5effa;
    --rbhi9-tile-hover-border: #8cabc9;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut--amber {
    --rbhi9-tile-bg: #fff7e9;
    --rbhi9-tile-border: #eddfc3;
    --rbhi9-tile-hover-bg: #faf0db;
    --rbhi9-tile-hover-border: #bba477;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #dfeee4;
    color: #337255;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-icon .bi {
    font-size: 14px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut--blue .rbhi9-shortcut-icon {
    background: #e0ebf8;
    color: #486a8b;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut--amber .rbhi9-shortcut-icon {
    background: #f4e8d0;
    color: #8a6c38;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-label {
    min-width: 0;
    overflow-wrap: break-word;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 32px;
    margin: 4px 0 0;
    color: #466457;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: #b9cebf;
    text-underline-offset: 3px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-category-link > span {
    min-width: 0;
    overflow-wrap: break-word;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut:focus-visible,
#rb-home-intro-v7.rb-home-intro--editorial .rbhi9-category-link:focus-visible {
    outline: 3px solid #1664c0;
    outline-offset: 3px;
}

@media (hover: hover) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut:hover {
        border-color: var(--rbhi9-tile-hover-border);
        background: var(--rbhi9-tile-hover-bg);
        color: #153a2d;
        box-shadow: 0 3px 10px rgb(27 86 59 / 7%);
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-category-link:hover {
        color: #163f32;
        text-decoration-color: currentColor;
    }
}

@media (max-width: 1099px) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 6px 0 0;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-headline {
        font-size: clamp(32px, 4.6vw, 46px);
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-description {
        max-width: 75ch;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcuts {
        padding: 18px 0 0;
        border-top: 1px solid #dce7df;
        border-left: 0;
    }
}

@media (max-width: 599px) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-intro {
        gap: 20px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-headline {
        font-size: clamp(30px, 7.5vw, 40px);
        line-height: 1.12;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-positioning {
        margin-top: 14px;
        font-size: 15px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut-groups {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (pointer: coarse) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-category-link {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi9-shortcut {
        transition: none;
    }
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory.rbhi8-directory--cards {
    margin: 24px 0 0;
    padding: 20px;
    border: 1px solid #e1eee7;
    border-radius: 22px;
    background: #eef7f2;
    color: #153c30;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-directory-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin: 0 0 16px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-directory-heading h2 {
    margin: 0;
    color: #153c30;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.4px;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-directory-heading > span {
    display: block;
    color: #51675d;
    font-size: 12px;
    line-height: 1.5;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    border: 0;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    min-height: 164px;
    padding: 18px 20px 16px;
    border: 1px solid #fff;
    border-radius: 14px;
    background: #fff;
    color: #153c30;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 12px rgb(21 60 48 / 3%);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

/* Remove the previous directory separators, including its nth-child rules. */
#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product::before {
    content: none;
    display: none;
}

/* Decorative arrow, not an additional link or click handler. */
#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #6c8278;
    border-right: 1.5px solid #6c8278;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    margin: 0 0 12px;
    border-radius: 17px;
    background: linear-gradient(145deg, #edf6d5, #d9eee1);
    color: #21684e;
    transform: rotate(-5deg);
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-icon .bi {
    font-size: 29px;
    transform: rotate(5deg);
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product:nth-child(3n + 2) .rbhi8-product-icon {
    background: linear-gradient(145deg, #e9f1fc, #dcece8);
    color: #36618a;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product:nth-child(3n) .rbhi8-product-icon {
    background: linear-gradient(145deg, #fff1da, #f6e6c7);
    color: #896124;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-name {
    color: #153c30;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: break-word;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-desc {
    display: block;
    max-width: 26ch;
    margin-top: 5px;
    color: #57675f;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product:focus-visible {
    outline: 3px solid #1664c0;
    outline-offset: 3px;
    border-color: #1664c0;
}

@media (hover: hover) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product:hover {
        border-color: #91bca6;
        background: #fff;
        color: #153c30;
        box-shadow: 0 6px 18px rgb(21 60 48 / 9%);
        transform: translateY(-2px);
    }
}

#rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards + .rbhi8-footer {
    margin: 0;
    padding: 13px 2px 24px;
    background: transparent;
}

@media (max-width: 900px) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory.rbhi8-directory--cards {
        margin-top: 20px;
        padding: 16px;
        border-radius: 18px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-directory-heading {
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 14px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product {
        min-height: 150px;
        padding: 15px 10px 14px;
        border-radius: 12px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
        border-radius: 13px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-icon .bi {
        font-size: 25px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-name {
        font-size: 14px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product-desc {
        font-size: 11px;
    }

    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product::after {
        top: 12px;
        right: 12px;
        width: 6px;
        height: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #rb-home-intro-v7.rb-home-intro--editorial .rbhi8-directory--cards .rbhi8-product {
        transition: none;
        transform: none;
    }
}


/* Span both shortcut columns below Credit Cards and Banking. */
#rb-home-intro-v7 .rbhi9-shortcut-groups > [aria-labelledby="rbhi9-group-credit-score"] {
    grid-column: 1 / -1;
}

#rb-home-intro-v7.rb-home-intro--editorial
[aria-labelledby="rbhi9-group-credit-score"] .rbhi9-shortcut {
    --rbhi9-tile-bg: #754326;
    --rbhi9-tile-border: #754326;
    --rbhi9-tile-hover-bg: #59321c;
    --rbhi9-tile-hover-border: #59321c;
    color: #fff;
}

#rb-home-intro-v7 [aria-labelledby="rbhi9-group-credit-score"] .rbhi9-shortcut-label {
    color: #fff;
    font-weight: 700;
}