.alert-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100dvh;
    padding: 1rem;
    overflow: hidden;
    z-index: 9998;
    background: color-mix(in oklch, var(--ink) 62%, transparent);
    backdrop-filter: blur(10px);
}

.alert-box {
    position: relative;
    width: min(90vw, 640px);
    max-height: min(72dvh, 860px);
    padding: 0;
    overflow-y: auto;
    background: var(--card);
    color: var(--primary);
    border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px -35px color-mix(in oklch, var(--ink) 80%, transparent);
    font-family: var(--font-sans, Montserrat, system-ui, sans-serif);
    z-index: 1;
}

.alert-box__media {
    padding: 0.75rem;
}

.alert-box__image {
    width: 100%;
    max-height: calc(min(72dvh, 860px) - 1.5rem);
    object-fit: contain;
    border-radius: calc(var(--radius) - 0.25rem);
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: color-mix(in oklch, white 88%, transparent);
    border: 0;
    border-radius: 9999px;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 8px 20px -14px var(--ink);
    transition:
        background-color 0.2s var(--ease-out-quart),
        color 0.2s var(--ease-out-quart),
        transform 0.2s var(--ease-out-quart);
}

.close-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-1px);
}

.close-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.cookie-card {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 9999;
    display: none;
    width: min(calc(100vw - 2rem), 420px);
    padding: 1.125rem;
    color: var(--primary);
    background:
        linear-gradient(135deg, color-mix(in oklch, white 92%, var(--primary)) 0%, var(--card) 100%);
    border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
    border-radius: var(--radius);
    box-shadow:
        0 24px 70px -34px color-mix(in oklch, var(--ink) 82%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 70%, transparent);
    font-family: var(--font-sans, Montserrat, system-ui, sans-serif);
    backdrop-filter: blur(14px);
}

