/* ---------------------------------------------------------------------------
   wwwroot/css/shared/global/07-banner.css

   Loaded by _Layout.cshtml as part 7 of 17 for every page.
   Cascade order is the file order in that <link> list:
     previous: 06-filters.css
     next:     08-data-status.css

   Split out of a single monolithic stylesheet. Do not reorder the <link>
   tags and do not move a rule between these files: both change the cascade.
--------------------------------------------------------------------------- */
.mmrp-banner {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.mmrp-banner__shell {
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.mmrp-banner__grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
}


.mmrp-banner__content {
    padding: 2.25rem 2.5rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(15, 98, 254, 0.05), transparent 24%), linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(248,250,252,0.96) 100%);
}

.mmrp-banner__eyebrow {
    display: inline-block;
    width: fit-content;
    padding: 0.32rem 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.12) 0%, rgba(15, 98, 254, 0.08) 100%);
    border: 1px solid rgba(15, 98, 254, 0.14);
    color: #0f62fe;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.10);
}

/* Centred variants used by _LandingBannerMobile, replacing inline styles. */
.mmrp-banner__eyebrow--centered {
    margin-left: auto;
    margin-right: auto;
}

.mmrp-banner__center {
    text-align: center;
}

.mmrp-banner__title {
    margin: 0 0 1rem 0;
    max-width: 42rem;
    color: #161616;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.mmrp-banner__desc {
    max-width: 46rem;
}

.mmrp-banner__desc-block {
    margin: 0 0 0.85rem 0;
    color: #525252;
    line-height: 1.6;
}

    .mmrp-banner__desc-block:last-child {
        margin-bottom: 0;
    }

    .mmrp-banner__desc-block cds-link {
        margin: 0 0.2rem;
    }


.mmrp-banner__aside {
    position: relative;
    border-left: 1px solid #dde5ec;
    background: linear-gradient(180deg, #eef3f8 0%, #e6edf5 100%);
    overflow: hidden;
}

    .mmrp-banner__aside::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(15, 98, 254, 0.09), transparent 28%);
        pointer-events: none;
        z-index: 1;
    }

.mmrp-banner__aside-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mmrp-banner__panel-label {
    margin-bottom: 1rem;
    color: #52667a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mmrp-banner__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.mmrp-banner__stat {
    min-height: 80px;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mmrp-banner__stat-value {
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.mmrp-banner__stat-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mmrp-banner__trend {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(15, 98, 254, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.mmrp-banner__trend-label {
    margin-bottom: 0.35rem;
    color: #52667a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mmrp-banner__trend-value {
    color: #0f62fe;
    line-height: 1.1;
}


.mmrp-banner__graph-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.mmrp-banner__graph {
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.mmrp-banner__graph-grid line {
    stroke: rgba(82, 102, 122, 0.14);
    stroke-width: 1;
}

.mmrp-banner__graph-area {
    fill: rgba(15, 98, 254, 0.10);
}

.mmrp-banner__graph-line {
    fill: none;
    stroke: rgba(15, 98, 254, 0.60);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


@media (max-width: 1056px) {
    .mmrp-banner__grid {
        grid-template-columns: 1fr;
    }

    .mmrp-banner__aside {
        border-left: 0;
        border-top: 1px solid #dde5ec;
    }

    .mmrp-banner__content {
        padding: 2rem 1.5rem;
    }

    .mmrp-banner__aside-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .mmrp-banner__stats {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {
    .mmrp-banner {
        padding: 0.75rem;
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }

    .mmrp-banner__shell {
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .mmrp-banner__grid {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }

    .mmrp-banner__content {
        width: 100%;
        padding: 1.25rem 1rem;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(251,252,254,0.95) 0%, rgba(244,247,250,0.95) 100%);
    }

    .mmrp-banner__eyebrow {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.6rem;
    }

    .mmrp-banner__title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        max-width: 100%;
    }

    .mmrp-banner__desc {
        max-width: 100%;
    }

    .mmrp-banner__desc-block {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
        line-height: 1.5;
    }
}


@media (min-width: 1056px) {
    .mmrp-banner {
        width: 66.66%;
        margin-left: 0;
        margin-right: auto;
    }

    .mmrp-banner__shell {
        width: 100%;
    }

    .mmrp-banner__grid {
        width: 100%;
    }

    .mmrp-banner__content {
        width: 100%;
    }
}