.mg-homepage {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mg-homepage__hero,
.mg-homepage__section {
    width: 100%;
}

.mg-homepage__hero {
    width: auto;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
}

.mg-homepage__hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.mg-homepage__hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mg-homepage__hero-rail {
    border-top: 1px solid #d7dee8;
    padding-top: 18px;
}

.mg-homepage__eyebrow,
.mg-homepage__meta,
.mg-homepage__metric-label {
    margin: 0;
    color: #5b6b7f;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
}

.mg-homepage__hero-title {
    margin: 0;
    color: #0b2239;
    font-size: 32px;
    line-height: 1.12;
}

.mg-homepage__hero-description,
.mg-homepage__section-description,
.mg-homepage__summary,
.mg-homepage__empty-message,
.mg-homepage__nav-description,
.mg-homepage__card-subtitle {
    font-weight: 800;
    margin: 0;
    color: #405166;
    font-size: 15px;
    line-height: 1.6;
}

.mg-homepage__hero-metrics,
.mg-homepage__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mg-homepage__metric {
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.mg-homepage__metric-value {
    display: block;
    margin-top: 4px;
    color: #102a43;
    font-size: 18px;
    line-height: 1.25;
}

.mg-homepage__metric.is-positive .mg-homepage__metric-value {
    color: #087f5b;
}

.mg-homepage__metric.is-negative .mg-homepage__metric-value {
    color: #b42318;
}

.mg-homepage__hero-actions,
.mg-homepage__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mg-homepage__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #b8c4d4;
    border-radius: 8px;
    padding: 9px 14px;
    color: #0b2239;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
}

.mg-homepage__action.is-primary {
    border-color: #0f766e;
    color: #ffffff;
    background: #0f766e;
}

.mg-homepage__action.is-primary:focus,
.mg-homepage__action.is-primary:hover {
    border-color: #0b5f59;
    color: #ffffff;
    background: #0b5f59;
}

.mg-homepage__action.is-tertiary {
    border-color: #d7dee8;
    color: #31506b;
    background: #f8fafc;
}

.mg-homepage__action:focus,
.mg-homepage__action:hover,
.mg-homepage__nav-card:focus,
.mg-homepage__nav-card:hover {
    border-color: #0f766e;
    color: #0b2239;
    background: #eefcf9;
    text-decoration: none;
}

.mg-homepage__section {
    border-top: 1px solid #d7dee8;
    padding-top: 24px;
}

.mg-homepage__section-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mg-homepage__section-title {
    margin: 0;
    color: #0b2239;
    font-size: 24px;
    line-height: 1.25;
}

.mg-homepage__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mg-homepage__card,
.mg-homepage__panel,
.mg-homepage__empty,
.mg-homepage__nav-card {
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
}

.mg-homepage__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    margin-bottom: 30px;
}

.mg-homepage__card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mg-homepage__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mg-homepage__card-title {
    margin: 0;
    color: #102a43;
    font-size: 18px;
    line-height: 1.3;
}

.mg-homepage__empty {
    padding: 18px;
    background: #f8fafc;
}

.mg-homepage__empty-title {
    margin: 0 0 6px;
    color: #102a43;
    font-size: 17px;
    line-height: 1.35;
}

.mg-homepage__panel {
    padding: 16px;
}

.mg-homepage__navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mg-homepage__nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.mg-homepage__nav-title {
    color: #102a43;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.mg-homepage__coverage-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #cdd6e3;
    border-radius: 999px;
    padding: 3px 9px;
    color: #405166;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.mg-homepage__coverage-status.is-active {
    border-color: #99d4c9;
    color: #0b5f59;
    background: #eefcf9;
}

.mg-homepage.is-enhanced .mg-homepage__grid {
    scroll-behavior: smooth;
}

@media (min-width: 640px) {
    .mg-homepage__hero {
        padding: 30px;
    }

    .mg-homepage__hero-metrics,
    .mg-homepage__metrics {
       /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
    }

    .mg-homepage__grid,
    .mg-homepage__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .mg-homepage {
        gap: 34px;
    }

    .mg-homepage__hero-title {
        max-width: 760px;
        font-size: 44px;
    }

    .mg-homepage__hero-description {
        max-width: 780px;
    }

    .mg-homepage__hero-content {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
        align-items: center;
    }

    .mg-homepage__hero-rail {
        border-top: 0;
        border-left: 1px solid #d7dee8;
        padding-top: 0;
        padding-left: 24px;
    }

    .mg-homepage__hero-metrics {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .mg-homepage__grid {
      /*  grid-template-columns: repeat(3, minmax(0, 1fr));*/
    }

    .mg-homepage__grid--featured-assets,
    .mg-homepage__grid--news {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mg-homepage__grid--categories {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mg-homepage__navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