.cookie-card__eyebrow {
    color: var(--coral);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.cookie-card__title {
    margin: 0.5rem 0 0;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

.cookie-card__text {
    margin: 0.625rem 0 0;
    color: color-mix(in oklch, var(--primary) 78%, transparent);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.cookie-card__link {
    color: var(--coral);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.cookie-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
    margin-top: 1rem;
}

.cookie-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s var(--ease-out-quart),
        border-color 0.2s var(--ease-out-quart),
        color 0.2s var(--ease-out-quart),
        transform 0.2s var(--ease-out-quart),
        box-shadow 0.2s var(--ease-out-quart);
}

.cookie-card__button:hover {
    transform: translateY(-1px);
}

.cookie-card__button--primary {
    color: var(--primary-foreground);
    background: var(--primary);
    box-shadow: 0 12px 24px -18px var(--ink);
}

.cookie-card__button--secondary {
    color: var(--primary);
    background: transparent;
    border-color: color-mix(in oklch, var(--ink) 18%, transparent);
}

.cookie-card__button--secondary:hover {
    border-color: var(--primary);
    background: color-mix(in oklch, var(--ink) 6%, transparent);
}

@media (max-width: 520px) {
    .cookie-card {
        right: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }

    .cookie-card__actions {
        flex-direction: column-reverse;
    }

    .cookie-card__button {
        width: 100%;
    }
}

.hero-carousel-section {
    --hero-carousel-height: calc(100svh - 5.0625rem);
    height: var(--hero-carousel-height) !important;
    min-height: var(--hero-carousel-height) !important;
    max-height: var(--hero-carousel-height) !important;
}

.hero-carousel-section .owl-stage-outer,
.hero-carousel-section .owl-stage,
.hero-carousel-section .owl-item,
.hero-carousel-section .owl-item > div,
.hero-carousel,
.hero-carousel__slide {
    height: var(--hero-carousel-height) !important;
    min-height: var(--hero-carousel-height) !important;
    max-height: var(--hero-carousel-height) !important;
}

.hero-carousel__slide {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hero-carousel__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.hero-carousel__copy {
    width: min(42rem, 56vw);
    color: var(--primary-foreground);
    pointer-events: auto;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
    transition:
        opacity 0.8s ease 0.2s,
        filter 0.8s ease 0.2s,
        transform 0.8s var(--ease-out-quart) 0.2s;
}

.hero-carousel-section .owl-item.active .hero-carousel__copy {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.hero-carousel__title {
    margin: 0;
    font-size: clamp(2.5rem, 4.05vw, 4.65rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
    text-shadow: 0 3px 24px rgba(2, 9, 25, 0.35);
}

.hero-carousel__title strong {
    font-weight: 700;
}

.hero-carousel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-carousel__button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 9999px;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-carousel__button:hover {
    transform: translateY(-2px);
}

.hero-carousel__button--primary {
    border-color: var(--primary-foreground);
    background: var(--primary-foreground);
    color: var(--primary);
}

.hero-carousel__button--primary:hover {
    background: rgba(255, 255, 255, 0.88);
}

.hero-carousel__button--secondary {
    background: rgba(5, 16, 42, 0.18);
    color: var(--primary-foreground);
    backdrop-filter: blur(3px);
}

.hero-carousel__button--secondary:hover {
    border-color: var(--primary-foreground);
    background: rgba(255, 255, 255, 0.12);
}

.hero-scroll-indicator {
    z-index: 40;
}

.hero-carousel-section .owl-dots {
    position: absolute;
    left: 50%;
    bottom: max(5rem, calc(env(safe-area-inset-bottom) + 5rem));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transform: translateX(-50%);
}

.hero-carousel-section.owl-theme .owl-dots .owl-dot,
.hero-carousel-section .owl-theme .owl-dots .owl-dot {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 9999px;
}

.hero-carousel-section.owl-theme .owl-dots .owl-dot span,
.hero-carousel-section .owl-theme .owl-dots .owl-dot span {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0;
    border-radius: 9999px;
    background: color-mix(in oklch, var(--primary-foreground) 60%, transparent);
    box-shadow: 0 1px 4px rgba(6, 17, 46, 0.45);
    transition:
        transform 0.3s var(--ease-out-quart),
        background-color 0.3s var(--ease-out-quart);
}

.hero-carousel-section.owl-theme .owl-dots .owl-dot.active span,
.hero-carousel-section .owl-theme .owl-dots .owl-dot.active span {
    background: var(--primary-foreground);
    transform: scale(1.25);
}

.hero-carousel-section.owl-theme .owl-dots .owl-dot:hover span,
.hero-carousel-section .owl-theme .owl-dots .owl-dot:hover span {
    background: color-mix(in oklch, var(--primary-foreground) 90%, transparent);
}

/* Extend the existing detail link over its positioned card or row. */
a[data-fund-detail-link],
a[data-fund-detail-link]:hover {
    position: static;
    transform: none;
    scale: none;
}

a[data-fund-detail-link]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

a[data-fund-detail-link]:focus-visible::after {
    outline: 2px solid var(--primary);
    outline-offset: -3px;
    border-radius: 1rem;
}

.about-navigation {
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.about-navigation__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.about-navigation__link {
    flex: 0 0 auto;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.875rem;
    line-height: 1.25;
    transition: background-color 0.2s, color 0.2s;
}

.about-navigation__link:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.about-navigation__link.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(6, 17, 46, 0.12);
}

.fund-showcase-carousel {
    padding-left: 4px;
    padding-right: 4px;
    overflow: hidden;
    touch-action: pan-y;
    clip-path: inset(0 0 0 0);
}

.fund-showcase-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 1.5rem;
    margin: -1.5rem;
    clip-path: inset(0 4px 0 4px);
}

.fund-showcase-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.fund-showcase-carousel .owl-item {
    display: flex;
}

.fund-showcase-carousel .owl-item > div {
    display: flex;
}

.fund-showcase-carousel .showcase-card {
    display: flex;
    width: min(78vw, 320px);
    max-width: 320px;
}

.fund-showcase-carousel .showcase-card > a {
    width: 100%;
    text-decoration: none;
}

.fund-showcase-carousel .showcase-card > a:focus-visible {
    outline: 3px solid var(--ink) !important;
    outline-offset: 3px !important;
}

.fund-showcase-carousel .owl-dots {
    display: none;
}

.fund-comparison [hidden] { display: none !important; }
.fund-comparison__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.fund-comparison__picker { position: relative; flex-shrink: 0; }
.fund-comparison__add { border: 1px solid #06112e; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; color: #06112e; background: white; }
.fund-comparison__add:hover { background: #f4f2ef; }
.fund-comparison__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(352px, calc(100vw - 64px)); border: 1px solid #e1d9cd; border-radius: 20px; padding: 12px; background: white; box-shadow: 0 16px 32px #06112e20; }
.fund-comparison__menu input { width: 100%; border: 1px solid #e1d9cd; border-radius: 16px; padding: 8px 12px; font-size: 14px; }
.fund-comparison__options { max-height: 250px; overflow-y: auto; margin-top: 8px; }
.fund-comparison__options button { display: flex; width: 100%; gap: 12px; padding: 10px 8px; text-align: left; border-radius: 8px; font-size: 12px; line-height: 1.7; }
.fund-comparison__options button:hover { background: #f4f2ef; }
.fund-comparison__options strong { color: #06112e; font-size: 14px; min-width: 32px; }
.fund-comparison__options span { color: #738095; }
.fund-comparison__scroll { overflow-x: auto; margin-top: 24px; }
.fund-comparison__table { width: 100%; border-collapse: collapse; color: #06112e; font-size: 14px; }
.fund-comparison__table th, .fund-comparison__table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #e1d9cd; border-right: 1px solid #e1d9cd; vertical-align: top; }
.fund-comparison__table tr > :first-child { width: 150px; min-width: 150px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.fund-comparison__table [data-comparison-column] { min-width: 250px; max-width: 520px; overflow-wrap: anywhere; }
.fund-comparison__table tr > :nth-last-child(1 of :not([hidden])) { border-right: 0; }
.fund-comparison__table tbody tr:nth-child(even) { background: #faf9f7; }
.fund-comparison__table tbody tr:nth-child(even) th { background: #f4f1eb; }
.fund-comparison__table tbody tr:last-child > * { border-bottom: 0; }
.fund-comparison__table tbody tr:first-child td { font-size: 24px; font-weight: 600; }
.fund-comparison__column-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; }
.fund-comparison__column-heading button { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e1d9cd; border-radius: 50%; font-size: 18px; font-weight: 400; }
.fund-comparison__risk, .fund-comparison__risk > span { display: inline-flex; align-items: center; gap: 3px; }
.fund-comparison__risk strong { margin-left: 6px; font-size: 12px; }
.fund-comparison__risk i { width: 5px; height: 13px; background: #dcdee2; border-radius: 2px; }
.fund-comparison__risk i.is-filled { background: #172443; }
@media (max-width: 640px) {
    .fund-comparison__heading { align-items: flex-start; flex-direction: column; }
    .fund-comparison__picker { align-self: flex-end; }
    .fund-comparison__table tr > :first-child { width: 115px; min-width: 115px; }
    .fund-comparison__table th, .fund-comparison__table td { padding: 12px; }
}

.fund-showcase-curtain {
    pointer-events: none;
    background: transparent;
}

.fund-showcase-curtain__panel {
    background: #fff;
    opacity: 0;
    transition: transform 1s var(--ease-out-expo);
    will-change: transform;
}

.fund-showcase-curtain.is-ready .fund-showcase-curtain__panel {
    opacity: 1;
}

.fund-showcase-curtain__panel img {
    opacity: 1;
}

.fund-showcase-curtain__panel--right img {
    transform: scaleX(-1);
}

.fund-showcase-curtain__panel--left {
    box-shadow: rgba(6, 17, 46, 0.32) 22px 0 48px -16px;
    transform: translateX(0);
}

.fund-showcase-curtain__panel--right {
    box-shadow: rgba(6, 17, 46, 0.32) -22px 0 48px -16px;
    transform: translateX(0);
}

.fund-showcase-curtain__seam {
    opacity: 1;
    transition: opacity 0.45s var(--ease-out-quart);
}

.fund-showcase-curtain.is-open .fund-showcase-curtain__panel--left {
    transform: translateX(-100%);
}

.fund-showcase-curtain.is-open .fund-showcase-curtain__panel--right {
    transform: translateX(100%);
}

.fund-showcase-curtain.is-open .fund-showcase-curtain__seam {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fund-showcase-curtain,
    .fund-showcase-curtain__panel,
    .fund-showcase-curtain__seam {
        transition: none;
    }
}

@media (min-width: 768px) {
    .fund-showcase-carousel .showcase-card {
        width: 320px;
        max-width: 320px;
    }
}

@media (min-width: 1024px) {
    .fund-showcase-carousel .showcase-card {
        width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .alert-box {
        width: min(92vw, 380px);
        max-height: 78dvh;
    }

    .alert-box__image {
        max-height: calc(78dvh - 1.5rem);
    }
}

@media (min-width: 768px) {
    .hero-carousel-section {
        --hero-carousel-height: 92svh;
    }
}

@media (max-width: 767px) {
    .hero-carousel__media {
        object-position: 68% center;
    }

    .hero-carousel__content {
        align-items: flex-end;
        padding-bottom: 10.5rem;
        background: linear-gradient(90deg, rgba(3, 12, 32, 0.68) 0%, rgba(3, 12, 32, 0.2) 80%);
    }

    .hero-carousel__copy {
        width: 100%;
    }

    .hero-carousel__title {
        font-size: clamp(2rem, 9.5vw, 2.85rem);
    }

    .hero-carousel__actions {
        gap: 0.625rem;
        margin-top: 1.5rem;
    }

    .hero-carousel__button {
        min-height: 2.75rem;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__copy {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}
